/* Console v0. Brand tokens on :root so white-label themes replace values, not rules. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #16191d;
  --muted: #59616b;
  --border: #d6dbe1;
  /* WCAG 1.4.11: the edge of a field or button keeps 3:1 against the page and cards. */
  --control-border: #77808a;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --danger: #b3261e;
  --ok: #1d7a3e;
  /* WCAG 1.4.11: the focus ring keeps 3:1 against the page and cards; its 2px offset puts it beside
     those, never on a filled (accent) button. */
  --focus: #8a4b00;
  --danger-text: #ffffff;
  --radius: 8px;
  --gap: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1b1f24;
    --text: #e8eaed;
    --muted: #a5adb7;
    --border: #343a42;
    --control-border: #7d8693;
    --accent: #6ea8ff;
    --accent-text: #0b1220;
    --danger: #ff8a80;
    --danger-text: #1b0000;
    --ok: #7bd88f;
    --focus: #ffb84d;
  }
}

* { box-sizing: border-box; }
/* WCAG 2.4.11: a control scrolled to by focus is not hidden under the fixed toast or the call dock. */
html { scroll-padding-block: 16px 120px; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
/* Codes, numbers and ids keep their own direction inside right-to-left text. */
code, .mono, time, .secret { unicode-bidi: isolate; }

.skip-link { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--gap);
  padding: 8px var(--gap); background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; padding: 4px 2px; display: inline-block; min-height: 24px; }
.nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
.session { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); }
.acting { padding: 8px var(--gap); background: #fff4d6; color: #3d2e00; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

main { max-width: 960px; margin: 0 auto; padding: var(--gap); }
main:focus { outline: none; }
h1 { font-size: 1.5rem; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 20px 0 8px; }
h3 { font-size: 1rem; margin: 0 0 4px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--gap); margin-bottom: var(--gap); }
.narrow { max-width: 420px; margin: 48px auto; }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
input { width: 100%; padding: 10px; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--control-border); border-radius: 6px; }
button { font: inherit; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--control-border); background: var(--surface); color: var(--text); cursor: pointer; min-height: 44px; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button.danger { color: var(--danger); border-color: var(--danger); }
.link-button { background: none; border: none; color: var(--accent); text-decoration: underline; padding: 4px; min-height: 0; }
form button[type="submit"] { margin-top: 16px; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.muted, .meta { color: var(--muted); }
.meta { font-size: .9rem; margin: 2px 0; }
.error { color: var(--danger); min-height: 1.5em; }
.badge { display: inline-block; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border); font-size: .8rem; }
.toast { position: fixed; bottom: 12px; inset-inline: 12px; text-align: center; pointer-events: none; }
.toast:not(:empty) { background: var(--text); color: var(--bg); padding: 10px; border-radius: 6px; max-width: 480px; margin: 0 auto; }

.conversation-list { list-style: none; margin: 0; padding: 0; }
.conversation-row {
  display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none;
}
.conversation-row .contact { font-weight: 700; }
.conversation-row .meta { font-size: .85rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 3px solid var(--border); }
.interaction { margin-block: 0 12px; margin-inline: 12px 0; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.messages { list-style: none; padding: 0; margin: 8px 0 0; }
.message { padding: 8px; border-radius: 6px; margin-bottom: 6px; background: var(--bg); overflow-wrap: anywhere; }
.message.outbound { margin-inline-start: 15%; }
.message.inbound { margin-inline-end: 15%; }
.message .author { font-size: .8rem; color: var(--muted); margin: 0; }
.message .body { margin: 4px 0 0; white-space: pre-wrap; }
.identifiers { margin: 0; padding-inline-start: 20px; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: start; padding: 8px; border-bottom: 1px solid var(--border); }
.depth-1 { padding-inline-start: 24px; }
.depth-2 { padding-inline-start: 40px; }
.depth-3 { padding-inline-start: 56px; }

.softphone .status[data-state="registered"] { color: var(--ok); font-weight: 700; }
.softphone .status[data-state="not_connected"] { color: var(--danger); font-weight: 700; }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 72px)); gap: 8px; margin-top: 12px; }
.key { font-size: 1.2rem; }

.steps { padding-inline-start: 20px; }
.step { margin-bottom: 16px; }
.step.result-pass strong { color: var(--ok); }
.step.result-fail strong { color: var(--danger); }
.step-form { display: grid; gap: 0 12px; }

@media (min-width: 640px) {
  .conversation-row { grid-template-columns: 1fr 2fr; }
  .conversation-row .meta { grid-column: 1 / -1; }
  .step-form { grid-template-columns: 1fr 1fr; }
  .step-form label:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .step-form label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .step-form .actions { grid-column: 1 / -1; }
}

/* Billing: wallet facts, notices, ledger, usage and reconciliation. */
/* WCAG 1.4.10: the term column takes what it needs up to half the width, so a long event name
   or id wraps at phone width instead of widening the page. */
.facts { display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.facts .money { font-size: 1.4rem; font-weight: 700; }
.notice { padding: 10px var(--gap); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.notice.warn { border-color: #b58100; }
.notice.danger { border-color: var(--danger); }
td { font-variant-numeric: tabular-nums; vertical-align: top; }
caption { text-align: start; color: var(--muted); padding: 4px 0; }
tr.shadow td { color: var(--muted); }
tr.recon-drift td:first-child, tr.recon-missing td:first-child, tr.recon-extra td:first-child { color: var(--danger); font-weight: 700; }
.totals { padding-inline-start: 1.2em; }
.runs { padding-inline-start: 1.2em; }
select, input[type="date"], input[type="file"] { font: inherit; min-height: 44px; max-width: 100%; }
select { color: inherit; background: var(--bg); border: 1px solid var(--control-border); border-radius: 6px; padding: 0 8px; }

/* Workspace: inbox and presence beside the open conversation. */
main:has(.workspace) { max-width: 1280px; }
.workspace { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.inbox-pane ul { list-style: none; margin: 0; padding: 0; }
.presence select, .inline-form select, .composer select, .composer textarea { width: 100%; }
textarea { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--control-border); border-radius: 6px; padding: 10px; width: 100%; min-height: 44px; }
.presence-state { font-weight: 700; }
.state-ready { color: var(--ok); }
.state-not_responding, .state-offline { color: var(--danger); }
.offer { border-inline-start: 4px solid var(--accent); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.badge.unread { margin-inline-start: 6px; background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.conversation-row[aria-current="page"] { border-color: var(--accent); }
.conversation-pane .messages { max-height: 55vh; overflow-y: auto; }
.message.note { border: 1px dashed var(--border); background: transparent; }
.tick { font-weight: 700; }
.tick.status-read { color: var(--accent); }
.tick.status-failed { color: var(--danger); }
.window.closed { color: var(--danger); }
.typing { min-height: 1.5em; }
/* Wraps (WCAG 1.4.10): a row of channel checkboxes must not widen the page at phone width. */
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline input[type="checkbox"] { width: auto; min-height: 24px; min-width: 24px; }
.inline label { margin: 0; font-weight: 400; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.inline-form label { width: 100%; margin: 0; }
.inline-form select { flex: 1; min-width: 160px; width: auto; }
.composer form button[type="submit"] { width: auto; }
.contact-panel summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
@media (min-width: 960px) {
  .workspace { grid-template-columns: minmax(280px, 1fr) 2fr; align-items: start; }
}

/* MFA and security */
.recovery-codes { columns: 2; font-family: ui-monospace, monospace; }
.secret { font-size: 1.1rem; letter-spacing: 0.05em; word-break: break-all; }

/* KPIs from the metric dictionary */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--gap); margin: 0 0 var(--gap); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.kpi dt { color: var(--muted); font-size: 0.85rem; }
.kpi dd { margin: 4px 0 0; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* E-mail and SMS */
.email-html { width: 100%; min-height: 320px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.attachments { margin: 4px 0; padding-inline-start: 1.2em; }
.sms-counter.over { color: var(--danger); font-weight: 700; }
.badge.check-pass, .badge.domain-verified { border-color: #2e7d32; }
.badge.check-fail, .badge.check-error, .badge.domain-failed { border-color: var(--danger); }
.badge.check-missing, .badge.domain-pending { border-color: #b58100; }

/* The outbound desk (P4) and the wallboard (P5). */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-width: 520px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
/* Outbound depth (0045): embed codes and long ids wrap at phone width; checkbox rows are touch-sized. */
pre.mono, td .mono, th .mono { white-space: pre-wrap; word-break: break-all; }
label.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.badge.breaker-open, .badge.kyb-rejected, .badge.dsar-refused { border-color: var(--danger); }
.dialler .script { white-space: pre-wrap; background: var(--surface); border-inline-start: 3px solid var(--accent); padding: 8px 12px; margin: 6px 0; }
.dialler .callback { display: grid; gap: 6px; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; }
.dialler .callback[hidden] { display: none; }
.dialler .check { display: flex; align-items: center; gap: 6px; }
.call-state { font-weight: 700; }
.call-connected { color: #2e7d32; }
.mapping { display: grid; gap: 6px; max-width: 720px; }
.badge.campaign-active { border-color: #2e7d32; }
.badge.campaign-paused { border-color: #b58100; }
.badge.campaign-finished { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.tile h3 { margin: 0 0 8px; }
.kpis.big .kpi dd { font-size: 2rem; }
.agent-states .badge { margin-inline-end: 6px; }
@media (max-width: 480px) { .kpis.big .kpi dd { font-size: 1.5rem; } .tiles { grid-template-columns: 1fr; } }

/* The flow canvas (#/flows/<id>): nodes are positioned by the script through the CSSOM. */
.flow-palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.flow-palette button { min-height: 36px; padding: 4px 10px; }
.flow-layout { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.flow-scroll { direction: ltr; overflow: auto; max-height: 70vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.flow-canvas { position: relative; width: 2400px; height: 1600px; touch-action: none; }
.flow-edges { position: absolute; left: 0; top: 0; pointer-events: none; }
.flow-edge { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.flow-edge-label { font-size: 10px; fill: var(--muted); }
#flow-arrow path { fill: var(--muted); }
.flow-node { position: absolute; width: 200px; min-height: 96px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 6px;
  cursor: grab; user-select: none; box-sizing: border-box; font-size: .85rem; }
.flow-node:focus { outline: 3px solid var(--accent); }
.flow-node.selected { border-color: var(--accent); }
.flow-node.start { border-style: double; border-width: 4px; }
.flow-node.invalid { border-color: var(--danger); }
.flow-node-body { color: var(--muted); overflow-wrap: anywhere; min-height: 1.2em; }
.flow-ports { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-top: 4px; }
.flow-port { min-height: 24px; padding: 0 6px; font-size: .75rem; }
.flow-port.active { background: var(--accent); color: var(--accent-text); }
.flow-problems { color: var(--danger); }
@media (min-width: 900px) { .flow-layout { grid-template-columns: 1fr 340px; } }

.whisper { border: 2px dashed var(--border); border-radius: 8px; padding: 12px; margin: 16px 0; }
.whisper textarea { width: 100%; box-sizing: border-box; display: block; margin: 4px 0 8px; }
.internal-note { color: var(--muted); }
.confirm { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin: 8px 0; }
.confirm[hidden] { display: none; }

/* The analytics suite: saved reports, alerts, topics, auto-QA, revenue, my performance, margin, wallboard layouts. */
.alert-banner { border: 2px solid var(--danger); border-radius: var(--radius); padding: 8px 12px; margin: 8px 0; font-weight: 600; }
.alert-banner[hidden] { display: none; }
.advisory { border-inline-start: 4px solid #b58100; background: var(--surface); padding: 8px 12px; margin: 8px 0; }
.badge.alert-firing, .badge.schedule-suspended { border-color: var(--danger); }
.badge.alert-ok, .badge.schedule-active { border-color: #2e7d32; }
tr.spiking th, tr.spiking td { background: var(--surface); }
.wfm tr.short td[data-metric] { color: var(--danger); font-weight: 700; }
.bars { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.05em; white-space: nowrap; }
.checks { border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 12px; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.checks legend { padding: 0 4px; }
.explain.link-button { font-size: 0.85rem; }
.explain-dialog { max-width: min(720px, 94vw); max-height: 80vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: inherit; }
.explain-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.record-list { padding-inline-start: 1.2em; max-height: 40vh; overflow: auto; }
.goals { list-style: none; padding: 0; display: grid; gap: 8px; }
.goals progress { width: 160px; vertical-align: middle; }
.board li.you { font-weight: 700; }
.wb-tile { margin-bottom: var(--gap); }
.tv-controls { display: flex; gap: 8px; }
/* TV mode: the console chrome goes, the figures grow. */
body.tv #topbar, body.tv nav, body.tv #acting, body.tv .skip-link { display: none; }
body.tv main { max-width: none; padding: 16px 24px; }
body.tv .wallboard h1 { font-size: 1rem; color: var(--muted); }
body.tv .wallboard h2 { font-size: 2.2rem; margin: 0 0 12px; }
body.tv .kpi dd { font-size: 3rem; }
body.tv .kpi dt { font-size: 1.1rem; }
body.tv .wb-tile h3 { font-size: 1.2rem; color: var(--muted); }
body.tv .alert-banner { font-size: 1.6rem; }


/* CRM connectors (#/crm, #/crm/health): long URLs and ids wrap at phone width; checkboxes sit beside their text. */
.crm code { overflow-wrap: anywhere; }
.crm .check { display: flex; align-items: center; gap: 6px; }
.crm fieldset[hidden], .crm div[hidden] { display: none; }

/* Video calls and page sharing (OC-17): a dock that stays while the agent moves between conversations. */
.rtc-controls { margin: 8px 0; display: grid; gap: 8px; }
.rtc-history-panel summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.rtc-history { padding-inline-start: 20px; overflow-wrap: anywhere; }
.rtc-dock { position: fixed; z-index: 20; left: 8px; right: 8px; bottom: 8px; max-height: 85vh; overflow: auto; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
.rtc-dock h2 { margin: 0 0 8px; font-size: 1.1rem; }
.rtc-stage { position: relative; background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.rtc-remote { width: 100%; height: 100%; object-fit: contain; display: block; }
.rtc-local { position: absolute; inset-inline-end: 8px; bottom: 8px; width: 28%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid #fff; border-radius: 6px; background: #111; }
.badge.rtc-rec { background: var(--danger); color: var(--danger-text); border-color: var(--danger); }
.rtc-page { direction: ltr; position: relative; overflow: hidden; background: #fff; color: #111; border: 1px solid var(--border); border-radius: 6px; cursor: crosshair; min-height: 120px; }
.rtc-box { position: absolute; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; line-height: 1.15; pointer-events: none; }
.rtc-box.field { border: 1px solid #9ca3af; background: #fff; padding: 0 2px; }
.rtc-box.img { background: #e5e7eb; border: 1px dashed #9ca3af; color: #4b5563; }
.rtc-box.masked { background: repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 4px, #f9fafb 4px, #f9fafb 8px); color: #4b5563; border: 1px solid #9ca3af; }
.rtc-box[data-checked="true"]::after { content: "✓"; }
.rtc-confirm { max-width: min(520px, 94vw); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: inherit; }
.rtc-confirm::backdrop { background: rgba(0, 0, 0, 0.5); }
@media (min-width: 960px) {
  .rtc-dock { inset-inline-start: auto; width: 440px; }
}

/* Round-2 gaps: secure forms, change approval, emergency mode, AI monitors. */
.secure-requests, .change-list, .emergency-list, .flag-list { list-style: none; padding: 0; }
.secure-view { border-inline-start: 4px solid var(--danger); }
.field-rows { padding-inline-start: 1.25rem; }
table.diff td { max-width: 24rem; overflow-wrap: anywhere; }
.diff-before { text-decoration: line-through; color: var(--muted); }
.emergency-on { border-inline-start: 4px solid var(--danger); }
@media (max-width: 40rem) { table.diff td { max-width: 10rem; } }

/* Enterprise admin (SSO, SCIM, help centre): long URLs and records wrap at phone width. */
.card code { overflow-wrap: anywhere; }
.card fieldset { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; }

/* Digital desk depth: the report builder's palette, drop zones and chips; charts scale to the column. */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); }
@media (max-width: 48rem) { .builder { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: grab; }
.drop-zone { min-height: 52px; padding: 8px; border: 2px dashed var(--border); border-radius: var(--radius); list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.drop-zone.over { border-color: currentColor; }
svg.chart { max-width: 100%; height: auto; display: block; margin: 8px 0; }
/* Platform (T5): the consent screen, apps, roles, legal holds, the data region, the language picker. */
.lang-picker { min-height: 32px; }
.narrow-picker { max-width: 420px; margin: 0 auto; }
.button-link { display: inline-block; padding: 10px 14px; min-height: 44px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); text-decoration: none; }
.consent { max-width: 640px; margin-inline: auto; }
.scope-list { padding-inline-start: 1.2em; }
.scope-list code { color: var(--muted); font-size: .85rem; }
.app-list, .hold-list { list-style: none; padding: 0; }
.secret-once code { overflow-wrap: anywhere; }
.badge.listing-approved { border-color: var(--ok); }
.badge.listing-submitted { border-color: #b58100; }
.badge.listing-rejected, .badge.listing-suspended { border-color: var(--danger); }
.hold-active { border-inline-start: 4px solid var(--danger); }
/* WCAG 1.4.10: a long option (an event name and its scope) wraps at phone width instead of widening the page. */
.checks label.inline { min-height: 24px; max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
/* Voice AI: transcripts, the analytics question's SQL, JSON editors; one column on a phone. */
.transcript { list-style: none; padding: 0; margin: 0; }
.transcript-line { padding: 4px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.transcript-line .speaker { font-weight: 600; margin-inline-end: 6px; }
.transcript-line.speaker-bot .speaker::before { content: "◆ "; }
.transcript-line.interrupted .text { text-decoration: underline dotted; }
.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 260px 1fr; } }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
textarea.code, pre.sql code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
pre.sql { overflow-x: auto; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
