@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/NotoSans-400.ttf") format("truetype");
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/NotoSans-600.ttf") format("truetype");
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/NotoSans-700.ttf") format("truetype");
}
:root {
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #20382e;
  background: #f4f5ef;
  color-scheme: light;
  font-synthesis: none;
  --ink: #173d2e;
  --muted: #596c60;
  --line: #dce3d8;
  --teal: #087447;
  --teal-soft: #edf5eb;
  --surface: #fffefa;
  --gold: #e7ce80;
  --level: .1;
  --motion-fast: 160ms;
  --motion-enter: 220ms;
  --ease-settle: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a, select, summary, textarea { -webkit-tap-highlight-color: #d5e9d4; }
button, a, select, summary { touch-action: manipulation; }
button { cursor: pointer; transition: background-color .16s, border-color .16s, color .16s; }
button:disabled { cursor: not-allowed; opacity: .52; }
button, select, textarea, summary, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid #b48626; }
::selection { background: #d9eacb; color: #173d2e; }
a { text-underline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button svg { width: 19px; height: 19px; flex: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
.skip-link { position: fixed; top: -80px; left: 18px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 10px; }
.topbar { min-height: 76px; padding: 12px max(32px, calc((100vw - 1440px)/2 + 32px)); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-size: 23px; font-weight: 720; letter-spacing: -.7px; line-height: 1.15; min-height: 44px; }
.brand-icon { width: 42px; height: 44px; display: grid; place-items: center; background: #094637; border-radius: 14px 14px 14px 3px; flex: none; color: var(--gold); }
.brand-icon svg { width: 28px; stroke-width: 2.5; }
.brand-subtitle { display: block; font-size: 12px; letter-spacing: 0; color: var(--muted); margin-top: 5px; font-weight: 450; }
.topbar-right { display: flex; gap: 23px; align-items: center; font-size: 13px; color: var(--muted); }
.demo-label { display: inline-flex; align-items: center; gap: 7px; color: #506043; background: #f0f3e7; padding: 6px 11px; border-radius: 20px; }
.team-label strong { font-weight: 650; color: var(--ink); }
.workspace { max-width: 1440px; padding: 27px 32px 20px; margin: auto; }
.workspace:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
h1 { font-size: 30px; letter-spacing: -.7px; font-weight: 680; margin: 0; line-height: 1.25; }
.page-description { font-size: 14px; color: var(--muted); margin: 9px 0 0; line-height: 1.55; max-width: 76ch; }
.language-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #496047; flex: none; }
.language-label span { padding: 5px 0; min-width: 30px; text-align: center; border-bottom: 1px solid #b7c9b1; }
.language-label svg { width: 29px; height: 29px; color: var(--teal); margin-left: 4px; }
.card { max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px; min-height: 58px; }
.card-heading h2 { font-size: 17px; font-weight: 650; margin: 0; letter-spacing: -.3px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; padding: 4px 8px; border-radius: 5px; line-height: 1.4; flex: none; max-width: 100%; }
.badge.neutral { color: #586858; background: #eff2eb; }
.badge.ready { color: #126136; background: #e8f4e7; }
.badge.connecting { color: #7a5918; background: #fff3d1; }
.badge.error { color: #a6392b; background: #fff0eb; }
.status-dot { height: 6px; width: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.connecting .status-dot { animation: status-pulse 1.2s ease-in-out infinite; }
@keyframes status-pulse { 50% { opacity: .35; } }

.session-card { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr); margin-bottom: 24px; }
.session-setup { min-width: 0; padding: 19px 22px 14px; }
.session-setup .card-heading { padding: 0 0 15px; min-height: 32px; }
.session-setup .card-heading h2 { font-size: 16px; }
.provider-row { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 17px; align-items: start; }
.provider-field { min-width: 0; }
.field-heading { min-width: 0; flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 24px; margin-bottom: 6px; }
.provider-field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.guide-tag { max-width: 100%; background: #f0f2e7; color: #536036; font-size: 10px; line-height: 1.5; font-weight: 650; padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.model-tag { color: #68531e; background: #f6f0de; }
.provider-field select { font-size: 14px; font-weight: 550; background: #fffefa; border: 1px solid #b9c7b7; border-radius: 7px; color: var(--ink); width: 100%; min-height: 46px; padding: 10px 25px 10px 11px; cursor: pointer; text-overflow: ellipsis; }
.provider-field select:hover:not(:disabled) { border-color: #658b65; background: #fbfcf5; }
.provider-field select:disabled { cursor: not-allowed; color: #52674f; opacity: .75; }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.model-guidance { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #e7eadf; }
.guide-detail { min-width: 0; font-size: 12px; color: #52634a; line-height: 1.55; margin: 0; flex: 1; }
.guide-source { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: #366747; min-height: 44px; margin: -10px -5px; padding: 10px 5px; flex: none; text-decoration-thickness: 1px; }
.guide-source:hover { color: #113d22; }
.guide-source svg { width: 12px; height: 12px; }
.model-comparison { margin-top: 6px; }
.model-comparison > summary, .metrics-explainer > summary { display: flex; gap: 8px; align-items: center; min-height: 44px; list-style: none; cursor: pointer; color: #456744; font-size: 12px; width: fit-content; }
.model-comparison > summary::-webkit-details-marker, .metrics-explainer > summary::-webkit-details-marker, .state-details > summary::-webkit-details-marker { display: none; }
summary svg { width: 15px; height: 15px; flex: none; }
details[open] > summary > svg { transform: rotate(180deg); }
summary:hover { color: var(--teal); }
.comparison-note { margin: 0 0 8px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.model-guide-list { list-style: none; margin: 8px 0 12px; padding: 0; }
.model-guide-item { padding: 10px 0; border-top: 1px solid var(--line); }
.model-guide-item.selected { padding-left: 10px; padding-right: 10px; background: #f0f5eb; border-radius: 5px; }
.model-guide-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink); }
.model-guide-heading strong { min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.model-guide-item p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.model-info { display: flex; justify-content: space-between; align-items: baseline; gap: 3px 12px; min-width: 0; flex-wrap: wrap; }
.availability { font-size: 11px; color: var(--muted); }
.availability.available { color: #30713c; }
.availability.unavailable { color: #89601c; }
.model-name { font-family: Consolas, monospace; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }

.session-activity { min-width: 0; padding: 29px 26px; background: #094637; color: #fffef2; border-radius: 0 13px 13px 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.voice-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
.voice-orb { height: 48px; width: 48px; display: grid; place-items: center; color: var(--gold); }
.voice-orb svg { width: 43px; height: 43px; stroke-width: 2.5; }
.voice-caption { min-width: 0; }
.voice-caption h3 { font-size: 20px; font-weight: 600; margin: 0 0 5px; letter-spacing: -.3px; line-height: 1.35; }
.voice-caption p { font-size: 13px; color: #c6dbca; margin: 0; line-height: 1.6; }
.waveform { grid-column: 1/-1; height: 26px; display: flex; align-items: center; justify-content: flex-start; gap: 5px; margin-top: 6px; }
.waveform i { width: 3px; height: 24px; display: block; border-radius: 2px; background: #659174; transform: scaleY(.16); transition: transform .09s; }
.voice-stage.listening .waveform i { background: #d5d99d; transform: scaleY(calc(.16 + var(--level) * .84)); }
.voice-stage.listening .waveform i:nth-child(3n) { transform: scaleY(calc(.16 + var(--level) * .64)); }
.voice-stage.listening .waveform i:nth-child(4n) { transform: scaleY(calc(.16 + var(--level) * .4)); }
.voice-stage.speaking .waveform i { background: var(--gold); transform: scaleY(.55); animation: wave .75s var(--ease-settle) 2 alternate; }
.voice-stage.speaking .waveform i:nth-child(3n) { animation-delay: -.6s; }
.voice-stage.speaking .waveform i:nth-child(4n) { animation-delay: -.3s; }
@keyframes wave { from { transform: scaleY(.16); } to { transform: scaleY(1); } }
.session-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.button { border: 1px solid transparent; min-height: 46px; padding: 10px 15px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.button.primary { background: var(--teal); color: #fff; }
.button.primary:hover:not(:disabled) { background: #05592f; }
.button.secondary { background: #fffefa; color: #34533d; border-color: #bdccba; }
.button.secondary:hover:not(:disabled) { background: #eef4e9; border-color: #73956e; }
.button.stop { background: #fff1ea; color: #a43827; border-color: #e9c3b5; }
.button.stop:hover:not(:disabled) { background: #ffe4d7; }
.button:active:not(:disabled) { transform: translateY(1px); }
.session-activity .button.primary { background: var(--gold); color: #173d2e; }
.session-activity .button.primary:hover:not(:disabled) { background: #f3dd96; }
.session-activity .button.secondary { background: transparent; color: #f2f7ea; border-color: #7da38b; }
.session-activity .button.secondary:hover:not(:disabled) { background: #1d5944; border-color: #b5ccaf; }
.session-activity :focus-visible { outline-color: #f3dc8e; }
.session-activity .button:disabled { opacity: .65; }
.stop-square { background: currentColor; width: 9px; height: 9px; border-radius: 2px; flex: none; }
.session-footnote { color: #c6dbca; font-size: 11px; line-height: 1.6; margin: -9px 0 0; max-width: 52ch; }

.dashboard { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.conversation-column, .inspection-column { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.heading-with-count { display: flex; align-items: center; gap: 9px; }
.counter { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; font-size: 11px; background: #edf1e7; color: #536949; border-radius: 6px; font-variant-numeric: tabular-nums; }
.text-button { border: 0; background: none; min-height: 44px; padding: 8px 0 8px 8px; display: inline-flex; align-items: center; gap: 7px; color: #52694b; font-size: 12px; }
.text-button svg { width: 16px; height: 16px; }
.text-button:hover { color: #087447; }
.conversation-card .card-heading { padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.transcript { padding: 22px; height: clamp(280px, calc(100dvh - 570px), 560px); min-height: 280px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bfccba transparent; }
.conversation-empty { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 12px 0; }
.empty-conversation-mark { width: 128px; height: 48px; color: #a3ba98; stroke-width: 2; }
.conversation-empty h3 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; margin: 17px 0 8px; color: #304e34; }
.conversation-empty p { font-size: 14px; line-height: 1.75; margin: 0; color: var(--muted); max-width: 47ch; }
.message { margin-bottom: 23px; display: flex; flex-direction: column; align-items: flex-start; }
.message:last-child { margin-bottom: 0; }
.message.user { align-items: flex-end; }
.message-label { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #67765f; margin-bottom: 6px; }
.message-label strong { font-size: 12px; font-weight: 600; color: #496044; }
.message-bubble { font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 15px; border-radius: 3px 11px 11px 11px; background: #f0f3e9; max-width: 94%; color: #29412d; }
.message.user .message-bubble { background: #e2f0df; color: #204d30; border-radius: 11px 3px 11px 11px; }
.message.pending .message-bubble { border: 1px solid #c6d9be; }
.message-progress { font-size: 12px; color: var(--muted); margin-top: 3px; }
.composer-area { padding: 12px 20px 15px; border-top: 1px solid var(--line); background: #fafbf5; border-radius: 0 0 13px 13px; }
.example-prompts { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 0 10px; }
.prompt-chip { font-size: 12px; min-height: 44px; color: #4d6545; border: 1px solid #d6dfcd; background: #fffefa; border-radius: 7px; padding: 9px 12px; }
.prompt-chip:hover { border-color: #84ab79; color: #1c683b; background: #edf6e6; }
.composer { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 13px; border: 1px solid #b7c7b0; border-radius: 9px; background: #fffefa; }
.composer:focus-within { border-color: #487f39; outline: 2px solid #b8d3a7; outline-offset: 2px; }
.composer textarea { min-width: 0; resize: none; overflow-y: auto; width: 100%; min-height: 24px; height: 24px; max-height: 110px; line-height: 24px; font-size: 16px; border: 0; outline: 0; background: transparent; color: #203c28; padding: 0; caret-color: #087447; }
.composer textarea::placeholder { color: #67795f; }
.composer button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--teal); border: 0; color: #fff; border-radius: 7px; }
.composer button:hover:not(:disabled) { background: #055e32; }
.composer button svg { height: 21px; width: 21px; }
.composer-hint { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); margin: 8px 1px 0; }
.composer-hint > span:last-child { white-space: nowrap; }

.quiet-label { font-size: 11px; color: var(--muted); }
.route-card { background: #fcfef7; border-color: #bfd3b5; }
.route-card .card-heading h2 { color: #20582f; }
.panel-empty { padding: 9px 22px 26px; display: flex; align-items: center; gap: 14px; }
.route-symbol { width: 39px; height: 39px; flex: none; color: #638d53; stroke-width: 1.6; }
.panel-empty p { font-size: 14px; color: #415c36; margin: 0 0 6px; font-weight: 600; }
.panel-empty span { font-size: 13px; line-height: 1.65; color: var(--muted); }
.route-meta { display: flex; justify-content: space-between; gap: 10px; padding: 0 22px 12px; color: var(--muted); font-size: 12px; }
.scenarios { padding: 0 22px; display: flex; flex-direction: column; gap: 18px; max-height: 380px; overflow: auto; scrollbar-width: thin; }
.scenario { padding: 0 0 15px; border-bottom: 1px solid #d7e4cd; flex: none; }
.scenario-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.scenario-heading h3 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.5; }
.confidence { font-size: 18px; font-weight: 650; white-space: nowrap; color: var(--teal); font-variant-numeric: tabular-nums; }
.scenario-id { font-size: 11px; color: #59754d; margin-top: 3px; font-family: Consolas, monospace; overflow-wrap: anywhere; }
.scenario-reason { font-size: 14px; color: #3c5e35; line-height: 1.65; margin: 10px 0 0; overflow-wrap: anywhere; }
.confidence-track { height: 3px; background: #e0ebd5; border-radius: 2px; margin-top: 13px; overflow: hidden; }
.confidence-bar { background: #6b9a4f; height: 100%; border-radius: 2px; }
.alternatives-section { padding: 14px 22px 18px; }
.section-label { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.alternatives { display: flex; flex-wrap: wrap; gap: 7px; }
.alternative { font-size: 12px; color: #52674a; background: #f0f4e9; border-radius: 5px; padding: 5px 8px; line-height: 1.5; overflow-wrap: anywhere; }
.alternative strong { font-weight: 600; color: #38542e; margin-left: 5px; }
.inline-empty { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0; padding: 0 22px 20px; }
.scenarios > .inline-empty { padding: 0; }
.slots { padding-bottom: 2px; }
.slots-table { border-collapse: collapse; font-size: 14px; width: calc(100% - 44px); margin: 0 22px 12px; table-layout: fixed; }
.slots-table td { border-bottom: 1px solid #e5eadf; padding: 8px 0; vertical-align: top; line-height: 1.6; overflow-wrap: anywhere; }
.slots-table tr:last-child td { border-bottom: 0; }
.slots-table td:first-child { color: var(--muted); width: 43%; padding-right: 12px; }
.slots-table td:last-child { color: #304b2c; font-weight: 550; white-space: pre-wrap; }
.state-summary { padding: 12px 22px; background: #f8faf2; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.state-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; font-size: 12px; line-height: 1.6; }
.state-summary span { color: var(--muted); }
.state-summary strong { font-size: 12px; font-weight: 550; color: #3d5e33; text-align: right; overflow-wrap: anywhere; max-width: 60%; }
.state-details { border-top: 1px solid var(--line); }
.state-details summary { padding: 12px 22px; min-height: 44px; color: #526c47; font-size: 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
pre { overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.65; color: #48623c; max-height: 280px; margin: 0; }
.state-details pre { padding: 0 22px 17px; }
.actions { display: flex; flex-direction: column; gap: 12px; }
.action { margin: 0 22px; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
.action-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.action-heading strong { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.action summary { cursor: pointer; color: #527147; font-size: 12px; margin-top: 3px; min-height: 44px; padding-top: 11px; }
.action pre { padding-top: 4px; }
.actions > .action:last-child { margin-bottom: 17px; border-bottom: 0; }
.confirmation { margin: 0 22px 17px; padding: 15px; border-radius: 9px; background: #fbf3dc; border: 1px solid #d9bc6e; }
.confirmation-eyebrow { font-size: 12px; font-weight: 700; color: #765816; }
.confirmation p { font-size: 14px; line-height: 1.65; color: #694f19; margin: 8px 0; overflow-wrap: anywhere; }
.confirmation summary { font-size: 12px; cursor: pointer; color: #765d21; min-height: 44px; padding: 11px 0; }
.confirmation pre { color: #765d21; }
.confirmation-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
.confirmation-buttons .button { flex: 1; }

.metrics-card { padding: 0 2px; }
.metrics-card .card-heading { padding: 4px 0 15px; min-height: 36px; }
.metrics-card .card-heading h2 { font-size: 14px; }
.metrics-grid { display: grid; grid-template-columns: 1.2fr 1fr .9fr 1fr; gap: 14px; }
.metric { padding-left: 14px; border-left: 1px solid #ccd8c2; }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric > span { font-size: 11px; color: var(--muted); display: block; line-height: 1.5; margin-bottom: 7px; }
.metric strong { display: block; font-size: 23px; line-height: 1.3; font-weight: 550; letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: #3f6034; overflow-wrap: anywhere; }
.metric:first-child strong { color: #0b7841; }
.metrics-explainer > summary { font-size: 11px; color: var(--muted); margin-top: 3px; }
.metrics-note { margin: 0 0 4px; font-size: 11px; color: var(--muted); line-height: 1.65; max-width: 82ch; }
.footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 27px; padding: 20px 0 0; border-top: 1px solid #d9e1d0; font-size: 11px; line-height: 1.65; color: var(--muted); }
.dataset-note { display: flex; align-items: flex-start; gap: 9px; }
.dataset-note p { margin: 0; }
.dataset-mark { width: 7px; height: 7px; border: 1px solid #9f894b; transform: rotate(45deg); margin-top: 5px; flex: none; }
.footer-data { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.footer strong { font-weight: 550; color: #4a6342; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dac181; background: #fcf4dc; color: #765518; padding: 7px 10px 7px 16px; font-size: 14px; line-height: 1.6; border-radius: 9px; margin-bottom: 17px; overflow-wrap: anywhere; }
.notice.error { background: #fff1eb; color: #9c3d2f; border-color: #e8c3b6; }
.notice button { background: transparent; border: 0; color: inherit; font-size: 23px; flex: none; min-width: 44px; min-height: 44px; border-radius: 6px; }
.notice button:hover { background: #ead9ab; }
.visually-hidden { position: absolute; height: 1px; width: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 1180px) {
  .session-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .session-activity { padding: 24px 22px; gap: 20px; }
  .session-controls { gap: 8px; }
  .session-controls .button { font-size: 13px; padding-left: 12px; padding-right: 12px; }
  .dashboard { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 20px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 980px) {
  .workspace { padding: 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .session-card { grid-template-columns: 1fr; }
  .session-activity { border-radius: 0 0 13px 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 22px; padding-top: 20px; padding-bottom: 18px; }
  .voice-stage { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .voice-orb, .voice-orb svg { width: 36px; height: 36px; }
  .voice-caption h3 { font-size: 17px; }
  .voice-caption p { font-size: 12px; }
  .waveform { display: none; }
  .session-footnote { grid-column: 1/-1; margin: 0; max-width: none; }
  .session-controls { justify-content: flex-end; }
  .dashboard { grid-template-columns: 1fr; }
  .conversation-column { gap: 20px; }
  .transcript { height: 290px; min-height: 250px; }
  .metrics-grid { grid-template-columns: 1.2fr 1fr .9fr 1fr; }
  .metric:nth-child(3) { border-left: 1px solid #ccd8c2; padding-left: 14px; }
  .inspection-column { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .route-card { grid-column: 1/-1; }
}
@media (max-width: 720px) {
  .topbar-right .team-label, .language-label { display: none; }
  h1 { font-size: 25px; }
  .page-description { font-size: 13px; }
  .session-activity { display: flex; align-items: stretch; }
  .session-controls { justify-content: flex-start; }
  .voice-stage { grid-template-columns: 40px minmax(0, 1fr); }
  .voice-orb, .voice-orb svg { height: 40px; width: 40px; }
  .voice-caption h3 { font-size: 18px; }
  .inspection-column { display: flex; }
  .footer { flex-direction: column; gap: 12px; }
  .footer-data { align-items: flex-start; }
}
@media (max-width: 480px) {
  .topbar { min-height: 74px; padding: 11px 16px; gap: 9px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-icon { width: 35px; height: 39px; border-radius: 12px 12px 12px 3px; }
  .brand-icon svg { width: 24px; }
  .brand-subtitle { font-size: 10px; margin-top: 5px; }
  .topbar-right { font-size: 10px; }
  .demo-label { padding: 5px 7px; }
  .demo-label .status-dot { display: none; }
  .workspace { padding: 22px 14px 18px; }
  h1 { font-size: 25px; max-width: 19ch; }
  .page-heading { margin-bottom: 20px; }
  .page-description { font-size: 13px; margin-top: 10px; }
  .session-card { margin-bottom: 20px; }
  .session-setup { padding: 16px 16px 13px; }
  .session-setup .card-heading { align-items: flex-start; padding-bottom: 13px; gap: 10px; }
  .session-setup .card-heading h2 { font-size: 15px; max-width: 15ch; }
  .badge { font-size: 10px; }
  .provider-row { grid-template-columns: 1fr; gap: 14px; }
  .field-heading { margin-bottom: 5px; }
  .provider-field select { font-size: 16px; }
  .field-hint { margin-top: 6px; }
  .guide-tag { font-size: 11px; }
  .model-guidance { gap: 8px; margin-top: 13px; }
  .guide-detail { min-width: 0; font-size: 12px; }
  .guide-source { font-size: 10px; }
  .model-info { gap: 3px 10px; }
  .model-name { font-size: 10px; }
  .session-activity { padding: 22px 16px 17px; gap: 17px; }
  .session-controls { gap: 8px; }
  .session-controls .button { padding: 10px; flex: 1; font-size: 13px; }
  .session-controls .button svg { width: 17px; height: 17px; }
  .session-footnote { font-size: 11px; }
  .card-heading { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .card-heading h2 { font-size: 16px; }
  .text-button { font-size: 11px; gap: 5px; }
  .transcript { height: 280px; min-height: 240px; padding: 18px 16px; }
  .conversation-empty h3 { font-size: 18px; max-width: 23ch; }
  .conversation-empty p { font-size: 13px; }
  .conversation-empty br { display: none; }
  .composer-area { padding: 10px 12px 13px; }
  .example-prompts { gap: 6px; }
  .prompt-chip { font-size: 11px; padding: 8px 9px; }
  .composer-hint > span:last-child { display: none; }
  .message-bubble { max-width: 97%; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 17px; }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .metric strong { font-size: 23px; }
  .panel-empty { padding: 5px 16px 23px; }
  .route-meta { padding-left: 16px; padding-right: 16px; }
  .scenarios { padding-left: 16px; padding-right: 16px; }
  .alternatives-section { padding-left: 16px; padding-right: 16px; }
  .inline-empty { padding-left: 16px; padding-right: 16px; }
  .slots-table { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; }
  .state-summary { padding-left: 16px; padding-right: 16px; }
  .state-summary > div { gap: 10px; }
  .state-details summary, .state-details pre { padding-left: 16px; padding-right: 16px; }
  .action, .confirmation { margin-left: 16px; margin-right: 16px; }
  .notice { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .voice-stage.listening .waveform i, .voice-stage.speaking .waveform i { transform: scaleY(.4); }
}

/* Partner marks retain their supplied colors and proportions. */
.partner-lockup { display: flex; align-items: center; gap: 14px; flex: none; }
.partner-hackalem { display: grid; place-items: center; padding: 5px 10px; background: #122b36; border-radius: 7px; }
.partner-hackalem img { display: block; width: 112px; height: 44px; object-fit: contain; }
.partner-halyk { display: block; width: 115px; height: 32px; object-fit: contain; }
.partner-divider { font-size: 18px; color: #7b8b80; font-weight: 400; }
.topbar-right .demo-label { font-size: 11px; gap: 4px; background: none; border-left: 1px solid var(--line); border-radius: 0; padding: 7px 0 7px 18px; }
.topbar-right .demo-label strong { font-weight: 600; }
.topbar-right { gap: 20px; min-width: 0; }
.page-heading > div:first-child { min-width: 0; }
.brand { min-width: 0; font-weight: 700; }
.brand-subtitle { line-height: 1.5; }
.provider-field select { transition: border-color var(--motion-fast), background-color var(--motion-fast); }
summary svg { transition: transform var(--motion-fast) var(--ease-settle); }
.message { animation: message-arrive var(--motion-enter) var(--ease-settle); }
#route-results:not([hidden]) { animation: result-arrive var(--motion-enter) var(--ease-settle); }
.confirmation:not([hidden]) { animation: result-arrive var(--motion-enter) var(--ease-settle); }
@keyframes message-arrive { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes result-arrive { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .topbar-right .demo-label { display: none; }
  .model-guidance { flex-wrap: wrap; gap: 3px 12px; }
  .guide-detail { flex-basis: 100%; }
  .model-guidance .guide-source { margin-top: -7px; margin-bottom: -7px; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 12px; padding-top: 13px; padding-bottom: 13px; }
  .topbar-right { flex: 1 0 100%; justify-content: flex-start; padding-top: 11px; border-top: 1px solid var(--line); }
  .partner-lockup { gap: 12px; }
  .partner-hackalem { padding: 3px 9px; }
  .partner-hackalem img { width: 87px; height: 34px; }
  .partner-halyk { width: 105px; height: 29px; }
  .partner-divider { font-size: 16px; }
  .workspace { padding-top: 20px; }
  h1 { font-size: 25px; letter-spacing: -.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .message, #route-results:not([hidden]), .confirmation:not([hidden]) { animation: none; }
  summary svg { transition: none; }
}
