:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e9ecf1;
  --text: #14171c;
  --muted: #5d6470;
  --faint: #8a919c;
  --line: #e3e6eb;
  --line-strong: #d3d8df;
  --accent: #2a78d6;
  --accent-hover: #1f66bd;
  --accent-soft: rgb(42 120 214 / .1);
  --on-accent: #ffffff;
  --series-1: #2a78d6;
  --grid: #eceef2;
  --ok: #157a47;
  --ok-soft: rgb(21 122 71 / .1);
  --warn: #9a5a00;
  --warn-soft: rgb(196 125 0 / .13);
  --bad: #c0362f;
  --bad-soft: rgb(192 54 47 / .1);
  --idle: #5d6470;
  --idle-soft: rgb(93 100 112 / .1);
  --shadow: 0 1px 2px rgb(16 24 40 / .05);
  --shadow-lg: 0 16px 48px rgb(16 24 40 / .18);
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1014; --surface: #171a20; --surface-2: #1e222a; --surface-3: #262b35;
    --text: #e8ebf0; --muted: #a2a9b4; --faint: #767d89; --line: #272c35; --line-strong: #343a45;
    --accent: #3987e5; --accent-hover: #5a9cec; --accent-soft: rgb(57 135 229 / .16); --on-accent: #ffffff;
    --series-1: #3987e5; --grid: #232831;
    --ok: #4cc38a; --ok-soft: rgb(76 195 138 / .14); --warn: #f0b44c; --warn-soft: rgb(240 180 76 / .14);
    --bad: #f07a72; --bad-soft: rgb(240 122 114 / .14); --idle: #a2a9b4; --idle-soft: rgb(162 169 180 / .12);
    --shadow: 0 1px 2px rgb(0 0 0 / .3); --shadow-lg: 0 16px 48px rgb(0 0 0 / .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1014; --surface: #171a20; --surface-2: #1e222a; --surface-3: #262b35;
  --text: #e8ebf0; --muted: #a2a9b4; --faint: #767d89; --line: #272c35; --line-strong: #343a45;
  --accent: #3987e5; --accent-hover: #5a9cec; --accent-soft: rgb(57 135 229 / .16); --on-accent: #ffffff;
  --series-1: #3987e5; --grid: #232831;
  --ok: #4cc38a; --ok-soft: rgb(76 195 138 / .14); --warn: #f0b44c; --warn-soft: rgb(240 180 76 / .14);
  --bad: #f07a72; --bad-soft: rgb(240 122 114 / .14); --idle: #a2a9b4; --idle-soft: rgb(162 169 180 / .12);
  --shadow: 0 1px 2px rgb(0 0 0 / .3); --shadow-lg: 0 16px 48px rgb(0 0 0 / .5);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.55 system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 22px; letter-spacing: -.01em; }
h2 { font-size: 15px; }
p { margin: 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: grid; gap: 16px; }
svg.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.icon { width: 16px; height: 16px; }

/* ---- layout ---- */
.layout { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 8px; padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand b { display: block; font-size: 15px; }
.brand small { display: block; color: var(--faint); font-size: 12px; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; }
.brand-lg .logo { width: 42px; height: 42px; font-size: 20px; border-radius: 11px; }
.brand-lg b { font-size: 18px; }
#nav { display: grid; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item .count { margin-left: auto; font-size: 12px; color: var(--faint); }
.sidebar-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }
.main { min-width: 0; padding: 28px 32px 64px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin-top: 4px; }

/* ---- cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-head p { font-size: 13px; }
.card-body { padding: 16px 18px 18px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 16px 18px; }
.kpi-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.kpi-label .icon { width: 16px; height: 16px; color: var(--faint); }
.kpi-value { font-size: 30px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-foot { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mini-stats div { padding: 12px 18px; border-left: 1px solid var(--line); }
.mini-stats div:first-child { border-left: 0; }
.mini-stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.mini-stats span { color: var(--muted); font-size: 12.5px; }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon-only { width: 30px; padding: 0; height: 30px; }
.btn.block { width: 100%; }
input, select, textarea { font: inherit; color: var(--text); }
.input, .field input:not([type=checkbox]):not([type=range]), .field select, .field textarea, select.input {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); min-width: 0;
}
.field textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.field small { color: var(--faint); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-error { color: var(--bad); font-size: 13px; min-height: 1.2em; }
.search { position: relative; }
.search .icon { position: absolute; left: 10px; top: 9px; color: var(--faint); }
.search input { padding-left: 34px; width: 260px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.switch b { display: block; font-weight: 500; color: var(--text); font-size: 14px; }
.switch small { color: var(--muted); font-size: 12.5px; }
.switch input[type=checkbox] { appearance: none; width: 36px; height: 20px; border-radius: 99px; background: var(--surface-3); position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s; }
.switch input[type=checkbox]:checked { background: var(--accent); }
.switch input[type=checkbox]:checked::after { transform: translateX(16px); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 99px; padding: 3px 11px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
input[type=range] { accent-color: var(--accent); width: 100%; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; cursor: pointer; }

.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 9px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 5px 12px; border-radius: 7px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.tab .n { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---- tables ---- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--faint); font-weight: 500; font-size: 12.5px; white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
tbody tr { transition: background .08s; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover, tbody tr.selected { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--faint); font-size: 12.5px; margin-top: 1px; }
.code-metadata .sub { display: block; color: var(--faint); font-size: 12.5px; margin-top: 1px; }
.code-metadata + .code-metadata { margin-top: 8px; }
td.right, th.right { text-align: right; }
td.nowrap { white-space: nowrap; }
td.check, th.check { width: 36px; padding-right: 0; }
.code-cell { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.copy { opacity: 0; transition: opacity .1s; }
tr:hover .copy, .copy:focus-visible { opacity: 1; }
.empty { padding: 48px 18px; text-align: center; color: var(--faint); }
.empty .icon { width: 32px; height: 32px; stroke-width: 1.4; margin-bottom: 8px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.bulkbar b { color: var(--accent); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.pill.idle { color: var(--idle); background: var(--idle-soft); }
.pill.accent { color: var(--accent); background: var(--accent-soft); }
.meter { display: inline-block; width: 64px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.meter i { display: block; height: 100%; background: var(--series-1); border-radius: 99px; }

/* ---- charts ---- */
.chart { position: relative; height: 220px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .axis { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.chart .bar { fill: var(--series-1); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hover-band { fill: var(--surface-2); }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.chart-tip b { font-size: 15px; font-variant-numeric: tabular-nums; }
.hbars { display: grid; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 13px; }
.hbar-row .track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--surface-2); }
.hbar-row .track i { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: var(--series-1); }

/* ---- lists ---- */
.feed { display: grid; }
.feed-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.feed-item:first-child { border-top: 0; padding-top: 0; }
.feed-dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.feed-dot .icon { width: 15px; height: 15px; }
.feed-dot.ok { background: var(--ok-soft); color: var(--ok); }
.feed-dot.bad { background: var(--bad-soft); color: var(--bad); }
.feed-dot.warn { background: var(--warn-soft); color: var(--warn); }
.feed-dot.accent { background: var(--accent-soft); color: var(--accent); }
.feed-item time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

/* ---- upload ---- */
.dropzone { display: grid; place-items: center; gap: 6px; padding: 28px 16px; border: 1.5px dashed var(--line-strong); border-radius: 12px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .12s, background .12s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .icon { width: 28px; height: 28px; color: var(--accent); }
.dropzone b { color: var(--text); }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.keybox { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-family: var(--mono); font-size: 13px; word-break: break-all; }
.keybox span { flex: 1; user-select: all; }

/* ---- modal, drawer, toasts ---- */
dialog { color: var(--text); }
.modal { border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--surface); width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.modal.wide { width: min(760px, calc(100vw - 32px)); }
.modal::backdrop, .drawer::backdrop { background: rgb(10 14 20 / .45); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 0; }
.modal-head h2 { font-size: 17px; flex: 1; }
.modal-body { padding: 16px 20px; display: grid; gap: 14px; max-height: calc(100vh - 200px); overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; }
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); border: 0; border-left: 1px solid var(--line); padding: 0; background: var(--surface); box-shadow: var(--shadow-lg); }
.drawer[open] { animation: slide .18s ease-out; display: flex; flex-direction: column; }
@keyframes slide { from { transform: translateX(24px); opacity: .4; } }
.drawer .modal-body { max-height: none; flex: 1; gap: 20px; padding-bottom: 32px; }
.drawer section h3 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.big-code { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: grid; gap: 8px; max-width: calc(100vw - 40px); }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 13.5px; animation: pop .18s ease-out; }
.toast.error { background: var(--bad); color: #fff; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ---- login ---- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 50%), var(--bg); }
.login-card { width: min(380px, 100%); display: grid; gap: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: sticky; z-index: 5; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 8px 0 0; }
  .brand div { display: none; }
  #nav { display: flex; }
  .nav-item { width: auto; white-space: nowrap; padding: 8px; }
  .brand .logo { width: 30px; height: 30px; }
  .toolbar .tabs { width: 100%; }
  .nav-item .label-text, .nav-item .count { display: none; }
  .sidebar-foot { display: flex; margin: 0 0 0 auto; border: 0; padding: 0; }
  .main { padding: 20px 16px 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search input { width: 100%; }
  .search { flex: 1 1 100%; }
  .copy { opacity: 1; }
}

/* Diagnostic report viewer */
.log-view { margin: 8px 0 0; max-height: 52vh; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }
.log-view.short { max-height: 22vh; }
.log-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 14px; }
.log-head .icon { width: 16px; height: 16px; color: var(--faint); }
.modal.wide:has(.log-view) { width: min(1100px, calc(100vw - 32px)); }

/* Mapping and retrace */
.btn.warn { color: var(--warn); border-color: var(--warn-soft); background: var(--warn-soft); }
.notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13.5px; }
.notice .icon { width: 16px; height: 16px; flex: none; color: var(--faint); }
.notice.ok { background: var(--ok-soft); }
.notice.ok .icon { color: var(--ok); }
.notice.warn { background: var(--warn-soft); }
.notice.warn .icon { color: var(--warn); }
.notice > span:not(.spacer) { flex: 1 1 260px; }
.log-view.crash { border-color: var(--bad-soft); }
.log-head .spacer { flex: 1; }
.log-head > .faint { font-size: 12.5px; font-weight: 400; }
.log-tools { gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.attention .card-head { gap: 8px; }

/* Diagnostic reading: Chinese settings, Wi-Fi sessions, timeline, notes on log lines */
.viewer-head { align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.viewer-head .kv { flex: 1 1 380px; }
.switch.inline { padding: 6px 10px; flex: none; }
.settings-zh { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px 20px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); max-height: 44vh; overflow: auto; }
.settings-zh h4 { margin: 0 0 6px; font-size: 13px; }
.settings-zh dl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
.settings-zh dt { color: var(--muted); }
.settings-zh dd { margin: 0; color: var(--text); font-weight: 500; }
.settings-zh small { display: block; font-size: 11px; font-weight: 400; overflow-wrap: anywhere; }
.wifi-sessions { display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.wifi-session { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.wifi-session .row { gap: 8px; flex-wrap: wrap; }
.sessions { display: grid; gap: 8px; margin-bottom: 10px; }
.session { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.session .row { gap: 8px; flex-wrap: wrap; }
.tl-head { margin: 10px 0 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.timeline { display: grid; gap: 2px; max-height: 36vh; overflow: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.tl-item { display: grid; grid-template-columns: 112px 10px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 2px 0; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); align-self: center; }
.tl-item.ok .tl-dot { background: var(--ok); }
.tl-item.warn .tl-dot { background: var(--warn); }
.tl-item.bad .tl-dot { background: var(--bad); }
.tl-item.bad > span:last-child { color: var(--bad); }
.log-note { color: var(--accent); font-family: inherit; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 84px 8px minmax(0, 1fr); } }
