:root {
    --bg: #f3f5f8;
    --panel: #ffffff;
    --text: #17253a;
    --muted: #526176;
    --line: #d4dce6;
    --green: #813149;
    --soft: #f7edf0;
    --red: #a0263c;
    --amber: #805611;
    --shadow: 0 4px 16px #182c4910;
    --edge: #8290a2;
    --gold: #e9c585;
    --success-fg: #226046;
    --success-bg: #e9f4ed;
    --warning-bg: #fff2d6;
    --danger-bg: #fbeaec;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}
body.dark {
    --bg: #101824;
    --panel: #1a2636;
    --text: #f0f3f8;
    --muted: #b4c1d2;
    --line: #38475c;
    --green: #edbd80;
    --soft: #35303a;
    --red: #ffa1ac;
    --amber: #f4d28d;
    --edge: #74869c;
    --success-fg: #9de1bc;
    --success-bg: #243f37;
    --warning-bg: #3c3223;
    --danger-bg: #462b37;
}
.brand {gap: 12px; font: 600 30px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.9px}
.titanium-crest {display: block; width: 43px; height: 43px; flex-shrink: 0}
.sidebar {
    background: linear-gradient(160deg, #19283e, #111d2e 75%);
    color: #f6f4f1;
    border-right: 1px solid #27374d;
}
.sidebar .brand {color: #fff5e2}
.sidebar nav {border-top: 1px solid #384559; padding-top: 21px; margin-top: 27px}
.sidebar .nav-item {color: #c6d2e1; font-size: 13px}
.sidebar .nav-item:hover {background: #27374f; color: #fff}
.sidebar .nav-item.selected {background: #324156; color: #fff4db; box-shadow: inset 3px 0 var(--gold)}
.sidebar .nav-item.selected svg, .sidebar .nav-item.selected .nav-dot {color: var(--gold)}
.sidebar .nav-dot {background: var(--gold)}
.sidebar-user {border-color: #384559}
.sidebar-user small {color: #b7c5d7}
.avatar {border-color: #ced6e1; background: #e7ecf3; color: #263a55}
.sidebar .avatar, body.dark .avatar {border-color: #4b5c72; background: #304159; color: #f0dbb4}
.topbar {border-bottom-color: var(--line)}
.dashboard-title, .page-heading h1 {font-weight: 650; letter-spacing: -.85px}
.button.primary {background: var(--green); border-color: var(--green); color: #fff}
body.dark .button.primary {color: #231c16}
.icon-button {color: var(--muted)}
:is(a, button, input, select):focus-visible {outline: 3px solid #4776b2; outline-offset: 3px}
body.dark :is(a, button, input, select):focus-visible {outline-color: #efc784}
input, select {border-color: var(--edge)}
input::placeholder {color: var(--muted)}
input:focus, select:focus {border-color: var(--green)}
.stat, .network-card, .panel {border-radius: 12px; background: var(--panel); box-shadow: var(--shadow)}
.stat-top, .network-card span {color: var(--muted); font-size: 13px; font-weight: 550}
.stat-value, .network-card strong {font-variant-numeric: tabular-nums}
.stat-symbol {color: #344c6d; background: #eff3f8; border-color: #dce3ec}
body.dark .stat-symbol {color: #c3d7f1; background: #26364b; border-color: #3b4d64}
.stat.due, body.dark .stat.due {
    background: linear-gradient(125deg,#21354f,#16253a);
    border-color: #344862; color: #ffedc9; box-shadow: inset 0 2px #d6ac70;
}
.stat.due .stat-top, .stat.due .stat-note, body.dark .stat.due .stat-top, body.dark .stat.due .stat-note {color: #e2e7f0}
.stat.due .stat-symbol, body.dark .stat.due .stat-symbol {color: #f6d498; background: #33445b; border-color: #56657a}
.network-card {transition: border-color .15s ease}
.network-card:hover {border-color: var(--edge)}
.network-card small, .stat-note, .page-footer {font-size: 11px}
th {font-size: 11px; font-weight: 600; color: var(--muted)}
td {font-size: 12px}
.badge {font-size: 11px}
.badge.green {color: var(--success-fg); background: var(--success-bg)}
.badge.amber {color: var(--amber); background: var(--warning-bg)}
.badge.red {color: var(--red); background: var(--danger-bg)}
.key-code {font-size: 12px}
.network-card strong {color: var(--text)}
@media(prefers-reduced-motion:reduce){.network-card{transition:none}}
