/* ================================================================ tokens */
:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --surface-3: #f0efec;
  --border: #e3e2de;
  --border-strong: #cfcec9;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #85847e;
  --accent: #2a78d6;
  --accent-hover: #256abf;
  --accent-soft: #e6f0fc;
  --accent-text: #1c5cab;
  --series-1: #2a78d6;
  --grid: #ecebe7;
  --good: #0ca30c;
  --good-text: #006300;
  --good-soft: #e5f5e5;
  --warning: #fab219;
  --warning-text: #8a5a00;
  --warning-soft: #fdf3dc;
  --critical: #d03b3b;
  --critical-text: #b02b2b;
  --critical-soft: #fbe9e9;
  --reasoning-bg: #f6f5f1;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .18);
  --radius: 10px;
  --radius-sm: 6px;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110;
    --surface: #1a1a19;
    --surface-2: #1f1f1e;
    --surface-3: #262624;
    --border: #2e2e2b;
    --border-strong: #3d3d39;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --text-3: #8d8c85;
    --accent: #3987e5;
    --accent-hover: #5598e7;
    --accent-soft: #17283d;
    --accent-text: #86b6ef;
    --series-1: #3987e5;
    --grid: #2a2a27;
    --good-text: #4cc94c;
    --good-soft: #142a14;
    --warning-text: #fab219;
    --warning-soft: #2d2512;
    --critical-text: #f07a7a;
    --critical-soft: #331b1b;
    --reasoning-bg: #222220;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110;
  --surface: #1a1a19;
  --surface-2: #1f1f1e;
  --surface-3: #262624;
  --border: #2e2e2b;
  --border-strong: #3d3d39;
  --text: #f0efec;
  --text-2: #c3c2b7;
  --text-3: #8d8c85;
  --accent: #3987e5;
  --accent-hover: #5598e7;
  --accent-soft: #17283d;
  --accent-text: #86b6ef;
  --series-1: #3987e5;
  --grid: #2a2a27;
  --good-text: #4cc94c;
  --good-soft: #142a14;
  --warning-text: #fab219;
  --warning-soft: #2d2512;
  --critical-text: #f07a7a;
  --critical-soft: #331b1b;
  --reasoning-bg: #222220;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
}

/* ================================================================ base */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 620; }
.boot { padding: 40px; color: var(--text-3); text-align: center; }
[v-cloak] { display: none; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ================================================================ layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; font-weight: 680; font-size: 15px; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.brand small { display: block; font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; text-decoration: none;
}
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 6px; }
.main { flex: 1; min-width: 0; padding: 24px 28px 48px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-3); }

@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { padding: 10px 12px; }
  .brand small { display: none; }
  .brand span.brand-name { display: none; }
  .nav { flex-direction: row; overflow-x: auto; padding: 6px 4px; flex: 1; }
  .nav a { padding: 7px 8px; white-space: nowrap; gap: 6px; }
  .nav a span.nav-label { font-size: 13px; }
  .sidebar-foot { margin: 0; border: 0; padding: 6px 8px; gap: 2px; }
  .sidebar-foot .nav-label { display: none; }
  .nav a:not(.active) .nav-label { display: none; }
  .main { padding: 16px 16px 40px; }
}

/* ================================================================ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 520; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.danger { color: var(--critical-text); }
.btn.danger:hover:not(:disabled) { background: var(--critical-soft); border-color: var(--critical); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 32px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn.lg { height: 40px; padding: 0 20px; font-size: 15px; }

input[type="text"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; height: 34px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
label.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .field-label { font-weight: 550; font-size: 13px; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { border: 0; background: var(--surface); color: var(--text-2); padding: 0 12px; height: 32px; font: inherit; cursor: pointer; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

/* ================================================================ cards & tables */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl.fixed { table-layout: fixed; min-width: 720px; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th { font-weight: 600; font-size: 12.5px; color: var(--text-3); background: var(--surface-2); white-space: nowrap; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.clickable:hover td { background: var(--surface-2); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.mono, .tbl .mono-cell .mono { white-space: nowrap; }
.empty { padding: 36px 20px; text-align: center; color: var(--text-3); }
.empty .btn { margin-top: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px;
  font-weight: 550; background: var(--surface-3); color: var(--text-2); white-space: nowrap; line-height: 20px;
}
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.badge.good { background: var(--good-soft); color: var(--good-text); }
.badge.warning { background: var(--warning-soft); color: var(--warning-text); }
.badge.critical { background: var(--critical-soft); color: var(--critical-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.good { background: var(--good); }
.dot.warning { background: var(--warning); }
.dot.critical { background: var(--critical); }
.dot.idle { background: var(--border-strong); }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ================================================================ modal & toast */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10, 10, 10, .45); z-index: 100; display: flex;
  align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto;
}
.modal { width: 100%; max-width: 560px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-lg); padding: 10px 14px; border-radius: 8px; font-size: 13.5px; word-break: break-word;
}
.toast.success { border-left-color: var(--good); }
.toast.error { border-left-color: var(--critical); }

/* ================================================================ login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; padding: 32px 28px; }
.login-card .brand { padding: 0 0 20px; font-size: 18px; }
.err-text { color: var(--critical-text); font-size: 13px; }

/* ================================================================ endpoints */
.ep-list { display: flex; flex-direction: column; gap: 14px; }
.ep-card .ep-head { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; flex-wrap: wrap; }
.ep-card .ep-head > .grow { flex: 1 1 300px; }
.ep-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ep-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; color: var(--text-3); font-size: 12.5px; }
.ep-meta .mono { color: var(--text-2); }
.ep-check { font-size: 12.5px; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.ep-models { border-top: 1px solid var(--border); }
.ep-models .tbl td, .ep-models .tbl th { padding: 7px 18px; }
.ep-card.disabled { opacity: .62; }
.kv-row { display: grid; grid-template-columns: 1fr 1.6fr 32px; gap: 6px; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.preset-grid button {
  text-align: left; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
}
.preset-grid button:hover { border-color: var(--accent); }
.preset-grid button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.pick-list { max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pick-list label { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pick-list label:last-child { border-bottom: 0; }
.pick-list label:hover { background: var(--surface-2); }
.star { color: var(--text-3); cursor: pointer; background: none; border: 0; padding: 2px; display: inline-flex; }
.star:disabled { cursor: default; }
.star.on { color: #eda100; }
.star.on svg, svg.star.on { fill: currentColor; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; }
.linkish:hover { text-decoration: underline; }

/* ================================================================ compare */
.compare-layout { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .compare-layout { grid-template-columns: 1fr; } }
.config-panel { position: sticky; top: 16px; }
@media (max-width: 1100px) { .config-panel { position: static; } }
.config-panel .card-pad { display: flex; flex-direction: column; gap: 14px; }
.target-box { border: 1px solid var(--border); border-radius: var(--radius-sm); max-height: 260px; overflow-y: auto; }
.target-group-title { padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; display: flex; justify-content: space-between; }
.target-box label { display: flex; align-items: center; gap: 8px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.target-box label:hover { background: var(--surface-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; max-width: 100%; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 3px; display: inline-flex; }
details.adv summary { cursor: pointer; color: var(--text-2); font-weight: 550; font-size: 13px; }
details.adv[open] summary { margin-bottom: 10px; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
@media (max-width: 480px) { .results-grid { grid-template-columns: 1fr; } }
.result-card { display: flex; flex-direction: column; min-height: 220px; }
.result-card .rc-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); }
.rc-model { font-weight: 620; word-break: break-all; }
.rc-ep { font-size: 12px; color: var(--text-3); }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--border); }
.metric { padding: 7px 8px; border-right: 1px solid var(--border); min-width: 0; }
.metric:last-child { border-right: 0; }
.metric .m-label { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.metric .m-val { font-weight: 620; font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric .m-val.best { color: var(--good-text); }
.rc-body { padding: 12px 14px; flex: 1; overflow-y: auto; max-height: 460px; font-size: 13.5px; }
.rc-foot { padding: 8px 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 6px; justify-content: space-between; flex-wrap: wrap; }
.reasoning { background: var(--reasoning-bg); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 10px; font-size: 12.5px; color: var(--text-2); }
.reasoning summary { cursor: pointer; font-weight: 550; color: var(--text-3); }
.reasoning .reasoning-text { white-space: pre-wrap; margin-top: 6px; max-height: 200px; overflow-y: auto; }
.error-box { background: var(--critical-soft); color: var(--critical-text); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; word-break: break-word; }
.raw { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 12.5px; margin: 0; }
.cursor::after { content: "▍"; color: var(--accent); animation: pulse 1s infinite; margin-left: 1px; }
.summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.summary-strip .card { padding: 10px 14px; }
.summary-strip .s-label { font-size: 12px; color: var(--text-3); }
.summary-strip .s-val { font-weight: 620; margin-top: 2px; word-break: break-all; }

/* markdown */
.md { word-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md pre, .md table, .md blockquote { margin: 0 0 .75em; }
.md ul, .md ol { padding-left: 1.4em; }
.md h1, .md h2, .md h3, .md h4 { font-size: 1.05em; margin: 1em 0 .5em; }
.md code { background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.md pre { background: var(--surface-3); padding: 10px 12px; border-radius: var(--radius-sm); overflow-x: auto; }
.md pre code { background: none; padding: 0; font-size: 12.5px; }
.md table { border-collapse: collapse; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--border); padding: 4px 8px; }
.md blockquote { border-left: 3px solid var(--border-strong); padding-left: 10px; color: var(--text-2); }

/* ================================================================ stats */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { padding: 14px 16px; }
.tile .t-label { font-size: 12.5px; color: var(--text-3); }
.tile .t-val { font-size: 26px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .t-sub { font-size: 12px; color: var(--text-3); }
.charts-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 960px) { .charts-2 { grid-template-columns: 1fr; } }
.barlist { padding: 8px 18px 16px; position: relative; }
.barlist .bl-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr 72px; align-items: center; gap: 10px; height: 26px; margin-bottom: 2px; }
.barlist .bl-row:hover .bl-name { color: var(--text); }
.barlist .bl-name { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist .bl-track { height: 100%; display: flex; align-items: center; border-left: 1px solid var(--grid); }
.barlist .bl-bar { height: 14px; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.barlist .bl-row:hover .bl-bar { filter: brightness(1.12); }
.barlist .bl-val { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.chart-tip {
  position: fixed; z-index: 150; pointer-events: none; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; min-width: 160px;
}
.chart-tip .tip-title { font-weight: 620; margin-bottom: 4px; word-break: break-all; }
.chart-tip .tip-row { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.chart-tip .tip-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.recommend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.recommend .card { padding: 12px 16px; }
.recommend .r-label { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.recommend .r-model { font-weight: 620; margin-top: 4px; word-break: break-all; }
.recommend .r-sub { font-size: 12px; color: var(--text-3); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar select, .toolbar input { width: auto; min-width: 120px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.detail-grid > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; }
.detail-grid .m-label { font-size: 11.5px; color: var(--text-3); }
.detail-grid .m-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.pre-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; max-height: 240px; overflow-y: auto; }
