/* TREE(3) Intelligence × Modernize — GB300 Resource Monitor */

/* ─── Fonts (local, from the TREE(3) design system) ─── */
@font-face { font-family: 'Garet'; src: url('fonts/Garet-Heavy.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Garet'; src: url('fonts/Garet-Book.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Sukhumvit Set'; src: url('fonts/SukhumvitSet-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sukhumvit Set'; src: url('fonts/SukhumvitSet-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sukhumvit Set'; src: url('fonts/SukhumvitSet-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sukhumvit Set'; src: url('fonts/SukhumvitSet-Text.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sarabun'; src: url('fonts/Sarabun-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sarabun'; src: url('fonts/Sarabun-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sarabun'; src: url('fonts/Sarabun-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sarabun'; src: url('fonts/Sarabun-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

/* ─── Tokens ─── */
:root {
  --blue-50: #E8F4FB; --blue-100: #C6E2F4; --blue-200: #9ECEEC; --blue-300: #6FB7E2; --blue-400: #4AA5DB;
  --blue-500: #29A9DF; --blue-600: #2A8DCA; --blue-700: #1C75BB; --blue-800: #155A91; --blue-900: #0E3F66;
  --neutral-0: #FFFFFF; --neutral-50: #F7F9FB; --neutral-100: #EEF2F5; --neutral-200: #DDE3E8; --neutral-300: #C2CBD3;
  --neutral-400: #99A4AE; --neutral-500: #6C7682; --neutral-600: #4A535D; --neutral-700: #2F363D; --neutral-800: #1A1F25;

  --font-display: 'Sukhumvit Set', 'Sarabun', sans-serif;
  --font-body: 'Sarabun', sans-serif;
  --font-brand: 'Garet', sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* semantic (light) */
  --bg: #F2F6FA;
  --surface: #FFFFFF;
  --surface-2: #F7F9FB;
  --surface-hover: #F6F9FC;
  --border: #E5EAEF;
  --border-strong: #DFE5EF;
  --text: #2A3547;
  --text-2: #4A535D;
  --text-muted: #6C7682;
  --primary: #1C75BB;
  --primary-hover: #155A91;
  --primary-soft: #E8F4FB;
  --primary-soft-2: #C6E2F4;
  --track: #E8F4FB;
  --grid: #EEF2F5;
  --s1: #155A91;            /* series 1 (validated vs white) */
  --s2: #29A9DF;            /* series 2 */
  --success: #16A34A; --success-bg: #E8F7EE;
  --warning: #D97706; --warning-bg: #FEF3E2;
  --error: #DC2626;   --error-bg: #FCE8E8;
  --shadow-card: rgba(145,158,171,0.30) 0 0 2px 0, rgba(145,158,171,0.12) 0 12px 24px -4px;
  --shadow-lg: 0 14px 28px rgba(28,117,187,0.12);
  --radius: 16px;
  --radius-md: 8px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A1A2A;
  --surface: #112A42;
  --surface-2: #0E2337;
  --surface-hover: #163352;
  --border: #1E3D5C;
  --border-strong: #24476A;
  --text: #E6EEF5;
  --text-2: #B9C8D6;
  --text-muted: #8FA3B6;
  --primary: #29A9DF;
  --primary-hover: #6FB7E2;
  --primary-soft: #133A5C;
  --primary-soft-2: #1B4B73;
  --track: #183A59;
  --grid: #1B3956;
  --s1: #6FB7E2;
  --s2: #1C75BB;
  --success: #34C46E; --success-bg: #12382A;
  --warning: #F0A33A; --warning-bg: #3A2C12;
  --error: #F26B6B;   --error-bg: #3D1C22;
  --shadow-card: 0 0 0 1px rgba(30,61,92,0.6), 0 12px 24px -8px rgba(0,0,0,0.45);
  --shadow-lg: 0 14px 28px rgba(0,0,0,0.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body); font-size: 0.875rem; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--primary-soft-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(41,169,223,0.30); border-radius: var(--radius-md); }
.mono, code { font-family: var(--font-mono); font-size: 0.8125rem; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.hidden { display: none !important; }

/* ─── Shell ─── */
.app { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 270px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; transition: width 220ms var(--ease-out), transform 220ms var(--ease-out);
  z-index: 20;
}
.brand { height: 70px; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand .wm { font-family: var(--font-brand); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.brand .wm-main { font-size: 17px; color: var(--primary); }
.brand .wm-sub { font-size: 8px; color: var(--blue-500); letter-spacing: 0.12em; }
.nav { flex: 1; overflow-y: auto; padding: 8px 16px; }
.nav-h { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); opacity: 0.45; padding: 20px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; margin-bottom: 2px;
  color: var(--text); text-decoration: none; font-size: 0.875rem; transition: background 150ms var(--ease-out), color 150ms;
}
.nav a svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.75; }
.nav a:hover { background: var(--surface-hover); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav a.active svg { opacity: 1; }
.nav a .chip { margin-left: auto; font-size: 0.6875rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--primary); color: #fff; }
.nav a .chip.warn { background: var(--warning); }
.nav a .chip.err { background: var(--error); }
.side-foot { padding: 14px 20px; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); }
.side-foot .host { font-weight: 600; color: var(--text); font-size: 0.8125rem; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar {
  height: 70px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center;
  gap: 12px; padding: 0 24px; flex-shrink: 0;
}
.icon-btn {
  width: 36px; height: 36px; border: none; cursor: pointer; background: transparent; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--primary); transition: background 150ms;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--primary-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.page-title { flex: 1; min-width: 0; }
.page-title h1 { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; margin: 0; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title div { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.live.stale .dot { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-bg); }
.live.down .dot { background: var(--error); box-shadow: 0 0 0 3px var(--error-bg); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.seg button { border: none; background: transparent; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); transition: background 150ms, color 150ms; }
.seg button.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 2px rgba(28,117,187,0.12); }

.content { flex: 1; overflow-y: auto; padding: 24px; }
.page { display: none; flex-direction: column; gap: 24px; max-width: 1680px; margin: 0 auto; }
.page.active { display: flex; }

/* ─── Grid ─── */
.grid { display: grid; gap: 24px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1280px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .g21, .g12 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .g4, .g2 { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .app.nav-open .sidebar { transform: none; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .hide-sm { display: none !important; }
}
@media (min-width: 861px) {
  .app.collapsed .sidebar { width: 75px; }
  .app.collapsed .brand .wm, .app.collapsed .nav-h, .app.collapsed .nav a span, .app.collapsed .nav a .chip, .app.collapsed .side-foot { display: none; }
  .app.collapsed .nav { padding: 8px; }
  .app.collapsed .nav a { justify-content: center; }
  .app.collapsed .brand { justify-content: center; padding: 0; }
}

/* ─── Cards ─── */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); min-width: 0;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.card-b { padding: 24px; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin: 0; line-height: 1.35; }
.card-h .sub { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }
.eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; display: inline-block; white-space: nowrap; }

/* stat tile */
.tile { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile-top { display: flex; align-items: center; gap: 12px; }
.tile-ic { width: 44px; height: 44px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.tile-ic svg { width: 22px; height: 22px; }
.tile-label { font-size: 0.875rem; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.tile-label small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }
.tile-val { font-family: var(--font-body); font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--text); }
.tile-val .unit { font-size: 1rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.tile-meta { font-size: 0.8125rem; color: var(--text-muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* meters */
.meter { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; display: flex; gap: 2px; }
.meter.thick { height: 12px; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width 400ms var(--ease-out); min-width: 0; }
.meter > i.warn { background: var(--warning); }
.meter > i.err { background: var(--error); }
.meter > i.c1 { background: var(--blue-800); }
.meter > i.c2 { background: var(--blue-500); }
.meter > i.c3 { background: var(--blue-200); }
.meter > i.c4 { background: var(--neutral-400); }
:root[data-theme="dark"] .meter > i.c1 { background: var(--blue-300); }
:root[data-theme="dark"] .meter > i.c2 { background: var(--blue-600); }
:root[data-theme="dark"] .meter > i.c3 { background: var(--blue-900); }

/* tall segmented bar */
.segbar { display: flex; gap: 2px; height: 28px; border-radius: 6px; overflow: hidden; }
.segbar > div { height: 100%; border-radius: 4px; display: flex; align-items: center; padding: 0 8px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; color: #fff; min-width: 0; transition: flex-basis 400ms var(--ease-out); cursor: default; }
.segbar > div.light { color: #1A1F25; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 0.8125rem; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.legend i.line { height: 3px; width: 14px; border-radius: 2px; }

/* status pill */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.pill svg { width: 12px; height: 12px; }
.pill.ok { background: var(--success-bg); color: var(--success); }
.pill.warn { background: var(--warning-bg); color: var(--warning); }
.pill.err { background: var(--error-bg); color: var(--error); }
.pill.gray { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.kind { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); white-space: nowrap; }
.kind.docker { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.kind.systemd, .kind.user-systemd { background: var(--surface-2); color: var(--text-2); }

/* meter list */
.mlist { display: flex; flex-direction: column; gap: 12px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.mrow .nm { min-width: 0; display: flex; align-items: center; gap: 8px; }
.mrow .nm b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .nm .sub2 { color: var(--text-muted); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .vl { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mrow .vl small { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.mrow .meter { grid-column: 1 / -1; }
.mrow.click { cursor: pointer; border-radius: 8px; padding: 6px 8px; margin: -6px -8px; transition: background 150ms; }
.mrow.click:hover { background: var(--surface-hover); }
.mrow.dim .nm b { color: var(--text-muted); font-weight: 500; }

/* KV list */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.8125rem; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; white-space: normal; min-width: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; padding: 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none; }
.tbl th.sort { cursor: pointer; }
.tbl th.sort:hover { color: var(--primary); }
.tbl th.on { color: var(--primary); }
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.tbl td.wrap { white-space: normal; }
.tbl td .svc-name { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.page > div:empty { display: none; }
.tbl tr.row { cursor: pointer; transition: background 150ms; }
.tbl tr.row:hover td { background: var(--surface-hover); }
.tbl tr.open td { background: var(--primary-soft); }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.cmd { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .svc-name { font-weight: 600; }
.tbl .svc-sub { font-size: 0.75rem; color: var(--text-muted); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl > tbody > tr.detail > td { background: var(--surface-2); padding: 16px 20px 20px; cursor: default; white-space: normal; }
.tbl > tbody > tr.detail .tbl td { background: transparent; }
.svc-detail-grid > div { min-width: 0; }
.inner-scroll { overflow-x: auto; }
.cellbar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cellbar .meter { width: 64px; height: 6px; flex-shrink: 0; }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }
.search input {
  height: 38px; padding: 0 14px 0 32px; border: 1.5px solid var(--border-strong); border-radius: 8px; width: 260px; max-width: 100%;
  font: inherit; color: var(--text); background: var(--surface); outline: none; transition: border-color 150ms, box-shadow 150ms;
}
.search input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(41,169,223,0.30); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--border-strong); background: var(--surface); padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 0.8125rem; color: var(--text-2); transition: all 150ms; }
.chips button:hover { border-color: var(--primary); color: var(--primary); }
.chips button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn { height: 38px; padding: 0 16px; border-radius: 8px; border: none; cursor: pointer; background: var(--primary); color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: background 150ms, transform 150ms; }
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--primary-soft); color: var(--primary); }
.btn svg { width: 16px; height: 16px; }

/* charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: var(--text-muted); font-size: 11px; font-family: var(--font-body); }
.chart .gridl { stroke: var(--grid); stroke-width: 1; }
.chart .endlbl { font-size: 11px; font-weight: 600; fill: var(--text-2); font-family: var(--font-body); }
.tip {
  position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); padding: 8px 10px; font-size: 0.75rem; min-width: 140px; z-index: 5; display: none; white-space: nowrap;
}
.tip .tt { color: var(--text-muted); margin-bottom: 4px; }
.tip .tr { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.tip .tr i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.tip .tr b { font-variant-numeric: tabular-nums; margin-left: 12px; }

/* cpu cores heat grid */
.cores { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 860px) { .cores { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.core { aspect-ratio: 1.6; border-radius: 4px; background: var(--track); position: relative; font-size: 10px; display: grid; place-items: center; color: var(--text-muted); font-variant-numeric: tabular-nums; cursor: default; }

/* misc */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 0.8125rem; margin-bottom: 16px; }
.crumbs a { color: var(--primary); cursor: pointer; text-decoration: none; padding: 2px 4px; border-radius: 4px; }
.crumbs a:hover { background: var(--primary-soft); }
.crumbs .sep { color: var(--text-muted); }
.empty { padding: 32px; text-align: center; color: var(--text-muted); }
.note { font-size: 0.75rem; color: var(--text-muted); line-height: 1.55; }
.note b { color: var(--text-2); font-weight: 600; }
.inline-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.inline-stats > div { min-width: 0; }
.inline-stats .l { font-size: 0.75rem; color: var(--text-muted); }
.inline-stats .v { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mig-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.mig-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.big-num { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.split { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 4px 0 8px; font-size: 0.8125rem; color: var(--text-muted); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.banner { padding: 12px 16px; border-radius: 8px; font-size: 0.8125rem; display: flex; gap: 10px; align-items: flex-start; }
.banner.warn { background: var(--warning-bg); color: var(--warning); }
.banner.err { background: var(--error-bg); color: var(--error); }
.banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.banner b { color: inherit; }
.scroll-y { max-height: 520px; overflow-y: auto; }
.svc-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
@media (max-width: 1100px) { .svc-detail-grid { grid-template-columns: minmax(0, 1fr); } }
.backdrop { display: none; }
@media (max-width: 860px) { .app.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(10,26,42,0.35); z-index: 15; } }
