:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --surface: #121418;
  --surface-2: #181b20;
  --surface-3: #20242a;
  --line: #2b3038;
  --line-strong: #3a414c;
  --control-border: #646e7d;
  --text: #f1f3f5;
  --muted: #a8afb9;
  --dim: #8c96a3;
  --accent: #68a8ff;
  --accent-2: #7cdaa8;
  --danger: #ff858f;
  --ok: #80d8a1;
  --warning: #e7bd6b;
  --on-accent: #101317;
  --focus: #8fc4ff;
  --sidebar-bg: #0a0c0f;
  --panel-muted: #0f1114;
  --code-bg: #07090c;
  --code-head-bg: #0d1118;
  --code-text: #dbe6ef;
  --status-error-text: #ffd4d8;
  --status-ok-text: #d9ffe5;
  --backdrop: rgba(0, 0, 0, .74);
  --scrim: rgba(0, 0, 0, .58);
  --drawer-shadow: 1rem 0 3rem rgba(0, 0, 0, .45);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  --viewer-bg: #11161e;
  --sidebar: 15rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-color-theme]) {
    color-scheme: light;
    --bg: #f6f8fb; --surface: #ffffff; --surface-2: #f0f3f7; --surface-3: #e7ebf1;
    --line: #d8dee7; --line-strong: #aeb8c5; --control-border: #778394; --text: #18202b; --muted: #4f5f70; --dim: #637184;
    --accent: #2468b3; --accent-2: #14734a; --danger: #a91f37; --ok: #12683f; --warning: #805500;
    --on-accent: #ffffff; --focus: #155ea8; --sidebar-bg: #eef2f7; --panel-muted: #f1f4f8;
    --code-bg: #10151d; --code-head-bg: #171e28; --code-text: #e8edf4;
    --status-error-text: #8d1830; --status-ok-text: #12683f;
    --backdrop: rgba(25, 34, 46, .42); --scrim: rgba(25, 34, 46, .42);
    --drawer-shadow: 1rem 0 3rem rgba(35, 47, 62, .22); --card-shadow: 0 1px 3px rgba(35, 47, 62, .1);
    --viewer-bg: #e8edf3;
  }
  :root:not([data-color-theme]) body.theme-crimson {
    --bg: #fff9f5; --surface: #ffffff; --surface-2: #fff1e8; --surface-3: #f8e5dc;
    --line: #ead4c9; --line-strong: #c9a99a; --control-border: #95786a; --muted: #68584f; --dim: #79685f;
    --accent: #8a5100; --accent-2: #a91f37; --on-accent: #ffffff; --sidebar-bg: #fff4ec;
  }
}
:root[data-color-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb; --surface: #ffffff; --surface-2: #f0f3f7; --surface-3: #e7ebf1;
  --line: #d8dee7; --line-strong: #aeb8c5; --control-border: #778394; --text: #18202b; --muted: #4f5f70; --dim: #637184;
  --accent: #2468b3; --accent-2: #14734a; --danger: #a91f37; --ok: #12683f; --warning: #805500;
  --on-accent: #ffffff; --focus: #155ea8; --sidebar-bg: #eef2f7; --panel-muted: #f1f4f8;
  --code-bg: #10151d; --code-head-bg: #171e28; --code-text: #e8edf4;
  --status-error-text: #8d1830; --status-ok-text: #12683f;
  --backdrop: rgba(25, 34, 46, .42); --scrim: rgba(25, 34, 46, .42);
  --drawer-shadow: 1rem 0 3rem rgba(35, 47, 62, .22); --card-shadow: 0 1px 3px rgba(35, 47, 62, .1);
  --viewer-bg: #e8edf3;
}
:root[data-color-theme="light"] body.theme-crimson {
  --bg: #fff9f5; --surface: #ffffff; --surface-2: #fff1e8; --surface-3: #f8e5dc;
  --line: #ead4c9; --line-strong: #c9a99a; --control-border: #95786a; --muted: #68584f; --dim: #79685f;
  --accent: #8a5100; --accent-2: #a91f37; --on-accent: #ffffff; --sidebar-bg: #fff4ec;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; min-height: 100vh; background: var(--bg); color: var(--text); }
body.theme-crimson {
  --bg: #110d0e; --surface: #171113; --surface-2: #1f1719; --surface-3: #281d20;
  --line: #38292d; --line-strong: #4c363c; --control-border: #765b63; --muted: #b8a7aa; --dim: #9b898e;
  --accent: #e8b85e; --accent-2: #df6a76;
  --sidebar-bg: #0d090a;
}
@media (prefers-color-scheme: light) {
  :root:not([data-color-theme]) body.theme-crimson {
    --bg: #fff9f5; --surface: #ffffff; --surface-2: #fff1e8; --surface-3: #f8e5dc;
    --line: #ead4c9; --line-strong: #c9a99a; --control-border: #95786a; --muted: #68584f; --dim: #79685f;
    --accent: #8a5100; --accent-2: #a91f37; --on-accent: #ffffff; --sidebar-bg: #fff4ec;
  }
}
:root[data-color-theme="light"] body.theme-crimson {
  --bg: #fff9f5; --surface: #ffffff; --surface-2: #fff1e8; --surface-3: #f8e5dc;
  --line: #ead4c9; --line-strong: #c9a99a; --control-border: #95786a; --muted: #68584f; --dim: #79685f;
  --accent: #8a5100; --accent-2: #a91f37; --on-accent: #ffffff; --sidebar-bg: #fff4ec;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.35rem; padding: .52rem .78rem; border: 1px solid var(--control-border);
  border-radius: .3rem; background: var(--surface-2); color: var(--text);
  text-decoration: none; font-weight: 680; cursor: pointer;
}
button.primary, .button.primary { border-color: color-mix(in srgb, var(--accent) 72%, var(--line)); background: var(--accent); color: var(--on-accent); }
button.ghost, .button.ghost { background: transparent; }
button.danger { color: var(--danger); }
button:disabled { opacity: .48; cursor: not-allowed; }
button:hover:not(:disabled), .button:hover { border-color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.skip-link { position: absolute; left: -9999px; top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { left: 1rem; z-index: 90; padding: .55rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: .3rem; }
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.site-sidebar {
  position: sticky; top: 0; z-index: 30; height: 100vh; min-width: 0; padding: .8rem;
  display: flex; flex-direction: column; gap: .9rem; border-right: 1px solid var(--line); background: var(--sidebar-bg);
}
.brand { display: flex; align-items: center; gap: .62rem; min-width: 0; padding: .22rem; color: var(--text); text-decoration: none; }
.brand-mark { width: 2.15rem; height: 2.15rem; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .25rem; background: var(--surface-2); color: var(--accent); font: 800 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.brand strong, .brand small { display: block; }
.brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; letter-spacing: .01em; }
.brand small { margin-top: .08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: .67rem; }
.sidebar-label { margin: .2rem .5rem 0; color: var(--dim); font-size: .65rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: grid; gap: .18rem; }
.nav a { padding: .48rem .58rem; border: 1px solid transparent; border-radius: .28rem; color: var(--muted); text-decoration: none; font-size: .82rem; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a[aria-current="page"] { border-color: var(--line); background: var(--surface-2); color: var(--text); }
.nav a.account-link { color: var(--accent); }
.sidebar-context { margin-top: auto; padding: .65rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--surface); }
.sidebar-context strong, .sidebar-context span, .sidebar-context a { display: block; }
.sidebar-context strong { font-size: .74rem; }
.sidebar-context span { margin-top: .16rem; color: var(--dim); font-size: .65rem; line-height: 1.35; }
.sidebar-context a { margin-top: .35rem; color: var(--accent); font-size: .68rem; text-decoration: none; }
.site-workspace { min-width: 0; }
.site-topbar { position: sticky; top: 0; z-index: 25; min-height: 3.45rem; padding: .65rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); }
.topbar-title { min-width: 0; }
.topbar-title span, .topbar-title strong { display: block; }
.topbar-title span { color: var(--dim); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.topbar-title strong { margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.topbar-meta { display: flex; align-items: center; gap: .45rem; }
.theme-control { min-width: 7.4rem; }
.theme-control select { min-height: 2.35rem; padding: .42rem 1.8rem .42rem .58rem; font-size: .76rem; }
.host-badge { padding: .25rem .42rem; border: 1px solid var(--line); border-radius: .25rem; color: var(--muted); font: .66rem/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; }
main { max-width: 1420px; margin: auto; padding: 1.25rem 1.25rem 3.5rem; }
body[data-page="playground"] main { max-width: none; padding: 1rem; }
body[data-page="chat"] main { max-width: none; padding: .65rem; }
body[data-page="chat"] .site-footer { display: none; }
.hero { min-height: 25rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 17rem); gap: .75rem; }
.hero-copy, .hero-art, .panel, .card, .page-head, .auth-shell {
  border: 1px solid var(--line); border-radius: .4rem; background: var(--surface);
}
.hero-copy { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .kicker { color: var(--accent); font: 760 .75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 17ch; margin: .55rem 0 0; font-size: clamp(2.15rem, 4.5vw, 3.75rem); line-height: 1; letter-spacing: -.035em; hyphens: none; }
.lede { max-width: 46rem; margin: 1.3rem 0 0; color: var(--muted); font-size: clamp(1.04rem, 1.7vw, 1.26rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.45rem; }
.hero-art { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 24rem; padding: 4.5rem 1.25rem 1.25rem; background: var(--surface); }
.hero-note { position: absolute; z-index: 2; top: 1rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; gap: .6rem; }
.chip, .status-pill { display: inline-flex; align-items: center; gap: .38rem; padding: .28rem .42rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--bg); color: var(--muted); font-size: .7rem; }
.status-pill::before { content: ""; width: .48rem; height: .48rem; border-radius: 50%; background: var(--ok); }
.hero-console { width: min(100%, 14rem); display: grid; gap: .55rem; }
.hero-console span { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .32rem; background: var(--bg); color: var(--muted); font: 700 .7rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.hero-console span::after { content: "ready"; color: var(--ok); font-weight: 650; letter-spacing: 0; }
.section { margin-top: .75rem; padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: .25rem 0 0; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.section-head p { max-width: 42rem; margin: 0; color: var(--muted); line-height: 1.6; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 1rem; min-height: 9rem; }
.card h3 { margin: .38rem 0 .5rem; font-size: 1.13rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.58; }
.card a { color: var(--accent); }
.page-head { padding: clamp(1.25rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.page-head h1 { max-width: 22ch; font-size: clamp(1.9rem, 4vw, 3.25rem); }
.page-head p { max-width: 52rem; color: var(--muted); line-height: 1.65; }
.notice { padding: .75rem .85rem; border: 1px solid var(--line); border-left: .2rem solid var(--accent); border-radius: .3rem; background: var(--surface-2); color: var(--muted); line-height: 1.5; }
.notice.error { border-left-color: var(--danger); color: var(--status-error-text); }
.notice.success { border-left-color: var(--ok); color: var(--status-ok-text); }
.auth-shell { overflow: hidden; }
.auth-tabs { display: flex; flex-wrap: wrap; gap: .35rem; padding: .7rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.auth-tabs button { min-height: 2.35rem; padding: .45rem .72rem; background: transparent; }
.auth-tabs button[aria-selected="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.auth-view { padding: clamp(1rem, 4vw, 2rem); }
.auth-view[hidden] { display: none; }
.auth-view h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field { display: grid; gap: .38rem; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: .88rem; font-weight: 700; }
.field-help { color: var(--dim); font-size: .72rem; line-height: 1.4; }
input, textarea, select {
  width: 100%; min-height: 2.5rem; padding: .58rem .68rem; border: 1px solid var(--control-border);
  border-radius: .28rem; background: var(--bg); color: var(--text);
}
textarea { min-height: 7rem; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: .9rem; }
.form-status { min-height: 1.5rem; margin: .7rem 0 0; color: var(--muted); }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--ok); }
.account-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .7rem; margin-bottom: .9rem; }
.metric { padding: .85rem; border: 1px solid var(--line); border-radius: .48rem; background: var(--bg); box-shadow: var(--card-shadow); }
.metric span { display: block; color: var(--dim); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { display: block; margin-top: .45rem; font-size: 1.35rem; overflow-wrap: anywhere; }
.metric.cost-highlight { box-shadow: inset 3px 0 0 var(--accent), var(--card-shadow); }
.metric.cost-highlight strong { color: var(--accent); }
.metric-note { display: block; margin-top: .32rem; color: var(--dim); font-size: .68rem; line-height: 1.4; }
.subsection { margin-top: 1.35rem; }
.subsection-head { display: flex; align-items: end; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.subsection-head h3 { margin: 0; font-size: 1rem; }
.subsection-head p { margin: 0; color: var(--dim); font-size: .75rem; }
.compact-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; margin-bottom: .8rem; }
.compact-controls .field { min-width: 10rem; }
.compact-controls select { min-height: 2.2rem; padding: .4rem .55rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .3rem; }
table { width: 100%; border-collapse: collapse; min-width: 34rem; }
th, td { padding: .72rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
td { font-variant-numeric: tabular-nums; }
.cost-cell { min-width: 8.5rem; white-space: nowrap; }
.usage-key-table { min-width: 58rem; }
.usage-model-table { min-width: 48rem; }
.admin-user-usage-table { min-width: 86rem; }
.admin-key-usage-table { min-width: 76rem; }
.table-empty { color: var(--dim); text-align: center; }
.key-state { display: inline-flex; padding: .2rem .38rem; border: 1px solid var(--line); border-radius: .24rem; color: var(--muted); font-size: .7rem; }
.key-state.active { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); color: var(--ok); }
.key-state.revoked { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); color: var(--danger); }

.code { overflow-x: auto; padding: 1rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--code-bg); color: var(--code-text); font: .86rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.edge-only { min-height: 31rem; display: flex; align-items: center; padding: clamp(1.4rem, 5vw, 3.8rem); border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); }
.edge-only h1 { max-width: 18ch; }
.edge-only p { max-width: 44rem; color: var(--muted); line-height: 1.65; }
.workbench { min-height: calc(100vh - 7rem); overflow: hidden; border: 1px solid var(--line); border-radius: .35rem; background: var(--surface); }
.workbench-header { min-height: 3rem; padding: .55rem .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-bottom: 1px solid var(--line); }
.workbench-title { min-width: 0; display: flex; align-items: center; gap: .55rem; }
.workbench-title h1 { max-width: none; margin: 0; font-size: .95rem; letter-spacing: 0; }
.workbench-title span { color: var(--dim); font-size: .72rem; }
.workbench-actions { display: flex; gap: .4rem; }
.workbench-actions button { min-height: 2rem; padding: .35rem .58rem; font-size: .74rem; }
.workbench-grid { display: grid; grid-template-columns: minmax(12rem, 14rem) minmax(15rem, 18rem) minmax(24rem, 1fr) minmax(13rem, 15.5rem); min-height: calc(100vh - 10.1rem); }
.workbench-history, .workbench-config, .workbench-inspector { min-width: 0; padding: .85rem; background: var(--panel-muted); }
.workbench-history { border-right: 1px solid var(--line); }
.workbench-config, .workbench-inspector { min-width: 0; padding: .85rem; background: var(--panel-muted); }
.workbench-config { border-right: 1px solid var(--line); }
.workbench-inspector { border-left: 1px solid var(--line); }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: .45rem; margin-bottom: .65rem; }
.history-head h2 { margin: 0; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.history-head button { min-height: 1.8rem; padding: .25rem .4rem; font-size: .66rem; }
.history-list { display: grid; gap: .35rem; max-height: calc(100vh - 14.5rem); overflow-y: auto; }
.history-empty { padding: .7rem .2rem; color: var(--dim); font-size: .72rem; line-height: 1.45; }
.history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem; padding: .38rem; border: 1px solid transparent; border-radius: .3rem; }
.history-item:hover { background: var(--surface); }
.history-item.active { border-color: var(--line-strong); background: var(--surface-2); }
.history-open { min-width: 0; min-height: 2.2rem; padding: .28rem .35rem; border: 0; background: transparent; display: block; text-align: left; }
.history-open strong, .history-open span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-open strong { font-size: .74rem; }
.history-open span { margin-top: .18rem; color: var(--dim); font-size: .62rem; }
.history-delete { align-self: center; min-height: 1.8rem; width: 1.8rem; padding: 0; color: var(--dim); background: transparent; }
.history-note { margin-top: .65rem; color: var(--dim); font-size: .64rem; line-height: 1.45; }
.config-section + .config-section, .inspector-section + .inspector-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.config-section h2, .inspector-section h2 { margin: 0 0 .7rem; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.config-section .field + .field { margin-top: .65rem; }
.config-section textarea { min-height: 8.25rem; font-size: .78rem; line-height: 1.5; }
.switch-row { min-height: 2.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; padding: .55rem 0; }
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch-copy strong, .switch-copy span { display: block; }
.switch-copy strong { font-size: .78rem; }
.switch-copy span { margin-top: .16rem; color: var(--dim); font-size: .68rem; line-height: 1.35; }
.switch-row input { width: 1rem; min-height: 1rem; margin: .15rem 0 0; accent-color: var(--accent); }
.workbench-conversation { min-width: 0; min-height: 32rem; display: flex; flex-direction: column; background: var(--bg); }
.transcript { flex: 1 1 auto; min-height: 20rem; max-height: calc(100vh - 20rem); overflow-y: auto; padding: clamp(1rem, 3vw, 2.2rem); }
.transcript-empty { min-height: 18rem; display: grid; place-items: center; text-align: center; color: var(--dim); }
.transcript-empty div { max-width: 24rem; }
.transcript-empty strong { display: block; color: var(--muted); font-size: .9rem; }
.transcript-empty span { display: block; margin-top: .4rem; font-size: .76rem; line-height: 1.5; }
.message { max-width: 50rem; margin: 0 auto 1rem; }
.message-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; color: var(--dim); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.message-body { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: .32rem; background: var(--surface); color: var(--text); line-height: 1.6; white-space: pre-wrap; }
.message.user .message-body { background: var(--surface-2); }
.message.error .message-body { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); color: var(--status-error-text); }
.message.pending .message-body { color: var(--muted); }
.composer-wrap { flex: 0 0 auto; padding: .75rem; border-top: 1px solid var(--line); background: var(--surface); }
.composer { max-width: 54rem; margin: auto; }
.composer textarea { min-height: 5.2rem; max-height: 14rem; padding: .72rem; line-height: 1.5; }
.composer-footer { margin-top: .45rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.composer-hint { color: var(--dim); font-size: .68rem; }
.workbench-status { display: flex; align-items: center; gap: .42rem; color: var(--muted); font-size: .74rem; }
.status-dot { width: .52rem; height: .52rem; flex: 0 0 auto; border-radius: 50%; background: var(--dim); }
.workbench-status[data-state="ready"] .status-dot { background: var(--ok); }
.workbench-status[data-state="busy"] .status-dot { background: var(--warning); }
.workbench-status[data-state="error"] .status-dot { background: var(--danger); }
.inspector-metrics { display: grid; gap: .45rem; }
.inspector-metric { padding: .6rem; border: 1px solid var(--line); border-radius: .28rem; background: var(--bg); }
.inspector-metric span, .inspector-metric strong { display: block; }
.inspector-metric span { color: var(--dim); font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; }
.inspector-metric strong { margin-top: .26rem; overflow-wrap: anywhere; font-size: .82rem; }
.tool-state { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .52rem 0; color: var(--muted); font-size: .72rem; }
.tool-state + .tool-state { border-top: 1px solid var(--line); }
.tool-badge { padding: .2rem .34rem; border: 1px solid var(--line); border-radius: .22rem; color: var(--dim); font: .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tool-badge.on { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); color: var(--ok); }
.chat-app { min-height: calc(100dvh - 4.8rem); overflow: hidden; border: 1px solid var(--line); border-radius: .45rem; background: var(--bg); }
.chat-toolbar { min-height: 3.25rem; padding: .55rem .7rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-toolbar .chat-menu { display: none; width: 2.35rem; padding: 0; }
.chat-model-wrap { min-width: 10rem; max-width: 26rem; flex: 1 1 20rem; }
.chat-reasoning-wrap { min-width: 9rem; max-width: 15rem; flex: 0 1 13rem; }
.chat-model-wrap select, .chat-reasoning-wrap select { min-height: 2.2rem; padding: .4rem .55rem; }
.chat-toolbar-status { margin-left: auto; color: var(--dim); font-size: .72rem; white-space: nowrap; }
.chat-layout { position: relative; display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-height: calc(100dvh - 8.1rem); }
.chat-history { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: .75rem; border-right: 1px solid var(--line); background: var(--panel-muted); }
.chat-history-header { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .6rem; }
.chat-history-header strong { font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.chat-history-actions { display: flex; gap: .3rem; }
.chat-history-actions button { min-height: 1.85rem; padding: .25rem .4rem; font-size: .67rem; }
.chat-history-close { display: none; }
.chat-history-list { min-height: 0; flex: 1; display: grid; align-content: start; gap: .35rem; max-height: calc(100dvh - 12rem); overflow-y: auto; }
.chat-history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem; padding: .32rem; border: 1px solid transparent; border-radius: .32rem; }
.chat-history-item:hover, .chat-history-item.active { border-color: var(--line); background: var(--surface-2); }
.chat-history-open { min-width: 0; min-height: 2.2rem; padding: .3rem; border: 0; background: transparent; text-align: left; }
.chat-history-open strong, .chat-history-open span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-history-open strong { font-size: .75rem; }
.chat-history-open span { margin-top: .18rem; color: var(--dim); font-size: .63rem; }
.chat-history-delete { align-self: center; width: 1.8rem; min-height: 1.8rem; padding: 0; color: var(--dim); background: transparent; }
.chat-scrim { display: none; }
.chat-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--bg); }
.chat-transcript { min-height: 20rem; max-height: calc(100dvh - 17rem); overflow-y: auto; padding: clamp(1rem, 4vw, 2.6rem); scroll-behavior: smooth; }
.chat-welcome { min-height: 18rem; display: grid; place-items: center; text-align: center; color: var(--muted); }
.chat-welcome div { max-width: 34rem; }
.chat-welcome-mark { width: 3.5rem; height: 3.5rem; margin: 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface-2); color: var(--accent); font: 800 .85rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.chat-welcome h1 { max-width: none; margin: .7rem 0 .5rem; font-size: clamp(1.5rem, 4vw, 2.25rem); }
.chat-welcome p { margin: 0; color: var(--dim); line-height: 1.6; }
.chat-message { max-width: 50rem; margin: 0 auto 1.1rem; }
.chat-message-meta { margin-bottom: .32rem; color: var(--dim); font-size: .68rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.chat-message-body { padding: .85rem .95rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.user .chat-message-body { margin-left: clamp(0rem, 8vw, 5rem); background: var(--surface-2); }
.chat-message.error .chat-message-body { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); color: var(--status-error-text); }
.chat-context-note { max-width: 50rem; margin: 0 auto 1rem; padding: .58rem .72rem; border: 1px solid var(--line); border-radius: .42rem; color: var(--dim); background: var(--surface); font-size: .72rem; line-height: 1.45; }
.chat-composer-wrap { padding: .65rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); }
.chat-composer { max-width: 54rem; margin: auto; }
.chat-input-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: .45rem; }
.chat-composer textarea { min-height: 3.2rem; max-height: 11rem; padding: .72rem .8rem; resize: vertical; line-height: 1.5; }
.chat-attach { width: 2.75rem; min-height: 2.75rem; padding: 0; border-radius: 50%; font-size: 1.35rem; line-height: 1; }
.chat-attach:disabled { opacity: .45; cursor: not-allowed; }
.chat-attachments { display: flex; flex-wrap: wrap; gap: .42rem; margin-bottom: .5rem; }
.chat-attachment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; min-width: min(100%, 16rem); max-width: 24rem; padding: .42rem .48rem; border: 1px solid var(--line); border-radius: .48rem; background: var(--surface-2); }
.chat-attachment-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .35rem; color: var(--text); background: var(--surface); font-size: .62rem; font-weight: 800; }
.chat-attachment-copy { min-width: 0; }
.chat-attachment-copy strong, .chat-attachment-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-attachment-copy strong { font-size: .72rem; }
.chat-attachment-copy span { margin-top: .12rem; color: var(--dim); font-size: .62rem; }
.chat-attachment-remove { width: 2rem; min-height: 2rem; padding: 0; color: var(--dim); background: transparent; }
.chat-attachment-help { margin: .38rem 0 0 3.2rem; color: var(--dim); font-size: .65rem; line-height: 1.4; }
.chat-composer-footer { margin-top: .42rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.chat-composer-note { color: var(--dim); font-size: .68rem; }
.chat-composer-actions { display: flex; align-items: center; gap: .5rem; }
.chat-usage { color: var(--dim); font: .66rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-pagination { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-top: .65rem; }
.admin-pagination span { color: var(--dim); font-size: .75rem; }
.admin-user-filters { display: grid; grid-template-columns: minmax(12rem, 1.5fr) minmax(9rem, .7fr) minmax(9rem, .7fr) auto; align-items: end; gap: .6rem; margin: .75rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: .48rem; background: var(--surface-2); }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: .38rem; min-width: 16rem; }
.admin-row-actions button { min-height: 2rem; padding: .34rem .5rem; font-size: .72rem; }
.dialog-form { display: grid; gap: .8rem; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.quota-note { margin: -.25rem 0 0; color: var(--dim); font-size: .74rem; line-height: 1.45; }
.vscode-generator { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .48rem; background: var(--surface-2); }
.vscode-generator-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.vscode-generator-head h3 { margin: .22rem 0 .35rem; font-size: 1.1rem; }
.vscode-generator-head p { max-width: 48rem; margin: 0; color: var(--muted); line-height: 1.55; }
.vscode-generator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.vscode-secret-warning { grid-column: 1 / -1; display: flex; align-items: start; gap: .55rem; padding: .7rem; border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--line)); border-radius: .35rem; background: var(--surface); color: var(--muted); font-size: .76rem; line-height: 1.45; }
.vscode-secret-warning input { width: 1rem; min-height: 1rem; margin: .15rem 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.vscode-config-output { display: grid; gap: .65rem; margin-top: .85rem; }
.vscode-code-block { min-width: 0; border: 1px solid var(--line); border-radius: .4rem; overflow: hidden; background: var(--code-bg); }
.vscode-code-head { min-height: 2.35rem; padding: .4rem .5rem .4rem .75rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-bottom: 1px solid var(--line); color: #aeb8c5; font: .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.vscode-code-head div { display: flex; flex-wrap: wrap; gap: .35rem; }
.vscode-code-head button { min-height: 1.8rem; padding: .25rem .48rem; color: var(--muted); background: transparent; font-size: .7rem; }
.vscode-code-block pre { max-height: 28rem; margin: 0; overflow: auto; padding: .9rem; color: var(--code-text); font: .78rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; tab-size: 2; }
.docs-page::before { display: none; }
body.docs-page { background: var(--bg); }
.docs-page h1, .docs-page h2 { font-family: inherit; }
.docs-page main { max-width: 1420px; padding-top: .45rem; }
.docs-mobile-nav { display: none; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); }
.docs-mobile-nav summary { min-height: 2.75rem; padding: .72rem .9rem; cursor: pointer; font-weight: 750; }
.docs-mobile-nav nav { display: grid; padding: 0 .9rem .9rem; }
.docs-mobile-nav a { padding: .5rem 0; color: var(--muted); text-decoration: none; }
.docs-shell { display: grid; grid-template-columns: 15rem minmax(0, 48rem) 12rem; justify-content: center; align-items: start; gap: 2rem; }
.docs-sidebar, .docs-outline { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.docs-sidebar { padding: .8rem 1.25rem .8rem 0; border-right: 1px solid var(--line); }
.docs-outline { padding: .8rem 0 .8rem 1.15rem; border-left: 1px solid var(--line); }
.docs-sidebar strong, .docs-outline strong { display: block; margin-bottom: .72rem; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.docs-sidebar nav, .docs-outline nav { display: grid; gap: .16rem; }
.docs-sidebar a, .docs-outline a { padding: .42rem .52rem; border-radius: .35rem; color: var(--muted); text-decoration: none; font-size: .86rem; line-height: 1.35; }
.docs-sidebar a:hover, .docs-outline a:hover { background: var(--surface); color: var(--text); }
.docs-sidebar .docs-nav-group { margin: 1rem .52rem .3rem; color: var(--dim); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.docs-version { display: inline-flex; margin-top: 1rem; padding: .28rem .48rem; border: 1px solid var(--line); border-radius: .35rem; color: var(--dim); font: .7rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-content { min-width: 0; }
.docs-hero { padding: 1rem 0 2.2rem; border-bottom: 1px solid var(--line); }
.docs-hero h1 { max-width: none; margin: .55rem 0 .8rem; font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1; }
.docs-hero > p { max-width: 44rem; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.docs-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; color: var(--dim); font: .74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; text-transform: uppercase; }
.docs-callout { margin-top: 1.25rem; padding: .88rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: .42rem; background: var(--surface); color: var(--muted); line-height: 1.58; }
.docs-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 1.2rem; border: 1px solid var(--line); border-radius: .45rem; overflow: hidden; background: var(--line); }
.docs-live div { min-width: 0; padding: .68rem .78rem; background: var(--bg); }
.docs-live span { display: block; color: var(--dim); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.docs-live strong { display: block; margin-top: .25rem; overflow-wrap: anywhere; font-size: .86rem; }
.docs-section { padding: 2.4rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.docs-section h2 { margin: 0 0 .8rem; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.02em; }
.docs-section h3 { margin: 1.8rem 0 .65rem; font-size: 1.08rem; }
.docs-section p, .docs-section li { color: var(--muted); line-height: 1.7; }
.docs-section ol, .docs-section ul { padding-left: 1.25rem; }
.docs-section code:not(pre code), .endpoint code { padding: .12rem .32rem; border: 1px solid var(--line); border-radius: .28rem; background: var(--surface); color: var(--text); font: .82em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-code { margin: 1rem 0 1.25rem; border: 1px solid var(--line); border-radius: .48rem; overflow: hidden; background: var(--code-bg); }
.docs-code-head { display: flex; align-items: center; justify-content: space-between; min-height: 2.35rem; padding: .4rem .55rem .4rem .8rem; border-bottom: 1px solid var(--line); background: var(--code-head-bg); color: #aeb8c5; font: .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-code-head button { min-height: 1.8rem; padding: .26rem .52rem; border-radius: .32rem; background: transparent; color: var(--muted); font-size: .72rem; }
.docs-code pre { max-width: 100%; margin: 0; overflow-x: auto; padding: 1rem; color: var(--code-text); font: .84rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; }
.endpoint-list { display: grid; gap: .45rem; margin: 1rem 0; }
.endpoint { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: .42rem; background: var(--surface); }
.endpoint .method { color: var(--accent-2); font: 800 .73rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.endpoint .scope { color: var(--dim); font-size: .72rem; }
.docs-table { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: .45rem; }
.docs-table table { min-width: 36rem; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-pagination { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 0; }
.docs-pagination a { flex: 1; padding: .85rem; border: 1px solid var(--line); border-radius: .42rem; color: var(--muted); text-decoration: none; }
.docs-pagination a:last-child { text-align: right; }
.site-footer { max-width: 1420px; margin: auto; padding: 1.2rem 1.25rem 2rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .78rem; }
.site-footer div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }
.site-footer a { color: var(--accent); }
[hidden] { display: none !important; }
dialog { width: min(34rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); color: var(--text); }
dialog::backdrop { background: var(--backdrop); }
@media (max-width: 1440px) {
  .workbench-grid { grid-template-columns: minmax(12rem, 14rem) minmax(14rem, 17rem) minmax(22rem, 1fr); }
  .workbench-inspector { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--line); border-left: 0; }
  .inspector-section + .inspector-section { margin-top: 0; padding-top: 0; padding-left: 1rem; border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 1180px) {
  .workbench-grid { grid-template-columns: minmax(13rem, 16rem) minmax(18rem, 1fr); }
  .workbench-conversation { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .workbench-history { border-right: 1px solid var(--line); }
  .history-list { max-height: 18rem; }
}
@media (max-width: 920px) {
  :root { --sidebar: 12.5rem; }
  .hero { grid-template-columns: 1fr; }
  
  .hero { min-height: 0; }
  .hero-art { min-height: 20rem; }
  .grid, .grid.two, .account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-shell { grid-template-columns: 13.5rem minmax(0, 1fr); gap: 1.4rem; }
  .docs-outline { display: none; }
}
@media (max-width: 780px) {
  .app-shell { display: block; }
  .site-sidebar { position: static; height: auto; padding: .55rem .7rem; gap: .55rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { max-width: 20rem; }
  .sidebar-label, .sidebar-context { display: none; }
  .nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr)); overflow: visible; }
  .nav a { min-width: 0; text-align: center; }
  .site-topbar { min-height: 3rem; padding: .5rem .75rem; }
  .host-badge { display: none; }
  .vscode-generator-grid { grid-template-columns: 1fr; }
  .vscode-generator-head { display: block; }
  .docs-page main { padding-top: .3rem; }
  .docs-mobile-nav { display: block; }
  .docs-shell { display: block; }
  .docs-sidebar { display: none; }
  .docs-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench { min-height: 0; }
  .workbench-grid { display: block; min-height: 0; }
  .workbench-history { border-right: 0; border-bottom: 1px solid var(--line); }
  .history-list { max-height: 16rem; }
  .workbench-config { border-right: 0; border-bottom: 1px solid var(--line); }
  .workbench-conversation { min-height: 34rem; }
  .transcript { max-height: 34rem; }
  .workbench-inspector { display: grid; grid-template-columns: 1fr; }
  .inspector-section + .inspector-section { padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  body[data-page="chat"] main { padding: 0; }
  .chat-app { min-height: calc(100dvh - 7.4rem); border-width: 1px 0 0; border-radius: 0; }
  .chat-toolbar { flex-wrap: wrap; }
  .chat-toolbar .chat-menu { display: inline-flex; }
  .chat-toolbar-status { order: 10; flex: 1 0 100%; margin: 0; white-space: normal; line-height: 1.35; }
  .chat-layout { display: block; min-height: calc(100dvh - 10.65rem); }
  .chat-history { position: fixed; z-index: 80; inset: 0 auto 0 0; width: min(88vw, 20rem); padding-top: max(.75rem, env(safe-area-inset-top)); padding-bottom: max(.75rem, env(safe-area-inset-bottom)); transform: translateX(-105%); transition: transform .2s ease; border-right: 1px solid var(--line); box-shadow: var(--drawer-shadow); }
  .chat-app[data-drawer="open"] .chat-history { transform: translateX(0); }
  .chat-history-close { display: inline-flex; }
  .chat-history-list { max-height: none; }
  .chat-history-actions button, .chat-history-delete { min-width: 2.75rem; min-height: 2.75rem; }
  .chat-scrim { position: fixed; z-index: 70; inset: 0; border: 0; border-radius: 0; background: var(--scrim); }
  .chat-app[data-drawer="open"] .chat-scrim { display: block; }
  .chat-transcript { max-height: calc(100dvh - 18.5rem); padding: 1rem .8rem; }
  .chat-composer-wrap { position: sticky; bottom: 0; padding: .55rem .65rem max(.55rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 580px) {
  main { padding: .75rem .7rem 2.5rem; }
  body[data-page="playground"] main { padding: .5rem; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a { text-align: center; padding: .42rem .5rem; }
  .hero-copy { padding: 1.25rem; }
  h1 { font-size: 2.25rem; }
  .hero-art { min-height: 17rem; }
  .hero-art img { max-height: 16rem; }
  .grid, .grid.two, .account-summary, .form-grid { grid-template-columns: 1fr; }
  .auth-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; }
  .auth-tabs button { flex: 0 0 auto; scroll-snap-align: start; }
  .admin-user-filters { grid-template-columns: 1fr; }
  .admin-pagination { justify-content: space-between; flex-wrap: wrap; }
  .theme-control { min-width: 6.6rem; }
  .theme-control select { padding-inline: .45rem; }
  .metric strong { font-size: 1.15rem; }
  .field.full { grid-column: auto; }
  .page-head { grid-template-columns: 1fr 4rem; }
  .page-head img { width: 4rem; height: 4rem; }
  
  .docs-live { grid-template-columns: 1fr; }
  .endpoint { grid-template-columns: 3rem minmax(0, 1fr); }
  .endpoint .scope { grid-column: 2; }
  .docs-pagination { flex-direction: column; }
  .docs-pagination a:last-child { text-align: left; }
  .edge-only { min-height: 28rem; grid-template-columns: 1fr; }
  .edge-only img { width: 8rem; justify-self: center; }
  .workbench-header { align-items: flex-start; }
  .workbench-title { align-items: flex-start; flex-direction: column; }
  .workbench-title h1 { font-size: .86rem; }
  .composer-footer { align-items: flex-end; }
  .composer-hint { max-width: 12rem; }
  .chat-toolbar { min-height: 3rem; padding: .42rem .5rem; }
  .chat-model-wrap, .chat-reasoning-wrap { min-width: 0; max-width: none; }
  .chat-model-wrap { flex: 1 1 calc(100% - 3rem); }
  .chat-reasoning-wrap { flex: 1 1 11rem; }
  .chat-toolbar .button { padding-inline: .55rem; }
  .chat-transcript { min-height: 18rem; max-height: calc(100dvh - 18rem); }
  .chat-message { margin-bottom: .8rem; }
  .chat-message.user .chat-message-body { margin-left: 1.5rem; }
  .chat-message-body { padding: .72rem .8rem; }
  .chat-composer-footer { align-items: flex-end; }
  .chat-composer-note { max-width: 10rem; }
  .chat-attachment-help { margin-left: 0; }
  .chat-usage { display: none; }
  .responsive-table { overflow: visible; border: 0; }
  .responsive-table table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; min-width: 0; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .responsive-table tr { margin-bottom: .55rem; padding: .55rem; border: 1px solid var(--line); border-radius: .32rem; background: var(--bg); }
  .responsive-table td { display: grid; grid-template-columns: minmax(7.5rem, .42fr) minmax(0, 1fr); gap: .55rem; padding: .38rem .28rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table td::before { content: attr(data-label); color: var(--dim); font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
  .responsive-table td.table-empty { display: block; text-align: left; }
  .responsive-table td.table-empty::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
