ponfw/renderer/app.css
Jon Vanvik 276c3e9faa onu detail: parent OLT + LLDP switch + traffic history + alarms + UNI; single-ONU upgrade
De-compacts the ONU info page into a responsive card grid and enriches it
with one new endpoint (api:getOnuDetail) summarized by the pure, shared
src/onudetail.js:
- Parent OLT (name/model/FW/PON) — follows the OLT MAC from the ONU
  alarm-history doc to its OLT-CFG.
- Upstream switch (LLDP neighbour of the OLT NNI) from the alarm-history
  Switch block: system name, port, IPv4, chassis.
- Traffic (last ~hour) with current + peak down/up and inline SVG
  sparklines, from /onus/stats/ (down = OLT TX rate, up = OLT RX rate).
- UNI-ETH ports (speed/duplex/enable) + last Ethernet LOS (LAN-LOS alarm).
- Alarms: active-first, severity-sorted with raised counts + last raised.
- CPE card folded into the same single fetch.

New client methods getOnuAlarms + getOnuStatsSeries; api:getOnuDetail in
main.js + web/server.js, exposed in both bridges. Not TTL-cached (live).

Single-ONU upgrade: the Firmware card gets a firmware picker + "Upgrade this
ONU" button reusing the bulk per-ONU path (executePerOnu with one id,
Procedure 7 inactive-bank write), behind a typed UPGRADE confirm; refreshes
the detail on success.

Docs: CLAUDE.md §17 + §5.11 (stats endpoint now used for the sparkline) +
IPC table.

Verified: node --check; onudetail.js unit-tested 11/11 against the real
alarm-history / cfg / stats / OLT-cfg fixtures (firmware banks, UNI, alarm
sort, LAN-LOS, OLT active-bank FW, LLDP switch, traffic skip-nontraffic +
down/up mapping + current/peak); card grid rendered offscreen (9 cards, 2
sparklines, upgrade button).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 15:47:50 +02:00

699 lines
21 KiB
CSS

/* Neon / terminal "hackertyper" theme — electric-blue variant.
Dense, operator-oriented UI — no framework, hand-tuned CSS.
Class names are load-bearing (HTML + renderer/app.js reference them);
this file only restyles, it doesn't rename anything. */
:root {
/* Blue-black base, like a cold CRT. */
--bg: #02050c;
--bg-elev: #060c16;
--bg-elev-2: #0b1422;
/* Blue-white text. */
--fg: #d6ecff;
--fg-dim: #6f90b5;
--border: #163457;
/* Neon accents — blue-forward. */
--neon: #21c8ff; /* primary — electric blue/cyan */
--neon-soft: #7ce0ff;
--cyan: #46e6ff;
--blue: #2a7bff;
--magenta: #ff3df0;
--accent: var(--neon);
--accent-hover: var(--neon-soft);
--ok: #2bff9e; /* health "ok" stays green — it's semantic */
--warn: #ffc44d;
--danger: #ff3b6b;
--danger-hover: #ff5d85;
--info: var(--cyan);
--mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
/* Reusable glow shadows — turned up. */
--glow-neon: 0 0 8px rgba(33, 200, 255, 0.65);
--glow-neon-strong: 0 0 12px rgba(33, 200, 255, 0.85), 0 0 30px rgba(33, 200, 255, 0.5), 0 0 56px rgba(33, 200, 255, 0.22);
--glow-danger: 0 0 10px rgba(255, 59, 107, 0.7), 0 0 24px rgba(255, 59, 107, 0.35);
--glow-cyan: 0 0 10px rgba(70, 230, 255, 0.6);
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
height: 100%;
background: var(--bg);
color: var(--fg);
/* Monospace everywhere — terminal feel. */
font-family: var(--mono);
font-size: 13px;
line-height: 1.45;
}
/* Ambient neon vignette behind everything. */
body {
background:
radial-gradient(1200px 600px at 50% -10%, rgba(33, 200, 255, 0.12), transparent 60%),
radial-gradient(900px 520px at 100% 110%, rgba(42, 123, 255, 0.1), transparent 60%),
radial-gradient(700px 400px at 0% 100%, rgba(70, 230, 255, 0.07), transparent 60%),
var(--bg);
}
/* CRT scanline + flicker overlay. Non-interactive, sits above content. */
body::after {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
z-index: 9999;
background: repeating-linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0px,
rgba(0, 0, 0, 0) 2px,
rgba(0, 0, 0, 0.16) 3px,
rgba(0, 0, 0, 0) 4px
);
mix-blend-mode: multiply;
opacity: 0.5;
animation: scanflicker 6s steps(60) infinite;
}
@keyframes scanflicker {
0%, 97%, 100% { opacity: 0.5; }
98% { opacity: 0.62; }
99% { opacity: 0.42; }
}
::selection { background: rgba(33, 200, 255, 0.32); color: #fff; text-shadow: none; }
/* Neon scrollbars (WebKit / Chromium — Electron). */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-elev); }
::-webkit-scrollbar-thumb {
background: #14385c;
border-radius: 6px;
border: 1px solid var(--border);
}
::-webkit-scrollbar-thumb:hover { background: #1c5d92; box-shadow: var(--glow-neon); }
code {
font-family: var(--mono);
background: var(--bg-elev-2);
padding: 1px 4px;
border-radius: 3px;
font-size: 12px;
color: var(--neon-soft);
border: 1px solid var(--border);
}
.muted { color: var(--fg-dim); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.error { color: var(--danger); text-shadow: var(--glow-danger); }
.row { display: flex; gap: 8px; align-items: center; }
.inline { display: inline-flex; align-items: center; gap: 6px; }
.topbar {
display: flex;
align-items: center;
gap: 16px;
padding: 10px 16px;
background: linear-gradient(180deg, rgba(33, 200, 255, 0.08), transparent), var(--bg-elev);
border-bottom: 1px solid var(--neon);
box-shadow: 0 1px 0 rgba(33, 200, 255, 0.3), 0 8px 24px -10px rgba(33, 200, 255, 0.5);
}
.topbar .brand {
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--neon);
text-shadow: var(--glow-neon-strong);
animation: brandflicker 4.5s infinite;
}
.topbar .brand::before { content: "▌ "; color: var(--neon); opacity: 0.85; }
@keyframes brandflicker {
0%, 19%, 21%, 55%, 57%, 100% { opacity: 1; text-shadow: var(--glow-neon-strong); }
20% { opacity: 0.7; }
56% { opacity: 0.85; text-shadow: var(--glow-neon); }
}
.topbar .session { margin-left: auto; color: var(--cyan); font-family: var(--mono); font-size: 12px; text-shadow: var(--glow-cyan); }
.view { display: flex; gap: 0; height: calc(100vh - 45px); }
#view-login { justify-content: center; align-items: flex-start; padding-top: 60px; }
.card {
background: var(--bg-elev);
border: 1px solid var(--neon);
border-radius: 8px;
padding: 24px;
width: 440px;
display: flex;
flex-direction: column;
gap: 12px;
box-shadow: var(--glow-neon-strong), inset 0 0 40px rgba(33, 200, 255, 0.07);
}
.card h1 { margin: 0 0 4px; font-size: 18px; color: var(--neon); text-shadow: var(--glow-neon-strong); letter-spacing: 1px; }
.card p { margin: 0 0 8px; }
label {
display: flex;
flex-direction: column;
gap: 4px;
color: var(--fg-dim);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
label.inline { flex-direction: row; align-items: center; gap: 6px; color: var(--fg); text-transform: none; letter-spacing: 0; }
input[type="text"], input[type="password"], input[type="url"],
input[type="number"], input[type="search"], input[type="datetime-local"],
select {
background: var(--bg-elev-2);
border: 1px solid var(--border);
color: var(--fg);
padding: 7px 9px;
border-radius: 4px;
font-size: 13px;
font-family: var(--mono);
outline: none;
transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input::placeholder { color: #43607f; }
input:focus, select:focus {
border-color: var(--neon);
box-shadow: var(--glow-neon), inset 0 0 10px rgba(33, 200, 255, 0.15);
caret-color: var(--neon);
}
/* Glowing checkbox accent. */
input[type="checkbox"] { accent-color: var(--neon); }
button {
font-family: var(--mono);
font-size: 13px;
letter-spacing: 0.5px;
padding: 7px 14px;
border-radius: 4px;
border: 1px solid var(--border);
background: var(--bg-elev-2);
color: var(--fg);
cursor: pointer;
transition: border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease, background 0.12s ease;
}
button:hover:not(:disabled) { border-color: var(--neon); color: var(--neon); box-shadow: var(--glow-neon); }
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.primary {
background: rgba(33, 200, 255, 0.12);
color: var(--neon);
border-color: var(--neon);
font-weight: 700;
text-transform: uppercase;
text-shadow: var(--glow-neon);
box-shadow: var(--glow-neon), inset 0 0 12px rgba(33, 200, 255, 0.15);
}
button.primary:hover:not(:disabled) {
background: var(--neon);
color: #00121f;
box-shadow: var(--glow-neon-strong);
text-shadow: none;
}
button.ghost { background: transparent; }
button.ghost:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }
button.danger {
background: rgba(255, 59, 107, 0.14);
color: var(--danger);
border-color: var(--danger);
font-weight: 700;
text-transform: uppercase;
text-shadow: var(--glow-danger);
box-shadow: var(--glow-danger), inset 0 0 12px rgba(255, 59, 107, 0.14);
}
button.danger:hover:not(:disabled) {
background: var(--danger);
color: #1a0008;
border-color: var(--danger-hover);
box-shadow: 0 0 14px rgba(255, 59, 107, 0.85), 0 0 30px rgba(255, 59, 107, 0.45);
text-shadow: none;
}
.panel-left {
width: 320px;
padding: 16px;
border-right: 1px solid var(--border);
background: linear-gradient(180deg, rgba(33, 200, 255, 0.05), transparent 260px), var(--bg-elev);
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
}
.panel-left h2 {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--neon);
text-shadow: var(--glow-neon);
margin: 12px 0 0;
padding-bottom: 4px;
border-bottom: 1px solid var(--border);
}
.panel-left h2:first-child { margin-top: 0; }
.panel-main {
flex: 1;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
overflow: hidden;
}
.panel-main h2 { margin: 0; font-size: 15px; color: var(--fg); letter-spacing: 0.5px; }
.fleet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.fleet-head h2 span { color: var(--neon); text-shadow: var(--glow-neon); }
.selected-summary {
background: var(--bg-elev-2);
padding: 8px 10px;
border-radius: 4px;
border: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 6px;
}
.selected-summary strong { color: var(--neon); text-shadow: var(--glow-neon); }
.fleet-table-wrap {
flex: 1;
overflow: auto;
border: 1px solid var(--border);
border-radius: 4px;
box-shadow: inset 0 0 30px rgba(33, 200, 255, 0.05);
}
.fleet-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.fleet-table thead th {
position: sticky;
top: 0;
background: var(--bg-elev);
text-align: left;
padding: 8px 10px;
border-bottom: 1px solid var(--neon);
color: var(--neon);
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
text-shadow: var(--glow-neon);
z-index: 1;
}
.fleet-table tbody td {
padding: 6px 10px;
border-bottom: 1px solid var(--border);
font-family: var(--mono);
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 320px;
}
.fleet-table tbody tr:hover { background: rgba(33, 200, 255, 0.08); }
.fleet-table tbody tr.selected {
background: rgba(33, 200, 255, 0.14);
box-shadow: inset 3px 0 0 var(--neon), inset 0 0 22px rgba(33, 200, 255, 0.16);
}
.status-ok { color: var(--ok); text-shadow: 0 0 7px rgba(43, 255, 158, 0.6); }
.status-warn { color: var(--warn); text-shadow: 0 0 7px rgba(255, 196, 77, 0.55); }
.status-err { color: var(--danger); text-shadow: var(--glow-danger); }
.status-info { color: var(--info); text-shadow: var(--glow-cyan); }
.status-pending { color: var(--fg-dim); }
/* Compact FEC counter readout under the health pill in the preview
table. Each line is "tail=value" so the operator can correlate with
the same names used by the PON Manager UI (Pre-FEC BER etc.). */
.fec-cell { white-space: normal; max-width: 280px; }
/* Verify-view table cells contain stacked before/after blocks; let
them wrap and align to the top so before/after lines line up. */
#verify-table tbody td { white-space: normal; vertical-align: top; }
#verify-table .delta-arrow { color: var(--neon); font-size: 11px; }
#verify-table .before-line, #verify-table .after-line { display: block; }
#verify-table .before-line { color: var(--fg-dim); font-size: 11px; }
.fec-pill { font-weight: 700; }
.fec-counters {
display: block;
margin-top: 3px;
color: var(--fg-dim);
font-family: var(--mono);
font-size: 11px;
line-height: 1.35;
}
.fec-counters .pre { color: var(--warn); }
.fec-counters .post { color: var(--danger); }
.fec-counters .ok { color: var(--fg-dim); }
.slot-arrow {
display: inline-block;
padding: 1px 6px;
border-radius: 3px;
background: var(--bg-elev-2);
border: 1px solid var(--neon);
color: var(--neon);
text-shadow: var(--glow-neon);
}
/* -------- Themed confirmation modal (confirmTyped) -------- */
.modal-overlay {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
background: rgba(2, 5, 12, 0.74);
backdrop-filter: blur(2px);
animation: modalfade 0.12s ease;
}
@keyframes modalfade { from { opacity: 0; } to { opacity: 1; } }
.modal {
width: 480px;
max-width: calc(100vw - 40px);
background: var(--bg-elev);
border: 1px solid var(--neon);
border-radius: 8px;
padding: 22px;
display: flex;
flex-direction: column;
gap: 14px;
box-shadow: var(--glow-neon-strong), inset 0 0 40px rgba(33, 200, 255, 0.06);
}
.modal.modal-danger {
border-color: var(--danger);
box-shadow: 0 0 14px rgba(255, 59, 107, 0.8), 0 0 34px rgba(255, 59, 107, 0.45), inset 0 0 40px rgba(255, 59, 107, 0.06);
}
.modal h3 {
margin: 0;
font-size: 15px;
letter-spacing: 1.5px;
text-transform: uppercase;
color: var(--neon);
text-shadow: var(--glow-neon-strong);
}
.modal.modal-danger h3 { color: var(--danger); text-shadow: var(--glow-danger); }
.modal-body { color: var(--fg); font-size: 13px; line-height: 1.55; }
.modal-type {
display: flex;
flex-direction: column;
gap: 6px;
text-transform: none;
letter-spacing: 0;
color: var(--fg-dim);
}
.modal-type-label { display: block; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 2px; }
/* -------- Animated neon edge glow (beam travels around the border) -------- */
@property --beam-angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
#edge-glow {
position: fixed;
inset: 0;
z-index: 9998;
pointer-events: none;
padding: 3px; /* thickness of the glowing border band */
background: conic-gradient(
from var(--beam-angle),
transparent 0deg,
transparent 38deg,
var(--cyan) 64deg,
#ffffff 90deg,
var(--neon) 116deg,
transparent 142deg,
transparent 360deg
);
/* Keep only the padding ring (border band); punch out the interior. */
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
mask-composite: exclude;
filter: drop-shadow(0 0 8px var(--neon)) drop-shadow(0 0 22px var(--cyan));
animation: beamspin 7s linear infinite;
}
@keyframes beamspin { to { --beam-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
#edge-glow { animation: none; }
}
/* -------- Top tabs -------- */
.tabs { display: flex; gap: 4px; margin-left: 18px; align-self: stretch; align-items: flex-end; }
.tabs .tab {
background: transparent;
border: 1px solid transparent;
border-bottom: none;
border-radius: 7px 7px 0 0;
color: var(--fg-dim);
text-transform: uppercase;
letter-spacing: 1.5px;
font-size: 12px;
font-weight: 700;
padding: 8px 18px;
box-shadow: none;
}
.tabs .tab:hover:not(.active) {
color: var(--neon);
border-color: transparent;
text-shadow: var(--glow-neon);
box-shadow: none;
}
.tabs .tab.active {
color: var(--neon);
border-color: var(--neon);
background: rgba(33, 200, 255, 0.1);
text-shadow: var(--glow-neon);
box-shadow: 0 0 12px rgba(33, 200, 255, 0.45), inset 0 0 14px rgba(33, 200, 255, 0.12);
}
/* -------- Sub-tabs (within the ONU tab) -------- */
.subtabs {
display: flex;
gap: 6px;
margin: -4px 0 4px;
border-bottom: 1px solid var(--border);
padding-bottom: 8px;
}
.subtabs .subtab {
flex: 1;
background: transparent;
border: 1px solid var(--border);
color: var(--fg-dim);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
padding: 6px 8px;
}
.subtabs .subtab:hover:not(.active) { color: var(--neon); border-color: transparent; box-shadow: none; }
.subtabs .subtab.active {
color: var(--neon);
border-color: var(--neon);
background: rgba(33, 200, 255, 0.1);
text-shadow: var(--glow-neon);
box-shadow: inset 0 0 12px rgba(33, 200, 255, 0.12);
}
/* -------- ONU info / stats page -------- */
.onu-info-list {
margin-top: 4px;
display: flex;
flex-direction: column;
overflow-y: auto;
border: 1px solid var(--border);
border-radius: 6px;
flex: 1;
min-height: 120px;
}
.onu-info-row {
display: flex;
flex-direction: column;
gap: 2px;
padding: 7px 10px;
border-bottom: 1px solid var(--border);
cursor: pointer;
}
.onu-info-row:last-child { border-bottom: none; }
.onu-info-row:hover { background: rgba(33, 200, 255, 0.06); }
.onu-info-row.selected { background: rgba(33, 200, 255, 0.14); box-shadow: inset 3px 0 0 var(--neon); }
.onu-info-row .oir-serial { font-weight: 600; font-size: 12px; }
.onu-info-row .oir-sub { font-size: 11px; color: var(--fg-dim); display: flex; gap: 8px; align-items: center; }
.onu-detail { overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 6px; }
.onu-detail h2 { margin: 0; font-size: 17px; color: var(--neon); text-shadow: var(--glow-neon); }
/* De-compacted: cards flow into as many columns as fit the width. */
.detail-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
gap: 14px;
align-items: start;
}
svg.spark { vertical-align: middle; opacity: 0.9; }
.alarm-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.alarm-row:last-child { border-bottom: none; }
.alarm-row .alarm-text { flex: 1; }
.alarm-row .alarm-meta { color: var(--fg-dim); font-size: 11px; white-space: nowrap; }
.fw-upg { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.detail-card {
background: var(--bg-elev);
border: 1px solid var(--border);
border-radius: 10px;
padding: 14px 16px;
box-shadow: inset 0 0 22px rgba(33, 200, 255, 0.04);
}
.detail-card > h3 {
margin: 0 0 10px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--neon);
text-shadow: var(--glow-neon);
}
.kv {
display: grid;
grid-template-columns: max-content 1fr;
gap: 6px 16px;
font-size: 13px;
}
.kv dt { color: var(--fg-dim); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-all; }
.lease-pill {
display: inline-block;
padding: 2px 9px;
border-radius: 999px;
border: 1px solid currentColor;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.5px;
}
/* -------- Dashboard -------- */
.dash-wrap { overflow: hidden; }
.dash-scroll {
flex: 1;
overflow-y: auto;
padding-right: 8px;
display: flex;
flex-direction: column;
gap: 22px;
}
.dash-toggle { text-transform: none; letter-spacing: 0; color: var(--fg-dim); font-size: 12px; }
/* Cache-age badge in the dashboard header. Colour comes from a status-*
class set in JS (info = within TTL, warn = stale, ok = live/no cache). */
.dash-cache {
font-size: 11px;
font-variant-numeric: tabular-nums;
letter-spacing: 0.3px;
padding: 3px 9px;
border-radius: 999px;
border: 1px solid currentColor;
white-space: nowrap;
cursor: default;
}
.dash-cache:empty { display: none; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
background: linear-gradient(180deg, rgba(33, 200, 255, 0.07), transparent 70%), var(--bg-elev);
border: 1px solid var(--border);
border-radius: 10px;
padding: 16px 18px;
display: flex;
flex-direction: column;
gap: 6px;
box-shadow: inset 0 0 26px rgba(33, 200, 255, 0.05);
}
.tile .tile-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--fg-dim); }
.tile .tile-value { font-size: 34px; font-weight: 700; line-height: 1.05; color: var(--neon); text-shadow: var(--glow-neon-strong); font-variant-numeric: tabular-nums; }
.tile .tile-sub { font-size: 11px; color: var(--fg-dim); }
.tile.tile-teal .tile-value { color: var(--cyan); text-shadow: var(--glow-cyan); }
.tile.tile-indigo .tile-value { color: var(--blue); text-shadow: 0 0 10px rgba(42, 123, 255, 0.75), 0 0 22px rgba(42, 123, 255, 0.4); }
.dash-section { display: flex; flex-direction: column; gap: 8px; }
.dash-section > h3 {
margin: 0;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--neon);
text-shadow: var(--glow-neon);
}
.dash-card {
background: var(--bg-elev);
border: 1px solid var(--border);
border-radius: 10px;
padding: 2px 14px;
box-shadow: inset 0 0 22px rgba(33, 200, 255, 0.04);
}
.dash-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 2px;
border-bottom: 1px solid var(--border);
}
.dash-row:last-child { border-bottom: none; }
.dash-row.tappable { cursor: pointer; }
.dash-row.tappable:hover { background: rgba(33, 200, 255, 0.06); }
.dash-row .dash-row-main { display: flex; flex-direction: column; gap: 2px; }
.dash-row .dash-row-sub { font-size: 11px; color: var(--fg-dim); }
.dash-num { font-variant-numeric: tabular-nums; font-weight: 700; }
.dash-traffic { display: flex; gap: 36px; padding: 6px 2px; }
.dash-traffic .t-block { display: flex; flex-direction: column; gap: 4px; }
.dash-traffic .t-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-dim); }
.dash-traffic .t-val { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-traffic .t-down { color: var(--neon); text-shadow: var(--glow-neon); }
.dash-traffic .t-up { color: var(--cyan); text-shadow: var(--glow-cyan); }
.dash-pill {
display: inline-block;
padding: 2px 9px;
border-radius: 999px;
border: 1px solid currentColor;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.5px;
}
.dash-chevron { color: var(--neon); margin-left: 8px; font-weight: 700; }
/* List/menu popped from a clickable dashboard stat. */
.list-modal { width: 540px; }
.list-modal-items {
max-height: 52vh;
overflow-y: auto;
display: flex;
flex-direction: column;
border: 1px solid var(--border);
border-radius: 6px;
box-shadow: inset 0 0 22px rgba(33, 200, 255, 0.04);
}
.list-modal-item {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 14px;
padding: 8px 12px;
border-bottom: 1px solid var(--border);
}
.list-modal-item:last-child { border-bottom: none; }
.list-modal-item.tappable { cursor: pointer; }
.list-modal-item:hover { background: rgba(33, 200, 255, 0.06); }
.lm-primary { font-weight: 600; }
.lm-secondary { color: var(--fg-dim); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }