/* Lab Central — UI styles. Operator-console theme. Author: Andre Esbizaro */

/* ---------- Fonts (self-hosted IBM Plex) ---------- */
@font-face { font-family: "Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); }

:root {
    --chassis: #0C1014;
    --panel-1: #161D25;
    --panel-2: #121821;
    --inset:   #0F151B;
    --hairline:   #273039;
    --hairline-2: #323D48;
    --ink:       #E7EDF3;
    --ink-dim:   #9AA7B4;
    --ink-faint: #67737F;
    --signal:    #35D6C2;
    --signal-ink: #06140F;
    --amber: #F5A524;
    --coral: #F0556B;
    --ok:    #35D6C2;
    --glow: rgba(53, 214, 194, .16);
    --ring: rgba(53, 214, 194, .35);
    --radius: 6px;
    --pill: 999px;
    --font: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    --panel-bg: linear-gradient(180deg, var(--panel-1), var(--panel-2));
    --panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--chassis);
    background-image: radial-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 22px 22px;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

.container {
    flex: 1 0 auto;
    width: min(1000px, 92vw);
    margin: clamp(1.25rem, 3vw, 2.25rem) auto 2rem;
    padding: 0;
}
.container.wide { width: min(1180px, 95vw); }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { margin: 0 0 .4rem; font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -.015em; }
h3 { font-size: 1.02rem; }
/* Section headers read as console rails: mono label + hairline. */
h2, .sec {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 2rem 0 .85rem;
    display: flex;
    align-items: center;
    gap: .9rem;
}
h2::after, .sec::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
p { margin: 0 0 1rem; }
.muted { color: var(--ink-dim); }
.small { font-size: .85rem; }
.eyebrow { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }

a { color: var(--signal); text-decoration: none; font-weight: 500; }
a:hover { color: #6ee7da; text-decoration: underline; text-underline-offset: 3px; }

.hero { margin-bottom: 1.5rem; }
.hero h1 { color: var(--ink); }

/* ---------- Panels ---------- */
.panel, .card-panel, .toolbar, .bal-card, ul.report li {
    background: var(--panel-bg);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
}

/* ---------- Buttons ---------- */
button, .btn, input[type="submit"] {
    --btn-bg: var(--signal);
    --btn-bg-hover: #6ee7da;
    --btn-fg: var(--signal-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: .4rem .8rem;
    font-size: .8rem;
    min-height: 30px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s ease, transform .05s ease, background .15s ease, border-color .15s ease;
}
button:hover, .btn:hover, input[type="submit"]:hover { background: var(--btn-bg-hover); color: var(--btn-fg); text-decoration: none; }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
    outline: none; box-shadow: 0 0 0 3px var(--ring);
}
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
    background: var(--signal); color: var(--signal-ink); border: 0; border-radius: var(--radius);
    font-weight: 600; font-size: .85rem; padding: .55rem 1rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-danger, button.btn-danger { --btn-bg: var(--coral); --btn-bg-hover: #f47487; --btn-fg: #1a0608; }
.btn-ghost, button.btn-ghost {
    --btn-bg: transparent; --btn-bg-hover: var(--panel-1); --btn-fg: var(--ink-dim);
    border-color: var(--hairline-2);
}
.btn-ghost:hover { color: var(--ink); }
.btn-small, button.btn-small { padding: .4rem .8rem; font-size: .8rem; }

.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 1.25rem 0; }
.actions form { margin: 0; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.25rem; max-width: 440px; }
.form label { font-weight: 600; font-size: .85rem; color: var(--ink-dim); }
.form input, .form textarea, .form select,
input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="number"], textarea, select {
    width: 100%;
    padding: .6rem .75rem;
    font: inherit;
    color: var(--ink);
    background: var(--inset);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { line-height: 1.5; resize: vertical; }
select { cursor: pointer; }
.form input:focus, .form textarea:focus, .form select:focus,
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--ring);
}
::placeholder { color: var(--ink-faint); }
.form button { align-self: flex-start; margin-top: .35rem; }

/* ---------- Status hero ---------- */
.status { padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.status::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glow), transparent); }
.status-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.status-title { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: .35rem 0 0; letter-spacing: -.015em; }
.readout { display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; font-family: var(--mono); }
.ro { display: flex; flex-direction: column; gap: .2rem; }
.ro-k { font-size: .68rem; letter-spacing: .12em; color: var(--ink-faint); text-transform: uppercase; }
.ro-v { font-size: 1.45rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.amber { color: var(--amber); } .coral { color: var(--coral); } .sig { color: var(--signal); }

/* ---------- Status dots ---------- */
.dot { width: 8px; height: 8px; border-radius: var(--pill); flex: none; display: inline-block; }
.dot-on { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px rgba(245, 165, 36, .7); }
.dot-coral { background: var(--coral); box-shadow: 0 0 8px rgba(240, 85, 107, .7); }

/* ---------- Module instruments ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.mod {
    position: relative; padding: 1rem 1rem .9rem; display: flex; flex-direction: column; gap: .15rem;
    color: var(--ink); transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.mod:hover { transform: translateY(-3px); border-color: var(--hairline-2); box-shadow: var(--panel-shadow), 0 8px 22px rgba(0, 0, 0, .35); text-decoration: none; }
.mod .dot { position: absolute; top: .9rem; right: .9rem; }
.mod-lbl { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: var(--ink-faint); text-transform: uppercase; }
.mod-num { font-family: var(--mono); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1.1; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.mod-num.warn { color: var(--amber); }
.mod-num.lock { font-size: 1.2rem; color: var(--amber); letter-spacing: .06em; }
.mod-sub { font-family: var(--mono); font-size: .76rem; color: var(--ink-dim); }

/* ---------- Alerts / status text ---------- */
.alert {
    background: rgba(245, 165, 36, .08);
    border: 1px solid rgba(245, 165, 36, .35);
    color: #f6c98a;
    padding: .8rem 1rem; border-radius: var(--radius); margin: 0 0 1rem;
}
.status-msg, .status.ok, .status.err { margin-top: 1rem; }
.status.ok, .ok-text { color: var(--ok); font-weight: 600; }
.status.err, .err { color: var(--coral); font-weight: 600; }

/* ---------- Code / secrets ---------- */
.code, pre.code {
    background: #080c11; color: var(--ink); padding: .75rem .9rem; border-radius: var(--radius);
    font-family: var(--mono); font-size: .92rem; letter-spacing: .04em; overflow-x: auto;
    border: 1px solid var(--hairline);
}
.qr { display: inline-block; background: #fff; padding: 14px; border-radius: var(--radius); border: 1px solid var(--hairline-2); }
ul.codes {
    list-style: none; padding: 1rem; margin: .5rem 0 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .55rem .9rem;
    font-family: var(--mono); font-size: 1rem; color: var(--ink);
    background: var(--inset); border: 1px solid var(--hairline); border-radius: var(--radius);
}
ul.codes li { padding: .15rem .25rem; }

.matchcode {
    font-family: var(--mono); font-size: clamp(2.2rem, 9vw, 3rem); font-weight: 600; letter-spacing: .3em;
    color: var(--signal); background: var(--inset); border: 1px solid var(--hairline-2);
    border-radius: var(--radius); padding: .7rem 1.1rem .7rem 1.4rem; display: inline-block; text-align: center;
}

/* ---------- Lists ---------- */
ul.devices { list-style: none; padding: 0; margin: .5rem 0 0; }
ul.devices li { padding: .7rem .2rem; border-bottom: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; }
ul.devices li:last-child { border-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .5rem 0 1rem; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--panel-2); }
table.grid { width: 100%; max-width: 100%; table-layout: auto; border-collapse: collapse; margin: 0; font-size: .9rem; }
table.grid th, table.grid td { text-align: left; padding: .6rem .75rem; vertical-align: middle; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.trunc { display: inline-block; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.trunc.wide { max-width: 230px; } .trunc.xwide { max-width: 430px; } .trunc.narrow { max-width: 120px; }
table.grid thead th {
    font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--ink-faint); background: var(--panel-2); font-weight: 500;
}
table.grid thead th a { color: var(--ink-faint); }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover td { background: rgba(255, 255, 255, .02); }
table.grid th.th-sort, table.grid thead th a { cursor: pointer; user-select: none; }
table.grid th.th-sort:hover, table.grid thead th a:hover { color: var(--ink); text-decoration: none; }
.sort-ind { color: var(--signal); font-size: .85em; }
table.grid form { display: inline; margin: 0; }
table.grid td form + form { margin-left: .35rem; }

.tag {
    display: inline-block; background: rgba(53, 214, 194, .1); color: var(--signal);
    border: 1px solid rgba(53, 214, 194, .28); border-radius: var(--pill);
    padding: .05rem .55rem; font-size: .7rem; font-weight: 600; margin-left: .4rem; vertical-align: middle;
}

/* ---------- Footer ---------- */
.footer { flex-shrink: 0; text-align: center; padding: 1.25rem; color: var(--ink-faint); font-size: .8rem; font-family: var(--mono); letter-spacing: .04em; }

/* ---------- Top navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(12, 16, 20, .85); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--hairline); }
.nav-inner { width: min(1180px, 95vw); margin: 0 auto; display: flex; align-items: center; gap: .8rem; padding: .6rem 0; }
.nav-brand { color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 1rem; letter-spacing: .04em; }
.nav-brand:hover { text-decoration: none; color: var(--ink); }
.nav-brand span { color: var(--signal); }
.nav-links { display: flex; gap: .15rem; margin-left: 1rem; flex: 1; flex-wrap: wrap; }
.nav-links a { color: var(--ink-dim); padding: .4rem .7rem; border-radius: var(--radius); font-weight: 500; font-size: .88rem; }
.nav-links a:hover { background: rgba(255, 255, 255, .06); color: var(--ink); text-decoration: none; }
.nav-signout { margin: 0; }
.nav-signout .btn { color: var(--ink-dim); border-color: var(--hairline-2); background: transparent; }
.nav-signout .btn:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; padding: .7rem; }
.toolbar input[type="text"], .toolbar select, .toolbar input[type="date"] { padding: .5rem .6rem; max-width: 100%; }
.toolbar .grow { flex: 1; min-width: 160px; }

/* ---------- Bookmarks ---------- */
.bm-title { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.bm-favicon { width: 16px; height: 16px; border-radius: 3px; flex: none; background: var(--inset); }
.bm-url { color: var(--ink-faint); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.bm-tags { margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .25rem; }
.bm-folder { color: var(--ink-dim); font-size: .8rem; }
form.inline { display: inline; margin: 0; }
.row-actions { display: flex; gap: .35rem; flex-wrap: nowrap; align-items: center; }
.row-actions .btn, .row-actions button { min-width: 56px; }

/* ---------- Vault ---------- */
.card-panel { padding: 1rem; margin: 0 0 1rem; }
.card-panel .form { margin-top: .5rem; max-width: 520px; }
.pw-dots { font-family: var(--mono); letter-spacing: .1em; white-space: nowrap; }
.pw-dots.pw-shown { letter-spacing: 0; user-select: all; white-space: normal; overflow-wrap: anywhere; }
.cell-row { display: flex; align-items: center; gap: .35rem; flex-wrap: nowrap; }
.cell-row .cell-grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.str-wrap { display: flex; align-items: center; gap: .6rem; margin: -.2rem 0 .2rem; }
.str-bar { flex: 1; height: 7px; background: var(--inset); border-radius: var(--pill); overflow: hidden; max-width: 260px; }
.str-bar i { display: block; height: 100%; transition: width .2s ease, background .2s ease; }
.str-bar i.s0 { background: var(--coral); } .str-bar i.s1 { background: #d97706; }
.str-bar i.s2 { background: #ca8a04; } .str-bar i.s3 { background: #16a34a; } .str-bar i.s4 { background: var(--signal); }
ul.report { list-style: none; padding: 0; margin: .25rem 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
ul.report li { padding: .4rem .6rem; }

/* ---------- Finance ---------- */
.amt-in { color: var(--ok); font-weight: 600; }
.amt-out { color: var(--coral); font-weight: 600; }
.bal-cards { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 1.25rem; }
.bal-card { padding: .7rem 1rem; min-width: 140px; }
.bal-cur { font-family: var(--mono); font-size: .68rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .15rem; }
.bal-sum { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-wrap { overflow-x: auto; margin: .25rem 0 1.25rem; }
.chart { width: 100%; height: auto; max-width: 780px; display: block; }
.progress { width: 130px; height: 8px; background: var(--inset); border-radius: var(--pill); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: .4rem; }
.progress-bar { height: 100%; }
.pb-ok { background: var(--signal); } .pb-warn { background: var(--amber); } .pb-over { background: var(--coral); }

/* ---------- Dashboard pinned tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: .5rem 0 1rem; }
.tile { color: var(--ink); }
.tile:hover { text-decoration: none; }
.tile-shot {
    position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: var(--radius);
    background: var(--panel-1); overflow: hidden; border: 1px solid var(--hairline);
    transition: transform .12s ease, border-color .15s ease;
}
.tile:hover .tile-shot { transform: translateY(-3px); border-color: var(--hairline-2); }
.tile-shot::after { content: attr(data-letter); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-dim); font-family: var(--mono); font-weight: 600; font-size: 2.2rem; }
.tile-shot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; background: var(--inset); }
.tile-label { display: block; margin-top: .5rem; font-family: var(--mono); font-size: .76rem; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Dashboard pinned videos ---------- */
.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: .5rem 0 1rem; }
.vtile { color: var(--ink); }
.vtile:hover { text-decoration: none; }
.vtile .v-shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #000; border: 1px solid var(--hairline); display: block; transition: transform .12s ease, border-color .15s; }
.vtile:hover .v-shot { transform: translateY(-3px); border-color: var(--hairline-2); }
.vtile .v-cap { display: block; margin-top: .4rem; font-family: var(--mono); font-size: .76rem; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Video page ---------- */
.video-wrap { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-start; }
.video-player { flex: 1 1 460px; min-width: 280px; }
.video-side { flex: 1 1 320px; min-width: 260px; }
.ratio16 { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--hairline); }
.ratio16 iframe, .ratio16 > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-row { display: flex; gap: .7rem; align-items: flex-start; }
.v-thumb { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #000; display: block; flex: 0 0 auto; }
.tnote { display: flex; align-items: flex-start; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--hairline); }
.tnote .t { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ts-link { cursor: pointer; text-decoration: none; }

/* ---------- Planning ---------- */
.plan-wrap { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-start; }
.plan-form { flex: 1 1 300px; min-width: 280px; display: flex; flex-direction: column; gap: .45rem; }
.plan-form label { font-weight: 600; font-size: .8rem; color: var(--ink-dim); margin-top: .3rem; }
.plan-form h2 { margin-top: .2rem; }
.plan-results { flex: 2 1 460px; min-width: 300px; }
.cur-toggle { display: flex; gap: .4rem; margin-bottom: .8rem; }
.cur-btn.active { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.plan-card { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.plan-big { font-family: var(--mono); font-size: clamp(1.05rem, 1.7vw, 1.45rem); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
table.grid tr.ms td { background: rgba(53, 214, 194, .07); }
table.grid tr.ms td:first-child { box-shadow: inset 3px 0 0 var(--signal); font-weight: 600; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: .12rem .5rem; border-radius: var(--pill); font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.badge-ok { background: rgba(53, 214, 194, .1); color: var(--signal); border-color: rgba(53, 214, 194, .3); }
.badge-redirect { background: rgba(245, 165, 36, .1); color: var(--amber); border-color: rgba(245, 165, 36, .3); }
.badge-dead { background: rgba(240, 85, 107, .1); color: var(--coral); border-color: rgba(240, 85, 107, .3); }
.badge-unchecked { background: rgba(255, 255, 255, .04); color: var(--ink-dim); border-color: var(--hairline-2); }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; font-family: var(--mono); }
.pager .spacer { flex: 1; }
.pager a, .pager span.current { padding: .35rem .7rem; border-radius: var(--radius); border: 1px solid var(--hairline-2); font-size: .82rem; color: var(--signal); background: var(--inset); }
.pager span.current { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.pager a:hover { border-color: var(--signal); text-decoration: none; }
.pager .muted { border: 0; background: transparent; color: var(--ink-dim); }

@media (max-width: 480px) {
    .actions { flex-direction: column; align-items: stretch; }
    .actions .btn, .actions button { width: 100%; }
    .nav-inner { flex-wrap: wrap; }
    .nav-links { order: 3; width: 100%; margin-left: 0; }
}
