/* Aura Support Console — premium light theme */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f1f3f9;
  --border: #e7e9f0;
  --border-strong: #d9dce6;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --accent: #5b4cf0;
  --accent-600: #4c3fe0;
  --accent-soft: #f0eeff;
  --accent-ring: rgba(91, 76, 240, 0.18);
  --peach: #f6a37f;
  --brand-grad: linear-gradient(135deg, #f6a37f 0%, #c879d9 50%, #6d5dfc 100%);

  --listen: #10b981;
  --think: #f59e0b;
  --speak: #6d5dfc;
  --idle: #cbd2de;
  --danger: #e5484d;
  --danger-soft: #fff1f1;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px -12px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 48px -20px rgba(41, 30, 140, 0.25);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(246, 163, 127, 0.16), transparent 60%),
    radial-gradient(900px 480px at 95% -15%, rgba(109, 93, 252, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h3 { font-size: 15px; font-weight: 600; }
button, input, select { font: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.logo {
  width: 36px; height: 36px; border-radius: 11px; background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font: 600 19px Georgia, serif;
  box-shadow: 0 6px 16px -6px rgba(109, 93, 252, 0.6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 650; font-size: 15px; }
.brand-sub { color: var(--muted); font-size: 12.5px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.tag {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  padding: 5px 10px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border);
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px;
  border: 1px solid #c9f0dd; background: #effbf5; color: #047857;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--listen); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.badge.warn { border-color: #fbd3d4; background: var(--danger-soft); color: #b42318; }
.badge.warn::before { background: var(--danger); box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.18); }
@media (max-width: 560px) { .tag { display: none; } .badge { white-space: nowrap; font-size: 11px; padding: 4px 9px; } .brand-sub { display: none; } }

/* ---------- Page ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .page, .topbar-inner { padding-left: 16px; padding-right: 16px; } }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 36px 0 22px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid #e2ddff; border-radius: 999px; padding: 4px 11px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.eyebrow-plain { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 500; }
.page-head h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; line-height: 1.15; margin: 12px 0 8px; letter-spacing: -0.025em; }
.lede { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 620px; }
.head-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 380px; }
.head-meta li {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow-sm);
}
.hm-icon { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .page-head { flex-direction: column; align-items: flex-start; padding-top: 26px; }
  .head-meta { justify-content: flex-start; max-width: none; }
}

.notice {
  margin: 0 0 16px; padding: 12px 16px 12px 44px; border-radius: var(--radius); position: relative;
  background: #fffaeb; color: #7a4b00; border: 1px solid #fde7b0; font-size: 14px; box-shadow: var(--shadow-sm);
}
.notice::before {
  content: '!'; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: #f5a524; color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
.notice code { font-family: var(--mono); font-size: 12.5px; background: rgba(245, 165, 36, 0.14); padding: 1px 5px; border-radius: 5px; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: stretch; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card-sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.card .chips + .card-sub { margin: 12px 0 0; }
.count-pill { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 2px 9px; }
.side { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }

/* ---------- Call card ---------- */
.call-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; box-shadow: var(--shadow-lg); }
.call-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.agent-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font: 600 18px Georgia, serif; flex: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--border);
}
.agent-name { font-weight: 650; font-size: 15.5px; }
.agent-role { color: var(--muted); font-size: 13px; }
.timer-pill {
  display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px;
}
.timer-pill svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

.stage {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 16px 22px; border-radius: var(--radius);
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(109, 93, 252, 0.08), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--border);
}

/* Orb */
.orb { position: relative; width: 128px; height: 128px; margin-bottom: 16px; --c: var(--idle); --c2: #e5e9f0; }
.orb-ring, .orb-ring::before, .orb-ring::after {
  position: absolute; inset: 0; border-radius: 50%; content: '';
}
.orb-ring { border: 2px solid var(--c); opacity: 0.25; transition: border-color 250ms; }
.orb-ring::before, .orb-ring::after { inset: -2px; border: 2px solid var(--c); opacity: 0; }
.orb-core {
  position: absolute; inset: 18px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), transparent 42%), linear-gradient(140deg, var(--c2), var(--c));
  box-shadow: 0 14px 34px -10px var(--c), inset 0 -6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 250ms ease, box-shadow 250ms;
}
.orb[data-phase='connecting'] { --c: #a5b0c2; --c2: #e2e7ef; }
.orb[data-phase='connecting'] .orb-core { animation: breathe 1.4s ease-in-out infinite; }
.orb[data-phase='listening'] { --c: var(--listen); --c2: #8ef0c9; }
.orb[data-phase='listening'] .orb-ring::before { animation: ripple 2s ease-out infinite; }
.orb[data-phase='listening'] .orb-ring::after { animation: ripple 2s ease-out 1s infinite; }
.orb[data-phase='thinking'] { --c: var(--think); --c2: #ffe08a; }
.orb[data-phase='thinking'] .orb-ring {
  opacity: 1; border: 3px solid transparent;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--c)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 1.1s linear infinite;
}
.orb[data-phase='speaking'] { --c: var(--speak); --c2: #c4b8ff; }
.orb[data-phase='speaking'] .orb-core { animation: talk 0.45s ease-in-out infinite alternate; }
.orb[data-phase='speaking'] .orb-ring { opacity: 0.4; animation: halo 0.9s ease-in-out infinite alternate; }
.orb[data-phase='ended'] { --c: #94a3b8; --c2: #e2e8f0; }
.orb[data-phase='error'] { --c: var(--danger); --c2: #ffb3b5; }
@keyframes ripple { from { transform: scale(1); opacity: 0.5; } to { transform: scale(1.35); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes talk { from { transform: scale(0.94); } to { transform: scale(1.05); } }
@keyframes halo { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes breathe { 0%, 100% { transform: scale(0.96); } 50% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .orb, .orb * { animation: none !important; } }

.state-label { font-weight: 650; font-size: 22px; letter-spacing: -0.015em; color: var(--text); }
.state-label[data-phase='listening'] { color: #059669; }
.state-label[data-phase='thinking'] { color: #d97706; }
.state-label[data-phase='speaking'] { color: var(--accent); }
.state-label[data-phase='error'] { color: var(--danger); }
.state-detail { color: var(--muted); font-size: 14px; min-height: 21px; margin-top: 2px; max-width: 460px; }

.meter { width: 180px; height: 5px; background: var(--border); border-radius: 99px; margin: 14px 0 20px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #34d399, var(--listen)); transition: width 80ms linear; }

.call-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; padding: 10px 18px;
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: background 150ms, border-color 150ms, box-shadow 150ms, transform 120ms, opacity 150ms;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-start {
  background: linear-gradient(180deg, #6a5cf5, var(--accent)); color: #fff; padding: 12px 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px -8px rgba(91, 76, 240, 0.7);
}
.btn-start:not(:disabled):hover { background: linear-gradient(180deg, #6152f2, var(--accent-600)); }
.btn-end { background: var(--surface); color: var(--danger); border-color: #f5c6c7; padding: 12px 22px; }
.btn-end:not(:disabled):hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); box-shadow: var(--shadow-sm); }
.btn-ghost:not(:disabled):hover { background: var(--surface-2); border-color: #c5cad6; }
.post-actions .btn-start { padding: 10px 18px; }

.captions:empty { display: none; }
.captions {
  font-size: 15px; color: var(--text-2); font-style: italic; text-align: center;
  background: var(--accent-soft); border: 1px dashed #d6d0ff; border-radius: var(--radius-sm); padding: 9px 14px;
}

/* Transcript */
.transcript-panel {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 12px 14px;
  flex: 1 1 0; min-height: 300px; display: flex; flex-direction: column;
}
.transcript-panel .transcript { flex: 1 1 0; min-height: 0; max-height: none; }
@media (max-width: 980px) {
  .transcript-panel { flex: none; }
  .transcript-panel .transcript { flex: none; min-height: 200px; max-height: 420px; }
}
.panel-label {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  padding: 2px 4px 10px;
}
.panel-hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.transcript {
  list-style: none; margin: 0; padding: 2px 4px; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; min-height: 180px; max-height: 380px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.transcript.final { max-height: 560px; min-height: 0; }
.turn { padding: 10px 14px; max-width: 86%; font-size: 14.5px; line-height: 1.5; box-shadow: var(--shadow-sm); }
.turn .who {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 3px; color: var(--muted);
}
.turn .who .muted { font-weight: 500; letter-spacing: 0.02em; }
.turn.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 16px 5px; }
.turn.user {
  align-self: flex-end; color: #fff; border-radius: 16px 16px 5px 16px;
  background: linear-gradient(160deg, #6a5cf5, var(--accent));
  box-shadow: 0 6px 16px -8px rgba(91, 76, 240, 0.6);
}
.turn.user .who, .turn.user .who .muted { color: rgba(255, 255, 255, 0.78); }
.turn.user .interrupted { color: #ffe1e1; }
.turn.tool {
  align-self: stretch; max-width: 100%; background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); box-shadow: none; padding: 8px 12px;
}
.turn.tool summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.turn.tool summary::-webkit-details-marker { display: none; }
.turn.tool summary::before { content: '▸'; color: var(--faint); transition: transform 150ms; }
.turn.tool details[open] summary::before { transform: rotate(90deg); }
.turn.tool pre {
  margin: 8px 0 2px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; font-size: 12px;
}
.turn .interrupted { color: var(--danger); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; }
.chip-latency {
  font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 11px;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px;
}
.empty {
  color: var(--muted); font-size: 14px; text-align: center; padding: 34px 10px 30px; margin: auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty::before {
  content: ''; width: 44px; height: 44px; border-radius: 14px; background-color: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4cf0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 22px;
}

/* Composer */
.composer {
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  transition: border-color 150ms, box-shadow 150ms;
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); padding: 8px 0; font-size: 14.5px; }
.composer input::placeholder { color: var(--faint); }
.composer input:disabled { cursor: not-allowed; }
.btn-send { width: 40px; height: 40px; padding: 0; border-radius: 11px; background: var(--accent); color: #fff; }
.btn-send:not(:disabled):hover { background: var(--accent-600); }
.btn-send:disabled { background: var(--surface-3); color: var(--faint); opacity: 1; }

/* ---------- Side panel ---------- */
.orders { display: grid; gap: 10px; }
.order {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 13px;
  background: var(--surface-2); transition: border-color 150ms, box-shadow 150ms, background 150ms;
}
.order:hover { border-color: #d6d0ff; background: var(--surface); box-shadow: var(--shadow-sm); }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.order-id {
  font: 600 13px var(--mono); color: var(--accent); cursor: pointer;
  background: var(--accent-soft); border: 1px solid #e2ddff; border-radius: 7px; padding: 3px 8px;
  transition: background 150ms;
}
.order-id:hover { background: #e6e2ff; }
.status { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.s-out-for-delivery { background: #eef4ff; color: #2f5bd3; }
.status.s-delivered { background: #ecfdf5; color: #047857; }
.status.s-processing { background: #fff7e6; color: #b45309; }
.order dl { margin: 0; display: grid; grid-template-columns: 74px 1fr; gap: 3px 10px; }
.order dt { color: var(--muted); }
.order dd { margin: 0; color: var(--text-2); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 10px;
  padding: 7px 11px; font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; line-height: 1.35;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.chip:hover { border-color: #cfc8ff; background: var(--accent-soft); color: var(--accent-600); }
.chip small { color: var(--faint); font-weight: 500; }

.settings { display: grid; gap: 14px; }
.settings .card-head { margin-bottom: 0; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field select {
  width: 100%; min-width: 0; appearance: none; -webkit-appearance: none;
  padding: 10px 36px 10px 12px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--text); font-size: 14px; cursor: pointer; text-overflow: ellipsis;
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

.toggle {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
}
.toggle input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0; flex: none; cursor: pointer;
  width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background 180ms;
}
.toggle input::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25); transition: transform 180ms;
}
.toggle input:checked { background: var(--accent); }
.toggle input:checked::before { transform: translateX(16px); }
.toggle input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
.toggle-text { display: grid; gap: 2px; }
.toggle-title { font-size: 14px; font-weight: 600; }
.toggle-desc { font-size: 12.5px; color: var(--muted); }

/* ---------- Post call ---------- */
.post-call { margin-top: 28px; scroll-margin-top: 80px; }
.post-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.post-head h2 { font-size: 22px; font-weight: 700; margin-top: 2px; }
.post-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-grid .card-head { margin-bottom: 12px; }

.outcome-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.outcome-badges:empty { display: none; }
.outcome-badges span {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border);
}
.outcome-badges span:first-child { background: var(--accent-soft); color: var(--accent-600); border-color: #e2ddff; }
.outcome-badges span:nth-child(2) { background: #ecfdf5; color: #047857; border-color: #c9f0dd; }
.outcome-badges span:nth-child(3) { font-family: var(--mono); }

.json {
  background: #0d1020; color: #e6e8f2; padding: 16px 18px; border-radius: var(--radius); overflow: auto; margin: 0;
  font: 12.5px/1.65 var(--mono); max-height: 520px; white-space: pre-wrap; word-break: break-word;
  border: 1px solid #1d2238; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scrollbar-width: thin; scrollbar-color: #343b5c transparent;
}
.json .k { color: #a5b4fc; }
.json .s { color: #86efac; }
.json .n { color: #fcd34d; }
.json .b { color: #f9a8d4; }

.footer { padding: 36px 0 40px; text-align: center; color: var(--faint); font-size: 13px; }

/* ---------- Call settings bar (inside the call stage) ---------- */
.call-settings {
  width: 100%; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap; text-align: left;
}
.field-inline { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 340px; }
.field-inline .field-label { flex: none; }
.field-inline select { padding-top: 8px; padding-bottom: 8px; font-size: 13.5px; }
.toggle-compact { padding: 7px 12px; align-items: center; background: var(--surface); }
.toggle-compact input { margin: 0; }
.toggle-compact .toggle-title { font-size: 13.5px; }
.toggle-compact .toggle-desc { font-size: 12px; }

/* Side panel: slightly tighter so both columns stay balanced */
.order { padding: 11px 13px; }
.order dl { gap: 2px 10px; }
