:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --surface-2: #eef2ef;
  --border: #dde3de;
  --text: #17201a;
  --text-2: #4d5a51;
  --muted: #7a867e;
  --primary: #1f6f43;
  --primary-2: #175634;
  --primary-soft: #e3f1e8;
  --on-primary: #ffffff;
  --accent: #e9a820;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --warn: #8a5a00;
  --warn-soft: #fff3d6;
  --info-soft: #e6eef8;
  --info: #1d4f91;
  --yellow-card: #f5c518;
  --red-card: #d93025;
  --pitch: #2f8a4f;
  --pitch-line: rgba(255, 255, 255, .75);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 2px 8px rgba(20, 30, 25, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d2417; --surface: #143521; --surface-2: #1a4029; --border: #2b573c;
    --text: #eef5f0; --text-2: #c3d3c9; --muted: #93ab9b;
    --primary: #7be3a4; --primary-2: #a3edc0; --primary-soft: #1f4a32; --on-primary: #0b1f13;
    --danger: #f28b82; --danger-soft: #3a1f1d; --warn: #f0c060; --warn-soft: #3a2f16;
    --info: #9cc0f0; --info-soft: #1b2a3d; --pitch: #2f8a4f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d2417; --surface: #143521; --surface-2: #1a4029; --border: #2b573c;
  --text: #eef5f0; --text-2: #c3d3c9; --muted: #93ab9b;
  --primary: #7be3a4; --primary-2: #a3edc0; --primary-soft: #1f4a32; --on-primary: #0b1f13;
  --danger: #f28b82; --danger-soft: #3a1f1d; --warn: #f0c060; --warn-soft: #3a2f16;
  --info: #9cc0f0; --info-soft: #1b2a3d; --pitch: #2f8a4f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.boot { padding: 3rem; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; padding: .25rem .5rem; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand img.club-logo { width: 36px; height: 36px; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.nav .sep { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .75rem .65rem .25rem; }
.nav svg { width: 18px; height: 18px; flex: none; }
.sidebar .foot { margin-top: auto; font-size: .85rem; color: var(--muted); padding: .5rem; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.topbar .spacer { flex: 1; }
.topbar select { min-width: 180px; }
.btn.menu-btn { display: none; }
.topbar select { width: auto; }
.content { padding: 1.5rem; max-width: 1280px; }
.page-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.page-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .shell.nav-open .sidebar { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: .6rem 1rem; }
  .topbar select { min-width: 0; max-width: 55vw; }
  .content { padding: 1rem; }
}

/* ---------- Komponenter ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.grid > .card, .grid > * > .card:first-child { margin-top: 0; }
.grid + .grid, .grid + .card, .card + .grid { margin-top: 1rem; }
.card h2 { display: flex; align-items: center; gap: .5rem; }
.card h2 .actions { margin-left: auto; display: flex; gap: .4rem; font-size: 15px; font-weight: 500; }
.card h2 .actions.slide-actions { flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; min-width: 0; }
.card h2 .import-col { display: flex; flex-direction: column; gap: .4rem; }
.card h2 .import-col .btn { justify-content: flex-start; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { padding: .9rem 1rem; }
.stat .v { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .85rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: .5rem .85rem; border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; min-height: 38px; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand, var(--primary)); border-color: var(--brand, var(--primary)); color: var(--on-brand, var(--on-primary)); }
.btn.primary:hover { background: var(--brand-2, var(--primary-2)); border-color: var(--brand-2, var(--primary-2)); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: .25rem .55rem; min-height: 30px; font-size: .85rem; }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

label.f { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--text-2); font-weight: 500; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .6rem; min-height: 38px; width: 100%; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand, var(--primary)); }
.check { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-size: .92rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1rem; }
.form-grid .wide { grid-column: 1 / -1; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem 1rem; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0 .35rem; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { font-weight: 600; color: var(--text-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; background: var(--surface); position: sticky; top: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
tr.inactive td { color: var(--muted); }
td input, td select { min-height: 32px; padding: .25rem .4rem; }
td input[type="number"] { width: 72px; }

.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--primary-soft); color: var(--primary); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.card-icon { display: inline-block; width: 10px; height: 14px; border-radius: 2px; vertical-align: -2px; }
.card-icon.gul { background: var(--yellow-card); }
.card-icon.rød { background: var(--red-card); }
.jersey { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .8rem; }
.level { letter-spacing: 1px; color: var(--accent); white-space: nowrap; }
.trend-opp { color: var(--primary); }
.trend-ned { color: var(--danger); }

.alert { border-radius: 8px; padding: .6rem .8rem; margin-bottom: .5rem; font-size: .9rem; border: 1px solid transparent; }
.alert.feil { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert.advarsel { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert.ok { background: var(--primary-soft); color: var(--primary); }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tabs button { background: none; border: none; padding: .6rem .9rem; font: inherit; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; gap: .5rem; align-items: center; }
.list li:last-child { border-bottom: none; }
.list li .grow { flex: 1; min-width: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-wrap; }

/* ---------- Modal og toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(10, 15, 12, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 1rem; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 640px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.modal.wide { max-width: 920px; }
.modal header { display: flex; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.modal header h2 { margin: 0; }
.modal header button { margin-left: auto; }
.modal .body { padding: 1.1rem 1.2rem; }
.modal footer { display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem 1.2rem; border-top: 1px solid var(--border); }
#toasts { position: fixed; bottom: 1rem; right: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 60; }
.toast { background: var(--text); color: var(--bg); padding: .65rem 1rem; border-radius: 8px; box-shadow: var(--shadow); max-width: 360px; font-size: .92rem; }
.toast.error { background: var(--danger); color: #fff; }

/* ---------- Innlogging ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth .card { width: 100%; max-width: 420px; padding: 1.75rem; }
.auth .brand { justify-content: center; margin-bottom: 1rem; font-size: 1.2rem; }
.auth form { display: flex; flex-direction: column; gap: .8rem; }
.qr { display: flex; justify-content: center; margin: .5rem 0; }
.qr img { background: #fff; padding: 8px; border-radius: 8px; }
.code-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; font-family: ui-monospace, Menlo, monospace; background: var(--surface-2); padding: .75rem; border-radius: 8px; }
.secret { font-family: ui-monospace, Menlo, monospace; word-break: break-all; font-size: .85rem; }

/* ---------- Diagram ---------- */
.chart { width: 100%; max-width: 760px; height: auto; display: block; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; }
.chart .bar { fill: var(--brand, var(--primary)); }
.chart .bar:hover { fill: var(--brand-2, var(--primary-2)); }
.chart .value-label { fill: var(--text-2); font-size: 11px; font-weight: 600; }
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2; }
.chart .dot { fill: var(--primary); stroke: var(--surface); stroke-width: 2; }
.meter { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; min-width: 60px; }
.meter > span { display: block; height: 100%; background: var(--brand, var(--primary)); border-radius: 4px; }

/* ---------- Matrise (oppmøte) ---------- */
.matrix td, .matrix th { padding: .3rem .35rem; text-align: center; font-size: .82rem; }
.matrix td:first-child, .matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.cell-pct { border-radius: 4px; padding: .15rem .3rem; display: inline-block; min-width: 38px; }
.pct-high { background: var(--primary-soft); color: var(--primary); }
.pct-mid { background: var(--warn-soft); color: var(--warn); }
.pct-low { background: var(--danger-soft); color: var(--danger); }

/* ---------- Poengliga ---------- */
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.checklist label { display: flex; gap: .5rem; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: .55rem .6rem; cursor: pointer; user-select: none; }
.checklist label.on { background: var(--primary-soft); border-color: var(--primary); }
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.team-card { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; background: var(--surface); }
.team-card h3 { display: flex; align-items: center; gap: .5rem; }
.team-card .dot { width: 12px; height: 12px; border-radius: 50%; }
.team-card ul { list-style: none; padding: 0; margin: .5rem 0; }
.team-card li { padding: .2rem 0; display: flex; justify-content: space-between; gap: .5rem; }
.team-card select { margin-top: .25rem; }
.tc-1 { background: #d64545; } .tc-2 { background: #2f6fd1; } .tc-3 { background: #e0a600; } .tc-4 { background: #2e9b57; }
.tc-5 { background: #8a4fd1; } .tc-6 { background: #e0701f; } .tc-7 { background: #1a9aa8; } .tc-8 { background: #6b6b6b; }

/* ---------- Kampbrett ---------- */
.pitch-wrap { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 760px) { .pitch-wrap { grid-template-columns: 1fr; } }
.pitch { width: 100%; height: auto; display: block; border-radius: 10px; background: var(--pitch); }
.pitch .ln { fill: none; stroke: var(--pitch-line); stroke-width: .6; }
.pitch .pos.drag { cursor: grab; touch-action: none; }
.pitch .pos text.no { font-size: 1.9px; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pitch .pos text.no.lbl { font-size: 1.35px; font-weight: 600; }
.pitch .pos text.nm { font-size: 1.9px; fill: #fff; text-anchor: middle; font-weight: 600; paint-order: stroke; stroke: rgba(0, 0, 0, .6); stroke-width: .45px; pointer-events: none; }
.pitch .pos { cursor: pointer; }
.pitch .pos.sel .body { stroke: #e9a820; stroke-width: .9; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.slots label { font-size: .8rem; }

@media print {
  .sidebar, .topbar, .actions, .btn, #toasts { display: none !important; }
  .shell { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* Spillerprofil: utvikling og vurderinger */
.pre { white-space: pre-wrap; }
.level-num { display: inline-block; min-width: 2.2em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--accent); color: inherit; font-weight: 600; text-align: center; }

/* Klubbprofil: logo og farger */
.sidebar { border-top: 4px solid var(--brand, var(--primary)); }
.logo-box { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo-preview { width: 96px; height: 96px; border: 1px dashed var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.logo-preview img { max-width: 88px; max-height: 88px; object-fit: contain; }
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: .5rem 0 1rem; }
.palette { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: .85rem; text-align: left; }
.palette:hover, .palette.on { border-color: var(--primary); background: var(--primary-soft); }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.palette .swatch + .swatch { margin-left: -12px; }
.swatches { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
button.swatch { cursor: pointer; padding: 0; width: 30px; height: 30px; }
.color-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.color-row label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--text-2); }
.color-row .pick { display: flex; gap: .4rem; align-items: center; }
.color-row input[type="color"] { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.color-row input[type="text"] { width: 7.5em; font-family: ui-monospace, Menlo, monospace; }
.theme-preview { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
fieldset.points-item { border-color: var(--primary); background: var(--primary-soft); }
fieldset.points-item legend { display: flex; gap: .5rem; align-items: center; }

/* Kampplan: taktikksider og tavle */
.plan-actions { position: sticky; top: 0; z-index: 5; }
.slide-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.2fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .slide-grid { grid-template-columns: 1fr; } }
fieldset.slide legend { font-weight: 700; }
.board-wrap { display: flex; flex-direction: column; gap: .5rem; }
.board-tools { display: flex; flex-wrap: wrap; gap: .3rem; }
.board-tools .btn.on { background: var(--brand, var(--primary)); border-color: var(--brand, var(--primary)); color: var(--on-brand, var(--on-primary)); }
.pitch.board { max-height: 560px; touch-action: none; user-select: none; }
.board .mk { cursor: grab; }
.board .arr .hit { stroke: transparent; stroke-width: 2.5; cursor: pointer; }
.board .mk text.no { font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.board .mk text.nm { text-anchor: middle; font-weight: 700; paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: .4px; pointer-events: none; }
.board .arr .hit { stroke-linecap: round; }
.board .bend-h { fill: #e9a820; stroke: #12301f; stroke-width: .25; cursor: grab; }
/* Verktøyknapper med Fieldkit-ikoner */
.board-tools .btn.tool { display: inline-flex; align-items: center; gap: .35rem; }
.board-tools .ti { width: 24px; height: 20px; flex: none; background: #12301f; border-radius: 5px; padding: 1px 2px; }
.board-tools .btn.on .ti { box-shadow: 0 0 0 1.5px #7be3a4; }
.btn.lanes.on { background: #12301f; color: #7be3a4; border-color: #2fbf6a; }
.pitch { overflow: hidden; }
.note-row { flex-wrap: nowrap; }
.note-row .grow { flex: 1; min-width: 0; }
.note-row .min-inp { width: 5.5em; flex: none; }
.note-row select { width: auto; flex: none; }
@media (max-width: 700px) { .note-row { flex-wrap: wrap; } }
[hidden] { display: none !important; }
.video-row { flex-wrap: nowrap; margin-bottom: .4rem; }
.video-row input:not(.grow):not(.min-inp) { width: 14em; flex: none; }
.video-row .grow { flex: 1; min-width: 0; }
.video-row .min-inp { width: 5.5em; flex: none; }
.video-row select { width: auto; flex: none; }
@media (max-width: 800px) { .video-row { flex-wrap: wrap; } }
.card h3 .actions { margin-left: .75rem; display: inline-flex; vertical-align: middle; }
tr.declined td { opacity: .6; }
tr.declined td:first-child { opacity: 1; }
td input.reason { margin-top: .3rem; font-size: .85rem; }
td:first-child > select { min-width: 8em; }
/* Øvelsestegning (trening) */
.pitch.board.area { max-height: 420px; }
.phase-card h2 .phase-time { font-weight: 500; }
.phase-card details.ex { border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .75rem; margin: 0 0 .75rem; background: var(--surface, transparent); }
.phase-card details.ex > summary { cursor: pointer; font-weight: 600; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.phase-card details.ex > summary .grow { flex: 1; }
.phase-card details.ex[open] > summary { margin-bottom: .5rem; }
.ex-board { max-width: 640px; }
/* Øvelse: tekst til venstre, tegning til høyre */
.ex-head { grid-template-columns: minmax(200px, 2fr) minmax(90px, .6fr) minmax(150px, 1fr); margin-bottom: .75rem; }
.ex-head.four { grid-template-columns: minmax(200px, 2fr) minmax(80px, .5fr) minmax(140px, 1fr) minmax(150px, 1fr); }
.ex-body { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr); gap: 1rem; align-items: start; margin-bottom: .75rem; }
.ex-text { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.ex-draw { min-width: 0; position: sticky; top: .5rem; }
.ex-draw .f-label { font-size: .85rem; color: var(--text-2); font-weight: 500; margin-bottom: .25rem; }
.ex-draw .ex-board { max-width: none; }
.ex-draw .board-tools .btn.sm { padding-inline: .45rem; }
@media (max-width: 900px) { .ex-body, .ex-head, .ex-head.four { grid-template-columns: 1fr; } .ex-draw { position: static; } }
/* Øvelsesbank */
.nav a.sub { padding-left: 1.6rem; font-size: .92em; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.ex-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: inherit; background: var(--surface); }
.ex-card:hover { text-decoration: none; border-color: var(--primary); }
.ex-thumb { aspect-ratio: 68 / 52.5; background: var(--pitch); display: flex; align-items: center; justify-content: center; }
.ex-thumb.empty { background: var(--surface-2); aspect-ratio: auto; height: 3rem; }
.ex-thumb .board-wrap, .ex-thumb svg { width: 100%; height: 100%; }
.ex-thumb .pitch.board { max-height: none; border-radius: 0; pointer-events: none; }
.ex-meta { padding: .5rem .65rem .65rem; display: flex; flex-direction: column; gap: .2rem; }

/* ================= Forside (ikke innlogget) ================= */
.lp { background: var(--bg); color: var(--text); min-height: 100vh; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.lp button { font-family: inherit; font-size: inherit; }
.lp-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.lp-nav-in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.lp-brand { display: flex; align-items: center; gap: .55rem; background: none; border: 0; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; color: var(--text); cursor: pointer; padding: 0; }
.lp-brand img { width: 32px; height: 32px; }
.lp-links { display: flex; gap: .15rem; margin: 0 auto; }
.lp-link { background: none; border: 0; padding: .5rem .75rem; border-radius: 8px; color: var(--text-2); font-weight: 600; cursor: pointer; }
.lp-link:hover { background: var(--surface-2); color: var(--text); }
.btn.lp-login { border: 1.5px solid var(--text); font-weight: 700; padding-inline: 1.2rem; }
.lp-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; color: #7be3a4; margin: 0 0 1rem; }
.lp-eyebrow.dark { color: var(--primary); }

.lp-hero { position: relative; color: #fff; background:
  linear-gradient(90deg, rgba(6, 18, 12, .88) 0%, rgba(6, 18, 12, .62) 45%, rgba(6, 18, 12, .25) 100%),
  url(/img/lp-hero.jpg) center / cover no-repeat, #12301f; }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: center; min-height: min(78vh, 720px); padding-block: 4rem; }
.lp-hero h1 { margin: 0; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: .98; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.lp-hero h1 span { display: block; }
.lp-lead { font-size: 1.15rem; line-height: 1.6; max-width: 34rem; color: rgba(255, 255, 255, .88); margin: 1.5rem 0 2rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn.lp-big { min-height: 50px; padding: .75rem 1.6rem; font-size: 1.05rem; font-weight: 700; }
.btn.lp-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.lp-ghost:hover { background: rgba(255, 255, 255, .12); }

/* Skjermbilder i laptop og mobil */
.lp-mock { position: relative; padding-bottom: 2rem; }
.lp-laptop { background: #1b1f1d; border-radius: 14px 14px 6px 6px; padding: 10px 10px 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); }
.lp-screen { border-radius: 6px; overflow: hidden; background: #fff; aspect-ratio: 16 / 10; }
.lp-screen img, .lp-phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.lp-phone { position: absolute; right: -4%; bottom: 0; width: 30%; background: #111; border-radius: 26px; padding: 8px; box-shadow: 0 24px 50px rgba(0, 0, 0, .55); }
.lp-phone-screen { border-radius: 19px; overflow: hidden; aspect-ratio: 9 / 18; background: #fff; }
.lp-phone-screen img { object-position: top center; }

.lp-strip { background: #0f2a1b; color: #fff; }
.lp-strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.4rem; }
.lp-strip-in div { display: flex; flex-direction: column; gap: .15rem; }
.lp-strip-in strong { font-size: 1.05rem; }
.lp-strip-in span { color: rgba(255, 255, 255, .7); font-size: .9rem; }

.lp-sec { padding-block: 5rem; }
.lp-sec.alt { background: var(--surface); border-block: 1px solid var(--border); }
.lp-sec h2, .lp-final h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.02em; }
.lp-sub { color: var(--text-2); font-size: 1.1rem; max-width: 44rem; line-height: 1.6; margin: 0 0 2.5rem; }
.lp-sub.center { margin: 2.5rem auto 0; text-align: center; }
.lp-sub.left { margin-bottom: 0; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.lp-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; transition: transform .15s, box-shadow .15s; }
.lp-feat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 40, 28, .08); }
.lp-feat h3 { margin: .9rem 0 .4rem; font-size: 1.05rem; }
.lp-feat p { margin: 0; color: var(--text-2); line-height: 1.55; font-size: .95rem; }
.lp-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.lp-ic svg { width: 22px; height: 22px; }
.lp-ic.sm { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.lp-ic.sm svg { width: 15px; height: 15px; }

.lp-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.lp-split.rev { grid-template-columns: 1.15fr 1fr; }
.lp-list { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.lp-list li { padding-left: 1.8rem; position: relative; line-height: 1.55; color: var(--text-2); }
.lp-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: .75rem; height: .75rem; border-radius: 3px; background: var(--primary); transform: rotate(45deg); }
.lp-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(20, 40, 28, .12); background: var(--surface); }
.lp-shot img { display: block; width: 100%; height: auto; }

.lp-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lp-steps li { background: var(--bg); border-radius: 14px; padding: 1.5rem; border: 1px solid var(--border); }
.lp-steps h3 { margin: .9rem 0 .4rem; }
.lp-steps p { margin: 0; color: var(--text-2); line-height: 1.55; }
.lp-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; background: var(--primary); color: var(--on-primary); }

.lp-checks { list-style: none; margin: 0; padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.lp-checks li { display: flex; gap: .75rem; align-items: center; font-weight: 500; }

.lp-faq { max-width: 820px; }
.lp-faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.lp-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.lp-faq details p { color: var(--text-2); line-height: 1.6; margin: .6rem 0 0; }

.lp-final { background: linear-gradient(135deg, #12301f, #1f6f43); color: #fff; text-align: center; padding-block: 4.5rem; }
.lp-final p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin: 0 0 1.5rem; }
.lp-final .btn.primary { background: #fff; color: #12301f; border-color: #fff; }
.lp-foot { padding-block: 1.5rem; border-top: 1px solid var(--border); font-size: .9rem; }
.lp-foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 960px) {
  .lp-links { display: none; }
  .lp-nav-in { justify-content: space-between; }
  .lp-hero-in, .lp-split, .lp-split.rev { grid-template-columns: 1fr; }
  .lp-split.rev .lp-shot { order: 2; }
  .lp-mock { max-width: 560px; }
  .lp-strip-in { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-sec { padding-block: 3.5rem; }
}
@media (max-width: 520px) { .lp-phone { display: none; } .lp-laptop { transform: none; } }

/* Innlogging med fotballbilde bak */
.auth { background: linear-gradient(180deg, rgba(4, 12, 20, .45), rgba(4, 12, 20, .8)), url(/img/lp-login.jpg) center / cover no-repeat, #0c1a22; }
.auth .card { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); border-color: transparent; }
.auth .brand { color: var(--text); text-decoration: none; }
.auth .back { text-align: center; margin: 1rem 0 0; }
.auth details.small summary { cursor: pointer; color: var(--text-2); }

/* ================= Fivelane merkevare ================= */
:root { --fl-dark: #12301f; --fl-green: #1f6f43; --fl-halfspace: #2fbf6a; --fl-light: #7be3a4; --fl-yellow: #e9a820; --fl-chalk: #f4f6f4; --fl-lane: #1f9d55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fl-lane: #7be3a4; } }
:root[data-theme="dark"] { --fl-lane: #7be3a4; }
.wordmark { font-weight: 800; letter-spacing: -.035em; text-transform: none; }
.wordmark .wm-lane { color: var(--fl-lane); }
.wordmark.sm { font-size: .78rem; letter-spacing: -.02em; color: var(--muted); }
.wordmark.sm .wm-lane { color: var(--fl-lane); }
.brand .wordmark:not(.sm) { font-size: 1.15em; }
.auth .brand .wordmark { font-size: 1.6rem; }
.auth .brand img { width: 40px; height: 40px; }
.lp-brand .wordmark { font-size: 1.45rem; }
.lp-brand img { width: 36px; height: 36px; }
.lp-strip { background: var(--fl-dark); }
.lp-final { background: linear-gradient(135deg, var(--fl-dark), var(--fl-green)); }
.lp-sec h2, .lp-final h2 { font-weight: 800; }
.lp-eyebrow { color: var(--fl-light); }

/* Mørkt tema i Fivelane-stil (som PDF-ene): banegrønn bakgrunn, flomlys og fem korridorer */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) body { background:
    linear-gradient(90deg, transparent calc(21.4% - 1px), rgba(255,255,255,.035) 21.4%, transparent calc(21.4% + 1px),
      transparent calc(36.9% - 1px), rgba(255,255,255,.035) 36.9%, transparent calc(36.9% + 1px),
      transparent calc(63.1% - 1px), rgba(255,255,255,.035) 63.1%, transparent calc(63.1% + 1px),
      transparent calc(78.6% - 1px), rgba(255,255,255,.035) 78.6%, transparent calc(78.6% + 1px)),
    linear-gradient(180deg, rgba(9, 28, 17, .80), rgba(9, 28, 17, .93)),
    url(/img/lp-login.jpg) center / cover no-repeat fixed, #0d2417; }
:root:not([data-theme="light"]) .sidebar,:root:not([data-theme="light"]) .topbar { background: rgba(10, 31, 19, .88); backdrop-filter: blur(6px); }
:root:not([data-theme="light"]) .card,:root:not([data-theme="light"]) .stat,:root:not([data-theme="light"]) .lp-feat { background: rgba(20, 53, 33, .82); backdrop-filter: blur(4px); border-color: #2b573c; }
:root:not([data-theme="light"]) .card > h2,:root:not([data-theme="light"]) .card > h3 { color: var(--fl-light); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; font-weight: 800; }
:root:not([data-theme="light"]) .card > h2 .btn,:root:not([data-theme="light"]) .card > h2 .actions,:root:not([data-theme="light"]) .card > h2 .muted,:root:not([data-theme="light"]) .card > h2 .badge,:root:not([data-theme="light"]) .card > h2 select,:root:not([data-theme="light"]) .card > h2 input { text-transform: none; letter-spacing: normal; font-weight: 500; }
:root:not([data-theme="light"]) input,:root:not([data-theme="light"]) select,:root:not([data-theme="light"]) textarea { background: rgba(9, 28, 17, .55); }
:root:not([data-theme="light"]) .nav a.active { background: rgba(123, 227, 164, .14); color: #fff; box-shadow: inset 3px 0 0 var(--fl-halfspace); }
}
:root[data-theme="dark"] body { background:
    linear-gradient(90deg, transparent calc(21.4% - 1px), rgba(255,255,255,.035) 21.4%, transparent calc(21.4% + 1px),
      transparent calc(36.9% - 1px), rgba(255,255,255,.035) 36.9%, transparent calc(36.9% + 1px),
      transparent calc(63.1% - 1px), rgba(255,255,255,.035) 63.1%, transparent calc(63.1% + 1px),
      transparent calc(78.6% - 1px), rgba(255,255,255,.035) 78.6%, transparent calc(78.6% + 1px)),
    linear-gradient(180deg, rgba(9, 28, 17, .80), rgba(9, 28, 17, .93)),
    url(/img/lp-login.jpg) center / cover no-repeat fixed, #0d2417; }
:root[data-theme="dark"] .sidebar,:root[data-theme="dark"] .topbar { background: rgba(10, 31, 19, .88); backdrop-filter: blur(6px); }
:root[data-theme="dark"] .card,:root[data-theme="dark"] .stat,:root[data-theme="dark"] .lp-feat { background: rgba(20, 53, 33, .82); backdrop-filter: blur(4px); border-color: #2b573c; }
:root[data-theme="dark"] .card > h2,:root[data-theme="dark"] .card > h3 { color: var(--fl-light); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; font-weight: 800; }
:root[data-theme="dark"] .card > h2 .btn,:root[data-theme="dark"] .card > h2 .actions,:root[data-theme="dark"] .card > h2 .muted,:root[data-theme="dark"] .card > h2 .badge,:root[data-theme="dark"] .card > h2 select,:root[data-theme="dark"] .card > h2 input { text-transform: none; letter-spacing: normal; font-weight: 500; }
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea { background: rgba(9, 28, 17, .55); }
:root[data-theme="dark"] .nav a.active { background: rgba(123, 227, 164, .14); color: #fff; box-shadow: inset 3px 0 0 var(--fl-halfspace); }

/* Sidetitler i merkevarestil: fete versaler med grønn strek under */
.page-head h1 { text-transform: uppercase; font-weight: 800; letter-spacing: -.01em; font-size: 1.65rem; }
.page-head h1::after { content: ''; display: block; width: 56px; height: 4px; margin-top: .45rem; background: var(--fl-halfspace); border-radius: 2px; }

/* Øvelsesbank: idéer, videolenker, likes og erfaringer */
.plat { display: inline-flex; align-items: center; padding: .05rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: #5b6660; white-space: nowrap; }
.plat-instagram { background: linear-gradient(90deg, #f58529, #dd2a7b 55%, #8134af); }
.plat-tiktok { background: #111; box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; }
.plat-facebook { background: #1877f2; }
.plat-youtube { background: #e62117; }
.plat-tiim { background: #1f9d55; }
.plat-nff { background: #c8102e; }
.plat-vimeo { background: #1ab7ea; }
.plat-x { background: #222; }
.idea-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) auto auto; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.idea-url { position: relative; display: flex; align-items: center; }
.idea-url input { flex: 1; min-width: 0; }
.idea-url .plat { position: absolute; right: .5rem; }
@media (max-width: 800px) { .idea-form { grid-template-columns: 1fr; } }
.idea-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; margin-top: .5rem; }
.idea { border: 1px solid var(--border); border-radius: var(--radius); padding: .65rem .75rem; display: flex; flex-direction: column; gap: .35rem; background: var(--surface); }
.idea-head { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.idea-title { font-weight: 700; color: inherit; }
.idea-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: auto; }
.idea-foot .actions { margin-left: auto; display: flex; gap: .35rem; flex-wrap: wrap; }
.ex-line { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.ex-social { display: inline-flex; gap: .7rem; align-items: center; }
.ex-social > span { display: inline-flex; gap: .2rem; align-items: center; }
.ex-social svg { width: 14px; height: 14px; }
.ex-social .liked, .like-btn.liked { color: #e0475b; }
.ex-social .liked svg path, .like-btn.liked svg path { fill: currentColor; }
.like-btn svg { width: 16px; height: 16px; }
.links-ed { display: flex; flex-direction: column; gap: .4rem; }
.link-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto auto; grid-template-areas: "plat url url url" ". author open del"; gap: .35rem .4rem; align-items: center; padding-bottom: .4rem; border-bottom: 1px dashed var(--border); }
.link-row .link-plat { display: flex; grid-area: plat; }
.link-row input[type=url] { grid-area: url; }
.link-row input:not([type=url]) { grid-area: author; }
.link-row a.btn { grid-area: open; }
.link-row button { grid-area: del; }
.comments { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
.comment { border-left: 3px solid var(--primary); padding: .35rem .7rem; background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.comment-head { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.comment-head .btn { margin-left: auto; }
.comment-text { margin: .25rem 0 0; white-space: pre-wrap; }
.comment-form { display: flex; flex-direction: column; gap: .5rem; }
.comment-form .btn-row { align-items: flex-end; }

.card h2 > svg { width: 18px; height: 18px; vertical-align: -3px; flex: none; }

/* Belastning – innsikt */
.wbars { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; vertical-align: middle; }
.wbar { width: 8px; min-height: 2px; background: var(--primary); border-radius: 2px 2px 0 0; opacity: .85; }
.wbar.over { background: var(--danger); opacity: 1; }
.risk-group { border-left: 3px solid var(--border); padding: .2rem 0 .2rem .8rem; margin: 1rem 0 1.25rem; }
.risk-group h3 { margin: 0 0 .2rem; }
.risk-borte, .risk-lavt_begge { border-left-color: var(--danger); }
.risk-fallende, .risk-lite_spill { border-left-color: var(--warn); }
.risk-lavt_oppmote { border-left-color: var(--info); }
.fu-cell { min-width: 12rem; max-width: 22rem; }
.fu-cell .fu-latest { display: inline-block; margin-right: .3rem; }
.fu-cell .fu-btn { padding: .15rem .4rem; }
.fu-hist { display: flex; flex-direction: column; gap: .5rem; max-height: 16rem; overflow-y: auto; }
.fu-item { border-left: 3px solid var(--primary); padding: .3rem .6rem; background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.fu-head { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.fu-head .btn { margin-left: auto; }
.fu-note { margin: .2rem 0 0; white-space: pre-wrap; }

/* Gjenbruk av taktikksider */
.lib-list { max-height: 60vh; overflow-y: auto; }
.lib-list h3 { margin: 1rem 0 .4rem; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.lib-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--surface); }
.lib-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.lib-thumb { pointer-events: none; }
.lib-thumb .board-tools, .lib-thumb .btn-row, .lib-thumb select { display: none; }
.lib-thumb .pitch.board { max-height: 220px; width: 100%; border-radius: 0; }
.lib-meta { display: flex; align-items: center; gap: .35rem; padding: .4rem .5rem; flex-wrap: wrap; }

/* Taktikkbibliotek */
.tac-score { display: inline-flex; align-items: center; gap: .25rem; }
.tac-link { margin-left: .5rem; font-weight: 600; }
.tac-eval { display: flex; flex-direction: column; gap: .5rem; }
.tac-eval-row { display: grid; grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1.5fr); gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px dashed var(--border); }
@media (max-width: 800px) { .tac-eval-row { grid-template-columns: 1fr; } }
.btn.res.on.res-lyktes { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.res.on.res-delvis { background: var(--warn); color: #fff; border-color: var(--warn); }
.btn.res.on.res-ikke { background: var(--danger); color: #fff; border-color: var(--danger); }
[data-cat] .ex-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
[data-cat] .ex-thumb { aspect-ratio: auto; height: 200px; overflow: hidden; }
[data-cat] .ex-thumb .pitch.board { height: 200px; width: 100%; }
#app > .maint-banner { margin: 0; border-radius: 0; text-align: center; position: relative; z-index: 60; }

/* Forsiden: tavler tegnet med Fieldkit */
.lp-screen.live, .lp-phone-screen.live { background: #12301f; display: flex; align-items: center; justify-content: center; }
.lp-screen.live .board-wrap, .lp-screen.live svg, .lp-phone-screen.live svg { width: 100%; height: 100%; }
.lp .pitch.board { max-height: none; border-radius: 0; }
.lp-board { border-radius: 14px; overflow: hidden; background: #12301f; box-shadow: 0 20px 40px rgba(0, 0, 0, .28); border: 1px solid rgba(123, 227, 164, .18); }
.lp-board svg { display: block; width: 100%; height: auto; }
.lp-board.lineup { max-width: 400px; width: 100%; justify-self: center; }
.lp-board-sec { background: radial-gradient(1200px 500px at 85% 0%, rgba(47, 191, 106, .14), transparent 60%), #0d2417; color: #fff; }
.lp-board-sec h2 { color: #fff; }
.lp-list.light li { color: rgba(255, 255, 255, .82); }
.lp-list.light li::before { background: #2fbf6a; }
.lp-board-sec .lp-board { max-width: 440px; justify-self: center; width: 100%; }
.lp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .75rem; margin: 3.5rem 0 0; }
.lp-gear { margin: 0; background: #12301f; border: 1px solid rgba(123, 227, 164, .16); border-radius: 12px; padding: .8rem .5rem .6rem; text-align: center; }
.lp-gear svg { width: 56px; height: 56px; display: block; margin: 0 auto; }
.lp-gear.wide { grid-column: span 2; }
.lp-gear.wide svg { width: 100%; height: 56px; }
.lp-gear figcaption, .lp-styles figcaption { font-size: .8rem; color: #a9bdb0; margin-top: .4rem; }
.lp-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 1.5rem; justify-content: center; margin-top: 2.5rem; }
.lp-styles figure { margin: 0; text-align: center; }
.lp-styles svg { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.lp-no { font-size: 1.9px; font-weight: 800; text-anchor: middle; dominant-baseline: central; }
.lp-h3 { margin: 3rem 0 1rem; font-size: 1.25rem; }
.lp-grid.three { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 520px) { .lp-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; } .lp-gear svg { width: 44px; height: 44px; } .lp-gear.wide svg { height: 44px; } .lp-gear figcaption { font-size: .72rem; } .lp-styles { gap: .75rem; } }
