/* Connect Sessions. Tokens and components follow the "Refined" page of the design canvas. */
:root {
  --bg: #F4F5F7; --panel: #FFFFFF; --panel2: #F8F9FB; --hover: #F1F4F9; --line: #DDE1E7;
  --line2: #ECEEF2; --text: #14171F; --muted: #555C69; --accent: #1F55C4; --btn: #1F55C4;
  --on-accent: #FFFFFF; --acc-soft: #EAF0FC; --acc-line: #9DB4E8; --acc-text: #163C8C;
  --warn-bg: #FCEBD3; --warn-fg: #7F4505; --cloud: #2160C8; --ok: #23804A; --bad: #B42318;
  --dis-bg: #F1F2F4; --dis-fg: #5B6270; --shadow: 0 10px 28px rgba(20, 23, 31, .16);
  --rail: #A3A9B4; --mark: #FFF0B8;
  --local: #23804A; --local-bg: #EAF6EE; --local-line: #A9D6B8; --local-text: #185A33;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101013; --panel: #17171c; --panel2: #1b1b20; --hover: #202027; --line: #2a2a32;
  --line2: #222228; --text: #e8e8ec; --muted: #8f8f99; --accent: #7ea6f0; --btn: #2a5bc8;
  --on-accent: #FFFFFF; --acc-soft: #1e2433; --acc-line: #34466e; --acc-text: #b4c8f2;
  --warn-bg: rgba(217, 177, 59, .12); --warn-fg: #e2bf55; --cloud: #7ea6f0; --ok: #5bbf7a;
  --bad: #f07a6e; --dis-bg: #1d1d23; --dis-fg: #8a8a94; --shadow: 0 10px 28px rgba(0, 0, 0, .55);
  --rail: #4C4C56; --mark: #5a4a12;
  --local: #5bbf7a; --local-bg: rgba(91, 191, 122, .10); --local-line: #2f5a3d; --local-text: #9bd9ad;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 13px 'IBM Plex Sans', system-ui, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; }
.mut { color: var(--muted); }
.lbl { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .03em; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.miss { color: var(--muted); font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.app { height: 100vh; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }

/* sidebar: a card beside the table, like the details panel */
.side {
  flex: 0 0 216px; min-width: 0; display: flex; flex-direction: column; gap: 1px;
  padding: 8px 6px; overflow: auto;
}
.side .nav > svg { color: var(--muted); flex: 0 0 auto; }
.side .nav[aria-current="true"] > svg { color: var(--accent); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.brand svg { color: var(--accent); }
.brand-icon { flex: none; display: block; border-radius: 5px; }
.nav {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--text);
  text-align: left; cursor: pointer;
}
.nav:hover { background: var(--hover); }
.nav[aria-current="true"] { background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }
.nav .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 400; }
.nav[aria-current="true"] .n { color: var(--acc-text); }
.sec { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .08em; padding: 16px 10px 4px; }
.side .hint { font-size: 11.5px; line-height: 1.45; padding: 8px 10px 0; color: var(--muted); }

/* controls */
.ib {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; flex: 0 0 auto;
}
.ib:hover { background: var(--hover); color: var(--text); }
.ib[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-text); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btnp { background: var(--btn); border-color: var(--btn); color: var(--on-accent); font-weight: 600; }
.btnp:hover { background: var(--btn); filter: brightness(1.1); }
.btng { background: transparent; border-color: transparent; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--dis-bg); color: var(--dis-fg); border-color: var(--line2); cursor: not-allowed; filter: none;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip:hover { background: var(--hover); }
.chip.on { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-text); }
.b { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 16px; }
.warn { background: var(--warn-bg); color: var(--warn-fg); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button {
  height: 26px; min-width: 34px; padding: 0 8px; border: 0; background: var(--panel);
  color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }
.field {
  height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2);
  color: var(--text); padding: 0 10px; outline: none;
}
.field:focus { border-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; cursor: pointer; }

.view-item { position: relative; display: flex; align-items: center; }
.view-item .nav { flex: 1; min-width: 0; padding-right: 30px; }
.view-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-more { position: absolute; right: 2px; width: 26px; height: 26px; opacity: 0; }
.view-item:hover .view-more, .view-more:focus-visible, .view-more[aria-expanded="true"] { opacity: 1; }
.view-item:hover .nav .n, .view-item .view-more[aria-expanded="true"] ~ .nav .n { visibility: hidden; }
.view-menu { position: absolute; left: 4px; right: 4px; top: 32px; z-index: 25; padding: 6px 0; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.view-menu[role="dialog"] { padding: 10px; }
.view-menu .res:disabled { color: var(--dis-fg); cursor: not-allowed; background: none; }
.row-end { display: flex; justify-content: flex-end; gap: 6px; }
.err { color: var(--bad); font-size: 12px; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; font-weight: 600; }
.toolbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pop.right { left: auto; right: 0; }
/* Firmware keeps a normal width; rare long dev builds are cut short (full text on hover). */
.fw { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Annotation status */
.st { border: 1px solid transparent; font-weight: 600; }
.st-none { background: var(--dis-bg); color: var(--dis-fg); }
.st-prog { background: var(--warn-bg); color: var(--warn-fg); }
.st-done { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.status-seg { display: flex; }
.status-seg button { flex: 1; }
.status-seg button.st-prog[aria-pressed="true"] { background: var(--warn-bg); color: var(--warn-fg); }
.status-seg button.st-done[aria-pressed="true"] { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; }
/* Battery and storage cells */
.lvl { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lvl-bar { width: 28px; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; display: inline-block; }
.lvl-bar > span { display: block; height: 100%; background: var(--rail); }
.lvl-bad { color: var(--bad); }
.lvl-bad .lvl-bar > span { background: var(--bad); }
/* Local sessions */
.ico-local { color: var(--local); display: inline-flex; }
.local-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; font-size: 12px; background: var(--local-bg); color: var(--local-text); border: 1px solid var(--local-line); }
.local-note svg { flex: none; margin-top: 1px; }
tr.divider td { padding: 6px 12px; font-size: 11.5px; color: var(--muted); background: var(--panel2); border-bottom: 1px solid var(--line); }
/* Columns menu: drag to reorder */
.colopt { user-select: none; }
.colopt .grip { color: var(--muted); display: inline-flex; cursor: grab; margin-left: -4px; }
.colopt.dragging { opacity: .45; }
.colopt.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.colopt.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
/* Runs in the details panel */
.runpick select { height: 28px; padding: 0 6px; font-size: 12px; max-width: 220px; }
.runrow { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 6px; padding: 3px 6px; font-size: 12px; color: inherit; }
.runrow:hover { background: var(--hover); }
.runrow[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-text); }
.ico-cloud { color: var(--cloud); display: inline-flex; }
.src { font-weight: 500; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); }
.src-admin { color: var(--acc-text); border-color: var(--acc-line); background: var(--acc-soft); }
.side-switch button { min-width: 52px; }

/* account menu */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--acc-soft); color: var(--acc-text); font-weight: 700;
  font-size: 13px; cursor: pointer; border: 1px solid var(--acc-line); user-select: none;
}
.menu[open] > .avatar { box-shadow: 0 0 0 2px var(--accent); }
.menu-pop { position: absolute; right: 0; top: 38px; z-index: 30; min-width: 240px; padding: 4px 0; box-shadow: var(--shadow); }
.menu-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-bottom: 1px solid var(--line2); word-break: break-all; }
.menu-pop .res svg { color: var(--muted); }

/* settings menu */
.menu > summary.ib { position: relative; }
.menu[open] > summary.ib { background: var(--acc-soft); color: var(--acc-text); }
.menu > summary .dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }
.settings { min-width: 280px; }
.settings .menu-head { padding-bottom: 6px; border-bottom: 0; }
.set-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 12px; cursor: pointer; }
.set-row:hover { background: var(--hover); }
.set-row input { margin-top: 2px; }
.set-row > span { display: flex; flex-direction: column; gap: 1px; }
.set-row b { font-weight: 500; }
.set-row .mut { font-size: 11.5px; }
.set-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 8px; margin-top: 4px; border-top: 1px solid var(--line2); }
.set-theme .seg button { width: 36px; }

/* sidebar origin views, nested under All sessions */
.side .nav.sub { padding-left: 28px; }
.side .nav.sub .ico-cloud, .side .nav.sub .ico-local { flex: 0 0 auto; }

/* main column */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.top .brand { margin-right: 2px; }
.search { position: relative; flex: 1 1 auto; max-width: 680px; }
.search label {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel2);
}
.search label:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--text); outline: none; }
.key { border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 11px; }
.results { position: absolute; left: 0; right: 0; top: 40px; z-index: 20; padding-bottom: 6px; box-shadow: var(--shadow); max-height: 70vh; overflow: auto; }
.gt { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); padding: 8px 12px 4px; }
.res {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 12px; border: 0;
  background: none; text-align: left; cursor: pointer; font-size: 13px;
}
.res:hover, .res[aria-selected="true"] { background: var(--acc-soft); }
.res .side-note { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
mark { background: var(--mark); color: inherit; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; }
.toolbar h1 { margin: 0; font-size: 17px; white-space: nowrap; }
.pop-anchor { position: relative; }
.pop {
  position: absolute; left: 0; top: 34px; z-index: 15; width: 300px; max-height: 420px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.pop-head { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line2); }
.pop-list { overflow: auto; padding: 4px 0; }
.opt { display: flex; align-items: center; gap: 8px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.opt:hover { background: var(--hover); }
.opt .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.opt.sub { padding-left: 32px; font-size: 12px; }
.pop-foot { display: flex; justify-content: space-between; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line2); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 12px; }
.dates label { display: flex; flex-direction: column; gap: 4px; }

.work { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 0 16px 14px; }
.tablecard { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.toolbar-end .btn svg, .toolbar .btn svg { color: var(--muted); }
.scroll { flex: 1; min-height: 0; overflow: auto; container-type: inline-size; }
table { border-collapse: collapse; width: 100%; }
th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; font-weight: 500; text-transform: uppercase; color: var(--muted);
  padding: 0; border-bottom: 1px solid var(--line); background: var(--panel2); white-space: nowrap; letter-spacing: .07em;
}
th > span, th > button { display: block; padding: 9px 8px; }
th button { border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; width: 100%; text-align: inherit; }
th button:hover { color: var(--text); }
th[aria-sort] { color: var(--text); }
td { padding: 7px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; cursor: pointer; }
td:first-child, th:first-child > span { padding-left: 14px; }
td:first-child { cursor: default; }
tbody tr:hover td { background: var(--hover); }
tr.on td { background: var(--acc-soft); }
tr.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
.trunc { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.idt { font: 600 12px 'IBM Plex Mono', monospace; }
tr:hover .idt { color: var(--accent); }
.runb { margin-left: 6px; background: var(--acc-soft); color: var(--acc-text); font-weight: 500; }
.removed .idt { text-decoration: line-through; }
@container (max-width: 1250px) { .c-fw { display: none; } }
@container (max-width: 1130px) { .c-client { display: none; } }
@container (max-width: 1020px) { .c-ann { display: none; } }
@container (max-width: 920px) { .c-ev { display: none; } }
@container (max-width: 820px) { .c-dur { display: none; } }
@container (max-width: 720px) { .c-clip { display: none; } }
.empty { padding: 40px; text-align: center; }
.selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--acc-line); background: var(--acc-soft); }
.selbar .b { background: var(--panel); border: 1px solid var(--acc-line); font-weight: 500; }
footer.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--panel2); font-size: 12px; }
.pg {
  min-width: 30px; height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px;
  background: none; font-size: 12px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums;
}
.pg:hover { background: var(--hover); }
.pg:disabled { color: var(--dis-fg); opacity: .5; cursor: not-allowed; background: none; }
.pg[aria-current="page"] { border-color: var(--acc-line); background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }

/* compare */
.compare { flex: 1; min-height: 0; overflow: auto; }
.cmp-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px 0; }
.cmp-scroll { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.cmp-grid { overflow-x: auto; }
.cmp-row {
  display: grid; grid-template-columns: minmax(150px, 200px) repeat(var(--cols), minmax(190px, 1fr)) auto;
  border-bottom: 1px solid var(--line2); min-width: calc(200px + var(--cols) * 200px);
}
.cmp-row.same .cmp-cell { color: var(--muted); }
.cmp-head { background: var(--panel2); border-bottom: 1px solid var(--line); }
.cmp-label { padding: 9px 14px; font-weight: 500; display: flex; flex-direction: column; gap: 2px; }
.cmp-cell { padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-variant-numeric: tabular-nums; }
.cmp-cell.cmp-span { grid-column: 2 / -1; }
.cmp-add { justify-content: center; align-items: flex-start; }
.cmp-id { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cmp-sec { padding: 14px 14px 6px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line2); }
.key-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 700; flex: none; }
.bigc { font-size: 16px; font-weight: 600; }
.best { font-weight: 700; color: var(--ok); }
.ok { color: var(--ok); }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--line2); margin-top: 4px; }
.bar > span { display: block; height: 100%; border-radius: 2px; }
.meterline { display: flex; align-items: center; gap: 8px; }
.meterline .meter { width: 70px; }
.chart { display: flex; flex-direction: column; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px 6px; }
.legends { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 6px; }
.legend { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font: 12px 'IBM Plex Mono', monospace; cursor: pointer; }
.legend[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.chart-scroll { overflow-x: auto; padding: 0 0 6px; }
.chart svg .grid { stroke: var(--line2); }
.svg-mut { fill: var(--muted); font-size: 11px; font-family: 'IBM Plex Sans', sans-serif; }
.svg-lbl { font-size: 11px; font-weight: 600; font-family: 'IBM Plex Sans', sans-serif; }

/* details panel */
.insp { flex: 0 0 344px; min-width: 0; display: flex; flex-direction: column; overflow: auto; }
.isec { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line2); }
.isec:last-of-type { border-bottom: 0; }
.ilbl { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.ihint { font-family: 'IBM Plex Sans', sans-serif; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wt {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px;
  border: 1px solid var(--line2); border-radius: 6px; background: var(--panel2); text-align: left; cursor: pointer;
}
.wt:hover:not(:disabled) { border-color: var(--acc-line); background: var(--acc-soft); }
.wt:disabled { cursor: default; }
.wt.on { border-color: var(--acc-line); background: var(--acc-soft); }
.wt .wi { color: var(--muted); flex: 0 0 auto; display: inline-flex; }
.wt.on .wi { color: var(--accent); }
.wt .fn { flex: 0 0 auto; margin-left: auto; color: var(--accent); opacity: 0; display: inline-flex; }
.wt:hover:not(:disabled) .fn, .wt.on .fn, .wt:focus-visible .fn { opacity: 1; }
.wtx { display: flex; flex-direction: column; min-width: 0; }
.wl { font-size: 10.5px; color: var(--muted); line-height: 14px; }
.wv { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv.mono { font-size: 11.5px; }
.big { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.gauges, .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gauge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.gauge > svg:first-child, .gauge > span:first-child { height: 20px; display: inline-flex; align-items: center; }
.off-ok { color: var(--ok); } .off-mid { color: var(--warn-fg); } .off-bad { color: var(--bad); }
.gv { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { width: 100%; height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.tile-l { display: flex; align-items: center; gap: 5px; }
.tile-l > span { display: inline-flex; }
.issue-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.issue-line > span:first-child { display: inline-flex; flex: 0 0 auto; }
.insp-foot {
  position: sticky; bottom: 0; margin-top: auto; display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--line2); background: var(--panel2); cursor: pointer;
}
.tile { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel2); min-width: 0; }
.sub { font-size: 11px; color: var(--muted); line-height: 1.35; }
.tag { display: inline-flex; gap: 4px; padding: 2px 7px; border: 1px solid var(--line2); border-radius: 4px; font: 12px 'IBM Plex Mono', monospace; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stp { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 10px; margin-top: 2px; }
.rail { display: flex; flex-direction: column; align-items: center; }
.sdot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 3px; flex: none; }
.sdot.off { background: var(--panel); border: 1.5px solid var(--muted); }
.sln { flex: 1; width: 2px; min-height: 12px; margin: 3px 0; background: var(--accent); }
.sln.dash { width: 0; background: none; border-left: 1.5px dashed var(--rail); }
.stx { display: flex; flex-direction: column; gap: 1px; padding-bottom: 10px; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 0; }
.stx.last { padding-bottom: 0; }
.sl { font-size: 12.5px; font-weight: 600; }
.sg { font-weight: 400; color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.list { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.list .row { display: flex; gap: 8px; align-items: baseline; }
.list .row .n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.launch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.launch .btn { padding: 0 8px; }
.signed { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.signin { display: flex; flex-direction: column; gap: 6px; }
.notice { padding: 40px; text-align: center; max-width: 520px; margin: 10vh auto; align-self: flex-start; }
.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 40;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; font-size: 12px;
}

@media (max-width: 1100px) {
  .side { display: none; }
  .side-toggle { display: none; }
}
@media (max-width: 900px) {
  .brand span { display: none; }
  .insp { position: fixed; inset: 0 0 0 auto; width: min(100vw, 380px); z-index: 30; border-radius: 0; box-shadow: var(--shadow); }
  .work { padding: 0 8px 8px; }
  .top, .toolbar { padding-left: 8px; padding-right: 8px; }
}

/* The pager keeps one line: the note gives way first. */
footer.pager { flex-wrap: nowrap; }
footer.pager > span:first-child { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
footer.pager > div, footer.pager > nav, footer.pager > span { flex-shrink: 0; }
footer.pager > div { margin-left: 0 !important; }
