/* Shared tokens and components. Responsive rules are grouped at the end. */
:root {
  color-scheme: dark;
  --bg: #0b1119;
  --surface: #121b27;
  --surface-raised: #1a2635;
  --text: #f3f0e9;
  --muted: #a4afbd;
  --line: #293646;
  --line-hover: #53657b;
  --accent: #eab46e;
  --accent-hover: #f3c58c;
  --accent-soft: #29251f;
  --accent-text: #f0c78f;
  --accent-line: #665135;
  --button-text: #21180e;
  --success: #a0d7bb;
  --success-soft: #172e27;
  --danger: #ffabb3;
  --danger-soft: #33222b;
  --danger-line: #784552;
  --radius: 14px;
  --radius-control: 9px;
  --control-height: 44px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { overflow-wrap: break-word; }
h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.04em; font-weight: 600; line-height: 1.16; margin-bottom: 12px; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; font-weight: 650; margin-bottom: 20px; }
h3 { font-size: 16px; margin-bottom: 6px; }
p { margin-bottom: 16px; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; margin-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; background: var(--surface); padding: 12px; z-index: 50; }
.skip-link:focus { top: 12px; }
.brand { min-height: 48px; color: var(--text); font-size: 21px; letter-spacing: -.8px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-light { font-weight: 450; color: var(--accent); }
.pipeline-panel { padding: clamp(18px, 3vw, 32px); }
.pipeline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.pipeline-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.pipeline-card h2 { min-height: 0; margin-bottom: 12px; font-size: 19px; }
.pipeline-card > p { min-height: 3.5em; color: var(--muted); font-size: 13px; }
.pipeline-card .model-note { min-height: 0; margin: 14px 0 0; font-size: 12px; }
.pipeline-card select { width: 100%; min-width: 0; }
.connection-row, .pipeline-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.connection-row .field-help { margin-bottom: 0; }
.connection-row > div { min-width: 0; }
.connection-row .button, .pipeline-actions .button { min-width: 165px; }
.pipeline-actions [role="status"] { color: var(--muted); font-size: 13px; }
.voice-settings { border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0 24px; background: var(--bg); margin-top: 12px; }
.voice-settings .section-heading { margin-bottom: 18px; flex-wrap: nowrap; align-items: flex-start; }
.voice-settings .section-heading p { margin: 0; }
.voice-settings .form-grid { margin-bottom: 16px; }
.voice-preview-row { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px 44px; align-items: center; gap: 12px; margin-top: 18px; }
.voice-preview-row .button { width: 165px; grid-row: 1; }
.voice-preview-row audio { width: 100%; height: 44px; min-width: 0; grid-row: 2; }
.voice-preview-status { min-height: 6.2em; margin: 10px 0 0; }
.speed-control { position: relative; margin-bottom: 0; }
.speed-control output { float: right; font-variant-numeric: tabular-nums; }
.speed-control input { width: 100%; accent-color: var(--accent); min-height: 48px; padding: 0; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 400; }
.review-language { max-width: 320px; }
.brand img { border-radius: 10px; }
.button { min-height: var(--control-height); border-radius: var(--radius-control); border: 1px solid transparent; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--button-text); background: var(--accent); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; min-width: 120px; }
.button:hover:not(:disabled) { background: var(--accent-hover); }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.button.secondary:hover:not(:disabled) { background: var(--surface-raised); border-color: var(--line-hover); }
.button.full { width: 100%; }
.button.danger { background: #9b3045; color: #fff; }
.button.danger:hover { background: #b13951; }
.button.danger-outline { background: transparent; color: var(--danger); border-color: var(--danger-line); }
.button.danger-outline:hover { background: var(--danger-soft); }
.text-button, .icon-button { background: transparent; border: 0; min-height: var(--control-height); padding: 8px 12px; color: var(--muted); font-size: 14px; border-radius: var(--radius-control); }
.text-button:hover, .icon-button:hover { background: var(--surface-raised); color: var(--text); }
.icon-button { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.danger-text { color: var(--danger); }
.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1344px; margin: auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; gap: 24px; }
.topbar nav { display: flex; gap: 8px; align-items: center; }
.nav-link, .account-link { color: var(--muted); font-size: 14px; text-decoration: none; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 10px 4px; }
.nav-link.selected { color: var(--accent); font-weight: 650; background: var(--accent-soft); }
.account-link { min-width: 48px; border-left: 1px solid var(--line); padding-left: 16px; }
.account-identity { min-width: 0; max-width: 200px; display: grid; line-height: 1.4; gap: 3px; }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.signin-status { color: var(--muted); font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.signin-status .status-dot { color: var(--accent); width: 5px; height: 5px; }
.container { max-width: 1344px; padding: 36px 32px 64px; margin: 0 auto; min-height: calc(100vh - 170px); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 28px; }
.page-heading > div { min-width: 0; }
.page-heading p:last-child { margin-bottom: 0; }
.page-heading > .button { flex-shrink: 0; }
.page-heading > .actions { margin-top: 0; flex-shrink: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: none; }
.overview-strip { display: grid; grid-template-columns: 1fr 1fr 1.2fr; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; background: var(--surface); margin-bottom: 24px; }
.overview-strip > div { padding-right: 30px; }
.overview-strip > div + div { border-left: 1px solid var(--line); padding-left: 30px; }
.metric-label { display: block; font-size: 11px; letter-spacing: .06em; color: var(--muted); font-weight: 650; margin-bottom: 7px; }
.overview-strip strong { display: block; font-size: 16px; }
progress { display: block; width: 100%; height: 4px; margin-top: 10px; appearance: none; border: 0; background: var(--surface-raised); border-radius: 4px; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-raised); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.notice { padding: 15px 18px; margin-bottom: 24px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 10px; color: var(--accent-text); font-size: 14px; border-color: var(--accent-line); }
.notice p { margin: 3px 0 0; }
.renewal { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.allowance-note { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.room-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.room-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); display: flex; flex-direction: column; box-shadow: none; transition: border-color .15s; }
.room-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.room-symbol { width: 46px; height: 46px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--accent); border-color: var(--accent-line); }
.room-symbol svg { width: 24px; height: 24px; }
.room-number { font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.room-card h2 { margin-bottom: 10px; overflow-wrap: anywhere; min-height: 0; }
.room-description { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; margin-bottom: 18px; }
.room-meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; margin-top: auto; padding-bottom: 18px; }
.room-meta span + span:before { content: '·'; margin-right: 12px; }
.room-actions { padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.room-actions > .button:first-child { flex: 1; }
.room-actions .button { padding-left: 12px; padding-right: 12px; width: 100%; min-width: 0; }
.empty-state { text-align: center; padding: 44px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty-state.small { border: 0; background: transparent; padding: 56px 24px; }
.empty-icon { display: grid; place-items: center; margin: 0 auto 22px; color: var(--accent); width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); }
.empty-icon svg { width: 32px; height: 32px; }
.empty-state h2 { margin-bottom: 12px; }
.empty-state .notice { max-width: 500px; margin: 24px auto 0; }
.site-footer { max-width: 1344px; padding: 24px 32px; margin: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
label { display: block; font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 18px; }
input, textarea, select { display: block; width: 100%; min-height: 46px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--text); line-height: 1.5; margin-top: 8px; font-weight: 400; font-size: 16px; }
input:disabled { background: var(--surface-raised); color: var(--muted); opacity: .75; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; line-height: 1.65; }
select { padding-right: 28px; cursor: pointer; }
.field-help { font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.55; display: block; margin: 7px 0 0; }
.optional { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-error, .field-error { color: var(--danger); font-size: 13px; }
.form-error { padding: 13px 16px; border: 1px solid var(--danger-line); border-radius: 8px; background: var(--danger-soft); margin-bottom: 18px; }
.field-error { display: block; margin-top: 5px; font-weight: 400; }
[aria-invalid=true] { border-color: var(--danger); }
.form-panel { max-width: 660px; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-footer .danger-text { margin-left: auto; }
.save-note { color: var(--accent); font-size: 13px; }
.back-link { display: inline-flex; min-height: 48px; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; color: var(--muted); margin-top: -16px; margin-bottom: 20px; }
.back-link svg { width: 15px; }
details { margin-bottom: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
summary { min-height: 48px; padding: 10px 0; font-weight: 600; cursor: pointer; }
.detail-fields { padding-top: 14px; }
.auth-page { background: radial-gradient(ellipse at 16% 35%, #26384d40, transparent 55%), var(--bg); }
.auth-header { max-width: 1280px; padding: 26px 40px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.auth-main { max-width: 1050px; margin: 6vh auto 8vh; padding: 0 32px; display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; min-height: 470px; }
.auth-intro h2 { font-size: clamp(42px, 5vw, 62px); letter-spacing: -.045em; line-height: 1.06; margin-bottom: 25px; max-width: 450px; }
.auth-intro > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.75; }
.intro-note { margin-top: 32px; font-size: 12px; color: var(--accent-text); display: flex; align-items: center; gap: 10px; }
.tiny-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 70px #0003; }
.auth-card h1 { font-size: 27px; letter-spacing: -.03em; margin-bottom: 10px; }
.auth-card > .muted { font-size: 14px; margin-bottom: 28px; }
.auth-card form > .button { margin-top: 4px; }
.auth-switch { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }
.auth-switch a { font-weight: 600; }
.auth-footer { text-align: center; padding: 24px; font-size: 12px; color: var(--muted); }
.status-page { max-width: 620px; padding: 60px 30px; margin: 5vh auto; text-align: center; }
.status-page h1 { font-size: 36px; }
.status-symbol { display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); width: 70px; height: 70px; margin: auto auto 28px; font-size: 28px; }
.boot { display: flex; min-height: 80vh; justify-content: center; align-items: center; color: var(--muted); }
.customers-panel { padding: 0; overflow: hidden; }
.list-tools { padding: 18px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-tools label { margin: 0; }
.list-tools input, .list-tools select { margin: 0; }
.search-field { position: relative; flex: 1 1 260px; }
.search-field svg { position: absolute; left: 13px; top: 14px; color: var(--muted); }
.search-field input { padding-left: 42px; }
.sort-direction { font-size: 21px; padding: 9px 15px; min-width: 48px; }
.customer-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.customer-table th { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface); padding: 13px 16px; border-bottom: 1px solid var(--line); }
.customer-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.customer-table th:first-child, .customer-table td:first-child { padding-left: 22px; }
.customer-table tbody tr:last-child td { border-bottom: 0; }
.customer-name { display: inline-flex; align-items: center; gap: 8px; min-height: 0; color: var(--text); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.customer-name:hover { color: var(--accent); }
.customer-name svg { width: 13px; color: var(--muted); }
.customer-email { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-raised); white-space: nowrap; }
.badge.active { color: var(--success); background: var(--success-soft); }
.badge.pending { color: var(--accent-text); background: var(--accent-soft); }
.badge.disabled { color: var(--danger); background: var(--danger-soft); }
.status-dot { display: inline-block; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.list-footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.pagination { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.pagination .button { min-width: 84px; font-size: 12px; padding: 10px 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.customer-form > .form-footer { border: 0; padding: 20px 0 0; }
.customer-form .panel label:last-child { margin-bottom: 0; }
.extend-contract { color: var(--accent); padding: 0 0 10px; margin-top: -10px; margin-bottom: 12px; }
.section-block { margin-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .section-heading .eyebrow { margin-bottom: 5px; }
.payment-list { list-style: none; margin: 0; padding: 0; }
.payment-list li { display: flex; gap: 24px; justify-content: space-between; padding: 14px 0; }
.payment-list li + li { border-top: 1px solid var(--line); }
.payment-list p { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.danger-zone { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.danger-zone p { font-size: 13px; margin: 0; }
.modal { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; max-width: 480px; width: calc(100% - 32px); max-height: 90dvh; background: var(--surface); color: var(--text); box-shadow: 0 24px 100px #0008; }
.modal.wide { max-width: 700px; }
.modal::backdrop { background: #050910bd; backdrop-filter: blur(4px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px 28px; }
.modal-header h2 { margin: 0; }
.modal-body { padding: 0 28px 28px; }
.modal-body > p { font-size: 14px; }
.pin-input { font-size: 30px; letter-spacing: .35em; text-align: center; }
.recovery { display: block; margin: 16px auto 0; color: var(--accent); }
.device-check > div { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.device-check > div > div { flex: 1; }
.device-check .field-help { font-size: 11px; }
.device-check .button { padding: 10px 12px; font-size: 12px; }
.step-number { font-size: 13px; background: var(--accent-soft); color: var(--accent); min-width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.toast { position: fixed; z-index: 100; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--surface-raised); color: var(--text); padding: 14px 22px; border-radius: 10px; box-shadow: 0 5px 30px #00000035; max-width: calc(100vw - 32px); width: max-content; font-size: 13px; border: 1px solid var(--line-hover); pointer-events: none; }
.player-page { background: radial-gradient(ellipse at 50% 42%, #26394b52, transparent 60%), var(--bg); color: var(--text); color-scheme: dark; }
.player-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.player-header { display: flex; padding: 22px 32px; align-items: center; justify-content: space-between; gap: 20px; }
.player-header .brand { color: var(--text); font-size: 18px; }
.player-header .brand img { width: 30px; height: 30px; }
.player-mode { color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.player-settings { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.player-settings:hover { background: var(--surface-raised); color: var(--text); }
.player-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.player-main .eyebrow { color: var(--accent); margin-bottom: 14px; font-size: 11px; }
.player-main h1 { font-size: clamp(28px,4vw,43px); font-weight: 600; max-width: 700px; overflow-wrap: anywhere; }
.player-intro { color: var(--muted); margin-bottom: 0; font-size: 15px; max-width: 440px; }
.talk-wrap { margin: 36px 0 26px; padding: 16px; border: 1px solid var(--line); border-radius: 50%; border-color: var(--accent-line); box-shadow: 0 0 70px #eab46e08; }
.talk-button { width: 216px; height: 216px; border-radius: 50%; border: 1px solid var(--line-hover); background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; font-size: 15px; font-weight: 600; outline-offset: 8px; border-color: var(--accent-line); }
.talk-button svg { width: 43px; height: 43px; stroke-width: 1.25; }
.talk-wrap[data-phase=ready] .talk-button:hover:not(:disabled) { background: #3b3024; }
.talk-button:disabled { opacity: 1; cursor: default; }
.talk-button:focus-visible { outline: 3px solid var(--accent); }
[data-phase=recording] { border-color: var(--accent); }
[data-phase=recording] .talk-button { background: var(--accent); color: var(--button-text); border-color: var(--accent); }
[data-phase=thinking] .talk-button { background: var(--surface-raised); color: var(--muted); border-color: var(--line); }
[data-phase=thinking] .talk-button svg { animation: breathe 1.6s ease-in-out infinite; }
[data-phase=speaking] .talk-button { border-color: var(--accent); }
[data-phase=speaking] .talk-button svg { animation: breathe 1s ease-in-out infinite; }
.player-status { min-height: 52px; max-width: 480px; }
#voice-status { margin: 0; color: var(--text); font-size: 15px; }
#record-timer { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-help { color: var(--muted); font-size: 13px; margin: 10px 0 0; max-width: 420px; }
.keyboard-hint { display: none; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; margin: -10px 0 18px; }
.keyboard-hint kbd { font: inherit; padding: 1px 9px; border: 1px solid var(--line-hover); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }
.keyboard-hint.keyboard-detected { display: flex; }
.player-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 32px; color: var(--muted); font-size: 12px; }
.player-privacy { max-width: 520px; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.player-privacy a, .player-footer a { color: inherit; text-decoration: underline; }
.voice-disclosure { display: flex; align-items: center; gap: 8px; }
.voice-disclosure .status-dot { color: var(--accent); }
.demo-label { color: var(--accent-text); }
.player-page .modal { color-scheme: dark; }
html { scrollbar-gutter: stable; scroll-padding-top: 24px; }
input, select { min-height: 46px; }
.site-footer nav, .marketing-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.topbar .brand { flex-shrink: 0; }
.page-heading h1 { letter-spacing: -.045em; }
.wizard-width { max-width: 1040px; margin: auto; }
.wizard-width .page-heading { margin-bottom: 24px; }
.setup-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; margin: 0 0 24px; gap: 12px; }
.step-tab { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 54px; border: 1px solid transparent; background: var(--surface); border-radius: 12px; text-align: left; padding: 8px 12px; color: var(--muted); font-size: 13px; font-weight: 600; border-color: var(--line); }
.step-index { border: 1px solid var(--line); border-radius: 50%; width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; }
.step-tab[aria-current=step] { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.step-tab[aria-current=step] .step-index { background: var(--accent); color: var(--button-text); border-color: var(--accent); }
.setup-panel { padding: 26px 30px 0; box-shadow: none; }
.setup-feedback { min-height: 24px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.setup-feedback .form-error { margin-bottom: 8px; }
.setup-block { min-height: 0; padding-bottom: 12px; }
.step-title { margin-bottom: 22px; }
.step-title .eyebrow { display: block; margin-bottom: 8px; }
.step-title h2 { font-size: 26px; margin-bottom: 12px; outline-offset: 5px; }
.step-title p { max-width: 650px; margin-bottom: 0; }
.speaking-guide { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.speaking-guide span { display: inline-flex; align-items: center; gap: 6px; }
.speaking-guide svg { width: 15px; height: 15px; color: var(--accent); }
.transcript-label { font-size: 13px; }
.transcript-label textarea { min-height: 180px; }
.recording-row { display: grid; grid-template-columns: 186px minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 10px; }
.record-note { min-width: 186px; }
.record-note[aria-pressed=true] { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.record-status { display: flex; align-items: center; min-height: 4.65em; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wizard-footer { display: grid; grid-template-columns: 160px 1fr 180px; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); margin-top: 20px; position: relative; background: var(--surface); }
.wizard-footer .button { width: 100%; min-width: 0; }
.step-caption { text-align: center; color: var(--muted); font-size: 12px; }
.setup-footnote { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; padding: 20px 15px 0; max-width: 700px; margin: auto; }
.setup-footnote svg { width: 16px; height: 16px; }
.review-notice { background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 16px 18px; border-radius: 12px; color: var(--accent-text); margin-bottom: 18px; font-size: 14px; }
.review-notice ul { padding-left: 20px; margin-bottom: 8px; }
.review-notice li + li { margin-top: 7px; }
.review-notice p { margin: 0; font-size: 12px; }
.review-success { font-size: 13px; color: var(--accent); }
.setup-review textarea { font-size: 14px; background: var(--surface); }
.prompt-playground { padding: 20px; border: 1px solid var(--line); border-radius: 12px; margin: 20px 0; background: var(--bg); }
.prompt-playground .section-heading { margin-bottom: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.prompt-playground h3 { margin-bottom: 2px; }
.prompt-playground .field-help { margin: 0; }
.question-chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.question-chip { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--accent); text-align: left; font-size: 12px; line-height: 1.5; }
.question-chip:hover { background: var(--accent-soft); }
.test-results { min-height: 340px; }
.test-chat { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.test-current { min-width: 0; }
.test-current > .muted { margin: 0; color: var(--muted); font-size: 13px; padding: 14px 0; }
.test-history-slot { min-height: 44px; margin-top: 12px; }
.test-history { margin: 0; padding: 0; border: 0; }
.test-history > summary { font-size: 12px; color: var(--muted); }
.chat-message { padding: 12px 15px; border-radius: 12px; background: var(--accent-soft); margin: 8px 22px 8px 0; overflow-wrap: anywhere; }
.chat-message.user { background: var(--surface); border: 1px solid var(--line); margin-right: 0; margin-left: 22px; }
.chat-message span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 5px; }
.test-input { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; align-items: start; margin-top: 16px; }
.test-input label { margin: 0; min-width: 0; }
.test-input input { margin: 0; }
#test-status { min-height: 3.1em; padding: 0; margin: 10px 0; overflow-wrap: anywhere; }
.review-check { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; font-size: 13px; margin-bottom: 0; }
.review-check input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--accent); }
.editor-extras { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; }
.legal-page { max-width: 780px; min-height: 65vh; padding: 60px 0; }
.legal-page h2 { margin-top: 28px; }
.legal-page p { overflow-wrap: anywhere; }
.legal-page h2 { font-size: 20px; }
.legal-page p { font-size: 14px; line-height: 1.7; }
.operator-privacy p { max-width: 760px; line-height: 1.6; }
.registration-agreement { margin: 6px 0 18px; }
.agreement-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; font-weight: 400; cursor: pointer; }
.agreement-checkbox input[type=checkbox] { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 18px; }
.registration-agreement .field-help { margin: 8px 0 0 28px; }
.agreement-record { margin: 20px 0; }
.contract-page h1 { font-size: clamp(30px, 5vw, 44px); }
.contract-summary { padding-left: 20px; font-size: 14px; line-height: 1.7; }
.contract-summary li { margin: 8px 0; }
.contract-group { border-bottom: 1px solid var(--line); padding: 10px 0; }
.contract-group > summary { min-height: 44px; align-content: center; font-size: 16px; font-weight: 600; }
.contract-group section:last-child { margin-bottom: 24px; }
.workspace-details { margin-bottom: 18px; color: var(--muted); font-size: 13px; border-top: 0; padding-top: 0; }
.workspace-details summary { min-height: 44px; padding: 8px 0; cursor: pointer; }
.workspace-details .overview-strip { margin: 10px 0 0; }
.button.disabled-link { pointer-events: none; }
.actions, .room-actions, .editor-extras, .section-heading, .pipeline-actions { gap: 12px; flex-wrap: wrap; }
.actions.centered { justify-content: center; }
.section-heading > div { min-width: 0; }
.section-heading .button { flex-shrink: 0; }
.button, .text-button, .question-chip, summary { transition: background .15s, border-color .15s; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nav-link { padding: 10px 12px; border-radius: var(--radius-control); white-space: nowrap; }
.nav-link:hover { color: var(--text); background: var(--surface-raised); }
.account-link.selected { color: var(--accent); }
input:not([type=range]):not([type=checkbox]), textarea, select { background: var(--bg); border-color: var(--line-hover); }
input:hover:not(:disabled), textarea:hover, select:hover { border-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); }
.notice a { color: var(--accent-text); }
.approval-page { max-width: 620px; padding-top: 28px; margin-top: 2vh; }
.approval-page h1 { font-size: clamp(28px, 4vw, 38px); }
.status-symbol svg { width: 30px; height: 30px; }
.approval-steps { text-align: left; list-style: none; padding: 0; margin: 30px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.approval-steps li { display: flex; align-items: center; gap: 16px; padding: 18px 22px; color: var(--muted); }
.approval-steps li + li { border-top: 1px solid var(--line); }
.approval-steps li > span { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }
.approval-steps .complete > span { color: var(--success); background: var(--success-soft); }
.approval-steps .current { color: var(--text); background: var(--accent-soft); }
.approval-steps .current > span { color: var(--button-text); background: var(--accent); border-color: var(--accent); }
.approval-steps small { display: block; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; font-size: 12px; }
#approval-status { min-height: 44px; margin-top: 20px; }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 22px 26px; background: var(--accent-soft); margin-bottom: 24px; }
.next-step p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.next-step h2 { font-size: 19px; margin: 0; }
.next-step .button { flex-shrink: 0; }
.empty-path { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: center; color: var(--muted); font-size: 12px; margin: 24px 0; }
.empty-path span { display: inline-flex; gap: 8px; align-items: center; }
.empty-path b { color: var(--accent); }
.room-card:hover { border-color: var(--line-hover); }
.room-actions .start-game:not(.secondary) { grid-column: 1 / -1; }
.room-card .room-blocker { font-size: 12px; margin: 14px 0 0; color: var(--accent-text); }
.room-card .room-blocker a { color: inherit; }
.customer-table tbody tr:hover { background: #ffffff03; }
.customer-table th:last-child { width: auto; }
.customer-table .button { min-width: 0; padding: 10px 12px; font-size: 12px; min-height: 40px; }
.approval-banner { background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 22px; border-radius: var(--radius); margin-bottom: 24px; }
.approval-banner h2 { font-size: 20px; margin-bottom: 6px; }
.approval-banner p { color: var(--muted); margin: 0; font-size: 13px; }
.customer-form .form-footer { background: var(--bg); padding: 18px 0; }
.customer-form .panel { align-self: start; }
.customer-secondary { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px 24px; }
.customer-secondary .section-block { margin-top: 12px; margin-bottom: 24px; }
.customer-secondary .panel { padding: 16px 0 0; border: 0; }
.customer-secondary .danger-zone { margin-top: 12px; margin-bottom: 20px; }
.service-states { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.service-states .badge { border: 1px solid var(--line); }
.service-help { margin: 20px 0; }
.service-help p { color: var(--muted); font-size: 13px; }
.service-help code { color: var(--accent-text); }
.pipeline-actions { padding-top: 20px; border-top: 1px solid var(--line); }
.pipeline-actions [role=status] { flex: 1; }
.wizard-width .page-heading .eyebrow { font-size: 10px; }
.step-tab:hover:not(:disabled) { border-color: var(--line-hover); }
.step-tab[data-complete=true]:not([aria-current=step]) .step-index { color: var(--success); border-color: var(--success); }
.setup-review .step-title { margin-bottom: 18px; }
.review-notice > p { margin-top: 8px; }
.review-notice summary { min-height: 32px; padding: 0; }
.review-facts { margin-bottom: 20px; }
.review-facts > summary { font-size: 13px; color: var(--muted); }
.review-facts p { white-space: pre-wrap; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.advanced-prompt { margin: 20px 0; }
.advanced-prompt summary { color: var(--muted); font-size: 13px; }
.advanced-prompt label { margin: 8px 0 0; }
.test-audio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 14px 0 0; }
.test-audio label { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: 12px; }
.test-audio input { width: 18px; min-height: 18px; margin: 0; }
.test-audio-player { display: grid; align-items: center; min-height: 44px; }
.test-audio audio { width: 100%; height: 44px; }
.test-audio audio:not([hidden]) + span { display: none; }
.save-guidance { font-size: 12px; color: var(--muted); margin: 0; }
.preview-banner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 12px 20px; background: var(--accent-soft); color: var(--accent-text); border-bottom: 1px solid var(--accent-line); font-size: 13px; }
.preview-banner .text-button { color: var(--accent-text); }
.preview-banner .button { min-height: 40px; }
.account-nav { display: flex; gap: 12px; align-items: center; margin-left: 8px; }
.topbar .main-nav { margin-left: auto; justify-content: flex-start; }
.platform-voice-preview { margin-top: 20px; }
.platform-voice-preview > summary { min-height: 48px; }
.platform-voice-preview form { max-width: 620px; padding-top: 12px; }
.plan-details { margin-top: 24px; }
.review-workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.review-workbench .prompt-playground { margin-top: 0; }
.review-workbench .voice-settings { margin-bottom: 0; }
.review-workbench .voice-settings .section-heading { margin-bottom: 12px; }
.review-workbench .question-chip { font-size: 12px; }
.review-workbench .form-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
.review-workbench .form-grid label { margin-bottom: 14px; }
.review-workbench .review-language label { margin-bottom: 16px; }
#rebuild-prompt { margin-top: 14px; }
.prompt-playground .section-heading .text-button { min-width: 0; padding: 8px; }
.emergency-controls { margin-top: 24px; border-color: var(--danger-line); }
.emergency-controls h2 { font-size: 20px; }
.emergency-controls > p { max-width: 760px; }
.emergency-controls > p:empty { display: none; }
.ai-outage { padding: 14px 24px; background: var(--danger-soft); color: var(--danger); border-bottom: 1px solid var(--danger-line); text-align: center; }

.button.small { min-height: 40px; min-width: 0; padding: 8px 12px; font-size: 12px; }
input[readonly] { color: var(--muted); }
.table-scroll { position: relative; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.table-scroll[aria-label="Accounts table"] .customer-table { min-width: 1040px; }
.table-scroll .customer-table th { white-space: nowrap; }
.table-actions, .account-actions { display: flex; align-items: center; gap: 8px; }
.account-actions { flex-wrap: wrap; }
.account-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.cost-meter { display: block; min-width: 120px; height: 3px; margin-top: 6px; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.admin-metric { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-metric strong { display: block; font-size: 28px; line-height: 1.3; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.admin-metric > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.admin-metric small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.platform-costs { margin-bottom: 28px; }
.platform-costs .section-heading { margin-bottom: 14px; }
.platform-costs .admin-metrics { margin-bottom: 12px; }
.platform-costs .cost-notes { max-width: 900px; }
.provider-credit strong { font-size: 21px; }
.provider-credit .back-link { margin: 12px 0 0; font-size: 12px; }
.account-editor .account-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 20px; }
.account-editor .back-link { margin: 12px 0; }
.account-editor .form-grid label { margin-bottom: 8px; }
.account-editor .form-footer { margin-top: 20px; }
.support-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 16px 20px; margin-bottom: 22px; }
.support-context p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.support-context a { color: var(--accent-text); }
.support-context > div { min-width: 0; overflow-wrap: anywhere; }
.note-helper { padding-top: 0; border-top: 0; margin: 0 0 20px; }
.note-helper summary { color: var(--muted); font-size: 13px; }
.note-template { font-family: var(--font); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; color: var(--muted); font-size: 13px; }
.review-fact { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review-fact:last-child { border: 0; }
.review-fact > header, .review-fact .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.review-fact h3 { margin: 0; }
.room-tools { margin-bottom: 20px; max-width: 420px; }
.room-tools label { margin: 0; }
.password-field { margin-bottom: 20px; }
.password-field label { margin-bottom: 8px; }
.password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.password-control input { margin: 0; min-width: 0; }
.password-toggle { min-width: 60px; border: 1px solid var(--line); }
.auth-header .back-link { margin: 0; }


.cost-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 24px; }
.cost-breakdown > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.cost-breakdown span, .cost-breakdown small { display: block; color: var(--muted); font-size: 12px; }
.cost-breakdown strong { display: block; font-size: 20px; margin: 6px 0; font-variant-numeric: tabular-nums; }
.cost-history .customer-table { min-width: 380px; }


/* Stable test controls: results grow below the composer, without a nested scroller. */
.prompt-playground .question-chip { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; min-width: 0; height: 52px; padding: 8px 12px; color: var(--text); border-radius: 8px; }
.prompt-playground .question-chip svg { width: 16px; height: 16px; color: var(--muted); }
.prompt-playground .question-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prompt-playground .chat-message { margin: 0 0 12px; padding: 12px 14px; border-radius: 8px; }
.prompt-playground .chat-message.user { background: transparent; border: 0; padding: 0 0 12px; margin: 0; color: var(--muted); }
.prompt-playground .chat-message.assistant { margin-bottom: 0; white-space: pre-wrap; }
.setup-messages:has(> :not([hidden])) { padding-bottom: 18px; }
.setup-messages .form-error { margin: 0 0 10px; }
.modal, textarea, .table-scroll { scrollbar-width: thin; scrollbar-color: var(--line-hover) transparent; }

@keyframes breathe { 50% { opacity: .4; } }

@media (any-hover: hover) and (any-pointer: fine) {
  .keyboard-hint { display: flex; }
}

@media (max-width: 1050px) {
  .pipeline-grid { grid-template-columns: 1fr; }
  .pipeline-card h2, .pipeline-card > p, .pipeline-card .model-note { min-height: 0; }
}

@media (max-width: 1000px) {
  .room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auth-main { gap: 48px; grid-template-columns: 1fr 400px; }
  .auth-intro h2 { font-size: 44px; }
  .overview-strip { padding: 20px; }
  .overview-strip > div + div { padding-left: 20px; }
  .overview-strip > div { padding-right: 20px; }
  .topbar-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 6px 20px; }
  .topbar nav { flex-wrap: wrap; gap: 8px; }
  .account-nav { margin-left: auto; }
}

@media (max-width: 760px) {
  .container { padding: 30px 20px 48px; }
  .topbar-inner { padding: 0 20px; min-height: 76px; gap: 12px; display: grid; grid-template-columns: 1fr auto; }
  .topbar nav { gap: 8px; margin-left: 0; width: 100%; justify-content: flex-start; }
  .account-link { padding-left: 12px; }
  .topbar .brand { font-size: 18px; gap: 8px; grid-column: 1; grid-row: 1; }
  .topbar .brand img { width: 29px; height: 29px; }
  .topbar .text-button { padding: 8px; font-size: 12px; }
  .nav-link { font-size: 13px; padding: 8px 10px; }
  .overview-strip { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .overview-strip > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 17px 0 0; }
  .page-heading { gap: 15px; margin-bottom: 26px; align-items: flex-start; }
  .page-heading > .button { margin-top: 30px; }
  .room-card { padding: 22px; }
  .auth-main { max-width: 480px; display: block; margin: 24px auto 48px; padding: 0 22px; }
  .auth-intro { display: none; }
  .auth-header { padding: 26px; }
  .auth-card { padding: 28px; }
  .detail-grid { grid-template-columns: 1fr; }
  .list-tools { flex-wrap: wrap; padding: 18px; }
  .search-field { flex-basis: 100%; }
  .list-tools > label:not(.search-field) { flex: 1; }
  .list-footer { padding: 16px; gap: 14px; flex-wrap: wrap; }
  .list-footer .pagination { margin-left: auto; }
  .player-header { padding: 16px 20px; }
  .player-mode { display: none; }
  .player-footer { padding: 20px; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .player-footer > span:last-child { display: none; }
  .player-settings span { font-size: 12px; }
  .player-main { padding-top: 28px; }
  .talk-wrap { margin: 38px 0 25px; }
  .talk-button { width: 210px; height: 210px; }
  .site-footer { padding: 20px; }
  .setup-panel { padding: 22px 22px 0; }
  .setup-steps { gap: 5px; }
  .step-tab { padding: 8px; gap: 7px; font-size: 12px; }
  .setup-block { min-height: 0; }
  .step-title h2 { font-size: 26px; }
  .step-title p { font-size: 14px; }
  .wizard-footer { grid-template-columns: 142px 1fr 160px; }
  .pipeline-card > p { min-height: 0; }
  .next-step { padding: 20px; flex-wrap: wrap; gap: 16px; }
  .topbar .account-link { border: 0; padding: 4px 0 8px; grid-column: 1 / -1; grid-row: 2; }
  .topbar .account-identity { max-width: none; display: flex; align-items: center; gap: 12px; min-width: 0; }
  .topbar .account-name { min-width: 0; max-width: 45vw; font-size: 12px; }
  .account-nav { display: contents; }
  .topbar #sign-out { grid-column: 2; grid-row: 1; justify-self: end; }
  .topbar .main-nav { grid-column: 1 / -1; grid-row: 3; margin: 0; width: 100%; padding-bottom: 8px; }
  .review-workbench { grid-template-columns: 1fr; }
  .voice-preview-row .button { width: 165px; }
}

@media (max-width: 600px) {
  .voice-settings { padding: 16px; }
  .connection-row { align-items: stretch; flex-direction: column; }
  .pipeline-actions { display: grid; grid-template-columns: 1fr; }
  .pipeline-actions [role="status"] { min-height: 3em; text-align: center; }
}

@media (max-width: 500px) {
  .test-results { min-height: 420px; }
  .voice-preview-status { min-height: 7.75em; }
  .cost-breakdown { grid-template-columns: 1fr; gap: 10px; }
  .room-grid { grid-template-columns: 1fr; }
  .page-heading { flex-wrap: wrap; }
  .page-heading > .button { margin-top: 0; width: 100%; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 22px; }
  .customers-panel { padding: 0; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading .button { padding: 11px; font-size: 12px; }
  .danger-zone { align-items: flex-start; flex-direction: column; }
  .payment-list li { flex-direction: column; gap: 4px; }
  .modal { margin: auto auto 12px; max-height: 92dvh; border-radius: 18px; }
  .modal-body { padding: 0 22px 24px; }
  .modal-header { padding-left: 22px; }
  .form-footer .button { flex: 1; }
  .player-main h1 { font-size: 28px; }
  .topbar-inner { flex-wrap: wrap; padding: 10px 16px; gap: 12px 8px; }
  .topbar .brand { min-height: 42px; font-size: 19px; }
  .topbar nav { margin-left: auto; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .topbar .nav-link { display: flex; }
  .topbar .account-link { padding-left: 8px; margin-left: 0; border-left: 0; }
  .container { padding: 26px 16px 44px; }
  .setup-panel { padding: 18px 18px 0; }
  .wizard-width .page-heading h1 { font-size: 30px; }
  .wizard-width .page-heading .eyebrow { font-size: 9px; }
  .step-tab { flex-direction: column; gap: 5px; padding: 7px 3px; font-size: 11px; min-height: 66px; }
  .step-index { width: 24px; height: 24px; }
  .setup-steps { margin-bottom: 18px; gap: 8px; }
  .setup-block { min-height: 0; }
  .step-title h2 { font-size: 25px; }
  .speaking-guide { gap: 7px 12px; font-size: 11px; }
  .recording-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .record-status { min-height: 4.65em; font-size: 12px; }
  .record-note { width: 100%; }
  .wizard-footer { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; }
  .step-caption { display: none; }
  .wizard-footer .button { font-size: 13px; padding: 12px 8px; }
  .prompt-playground { padding: 14px; }
  .test-input { grid-template-columns: minmax(0, 1fr); }
  .test-input label, .test-input .button { width: 100%; }
  .review-check { font-size: 12px; }
  .review-notice { padding: 15px; font-size: 12px; }
  .editor-extras { flex-direction: column; }
  .setup-footnote { padding-left: 0; padding-right: 0; }
  .auth-header { padding: 20px; }
  .auth-card { padding: 24px; }
  .status-page { padding-left: 20px; padding-right: 20px; }
  .approval-steps li { padding: 16px; }
  .actions.centered { display: grid; grid-template-columns: 1fr; }
  .next-step .button { width: 100%; }
  .pipeline-actions .button { width: 100%; }
  .list-tools select { min-width: 0; }
  .list-tools > label { min-width: 0; }
  .emergency-controls .button { width: 100%; }
  .admin-metrics { grid-template-columns: 1fr; gap: 10px; }
  .admin-metric { padding: 16px 18px; }
  .admin-metric strong { font-size: 24px; }
  .list-tools > label:not(.search-field) { flex-basis: calc(50% - 12px); }
  .account-editor .form-grid { gap: 12px; }
  .account-editor .form-footer .button { width: 100%; }
  .support-context { padding: 16px; }
  .room-tools { max-width: none; }
}

@media (max-width: 360px) {
  .list-tools > label:not(.search-field) { flex-basis: 100%; }
  .topbar .brand { font-size: 17px; gap: 7px; }
  .topbar .brand img { width: 27px; height: 27px; }
  .topbar .text-button { padding: 8px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .player-header, .player-footer { padding-top: 12px; padding-bottom: 12px; }
  .player-main { padding: 4px 20px; }
  .player-main h1 { font-size: 26px; margin-bottom: 4px; }
  .player-main .eyebrow, .player-intro, .player-help { display: none; }
  .talk-wrap { margin: 16px 0 12px; padding: 10px; }
  .talk-button { width: 156px; height: 156px; gap: 10px; font-size: 13px; }
  .talk-button svg { width: 30px; height: 30px; }
  .player-status { min-height: 36px; }
}
