/* Guldbaren Frivillig */
:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #1f1b16;
  --ink-2: #5b544a;
  --ink-3: #a59b8a;
  --line: #e4ddd0;
  --line-strong: #cfc1a5;
  --input-bg: #ffffff;
  --input-line: #d6cdbb;
  --gold: #c8961e;
  --gold-d: #9a7012;
  --gold-l: #f6e7bf;
  --gold-soft: #fffaf0;
  --mine-bg: #fbfdfb;
  --night: #1c1915;
  --green: #2f7d4f;  --green-l: #dcefe2;
  --red: #b4432f;    --red-l: #f7e0da;
  --amber: #a26a0c;  --amber-l: #faebcf;
  --blue: #2c63a8;   --blue-l: #dde8f6;
  --violet: #6b4bb0; --violet-l: #e9e2f7;
  --teal: #1f7a78;   --teal-l: #d6efee;
  --pink: #b03a78;   --pink-l: #f7deeb;
  --gray-l: #ece8e0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 2px 8px rgba(40, 30, 10, .04);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.45;
}
/* Mørkt tema: følger enhedens indstilling, medmindre brugeren har valgt lyst. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14120f; --surface: #1e1b17; --surface-2: #25211c; --ink: #eee8dd; --ink-2: #aaa192; --ink-3: #6f675b;
    --line: #342f28; --line-strong: #4d453a; --input-bg: #17150f; --input-line: #403a31;
    --gold: #d6a42a; --gold-d: #e9bf55; --gold-l: #3b3014; --gold-soft: #221d12; --mine-bg: #18201a; --night: #0d0b09;
    --green: #74c795; --green-l: #1b3124; --red: #ef907c; --red-l: #3c1f19; --amber: #e8b45c; --amber-l: #382b12;
    --blue: #8db5ea; --blue-l: #1a293c; --violet: #b8a0ec; --violet-l: #2b2340; --teal: #6fcfcb; --teal-l: #14302f;
    --pink: #eb93c1; --pink-l: #37192a; --gray-l: #2b2721;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14120f; --surface: #1e1b17; --surface-2: #25211c; --ink: #eee8dd; --ink-2: #aaa192; --ink-3: #6f675b;
  --line: #342f28; --line-strong: #4d453a; --input-bg: #17150f; --input-line: #403a31;
  --gold: #d6a42a; --gold-d: #e9bf55; --gold-l: #3b3014; --gold-soft: #221d12; --mine-bg: #18201a; --night: #0d0b09;
  --green: #74c795; --green-l: #1b3124; --red: #ef907c; --red-l: #3c1f19; --amber: #e8b45c; --amber-l: #382b12;
  --blue: #8db5ea; --blue-l: #1a293c; --violet: #b8a0ec; --violet-l: #2b2340; --teal: #6fcfcb; --teal-l: #14302f;
  --pink: #eb93c1; --pink-l: #37192a; --gray-l: #2b2721;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--gold-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.inline { display: inline; }
.spacer { flex: 1; }
.right { display: flex; align-items: center; gap: 10px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--night); color: #f4efe6; position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(140deg, #e8b93c, var(--gold-d)); color: var(--night); font-weight: 800; }
.brand-mark.lg { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 12px; }
.mainnav { display: flex; align-items: center; gap: 2px; flex: 1; }
.mainnav a, .mainnav .linkbtn { color: #d9d1c3; padding: 8px 11px; border-radius: 8px; font-size: .95rem; }
.mainnav a:hover, .mainnav .linkbtn:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.mainnav a.on { background: rgba(232,185,60,.16); color: #f3cf6b; }
.mainnav .navsep { flex: 1; }
.mainnav .me { display: flex; align-items: center; gap: 7px; }
.count { display: inline-block; min-width: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--night);
  font-size: .72rem; font-weight: 700; text-align: center; line-height: 19px; }
.navtoggle, .navburger { display: none; }

/* ---------- Generelt ---------- */
main.wrap { padding-top: 22px; padding-bottom: 40px; min-height: 70vh; }
.footer { color: var(--ink-2); font-size: .8rem; padding-bottom: 30px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sechead { font-size: 1rem; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.sechead .more, .more { font-size: .85rem; font-weight: 500; }
.weekhead { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 22px 0 8px; }
.empty { color: var(--ink-2); padding: 14px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--line-strong); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; }
.narrowcol { max-width: 680px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Knapper og formularer ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 9px; font: inherit; font-size: .92rem; font-weight: 550; cursor: pointer; line-height: 1.2; }
.btn:hover { border-color: var(--line-strong); text-decoration: none; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1608; }
.btn.primary:hover { background: #b5861a; }
.btn.ghost { background: transparent; }
.btn.swap { background: var(--violet-l); border-color: transparent; color: var(--violet); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.small { padding: 5px 10px; font-size: .84rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-d); cursor: pointer; }
.linkbtn.small { font-size: .8rem; }
.linkbtn.danger { color: var(--red); }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--input-line); border-radius: 9px; background: var(--input-bg); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-l); border-color: var(--gold); }
input.ro { background: var(--bg); }
label { display: block; font-size: .88rem; font-weight: 550; color: var(--ink-2); }
label > input, label > select, label > textarea { margin-top: 5px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); }
label.check input { width: auto; margin: 0; }
.form { display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 8px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > label { flex: 1 1 200px; }
.row > label.narrow, label.narrow { flex: 0 1 160px; max-width: 260px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dangerzone { margin-top: 24px; padding: 16px; border: 1px dashed var(--red); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.copyrow { display: flex; gap: 8px; }
.linkbox { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- Flash ---------- */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .93rem; border: 1px solid transparent; }
.flash-success { background: var(--green-l); color: var(--green); border-color: transparent; }
.flash-error { background: var(--red-l); color: var(--red); border-color: transparent; }
.flash-warn { background: var(--amber-l); color: var(--amber); border-color: transparent; }
.flash-info { background: var(--blue-l); color: var(--blue); border-color: transparent; }

/* ---------- Avatar, badges, tags ---------- */
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--gold-l); color: var(--gold-d); font-weight: 700; font-size: .9rem; }
.avatar.sm { width: 24px; height: 24px; font-size: .68rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.badges { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .74rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.b-aktiv { background: var(--green-l); color: var(--green); }
.b-inaktiv { background: var(--red-l); color: var(--red); }
.b-ny { background: var(--blue-l); color: var(--blue); }
.b-pause { background: var(--amber-l); color: var(--amber); }
.b-stoppet { background: var(--gray-l); color: var(--ink-2); }
.b-admin { background: var(--night); color: #f3cf6b; }
.b-milestone { background: var(--violet-l); color: var(--violet); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: .72rem; font-weight: 650; background: var(--gray-l); color: var(--ink-2); vertical-align: middle; }
.tag-new { background: var(--gold); color: #1d1608; }
.tag-swap { background: var(--violet-l); color: var(--violet); }
.tag-noshow { background: var(--red-l); color: var(--red); }

/* ---------- Hero ---------- */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.hero-main { display: flex; gap: 16px; align-items: center; }
.hero-main h1 { margin-bottom: 6px; }
.hero-main p { margin: 6px 0 0; }
.stats { display: flex; gap: 10px; }
.stat { background: var(--bg); border-radius: 10px; padding: 10px 14px; min-width: 104px; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.1; }
.stat span { font-size: .78rem; color: var(--ink-2); }
.adminstrip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.adminstrip a { background: var(--night); color: #e9e1d2; padding: 8px 13px; border-radius: 9px; font-size: .88rem; }
.adminstrip a b { color: #f3cf6b; }
.adminstrip a:hover { text-decoration: none; background: #2c2720; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; overflow-x: auto; }
.tabs a { padding: 9px 13px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; font-size: .93rem; }
.tabs a.on { color: var(--ink); border-color: var(--gold); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* ---------- Vagtkort ---------- */
.shift { border-left: 4px solid var(--line); }
.shift.has-free { border-left-color: var(--gold); }
.shift.has-swap { border-left-color: var(--violet); }
.shift.is-mine { border-left-color: var(--green); background: var(--mine-bg); }
.shift.is-past { opacity: .85; }
.shift-head { display: flex; gap: 16px; align-items: flex-start; }
.shift-when { min-width: 118px; }
.shift-date { font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.shift-time { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shift-title { flex: 1; }
.shift-title p { margin: 4px 0 0; }
.fill { font-weight: 700; font-size: .85rem; padding: 4px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.fill-open { background: var(--gold-l); color: var(--gold-d); }
.fill-full { background: var(--green-l); color: var(--green); }
.people { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.people li { display: flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; background: var(--bg); border-radius: 20px; color: var(--ink); font-size: .88rem; }
.chip:hover { text-decoration: none; background: var(--gold-l); }
.chip.ghost { padding: 4px 11px; border: 1px dashed var(--line-strong); background: transparent; color: var(--ink-2); }
.people li.swapping .chip { background: var(--violet-l); }
.people li.noshow .chip { text-decoration: line-through; opacity: .7; }
.shift .actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.assign select { width: auto; padding: 5px 8px; font-size: .85rem; }
.swapbox { display: inline-block; }
.swapbox summary { list-style: none; }
.swapbox summary::-webkit-details-marker { display: none; }
.swapbox[open] { display: block; width: 100%; }
.swapbox[open] form { margin-top: 8px; max-width: 460px; }

/* ---------- Meddelelser og events ---------- */
.card.newsitem { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 12px 14px; }
.newsitem strong { flex-basis: 100%; }
.newsitem.unread { border-left: 4px solid var(--gold); }
.announcement header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.announcement h3 { font-size: 1.15rem; margin: 4px 0 2px; }
.announcement header p { margin: 0; }
.announcement.pinned { border-color: var(--line-strong); }
.announcement.unread { border-left: 4px solid var(--gold); }
.prose { margin-top: 12px; overflow-wrap: anywhere; }
.card.eventitem { display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.evdate { display: grid; place-items: center; width: 48px; height: 50px; border-radius: 10px; background: var(--bg); font-size: .72rem; text-transform: uppercase; color: var(--ink-2); flex: none; line-height: 1.1; }
.evdate b { font-size: 1.25rem; color: var(--ink); }
.event-head { display: flex; gap: 14px; align-items: flex-start; }
.event-head > div { flex: 1; }
.event-head h3 { margin: 4px 0 2px; font-size: 1.15rem; }
.event-head p { margin: 0; }
.cat-event .evdate, .cat-tag { background: var(--blue-l); color: var(--blue); }
.cat-moede .evdate { background: var(--amber-l); color: var(--amber); }
.cat-aaben .evdate { background: var(--gold-l); color: var(--gold-d); }
.cat-andet .evdate { background: var(--gray-l); }
.event.cat-moede .cat-tag { background: var(--amber-l); color: var(--amber); }
.event.cat-aaben .cat-tag { background: var(--gold-l); color: var(--gold-d); }
.event.cat-andet .cat-tag { background: var(--gray-l); color: var(--ink-2); }

/* ---------- Kalender ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 12px; }
.legend .ci { display: inline-block; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-dow { background: var(--surface-2); padding: 7px 8px; font-size: .75rem; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.cal-day { background: var(--surface); min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.other { background: var(--surface-2); }
.cal-day.barday { background: var(--gold-soft); }
.cal-day.barday.other { background: var(--surface-2); }
.cal-day.other .cal-num { color: var(--ink-3); }
.cal-num { font-size: .82rem; font-weight: 650; margin-bottom: 2px; }
.cal-day.today .cal-num { display: inline-block; align-self: flex-start; background: var(--gold); color: #1d1608; border-radius: 6px; padding: 0 6px; }
.dow-m { display: none; }
.ci { display: block; font-size: .74rem; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--gray-l); color: var(--ink); border-left: 3px solid var(--ink-3); }
.ci:hover { text-decoration: none; filter: brightness(.96); }
.ci-shift.free { background: var(--gold-l); border-left-color: var(--gold); }
.ci-shift.swap { background: var(--violet-l); border-left-color: var(--violet); }
.ci-shift.mine { background: var(--green-l); border-left-color: var(--green); font-weight: 650; }
.ci-event { background: var(--blue-l); border-left-color: var(--blue); }
.ci-event.cat-moede { background: var(--amber-l); border-left-color: var(--amber); }
.ci-event.cat-aaben { background: var(--gold-l); border-left-color: var(--gold-d); }
.ci-event.cat-andet { background: var(--gray-l); border-left-color: var(--ink-3); }

/* ---------- Medlemmer ---------- */
.membergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.member { display: flex !important; gap: 12px; align-items: flex-start; margin: 0; }
.member-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

/* ---------- Lister og diagrammer ---------- */
.list { list-style: none; padding: 6px 16px; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.list li:last-child { border-bottom: 0; }
.list li.noshow > span:first-child { text-decoration: line-through; }
.list:empty { display: none; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 14px 16px 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar-fill { width: 100%; max-width: 44px; background: linear-gradient(180deg, #e3b54a, var(--gold)); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bar-val { font-size: .78rem; font-weight: 650; }
.bar-lbl { font-size: .74rem; color: var(--ink-2); text-transform: uppercase; }
.h0 { height: 0; } .h1 { height: 10%; } .h2 { height: 20%; } .h3 { height: 30%; } .h4 { height: 40%; } .h5 { height: 50%; }
.h6 { height: 60%; } .h7 { height: 70%; } .h8 { height: 80%; } .h9 { height: 90%; } .h10 { height: 100%; }
.bar-fill.h0 { background: var(--line); }

/* ---------- Aktivitet ---------- */
.summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.sum { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); border-top: 3px solid var(--line); }
.sum:hover { text-decoration: none; border-color: var(--line-strong); }
.sum.on { outline: 2px solid var(--gold); }
.sum b { display: block; font-size: 1.4rem; }
.sum span { font-size: .8rem; color: var(--ink-2); }
.sum-aktiv { border-top-color: var(--green); }
.sum-inaktiv { border-top-color: var(--red); }
.sum-ny { border-top-color: var(--blue); }
.sum-pause { border-top-color: var(--amber); }
.sum-stoppet { border-top-color: var(--ink-3); }
.sum-alle { border-top-color: var(--gold); }
.tablewrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); background: var(--surface-2); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tr.state-inaktiv td:first-child { box-shadow: inset 3px 0 var(--red); }

/* ---------- Login ---------- */
.authpage { display: grid; place-items: center; min-height: 100vh; padding: 20px;
  background: radial-gradient(circle at 30% 0%, #2d2719 0%, var(--night) 60%); }
.authbox { width: 100%; max-width: 400px; background: var(--surface); border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.authbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.authbrand h1 { font-size: 1.3rem; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .navburger { display: flex; flex-direction: column; gap: 4px; margin-left: auto; cursor: pointer; padding: 10px; }
  .navburger span { width: 22px; height: 2px; background: #e9e1d2; border-radius: 2px; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 58px; background: var(--night); flex-direction: column; align-items: stretch; padding: 8px 12px 14px; border-top: 1px solid #2f2a22; }
  .navtoggle:checked ~ .mainnav { display: flex; }
  .mainnav .navsep { display: none; }
  .mainnav form { padding: 8px 11px; }
  .hero { padding: 16px; }
  .stats { width: 100%; }
  .stat { flex: 1; min-width: 0; padding: 8px 10px; }
  .stat b { font-size: 1.25rem; }
  .stat span { font-size: .72rem; display: block; line-height: 1.25; }
  .shift-time { font-size: 1.05rem; }
  .shift-head { flex-wrap: wrap; gap: 6px 12px; }
  .shift-when { min-width: 0; display: flex; gap: 8px; align-items: baseline; flex-basis: calc(100% - 60px); order: 1; }
  .fill { order: 2; margin-left: auto; }
  .shift-title { order: 3; flex-basis: 100%; }
  .cal { display: block; border: 0; background: none; }
  .cal-dow, .cal-day.other, .cal-day.nothing { display: none; }
  .cal-day { min-height: 0; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; padding: 10px; }
  .cal-day.today { border-color: var(--gold); }
  .dow-m { display: inline; }
  .ci { white-space: normal; font-size: .85rem; padding: 5px 8px; }
  .cal::after { content: "Dage uden vagter eller events er skjult på mobil."; display: block; color: var(--ink-2); font-size: .82rem; }
  .copyrow { flex-direction: column; }
}

/* ---------- Planlæg fredage ---------- */
code { background: var(--gray-l); padding: 1px 5px; border-radius: 4px; font-size: .85em; }
.tplrows { display: flex; flex-direction: column; gap: 8px; }
.tplrow { display: grid; grid-template-columns: 28px 2fr 1fr 1fr 90px; gap: 10px; align-items: end; }
.tplrow label.check { padding-bottom: 10px; }
.daypick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.daychip { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); cursor: pointer; color: var(--ink); font-weight: 500; }
.daychip input { width: auto; margin: 0; }
.daychip span { display: flex; flex-direction: column; line-height: 1.2; }
.daychip small { color: var(--ink-2); font-size: .74rem; }
.daychip.has { background: var(--green-l); border-color: transparent; }
.daychip:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
@media (max-width: 760px) { .tplrow { grid-template-columns: 28px 1fr 1fr; } .tplrow label:nth-child(2) { grid-column: 2 / 4; } }

/* ---------- Roller ---------- */
.roles { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.role { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 20px; font-size: .74rem; font-weight: 650; white-space: nowrap; background: var(--gray-l); color: var(--ink); }
.role::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.role.lg { font-size: .9rem; padding: 4px 12px 4px 10px; }
.role-gold { background: var(--gold-l); color: var(--gold-d); }
.role-amber { background: var(--amber-l); color: var(--amber); }
.role-green { background: var(--green-l); color: var(--green); }
.role-teal { background: var(--teal-l); color: var(--teal); }
.role-blue { background: var(--blue-l); color: var(--blue); }
.role-violet { background: var(--violet-l); color: var(--violet); }
.role-pink { background: var(--pink-l); color: var(--pink); }
.role-red { background: var(--red-l); color: var(--red); }
.role-gray { background: var(--gray-l); color: var(--ink-2); }
fieldset.rolepick { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.rolepick legend { font-size: .88rem; font-weight: 550; color: var(--ink-2); padding: 0 6px; }
fieldset.rolepick p { flex-basis: 100%; margin: 4px 0 0; }
.rolechip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.rolechip input { width: auto; margin: 0; }
.rolechip:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.rolecard details { margin-top: 10px; }
.rolecard summary { list-style: none; display: inline-block; font-size: .9rem; }
.rolecard summary::-webkit-details-marker { display: none; }
.rolecard details[open] summary { margin-bottom: 12px; }
.rolehead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.permsummary { color: var(--ink-2); }
.holders { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.roleform { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.permgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }

/* ---------- Profilbilleder ---------- */
img.avatar { object-fit: cover; background: var(--gold-l); display: inline-block; }
.avatar.xl { width: 88px; height: 88px; font-size: 1.7rem; }
.avatarrow { display: flex; gap: 14px; align-items: center; }
.avatarrow label { flex: 1; }
.avatarrow input[type=file] { padding: 7px; font-size: .88rem; }

/* ---------- Næste fredagsbar ---------- */
.nextbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; }
.nextbar > div:first-child { display: flex; flex-direction: column; min-width: 150px; }
.nextbar strong { font-size: 1.05rem; }
.nb-shifts { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.nb-shift { padding: 5px 10px; border-radius: 8px; font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-shift:hover { text-decoration: none; filter: brightness(.97); }
.nb-shift.open { background: var(--gold-l); color: var(--gold-d); }
.nb-shift.full { background: var(--green-l); color: var(--green); }
.nb-status { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.nb-status.open { color: var(--gold-d); }
.nb-status.full { color: var(--green); }

/* ---------- Tema og diverse ---------- */
.themebtn { white-space: nowrap; }
@media (max-width: 760px) { .mainnav .themebtn { text-align: left; padding: 8px 11px; } }
.ovform select { width: auto; padding: 5px 8px; font-size: .84rem; }
.b-admin { display: none; }
@media (max-width: 760px) {
  .avatarrow { flex-direction: column; align-items: flex-start; }
  .hero-main { align-items: flex-start; }
}
