/* VPN Monitor v3 */
:root {
    --font: "Inter", "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
    --radius: 16px;
    --side: 232px;
}
:root, :root[data-theme="dark"] {
    --bg: #07090d;
    --bg-glow: radial-gradient(1200px 600px at 75% -10%, rgba(94, 234, 212, .07), transparent 60%), radial-gradient(900px 500px at 10% 0%, rgba(129, 140, 248, .08), transparent 60%);
    --surface: rgba(19, 23, 31, .72);
    --surface-solid: #11151c;
    --surface-2: rgba(255, 255, 255, .035);
    --border: rgba(255, 255, 255, .07);
    --border-2: rgba(255, 255, 255, .12);
    --text: #e8ecf3;
    --muted: #8b93a7;
    --faint: #5b6375;
    --accent: #5eead4;
    --accent-2: #818cf8;
    --ok: #34d399;
    --warn: #fbbf24;
    --err: #f87171;
    --q: #a78bfa;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
}
:root[data-theme="light"] {
    --bg: #f5f6f9;
    --bg-glow: radial-gradient(1200px 600px at 75% -10%, rgba(45, 212, 191, .12), transparent 60%), radial-gradient(900px 500px at 10% 0%, rgba(99, 102, 241, .10), transparent 60%);
    --surface: rgba(255, 255, 255, .8);
    --surface-solid: #fff;
    --surface-2: rgba(15, 23, 42, .035);
    --border: rgba(15, 23, 42, .08);
    --border-2: rgba(15, 23, 42, .14);
    --text: #0f172a;
    --muted: #5b6478;
    --faint: #94a0b5;
    --accent: #0d9488;
    --accent-2: #6366f1;
    --ok: #059669;
    --warn: #d97706;
    --err: #dc2626;
    --q: #7c3aed;
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg-glow), var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font: 14px/1.5 var(--font);
    font-feature-settings: "cv11", "ss01", "tnum";
    -webkit-font-smoothing: antialiased;
}
svg { stroke: currentColor; }
.mono { font-family: var(--mono); font-size: .92em; }
.flag { margin-right: 6px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* Shell */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; gap: 18px;
    padding: 20px 14px;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; padding: 2px 8px 8px; }
.logo b { font-weight: 700; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 10px; border-radius: 10px;
    color: var(--muted); font-weight: 500;
    transition: background .15s, color .15s;
}
.nav a svg, .tabbar svg { width: 18px; height: 18px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav-badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: rgba(248, 113, 113, .16); color: var(--err); }
.nav-badge:empty { display: none; }
.nav-sep { margin: 16px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.sidebar-foot { margin-top: auto; }
.collector { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 500; }
.collector small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.collector .dot { margin-top: 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: center; gap: 16px;
    padding: 14px 28px;
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
.crumbs { font-weight: 600; font-size: 15px; min-width: 120px; }
.search {
    flex: 0 1 420px; display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 10px; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--faint);
}
.search svg { width: 16px; height: 16px; fill: none; stroke-width: 2; }
.search span { flex: 1; text-align: left; }
kbd { font: 11px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border-2); color: var(--muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ok); padding: 4px 10px; border-radius: 99px; background: rgba(52, 211, 153, .1); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 1.8s infinite; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke-width: 1.8; }
.user { display: flex; align-items: center; gap: 9px; }
.avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06120f; }
.user-name { font-weight: 600; line-height: 1.15; }
.user-name small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

.view { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 1560px; width: 100%; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; backdrop-filter: blur(10px); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.link { color: var(--accent); font-weight: 500; font-size: 13px; white-space: nowrap; }
.empty p { color: var(--muted); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.err { background: var(--err); }

/* Hero */
.hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
    padding: 26px 28px; border-radius: 20px;
    border: 1px solid var(--border);
    background:
        linear-gradient(120deg, rgba(251, 191, 36, .10), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 40%, #000); opacity: .6; pointer-events: none; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ok); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping 1.8s infinite; }
.hero h1 { margin: 10px 0 8px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.hero p { margin: 0; color: var(--muted); max-width: 520px; }
.routes { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.route {
    display: grid; grid-template-columns: 110px 1fr auto 64px; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: 12px;
    background: var(--surface-solid); border: 1px solid var(--border);
}
.route-from { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.route-to { font-weight: 500; white-space: nowrap; }
.route-ping { text-align: right; color: var(--muted); }
.route-line { position: relative; height: 2px; background: color-mix(in srgb, var(--c) 25%, transparent); border-radius: 2px; overflow: hidden; }
.route-line i { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--c), transparent); animation: flow 1.6s linear infinite; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--faint); }
.kpi.ok::before { background: var(--ok); }
.kpi.warn::before { background: var(--warn); }
.kpi.err::before { background: var(--err); }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-height: 34px; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .spark { width: 84px; height: 30px; flex: none; }
.kpi-icon { font-size: 18px; color: var(--accent-2); }
.kpi-value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-top: 2px; }
.kpi-value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.kpi-sub { color: var(--faint); font-size: 12px; margin-top: 8px; }

/* Layout grids */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); gap: 20px; }
.grid-routers { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 20px; }

/* Segmented */
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }

/* Traffic timeline */
.tl { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 4px; }
.tl-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 14px; }
.tl-name { font-weight: 600; font-size: 13px; }
.tl-track { position: relative; height: 34px; border-radius: 9px; background: var(--surface-2); }
.tl-seg { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); opacity: .9; border-right: 2px solid var(--surface-solid); }
.tl-mark { position: absolute; top: -5px; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg); background: var(--text); border: 2px solid var(--surface-solid); border-radius: 2px; }
.tl-mark.fail { background: var(--err); box-shadow: 0 0 10px var(--err); }
.tl-axis { position: relative; height: 16px; margin-left: 104px; font-size: 11px; color: var(--faint); font-family: var(--mono); }
.tl-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tl-axis span:first-child { transform: none; }
.tl-axis span:last-child { transform: translateX(-100%); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* Event feed */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.ev:first-child { border-top: 0; padding-top: 0; }
.ev-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ev-err .ev-ic { background: rgba(248, 113, 113, .14); color: var(--err); }
.ev-warn .ev-ic { background: rgba(251, 191, 36, .14); color: var(--warn); }
.ev-info .ev-ic { background: rgba(129, 140, 248, .16); color: var(--accent-2); }
.ev-ok .ev-ic { background: rgba(52, 211, 153, .14); color: var(--ok); }
.ev-admin .ev-ic { background: rgba(167, 139, 250, .16); color: var(--q); }
.ev-text { font-weight: 500; font-size: 13px; }
.ev-meta { color: var(--faint); font-size: 12px; margin-top: 1px; }

/* Router card */
.router { display: flex; flex-direction: column; gap: 16px; }
.router-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.router-id { display: flex; gap: 12px; align-items: center; }
.router-glyph { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: linear-gradient(135deg, rgba(94, 234, 212, .18), rgba(129, 140, 248, .18)); border: 1px solid var(--border-2); }
.router h3 { margin: 0; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.router-id p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.badge.ok { color: var(--ok); background: rgba(52, 211, 153, .12); }
.router-actions { display: flex; gap: 6px; }
.btn { border: 1px solid var(--border); background: var(--surface-2); padding: 6px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.btn:hover { border-color: var(--border-2); }
.router-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.chip.ok i { background: var(--ok); }
.chip i.tun { background: var(--accent-2); }
.chip.mute { border-style: dashed; }
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ring { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); position: relative; }
.ring svg { grid-row: span 2; width: 44px; height: 44px; transform: rotate(-90deg); fill: none; }
.ring-bg { stroke: var(--border-2); stroke-width: 4; }
.ring-fg { stroke-width: 4; stroke-linecap: round; stroke: var(--ok); }
.ring.warn .ring-fg { stroke: var(--warn); }
.ring.err .ring-fg { stroke: var(--err); }
.ring-val { font-weight: 700; font-size: 16px; line-height: 1; }
.ring-val small { font-size: 11px; color: var(--muted); font-weight: 500; }
.ring-label { font-size: 12px; color: var(--muted); }
.ring-label small { color: var(--faint); margin-left: 4px; }
.nodes { display: flex; flex-direction: column; }
.nrow { display: grid; grid-template-columns: 14px minmax(0, 1fr) 90px 56px 64px; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 9px; }
.nrow + .nrow { border-top: 1px solid var(--border); }
.nrow.nhead { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding-top: 0; }
.nrow.nhead span:nth-child(5) { text-align: right; }
.nrow.active { background: linear-gradient(90deg, rgba(94, 234, 212, .10), transparent 70%); border-top-color: transparent; }
.nrow.active + .nrow { border-top-color: transparent; }
.ndot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.st-err .ndot { background: var(--err); box-shadow: 0 0 8px var(--err); }
.st-q .ndot { background: var(--q); }
.nname { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nname em { font-style: normal; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-left: 8px; padding: 1px 6px; border-radius: 5px; color: var(--accent); background: rgba(94, 234, 212, .12); }
.nname em.qb { color: var(--q); background: rgba(167, 139, 250, .14); }
.st-err .nname, .st-q .nname { color: var(--muted); }
.nbar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.nbar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.nping { text-align: right; }
.st-err .nping { color: var(--err); font-weight: 600; }
.navail { text-align: right; color: var(--muted); }
.navail.bad { color: var(--warn); }
.router-foot { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12px; }
.router-foot .spark { width: 100%; height: 36px; }

/* Matrix */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; padding: 0 12px 10px; }
td { padding: 10px 12px; border-top: 1px solid var(--border); font-weight: 500; white-space: nowrap; }
td small { display: block; color: var(--faint); font-weight: 400; font-size: 12px; margin-left: 22px; }
.mx { display: inline-block; min-width: 72px; text-align: center; padding: 4px 10px; border-radius: 8px; font: 500 13px var(--mono); }
.mx small { display: inline; margin: 0; font-size: 11px; }
.mx.g1 { background: rgba(52, 211, 153, .14); color: var(--ok); }
.mx.g2 { background: rgba(94, 234, 212, .10); color: var(--accent); }
.mx.g3 { background: rgba(251, 191, 36, .12); color: var(--warn); }
.mx.err { background: rgba(248, 113, 113, .14); color: var(--err); }
.mx.q { background: rgba(167, 139, 250, .14); color: var(--q); font-family: var(--font); font-size: 12px; }

/* Mobile tabbar */
.tabbar { display: none; }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
@keyframes flow { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

@media (max-width: 1280px) {
    .kpis { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .topbar { padding: 12px 16px; gap: 10px; }
    .search { display: none; }
    .user-name { display: none; }
    .view { padding: 16px 16px 96px; gap: 14px; }
    .hero { grid-template-columns: 1fr; padding: 20px 18px; gap: 18px; }
    .hero h1 { font-size: 21px; }
    .route { grid-template-columns: 84px 1fr auto; padding: 10px 12px; }
    .route-line { display: none; }
    .route-to { grid-column: 2; }
    .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi:last-child { grid-column: span 2; }
    .kpi-value { font-size: 24px; }
    .kpi .spark { width: 60px; }
    .grid-routers { grid-template-columns: 1fr; }
    .rings { grid-template-columns: 1fr 1fr; }
    .nrow { grid-template-columns: 12px minmax(0, 1fr) 56px 60px; }
    .nbar { display: none; }
    .nrow.nhead span:nth-child(4) { display: none; }
    .card { padding: 16px; }
    .card-head { flex-direction: column; }
    .tl-row { grid-template-columns: 1fr; gap: 6px; }
    .tl-axis { margin-left: 0; }
    .tabbar {
        display: grid; grid-template-columns: repeat(4, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--bg) 82%, transparent);
        backdrop-filter: blur(16px); border-top: 1px solid var(--border);
    }
    .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--faint); padding: 4px; }
    .tabbar a.on { color: var(--accent); }
}

.cc { display: inline-grid; place-items: center; min-width: 30px; height: 18px; padding: 0 5px; margin-right: 8px; border-radius: 5px; font: 600 10px var(--mono); letter-spacing: .04em; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); vertical-align: 1px; }

/* rings v2: dial with value inside */
.rings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ring { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; text-align: center; }
.ring-dial { position: relative; width: 56px; height: 56px; }
.ring-dial svg { width: 56px; height: 56px; transform: rotate(-90deg); fill: none; }
.ring-dial .ring-val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; }
.ring-dial .ring-val small { display: none; }
.ring-label { font-weight: 500; color: var(--text); font-size: 12.5px; line-height: 1.2; }
.ring-label small { display: block; margin: 2px 0 0; font-size: 11px; color: var(--faint); }

.subhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.legend.inline { margin: 0; font-size: 12px; font-weight: 400; }
.lines { width: 100%; height: 130px; display: block; }
.lines .gl { stroke: var(--border); stroke-dasharray: 3 4; }
.lines .gt { fill: var(--faint); stroke: none; font: 10px var(--mono); }

@media (max-width: 900px) {
    .router, .router > *, .nodes, .rings { min-width: 0; }
    .router-head { flex-wrap: wrap; }
    .router-actions .btn:not(:first-child):not(:last-child) { display: none; }
    .rings { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .ring { padding: 10px 2px 8px; }
    .ring-dial, .ring-dial svg { width: 46px; height: 46px; }
    .ring-label small { display: none; }
    .router-foot { grid-template-columns: 1fr; gap: 4px; }
    .nrow { grid-template-columns: 10px minmax(0, 1fr) 52px 58px; gap: 8px; padding: 8px 4px; }
    .card-head .link { position: absolute; right: 16px; top: 18px; }
    .events { position: relative; }
}
