/* ============================================================
   Groggel Spaceport — Bodenstation
   Instrumentenpanel: warmes Bakelit-Dunkel, Phosphor-Bernstein,
   Monospace-Readouts, Statuslampen.
   ============================================================ */

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/barlow-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/barlow-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/barlow-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/barlowcondensed-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/barlowcondensed-700.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/ibmplexmono-400.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/ibmplexmono-600.woff2') format('woff2');
}

:root {
    color-scheme: dark;
    --bg: #191510;
    --bg-deep: #120f0b;
    --panel: #211c15;
    --panel-2: #282217;
    --inset: #15110c;
    --line: #38301f;
    --line-strong: #4c4028;
    --text: #efe7d6;
    --muted: #a2967a;
    --faint: #6f6650;
    --amber: #f2a93b;
    --amber-bright: #ffc966;
    --amber-soft: rgba(242, 169, 59, .13);
    --green: #93ce7e;
    --green-soft: rgba(147, 206, 126, .12);
    --red: #e06a50;
    --red-soft: rgba(224, 106, 80, .12);
    --blue: #8fb4d1;
    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'Barlow', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --radius: 6px;
    --radius-sm: 4px;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Feine Panel-Textur: Rasterlinien, unbewegt */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(239, 231, 214, .022) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(239, 231, 214, .022) 0 1px, transparent 1px 44px);
}
.stars, .aurora { display: none; }

::selection { background: var(--amber); color: var(--bg-deep); }

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ---------- Grundgerüst ---------- */
.shell {
    position: relative;
    z-index: 1;
    width: min(1060px, 100%);
    margin: 0 auto;
    padding: 28px 22px 116px;
}
@media (min-width: 1020px) {
    body { padding-left: 84px; }
    .shell { padding-bottom: 56px; }
}

/* ---------- Stationskopf ---------- */
.station {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    box-shadow: inset 0 1px 0 rgba(239, 231, 214, .05), 0 10px 30px rgba(0, 0, 0, .3);
}
.plate {
    padding: 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--inset);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--amber);
    white-space: nowrap;
}
.station-id { flex: 1; min-width: 0; }
.station h1 {
    margin: 0;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.1;
    text-transform: uppercase;
}
.station-sub {
    margin: 1px 0 0;
    font-family: var(--display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}
.station-status {
    display: flex;
    align-items: center;
    gap: 14px;
}
.readout {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--amber);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ---------- Lampen ---------- */
.lamp {
    width: 9px;
    height: 9px;
    flex: none;
    border-radius: 50%;
    background: var(--faint);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5);
}
.lamp-on {
    background: var(--green);
    box-shadow: 0 0 8px rgba(147, 206, 126, .7);
}
.lamp-amber {
    background: var(--amber);
    box-shadow: 0 0 8px rgba(242, 169, 59, .7);
}
@media (prefers-reduced-motion: no-preference) {
    .lamp-on, .lamp-amber { animation: lamp-breathe 4s ease-in-out infinite; }
    @keyframes lamp-breathe {
        0%, 100% { opacity: 1; }
        50% { opacity: .55; }
    }
}

/* ---------- Typo-Utilities ---------- */
h1, h2, h3 { margin: 0; }
h2 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.kicker {
    margin: 0 0 6px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--amber);
}
.muted { color: var(--muted); }
.mono, code {
    font-family: var(--mono);
    font-size: .92em;
}
a { color: var(--blue); text-underline-offset: 3px; }

/* ---------- Instrumente (Panels) ---------- */
.window, .login-card, .download-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(239, 231, 214, .045), 0 14px 40px rgba(0, 0, 0, .32);
}
.window { padding: 18px 20px 22px; }

/* Gravierte Beschriftungsleiste mit Lampe */
.window-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px -6px 16px;
    padding: 0 6px 10px;
    border-bottom: 1px solid var(--line);
}
.window-bar strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}
.window-bar::after {
    content: "";
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

/* ---------- Formulare ---------- */
form { display: grid; gap: 15px; }
label {
    display: grid;
    gap: 6px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
label span {
    display: inline;
    font-family: var(--body);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--faint);
}
input, textarea, select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    background: var(--inset);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { padding: 10px 12px; resize: vertical; min-height: 70px; line-height: 1.45; }
input:focus, textarea:focus, select:focus {
    border-color: var(--amber);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35), 0 0 0 3px var(--amber-soft);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}
input[type="file"] { display: none; }

/* Dropzone */
.dropzone {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 26px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--inset);
    color: var(--muted);
    font-family: var(--body);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.is-over {
    border-color: var(--amber);
    background: var(--amber-soft);
    color: var(--text);
}
.dropzone .dz-file {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--amber);
    overflow-wrap: anywhere;
}
.dropzone .dz-hint { font-size: 13px; color: var(--faint); }

/* ---------- Knöpfe ---------- */
button, .ghost {
    min-height: 42px;
    border-radius: var(--radius-sm);
    padding: 0 18px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .06s ease;
}
button[type="submit"]:not(.danger):not(.ghost) {
    border: 1px solid var(--amber);
    background: linear-gradient(180deg, var(--amber-bright), var(--amber));
    color: #241a08;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(242, 169, 59, .18);
}
button[type="submit"]:not(.danger):not(.ghost):hover { filter: brightness(1.06); }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .7; filter: none; }
.ghost {
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
}
.ghost:hover { border-color: var(--amber); color: var(--amber-bright); }
.danger {
    min-height: 36px;
    border: 1px solid rgba(224, 106, 80, .45);
    background: transparent;
    color: var(--red);
}
.danger:hover { background: var(--red-soft); }
button.ghost, a.ghost { color: var(--text); }
button.danger { color: var(--red); }
.copy-link { min-height: 36px; font-size: 13px; }
.row-actions .ghost { min-height: 36px; font-size: 13px; }

/* ---------- Login ---------- */
.login-panel {
    min-height: 55vh;
    display: grid;
    place-items: center;
}
.login-card {
    width: min(400px, 100%);
    padding: 26px 26px 30px;
}
.login-card h2 { margin-bottom: 4px; }
.scanner { display: none; }

/* ---------- Desktop-Kacheln ---------- */
.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.desktop-tile {
    display: grid;
    gap: 2px;
    align-content: start;
    min-height: 138px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    box-shadow: inset 0 1px 0 rgba(239, 231, 214, .045);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.desktop-tile:hover {
    border-color: var(--amber);
    transform: translateY(-2px);
}
.tile-icon {
    width: 44px;
    height: 40px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--inset);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--amber);
}
.desktop-tile strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.desktop-tile em {
    font-style: normal;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Kennzahlen ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.stats article {
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--inset);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
}
.stats strong {
    display: block;
    font-family: var(--mono);
    font-size: 21px;
    font-weight: 600;
    color: var(--amber);
    font-variant-numeric: tabular-nums;
}
.stats span {
    font-family: var(--display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Listen (Dateien / Rechner / Projekte) ---------- */
.page-stage {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(260px, 380px);
    gap: 16px;
    align-items: start;
}
.stage-wide { grid-template-columns: minmax(300px, 1fr) minmax(280px, 390px); }
.manifest { min-width: 0; }
.overview-window { margin-top: 4px; }

.file-list { display: grid; gap: 10px; margin-top: 16px; }
.file-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    transition: border-color .15s ease;
}
.file-row:hover { border-color: var(--line-strong); }
.file-row strong {
    display: block;
    font-weight: 600;
    font-size: 16px;
    overflow-wrap: anywhere;
}
.file-row > div > span { display: block; color: var(--muted); font-size: 14px; }
.file-row > div:first-child > a {
    display: block;
    margin-top: 5px;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--blue);
    overflow-wrap: anywhere;
}
.file-meta {
    font-family: var(--mono);
    font-size: 12.5px !important;
    color: var(--faint) !important;
    margin-top: 3px;
}
.row-actions {
    display: grid;
    gap: 7px;
    justify-items: stretch;
    min-width: 128px;
}

/* Chips (Direkt / Passwort, Projektstatus) */
.chip, .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    vertical-align: 2px;
}
.chip::before, .badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--faint);
}
.chip-direkt { color: var(--green); border-color: rgba(147, 206, 126, .4); }
.chip-direkt::before { background: var(--green); }
.chip-passwort { color: var(--amber); border-color: rgba(242, 169, 59, .4); }
.chip-passwort::before { background: var(--amber); }
.badge { margin-left: 8px; }
.badge-aktiv { color: var(--green); border-color: rgba(147, 206, 126, .4); }
.badge-aktiv::before { background: var(--green); }
.badge-geplant { color: var(--blue); border-color: rgba(143, 180, 209, .4); }
.badge-geplant::before { background: var(--blue); }
.badge-pausiert { color: var(--amber); border-color: rgba(242, 169, 59, .4); }
.badge-pausiert::before { background: var(--amber); }
.badge-archiviert { color: var(--faint); }

/* RustDesk */
.machine-meta, .machine-notes { display: block; color: var(--muted); font-size: 14px; }
.machine-notes { margin-top: 3px; font-size: 13.5px; color: var(--faint); }
.rustdesk-id {
    display: inline-block;
    margin-top: 9px;
    padding: 5px 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--inset);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .22em;
    color: var(--amber);
}

/* Mini-Liste (letzte Dateien) */
.mini-list { display: grid; gap: 9px; }
.mini-list a {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--blue);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.mini-list a:hover { color: var(--amber-bright); text-decoration: underline; }

/* ---------- Status ---------- */
.status-lines { display: grid; gap: 9px; margin-top: 14px; }
.status-lines p {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--inset);
}
.status-lines span {
    font-family: var(--display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.status-lines strong {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 15px;
    color: var(--amber);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* ---------- Meldungen ---------- */
.alert, .ok {
    margin: 0 0 16px;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 15px;
}
.alert {
    color: #ffcfc2;
    background: var(--red-soft);
    border: 1px solid rgba(224, 106, 80, .4);
}
.ok {
    color: #d9f3cd;
    background: var(--green-soft);
    border: 1px solid rgba(147, 206, 126, .35);
}
.desktop-message { width: 100%; }
.login-card .alert { margin: 0; }

/* ---------- Upload-Meter ---------- */
.upload-meter {
    height: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--inset);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4);
}
.upload-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--amber), var(--amber-bright));
    transition: width .16s ease;
}
.upload-state {
    margin: 0;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
}
.uplink.is-uploading .upload-state { color: var(--amber); }

/* ---------- Download-Karte (öffentliche Seite) ---------- */
.download-card {
    width: min(480px, 100%);
    margin: 10vh auto 0;
    padding: 26px 26px 30px;
}
.download-card h1 {
    font-family: var(--body);
    font-weight: 600;
    font-size: 24px;
    overflow-wrap: anywhere;
    margin-bottom: 4px;
}
.download-card form { margin-top: 18px; }
.download-card .ghost { margin-top: 16px; }

/* ---------- Konsolen-Leiste (Navigation) ---------- */
.dock {
    position: fixed;
    z-index: 10;
    display: flex;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    box-shadow: 0 14px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(239, 231, 214, .05);
}
.dock a {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 6px 6px;
    min-width: 62px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}
.dock span {
    width: 38px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--inset);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45);
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    transition: color .15s ease, border-color .15s ease;
}
.dock em {
    font-family: var(--display);
    font-weight: 600;
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.dock a:hover { color: var(--text); }
.dock a:hover span { border-color: var(--line-strong); }
.dock a.active { color: var(--amber-bright); }
.dock a.active span {
    color: var(--amber);
    border-color: var(--amber);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45), 0 0 10px rgba(242, 169, 59, .25);
}
.dock a.active::before {
    content: "";
    position: absolute;
    top: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 7px rgba(242, 169, 59, .8);
}
@media (prefers-reduced-motion: no-preference) {
    .dock a.active::before { animation: lamp-breathe 4s ease-in-out infinite; }
}

/* Leiste links auf großen Screens, unten auf kleinen */
@media (min-width: 1020px) {
    .dock {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        border-left: 0;
        border-radius: 0 var(--radius) var(--radius) 0;
    }
}
@media (max-width: 1019.98px) {
    .dock {
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
        width: min(calc(100% - 16px), 460px);
        justify-content: space-around;
        border-radius: var(--radius);
    }
    .dock a { min-width: 0; flex: 1; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
    .shell { padding: 16px 12px 116px; }
    .desktop-tile {
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 14px;
        min-height: 0;
        padding: 12px 14px;
    }
    .tile-icon { margin-bottom: 0; grid-row: span 2; }
    .desktop-tile strong { font-size: 17px; }
    .desktop-tile em { font-size: 13px; }
    .station { flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; margin-bottom: 16px; }
    .station h1 { font-size: 21px; }
    .station-status { margin-left: auto; }
    .page-stage, .stage-wide, .file-row { grid-template-columns: 1fr; }
    .row-actions { grid-auto-flow: column; min-width: 0; }
    .window { padding: 15px 14px 18px; }
    .dock em { display: none; }
    .dock a { padding: 6px 4px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Sicherheit / 2FA ---------- */
.login-hint { margin: 0 0 4px; font-size: 14px; }
.login-card .ghost { margin-top: 2px; }
.readout-user {
    padding: 4px 9px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--inset);
    color: var(--text);
    letter-spacing: .12em;
}
.security-column { display: grid; gap: 16px; min-width: 0; }
.qr-box {
    width: min(240px, 100%);
    margin: 14px 0 10px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #f6f1e4;
    color: #241a08;
    font-size: 13px;
}
.qr-box svg { display: block; width: 100%; height: auto; }
.totp-secret {
    margin: 0 0 14px;
    padding: 9px 12px;
    display: inline-block;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--inset);
    color: var(--amber);
    letter-spacing: .14em;
    overflow-wrap: anywhere;
}
.backup-window { margin-bottom: 16px; }
.backup-codes {
    margin: 12px 0 4px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}
.backup-codes code {
    display: block;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--inset);
    color: var(--amber);
    font-size: 15px;
    letter-spacing: .12em;
    text-align: center;
}
.lamp-red {
    background: var(--red);
    box-shadow: 0 0 8px rgba(224, 106, 80, .7);
}
.login-log { display: grid; gap: 8px; }
.login-log-row {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--inset);
    font-size: 13px;
}
.login-log-row .mono { font-size: 12.5px; }
