:root {
  --bg: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f7f9fa;
  --surface-3: #edf2f3;
  --ink: #152331;
  --muted: #687784;
  --line: #d8e0e5;
  --line-strong: #c5d0d7;
  --nav: #152331;
  --nav-soft: #203548;
  --accent: #16705c;
  --accent-strong: #115a4a;
  --accent-soft: #e7f2ef;
  --warning: #b7791f;
  --warning-soft: #fff6e7;
  --danger: #b34f49;
  --danger-soft: #fff0ef;
  --shadow: 0 16px 40px rgba(21, 35, 49, .1);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.admin-body { min-height: 100dvh; overflow: hidden; background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100dvh; }
.admin-sidebar { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; padding: 28px 18px 20px; color: #d9e2e7; background: var(--nav); }
.admin-brand { display: inline-flex; align-items: baseline; gap: 3px; padding: 0 12px 28px; color: #fff; font-size: 24px; text-decoration: none; letter-spacing: -.03em; }
.admin-brand strong { color: #67c5b0; }
.admin-nav { display: grid; align-content: start; gap: 6px; }
.admin-nav > p { margin: 8px 12px 10px; color: #8798a5; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav a, .admin-nav > span { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: #c5d1d8; text-decoration: none; font-size: 13px; font-weight: 700; }
.admin-nav svg { width: 20px; height: 20px; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-nav a.active { color: #fff; background: var(--nav-soft); box-shadow: inset 3px 0 0 #67c5b0; }
.admin-nav .disabled { color: #72838f; }
.admin-nav small { color: #71838f; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.admin-sidebar-footer { display: grid; gap: 18px; padding: 20px 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-footer > a { color: #b7c6cf; font-size: 12px; text-decoration: none; }
.admin-sidebar-footer div { display: grid; gap: 3px; }
.admin-sidebar-footer span { overflow: hidden; color: #fff; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar-footer small { color: #82939e; font-size: 10px; }

.admin-main { min-width: 0; height: 100dvh; overflow: auto; padding: 22px 28px 30px; }
.admin-console-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1580px; margin: 0 auto 18px; }
.admin-console-header h1, .pane-heading h2, .admin-settings-sheet h2 { margin: 2px 0 0; letter-spacing: -.035em; }
.admin-console-header h1 { font-size: 26px; }
.admin-eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.admin-connection-strip { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.admin-connection-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: #435464; background: var(--surface); font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-connection-chip i, .llm-run-status > i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #93a2ad; }
[data-status="success"] i, [data-status="ready"] i, [data-status="completed"] i, [data-status="succeeded"] i { background: #2e9a7f; box-shadow: 0 0 0 3px rgba(46,154,127,.12); }
[data-status="warning"] i, [data-status="queued"] i, [data-status="running"] i, [data-status="loading"] i { background: #d59a37; box-shadow: 0 0 0 3px rgba(213,154,55,.12); }
[data-status="failed"] i, [data-status="error"] i, [data-status="cancelled"] i { background: var(--danger); box-shadow: 0 0 0 3px rgba(179,79,73,.12); }
.icon-button { display: inline-grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: #526370; background: var(--surface); }
.icon-button:hover { color: var(--accent); border-color: #a9c9c0; }
.icon-button svg { width: 18px; height: 18px; }

.admin-notice { max-width: 1580px; margin: 0 auto 14px; padding: 11px 14px; border: 1px solid #ebd4a9; border-radius: 9px; color: #765416; background: var(--warning-soft); font-size: 12px; }
.admin-notice[data-tone="error"] { color: #8b3733; border-color: #efc0bc; background: var(--danger-soft); }

.llm-console-grid { display: grid; grid-template-columns: minmax(330px,.72fr) minmax(500px,1.28fr); max-width: 1580px; min-height: calc(100dvh - 102px); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.llm-request-pane, .llm-result-pane { min-width: 0; padding: 24px; }
.llm-request-pane { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.llm-result-pane { display: grid; grid-template-rows: auto auto auto auto minmax(280px,1fr); align-content: start; }
.pane-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-height: 54px; margin-bottom: 18px; }
.pane-heading h2 { font-size: 22px; }
.pane-heading > span { color: var(--muted); font-size: 10px; }

#admin-console-form { display: grid; gap: 14px; }
.llm-parameter-row { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(100px,.72fr); gap: 10px; }
.llm-parameter-row label, .llm-prompt-field, .settings-fields label { display: grid; gap: 7px; min-width: 0; }
.llm-parameter-row label > span, .llm-prompt-field > span, .settings-fields label > span { color: #455665; font-size: 11px; font-weight: 800; }
select, textarea { width: 100%; border: 1px solid var(--line-strong); color: var(--ink); background: #fbfcfd; outline: none; }
select { min-height: 42px; padding: 0 34px 0 11px; border-radius: 9px; }
textarea { padding: 14px; border-radius: 10px; line-height: 1.55; resize: vertical; }
select:focus, textarea:focus { border-color: #71a99b; box-shadow: 0 0 0 3px rgba(22,112,92,.1); }
.llm-prompt-field textarea { min-height: 230px; }
.llm-prompt-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; }
kbd { padding: 1px 5px; border: 1px solid var(--line-strong); border-radius: 4px; color: #52616d; background: var(--surface-2); font: inherit; font-weight: 750; }
.llm-request-actions { display: grid; grid-template-columns: minmax(120px,1fr) auto auto; gap: 8px; }
.button { min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 800; }
.button.primary { color: #fff; background: var(--accent); }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { color: #425361; border-color: var(--line-strong); background: var(--surface); }
.button.quiet { color: var(--accent); background: transparent; }
.text-button { padding: 0; border: 0; color: var(--accent); background: transparent; font-size: 11px; font-weight: 800; }

.llm-history { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.llm-history > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.llm-history h3, .admin-settings-body h3 { margin: 0; font-size: 14px; }
.llm-history > header span { color: var(--muted); font-size: 9px; }
.llm-history-list { display: grid; gap: 7px; max-height: 230px; overflow: auto; }
.llm-history-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; text-align: left; background: var(--surface); }
.llm-history-item:hover, .llm-history-item.active { border-color: #9ec3b9; background: var(--accent-soft); }
.llm-history-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.llm-history-item span { color: var(--muted); font-size: 9px; }
.llm-history-item i { width: 7px; height: 7px; align-self: center; border-radius: 50%; background: #8d9ba5; }

.llm-run-status { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: #536573; background: var(--surface-2); font-size: 12px; }
.llm-run-status > span { flex: 1; }
.llm-run-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 16px 0 12px; }
.llm-run-metrics div { display: grid; gap: 3px; padding-right: 14px; border-right: 1px solid var(--line); }
.llm-run-metrics div + div { padding-left: 14px; }
.llm-run-metrics div:last-child { border-right: 0; }
.llm-run-metrics dt { color: var(--muted); font-size: 9px; }
.llm-run-metrics dd { margin: 0; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.llm-result-tabs { display: flex; gap: 18px; min-height: 42px; border-bottom: 1px solid var(--line); }
.llm-result-tabs button { position: relative; padding: 0 0 10px; border: 0; color: #647582; background: transparent; font-size: 11px; font-weight: 800; }
.llm-result-tabs button.active { color: var(--ink); }
.llm-result-tabs button.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: var(--accent); }
.llm-result-content { min-height: 0; overflow: auto; padding-top: 18px; }
.llm-result-content section { min-height: 100%; }
.llm-result-content pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.55 "Cascadia Mono", Consolas, monospace; }
.llm-answer { font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.llm-diagnostic-list { display: grid; gap: 8px; }
.llm-diagnostic-row { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.llm-diagnostic-row span:first-child { color: var(--muted); }
.empty-copy { margin: 0; color: #87949e; font-size: 12px; line-height: 1.55; }

.admin-settings-dialog { width: min(880px,calc(100vw - 30px)); max-height: calc(100dvh - 30px); padding: 0; overflow: hidden; border: 0; border-radius: 16px; color: var(--ink); background: transparent; box-shadow: var(--shadow); }
.admin-settings-dialog::backdrop { background: rgba(16,29,42,.64); }
.admin-settings-sheet { display: grid; grid-template-rows: auto minmax(0,1fr); max-height: calc(100dvh - 30px); background: var(--surface); }
.admin-settings-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.admin-settings-sheet h2 { font-size: 24px; }
.admin-settings-body { overflow: auto; padding: 22px 24px 24px; }
.admin-account-section { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.settings-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.account-overview { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 20px; }
.account-identity { display: grid; align-content: start; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.account-identity strong { font-size: 14px; }
.account-identity span { color: var(--muted); font-size: 10px; }
.account-limits { display: grid; gap: 14px; }
.quota-row { display: grid; gap: 7px; }
.quota-row header { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.quota-track { display: block; width: 100%; height: 8px; overflow: hidden; appearance: none; border: 0; border-radius: 999px; color: var(--accent); background: #e7ecef; }
.quota-track::-webkit-progress-bar { border-radius: 999px; background: #e7ecef; }
.quota-track::-webkit-progress-value { border-radius: 999px; background: var(--accent); }
.quota-track::-moz-progress-bar { border-radius: 999px; background: var(--accent); }
.quota-row small { color: var(--muted); font-size: 9px; }
#admin-defaults-form { display: grid; gap: 18px; padding-top: 22px; }
.settings-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.settings-fields small { min-height: 26px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }

.admin-toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: grid; gap: 8px; }
.admin-toast { max-width: 360px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; color: #fff; background: var(--nav); box-shadow: var(--shadow); font-size: 11px; }
.admin-toast.error { background: #923d38; }
.admin-toast.success { background: var(--accent-strong); }

.audit-main { display: grid; align-content: start; gap: 16px; }
.audit-main .admin-console-header { width: 100%; margin-bottom: 0; }
.audit-overview, .audit-package-section, .audit-gates-section { max-width: 1580px; width: 100%; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.audit-overview { padding: 20px 22px; }
.audit-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.audit-section-heading h2 { margin: 2px 0 0; font-size: 18px; letter-spacing: -.025em; }
.audit-section-heading > span { color: var(--muted); font-size: 10px; }
.audit-release-id { max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Cascadia Mono", Consolas, monospace; }
.audit-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; border-top: 1px solid var(--line); }
.audit-stat-grid > div { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 17px 18px 0 0; }
.audit-stat-grid > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.audit-stat-grid dt { color: var(--muted); font-size: 10px; font-weight: 750; }
.audit-stat-grid dd { margin: 0; overflow: hidden; font-size: 24px; font-weight: 850; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.audit-stat-grid small { color: var(--muted); font-size: 9px; }
.audit-content-grid { display: grid; grid-template-columns: minmax(620px,1.55fr) minmax(290px,.65fr); gap: 16px; max-width: 1580px; width: 100%; margin: 0 auto; }
.audit-package-section, .audit-gates-section { min-width: 0; padding: 20px 22px; }
.audit-package-explainer { display: grid; gap: 5px; margin: -3px 0 15px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.audit-package-explainer p { margin: 0; }
.audit-package-explainer strong { color: #415463; }
.audit-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.audit-package-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.audit-package-table th, .audit-package-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; }
.audit-package-table th { color: var(--muted); background: var(--surface-2); font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.audit-package-table td { font-size: 11px; }
.audit-package-table tbody tr:last-child td { border-bottom: 0; }
.audit-package-table tbody tr:hover { background: #f8fbfa; }
.audit-publication { font-weight: 850; }
.audit-profile { display: inline-flex; align-items: center; gap: 6px; color: #425564; }
.audit-profile i { width: 7px; height: 7px; border-radius: 50%; background: #2e9a7f; }
.audit-profile[data-profile="legacy_compatible"] i { background: #d59a37; }
.audit-row-open { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: var(--surface); }
.audit-row-open:hover { border-color: #91bdb1; background: var(--accent-soft); }
.audit-row-open svg { width: 15px; height: 15px; }
.audit-empty-cell { color: var(--muted); text-align: center !important; }
.audit-gate-list { display: grid; gap: 2px; }
.audit-gate-item { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.audit-gate-item:last-child { border-bottom: 0; }
.audit-gate-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.audit-gate-item[data-status="pass"] i { background: #2e9a7f; }
.audit-gate-item strong { font-size: 10px; }
.audit-gate-item span { color: var(--muted); font-size: 9px; }

.audit-detail-dialog { width: min(720px,calc(100vw - 30px)); max-height: calc(100dvh - 30px); padding: 0; overflow: hidden; border: 0; border-radius: 16px; color: var(--ink); background: transparent; box-shadow: var(--shadow); }
.audit-detail-dialog::backdrop { background: rgba(16,29,42,.64); }
.audit-detail-sheet { display: grid; grid-template-rows: auto minmax(0,1fr); max-height: calc(100dvh - 30px); background: var(--surface); }
.audit-detail-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 22px; border-bottom: 1px solid var(--line); }
.audit-detail-sheet h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.03em; }
.audit-detail-body { overflow: auto; padding: 20px 22px 24px; }
.audit-detail-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.audit-detail-status strong { font-size: 18px; }
.audit-status-pill { padding: 6px 9px; border-radius: 999px; color: var(--accent-strong); background: var(--accent-soft); font-size: 9px; font-weight: 850; }
.audit-status-pill[data-status="blocked"] { color: #8b3733; background: var(--danger-soft); }
.audit-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 16px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.audit-detail-field { display: grid; gap: 5px; min-width: 0; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audit-detail-field dt { color: var(--muted); font-size: 9px; }
.audit-detail-field dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 750; }
.audit-detail-group { margin-top: 20px; }
.audit-detail-group h3 { margin: 0 0 9px; font-size: 13px; }
.audit-storage-note { margin: -3px 0 11px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.audit-storage-list { display: grid; border-top: 1px solid var(--line); }
.audit-storage-row { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.audit-storage-row-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.audit-storage-row-heading span { min-width: 0; font-size: 10px; font-weight: 750; }
.audit-storage-row-heading strong { flex: 0 0 auto; font-size: 10px; }
.audit-storage-row small { color: var(--muted); font-size: 8px; }
.audit-storage-meter { width: 100%; height: 6px; overflow: hidden; appearance: none; border: 0; border-radius: 999px; color: #3b8c77; background: #e7ecef; }
.audit-storage-meter::-webkit-progress-bar { border-radius: 999px; background: #e7ecef; }
.audit-storage-meter::-webkit-progress-value { border-radius: 999px; background: #3b8c77; }
.audit-storage-meter::-moz-progress-bar { border-radius: 999px; background: #3b8c77; }
.audit-storage-row[data-category="page_renders"] .audit-storage-meter { color: #c38522; }
.audit-storage-row[data-category="page_renders"] .audit-storage-meter::-webkit-progress-value { background: #c38522; }
.audit-storage-row[data-category="page_renders"] .audit-storage-meter::-moz-progress-bar { background: #c38522; }
.audit-hash-list { display: grid; gap: 8px; }
.audit-hash-row { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 12px; padding: 9px 10px; background: var(--surface-2); }
.audit-hash-row span { color: var(--muted); font-size: 9px; }
.audit-hash-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 9px/1.4 "Cascadia Mono", Consolas, monospace; }

@media (max-width: 1120px) {
  .admin-main { padding: 18px; }
  .admin-console-header { align-items: flex-start; }
  .admin-connection-strip { max-width: 620px; }
  .llm-console-grid { grid-template-columns: minmax(310px,.82fr) minmax(420px,1.18fr); }
  .llm-parameter-row { grid-template-columns: 1fr 1fr; }
  .llm-parameter-row label:first-child { grid-column: 1/-1; }
  .audit-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-body { overflow: auto; }
  .admin-shell { grid-template-columns: 76px minmax(0,1fr); }
  .admin-sidebar { padding-inline: 10px; }
  .admin-brand { justify-content: center; padding-inline: 0; font-size: 0; }
  .admin-brand strong::first-letter { font-size: 23px; }
  .admin-nav a, .admin-nav > span { grid-template-columns: 1fr; justify-items: center; padding-inline: 0; }
  .admin-nav a span, .admin-nav > span span, .admin-nav small, .admin-nav > p, .admin-sidebar-footer div { display: none; }
  .admin-sidebar-footer { padding-inline: 0; text-align: center; }
  .admin-sidebar-footer > a { font-size: 0; }
  .admin-sidebar-footer > a::before { content: "←"; font-size: 18px; }
  .llm-console-grid { grid-template-columns: 1fr; }
  .llm-request-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .llm-result-pane { min-height: 620px; }
}

@media (max-width: 760px) {
  .admin-shell { display: block; }
  .admin-sidebar { position: sticky; top: 0; z-index: 10; display: flex; min-height: 54px; height: 54px; align-items: center; padding: 0 10px; }
  .admin-brand { width: 88px; padding: 0; font-size: 16px; }
  .admin-brand strong::first-letter { font-size: inherit; }
  .admin-nav { display: flex; flex: 1; justify-content: flex-end; }
  .admin-nav > p, .admin-nav > span, .admin-sidebar-footer { display: none; }
  .admin-nav a { width: 44px; min-height: 40px; }
  .admin-main { height: auto; min-height: calc(100dvh - 54px); padding: 12px; }
  .admin-console-header { display: grid; gap: 12px; }
  .admin-connection-strip { justify-content: flex-start; }
  .admin-connection-chip { font-size: 9px; }
  .llm-request-pane, .llm-result-pane { padding: 16px; }
  .llm-parameter-row, .settings-fields { grid-template-columns: 1fr; }
  .llm-parameter-row label:first-child { grid-column: auto; }
  .llm-prompt-field textarea { min-height: 170px; }
  .llm-request-actions { grid-template-columns: 1fr 1fr; }
  .llm-request-actions .quiet { grid-column: 1/-1; }
  .llm-run-metrics { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .llm-run-metrics div:nth-child(2) { border-right: 0; }
  .llm-run-metrics div:nth-child(3) { padding-left: 0; }
  .account-overview { grid-template-columns: 1fr; }
  .admin-settings-body { padding: 18px; }
  .audit-main { gap: 12px; }
  .audit-overview, .audit-package-section, .audit-gates-section { padding: 16px; }
  .audit-section-heading { display: grid; gap: 8px; }
  .audit-release-id { max-width: 100%; }
  .audit-stat-grid { grid-template-columns: 1fr 1fr; }
  .audit-stat-grid > div { padding: 13px 10px 13px 0; border-bottom: 1px solid var(--line); }
  .audit-stat-grid > div + div { padding-left: 10px; }
  .audit-stat-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .audit-stat-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .audit-stat-grid dd { font-size: 20px; }
  .audit-detail-grid { grid-template-columns: 1fr; }
  .audit-hash-row { grid-template-columns: 1fr; gap: 4px; }
}
