/* Ukhruj YAA telemetry — a night-watch console in the app's own colours: the wordmark's sky blue on deep navy.
   Text never drops below --ink-3 (≈6.5:1 on --night); the only decorative colour is the dawn band under the horizon. */
:root {
  --night: #071331;
  --deep: #0e1d44;
  --deep-2: #142657;
  --ridge: #24397a;
  --ridge-2: #3450a0;
  --sky: #51caf7;
  --sky-ink: #05182f;
  --sky-dim: rgba(81, 202, 247, 0.16);
  --mint: #5ce9ad;
  --mint-dim: rgba(92, 233, 173, 0.16);
  --dawn: #ffc46b;
  --dawn-dim: rgba(255, 196, 107, 0.16);
  --rose: #ff7f7f;
  --rose-dim: rgba(255, 127, 127, 0.16);
  --ink: #f5f8ff;
  --ink-2: #d2dcf5;
  --ink-3: #a3b3db;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rail: 236px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 14px/1.55 var(--font);
  color: var(--ink-2);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: 26px; line-height: 1.15; font-weight: 800; }
h2 { font-size: 16px; line-height: 1.3; font-weight: 700; }
h3 { font-size: 13px; font-weight: 700; color: var(--ink-2); }
p { margin: 0; }
b, strong { color: var(--ink); font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Shell ------------------------------------------------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--ridge);
  background: linear-gradient(180deg, #0a1a40 0%, var(--night) 70%);
  display: flex; flex-direction: column; gap: 22px;
}
.brand { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; }
.brand img { width: 118px; height: auto; display: block; }
.brand small { color: var(--ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.nav a:hover { background: var(--deep); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sky-dim); color: var(--sky); box-shadow: inset 3px 0 0 var(--sky); }
.nav svg { width: 17px; height: 17px; flex: none; }
.nav .badge { margin-left: auto; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sky); color: var(--sky-ink); font-size: 11.5px; font-weight: 800; line-height: 1; }
.badge.warn { background: var(--dawn); color: #2b1a00; }
.badge.bad { background: var(--rose); color: #2b0000; }
.rail-status { margin-top: auto; display: grid; gap: 8px; padding: 12px 12px 10px; border: 1px solid var(--ridge); border-radius: 12px; background: rgba(14, 29, 68, 0.7); font-size: 12px; color: var(--ink-3); }
.rail-status .line { display: flex; align-items: center; gap: 8px; }
.rail-status b { color: var(--ink-2); font-weight: 600; }
.rail-foot { display: grid; gap: 4px; padding: 0 4px; color: var(--ink-3); font-size: 12px; justify-items: start; }
.rail-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-foot form { margin: 0; }
.main { min-width: 0; padding: 26px 40px 72px; max-width: 1360px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head p { color: var(--ink-3); margin-top: 6px; max-width: 74ch; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--ridge); gap: 14px; }
  .brand img { width: 88px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .rail-status { margin-top: 0; }
  .main { padding: 18px 16px 56px; }
  .page-head { flex-direction: column; }
}

/* Dots — the indicator vocabulary used everywhere ------------------------------------------------------------ */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; vertical-align: 1px; }
.dot.ok { background: var(--mint); box-shadow: 0 0 0 3px var(--mint-dim); }
.dot.warn { background: var(--dawn); box-shadow: 0 0 0 3px var(--dawn-dim); }
.dot.bad { background: var(--rose); box-shadow: 0 0 0 3px var(--rose-dim); }
.dot.sky { background: var(--sky); box-shadow: 0 0 0 3px var(--sky-dim); }
.dot.live { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--mint-dim); } 50% { box-shadow: 0 0 0 6px rgba(92, 233, 173, 0.06); } }

/* Horizon — the one bold element ---------------------------------------------------------------------------- */
.horizon {
  position: relative; overflow: hidden;
  border: 1px solid var(--ridge); border-radius: var(--radius);
  background: linear-gradient(180deg, #0b1a44 0%, #12255a 56%, #2d3f84 80%, #6c5f84 94%, #b88377 100%);
  padding: 24px 28px 0;
  margin-bottom: 26px;
}
.horizon-sentence { font-size: 22px; line-height: 1.35; color: var(--ink); max-width: 64ch; font-weight: 600; letter-spacing: -0.015em; }
.horizon-sentence b { font-weight: 800; color: #fff; }
.horizon-sentence .warn { color: var(--dawn); }
.horizon-sentence .bad { color: var(--rose); }
.horizon-sentence .ok { color: var(--mint); }
.horizon-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; color: var(--ink-2); font-size: 12.5px; }
.horizon-meta span { display: inline-flex; align-items: center; gap: 7px; }
.horizon-meta b { color: #fff; font-weight: 700; }
.horizon-legend { margin-left: auto; display: inline-flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.horizon-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.series { display: block; width: 100%; height: 150px; margin-top: 18px; }
.series rect.r { fill: var(--sky); }
.series rect.e { fill: #fff; opacity: 0.14; }
.series rect.now { fill: none; stroke: rgba(255,255,255,0.35); stroke-dasharray: 3 3; }
.series text { fill: rgba(255,255,255,0.82); font-size: 11px; font-family: var(--font); font-weight: 600; }
.series text.axis { fill: rgba(255,255,255,0.6); font-weight: 500; }
.series-empty { fill: rgba(255,255,255,0.7); font-size: 13px; font-family: var(--font); }

/* Attention list ------------------------------------------------------------------------------------------- */
.attention { display: grid; gap: 8px; }
.attention a.item { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 11px 16px; border: 1px solid var(--ridge); border-radius: 12px; background: var(--deep); color: var(--ink-2); }
.attention a.item:hover { text-decoration: none; background: var(--deep-2); border-color: var(--ridge-2); }
.attention a.item b { display: block; color: var(--ink); font-weight: 700; }
.attention a.item .sub { color: var(--ink-3); font-size: 12.5px; }
.attention .when { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.attention .clear { padding: 18px; border: 1px dashed var(--ridge); border-radius: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }

/* Sections & tables ----------------------------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.grid-2.wide { grid-template-columns: 3fr 2fr; }
@media (max-width: 1080px) { .grid-2, .grid-2.wide { grid-template-columns: 1fr; } }
.section { padding-top: 14px; position: relative; }
.section::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--ridge); }
.section::after { content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 3px; background: var(--sky); transform: skewX(-18deg); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head span, .section-head .hint { color: var(--ink-3); font-size: 12.5px; }
.section + .section { margin-top: 26px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 700; color: var(--ink-3); font-size: 12px; padding: 6px 10px 9px; border-bottom: 1px solid var(--ridge); white-space: nowrap; }
.table td { padding: 10px 10px; border-bottom: 1px solid rgba(36, 57, 122, 0.55); vertical-align: middle; }
.table tr:hover td { background: rgba(14, 29, 68, 0.75); }
.table tr.new td:first-child { box-shadow: inset 3px 0 0 var(--sky); }
.table tr.resolved { opacity: 0.6; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { color: var(--ink); font-weight: 600; }
.table .sub { color: var(--ink-3); font-size: 12px; }
.empty { color: var(--ink-2); padding: 26px 14px; text-align: center; border: 1px dashed var(--ridge); border-radius: 12px; }
.empty b { display: block; margin-bottom: 4px; }

/* Bars */
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 190px 1fr 96px; align-items: center; gap: 12px; font-size: 12.5px; }
.bar .track { height: 12px; border-radius: 6px; background: var(--deep-2); overflow: hidden; position: relative; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--mint); border-radius: 6px; }
.bar .fill.plain { background: var(--sky); }
.bar .fill.partial { background: linear-gradient(90deg, var(--mint) var(--healed), var(--dawn) var(--healed)); }
.bar .n { text-align: right; color: var(--ink-2); white-space: nowrap; font-weight: 600; }
.bar .n small { color: var(--ink-3); font-weight: 500; }
.bar .label { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Funnel */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.funnel div { padding: 14px 14px 12px; border-radius: 12px; background: var(--deep); border: 1px solid var(--ridge); }
.funnel b { display: block; font-size: 28px; line-height: 1; color: var(--ink); letter-spacing: -0.02em; font-weight: 800; }
.funnel span { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.funnel div.missed b { color: var(--dawn); }
.funnel div.missed.zero b { color: var(--mint); }

/* Chips & badges --------------------------------------------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--deep-2); color: var(--ink-2); border: 1px solid var(--ridge); white-space: nowrap; line-height: 1.3; }
.chip.ok { background: var(--mint-dim); color: var(--mint); border-color: transparent; }
.chip.warn { background: var(--dawn-dim); color: var(--dawn); border-color: transparent; }
.chip.bad { background: var(--rose-dim); color: var(--rose); border-color: transparent; }
.chip.sky { background: var(--sky-dim); color: var(--sky); border-color: transparent; }
.chip.dim { color: var(--ink-3); background: transparent; }
.chip.type-ANOMALY { background: var(--sky-dim); color: var(--sky); border-color: transparent; }
.chip.type-CRASH { color: var(--rose); background: var(--rose-dim); border-color: transparent; }
.chip.type-FEEDBACK { color: var(--dawn); background: var(--dawn-dim); border-color: transparent; }
.chip.status-new { background: var(--sky-dim); color: var(--sky); border-color: transparent; }
.chip.status-seen { color: var(--ink-2); }
.chip.status-resolved { background: var(--mint-dim); color: var(--mint); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--ridge); background: var(--deep); color: var(--ink-2); cursor: pointer; font-family: var(--mono); font-size: 12px; }
.copy:hover { border-color: var(--sky); color: var(--ink); }
.copy svg { width: 13px; height: 13px; }

/* Forms ------------------------------------------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--ridge); border-radius: 12px; background: rgba(14, 29, 68, 0.5); }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--night); border: 1px solid var(--ridge); border-radius: 9px; padding: 8px 11px; color: var(--ink); min-width: 0; font-weight: 500;
}
.field input::placeholder { color: var(--ink-3); font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px var(--sky-dim); }
.field.check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; color: var(--ink-2); cursor: pointer; }
.field.check input { accent-color: var(--sky); width: 16px; height: 16px; }
.seg { display: inline-flex; border: 1px solid var(--ridge); border-radius: 999px; overflow: hidden; background: var(--night); }
.seg a, .seg label { padding: 6px 12px; color: var(--ink-2); font-weight: 600; font-size: 12.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg a:hover { text-decoration: none; background: var(--deep); }
.seg a[aria-current="true"], .seg label:has(input:checked) { background: var(--sky); color: var(--sky-ink); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .n { opacity: 0.75; font-weight: 700; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ridge); background: var(--deep); color: var(--ink); cursor: pointer; font-weight: 700; font-size: 13px; line-height: 1.3; }
.btn:hover { border-color: var(--ridge-2); background: var(--deep-2); text-decoration: none; }
.btn.primary { background: var(--sky); color: var(--sky-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ok { background: var(--mint-dim); color: var(--mint); border-color: transparent; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.quiet:hover { color: var(--ink); background: var(--deep); }
.btn.small { padding: 5px 11px; font-size: 12px; }
.btn svg { width: 15px; height: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
[aria-busy="true"] { position: relative; }
[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent 40%, rgba(81, 202, 247, 0.08) 50%, transparent 60%); background-size: 200% 100%; animation: sweep 1s linear infinite; pointer-events: none; border-radius: inherit; }
@keyframes sweep { to { background-position: -200% 0; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--ink-3); font-size: 12.5px; }
.pager nav { display: flex; gap: 6px; }
.levels { display: inline-flex; gap: 4px; }
.levels label { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--ridge); background: var(--night); cursor: pointer; font-weight: 800; font-size: 12px; user-select: none; color: var(--ink-3); font-family: var(--mono); }
.levels label:has(input:checked) { background: var(--sky-dim); color: var(--sky); border-color: transparent; }
.levels label.E:has(input:checked) { background: var(--rose-dim); color: var(--rose); }
.levels label.W:has(input:checked) { background: var(--dawn-dim); color: var(--dawn); }
.levels input { position: absolute; opacity: 0; pointer-events: none; }
.kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--ridge); border-bottom-width: 2px; border-radius: 5px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* Login ------------------------------------------------------------------------------------------------------ */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1100px 620px at 50% 118%, #4a4d8a 0%, #17285e 40%, var(--night) 100%); }
.login-card { width: min(400px, 100%); display: grid; gap: 18px; padding: 32px 30px; border-radius: 20px; background: rgba(14, 29, 68, 0.88); border: 1px solid var(--ridge); backdrop-filter: blur(10px); }
.login-card .brand img { width: 150px; }
.login-card h1 { font-size: 22px; }
.login-card p { color: var(--ink-3); }
.login-card .field input { padding: 11px 13px; font-size: 15px; }
.login-card .btn { padding: 11px 16px; justify-content: center; font-size: 14px; }
.error { color: var(--rose); background: var(--rose-dim); padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }

/* Report detail ---------------------------------------------------------------------------------------------- */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--ridge); margin-bottom: 22px; background: var(--deep); }
.verdict.ok { border-color: rgba(92, 233, 173, 0.45); background: linear-gradient(90deg, rgba(92, 233, 173, 0.12), var(--deep) 60%); }
.verdict.warn { border-color: rgba(255, 196, 107, 0.5); background: linear-gradient(90deg, rgba(255, 196, 107, 0.14), var(--deep) 60%); }
.verdict.bad { border-color: rgba(255, 127, 127, 0.5); background: linear-gradient(90deg, rgba(255, 127, 127, 0.14), var(--deep) 60%); }
.verdict .glyph { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.verdict.ok .glyph { background: var(--mint-dim); color: var(--mint); }
.verdict.warn .glyph { background: var(--dawn-dim); color: var(--dawn); }
.verdict.bad .glyph { background: var(--rose-dim); color: var(--rose); }
.verdict h2 { font-size: 18px; margin-bottom: 2px; }
.verdict p { color: var(--ink-2); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; margin-bottom: 24px; }
.meta dt { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.meta dd { margin: 3px 0 0; color: var(--ink); font-weight: 500; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; font-size: 12.5px; }
.kv dt { color: var(--ink-3); font-family: var(--mono); }
.kv dd { margin: 0; color: var(--ink-2); word-break: break-word; }
.feedback-body { white-space: pre-wrap; background: var(--deep); border: 1px solid var(--ridge); border-radius: 12px; padding: 16px 18px; color: var(--ink); font-size: 15px; line-height: 1.65; max-width: 80ch; }
.triage { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.triage form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.note { width: 100%; max-width: 80ch; }
.note textarea { width: 100%; min-height: 64px; resize: vertical; }
.prevnext { display: inline-flex; gap: 6px; }

/* Log viewer */
.logview { border: 1px solid var(--ridge); border-radius: 12px; overflow: hidden; background: #050d24; }
.logview-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--ridge); background: var(--deep); }
.logview-bar .field input[type="search"] { min-width: 220px; }
.logview-bar .field.check { padding: 4px 2px; }
.logview-bar .count { margin-left: auto; color: var(--ink-3); font-size: 12px; display: inline-flex; gap: 10px; }
.logview-bar .count b { font-weight: 700; }
.logview-bar .count .E { color: var(--rose); } .logview-bar .count .W { color: var(--dawn); }
.loglines { margin: 0; padding: 8px 0; max-height: 72vh; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
.logview.nowrap .logline { white-space: pre; }
.logline { display: grid; grid-template-columns: 84px 20px 172px 1fr; gap: 0 12px; padding: 1px 14px 1px 11px; white-space: pre-wrap; word-break: break-word; border-left: 3px solid transparent; }
.logline:hover { background: rgba(36, 57, 122, 0.35); }
.logline .t { color: var(--ink-3); }
.logline .l { font-weight: 800; text-align: center; color: var(--ink-3); }
.logline .g { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logline .m { color: var(--ink-2); }
.logline[data-level="E"] { border-left-color: var(--rose); } .logline[data-level="E"] .l, .logline[data-level="E"] .m { color: var(--rose); }
.logline[data-level="W"] { border-left-color: var(--dawn); } .logline[data-level="W"] .l, .logline[data-level="W"] .m { color: var(--dawn); }
.logline[data-level="I"] .l { color: var(--sky); } .logline[data-level="I"] .m { color: var(--ink); }
.logline[data-level="D"] .m, .logline[data-level="V"] .m { color: var(--ink-3); }
.logline .d { color: var(--ink-3); font-size: 12px; }
.logview.wide .logline { grid-template-columns: 126px 20px 214px 1fr; }
details.raw { margin-top: 18px; }
details.raw summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
details.raw pre { margin-top: 10px; padding: 14px; background: var(--deep); border: 1px solid var(--ridge); border-radius: 10px; overflow: auto; font-family: var(--mono); font-size: 12px; max-height: 60vh; color: var(--ink-2); }

/* Timeline (device page) */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--ridge); margin-left: 6px; }
.timeline > div { position: relative; padding: 6px 0 6px 18px; }
.timeline > div::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--ridge-2); }
.timeline > div.report::before { background: var(--sky); }
.timeline > div.anomaly::before { background: var(--dawn); }
.timeline time { color: var(--ink-3); font-size: 12px; margin-right: 10px; }
.timeline .ev { color: var(--ink-2); }
.timeline .ev code { color: var(--ink-3); }

/* Stat tiles (device / analytics) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.tile { padding: 14px 16px 12px; border-radius: 12px; background: var(--deep); border: 1px solid var(--ridge); }
.tile b { display: block; font-size: 24px; line-height: 1.05; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.tile span { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.tile.small b { font-size: 17px; line-height: 1.3; }
.tile.warn b { color: var(--dawn); } .tile.bad b { color: var(--rose); } .tile.ok b { color: var(--mint); }
