/* app.css: the dashboard's look. Tokens first (light, then dark by the system or the toggle), then
   the shell (sidebar, top bar), then the pieces (tiles, tables, charts, tags). Chart colours are
   the validated palette: eight categorical slots in a fixed order, one blue ramp for magnitude,
   four reserved status colours that always come with a label. */

:root {
  color-scheme: light;
  --plane: #f6f6f4; --surface: #fcfcfb; --surface-2: #f1f1ee; --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
  --grid: #e8e7e1; --axis: #c3c2b7; --border: rgba(11, 11, 11, 0.10); --border-2: rgba(11, 11, 11, 0.16);
  --accent: #2a78d6; --accent-ink: #1c5cab; --wash: rgba(42, 120, 214, 0.10); --focus: #2a78d6;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #6da7ec; --seq-4: #3987e5; --seq-5: #256abf; --seq-6: #184f95; --seq-7: #0d366b;
  --dim: #c3c2b7;
  --good: #0ca30c; --good-ink: #006300; --warn: #fab219; --warn-ink: #7a5200; --serious: #ec835a; --critical: #d03b3b;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 10px; --side: 232px; --topbar: 54px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --plane: #0f0f0e; --surface: #1a1a19; --surface-2: #232322; --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
    --grid: #2c2c2a; --axis: #383835; --border: rgba(255, 255, 255, 0.10); --border-2: rgba(255, 255, 255, 0.18);
    --accent: #3987e5; --accent-ink: #86b6ef; --wash: rgba(57, 135, 229, 0.16); --focus: #86b6ef;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --seq-1: #0d366b; --seq-2: #184f95; --seq-3: #256abf; --seq-4: #3987e5; --seq-5: #6da7ec; --seq-6: #9ec5f4; --seq-7: #cde2fb;
    --dim: #4a4a47;
    --good: #0ca30c; --good-ink: #0ca30c; --warn-ink: #e8b84a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #0f0f0e; --surface: #1a1a19; --surface-2: #232322; --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255, 255, 255, 0.10); --border-2: rgba(255, 255, 255, 0.18);
  --accent: #3987e5; --accent-ink: #86b6ef; --wash: rgba(57, 135, 229, 0.16); --focus: #86b6ef;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --seq-1: #0d366b; --seq-2: #184f95; --seq-3: #256abf; --seq-4: #3987e5; --seq-5: #6da7ec; --seq-6: #9ec5f4; --seq-7: #cde2fb;
  --dim: #4a4a47;
  --good: #0ca30c; --good-ink: #0ca30c; --warn-ink: #e8b84a;
}

/* ---- base */
* { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; min-height: 100%; background: var(--plane); color: var(--ink); font: 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; margin: 0; }
h1 .mono { font-size: 0.92em; }
h2 { font-size: 15px; font-weight: 650; margin: 28px 0 10px; }
h3 { font-size: 13px; font-weight: 600; margin: 0; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wrap { white-space: normal; word-break: break-word; }
.nowrap { white-space: nowrap; }
.clip { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.below { margin-bottom: 14px; }
.gap { margin-top: 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, select, input { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 6px 10px; }
button { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
button:hover { background: var(--surface-2); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; justify-content: center; }
button.primary:hover { filter: brightness(1.08); }
button.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
button.ghost:hover { background: var(--wash); color: var(--ink); }
button.on { background: var(--wash); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
button.small { padding: 3px 8px; font-size: 12px; }
.icon-btn { padding: 6px 8px; line-height: 1; }
.icon { width: 16px; height: 16px; flex: none; }
input[type=search], input[type=text], input[type=password] { min-width: 0; }
input::placeholder { color: var(--muted); }
pre { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px;
  overflow: auto; max-height: 60vh; font-family: var(--mono); font-size: 12px; line-height: 1.5; white-space: pre; }
[hidden] { display: none !important; }
.narrow-only { display: none !important; }

/* ---- shell */
body { display: grid; grid-template-columns: var(--side) 1fr; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 14px 10px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 12px; font-weight: 700; font-size: 16px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo { width: 18px; height: 18px; display: inline-block; flex: none; }
.side-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; }
.side-label .dim { text-transform: none; letter-spacing: 0; font-weight: 500; }
.apps-nav { display: flex; flex-direction: column; gap: 2px; }
.apps-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--ink-2); }
.apps-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.apps-nav a.on { background: var(--wash); color: var(--accent-ink); font-weight: 600; }
.apps-nav .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apps-nav .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.apps-nav .flag { display: inline-flex; color: var(--warn-ink); flex: none; }
.apps-nav .flag .icon { width: 14px; height: 14px; }
.apps-nav input { margin: 2px 4px 6px; }
.side-foot { margin-top: auto; padding: 10px 8px 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.side-actions { display: flex; gap: 4px; margin: 0 -4px 8px; }
.side-actions button { font-size: 13px; padding: 5px 8px; }
.page { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 22px; min-height: var(--topbar);
  background: color-mix(in srgb, var(--plane) 86%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
#menu { display: none; }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs a, .crumbs span { color: var(--ink-2); }
.crumbs .here { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--axis); }
.crumbs-row { display: none; }
main { padding: 22px; max-width: 1360px; transition: opacity 0.15s; }
main.loading { opacity: 0.55; pointer-events: none; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 10; background: var(--accent); transform-origin: left;
  animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { transform: scaleX(0); } 60% { transform: scaleX(0.8); } 100% { transform: scaleX(1); opacity: 0; } }
.head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.head .sub { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 0 0 18px; }
.tabs a { padding: 8px 12px; margin-bottom: -1px; color: var(--ink-2); border-bottom: 2px solid transparent; font-weight: 500; flex: none; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.scrim { display: none; }

/* ---- filters (one row, above everything they scope) */
.filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pop-wrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); padding: 6px; z-index: 20; }
.pop button.item { display: flex; width: 100%; align-items: center; gap: 8px; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 7px; }
.pop button.item:hover { background: var(--surface-2); }
.pop button.item .check { width: 16px; font-weight: 700; color: var(--accent-ink); }
.pop .custom { border-top: 1px solid var(--border); margin-top: 6px; padding: 10px 10px 6px; display: grid; gap: 6px; }
.pop .custom input, .pop .custom select { width: 100%; }

/* ---- panels, tiles */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.tile .l { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tile .v { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d { font-size: 12px; margin-top: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.d.up { color: var(--good-ink); } .d.down { color: var(--critical); }
.d.up.bad { color: var(--critical); } .d.down.bad { color: var(--good-ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.cards.wide { grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px 10px; min-width: 0; }
.card .card-head, .detail .card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 8px; }
.card-title { flex: 1 1 0; min-width: 160px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.card-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 10px; margin-left: auto; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card .tablewrap { border: 0; background: transparent; border-radius: 0; }
.card .tablewrap.data { max-height: 320px; overflow: auto; margin-top: 4px; border-top: 1px solid var(--grid); }
.detail { margin-bottom: 18px; }
.multis { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.multi { padding: 12px 14px 8px; }
.multi .card-head { margin-bottom: 2px; }
.multi-v { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.multi-v .v { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.multi-v .d { margin: 0; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--r); }
.empty .small { margin-top: 4px; }
.err-box { background: color-mix(in srgb, var(--critical) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--critical) 30%, transparent);
  border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.err-box .t { font-weight: 600; }
.login { max-width: 400px; margin: 10vh auto; }
.login-brand { display: flex; align-items: center; gap: 10px; }
.login-brand h1 { margin: 0; }
.login-brand .logo { width: 28px; height: 28px; }
.login input[type=password] { width: 100%; margin: 10px 0; }
.login .row { justify-content: space-between; }
.login .err { color: var(--critical); min-height: 1.4em; margin-top: 8px; }

/* ---- tables */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--grid); white-space: nowrap; vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--surface); z-index: 1; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th.sorted { color: var(--ink); }
th.sorted::after { content: " ↓"; font-size: 10px; }
th.sorted.asc::after { content: " ↑"; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--wash); }
tbody tr.link { cursor: pointer; }
td.wrap { white-space: normal; word-break: break-word; max-width: 560px; }
.pager { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.toolbar input[type=search] { width: 220px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 2px 10px; font-size: 12.5px; }
.chip.on { background: var(--wash); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.chip .x { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 13px; }
.kv .k { color: var(--muted); }

/* ---- tags (status: always a label, never colour alone) */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.tag.crash { background: color-mix(in srgb, var(--critical) 12%, transparent); color: var(--critical); }
.tag.crash::before { background: var(--critical); }
.tag.anr { background: color-mix(in srgb, var(--serious) 16%, transparent); color: color-mix(in srgb, var(--serious) 70%, var(--ink)); }
.tag.anr::before { background: var(--serious); }
.tag.error::before { background: var(--muted); }
.tag.warn { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn-ink); }
.tag.warn::before { display: none; }
.tag .icon { width: 13px; height: 13px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.bad { color: var(--critical); font-weight: 600; }
.ok { color: var(--good-ink); }

/* ---- charts */
.chart { position: relative; min-width: 0; }
.chart svg { display: block; width: 100%; overflow: visible; font: 11px var(--sans); border-radius: 4px; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis line { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart text { fill: var(--muted); }
.chart .hit { fill: transparent; touch-action: pan-y; }
.chart .col.hl rect, .chart .col.hl path { filter: brightness(1.12); }
.chart .cross { stroke: var(--axis); stroke-width: 1; pointer-events: none; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: 0.10; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .lbl { fill: var(--ink-2); font-weight: 600; }
.fill-1 { fill: var(--s1); } .fill-2 { fill: var(--s2); } .fill-3 { fill: var(--s3); } .fill-4 { fill: var(--s4); }
.fill-5 { fill: var(--s5); } .fill-6 { fill: var(--s6); } .fill-7 { fill: var(--s7); } .fill-8 { fill: var(--s8); }
.fill-other { fill: var(--dim); } .fill-dim { fill: var(--dim); } .fill-critical { fill: var(--critical); } .fill-serious { fill: var(--serious); }
.stroke-1 { stroke: var(--s1); } .stroke-2 { stroke: var(--s2); } .stroke-3 { stroke: var(--s3); } .stroke-4 { stroke: var(--s4); }
.stroke-5 { stroke: var(--s5); } .stroke-6 { stroke: var(--s6); } .stroke-7 { stroke: var(--s7); } .stroke-8 { stroke: var(--s8); }
.stroke-other { stroke: var(--dim); }
.fill-seq-3 { fill: var(--seq-3); } .fill-seq-4 { fill: var(--seq-4); } .fill-seq-5 { fill: var(--seq-5); } .fill-seq-6 { fill: var(--seq-6); } .fill-seq-7 { fill: var(--seq-7); }
.stroke-seq-3 { stroke: var(--seq-3); } .stroke-seq-5 { stroke: var(--seq-5); } .stroke-seq-7 { stroke: var(--seq-7); }
.bg-1 { background: var(--s1); } .bg-2 { background: var(--s2); } .bg-3 { background: var(--s3); } .bg-4 { background: var(--s4); }
.bg-5 { background: var(--s5); } .bg-6 { background: var(--s6); } .bg-7 { background: var(--s7); } .bg-8 { background: var(--s8); }
.bg-other { background: var(--dim); } .bg-critical { background: var(--critical); } .bg-dim { background: var(--dim); }
.bg-seq-3 { background: var(--seq-3); } .bg-seq-5 { background: var(--seq-5); } .bg-seq-7 { background: var(--seq-7); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; }
.legend .key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.legend .key.line { width: 14px; height: 3px; border-radius: 2px; }
.spark { width: 110px; height: 24px; display: block; }
.spark rect { fill: var(--dim); }
.spark rect.last { fill: var(--accent); }
.heat { display: inline-block; min-width: 64px; padding: 3px 8px; border-radius: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.heat.h0 { background: var(--surface-2); } .heat.h1 { background: color-mix(in srgb, var(--s1) 14%, var(--surface)); }
.heat.h2 { background: color-mix(in srgb, var(--s1) 28%, var(--surface)); } .heat.h3 { background: color-mix(in srgb, var(--s1) 44%, var(--surface)); }
.heat.h4 { background: color-mix(in srgb, var(--s1) 62%, var(--surface)); color: #fff; } .heat.h5 { background: var(--s1); color: #fff; }
.tooltip { position: fixed; z-index: 30; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); max-width: 300px; }
.tooltip .tt-title { color: var(--muted); margin-bottom: 4px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tooltip .tt-key { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.tooltip .tt-v { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; }
.log-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
pre mark { background: color-mix(in srgb, var(--s4) 40%, transparent); color: inherit; border-radius: 2px; }

/* ---- wide screens: a table's header sticks under the top bar */
@media (min-width: 1200px) {
  .tablewrap:not(.data) { overflow-x: visible; }
  .tablewrap:not(.data) th { top: var(--topbar); }
}

/* ---- small screens: the sidebar is a drawer, the top bar one row (one Filters button), the crumbs
   below it scroll away, the tabs scroll sideways */
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 25; width: 260px; transform: translateX(-100%); transition: transform 0.18s; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); }
  body.side-open .side { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 24; background: rgba(0, 0, 0, 0.35); }
  body.side-open .scrim { display: block; }
  #menu { display: inline-flex; }
  main { padding: 14px; }
  .topbar { padding: 8px 14px; }
  .topbar .crumbs { display: none; }
  .crumbs-row { display: flex; padding: 10px 14px 0; }
  .wide-only { display: none !important; }
  .narrow-only { display: revert !important; }
  .pop { position: fixed; left: 14px; right: 14px; top: calc(var(--topbar) + 2px); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { padding: 10px 12px; }
  .tile .v { font-size: 20px; }
  .cards, .multis { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  main, .side, .progress { transition: none; animation: none; }
}
.login .add { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.login .add summary { cursor: pointer; color: var(--muted); }
.login .add input[type=text] { flex: 1; min-width: 0; }
.login .add-out { margin-top: 10px; }
.login .add-line { white-space: pre-wrap; word-break: break-all; max-height: none; margin: 8px 0; user-select: all; }
.login > .row > button.primary:only-child { flex: 1; }

/* ---- the Compute section (page-compute*.js): a product area of its own, so it takes violet where
   the apps take blue, has its own sidebar group under a gauge, and an eyebrow over each title. */
:root { --c: #6250d6; --c-ink: #4b3bb8; --c-wash: rgba(98, 80, 214, 0.10); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --c: #9085e9; --c-ink: #b4acf2; --c-wash: rgba(144, 133, 233, 0.16); }
}
:root[data-theme="dark"] { --c: #9085e9; --c-ink: #b4acf2; --c-wash: rgba(144, 133, 233, 0.16); }
body.area-compute .page { --accent: var(--c); --accent-ink: var(--c-ink); --wash: var(--c-wash); --focus: var(--c-ink); }
.compute-nav { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.compute-nav .side-label { display: flex; align-items: center; gap: 4px; }
.compute-nav .side-label .icon { width: 13px; height: 13px; color: var(--c-ink); }
.compute-nav a.on { background: var(--c-wash); color: var(--c-ink); }
.eyebrow { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-ink); margin-bottom: 4px; }
.eyebrow .icon { width: 14px; height: 14px; }
.eyebrow .dim { color: var(--muted); }
.gap-below { margin-bottom: 14px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.two .tiles { margin: 0; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.meter { margin: 12px 0 14px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.meter-head .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-foot { margin-top: 5px; }
.compute .track, .compute-nav .track { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--surface-2); }
.compute .fill { display: block; height: 100%; border-radius: 4px; }
.compute .fill.ok { background: var(--c); }
.compute .fill.warn { background: var(--warn); }
.compute .fill.bad { background: var(--critical); }
.compute .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.blabel { font-size: 12px; color: var(--muted); margin-top: 8px; }
.bbar { display: flex; align-items: center; gap: 8px; }
.bbar .track { flex: 0 0 44px; height: 6px; }
.bbar .bt { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.card .bbar { margin: 3px 0 4px; flex-wrap: wrap; }
.card .bbar .track { flex: 1 1 160px; height: 8px; }
.sharebar { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.sharebar .track { width: 40px; height: 6px; }
@media (max-width: 900px) { .cards.two { grid-template-columns: 1fr; } }
.compute th, .compute td { padding: 8px 9px; }
.tag.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.tag.ok::before { background: var(--good); }
