/*
 * ToolsEkspressen: The Matrix's working grammar (rail left, section tag, white panels, pills) in Entreprenør
 * Ekspressen's identity from ekspressen.dk: deep navy, yellow as the signal colour, light grey ground, Roboto for
 * headings and Poppins for text. Bootstrap 5.3 underneath, re-skinned through the custom properties below.
 */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/roboto-latin-900-normal.woff2") format("woff2"); }

:root {
    --navy: #031046;
    --navy-deep: #020a2e;
    --navy-raised: #0d1d63;
    --navy-button: #001e60;
    --yellow: #eaaf00;
    --yellow-deep: #c99600;
    --yellow-ink: #8a6500;
    --yellow-wash: #fdf3d6;
    --yellow-tint: #fffaeb;
    --ground: #f4f4f4;
    --panel: #ffffff;
    --hairline: #e1e3ea;
    --hairline-strong: #c9cdd9;
    --ink: #101631;
    --ink-soft: #4a5068;
    --ink-faint: #6b7088;
    --on-navy: #ffffff;
    --on-navy-soft: #c3c8de;
    --on-navy-faint: #8f96b8;
    --ok: #17794a;
    --ok-wash: #e3f4ea;
    --warn: #8a5a00;
    --warn-wash: #fff3d6;
    --bad: #b42332;
    --bad-wash: #fbe7e9;
    --rail-width: 264px;
    --font-head: "Roboto", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Poppins", "Segoe UI", Arial, sans-serif;

    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--ground);
    --bs-link-color: var(--navy);
    --bs-link-color-rgb: 3, 16, 70;
    --bs-link-hover-color: var(--navy-raised);
    --bs-border-color: var(--hairline);
    --bs-focus-ring-color: rgba(234, 175, 0, .45);
}

html { font-size: 15px; }
body { font-family: var(--font-body); background: var(--ground); color: var(--ink); line-height: 1.5; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--navy-raised); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.meta { color: var(--ink-faint); font-size: .87rem; }
.small, small { font-size: .87rem; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.wordmark-mark { width: 30px; height: 30px; flex: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); text-transform: uppercase; }
.wordmark-text strong { font-weight: 900; font-size: 1.2rem; letter-spacing: .02em; color: #fff; }
.wordmark-text span { font-weight: 500; font-size: .72rem; letter-spacing: .32em; color: var(--yellow); margin-top: 3px; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page { flex: 1; padding: 0 40px 48px; }
.app-foot { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding: 16px 40px 24px; color: var(--ink-faint); font-size: .85rem; }
.app-foot a { color: var(--ink-soft); }

.rail { width: var(--rail-width); flex: none; background: var(--navy); color: var(--on-navy-soft); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 4px solid var(--yellow); scrollbar-width: none; }
/* The rail still scrolls, but without a visible scrollbar. (Kasper, 2026-11-05) */
.rail::-webkit-scrollbar { display: none; }
.rail-top { padding: 26px 28px 18px; }
.rail-brand { text-decoration: none; }
.rail-nav { list-style: none; margin: 0; padding: 8px 0 24px; flex: 1; }
.rail-group { padding: 18px 28px 6px; font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-faint); }
.rail-link { display: flex; align-items: center; gap: 12px; padding: 9px 28px; color: var(--on-navy-soft); text-decoration: none; font-weight: 500; border-left: 4px solid transparent; }
.rail-link i { width: 18px; text-align: center; color: var(--on-navy-faint); }
.rail-link .label { flex: 1; }
.rail-link:hover { color: #fff; background: var(--navy-raised); }
.rail-link:hover i { color: var(--yellow); }
.rail-link.active { color: #fff; background: var(--navy-deep); border-left-color: var(--yellow); }
.rail-link.active i { color: var(--yellow); }
.count-pill { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--yellow); color: var(--navy-deep); font-size: .75rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.count-pill.is-live { background: transparent; color: var(--yellow); }
.rail-user { display: flex; align-items: center; gap: 10px; padding: 14px 18px 14px 24px; background: var(--navy-deep); }
.rail-version { padding: 6px 24px 10px; background: var(--navy-deep); color: var(--on-navy-soft); font-size: .72rem; letter-spacing: .04em; }
.rail-user-me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--navy-deep); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: .85rem; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .role { font-size: .78rem; color: var(--on-navy-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout { background: none; border: 0; color: var(--on-navy-soft); width: 36px; height: 36px; border-radius: 50%; }
.logout:hover { color: var(--navy-deep); background: var(--yellow); }

.mobilebar { display: none; }

/* ---------- Page head: the yellow section tag ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 -40px 28px; padding-right: 40px; }
.section-tag { margin: 0; background: var(--yellow); color: var(--navy-deep); font-size: 1.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; padding: 30px 64px 16px 40px; clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-bottom: 6px; }
.page-lede { color: var(--ink-soft); max-width: 72ch; margin-bottom: 20px; }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--hairline); border-radius: 4px; box-shadow: 0 1px 2px rgba(3, 16, 70, .04); margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--hairline); }
.panel-head h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.panel-head .count { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--ink-faint); background: var(--ground); border-radius: 999px; padding: 1px 9px; }
.panel-body { padding: 24px; }
.panel-foot { padding: 14px 24px; border-top: 1px solid var(--hairline); background: var(--yellow-tint); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.panel > .table, .panel > .table-responsive > .table { margin: 0; }
.empty { text-align: center; padding: 48px 24px; color: var(--ink-soft); }
.empty .colon { width: 0; height: 0; margin: 0 auto 16px; border-left: 26px solid var(--yellow); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.empty h3 { font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; padding: .5rem 1.3rem; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn-sm { padding: .3rem .9rem; font-size: .87rem; }
.btn-primary { --bs-btn-bg: var(--yellow); --bs-btn-border-color: var(--yellow); --bs-btn-color: var(--navy-deep); --bs-btn-hover-bg: var(--navy-button); --bs-btn-hover-border-color: var(--navy-button); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--navy-deep); --bs-btn-active-border-color: var(--navy-deep); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--yellow); --bs-btn-disabled-border-color: var(--yellow); --bs-btn-disabled-color: var(--navy-deep); }
.btn-secondary { --bs-btn-bg: transparent; --bs-btn-border-color: var(--hairline-strong); --bs-btn-color: var(--navy); --bs-btn-hover-bg: var(--yellow-tint); --bs-btn-hover-border-color: var(--yellow); --bs-btn-hover-color: var(--navy); --bs-btn-active-bg: var(--yellow-wash); --bs-btn-active-border-color: var(--yellow); --bs-btn-active-color: var(--navy); }
.btn-danger, .btn.is-danger { --bs-btn-bg: transparent; --bs-btn-border-color: var(--bad); --bs-btn-color: var(--bad); --bs-btn-hover-bg: var(--bad); --bs-btn-hover-border-color: var(--bad); --bs-btn-hover-color: #fff; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; color: var(--ink-soft); background: transparent; border: 0; }
.btn-icon:hover { background: var(--yellow-wash); color: var(--navy); }
.btn-link-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; margin-bottom: 16px; }
.btn-link-back:hover { color: var(--navy); }

/* ---------- Forms ---------- */
.form-label, .field > label { font-weight: 600; color: var(--navy); font-size: .92rem; }
.form-control, .form-select { border-radius: 10px; border-color: var(--hairline-strong); padding: .58rem .9rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--yellow-deep); box-shadow: 0 0 0 .2rem rgba(234, 175, 0, .3); }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-text { color: var(--ink-faint); }
.field { margin-bottom: 18px; }
.form-section { margin-bottom: 24px; }
.form-section h3 { font-size: 1rem; }
.field-validation-error, .text-danger { color: var(--bad) !important; font-size: .87rem; }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--yellow-tint); margin-bottom: 0; }
.table > thead th { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 2px solid var(--navy); padding: 12px 16px; white-space: nowrap; background: var(--panel); }
.table > tbody td { padding: 12px 16px; vertical-align: middle; border-color: var(--hairline); }
.table > tbody tr:hover td { background: var(--yellow-tint); }
.row-title { font-weight: 600; color: var(--navy); }
a.row-title { text-decoration: none; }
a.row-title:hover { text-decoration: underline; }
tr.is-attention td { background: var(--bad-wash); }

/* ---------- Badges ---------- */
.badge { border-radius: 999px; font-weight: 600; padding: .3em .78em; font-size: .76rem; background: var(--ground); color: var(--ink-soft); }
.badge.is-ok { background: var(--ok-wash); color: var(--ok); }
.badge.is-bad { background: var(--bad-wash); color: var(--bad); }
.badge.is-warn { background: var(--warn-wash); color: var(--warn); }
.badge.is-role { background: var(--yellow-wash); color: var(--navy); }
.badge.is-admin { background: var(--navy); color: #fff; }
.badge.is-off { background: var(--ground); color: var(--ink-faint); }
.badge.is-live { background: var(--navy); color: var(--yellow); }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Flash ---------- */
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 4px; margin-bottom: 20px; border-left: 4px solid; }
.flash .msg { flex: 1; }
.flash.is-ok { background: var(--ok-wash); border-color: var(--ok); color: var(--ok); }
.flash.is-bad { background: var(--bad-wash); border-color: var(--bad); color: var(--bad); }
.flash.is-warn { background: var(--warn-wash); border-color: var(--yellow); color: var(--warn); }
.flash .btn-close { font-size: .7rem; margin-top: 4px; }
.flash.is-info { background: var(--yellow-wash); border-color: var(--navy); color: var(--navy); }

/* ---------- Toolbars, segmented filters, search, pager ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.segmented { display: inline-flex; max-width: 100%; overflow-x: auto; border: 1px solid var(--hairline-strong); border-radius: 999px; overflow: hidden; background: var(--panel); }
.segmented a, .segmented button { white-space: nowrap; padding: .42rem 1rem; color: var(--ink-soft); text-decoration: none; border: 0; background: none; font-weight: 500; }
.segmented a + a, .segmented button + button { border-left: 1px solid var(--hairline); }
.segmented a.active, .segmented button.active { background: var(--navy); color: #fff; }
.search { position: relative; flex: 1; max-width: 360px; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.search .form-control { padding-left: 38px; border-radius: 999px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 16px; }
.pager a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hairline-strong); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pager a:hover { background: var(--yellow-wash); border-color: var(--yellow); }

/* ---------- Stat tiles ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-tile { background: var(--panel); border: 1px solid var(--hairline); border-top: 4px solid var(--yellow); border-radius: 4px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
a.stat-tile:hover { border-top-color: var(--navy); }
.stat-label { font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.stat-value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.stat-sub { color: var(--ink-soft); font-size: .85rem; }

/* ---------- Facts (definition lists) ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--ink-faint); font-weight: 500; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Threads and timelines (feedback, ideas) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: flex; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--hairline); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-item.is-system { padding-top: 8px; padding-bottom: 8px; color: var(--ink-faint); font-size: .9rem; }
.timeline-item.is-response { background: var(--yellow-tint); border-left: 4px solid var(--yellow); }
.timeline-icon, .thread-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: .8rem; font-weight: 600; }
.timeline-item.is-system .timeline-icon { background: var(--ground); color: var(--ink-faint); width: 26px; height: 26px; }
.timeline-body { flex: 1; min-width: 0; }
.timeline-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.timeline-text { white-space: pre-line; overflow-wrap: anywhere; margin-top: 4px; }
.timeline-foot { margin-top: 6px; }
.reply-form { padding: 16px 24px; border-top: 1px solid var(--hairline); background: var(--yellow-tint); }
.reply-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* Type chips and choice tiles */
.type-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.type-chip { position: relative; }
.type-chip input { position: absolute; opacity: 0; }
.type-chip span { display: inline-flex; gap: 8px; align-items: center; padding: .42rem 1rem; border-radius: 999px; border: 1px solid var(--hairline-strong); cursor: pointer; }
.type-chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.type-chip input:focus-visible + span { outline: 3px solid var(--yellow); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--hairline-strong); border-radius: 10px; cursor: pointer; background: var(--panel); }
.choice:hover { border-color: var(--yellow); }
.choice:has(input:checked) { background: var(--yellow-tint); border-color: var(--yellow); }
.choice .form-check-input { margin-top: .25rem; flex: none; }
.choice-tag { font-size: .75rem; color: var(--ink-faint); }
.choice-until { margin-top: 6px; }

/* Ideas */
.idea-list { list-style: none; margin: 0; padding: 0; }
.idea-row { display: flex; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--hairline); }
.idea-row:last-child { border-bottom: 0; }
.idea-row-body { flex: 1; min-width: 0; }
.idea-row > .badge { align-self: center; flex: none; }
.idea-vote { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; width: 48px; }
.idea-vote-btn { background: none; border: 1px solid var(--hairline-strong); border-radius: 50%; width: 32px; height: 32px; color: var(--ink-soft); }
.idea-vote-btn:hover { border-color: var(--yellow); color: var(--navy); }
.idea-vote-btn.is-up { background: var(--ok-wash); border-color: var(--ok); color: var(--ok); }
.idea-vote-btn.is-down { background: var(--bad-wash); border-color: var(--bad); color: var(--bad); }
.idea-vote-score { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.idea-head { display: flex; gap: 16px; align-items: flex-start; }
.idea-response { border-left: 4px solid var(--yellow); background: var(--yellow-tint); padding: 14px 18px; margin: 16px 0; }

/* Who sees what */
.permission-matrix th, .permission-matrix td { text-align: center; }
.permission-matrix th:first-child, .permission-matrix td:first-child { text-align: left; }
.permission-module td { background: var(--ground) !important; font-family: var(--font-head); font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.is-menu-only { color: var(--ink-faint); }

/* Audit log */
.audit-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 20px; }
.audit-list { list-style: none; margin: 0; padding: 0; }
.audit-entry { padding: 12px 24px; border-bottom: 1px solid var(--hairline); }
.audit-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.audit-when { color: var(--ink-faint); font-size: .85rem; min-width: 130px; }
.audit-what { font-weight: 500; }
.audit-changes { margin: 6px 0 0 142px; font-size: .87rem; color: var(--ink-soft); }
.trace { background: var(--navy-deep); color: #e8eaf4; border-radius: 4px; padding: 12px 14px; font-size: .8rem; white-space: pre-wrap; overflow-x: auto; }

/* ---------- Image runs ---------- */
.run-log { background: var(--navy-deep); color: #e2e6f5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; line-height: 1.45; padding: 16px 18px; margin: 0; max-height: 70vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 0 0 4px 4px; }
.run-progress { display: flex; gap: 22px; flex-wrap: wrap; padding: 16px 24px; }
.run-progress div { display: flex; flex-direction: column; }
.run-progress strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); }
.thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--ground); }
.reasons { margin: 4px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: .87rem; }
.inline-date { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-date .form-control { max-width: 170px; }

/* ---------- Login ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-brand { background: var(--navy); color: var(--on-navy-soft); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-triangle { position: absolute; right: -90px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 320px solid var(--yellow); border-top: 190px solid transparent; border-bottom: 190px solid transparent; opacity: .95; }
.auth-brand .claim { position: relative; max-width: 26rem; }
.auth-brand h1 { color: #fff; font-size: 2.6rem; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--ground); }
.auth-card { background: var(--panel); border-top: 4px solid var(--yellow); padding: 36px; width: 100%; max-width: 420px; box-shadow: 0 6px 30px rgba(3, 16, 70, .08); }
.auth-card h2 { font-size: 1.5rem; }
.auth-card .btn { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .mobilebar { display: flex; align-items: center; justify-content: space-between; background: var(--navy); padding: 10px 16px; position: sticky; top: 0; z-index: 30; border-bottom: 3px solid var(--yellow); }
    .mobilebar a { text-decoration: none; }
    .mobilebar button { background: none; border: 0; color: #fff; font-size: 1.3rem; width: 40px; height: 40px; }
    .rail { position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; }
    .rail.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(2, 10, 46, .45); }
    .page { padding: 0 16px 32px; }
    .page-head { margin: 0 -16px 20px; padding-right: 16px; }
    .section-tag { font-size: 1.25rem; padding: 18px 44px 12px 16px; }
    .app-foot { padding: 16px; }
    .auth { grid-template-columns: 1fr; }
    .auth-brand { padding: 28px; min-height: 220px; }
    .auth-brand h1 { font-size: 1.8rem; }
    .audit-changes { margin-left: 0; }
    .table-stack thead { display: none; }
    .table-stack tbody tr { display: block; border-bottom: 1px solid var(--hairline); padding: 8px 0; }
    .table-stack tbody td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 16px; text-align: left !important; }
    .table-stack tbody td[data-label]::before { content: attr(data-label); color: var(--ink-faint); font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rail { transition: none; }
}

/* Billeder uden dato: a card per image. */
.pending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pending-card { display: flex; flex-direction: column; overflow: hidden; }
.pending-img { display: block; background: var(--ground); height: 170px; }
/* "Vælg til download": a big target above the image; a chosen card gets a yellow frame. (Kasper, 2026-11-04) */
.pick-download { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; font-weight: 600; cursor: pointer; background: var(--ground); }
.pick-download input { width: 24px; height: 24px; cursor: pointer; accent-color: var(--navy); }
.pending-card:has(.pick-download input:checked) { outline: 3px solid var(--yellow); }
.pending-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Usikre OCR: the whole image in full quality over the whole window while the mouse is over it. (Kasper, 2026-11-04) */
.image-preview { position: fixed; inset: 0; z-index: 1050; display: none; align-items: center; justify-content: center; background: rgba(2, 10, 46, .85); }
.image-preview.is-open { display: flex; }
.image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* Debug mode is on for the whole app (Kasper, 2026-11-04). */
.debug-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; margin-bottom: 20px; border-radius: 4px; background: var(--bad); color: #fff; }
.debug-bar a { color: #fff; font-weight: 600; text-decoration: underline; margin-left: auto; }
