@font-face { font-family: Plex; font-weight: 400; font-display: swap; src: url(/fonts/plex-sans-400.woff2) format("woff2"); }
@font-face { font-family: Plex; font-weight: 500; font-display: swap; src: url(/fonts/plex-sans-500.woff2) format("woff2"); }
@font-face { font-family: Plex; font-weight: 600; font-display: swap; src: url(/fonts/plex-sans-600.woff2) format("woff2"); }
@font-face { font-family: Plex Mono; font-weight: 400; font-display: swap; src: url(/fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: Plex Mono; font-weight: 500; font-display: swap; src: url(/fonts/plex-mono-500.woff2) format("woff2"); }

/* The interface itself is neutral. Colour appears only where it means something:
   status colours for state, series colours inside charts. */
:root {
  color-scheme: light;
  --page: #f1efe8;
  --rule: #e6e3d9;
  --panel: #fbfaf6;
  --panel-2: #f4f2ea;
  --ink: #131412;
  --ink-2: #4e4f49;
  --ink-3: #75756e;
  --line: #dfdcd1;
  --line-2: #c6c3b6;
  --track: #e7e4da;
  --fill: #6f706a;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --good-ink: #0a6d0a;
  --warning-ink: #8a5a00;
  --critical-ink: #b52a2a;
  --warning-wash: #fbeecb;
  --critical-wash: #f8dfdc;
  --button: #171918;
  --button-ink: #f6f4ee;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0e0f10;
    --rule: #141617;
    --panel: #17191a;
    --panel-2: #1e2122;
    --ink: #f1efe8;
    --ink-2: #c3c2b7;
    --ink-3: #93928a;
    --line: #2a2d2e;
    --line-2: #3b3f40;
    --track: #2a2d2e;
    --fill: #a3a29a;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --good-ink: #4fce4f;
    --warning-ink: #fab219;
    --critical-ink: #f07c7c;
    --warning-wash: #33290f;
    --critical-wash: #3a1b1b;
    --button: #f1efe8;
    --button-ink: #17191a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0e0f10;
  --rule: #141617;
  --panel: #17191a;
  --panel-2: #1e2122;
  --ink: #f1efe8;
  --ink-2: #c3c2b7;
  --ink-3: #93928a;
  --line: #2a2d2e;
  --line-2: #3b3f40;
  --track: #2a2d2e;
  --fill: #a3a29a;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --good-ink: #4fce4f;
  --warning-ink: #fab219;
  --critical-ink: #f07c7c;
  --warning-wash: #33290f;
  --critical-wash: #3a1b1b;
  --button: #f1efe8;
  --button-ink: #17191a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--page);
  /* Log-book ruling, felt more than seen. */
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  color: var(--ink);
  font: 400 15px/1.5 Plex, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
code, .mono { font-family: "Plex Mono", ui-monospace, Menlo, monospace; font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px 80px; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 5px 10px; border-radius: 5px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.topnav a:hover { background: var(--panel-2); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); font-weight: 500; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--ink-3); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--button); color: var(--button-ink); border-color: var(--button); }
.btn.danger { background: var(--critical); color: #fff; border-color: var(--critical); }
.btn.quiet { border-color: transparent; background: none; color: var(--ink-2); }
.btn.quiet:hover:not(:disabled) { background: var(--panel-2); border-color: transparent; }
.btn.icon { padding: 6px; width: 36px; }
.btn svg { width: 16px; height: 16px; }

/* verdict: the first thing read */
.verdict { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: 28px 0 30px; animation: rise .5s ease both; }
.verdict h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.verdict p { margin-top: 10px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.kpis { display: flex; gap: 36px; }
.kpi .label { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.kpi .value { font-size: 26px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; white-space: nowrap; }
.kpi .value small { font-size: 15px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }

/* state badge: always icon + word */
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.state svg { width: 16px; height: 16px; flex: none; }
.state.good svg { color: var(--good); } .state.good { color: var(--good-ink); }
.state.warning svg { color: var(--warning); } .state.warning { color: var(--warning-ink); }
.state.critical svg, .state.offline svg { color: var(--critical); } .state.critical, .state.offline { color: var(--critical-ink); }
.state.notice, .state.waiting, .state.muted { color: var(--ink-3); }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; min-width: 0; }
.panel > h2, .panel-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel > h2 { margin-bottom: 12px; }
.panel .note { color: var(--ink-3); font-size: 13px; }
.section-title { font-size: 15px; font-weight: 600; margin: 30px 0 12px; }
.stack { display: grid; gap: 16px; align-content: start; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.empty { color: var(--ink-3); font-size: 14px; padding: 18px 0; }

/* attention list */
.attention { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; animation: rise .5s .06s ease both; }
.alert-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 2px 14px; align-items: start; padding: 9px 18px; border-top: 1px solid var(--line); }
.alert-row:first-child { border-top: 0; }
.alert-row.critical { background: var(--critical-wash); }
.alert-row .title { font-weight: 500; text-decoration: none; display: block; }
.alert-row a.title:hover { text-decoration: underline; }
.alert-row .detail { color: var(--ink-2); font-size: 14px; }
.alert-row .meta { color: var(--ink-3); font-size: 13px; text-align: right; white-space: nowrap; line-height: 26px; }
.alert-row .meta .who { color: var(--ink-2); }
.alert-row .state { line-height: 26px; }
.alert-row .tools { display: flex; align-items: center; }
details.fold > summary { cursor: pointer; padding: 11px 18px; color: var(--ink-2); font-size: 14px; list-style-position: inside; border-top: 1px solid var(--line); }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; padding: 3px 8px; border-radius: 5px; font-size: 13px; color: var(--ink-3); }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover { background: var(--panel-2); color: var(--ink); }
details.menu .items { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 150px; padding: 5px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 7px; box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
details.menu .items button { display: block; width: 100%; padding: 6px 9px; border: 0; background: none; text-align: left; border-radius: 4px; cursor: pointer; font-size: 14px; }
details.menu .items button:hover { background: var(--panel-2); }

/* server cards */
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; margin-top: 16px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px 16px; text-decoration: none; transition: border-color .15s, transform .15s; animation: rise .5s .12s ease both; }
.card:hover { border-color: var(--ink-3); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h2 { font-size: 19px; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
.card .sub { color: var(--ink-3); font-size: 13px; }
.vitals { margin-top: 14px; display: grid; gap: 9px; }
.vital { display: grid; grid-template-columns: 62px 74px minmax(0, 1fr) 92px; align-items: center; gap: 12px; }
.vital .name { font-size: 14px; color: var(--ink-2); }
.vital .val { font-size: 19px; font-weight: 500; letter-spacing: -.01em; text-align: right; }
.card-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--ink-2); }
.card-foot b { color: var(--ink); font-weight: 500; }
.strip-wrap { margin-top: 14px; }
.strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; height: 16px; }
.strip i { border-radius: 2px; background: var(--track); }
.strip i.good { background: var(--fill); opacity: .42; }
.strip i.warning { background: var(--warning); }
.strip i.critical { background: var(--critical); }
.strip-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.add-card { grid-column: 1 / -1; display: grid; place-items: center; min-height: 48px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--ink-3); text-decoration: none; font-size: 14px; }
.add-card:hover { color: var(--ink); border-color: var(--ink-3); }

/* meter */
.meter { position: relative; height: 8px; border-radius: 99px; background: var(--track); }
.meter > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--fill); }
.meter.warning > i { background: var(--warning); }
.meter.critical > i { background: var(--critical); }
.meter > u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--panel); }
.meter.big { height: 12px; }

.spark { display: block; width: 100%; height: 24px; }
.spark path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }

/* server page */
.crumb { font-size: 14px; color: var(--ink-3); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 10px 0 18px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; letter-spacing: -.022em; line-height: 1.15; }
.page-head .facts { color: var(--ink-3); font-size: 14px; margin-top: 3px; }
.tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: 2px; overflow-x: auto; background: var(--page); border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
.tabs a { position: relative; padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--ink); }
.tabs .count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; font-size: 12px; font-weight: 600; background: var(--track); color: var(--ink); }
.tabs .count.critical { background: var(--critical); color: #fff; }
.tabs .count.warning { background: var(--warning); color: #17191a; }
.filters { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.range { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--panel); }
.range button { border: 0; background: none; padding: 5px 11px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.range button + button { border-left: 1px solid var(--line); }
.range button:hover { background: var(--panel-2); }
.range button[aria-pressed="true"] { background: var(--button); color: var(--button-ink); font-weight: 500; }
.tab-body { padding-top: 16px; animation: fade .25s ease both; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px 14px; min-width: 0; }
.tile .label { font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; }
.tile .value { font-size: 27px; font-weight: 500; letter-spacing: -.018em; line-height: 1.25; }
.tile .value small { font-size: 14px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.tile .sub { font-size: 13px; color: var(--ink-3); min-height: 19px; }
.tile .meter { margin-top: 9px; }

/* charts */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.chart { position: relative; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 15px 18px 12px; min-width: 0; transition: opacity .15s; }
.chart.stale { opacity: .55; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chart-head h3 { font-size: 15px; font-weight: 600; }
.chart-head .now { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.chart .caption { font-size: 13px; color: var(--ink-3); }
.plot { position: relative; margin-top: 8px; touch-action: pan-y; }
.plot svg { display: block; width: 100%; overflow: visible; }
.plot .grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.plot .baseline { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.plot .ref { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.plot text { fill: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.plot .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .wash { stroke: none; opacity: .14; }
.plot .cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.plot .dot { stroke: var(--panel); stroke-width: 2; }
.plot .hit { fill: transparent; cursor: crosshair; }
.plot .hit:focus-visible { outline: none; stroke: var(--ink-3); stroke-width: 1; }
.tooltip { position: absolute; top: 0; z-index: 5; pointer-events: none; min-width: 132px; padding: 7px 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 6px 18px rgb(0 0 0 / .16); font-size: 13px; }
.tooltip .when { color: var(--ink-3); font-size: 12px; margin-bottom: 3px; white-space: nowrap; }
.tooltip .row { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tooltip .row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tooltip .row span { color: var(--ink-3); }
.key { display: inline-block; width: 12px; height: 2px; border-radius: 1px; flex: none; }
.legend { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart details { margin-top: 4px; font-size: 13px; }
.chart details > summary { cursor: pointer; color: var(--ink-3); font-size: 12.5px; width: max-content; }
.chart details .table-scroll { max-height: 240px; overflow: auto; margin-top: 6px; }

/* tables */
.table-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink-3); padding: 5px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ranked bars */
.ranked { display: grid; gap: 3px; }
.rank { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 74px; gap: 12px; align-items: center; padding: 4px 6px; margin: 0 -6px; border: 0; background: none; border-radius: 5px; text-align: left; width: calc(100% + 12px); font-size: 14px; }
button.rank { cursor: pointer; }
button.rank:hover { background: var(--panel-2); }
.rank .bar { height: 8px; border-radius: 0 4px 4px 0; background: var(--fill); min-width: 2px; }
.rank .bar-track { display: flex; gap: 2px; align-items: center; }
.rank .bar.second { background: var(--series-2); border-radius: 0 4px 4px 0; }
.rank .bar.first-of-two { border-radius: 0; }
.rank .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank .who { min-width: 0; overflow-wrap: anywhere; }
.path-crumbs { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.path-crumbs button { border: 0; background: none; padding: 2px 5px; border-radius: 4px; cursor: pointer; }
.path-crumbs button:hover { background: var(--panel-2); }

/* housekeeping */
.freeable { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.freeable .big { font-size: 40px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.hk { display: grid; grid-template-columns: minmax(0, 1fr) 84px 108px; gap: 4px 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.hk .t { font-weight: 500; }
.hk .what { font-size: 13.5px; color: var(--ink-2); }
.hk .size { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hk.nil .t, .hk.nil .what, .hk.nil .size { color: var(--ink-3); }
.tag { display: inline-block; margin-left: 7px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 500; background: var(--warning-wash); color: var(--warning-ink); vertical-align: 1px; }
.promise { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); }
.promise svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-3); }
.job { font-size: 14px; }
.job pre { margin: 6px 0 0; padding: 8px 10px; max-height: 180px; overflow: auto; background: var(--panel-2); border-radius: 5px; font: 12.5px/1.5 "Plex Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.log { display: grid; gap: 2px; font: 12.5px/1.55 "Plex Mono", monospace; color: var(--ink-2); }
.log div { overflow-wrap: anywhere; padding: 3px 0; border-top: 1px solid var(--line); }
.log div:first-child { border-top: 0; }

/* forms and dialog */
dialog { border: 1px solid var(--line-2); border-radius: 10px; padding: 22px; background: var(--panel); color: var(--ink); max-width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
dialog p { margin-top: 8px; color: var(--ink-2); }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
label.field { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
input[type=text], input[type=password] { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); font-size: 16px; }
.form { display: grid; gap: 12px; }
.error { color: var(--critical-ink); font-size: 14px; }
.cmd { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.cmd code { flex: 1; min-width: 0; padding: 10px 12px; background: var(--panel-2); border-radius: 6px; overflow-wrap: anywhere; font-size: 13px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .panel { width: min(380px, 100%); padding: 26px; animation: rise .4s ease both; }
.login h1 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.login h1 svg { width: 24px; height: 24px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 10px 16px; background: var(--button); color: var(--button-ink); border-radius: 7px; font-size: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 960px) {
  .verdict { grid-template-columns: minmax(0, 1fr); }
  .kpis { flex-wrap: wrap; gap: 14px 30px; }
  .two, .three, .chart-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px 60px; }
  .topbar { height: 56px; gap: 6px; }
  .brand span { display: none; }
  .topnav a { padding: 5px 8px; }
  .alert-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px; }
  .alert-row > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .alert-row .meta { display: none; }
  .vital { grid-template-columns: 58px 62px minmax(0, 1fr); }
  .vital .spark-cell { display: none; }
  .panel { padding: 15px 16px; }
  .table-scroll { margin: 0 -16px; padding: 0 16px; }
  .hk { grid-template-columns: minmax(0, 1fr) 72px; }
  .hk .do { grid-column: 1 / -1; }
  .hk .do .btn { width: 100%; }
  .rank { grid-template-columns: minmax(0, 1fr) 68px; }
  .rank .bar-track { grid-column: 1 / -1; grid-row: 2; }
}
