/* isLog console, DESIGN.md §1–§3: dark by default (Deep Slate / Charcoal Slate / Graphite, Telemetry Cyan),
   a light variant for daylight, following the system setting. */
:root {
  --bg: #0f1416; --panel: #1b2023; --panel2: #232a2e; --line: #2d353b; --ink: #f1f5f9; --muted: #94a3b8;
  --accent: #38bdf8; --accent-ink: #0b1215; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --a-external: #38bdf8; --a-pre_release: #a5e3fd; --a-review: #fbbf24; --a-internal: #64748b;
  --c1: #38bdf8; --c2: #a78bfa; --c3: #34d399; --c4: #fbbf24;
  --radius: 10px; --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f7f8; --panel: #ffffff; --panel2: #f0f3f5; --line: #dde3e7; --ink: #0f1416; --muted: #5b6b78;
    --accent: #0284c7; --accent-ink: #ffffff; --ok: #059669; --warn: #b45309; --bad: #dc2626;
    --a-external: #0284c7; --a-pre_release: #7dd3fc; --a-review: #d97706; --a-internal: #94a3b8;
    --c1: #0284c7; --c2: #7c3aed; --c3: #059669; --c4: #d97706; color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); }
button, select, input, textarea { font: inherit; color: inherit; }
button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 600; }
button.ghost, .presets button, .chip { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
select, input[type=date], input[type=search], textarea { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12px; }
.bar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: -.01em; } .brand span { color: var(--muted); font-weight: 500; }
.apptabs { display: flex; gap: 2px; overflow-x: auto; }
.apptabs a { color: var(--muted); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.apptabs a[aria-selected="true"] { color: var(--ink); background: var(--panel2); }
.spacer { flex: 1; }
.range { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .dash { color: var(--muted); }
.presets { display: inline-flex; gap: 4px; } .presets button { padding: 4px 8px; font-size: 12px; }
.presets button.on { color: var(--ink); border-color: var(--accent); }
.auds { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.chip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--muted); }
.chip[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
.updated { color: var(--muted); font-size: 12px; } .updated.old { color: var(--warn); }
.shell { display: grid; grid-template-columns: 180px 1fr; min-height: calc(100vh - 60px); }
.side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.side a { color: var(--muted); padding: 7px 10px; border-radius: 8px; }
.side a[aria-current="page"] { color: var(--ink); background: var(--panel); }
main { padding: 16px; min-width: 0; max-width: 1200px; }
h1 { font-size: 20px; margin: 4px 0 14px; } h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; overflow-x: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tile .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .d { font-size: 12px; } .up { color: var(--ok); } .down { color: var(--bad); } .flat { color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
th.sort { cursor: pointer; } th.sort:hover { color: var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.link { cursor: pointer; } tr.link:hover td { background: var(--panel2); }
/* Every data row lights up under the pointer, to follow it across to the numbers (owner 2026-11-14). */
tbody tr:hover td { background: color-mix(in srgb, var(--panel2) 70%, transparent); }
tr.unread td { font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; margin: 1px 2px 1px 0; }
.badge.s-new { color: var(--accent); border-color: var(--accent); } .badge.s-investigating { color: var(--warn); border-color: var(--warn); }
.badge.s-resolved { color: var(--ok); border-color: var(--ok); } .badge.s-reopened { color: var(--bad); border-color: var(--bad); }
.badge.hot, .badge.crash { background: var(--bad); color: #fff; border-color: var(--bad); } .badge.newest { color: var(--ink); border-color: var(--accent); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.legend i.line { height: 2px; vertical-align: 3px; }
svg.chart { width: 100%; height: 160px; display: block; overflow: visible; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
.chartbox { display: grid; grid-template-columns: 44px 1fr; gap: 6px; } .chartbox.two-axes { grid-template-columns: 44px 1fr 44px; }
.yaxis { position: relative; height: 160px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.yaxis span { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; } .yaxis.r span { left: 0; right: auto; }
.plot { position: relative; cursor: crosshair; border-bottom: 1px solid var(--muted); }
.hoverbar { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--ink) 8%, transparent); pointer-events: none; }
.tip { position: absolute; top: 4px; z-index: 2; min-width: 150px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; }
.tip b { display: block; margin-bottom: 3px; } .tip div { display: flex; align-items: center; gap: 6px; } .tip div span { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; } .tip .tot { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 3px; color: var(--muted); }
.xaxis { position: relative; height: 20px; margin-left: 50px; font-size: 11px; color: var(--muted); }
.chartbox.two-axes + .xaxis { margin-right: 50px; }
.xaxis .tick { position: absolute; top: 0; width: 1px; height: 4px; background: var(--muted); }
.xaxis .tick b { position: absolute; top: 5px; left: 0; transform: translateX(-50%); font-weight: 400; white-space: nowrap; }
.legend i.line.dash { background: none !important; border-top: 2px dashed var(--muted); height: 0; vertical-align: 3px; }
.savebar { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; align-items: center; justify-content: flex-end; background: var(--panel); border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; margin-top: 10px; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
.savebar[hidden] { display: none; } .savebar span { margin-right: auto; color: var(--warn); font-weight: 600; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.inbox { display: grid; grid-template-columns: minmax(280px, 1fr) 1.3fr; gap: 14px; align-items: start; }
.detail { position: sticky; top: 72px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13px; margin: 8px 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.timeline { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; background: var(--panel2); border-radius: 8px; padding: 8px 10px; max-height: 280px; overflow: auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
textarea { width: 100%; min-height: 70px; resize: vertical; }
.hist { font-size: 12px; color: var(--muted); padding-left: 16px; margin: 4px 0; }
.empty { color: var(--muted); padding: 24px 0; }
.status { color: var(--muted); text-align: center; min-height: 1.4em; }
.gate { text-align: center; padding: 15vh 16px; } .gate p { color: var(--muted); }
.md { line-height: 1.55; } .md h1 { font-size: 20px; } .md h2 { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); margin-top: 22px; }
.md blockquote { border-left: 3px solid var(--line); margin: 6px 0; padding-left: 10px; color: var(--muted); }
.back { display: inline-block; margin-bottom: 10px; }
.hide-lg { display: none; }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 10px; }
  .two, .inbox { grid-template-columns: 1fr; } .detail { position: static; }
  .hide-sm { display: none; } .hide-lg { display: inline-block; } main { padding: 12px; }
  .tile .v { font-size: 22px; }
}

/* round 4: filters, mini-tabs, tree, fold rows */
.scorerow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.scorerow .grid { margin-bottom: 0; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.dimsel { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); } .dimsel select { font-size: 12.5px; padding: 3px 6px; color: var(--ink); }
.toolbar .dimsel { flex-direction: row; align-items: center; gap: 6px; }
.pills { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.pill-x { background: var(--panel2); color: var(--ink); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; }
.minitabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.minitabs button { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.minitabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); background: var(--panel2); }
.minitabs input[type=search] { margin-left: auto; }
.tw { background: none; border: 0; color: var(--muted); padding: 0 4px; width: 18px; display: inline-block; font-weight: 400; }
tr.sub td:first-child { padding-left: 34px; } tr.fold td { color: var(--muted); }
.seg { display: inline-flex; gap: 4px; align-items: center; } .check { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .scorerow { grid-template-columns: 1fr; } }
.actions label { display: inline-flex; gap: 6px; align-items: center; max-width: 100%; min-width: 0; }
.actions select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
h1 code { word-break: break-word; overflow-wrap: anywhere; }
@media (max-width: 760px) { .actions label { width: 100%; } .actions select { flex: 1; width: 100%; } .toolbar select, .toolbar input[type=search] { max-width: 100%; } }
/* Round 6: Waiting for you, the Review queues. */
a.tile.wait { color: inherit; text-decoration: none; display: block; } a.tile.wait[href]:hover { border-color: var(--accent); }
.tile.amber .v { color: var(--warn); } .tile.red .v { color: var(--bad); }
.qitem { border-top: 1px solid var(--line); padding: 12px 0; min-width: 0; } .qitem:first-of-type { border-top: 0; }
.qhead { display: flex; gap: 8px; align-items: flex-start; min-width: 0; } .qbody { min-width: 0; flex: 1; } .qbody > div { margin-top: 3px; overflow-wrap: anywhere; }
.qmore { margin: 8px 0 0 30px; min-width: 0; } .qnote { min-height: 54px; margin-top: 8px; }
.msg { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.grants { list-style: none; padding: 0; margin: 6px 0; font-size: 13px; }
.grants li { padding: 4px 0; }
h2.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
ol.steps { margin: 6px 0; padding-left: 20px; } .bad { color: var(--bad); }
@media (max-width: 760px) { .qmore { margin-left: 0; } }

