/* jegtager – ThraneUI (Papir / Signal / Instrument), lys og mørk */

@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ---------- Tokens ---------- */

:root {
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-7: 28px; --space-10: 40px;
}

:root[data-theme="signal"] {
  --ground: #ffffff; --surface: #f6f7f9; --surface-2: #eef0f3; --line: #e2e5ea;
  --ink: #0e1116; --ink-2: #3a4250; --muted: #6b7380;
  --accent: #ff5a1f; --accent-ink: #c2410c; --on-accent: #0e1116;
  --st-transit: #0b6e99; --st-attention: #a85500; --st-done: #15803d; --st-problem: #c62828; --st-ready: #6a46c8;
  --font-text: Inter, system-ui, -apple-system, sans-serif;
  --font-display: Inter, system-ui, -apple-system, sans-serif;
  --font-label: var(--mono); --label-case: uppercase; --label-track: 0.12em; --label-size: 11px; --label-weight: 500;
  --display-size: clamp(34px, 9vw, 44px); --display-weight: 800; --display-track: -0.035em;
  --r-btn: 6px; --r-card: 0px; --r-panel: 6px;
  --item-bg: transparent; --item-border: 0; --item-shadow: none; --item-gap: 0; --item-pad: 16px 0; --item-sep: 1px solid var(--line);
}
:root[data-theme="papir"] {
  --ground: #f3efe6; --surface: #fffdf8; --surface-2: #e6dfd1; --line: #ddd6c8;
  --ink: #1d1b17; --ink-2: #3a352d; --muted: #6b655a;
  --accent: #1f6b4f; --accent-ink: #1f6b4f; --on-accent: #f3efe6;
  --st-transit: #1d4f73; --st-attention: #7a4a00; --st-done: #1f6b4f; --st-problem: #a3261b; --st-ready: #4b2f9a;
  --font-text: Figtree, system-ui, sans-serif;
  --font-display: Archivo, system-ui, sans-serif;
  --font-label: Figtree, system-ui, sans-serif; --label-case: none; --label-track: 0; --label-size: 13px; --label-weight: 600;
  --display-size: clamp(36px, 10vw, 46px); --display-weight: 800; --display-track: -0.035em;
  --r-btn: 12px; --r-card: 18px; --r-panel: 22px;
  --item-bg: var(--surface); --item-border: 0; --item-shadow: 0 1px 2px rgba(60, 45, 20, .06), 0 6px 18px rgba(60, 45, 20, .06); --item-gap: 12px; --item-pad: 18px 20px; --item-sep: 0;
}
:root[data-theme="instrument"] {
  --ground: #ecebe5; --surface: #f5f4ef; --surface-2: #e0dfd8; --line: #c9c8c0;
  --ink: #1a1b18; --ink-2: #3d3f3a; --muted: #5f625b;
  --accent: #3f6400; --accent-ink: #3f6400; --on-accent: #ecebe5;
  --st-transit: #0b6e99; --st-attention: #a85500; --st-done: #3f6400; --st-problem: #b3261e; --st-ready: #6a46c8;
  --font-text: var(--mono); --font-display: var(--mono);
  --font-label: var(--mono); --label-case: uppercase; --label-track: 0.14em; --label-size: 10px; --label-weight: 500;
  --display-size: clamp(26px, 7vw, 34px); --display-weight: 800; --display-track: -0.02em;
  --r-btn: 0px; --r-card: 0px; --r-panel: 0px;
  --item-bg: transparent; --item-border: 0; --item-shadow: none; --item-gap: 0; --item-pad: 12px 0; --item-sep: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="signal"] {
    --ground: #0b0d11; --surface: #14181e; --surface-2: #1b1f27; --line: #232833;
    --ink: #f2f4f7; --ink-2: #c3c9d3; --muted: #8b94a3;
    --accent: #ff6a32; --accent-ink: #ff8452; --on-accent: #0b0d11;
    --st-transit: #5ad1ff; --st-attention: #ffb44d; --st-done: #3ddc84; --st-problem: #ff6b6b; --st-ready: #b89cff;
  }
  :root[data-theme="papir"] {
    --ground: #1c1814; --surface: #27221c; --surface-2: #3a3229; --line: #3a3229;
    --ink: #f3efe6; --ink-2: #d8d2c4; --muted: #b3aa99;
    --accent: #7fd3a8; --accent-ink: #7fd3a8; --on-accent: #13342a;
    --st-transit: #b9ddf5; --st-attention: #ffd89a; --st-done: #7fd3a8; --st-problem: #ff9a8a; --st-ready: #d6c8ff;
    --item-shadow: none;
  }
  :root[data-theme="instrument"] {
    --ground: #121312; --surface: #1a1c19; --surface-2: #0b0c0b; --line: #2a2c29;
    --ink: #e8e8e3; --ink-2: #c4c6bf; --muted: #8f928b;
    --accent: #c6f24e; --accent-ink: #c6f24e; --on-accent: #121312;
    --st-transit: #5ad1ff; --st-attention: #ffb44d; --st-done: #c6f24e; --st-problem: #ff6b6b; --st-ready: #b89cff;
  }
}

/* ---------- Grundlag ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--ground); color: var(--ink-2);
  font: 400 16px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.page { max-width: 640px; margin: 0 auto; padding: 0 16px calc(32px + env(safe-area-inset-bottom)); }
.page-wide { max-width: 960px; }
.main { display: flex; flex-direction: column; gap: var(--space-7); }

.label {
  font-family: var(--font-label); font-size: var(--label-size); font-weight: var(--label-weight);
  text-transform: var(--label-case); letter-spacing: var(--label-track); color: var(--muted); line-height: 1.4;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Wordmark: ■ jegtager */
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.wordmark-mark { width: 8px; height: 8px; background: var(--accent); flex: none; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 8px; flex-wrap: wrap; }
.topbar-home { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.topbar-tag { padding-top: 2px; }
.topnav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topnav form { display: inline; }
.foot { text-align: center; padding-top: 48px; }

/* ---------- Typografi ---------- */

.display { font-family: var(--font-display); font-size: var(--display-size); line-height: 1.02; font-weight: var(--display-weight); letter-spacing: var(--display-track); color: var(--ink); text-wrap: balance; }
.title { font-family: var(--font-display); font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.section-title { font-family: var(--font-display); font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: var(--space-3); }
.lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.hero { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.hero-meta { color: var(--accent-ink); }

/* ---------- Knapper og links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: var(--r-btn);
  background: var(--accent); color: var(--on-accent);
  font: 600 15px/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { filter: brightness(1.06); }
.btn-sec { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-sec:hover { border-color: var(--ink); filter: none; }
:root[data-theme="instrument"] .btn { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; }
:root[data-theme="instrument"] .btn::before { content: "["; }
:root[data-theme="instrument"] .btn::after { content: "]"; }
details > summary.btn { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
summary { cursor: pointer; }

.link {
  background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer;
}
.link-danger { color: var(--st-problem); }
details > summary.link { list-style: none; display: inline; }

/* ---------- Formularer ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; color: var(--ink); }
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--surface); color: var(--ink); font: 400 16px/1.35 var(--font-text); appearance: none; -webkit-appearance: none;
}
select { 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: 32px; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-inline { display: flex; gap: 8px; align-items: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; align-items: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.error { color: var(--st-problem); font-weight: 600; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Statusbjælke (fire segmenter) ---------- */

.statusbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.statusbar .seg { height: 8px; background: var(--surface-2); border-radius: calc(var(--r-btn) / 3); }
.statusbar .seg.on { background: var(--accent); }

/* ---------- Gæsteside ---------- */

.guest { display: flex; flex-direction: column; gap: var(--space-7); }
.summary { display: flex; flex-direction: column; gap: 10px; }
.summary-word { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.summary-word.is-done { color: var(--st-done); }
.summary-counts { display: flex; gap: 16px; flex-wrap: wrap; }

.identity-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn); }
.identity-name { color: var(--ink); margin-right: auto; }
.identity-edit[open] { flex-basis: 100%; order: 3; }
.identity-edit[open] .form-inline { margin-top: 10px; }
.identity-hint { font-size: 15px; }

.notice { padding: 12px 16px; border-left: 3px solid var(--st-attention); background: var(--surface); color: var(--ink); border-radius: 0; }

.items { display: flex; flex-direction: column; gap: var(--space-7); }
.group { display: flex; flex-direction: column; gap: 10px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
:root[data-theme="papir"] .group-head { border-bottom: 0; padding-bottom: 0; }
:root[data-theme="papir"] .group-name { font-family: Archivo, sans-serif; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.group-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.group-list { display: flex; flex-direction: column; gap: var(--item-gap); }

.item {
  display: flex; flex-direction: column; gap: 10px; padding: var(--item-pad);
  background: var(--item-bg); border-radius: var(--r-card); box-shadow: var(--item-shadow); border-bottom: var(--item-sep);
  scroll-margin-top: 16px;
}
.group-list .item:last-child { border-bottom: 0; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.item-title { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
:root[data-theme="instrument"] .item-title { font-size: 14px; }
.item-status { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; padding-top: 2px; }
.item-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
:root[data-theme="instrument"] .dot { border-radius: 0; }
.state-partial .dot { background: var(--st-transit); }
.state-partial .status-word { color: var(--st-transit); }
.state-done .dot { background: var(--st-done); }
.state-done .status-word { color: var(--st-done); }
.state-done .item-title { color: var(--ink-2); }
.item-hint { font-size: 14px; color: var(--muted); margin-top: -4px; }

.slots { display: flex; gap: 4px; }
.slot { width: 18px; height: 6px; background: var(--surface-2); border-radius: 2px; }
.slot.on { background: var(--st-transit); }
.state-done .slot.on { background: var(--st-done); }

.claims { display: flex; flex-direction: column; gap: 6px; }
.claim { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.claim-who { font-weight: 700; color: var(--ink); }
.claim-note { color: var(--muted); }
.claim-note::before { content: "– "; }
.claim.is-mine .claim-who { color: var(--accent-ink); }
.claim-undo { display: inline; margin-left: auto; }

.take > summary { align-self: flex-start; }
.take { display: flex; flex-direction: column; }
.take[open] > summary { background: transparent; color: var(--ink); border-color: var(--line); }
.take[open] .form-stack { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.item.is-mine { box-shadow: var(--item-shadow), inset 3px 0 0 var(--accent); }
:root[data-theme="signal"] .item.is-mine, :root[data-theme="instrument"] .item.is-mine { box-shadow: inset 2px 0 0 var(--accent); padding-left: 14px; }

.add-own { padding: 4px 0; }
.add-own[open] .form-stack { margin-top: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }

.empty { color: var(--muted); padding: 8px 0; }

/* Beskeder */
.toast { padding: 12px 16px; border-radius: var(--r-btn); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.toast::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--st-done); margin-right: 10px; vertical-align: 1px; }
.toast-error::before { background: var(--st-problem); }
.toast-live {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: var(--r-btn);
  background: var(--ink); color: var(--ground); font-weight: 600; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10;
}
.toast-live.show { opacity: 1; }
.toast-live.is-error { background: var(--st-problem); color: #fff; }

/* ---------- Admin ---------- */

.auth { max-width: 420px; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 12px; }
.admin-head .label { margin-bottom: 6px; }
.admin-head .link { font-size: inherit; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event-card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); color: var(--ink-2);
}
.event-card:hover { border-color: var(--ink); }
.event-card-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.event-card-stats { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.tag { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); }
.tag-done { color: var(--st-done); border-color: currentColor; }

.panel { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.panel-quiet { background: transparent; }
.overview { gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--mono); font-size: 34px; font-weight: 800; line-height: 1; color: var(--ink); }
.accent-num { color: var(--accent-ink); }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } }

.jump { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--ground); }
.jump a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-btn); color: var(--ink-2); }
.jump a:hover { border-color: var(--ink); color: var(--ink); }

.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: var(--mono); font-size: 13px; }
[data-copy] { min-width: 96px; }

.admin-group { padding-top: 10px; }
.admin-items { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.admin-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.admin-item-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.admin-item-line { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.admin-item-title { font-weight: 700; color: var(--ink); }
.admin-item-tools { display: flex; gap: 4px; align-items: flex-start; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--ground); color: var(--ink); font-size: 15px; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.admin-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 8px; }
.admin-group-head .admin-group { padding-top: 0; font-size: 12px; color: var(--ink); }
.admin-group-n { color: var(--muted); margin-left: 6px; }
.admin-group-tools { display: flex; gap: 4px; align-items: center; position: relative; }
.group-edit > summary { margin-left: 8px; }
.group-edit-pop { position: absolute; right: 0; top: 44px; z-index: 6; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 14px; width: 300px; max-width: calc(100vw - 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.admin-empty { padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.add-group { margin-top: 12px; flex-wrap: wrap; }
.add-group input { flex: 1; min-width: 140px; }
.is-busy { opacity: .6; pointer-events: none; }
.admin-edit { grid-column: 1 / -1; }
.admin-edit[open] > .form-grid { margin-top: 12px; padding: 16px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-btn); }
.admin-edit[open] > form:last-child { margin-top: 10px; }
.added-by { color: var(--st-transit); }
.add-item { margin-top: 8px; padding: 16px; background: var(--ground); border: 1px dashed var(--line); border-radius: var(--r-btn); }
.slots-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.slots-row .check { align-items: center; }
.slots-num { width: 84px !important; }
.slots-pick .muted { margin-top: 6px; }

.guest-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.guest-row { display: grid; grid-template-columns: minmax(80px, 1fr) auto minmax(0, 2fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.guest-row-self { grid-template-columns: minmax(80px, 1fr) auto auto; }
.guest-name { font-weight: 700; color: var(--ink); }
.guest-link { font-family: var(--mono); font-size: 12px !important; min-height: 36px !important; padding: 6px 8px !important; }
.guest-row .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
@media (max-width: 640px) {
  .guest-row { grid-template-columns: 1fr auto; }
  .guest-row .guest-link { grid-column: 1 / -1; }
}

.by-guest { display: flex; flex-direction: column; }
.by-guest-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.by-guest-row dt { font-weight: 700; color: var(--ink); }

.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.themes legend { margin-bottom: 8px; }
.theme-pick { position: relative; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.theme-pick input { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatch { display: flex; align-items: center; justify-content: center; height: 64px; border: 2px solid var(--line); border-radius: var(--r-btn); }
.theme-pick input:checked + .theme-swatch { border-color: var(--accent); }
.theme-pick input:focus-visible + .theme-swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-name { font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; }
.theme-pick .wordmark { font-size: 15px; }
.theme-pick[data-theme="papir"] .theme-swatch { background: #f3efe6; }
.theme-pick[data-theme="papir"] .wordmark { font-family: Archivo, sans-serif; color: #1d1b17; }
.theme-pick[data-theme="papir"] .wordmark-mark { background: #1f6b4f; }
.theme-pick[data-theme="signal"] .theme-swatch { background: #ffffff; }
.theme-pick[data-theme="signal"] .wordmark { font-family: Inter, sans-serif; color: #0e1116; }
.theme-pick[data-theme="signal"] .wordmark-mark { background: #ff5a1f; }
.theme-pick[data-theme="instrument"] .theme-swatch { background: #121312; }
.theme-pick[data-theme="instrument"] .wordmark { font-family: var(--mono); color: #e8e8e3; }
.theme-pick[data-theme="instrument"] .wordmark-mark { background: #c6f24e; }
@media (max-width: 420px) { .themes { grid-template-columns: 1fr; } }

.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast-live { transition: none; } }

/* Blanke pladser (gæsten skriver selv) */
.claims-free { gap: 8px; }
.claims-free .claim { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--ground); align-items: center; }
:root[data-theme="papir"] .claims-free .claim { background: var(--ground); border-color: transparent; }
.claim-what { font-weight: 700; color: var(--ink); }
.claim-by { color: var(--muted); font-size: 14px; }
.claim-by::before { content: "· "; }
.claims-free .claim.is-mine .claim-what { color: var(--accent-ink); }
.claim-blank { border-style: dashed !important; background: transparent !important; border-color: var(--line) !important; color: var(--muted); font-size: 14px; }
.tag-free { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--st-transit); border-color: currentColor; margin-left: 6px; vertical-align: 2px; }

/* Træk og slip i admin */
.admin-item { grid-template-columns: auto 1fr auto; }
.admin-edit { grid-column: 2 / -1; }
.drag-handle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 36px; color: var(--muted); font-size: 18px; line-height: 1; cursor: grab; user-select: none; touch-action: none; border-radius: var(--r-btn); }
.drag-handle:hover { color: var(--ink); background: var(--ground); }
.drag-handle:active { cursor: grabbing; }
.admin-group-head { justify-content: flex-start; }
.admin-group-head .admin-group-tools { margin-left: auto; }
.drag-ghost { opacity: .35; background: var(--surface-2); }
.drag-chosen { background: var(--surface); }
.admin-groups .admin-items { min-height: 44px; }
.drag-tip { margin-top: -6px; }
.drag-handle-demo { font-size: 15px; color: var(--ink); }

/* Gaveven */
.gift { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--surface); border-radius: var(--r-panel); border: 1px solid var(--line); }
:root[data-theme="papir"] .gift { border: 0; box-shadow: var(--item-shadow); }
.gift-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gift-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.gift-mark { width: 10px; height: 10px; background: var(--st-ready); flex: none; }
.gift-note { color: var(--ink-2); font-size: 15px; padding: 10px 12px; border-left: 3px solid var(--st-ready); background: var(--ground); }
.gift-reveal { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-card); background: var(--ground); border: 1px dashed var(--st-ready); }
.gift-name { font-family: var(--font-display); font-size: clamp(30px, 9vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--st-ready); }
.gift-wish { display: flex; flex-direction: column; gap: 4px; color: var(--ink); padding-top: 6px; }
.gift-status { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); }
.gift-status .dot { margin-top: 7px; }
.dot-transit { background: var(--st-transit); }
.dot-done { background: var(--st-done); }
.gift .form-stack { margin-top: 4px; }
.gift-mywish[open] .form-stack { margin-top: 10px; }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 160px)); margin-bottom: 4px; }
.gift-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; }
.gift-actions { flex-wrap: wrap; }
.gift-secret[open] .by-guest { margin-top: 10px; }
.gift-secret .by-guest-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr; }
.gift-settings { display: flex; flex-direction: column; gap: 12px; }
.gift-settings legend { margin-bottom: 8px; }
.gift-settings .gift-sub { margin-left: 28px; }
