/* Lemonade-designprofil (som lemonade-it.dk): navy, gul/lime/aqua, Montserrat + Inter.
   Skrifttyperne ligger lokalt (fonts/) – ingen kald til Google Fonts (GDPR). */
@font-face { font-family: "Montserrat Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/montserrat-latin-wght.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/montserrat-latin-ext-wght.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-wght.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* brand */
  --navy: #000816;
  --navy-2: #061127;
  --navy-line: #1c2738;
  --yellow: #f5d413;
  --lime: #a6dc5a;
  --aqua: #2ec5d3;
  --grad: linear-gradient(90deg, var(--yellow), var(--lime) 50%, var(--aqua));
  --display: "Montserrat Variable", "Segoe UI", Arial, sans-serif;
  --body: "Inter Variable", "Segoe UI", system-ui, Arial, sans-serif;
  /* arbejdsflade (som sitets lyse sektioner) */
  --bg: #f5f7f6;
  --panel: #ffffff;
  --ink: #0d1a26;
  --ink-2: #3f505a;
  --muted: #64737c;
  --line: #dfe6e5;
  --lemon: var(--yellow);
  --lemon-ink: var(--navy);
  --hard: #d6332a;
  --hard-bg: #fdeceb;
  --soft: #b26b00;
  --soft-bg: #fff5dc;
  --ok: #4d7a14;
  --ok-bg: #eef8e1;
  --win: #e9f8f9;
  --blocked: repeating-linear-gradient(135deg, #eef1f0 0 6px, #e4e9e8 6px 12px);
  --radius: 10px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); font-weight: 400; }
h1, h2, h3, .toolbar h1, .panel h2, .modal-head h2 { font-family: var(--display); letter-spacing: -.02em; }

/* topbjælke (som sitets header) */
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: var(--navy); color: #fff; border-bottom: 1px solid var(--navy-line); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--grad); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.wordmark { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .42em; white-space: nowrap;
  display: inline-flex; align-items: center; }
.wordmark svg { width: .72em; height: .86em; margin: 0 .42em 0 0; }
.brand .product { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--aqua); border-left: 1px solid var(--navy-line); padding-left: 14px; }
.project { color: #b4bfca; font-size: 13px; }
.loading { padding: 40px; color: var(--muted); }

/* værktøjslinje */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px;
  background: var(--panel); border-bottom: 1px solid var(--line); }
.toolbar h1 { font-size: 18px; margin: 0 6px; white-space: nowrap; }
.toolbar .spacer { flex: 1; }
.btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 12px; color: var(--ink); }
.btn:hover:not(:disabled) { background: #f0f2f5; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--lemon); border-color: #e2c22a; color: var(--lemon-ink); font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: #f0cc22; }
.btn.icon { padding: 6px 9px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 12px; }
.seg button.on { background: var(--ink); color: #fff; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef0f4; color: var(--ink);
  font-size: 12px; white-space: nowrap; }
.chip.hard { background: var(--hard-bg); color: var(--hard); }
.chip.soft { background: var(--soft-bg); color: var(--soft); }
.chip.ok { background: #e7f6ec; color: var(--ok); }
.summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 20px; color: var(--muted); }
.menu { position: relative; }
.menu-list { display: none; position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.08); z-index: 20; min-width: 140px; }
.menu.open .menu-list { display: block; }
.menu-list a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.menu-list a:hover { background: #f3f4f7; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding: 0 20px 24px; }
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; } }
.board { position: relative; overflow-x: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); }
.busy::after { content: "Beregner…"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.75); font-size: 18px; font-weight: 600; z-index: 10; }

/* gitter */
.grid { display: grid; grid-template-columns: 190px repeat(7, minmax(130px, 1fr)); }
.gh { position: sticky; top: 0; z-index: 2; background: #fafbfc; border-bottom: 1px solid var(--line);
  padding: 8px; font-weight: 600; font-size: 13px; }
.gh small { display: block; font-weight: 400; color: var(--muted); }
.gh.we, .cell.we { background-color: #fbfbfc; }
.corner { left: 0; z-index: 3; }
.rh { position: sticky; left: 0; z-index: 1; background: #fff; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line); padding: 8px 10px; }
.rh b { display: block; }
.rh small { display: block; color: var(--muted); font-size: 12px; }
.rh.bad { box-shadow: inset 3px 0 0 var(--hard); }
.bar { height: 5px; background: #eceef2; border-radius: 3px; margin: 5px 0 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #8aa4d6; }
.bar i.full { background: var(--soft); }
.bar i.over { background: var(--hard); }
.cell { min-height: 74px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 5px;
  display: flex; flex-direction: column; gap: 5px; transition: background .1s; }
.cell.blocked { background: var(--blocked); }
.cell.bad { box-shadow: inset 0 0 0 2px var(--hard); }
.cell.win { background-color: var(--win); }
.cell.blocked.win { background: var(--blocked); outline: 2px dashed #9fd3b0; outline-offset: -3px; }
.cell.over { background: #fff7cc !important; outline: 2px solid var(--lemon); outline-offset: -2px; }
.cell .tgt { font-size: 11px; color: var(--ok); }

/* kort */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, #9aa3b5);
  border-radius: 6px; padding: 5px 26px 5px 7px; cursor: grab; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.card:active { cursor: grabbing; }
.card.dragging { opacity: .4; }
.card .ct { font-weight: 600; font-size: 12.5px; line-height: 1.25; }
.card .cm { color: var(--muted); font-size: 11.5px; }
.card.hard { border-color: var(--hard); background: var(--hard-bg); border-left-color: var(--hard); }
.card.soft { background: var(--soft-bg); }
.card.locked { box-shadow: inset 0 0 0 1px #8f98aa; }
.card.hl { outline: 3px solid #2563eb; }
.lk { position: absolute; top: 3px; right: 3px; border: 0; background: transparent; font-size: 12px; padding: 2px;
  opacity: .35; line-height: 1; }
.card:hover .lk, .card.locked .lk { opacity: 1; }
.badge { display: inline-block; font-size: 10.5px; padding: 0 5px; border-radius: 4px; background: #eef0f4;
  color: var(--muted); margin-left: 3px; }
.badge.hard { background: var(--hard); color: #fff; }

/* adressevisning */
.addr .cell { min-height: 46px; }
.addr .who { font-size: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c);
  border-radius: 5px; padding: 3px 6px; }
.addr .who.hard { background: var(--hard-bg); border-color: var(--hard); }
.addr .who.locked::after { content: " 🔒"; }
.addr .cell.target { box-shadow: inset 0 -3px 0 #7cc796; }
.addr .deadline { font-size: 11px; color: var(--hard); }

/* sidepanel */
.side { display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.panel h2 { font-size: 14px; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 6px; }
.panel p.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.pool { min-height: 60px; display: flex; flex-direction: column; gap: 6px; border-radius: 6px; padding: 2px; }
.pool.over { background: #fff7cc; outline: 2px dashed var(--lemon); }
.pool .why { color: var(--muted); font-size: 11.5px; }
.vlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.vlist li { font-size: 12.5px; padding: 6px 8px; border-radius: 6px; background: #f6f7f9; border-left: 3px solid #b9c0cf; }
.vlist li.hard { background: var(--hard-bg); border-left-color: var(--hard); }
.vlist li.soft { background: var(--soft-bg); border-left-color: var(--soft); }
.vlist li[data-v] { cursor: default; }
.vlist li[data-v]:hover { filter: brightness(.97); }
.clist { list-style: none; padding: 0; margin: 0; }
.clist li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.clist li:last-child { border-bottom: 0; }
.clist b { display: block; font-size: 13px; }
.clist .desc { color: var(--muted); }
details summary { cursor: pointer; }
.stale { color: var(--soft); font-size: 12px; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50;
  max-width: 90vw; }
#toast.show { opacity: .95; }
#toast.err { background: var(--hard); }

/* faner i topbjælken */
.tabs { display: flex; gap: 4px; }
.tabs a { color: #c9cfdb; text-decoration: none; padding: 6px 12px; border-radius: 6px; }
.tabs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.tabs a.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
@media (max-width: 800px) { .topbar { flex-wrap: wrap; gap: 8px; } .project { display: none; } }

/* sider */
.page { max-width: 1100px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0 0 4px; }
.page-head .actions { display: flex; gap: 8px; }
.banner { background: #fff7cc; border: 1px solid #f0d64a; color: var(--lemon-ink); border-radius: var(--radius);
  padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner a { color: inherit; font-weight: 600; }
.toolbar + .banner, .summary + .banner { margin: 0 20px 12px; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; background: #fafbfc; color: var(--muted); font-weight: 600; padding: 8px 10px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.inactive td { color: var(--muted); }
.table td.notes { max-width: 280px; color: var(--muted); }

/* betingelser */
.rules h2 { font-size: 15px; }
.rule { display: flex; gap: 14px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid var(--line); }
.rule.off .rule-body { opacity: .5; }
.rule-body { flex: 1; }
.rule-body b { font-size: 14px; }
.rule-body .desc { color: var(--muted); margin: 2px 0 6px; }
.rule-body .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rule-actions { display: flex; gap: 6px; }
.switch { position: relative; width: 38px; height: 22px; flex: none; margin-top: 2px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd4dd; border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 26, 38, .45); display: grid; place-items: start center;
  padding: 6vh 16px; z-index: 40; overflow-y: auto; }
.modal { background: #fff; border-radius: 12px; width: min(720px, 100%); padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 16px 0 8px; }
.modal-foot { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.modal-foot .spacer { flex: 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.preset { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px; }
.preset:hover { border-color: #e2c22a; background: #fffbe6; }
.preset span { color: var(--muted); font-size: 12.5px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .lbl { font-weight: 600; font-size: 13px; }
.field input[type=text], .field input[type=date], .field input[type=number], .field select, .field textarea {
  font: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: #fff; }
.field textarea { font-family: Consolas, monospace; font-size: 12.5px; }
.field input.num { width: 100px; }
.field .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg.small button { padding: 5px 10px; font-size: 13px; border-right: 1px solid var(--line); }
.seg.small button:last-child { border-right: 0; }
.seg.days button { min-width: 44px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; max-height: 180px;
  overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.checks label { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.preview { margin-top: 16px; background: #f6f7f9; border-radius: 8px; padding: 12px; min-height: 44px; }
.preview .sentence { font-size: 14px; }
.msg { margin-top: 6px; font-size: 13px; padding: 4px 8px; border-radius: 4px; }
.msg.err { background: var(--hard-bg); color: var(--hard); }
.msg.warn { background: var(--soft-bg); color: var(--soft); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.field .seg { align-self: flex-start; flex-wrap: wrap; }

/* formularsider */
.page.narrow { max-width: 820px; }
.page.narrow h1 { font-size: 22px; margin: 0 0 4px; }
.page.narrow > p a { color: var(--muted); text-decoration: none; }
.form-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.form-card h2 { font-size: 15px; margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.form-card h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-card h3.sub { font-size: 13px; margin: 4px 0 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.grid2.inner { gap: 10px; }
.f { display: flex; flex-direction: column; gap: 5px; }
.f .lbl { font-weight: 600; font-size: 13px; }
.f .hint, .form-card .hint { color: var(--muted); font-size: 12.5px; margin: 0; }
.input, .table.absences input { font: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px;
  background: #fff; width: 100%; }
textarea.input { resize: vertical; }
.input:focus, .table.absences input:focus { outline: 2px solid #9db8ef; border-color: #9db8ef; }
.f.has-error .input { border-color: var(--hard); }
.error { color: var(--hard); font-size: 12.5px; }
.choices > div { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.choices label, label.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.choices input, label.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.table.absences td { padding: 6px; }
.form-actions { display: flex; gap: 8px; padding-top: 6px; }
.danger-zone { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.btn.danger { color: var(--hard); border-color: #f1b5af; }
.btn.danger:hover { background: var(--hard-bg) !important; }
.rowlink { color: var(--ink); font-weight: 600; text-decoration: none; }
.rowlink:hover { text-decoration: underline; }
.table td.right { text-align: right; white-space: nowrap; }
.messages { max-width: 1100px; margin: 14px auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 8px; }
.banner.success { background: #e7f6ec; border-color: #a9dcb8; color: var(--ok); }
.banner.error { background: var(--hard-bg); border-color: #f1b5af; color: var(--hard); }
.modal.wide { width: min(860px, 100%); }
.send-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.modal .banner { margin: 8px 0; }
.modal .table td { padding: 7px 8px; }
.modal-foot .btn { white-space: nowrap; }

.banner.infeasible { margin: 0 20px 12px; align-items: flex-start; justify-content: space-between; }
.banner.infeasible ul { margin: 4px 0 4px 18px; padding: 0; }
.banner.infeasible .hint { color: inherit; opacity: .8; font-size: 12.5px; }

.unlock-res { display: block; margin: 4px 0 2px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  font-size: 11.5px; padding: 1px 8px; color: var(--muted); }
.unlock-res:hover { background: #f0f2f5; color: var(--ink); }

/* ================= Lemonade-komponenter ================= */
/* faner: hvide links, aktiv fane som sitets "Kontakt"-pille */
.tabs { gap: 2px; }
.tabs a { color: #dfe5ea; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 100px;
  border: 1px solid transparent; }
.tabs a:hover { background: transparent; color: #fff; border-color: #3a4658; }
.tabs a.on { background: transparent; color: #fff; border-color: var(--yellow); }

/* knapper: piller */
.btn { border-radius: 100px; padding: 7px 16px; border: 1px solid #ccd8d7; background: #fff; color: var(--ink);
  font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: #fff; border-color: var(--aqua); }
.btn.icon { padding: 7px 11px; }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--navy); font-weight: 650; }
.btn.primary:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { border-color: #f1b5af; }
.seg { border-radius: 100px; border-color: #ccd8d7; background: #fff; }
.seg button { font-weight: 600; padding: 7px 14px; }
.seg button.on { background: var(--navy); color: #fff; }
.seg.small button { border-right-color: #e3eaea; }

/* mærkater som sitets "tags" */
.chip { background: var(--bg); color: var(--ink-2); border: 1px solid #ccd8d7; font-weight: 600; font-size: 11.5px;
  padding: 2px 9px; }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: #cfe8ae; }
.chip.soft { background: var(--soft-bg); color: var(--soft); border-color: #f3dc9d; }
.chip.hard { background: var(--hard-bg); color: var(--hard); border-color: #f3c2bd; }

/* værktøjslinje og sideoverskrifter */
.toolbar { padding: 14px 24px; }
.toolbar h1 { font-size: 20px; font-weight: 700; }
.summary { padding: 10px 24px; }
.page-head h1, .page.narrow h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.page-head h1 .chip { vertical-align: middle; font-family: var(--body); letter-spacing: 0; }

/* paneler og kort */
.panel, .board { border-color: var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(13, 26, 38, .04); }
.panel h2 { font-size: 15px; font-weight: 700; }
.panel h3, .modal h3, .form-card h3.sub { font-family: var(--display); color: #1a9aa6; letter-spacing: .14em;
  font-weight: 700; font-size: 11px; }
.side .panel { border-top: 3px solid var(--line); }
.side .panel:nth-child(1) { border-top-color: var(--yellow); }
.side .panel:nth-child(2) { border-top-color: var(--lime); }
.side .panel:nth-child(3) { border-top-color: var(--aqua); }
.rules h2 { border-bottom: 0; }
.panel.rules.hard-list { border-top: 3px solid var(--yellow); }
.panel.rules.soft-list { border-top: 3px solid var(--aqua); }
.form-card { border-top: 3px solid var(--yellow); }

/* kalender */
.gh { font-family: var(--display); font-weight: 650; background: #fbfcfc; letter-spacing: -.01em; }
.gh small { font-family: var(--body); }
.rh b { font-family: var(--display); font-weight: 650; letter-spacing: -.01em; }
.card { border-radius: 8px; border-left-width: 4px; }
.card .ct { font-weight: 650; }
.cell.win { background-color: var(--win); }
.cell.over { background: #fffbe0 !important; outline-color: var(--yellow); }
.bar i { background: var(--aqua); }
.bar i.full { background: var(--yellow); }
.busy::after { font-family: var(--display); }

/* betingelser og formularer */
.switch input:checked + span { background: #7fbf2e; }
.preset { border-radius: 10px; border-top: 3px solid var(--line); }
.preset:hover { border-color: var(--aqua); background: #f3fbfc; }
.gallery:nth-of-type(1) .preset { border-top-color: var(--yellow); }
.preset b { font-family: var(--display); font-weight: 650; }
.modal { border-radius: 14px; border-top: 4px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.preview { background: var(--bg); border: 1px solid var(--line); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #9fe3e9; border-color: var(--aqua); }
.rowlink:hover { color: #1a9aa6; }
a { color: #1a9aa6; }
.tabs a, .menu-list a, .btn, .brand { text-decoration: none; }
.menu-list a { color: var(--ink); }
.menu-list { border-radius: 10px; }

/* beskeder og toast */
.banner { border-radius: var(--radius); }
.banner:not(.error):not(.success) { background: #fffbe0; border-color: #f0dc6b; color: var(--navy); }
#toast { background: var(--navy); border: 1px solid var(--navy-line); border-radius: 100px; padding: 10px 18px; }
.eyebrow { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: #1a9aa6; margin: 0 0 8px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toolbar { gap: 8px; }
.toolbar h1 { font-size: 18px; }
.toolbar .btn, .toolbar .seg button { padding: 6px 13px; }
.toolbar .btn.icon { padding: 6px 10px; }

/* brugermenu */
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-end;
  padding: 4px 12px; border: 1px solid transparent; border-radius: 12px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { border-color: #3a4658; }
.usermenu .who { font-weight: 600; font-size: 13.5px; color: #fff; }
.usermenu .who::after { content: " ▾"; color: #b4bfca; font-size: 11px; }
.usermenu .org { font-size: 11.5px; color: #b4bfca; }
.usermenu .menu-list { display: block; right: 0; top: calc(100% + 6px); min-width: 200px; padding: 4px 0; }
.usermenu .menu-list form { margin: 0; }
.usermenu .menu-list button { display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 8px 12px; color: var(--hard); }
.usermenu .menu-list button:hover { background: #f3f4f7; }

/* login (som sitets mørke forside) */
body.auth { background: var(--navy); color: #fff; min-height: 100vh;
  background-image: radial-gradient(55% 80% at 90% 0, #2ec5d31c, #0000 70%), radial-gradient(35% 60% at 70% 100%, #f5d4130f, #0000 70%); }
.auth-wrap { min-height: 100vh; max-width: 1100px; margin: 0 auto; padding: 48px 24px; display: grid;
  grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; gap: 32px; } }
.auth-hero .wordmark { font-size: 20px; margin-bottom: 48px; display: inline-flex; }
.auth-hero .eyebrow { color: var(--aqua); }
.auth-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.05; margin: 0 0 20px; font-weight: 700; letter-spacing: -.03em; }
.auth-hero .lead { color: #b4bfca; font-size: 17px; line-height: 1.6; max-width: 520px; margin: 0; }
.auth-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; border-top: 4px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.auth-card h2 { font-family: var(--display); font-size: 22px; margin: 0 0 16px; letter-spacing: -.02em; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .hint { color: var(--muted); font-size: 13px; }
.btn.wide { width: 100%; padding: 10px 16px; font-size: 15px; }

/* projektoversigt */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.project-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--aqua); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.project-card:hover { border-color: var(--aqua); box-shadow: 0 4px 14px rgba(13, 26, 38, .08); }
.project-card b { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.project-card .eyebrow { margin: 0; }

/* brugere */
form.inline { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.linkrow td { background: #fffbe0; }
.copylink { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copylink .input { flex: 1; min-width: 260px; font-family: Consolas, monospace; font-size: 12px; }
.staff-row { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-row label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.staff-row .input.num { width: 64px; text-align: center; }
.grid3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; max-width: 640px; }
.choices ul, .f ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .f ul label { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; }

/* kolonnemenu */
.colmenu { position: relative; }
.colmenu summary { list-style: none; }
.colmenu summary::-webkit-details-marker { display: none; }
.colmenu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--aqua); border-radius: 10px; padding: 12px;
  box-shadow: 0 10px 30px rgba(13, 26, 38, .12); }
.colmenu-panel ul { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.colmenu-panel li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.colmenu-panel label { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.colmenu-panel input { width: 16px; height: 16px; accent-color: var(--ink); }
.colmenu-panel li a { font-size: 12.5px; }
.colmenu-actions { display: flex; gap: 8px; margin-top: 10px; }
.addcol { font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-head .actions { align-items: flex-start; }

/* 5-trins-guide */
.guide { display: flex; gap: 4px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line);
  overflow-x: auto; margin-top: 3px; }
.guide .step { display: flex; align-items: center; gap: 9px; padding: 5px 14px 5px 6px; border-radius: 100px;
  text-decoration: none; color: var(--ink); flex: 1; min-width: 150px; border: 1px solid transparent; }
.guide .step:hover { background: var(--bg); }
.guide .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-weight: 700; font-size: 12.5px; background: #eef1f0; color: var(--ink-2); }
.guide .txt { display: flex; flex-direction: column; line-height: 1.15; }
.guide .txt b { font-family: var(--display); font-size: 13px; font-weight: 650; }
.guide .txt small { color: var(--muted); font-size: 11.5px; }
.guide .done .num { background: var(--lime); color: var(--navy); }
.guide .optional .num { background: #e9f8f9; color: #1a9aa6; }
.guide .current { border-color: var(--yellow); background: #fffbe0; }
.guide .current .num { background: var(--yellow); color: var(--navy); }
.grid-wish { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr 1.5fr; gap: 12px 14px; align-items: start; }
@media (max-width: 900px) { .grid-wish { grid-template-columns: 1fr 1fr; } }

/* slet projekt */
.project-card-wrap { position: relative; }
.project-card-wrap .project-card { height: 100%; }
.card-delete { position: absolute; top: 10px; right: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: 13px;
  color: var(--hard); background: #fff; border: 1px solid #f1b5af; }
.card-delete:hover { background: var(--hard); color: #fff; border-color: var(--hard); }
.danger-card { border-top-color: var(--hard); }
.delete-list { margin: 0 0 4px 18px; padding: 0; }
.btn.danger-solid { background: var(--hard); border-color: var(--hard); color: #fff; font-weight: 650; }
.btn.danger-solid:hover:not(:disabled) { background: #a8231c; border-color: #a8231c; }

/* demo */
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 24px; background: #e9f8f9; border-bottom: 1px solid #bfe8ec; font-size: 13.5px; color: var(--navy); }
.demo-bar-actions { display: flex; gap: 12px; align-items: center; }
.demo-choices { display: flex; flex-direction: column; gap: 10px; }
.demo-choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; }
.demo-choice:has(input:checked) { border-color: var(--aqua); background: #f3fbfc; box-shadow: inset 3px 0 0 var(--aqua); }
.demo-choice input { margin-top: 3px; accent-color: var(--navy); }
.demo-choice b { font-family: var(--display); display: block; }
.demo-choice small { color: var(--muted); }
.demo-mine { margin: 0 0 8px 18px; padding: 0; }
.cf-turnstile { min-height: 65px; }
