/* GF Indcheck – roligt, mobil-først, ingen eksterne ressourcer. */

:root {
  --bg: #f4f1ec;
  --surface: #fffdf9;
  --surface-2: #ebe6de;
  --text: #1c1a17;
  --muted: #5b554c;
  --line: #d8d0c4;
  --line-strong: #b9b0a2;
  --accent: #1d6b43;
  --accent-hover: #175a38;
  --accent-ink: #ffffff;
  --accent-soft: #e0eee5;
  --accent-text: #155332;
  --warn-bg: #fcefc0;
  --warn-line: #d9b43e;
  --warn-ink: #4f3b00;
  --danger: #b3261e;
  --danger-soft: #fbe4e1;
  --danger-ink: #8a1c16;
  --info-bg: #e6edf5;
  --info-ink: #1f3b5c;
  --focus: #1a5fb4;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 4px 16px rgba(40, 30, 10, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #211f1c;
    --surface-2: #2c2a26;
    --text: #f2eee7;
    --muted: #b8b0a4;
    --line: #3a3732;
    --line-strong: #59544c;
    --accent: #4fbf84;
    --accent-hover: #63cc94;
    --accent-ink: #0b1d13;
    --accent-soft: #1b3226;
    --accent-text: #7fd8a7;
    --warn-bg: #3b3113;
    --warn-line: #8a7224;
    --warn-ink: #f7dd8a;
    --danger: #ff8a7f;
    --danger-soft: #3c1e1b;
    --danger-ink: #ffb4ab;
    --info-bg: #1d2a38;
    --info-ink: #b8d3f0;
    --focus: #8ab4f8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.45 var(--font);
  overflow-x: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 .75em; }
a { color: var(--accent-text); }
b, strong { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.optional { font-weight: 400; color: var(--muted); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: calc(8px + var(--safe-top)); }

/* ---------- Views ---------- */
.view:not(.is-active) { display: none !important; }
.view-center {
  display: flex; align-items: flex-start; justify-content: center;
  padding: calc(48px + var(--safe-top)) 16px calc(32px + var(--safe-bottom));
}
.loading { color: var(--muted); }

/* ---------- Testbjælke ---------- */
.testbar {
  position: sticky; top: 0; z-index: 30;
  background: #f5c518; color: #2b2200;
  font-weight: 800; letter-spacing: .02em; text-align: center;
  height: calc(38px + var(--safe-top));
  padding: calc(6px + var(--safe-top)) 12px 6px;
  font-size: 16px; line-height: 24px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 2px solid #b08900;
}
@media (max-width: 360px) { .testbar { font-size: 14px; letter-spacing: 0; } }
body.is-test .topbar, body.is-test .admin-top { top: calc(38px + var(--safe-top)); }

/* ---------- Kort, felter, knapper ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.login-card { width: 100%; max-width: 420px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--accent-text); margin-bottom: 18px; }
.brand-mark { width: 32px; height: 32px; color: var(--accent); flex: none; }
.login-title { font-size: 28px; }
.login-event { margin-top: -4px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 650; font-size: 16px; }
.field-hint { color: var(--muted); font-size: 16px; }
.field-row { display: flex; gap: 8px; align-items: stretch; }
.field-row > input { flex: 1; min-width: 0; }

input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
input[type="search"], input[type="date"], input[type="number"], select, textarea {
  font: inherit;
  font-size: 17px; /* ≥16 px så iOS ikke zoomer */
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: 50px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
input::placeholder { color: var(--muted); opacity: .85; }

.btn {
  font: inherit; font-weight: 700; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background: var(--surface-2); color: var(--text);
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { min-height: 54px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn-danger { background: var(--danger); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-danger { color: #2a0b08; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn-link {
  font: inherit; font-size: 16px; font-weight: 600;
  background: none; border: 0; color: var(--text);
  min-height: 44px; min-width: 44px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
  cursor: pointer; border-radius: 8px;
}

.notice { border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid var(--line); }
.notice p:last-child { margin-bottom: 0; }
.notice-info { background: var(--info-bg); color: var(--info-ink); border-color: transparent; }
.notice-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.notice-ok { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.form-error {
  background: var(--danger-soft); color: var(--danger-ink);
  border-left: 4px solid var(--danger);
  border-radius: 6px; padding: 10px 12px; margin: 0; font-weight: 600;
}
.form-error::before { content: "✕ "; }

/* ---------- Check-in: topbjælke ---------- */
.view-checkin { min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + var(--safe-top)) 14px 12px;
}
body.is-test .topbar { padding-top: 10px; }
.topbar-row { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.topbar-meta { margin-top: 2px; font-size: 16px; color: var(--muted); }
.topbar-meta .btn-link { color: var(--muted); }
.spacer { flex: 1; }
.device { font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.counter { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.counter-main { font-size: 34px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.counter-main b { color: var(--accent-text); }
.counter-sep { color: var(--muted); font-weight: 400; }
.counter-label { font-size: 16px; color: var(--muted); }
.counter-label b { color: var(--text); font-variant-numeric: tabular-nums; }

.netstatus {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 700;
  padding: 6px 11px; border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--line);
}
.netstatus .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.netstatus.is-online { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.netstatus.is-offline { color: #fff; background: var(--danger); border-color: transparent; }
@media (prefers-color-scheme: dark) { .netstatus.is-offline { color: #2a0b08; } }
.netstatus.is-offline .dot { animation: pulse 1.4s ease-in-out infinite; }

.searchbar { max-width: 760px; margin: 10px auto 0; }
.search-wrap { position: relative; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-52%);
  font-size: 24px; color: var(--muted); pointer-events: none;
}
.search-wrap input[type="search"] {
  padding-left: 44px; padding-right: 54px;
  min-height: 56px; font-size: 19px; font-weight: 600;
  border-radius: 14px;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 20px; cursor: pointer;
}
.search-clear:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Check-in: indhold ---------- */
.content {
  max-width: 760px; margin: 0 auto;
  padding: 12px 14px calc(40px + var(--safe-bottom));
}
.hint { color: var(--muted); margin: 8px 2px; }
.hint-warn { color: var(--warn-ink); background: var(--warn-bg); padding: 8px 12px; border-radius: 8px; }
.no-hits { font-weight: 650; margin: 12px 2px; }

.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px;
  padding: 10px 10px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: default;
}
.row-out { cursor: pointer; }
.row-out:hover { border-color: var(--line-strong); }
.row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.row-in { border-left-color: var(--accent); background: var(--accent-soft); }
.row-saving { border-left-color: var(--line-strong); }
.row-pending { border-left-color: var(--warn-line); background: var(--warn-bg); }
.row.is-removed:not(.row-in) .row-name { color: var(--muted); }

.row-main { flex: 1; min-width: 0; }
.row-name { font-weight: 750; font-size: 18px; overflow-wrap: anywhere; }
.row-sub { color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tag {
  display: inline-block; font-size: 14px; font-weight: 700; line-height: 1.3;
  padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-strong);
  color: var(--text); background: var(--surface-2);
}
.tag-guest { background: var(--info-bg); color: var(--info-ink); border-color: transparent; }
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.tag-muted { color: var(--muted); }
.tag-test { background: #f5c518; color: #2b2200; border-color: transparent; }
.recent-name .tag { margin-left: 6px; font-size: 13px; }

.row-msg { margin-top: 6px; font-size: 16px; font-weight: 650; border-radius: 6px; padding: 5px 9px; }
.msg-already { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.msg-error { background: var(--danger-soft); color: var(--danger-ink); }
.msg-pending { color: var(--warn-ink); padding-left: 0; }

.row-action { flex: none; display: flex; align-items: center; }
.btn-checkin {
  background: var(--accent); color: var(--accent-ink);
  min-height: 52px; min-width: 112px; font-size: 18px; border-radius: 12px;
}
.btn-checkin:hover { background: var(--accent-hover); }
.row-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.status-in {
  font-weight: 800; color: var(--accent-text); font-size: 17px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.btn-undo {
  font: inherit; font-size: 15px; font-weight: 650;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer;
}
.btn-undo:hover { border-color: var(--text); }
.status-saving, .status-pending {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; min-height: 52px; padding: 0 6px; white-space: nowrap;
}
.status-saving { color: var(--muted); }
.status-pending { color: var(--warn-ink); }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}

@media (max-width: 340px) {
  .row { flex-wrap: wrap; }
  .row-action { width: 100%; justify-content: flex-end; }
  .btn-checkin { width: 100%; }
  .counter-main { font-size: 30px; }
}

/* ---------- Afventer ---------- */
.pending {
  background: var(--warn-bg); border: 2px solid var(--warn-line); color: var(--warn-ink);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px;
}
.pending-title { font-size: 17px; margin-bottom: 8px; }
.pending-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pending-item { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.pending-icon { font-size: 22px; flex: none; }
.pending-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pending-name { font-weight: 750; overflow-wrap: anywhere; }
.pending-sub { font-size: 15px; }
.pending-state { font-weight: 800; font-size: 15px; }

/* ---------- Gæst ---------- */
.guest { margin-top: 16px; }
.guest.is-prominent #guest-toggle { border-color: var(--accent); color: var(--accent-text); }
.guest-form { margin-top: 0; }
.section-title { font-size: 20px; }
.guest-existing .results { margin-top: 8px; }

/* ---------- Seneste ---------- */
.recent {
  margin-top: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.recent > summary {
  cursor: pointer; list-style: none;
  min-height: 52px; padding: 12px 16px;
  font-weight: 750; display: flex; align-items: center; gap: 10px;
}
.recent > summary::-webkit-details-marker { display: none; }
.recent > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; display: inline-block; }
.recent[open] > summary::before { transform: rotate(90deg); }
.recent > .muted { padding: 0 16px 14px; margin: 0; }
.recent-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.recent-item {
  display: grid; grid-template-columns: 3.4em 1fr auto; gap: 10px; align-items: baseline;
  padding: 9px 8px; border-top: 1px solid var(--line);
}
.recent-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.recent-name { overflow-wrap: anywhere; }
.recent-device { color: var(--muted); font-size: 15px; text-align: right; }
.recent-item.is-undone .recent-time,
.recent-item.is-undone .recent-name { text-decoration: line-through; color: var(--muted); }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 60;
  left: 50%; transform: translateX(-50%);
  bottom: calc(16px + var(--safe-bottom));
  width: min(560px, calc(100% - 24px));
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 16px; border-radius: 12px;
  font-weight: 650; box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  background: #2a2723; color: #fff;
  animation: toast-in .18s ease-out;
}
.toast-ok { background: var(--accent); color: var(--accent-ink); }
.toast-ok::before { content: "✓ "; }
.toast-warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.toast-warn::before { content: "⚠ "; }
.toast-error { background: var(--danger); color: #fff; }
.toast-error::before { content: "✕ "; }
@media (prefers-color-scheme: dark) {
  .toast { background: #efebe4; color: #1c1a17; }
  .toast-error { color: #2a0b08; }
}
.toast-out { opacity: 0; transition: opacity .2s; }

/* ---------- Admin ---------- */
.admin-shell { max-width: 1040px; margin: 0 auto; padding: 0 14px calc(40px + var(--safe-bottom)); }
.admin-top {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + var(--safe-top)) 14px 0;
}
body.is-test .admin-top { padding-top: 10px; }
.admin-top-inner { max-width: 1040px; margin: 0 auto; }
.admin-title { font-size: 16px; color: var(--muted); font-weight: 650; margin: 0; }
.tabs {
  display: flex; gap: 4px; overflow-x: auto; margin-top: 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font: inherit; font-weight: 700; font-size: 16px;
  min-height: 48px; padding: 0 16px; flex: none;
  background: transparent; color: var(--muted);
  border: 0; border-bottom: 3px solid transparent; cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab:hover { color: var(--text); }
.panel { padding-top: 18px; }
.panel:not(.is-active) { display: none; }
.panel > h2 { font-size: 22px; }
.panel h3 { font-size: 18px; margin-top: 26px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface); padding: 24px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-file { font-weight: 700; overflow-wrap: anywhere; }
.file-input { max-width: 100%; font: inherit; font-size: 16px; }
.file-input::file-selector-button {
  font: inherit; font-weight: 700; min-height: 44px; padding: 0 14px; margin-right: 10px;
  border-radius: 8px; border: 2px solid var(--line-strong); background: var(--surface-2); color: var(--text); cursor: pointer;
}

.summary {
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 18px; font-weight: 650;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
}
.summary .is-bad { color: var(--danger-ink); }
.summary .is-warn { color: var(--warn-ink); }

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  max-width: 100%;
}
.table-wrap.is-tall { max-height: 60vh; overflow-y: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: var(--surface-2); font-weight: 750; white-space: nowrap; z-index: 1; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; }
tr.is-error td { background: var(--danger-soft); color: var(--danger-ink); }
tr.is-warn td { background: var(--warn-bg); color: var(--warn-ink); }
tr.is-revoked td { color: var(--muted); }
.cell-status { font-weight: 700; white-space: nowrap; }
.details { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 14px; }

.export-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .export-grid { grid-template-columns: 1fr 1fr; } }
.btn-export { min-height: 72px; font-size: 19px; flex-direction: column; gap: 2px; }
.btn-export small { font-weight: 500; font-size: 15px; opacity: .85; }

.setting { padding: 16px; }
.setting + .setting { margin-top: 14px; }
.setting h3 { margin-top: 0; }
.switch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.state-pill {
  display: inline-block; font-weight: 800; font-size: 15px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
}
.state-pill.is-on { background: #f5c518; color: #2b2200; }
.danger-zone { border: 2px solid var(--danger); background: var(--danger-soft); }
.danger-zone h3 { color: var(--danger-ink); }
.danger-zone p { color: var(--text); }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.filter-row .field { flex: 1; min-width: 200px; max-width: 360px; }
.btn-small { min-height: 44px; font-size: 16px; padding: 6px 12px; }

/* ---------- Setup ---------- */
.setup-card { width: 100%; max-width: 480px; }
.code-toggle { flex: none; }

/* ---------- Animationer ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .spinner { animation: none; border-top-color: var(--line-strong); }
}

@media (forced-colors: active) {
  .row, .btn, .netstatus, .tag { border: 1px solid CanvasText; }
}

hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
