/* Site stylesheet - every page extends base.html and uses this.
   Palette and type come from the logo: charcoal-olive, sand, ochre, heavy
   condensed sans - used dark: chrome (topbar, rail) is the deepest olive, the
   listing "sheet" a step lighter, sand for text, ochre for the accent. */

:root {
    --ink: #1d1e18;        /* chrome */
    --ink-2: #292a23;      /* chrome hover */
    --ink-3: #3b3c32;      /* chrome rules */
    --on-ink: #e9e2cf;
    --on-ink-2: #a19b86;
    --sand: #262720;       /* the sheet */
    --sand-2: #30312a;     /* row hover */
    --paper: #1d1e18;      /* inputs, inset */
    --rule: #393a30;       /* hairlines */
    --well: #16170f;       /* editor */
    --text: #e9e2cf;
    --text-2: #a19b86;
    --ochre: #d9a24a;      /* accent as text (AA on the sheet) */
    --ochre-bright: #c8923e; /* accent as fill */
    --danger: #b6483b;
    --ok: #7fa34c;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    font: 14px/1.45 Barlow, "Segoe UI", system-ui, sans-serif;
    background: var(--ink); color: var(--on-ink);
    display: flex; flex-direction: column; min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}
a, button, input, label { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ochre-bright); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Topbar ── */
.top { flex: none; height: 48px; display: flex; align-items: center; gap: 20px;
    padding: 0 20px; border-bottom: 1px solid var(--ink-3); }
.brand { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; font-size: 21px;
    letter-spacing: .03em; text-transform: uppercase; color: var(--on-ink); text-decoration: none;
    display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand small { font-family: Barlow, sans-serif; font-weight: 500; font-size: 13px;
    letter-spacing: 0; text-transform: none; color: var(--on-ink-2); }
.nav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--on-ink-2); text-decoration: none; padding: 6px 10px; border-radius: 4px;
    font-size: 13.5px; white-space: nowrap; }
.nav a:hover { color: var(--on-ink); background: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--on-ink); }

/* ── Shell: rail + sheet ── */
.shell { flex: 1; display: flex; min-height: 0; }
.rail { flex: none; width: 228px; padding: 14px 0 24px; overflow-y: auto;
    border-right: 1px solid var(--ink-3); }
.rail h2 { font-size: 12px; font-weight: 500; color: var(--on-ink-2); margin: 10px 20px 4px; }
.rail a { display: block; padding: 5px 20px 5px 17px; border-left: 3px solid transparent;
    color: var(--on-ink); text-decoration: none; font-size: 14px; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail a:hover { background: var(--ink-2); }
.rail a[aria-current="page"] { border-left-color: var(--ochre-bright); background: var(--ink-2); font-weight: 600; }
.rail .pin small { display: block; font-size: 12px; color: var(--on-ink-2); font-weight: 400; }
.rail .pin.missing { color: var(--on-ink-2); text-decoration: line-through; }
.rail .hint { margin: 4px 20px; font-size: 12.5px; color: var(--on-ink-2); line-height: 1.4; }
.rail .pin[draggable] { cursor: grab; }
.rail .pin.dragging { opacity: .4; }
.rail .pin.over { box-shadow: inset 0 2px 0 var(--ochre-bright); }

.sheet { flex: 1; min-width: 0; background: var(--sand); color: var(--text);
    overflow-y: auto; }
.sheet-in { max-width: 1060px; padding: 22px 32px 40px; }

/* ── Flash ── */
.flash { padding: 9px 14px; margin: 0 0 16px; border-left: 3px solid; font-size: 13.5px; }
.flash-success { border-color: var(--ok); background: rgba(127,163,76,.12); }
.flash-error { border-color: var(--danger); background: rgba(182,72,59,.14); }

/* ── Location: path above, name large ── */
.loc { margin-bottom: 14px; }
.path { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text-2); }
.path a { color: var(--text-2); text-decoration: none; }
.path a:hover { color: var(--ochre); text-decoration: underline; }
.path .sep { margin: 0 5px; opacity: .5; }
.loc h1 { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; font-size: 30px;
    line-height: 1.05; letter-spacing: .01em; margin: 2px 0 0; display: flex; align-items: center;
    gap: 10px; min-width: 0; text-wrap: balance; }
.loc h1 .txt { overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 13px; color: var(--text-2); }

/* ── Toolbar ── */
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0;
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bar .grow { flex: 1; }
.filter { flex: 0 1 300px; min-width: 160px; padding: 6px 10px; border: 1px solid var(--rule);
    border-radius: 4px; background: var(--paper); color: var(--text); font: inherit; }
.filter::placeholder { color: var(--text-2); }
.access { font-size: 12.5px; color: var(--text-2); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 4px;
    border: 1px solid var(--rule); background: var(--paper); color: var(--text); font: inherit;
    font-size: 13.5px; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--text-2); background: var(--ink-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--ochre-bright); border-color: var(--ochre-bright); color: var(--ink); font-weight: 600; }
.btn-primary:hover { background: #d6a24d; border-color: #d6a24d; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn-danger:hover { background: #c9564a; }
/* In a table, one solid red button per row is a wall of red - quiet until hovered */
.list .btn-danger { background: transparent; border-color: var(--rule); color: #e0806f; }
.list .btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:focus-within { outline: 2px solid var(--ochre-bright); outline-offset: 2px; }
.btn svg { width: 14px; height: 14px; }

/* ── Listing ── */
.list { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.list th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--text-2);
    padding: 10px 8px 7px; border-bottom: 1px solid var(--rule); }
.list td { padding: 0 8px; height: 37px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.list tbody tr:hover td { background: var(--sand-2); }
.list tr[hidden] { display: none; }
.c-check { width: 34px; padding-right: 0 !important; }
.c-name { width: 100%; max-width: 0; }  /* takes the slack, and lets long names truncate */
.c-check input { width: 15px; height: 15px; margin: 0; display: block; accent-color: var(--ochre); cursor: pointer; }
.c-size, .c-time, .list th.c-size, .list th.c-time { text-align: right; white-space: nowrap; color: var(--text-2); font-size: 13px; }
.c-size { width: 90px; }
.c-time { width: 150px; }
.c-act { width: 76px; text-align: right; white-space: nowrap; }
.name { display: flex; align-items: center; gap: 9px; color: var(--text);
    text-decoration: none; min-width: 0; }
.name svg { width: 15px; height: 15px; flex: none; color: var(--text-2); }
.name.dir { font-weight: 500; }
.name.dir svg { color: var(--ochre); }
.name .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.name:hover { color: var(--ochre); }
.ibtn { background: none; border: 0; padding: 5px; border-radius: 4px; color: var(--text-2);
    cursor: pointer; display: inline-flex; vertical-align: middle; }
.ibtn svg { width: 15px; height: 15px; display: block; }
.ibtn:hover { color: var(--ochre); background: rgba(255,255,255,.06); }
.ibtn.on { color: var(--ochre); }
.c-act .ibtn:not(.on) { opacity: 0; }
.list tr:hover .c-act .ibtn, .c-act .ibtn:focus-visible { opacity: 1; }
@media (hover: none) { .c-act .ibtn { opacity: 1 !important; } }
@media (prefers-reduced-motion: no-preference) { .c-act .ibtn { transition: opacity .12s; } }
.empty { padding: 28px 8px !important; color: var(--text-2); text-align: center; }

/* ── Viewer / editor ── */
.editor, .viewer { width: 100%; margin: 0; border: 1px solid var(--ink-3); border-radius: 4px;
    background: var(--well); color: var(--on-ink); color-scheme: dark; padding: 14px 16px;
    font: 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    tab-size: 4; white-space: pre; overflow: auto; scrollbar-color: var(--ink-3) var(--well); }
.editor { display: block; min-height: 62vh; resize: vertical; }
.editor:focus-visible { outline: 2px solid var(--ochre-bright); outline-offset: 0; }
.viewer { max-height: 72vh; }
.actions { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px;
    padding: 12px 0; margin-top: 12px; background: var(--sand); border-top: 1px solid var(--rule); }
.actions .state { font-size: 13px; color: var(--text-2); margin-left: auto; }
.note { padding: 22px; border: 1px dashed var(--rule); color: var(--text-2); border-radius: 4px; }

/* ── Audit ── */
.badge { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 500; }
.b-edit { background: rgba(217,162,74,.14); color: var(--ochre); }
.b-upload, .b-overwrite { background: rgba(127,163,76,.14); color: var(--ok); }
.b-delete { background: rgba(182,72,59,.16); color: #e0806f; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; }

/* ── Narrow screens: the rail becomes a strip above the sheet ── */
@media (max-width: 820px) {
    .top { padding: 0 12px; gap: 12px; }
    .brand small { display: none; }
    .shell { flex-direction: column; }
    .rail { width: auto; display: flex; gap: 2px; padding: 6px 8px; overflow-x: auto; overflow-y: hidden;
        border-right: 0; border-bottom: 1px solid var(--ink-3); scrollbar-width: none; }
    .rail h2, .rail .hint, .rail .pin small { display: none; }
    .rail a { border-left: 0; border-bottom: 3px solid transparent; padding: 6px 10px; flex: none; }
    .rail a[aria-current="page"] { border-bottom-color: var(--ochre-bright); background: none; }
    .sheet-in { padding: 16px 16px 32px; }
    .loc h1 { font-size: 26px; }
    .c-size, .list th.c-size, .c-act, .list th.c-act { display: none; }
    .c-time { width: 118px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Site-wide pieces (search, boot monitor, bank, admin, login)
   ═══════════════════════════════════════════════════════════════════════ */

.sheet-in.wide { max-width: 1640px; }
.sheet { position: relative; }

/* The bear. Black in the PNG screens out against the olive, so only the
   glow shows through. */
.watermark { position: fixed; left: 50%; top: 50%; width: min(700px, 90vw); height: min(700px, 90vw);
    transform: translate(-50%, -50%); pointer-events: none; z-index: 0; opacity: .16;
    mix-blend-mode: screen; background: center / contain no-repeat; }
.sheet-in { position: relative; z-index: 1; }

/* Section headings inside a page */
h2.sec { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; font-size: 20px;
    letter-spacing: .01em; margin: 26px 0 8px; display: flex; align-items: baseline; gap: 12px; }
h2.sec:first-child { margin-top: 0; }
h2.sec small { font-family: Barlow, sans-serif; font-weight: 400; font-size: 13px; color: var(--text-2); letter-spacing: 0; }
h2.sec .r { margin-left: auto; font-family: Barlow, sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 0; display: flex; align-items: center; gap: 10px; }

/* Forms */
.lbl { display: block; font-size: 12.5px; color: var(--text-2); margin: 0 0 4px; }
.in { width: 100%; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 4px;
    background: var(--paper); color: var(--text); font: inherit; }
.in::placeholder { color: var(--text-2); }
select.in { padding-right: 28px; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a19b86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
.in.num { font-variant-numeric: tabular-nums; }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }
.hint { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--ochre); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; }
.callout { padding: 12px 14px; border-left: 3px solid var(--ochre-bright); background: rgba(217,162,74,.08);
    font-size: 13.5px; line-height: 1.5; margin-bottom: 18px; }
.callout .mono { font-size: 12.5px; }
.gold { color: var(--ochre); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.list td.num, .list th.num { text-align: right; }
.list .r { text-align: right; }

/* Status badges (boot monitor, admin) */
.b-ok { background: rgba(127,163,76,.16); color: var(--ok); }
.b-warn { background: rgba(217,162,74,.16); color: var(--ochre); }
.b-bad { background: rgba(182,72,59,.18); color: #e0806f; }
.b-off { background: rgba(161,155,134,.14); color: var(--text-2); }

/* Change-password dialog (in the base, opened from the nav) */
dialog { background: var(--sand); color: var(--text); border: 1px solid var(--ink-3); border-radius: 6px;
    padding: 22px 24px; width: min(380px, 92vw); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog h2 { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; font-size: 22px; margin: 0 0 14px; }
dialog .actions { position: static; border: 0; margin: 4px 0 0; padding: 0; justify-content: flex-end; }
.nav button { background: none; border: 0; font: inherit; color: var(--on-ink-2); padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.nav button:hover { color: var(--on-ink); background: var(--ink-2); }

/* ── Log search ── */
.split { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { position: sticky; top: 0; padding-top: 22px; margin-top: -22px; }  /* keeps its gap from the topbar when stuck */
.group { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.group:first-child { padding-top: 0; }
.group h2 { font-size: 12.5px; font-weight: 500; color: var(--text-2); margin: 0 0 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; padding: 4px 11px; border-radius: 20px; border: 1px solid var(--rule); font-size: 13px; cursor: pointer;
    color: var(--text-2); user-select: none; }
.pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pill:hover { border-color: var(--text-2); color: var(--text); }
.pill.active { background: var(--ochre-bright); border-color: var(--ochre-bright); color: var(--ink); font-weight: 600; }
.pill:focus-within { outline: 2px solid var(--ochre-bright); outline-offset: 2px; }
.search-row { display: flex; gap: 6px; margin-bottom: 6px; }
.search-row select { flex: 0 0 82px; }
.switch { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch .track { width: 34px; height: 18px; border-radius: 9px; background: var(--rule); position: relative; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--text-2); }
.switch input:checked + .track { background: var(--ochre-bright); }
.switch input:checked + .track::after { left: 18px; background: var(--ink); }
.switch input:focus-visible + .track { outline: 2px solid var(--ochre-bright); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .switch .track::after { transition: left .12s; } }
#geo-fields { display: none; margin-top: 10px; }
#geo-fields.visible { display: block; }

.results-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 0 0 10px; margin-bottom: 8px;
    border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--text-2); }
.results-head strong { color: var(--text); font-weight: 600; }
.results-head .r { margin-left: auto; display: flex; gap: 6px; }
.log-row { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; margin-bottom: 2px; border-radius: 4px;
    border: 1px solid transparent; font: 12.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; cursor: pointer;
    position: relative; }
.log-row:hover { border-color: var(--rule); }
.log-row.selected { border-color: var(--ochre-bright); background: rgba(217,162,74,.08) !important; }
.log-row .row-check { width: 14px; height: 14px; margin: 0; align-self: center; accent-color: var(--ochre); flex: none; }
.log-badge { flex: none; font: 600 10.5px/1.6 Barlow, sans-serif; letter-spacing: .04em; text-transform: uppercase;
    padding: 1px 7px; border-radius: 3px; }
.log-ts { flex: none; color: var(--text-2); font-size: 11.5px; white-space: nowrap; }
.log-text { flex: 1; min-width: 0; word-break: break-all; }
.copy-btn { flex: none; opacity: 0; padding: 1px 8px; font: 500 11.5px Barlow, sans-serif; border-radius: 3px;
    border: 1px solid var(--rule); background: var(--paper); color: var(--text-2); cursor: pointer; }
.log-row:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--text); }
@media (hover: none) { .copy-btn { opacity: 1; } }
/* Log types: categorical, one hue each, tuned for the olive background */
.badge-Console    { background: rgba(127,178,229,.16); color: #9cc4ee; }
.badge-ScriptLog  { background: rgba(217,162,74,.16);  color: #e3b25c; }
.badge-RPT        { background: rgba(161,155,134,.16); color: #b3ad98; }
.badge-LB         { background: rgba(143,191,106,.16); color: #a6cf84; }
.badge-Expansion  { background: rgba(185,149,230,.16); color: #c9aef0; }
.badge-KOTH       { background: rgba(230,154,92,.16);  color: #efb27e; }
.badge-DNA        { background: rgba(95,201,184,.16);  color: #7fd8c8; }
.badge-RaG_Core   { background: rgba(229,127,143,.16); color: #ee9fac; }
.badge-TFTerminal { background: rgba(230,211,92,.16);  color: #eedd7e; }
.badge-Crash      { background: rgba(224,128,111,.2);  color: #eb9a8a; }
.row-Console    { background: rgba(127,178,229,.035); }
.row-ScriptLog  { background: rgba(217,162,74,.035); }
.row-RPT        { background: rgba(161,155,134,.035); }
.row-LB         { background: rgba(143,191,106,.035); }
.row-Expansion  { background: rgba(185,149,230,.035); }
.row-KOTH       { background: rgba(230,154,92,.035); }
.row-DNA        { background: rgba(95,201,184,.035); }
.row-RaG_Core   { background: rgba(229,127,143,.035); }
.row-TFTerminal { background: rgba(230,211,92,.035); }
.row-Crash      { background: rgba(224,128,111,.06); }
.pager { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--rule); }
.pager .pages { display: flex; flex-wrap: wrap; gap: 4px; }
.page-btn { min-width: 32px; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--rule); background: var(--paper);
    color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.page-btn:hover { border-color: var(--text-2); }
.page-btn.active { background: var(--ochre-bright); border-color: var(--ochre-bright); color: var(--ink); font-weight: 600; }
.pager .r { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.empty-state { padding: 80px 20px; text-align: center; color: var(--text-2); font-size: 15px; }

/* ── Crash detail ── */
.kv { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 8px; }
.kv div { display: flex; flex-direction: column; gap: 1px; }
.kv .k { font-size: 12px; color: var(--text-2); }
.kv .v { font-size: 14px; font-variant-numeric: tabular-nums; }
.kv .v.bad { color: #e0806f; font-weight: 600; }
details.sec { margin-top: 18px; border-top: 1px solid var(--rule); }
details.sec summary { cursor: pointer; padding: 10px 0; font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700;
    font-size: 19px; letter-spacing: .01em; list-style: none; display: flex; align-items: center; gap: 10px; }
details.sec summary::-webkit-details-marker { display: none; }
details.sec summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
    transform: rotate(-45deg); flex: none; }
details.sec[open] summary::before { transform: rotate(45deg); }
details.sec summary small { font-family: Barlow, sans-serif; font-weight: 400; font-size: 13px; color: var(--text-2); }
.log-block { max-height: 60vh; margin-bottom: 14px; }

/* ── Login ── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 1; }
.login-card { width: min(380px, 100%); background: var(--sand); border: 1px solid var(--ink-3);
    border-radius: 6px; padding: 28px 28px 22px; text-align: center; }
.login-card img { width: 150px; height: 150px; border-radius: 6px; margin-bottom: 8px; }
.login-card h1 { font-family: "Barlow Condensed", Barlow, sans-serif; font-weight: 700; font-size: 26px; margin: 4px 0 2px; min-height: 30px; }
.login-card .by { font-size: 12.5px; color: var(--text-2); margin-bottom: 18px; }
.login-card form { text-align: left; }
.login-card .btn { width: 100%; justify-content: center; padding: 9px; font-size: 14px; margin-top: 4px; }
.login-card .status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); margin-bottom: 16px; }
.login-card .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.login-card .foot { margin-top: 18px; font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
.login-card .err { padding: 8px 12px; border-left: 3px solid var(--danger); background: rgba(182,72,59,.14); font-size: 13px;
    margin-bottom: 14px; text-align: left; }
.spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.25); border-top-color: var(--ink); border-radius: 50%;
    animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 16px; }
    .panel { position: static; }
    .log-row { flex-wrap: wrap; }
    .log-text { flex-basis: 100%; word-break: break-word; }
}
