:root {
    --ink:#142033; --muted:#596579; --paper:#f3f6fa; --white:#fff;
    --line:#dce2e9; --navy:#0e1d31; --red:#a41515; --red-hover:#871010;
    --soft:#eef3f8; --accent-soft:#fdf0f0; --success:#226348;
    --amber:#805718; --amber-bg:#fff7e9; --error:#a41515; --radius:12px;
    --sans:"Avenir Next","Segoe UI",Arial,Helvetica,sans-serif;
}
* {box-sizing:border-box}
html {scroll-padding-top:94px}
body {margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
button,input,textarea {font:inherit}
button,a,summary {touch-action:manipulation}
button,summary {cursor:pointer}
button,a,input,textarea {transition:background .16s,border-color .16s,box-shadow .16s}
button:disabled {cursor:wait;opacity:.55}
a {color:#253d66;text-underline-offset:3px}
a:hover {color:var(--red)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible {outline:3px solid #c04f54;outline-offset:3px}
h1,h2,h3,p {margin-top:0}
h1,h2,h3 {letter-spacing:-.025em}
h1 {font:700 clamp(28px,3.5vw,38px)/1.2 var(--sans);margin-bottom:14px}
h2 {font-size:17px;font-weight:650;margin:0}
button svg,.settings-menu-link svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.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 {position:fixed;top:-80px;left:16px;padding:10px 16px;background:var(--white);z-index:60;border:1px solid var(--line);border-radius:8px}
.skip:focus {top:10px}
.topbar {position:sticky;top:0;z-index:30;min-height:76px;padding:12px max(24px,calc((100vw - 1392px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--white);border-top:3px solid var(--red);border-bottom:1px solid var(--line)}
.brand {display:inline-flex;gap:10px;align-items:center;text-decoration:none;color:var(--navy);font-size:21px;font-weight:750;letter-spacing:-.6px;white-space:nowrap;flex-shrink:0}
.brand-mark {display:grid;place-items:center;background:var(--red);color:white;width:32px;height:34px;border-radius:7px;font:750 24px/1 var(--sans)}
.brand-by {font-weight:500;color:var(--muted);font-size:13px;letter-spacing:0}
.header-actions {display:flex;align-items:center;gap:16px;min-width:0}
.mode {display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;font-weight:600;color:var(--amber)}
.mode>span {width:6px;height:6px;border-radius:50%;background:currentColor}
.mode-live {color:var(--success)}
.prompt-menu-link,.settings-menu-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;white-space:nowrap;font-size:13px;font-weight:600;border-radius:7px}
.prompt-menu-link:hover,.settings-menu-link:hover {background:var(--soft)}
.settings-menu-link {width:44px;flex-shrink:0}
.compact-account {display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#f7f9fc;white-space:nowrap;text-decoration:none;font-size:11px;line-height:1.35;color:var(--ink)}
.compact-account:hover {border-color:#9caabe;color:var(--ink)}
.compact-account[data-account-status=error],.compact-account[data-account-status=unavailable],.compact-account[data-account-status=forbidden] {border-color:#c9a66c;background:var(--amber-bg)}
.account-values {display:grid;gap:3px;font-variant-numeric:tabular-nums}
.account-line {display:flex;justify-content:space-between;gap:10px}
.account-local {font-weight:650}
.account-reported {color:var(--muted)}
.nav-short {display:none}
.button-secondary {display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px 14px;color:var(--ink);background:var(--white);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.button-secondary:hover {background:var(--soft);border-color:#a3afbf;color:var(--ink)}
.button-primary {display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:10px 17px;border:1px solid var(--red);border-radius:8px;background:var(--red);color:#fff;font-size:14px;font-weight:650}
.button-primary:hover {background:var(--red-hover);border-color:var(--red-hover)}
.app-layout {display:grid;grid-template-columns:282px minmax(0,1fr);max-width:1440px;min-height:calc(100dvh - 76px);margin:auto}
.chat-history {position:sticky;top:76px;height:calc(100dvh - 76px);overflow:auto;align-self:start;min-width:0;padding:22px 16px;background:var(--white);border-right:1px solid var(--line)}
.chat-history summary {display:flex;align-items:center;gap:10px;min-height:44px;list-style:none;font-size:15px;font-weight:700;padding:0 8px}
.chat-history summary::-webkit-details-marker {display:none}
.chat-history summary::after {content:'⌄';margin-left:auto;color:var(--muted);font-size:18px}
.chat-history details[open]>summary::after {content:'⌃'}
#history-count {color:var(--muted);font-size:12px;font-weight:500}
.history-tools {display:flex;gap:6px;margin:14px 0 8px}
.history-tools input {width:100%;min-width:0;min-height:44px;padding:9px 10px;background:#f7f9fc;border:1px solid var(--line);border-radius:7px;font-size:13px;color:var(--ink)}
.history-refresh {display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:7px;background:white;color:var(--muted)}
.history-refresh:hover {background:var(--soft);color:var(--ink)}
#history-list {display:flex;flex-direction:column;gap:5px;padding-bottom:16px}
.history-day {margin:18px 10px 6px;color:var(--muted);font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.04em}
.history-item {display:block;padding:11px 12px;border:1px solid transparent;border-left:3px solid transparent;border-radius:7px;text-decoration:none;overflow-wrap:anywhere;color:var(--ink)}
.history-item:hover {background:var(--soft);color:var(--ink)}
.history-item.active {background:var(--accent-soft);border-left-color:var(--red)}
.history-item[aria-disabled=true] {pointer-events:none;opacity:.6}
.history-title {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:7px;font-size:13px;font-weight:600;line-height:1.5}
.history-item-meta {display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}
.history-meta,.history-cost {color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums;line-height:1.5}
.history-empty {padding:12px 10px;font-size:13px;color:var(--muted)}
.workspace {width:100%;max-width:916px;min-width:0;margin:0 auto;padding:42px 36px 24px}
.intro {padding:10px 0 26px;max-width:700px}
.eyebrow {margin-bottom:14px;color:var(--red);font-size:11px;font-weight:750;letter-spacing:.09em}
.lead {margin-bottom:0;max-width:66ch;color:var(--muted);font-size:16px;line-height:1.7}
.offline-notice {display:flex;gap:12px;padding:16px 18px;margin-bottom:24px;background:var(--amber-bg);border:1px solid #e8d7b5;border-radius:9px}
.offline-notice svg {width:22px;height:22px;flex-shrink:0;fill:none;stroke:var(--amber);stroke-width:1.5;margin-top:3px}
.offline-notice strong {font-size:14px;color:var(--amber)}
.offline-notice p {margin:4px 0 0;font-size:13px;color:var(--muted)}
.empty-state {margin:26px 0 18px}
.empty-heading {margin-bottom:12px}
.empty-heading h2 {font-size:13px;font-weight:600;color:var(--muted)}
.suggestions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.suggestion {min-height:94px;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);font-size:14px;font-weight:650;text-align:left;line-height:1.4}
.suggestion>span {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;color:var(--muted);font-size:12px;font-weight:400}
.suggestion:hover {border-color:#bc767b;background:#fffafb}
.composer {position:sticky;bottom:12px;z-index:10;padding:15px 18px;background:var(--white);border:1px solid #b9c5d3;border-radius:12px;box-shadow:0 5px 18px #1420330b}
.workspace:not(.has-conversation) .composer {position:static}
.composer:focus-within {border-color:#8c9bb0;box-shadow:0 0 0 3px #253d6612}
.composer-label {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:650}
.composer-label>span {color:var(--muted);font-size:11px;font-weight:400;font-variant-numeric:tabular-nums}
.composer textarea {display:block;resize:vertical;width:100%;min-height:72px;max-height:260px;margin:6px 0;padding:8px 0;border:0;border-radius:4px;background:transparent;line-height:1.6;font-size:16px;color:var(--ink)}
.composer textarea::placeholder {color:#6b778c}
.composer textarea:focus {outline:none}
.composer textarea:focus-visible {outline:2px solid #9baabd;outline-offset:2px}
.composer-bottom {display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:8px;border-top:1px solid var(--line)}
.composer-bottom p {margin:0;color:var(--muted);font-size:11px}
.composer-actions {display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}
.speech-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--navy);font-size:12px}
.speech-button:hover {background:var(--paper);border-color:#8c9bb0}
.speech-button svg {width:19px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.speech-button .stop-icon {display:none}
[data-phase="recording"] .speech-button {border-color:var(--red);color:var(--red);background:#fff5f4}
[data-phase="recording"] .mic-icon {display:none}
[data-phase="recording"] .stop-icon {display:block;fill:currentColor;stroke:none}
[data-phase="transcribing"] .speech-button {opacity:.5}
.speech-feedback {display:flex;align-items:center;flex-wrap:wrap;gap:7px 14px;margin-top:10px;color:var(--muted);font-size:12px;line-height:1.5}
.speech-feedback[hidden] {display:none}
.speech-feedback p {flex:1 1 190px;margin:0}
.speech-feedback a,.speech-link {font-size:12px;color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.speech-link {border:0;background:transparent;padding:6px 0;min-height:32px}
.speech-feedback.speech-error {color:var(--error)}
.speech-draft-costs {margin:10px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
.speech-cost-totals {display:flex;flex-wrap:wrap;gap:20px 60px;margin:28px 0;padding:20px 0;border-block:1px solid var(--line)}
.speech-cost-totals h2 {margin:0 0 10px;font-size:13px;color:var(--muted)}
.speech-cost-totals strong {font-size:22px;color:var(--navy)}
.speech-cost-totals p {margin:8px 0 0;font-size:12px;color:var(--muted)}
.speech-cost-filter {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:24px 0 10px;font-size:13px}
.speech-cost-filter select {min-height:44px;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--white);font-size:14px;color:var(--ink)}
.speech-ledger {list-style:none;padding:0;margin:20px 0}
.speech-ledger>li {padding:22px 0;border-top:1px solid var(--line)}
.speech-entry-heading {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.speech-entry-heading time {display:block;font-size:14px;font-weight:650}
.speech-entry-heading span,.speech-entry-meta,.speech-unassigned {font-size:12px;color:var(--muted)}
.speech-entry-heading strong {font-size:15px;color:var(--navy);font-variant-numeric:tabular-nums}
.speech-ledger p {margin:10px 0;font-size:13px}
.speech-entry-details {display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,3fr);gap:8px 16px;font-size:12px}
.speech-entry-details dt {color:var(--muted)}.speech-entry-details dd {margin:0;overflow-wrap:anywhere}
.speech-pagination {display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;margin:16px 0 30px;font-size:13px}
.turn:target {scroll-margin-top:95px}
.form-error {margin:12px 0 0;color:var(--error);font-size:13px}
.activity {min-height:22px;margin:12px 0 20px;text-align:center;color:var(--muted);font-size:12px}
.activity.busy::before {content:'';display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:var(--red);animation:pulse 1.4s infinite}
.footer {display:flex;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.workspace.has-conversation {padding-top:24px}
.workspace.has-conversation .intro {display:none}
.workspace.has-conversation .composer {padding-top:11px;padding-bottom:11px}
.workspace.has-conversation .composer textarea {height:52px;min-height:52px}
.chat-overview {display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 28px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.chat-overview[hidden] {display:none}
.chat-overview>div {min-width:0}
.chat-overview h1 {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:17px;line-height:1.5;margin-bottom:0}
.chat-overview p {margin:7px 0 0;color:var(--muted);font-size:11px}
.chat-overview>strong {padding-top:4px;white-space:nowrap;font-size:12px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.turn {margin-bottom:30px;overflow-wrap:anywhere}
.user-message {width:fit-content;max-width:86%;margin:0 0 16px auto;padding:14px 18px;border-radius:12px 12px 3px 12px;background:var(--navy);color:#fff;white-space:pre-wrap;font-size:15px;line-height:1.65}
.role-label {display:block;margin-bottom:4px;color:#c3cddd;font-size:11px;font-weight:600}
.answer-panel {padding:22px 24px 10px;border:1px solid var(--line);border-radius:12px;background:var(--white)}
.answer-heading {display:flex;align-items:center;gap:10px;margin-bottom:18px}
.answer-heading h2 {font-size:14px;font-weight:700;letter-spacing:0}
.answer-avatar {display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:6px;background:var(--accent-soft);color:var(--red);font-size:16px;font-weight:750}
.answer-time {margin-left:auto;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.small-badge {padding:2px 6px;border-radius:4px;background:var(--amber-bg);color:var(--amber);font-size:10px}
.answer {max-width:76ch;font-size:15px;line-height:1.85}
.answer p {margin-bottom:17px;white-space:pre-wrap}
.answer p:last-child {margin-bottom:0}
.citation-link {display:inline-block;padding:0 4px;margin:0 1px;border-radius:4px;background:var(--soft);color:#253d66;font-size:11px;font-weight:700;line-height:1.7;text-decoration:none;vertical-align:2px}
.citation-link:hover {background:#e0e8f2;color:var(--red)}
.sources {margin-top:20px;border-top:1px solid var(--line)}
.sources>summary {min-height:44px;padding:12px 0;color:#253d66;font-size:12px;font-weight:650;list-style-position:inside}
.source-card {padding:14px 16px;margin:4px 0 10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;min-width:0;scroll-margin-top:94px}
.source-title {display:flex;align-items:baseline;gap:10px;margin-bottom:6px}
.source-number {flex-shrink:0;font-size:12px;font-weight:700;color:var(--red)}
.source-title a,.source-title .title-text {font-size:13px;font-weight:600;line-height:1.5}
.source-meta {margin-bottom:4px;font-size:11px;color:var(--muted)}
.statistics-data {margin:14px 0}
.statistics-caption {font-size:12px;font-weight:600;margin:0 0 8px;color:var(--ink)}
.statistics-scroll {max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:6px;background:var(--white)}
.statistics-table {width:100%;border-collapse:collapse;font-size:12px;line-height:1.5}
.statistics-table th,.statistics-table td {padding:9px 10px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.statistics-table th {position:sticky;top:0;background:var(--soft);font-weight:650}
.statistics-table th:last-child,.statistics-table td:last-child {text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.statistics-data>.source-meta {margin-top:8px}
.statistics-row-note {display:block;margin-top:3px;color:var(--muted);font-size:10px}
.source-card summary {min-height:44px;padding:12px 0 8px;color:#253d66;font-size:12px;list-style-position:inside}
.source-card pre,.technical pre {max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:var(--soft);border-radius:6px;font:11px/1.8 ui-monospace,SFMono-Regular,monospace}
.reference-data {white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font:10px/1.8 ui-monospace,SFMono-Regular,monospace}
.technical {margin-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.technical>summary {min-height:44px;padding:12px 0;line-height:1.9}
.run-summary>span,.run-summary>strong {display:inline-block;margin-right:12px}
.run-cost {font-weight:600;color:var(--ink)}
.run-counts {font-size:11px}
.run-boundary {color:var(--amber)}
.turn-stats {font-size:11px;line-height:1.6;margin:4px 0 10px}
.info-page {max-width:980px;padding-top:40px;padding-bottom:60px}
.info-page h1 {font-size:32px;overflow-wrap:anywhere}
.info-meta {margin:20px 0 14px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.prompt-text {max-width:100%;padding:22px;border:1px solid var(--line);border-radius:9px;background:var(--white);white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.9 ui-monospace,SFMono-Regular,monospace}
.info-hint {margin:14px 0;color:var(--muted);font-size:13px;line-height:1.7}
.info-card {min-width:0;padding:24px;margin:24px 0;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.info-card h2 {margin-bottom:14px;font-size:16px}
.info-card p:last-child {margin-bottom:0}
.info-card>p {font-size:14px}
.cost-highlight {margin:12px 0;font-size:28px!important;font-weight:650;font-variant-numeric:tabular-nums;color:var(--navy);letter-spacing:-.04em}
.status-good {color:var(--success);font-weight:600}
.status-note {color:var(--amber);font-weight:600}
.info-details {margin:18px 0}
.info-details summary {min-height:44px;padding:10px 0;color:#253d66;font-size:14px}
.cost-table {width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.cost-table th,.cost-table td {padding:12px 8px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
.cost-table th {color:var(--muted);font-weight:600}
.cost-table th:first-child,.cost-table td:first-child {text-align:left;white-space:nowrap}
.cost-table-wrap {max-width:100%;overflow:auto}
.limits-list {display:grid;grid-template-columns:120px 1fr;gap:12px;font-size:14px}
.limits-list dt {font-weight:600}
.limits-list dd {margin:0;overflow-wrap:anywhere}
.cost-refresh {display:flex;align-items:center;gap:14px;margin:20px 0}
.cost-refresh p {margin:0;font-size:13px;color:var(--muted)}
.settings-group {min-inline-size:0}
.settings-group legend {padding:0 8px;font-size:16px;font-weight:650}
.settings-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.settings-field label {display:block;margin-bottom:7px;font-size:14px;font-weight:600}
.settings-field input {width:100%;max-width:220px;min-height:44px;padding:9px 12px;border:1px solid #b9c5d3;border-radius:7px;background:#f8fafc;color:var(--ink);font:16px var(--sans)}
.settings-field p {margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.6}
.settings-field p span {display:block;margin-top:3px}
.settings-actions {display:flex;flex-wrap:wrap;gap:10px}
.settings-status {min-height:24px;font-size:14px}
.logout-form {display:inline-flex;margin:0}
.logout-form button {min-height:44px}
.login-page {max-width:620px;padding-top:80px}
.login-page>.brand-mark {display:inline-flex;align-items:center;justify-content:center;margin-bottom:28px}
.login-page>.lead {margin:18px 0 28px}
.login-page>.button-primary {display:inline-flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none}
.mobile-menu .logout-form {display:flex;padding:8px}
.mobile-menu .logout-form button {width:100%}
@media(max-width:760px) {
    .topbar-authenticated .header-actions>.logout-form,.topbar-authenticated .header-actions>.prompt-menu-link,.topbar-authenticated .header-actions>.settings-menu-link {display:none}
    .topbar-authenticated .mobile-menu {display:block}
}
.model-settings-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.model-setting {min-width:0;margin:0;padding:18px;border:1px solid var(--line);border-radius:8px}
.model-setting legend {padding:0 6px;font-size:15px;font-weight:650}
.settings-field select {width:100%;min-width:0;min-height:44px;padding:9px 8px;border:1px solid #b9c5d3;border-radius:7px;background:#f8fafc;color:var(--ink);font:16px var(--sans)}
.model-price-caption,.model-availability,.model-note {font-size:12px;color:var(--muted);line-height:1.6}
.model-price-caption {margin:7px 0 12px}
.model-prices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 22px;padding:14px;border-radius:7px;background:var(--soft)}
.model-prices dt {font-size:11px;color:var(--muted)}
.model-prices dd {margin:3px 0 0;font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}
.model-options {gap:14px}
.model-note:empty {display:none}
.model-cache {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}
.model-cache p {margin:0;font-size:12px;color:var(--muted)}
.model-cache button {flex-shrink:0}
@keyframes pulse {50%{opacity:.35}}
@media(max-width:1150px) {.mode{display:none}.header-actions{gap:12px}}
@media(max-width:999px) {
    .app-layout{display:block}.chat-history{position:static;height:auto;padding:7px 20px;border-right:0;border-bottom:1px solid var(--line)}
    .chat-history summary{padding:0;font-size:13px}.history-tools{margin-top:8px}#history-list{max-height:300px;overflow:auto}
    .chat-history details:not([open]){margin:0}.workspace{max-width:880px}.history-title{font-size:14px}.history-tools input{font-size:16px}
}
@media(max-width:900px) {.nav-full{display:none}.nav-short{display:inline}.topbar{gap:12px}.header-actions{gap:8px}.compact-account{font-size:11px;gap:6px;padding:5px 8px}}
@media(max-width:700px) {
    html{scroll-padding-top:82px}.topbar{min-height:64px;padding:7px 16px;gap:8px;border-top-width:2px}.brand-name{display:none}.brand-mark{width:28px;height:30px;font-size:22px}
    .header-actions{gap:4px}.prompt-menu-link{min-width:44px;font-size:12px}.settings-menu-link{width:44px}.header-actions>.button-secondary{min-width:44px;padding:8px 6px;font-size:12px}
    .compact-account{gap:5px;padding:5px 7px;font-size:10.5px}.account-line{gap:6px}
    .workspace{padding:28px 20px 20px}.intro{padding:0 0 24px}h1{font-size:29px}.lead{font-size:15px;line-height:1.7}.eyebrow{font-size:10px;margin-bottom:12px}
    .suggestions{grid-template-columns:1fr;gap:8px}.suggestion{min-height:66px;padding:13px 15px;display:flex;justify-content:space-between;align-items:center;gap:12px}.suggestion>span{margin:0;font-size:11px}
    .composer{padding:13px 14px;bottom:max(10px,env(safe-area-inset-bottom));border-radius:10px}.composer textarea{min-height:68px}.composer-bottom p{font-size:10px}.composer .button-primary{padding:9px 12px;font-size:13px;gap:8px}
    .chat-overview{gap:12px;flex-wrap:wrap;margin-bottom:24px;padding-bottom:16px}.chat-overview h1{font-size:16px}.chat-overview>strong{padding:0}.workspace.has-conversation{padding-top:22px}
    .user-message{max-width:92%;font-size:16px;padding:13px 15px}.answer-panel{padding:17px 16px 7px}.answer{font-size:16px;line-height:1.8}.answer-heading{margin-bottom:14px}.source-card{padding:12px;scroll-margin-top:82px}
    .run-summary>span,.run-summary>strong{margin-right:8px}.run-counts{font-size:10px}.turn{margin-bottom:25px}.footer{flex-direction:column;gap:5px;font-size:10px}
    .info-page{padding-top:28px}.info-page h1{font-size:29px}.prompt-text{padding:16px;font-size:11px}.info-card{padding:20px 15px}.cost-highlight{font-size:25px!important}
    .cost-table{font-size:11px}.cost-table th,.cost-table td{padding:10px 5px}.limits-list{grid-template-columns:1fr;gap:4px}.limits-list dd{margin-bottom:10px}
    .settings-grid{grid-template-columns:1fr;gap:22px}.settings-actions .button-primary{width:100%}.cost-refresh{flex-wrap:wrap}
    .model-settings-grid{grid-template-columns:1fr;gap:20px}.model-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.model-setting{padding:14px}.model-cache{align-items:flex-start;flex-direction:column}
}
@media(max-width:360px) {.topbar{padding:7px 10px}.topbar>.brand{display:none}.header-actions{width:100%;justify-content:space-between}.workspace{padding-left:16px;padding-right:16px}.suggestion{align-items:flex-start;flex-direction:column;gap:5px}.suggestion>span{width:100%}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.chat-switch {display:inline-flex;align-items:center;min-height:44px;color:var(--navy);font-size:12px;font-weight:650;text-decoration:none;padding:0 7px}
.chat-switch:hover {color:var(--red)}
.prompt-tabs {display:flex;flex-wrap:wrap;gap:20px;font-size:13px}
.research-result {margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.research-audit {margin:12px 0 18px;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.research-audit>summary {min-height:44px;padding:11px 0;color:var(--ink);font-size:12px;font-weight:650}
.research-audit .research-result {margin:0 0 18px;padding-top:16px}
.research-result-heading {display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}
.research-result h3 {margin:0;color:var(--navy);font-size:15px;line-height:1.5}
.research-open {flex-shrink:0;font-size:11px;text-decoration:none;color:var(--red)}
.research-meta {font-size:11px;color:var(--muted);margin:12px 0}
.research-warning {font-size:12px;color:var(--amber);margin-top:12px}
.dialog-status {color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 14px}
.pending-answer {white-space:pre-wrap;min-height:1px}
.dialog-progress {margin:18px 0 10px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.dialog-progress summary {padding:12px 0;min-height:44px}
.progress-list {padding-left:20px;max-height:280px;overflow:auto;font-size:12px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere}
.progress-list li {padding:4px 0 4px 3px}
@media(max-width:700px) {.chat-switch{font-size:11px;padding:0 4px}.research-result-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}.research-result h3{font-size:15px}.research-open{font-size:12px}.progress-list{font-size:12px}}
.mobile-menu {display:none;position:relative}
.mobile-menu>summary {display:grid;place-items:center;min-width:44px;min-height:44px;list-style:none;cursor:pointer;color:var(--navy);font-size:20px}
.mobile-menu>summary::-webkit-details-marker {display:none}
.mobile-menu>nav {position:absolute;top:48px;right:0;width:200px;padding:6px;border:1px solid var(--line);border-radius:8px;background:var(--white);box-shadow:0 8px 20px #0e1d3114;z-index:10}
.mobile-menu a {display:block;min-height:44px;padding:11px 12px;font-size:13px;text-decoration:none;color:var(--navy)}
@media(max-width:430px) {.topbar>.brand{display:none}.header-actions{width:100%;gap:0;justify-content:space-between}}
@media(max-width:360px) {.header-actions>.prompt-menu-link,.header-actions>.settings-menu-link{display:none}.mobile-menu{display:block}}
