/* Skovbund (C2): granskov, mos og tyttebær. Mørkegrøn topbjælke med trætoppe, lys mosbund, tyttebærrød til handlinger. */
:root {
  --bg: #EEF2EA; --surface: #FFFFFF; --surface-2: #F6F9F3; --sunk: #DDE6D7; --line: #DCE5D7; --line-2: #C3D1BE;
  --ink: #1F2B22; --ink-2: #3B4A3F; --muted: #5A6B5E; --accent: #B23A48; --accent-ink: #FFFFFF; --accent-soft: #F6E1E4;
  --ok: #3E7C4F; --warn: #A86A12; --bad: #B23A48; --ok-soft: #DCEBDF; --warn-soft: #F7EBD3; --bad-soft: #F6E1E4;
  --forest: #17301F; --forest-2: #24452D; --forest-ink: #E9F0E4; --forest-mute: #A9C2AE; --fern: #3E7C4F; --fern-soft: #CFE3D3; --berry: #E05A68;
  --logo-cut: #FFFFFF; --shadow: 0 2px 0 #D2DDCC; --shadow-lg: 0 20px 60px rgb(10 25 15 / .25);
  --sea: #CFE0E4;
  --f-display: "Familjen Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 18px; --r-sm: 11px; --hdr: 74px; --side: 272px;
  --tint: 16%;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1913; --surface: #16231A; --surface-2: #1B2B20; --sunk: #0B130E; --line: #25382B; --line-2: #34503D;
  --ink: #E6EEE5; --ink-2: #C2CFC3; --muted: #92A696; --accent: #E86B79; --accent-ink: #1C0609; --accent-soft: #3B1D22;
  --ok: #73C38E; --warn: #E2AE57; --bad: #EF7A86; --ok-soft: #173024; --warn-soft: #33270F; --bad-soft: #3B1D22;
  --forest: #0A140D; --forest-2: #132419; --forest-ink: #E6EEE5; --forest-mute: #8FAE96; --fern: #5FAE78; --fern-soft: #24432E; --berry: #E86B79;
  --logo-cut: #0F1913; --shadow: 0 2px 0 rgb(0 0 0 / .35); --shadow-lg: 0 20px 60px rgb(0 0 0 / .6); --sea: #0D1A1E;
  --tint: 22%; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0F1913; --surface: #16231A; --surface-2: #1B2B20; --sunk: #0B130E; --line: #25382B; --line-2: #34503D;
  --ink: #E6EEE5; --ink-2: #C2CFC3; --muted: #92A696; --accent: #E86B79; --accent-ink: #1C0609; --accent-soft: #3B1D22;
  --ok: #73C38E; --warn: #E2AE57; --bad: #EF7A86; --ok-soft: #173024; --warn-soft: #33270F; --bad-soft: #3B1D22;
  --forest: #0A140D; --forest-2: #132419; --forest-ink: #E6EEE5; --forest-mute: #8FAE96; --fern: #5FAE78; --fern-soft: #24432E; --berry: #E86B79;
  --logo-cut: #0F1913; --shadow: 0 2px 0 rgb(0 0 0 / .35); --shadow-lg: 0 20px 60px rgb(0 0 0 / .6); --sea: #0D1A1E;
  --tint: 22%; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); } .sm { font-size: .85rem; } .tiny { font-size: .8rem; }
.sub { color: var(--muted); margin-top: 4px; }
.sp, .grow { flex: 1; min-width: 0; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.label-sm { font-size: .78rem; font-weight: 600; color: var(--muted); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-family: var(--f-mono); font-size: .85em; background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.ic.xl { width: 40px; height: 40px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link.sm { font-size: .82rem; }

/* ---------- topbjælke ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink); }
.logo { width: 30px; height: 30px; color: var(--ink); }
.tabs { display: flex; gap: 2px; flex: 1; justify-content: center; min-width: 0; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .93rem; white-space: nowrap; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); background: var(--sunk); }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.tabs a[aria-current="page"] .ic { color: var(--accent); }
.top-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 .78rem/1 var(--f-body); flex: none; text-decoration: none; letter-spacing: .02em; }
.avatar.me { margin-left: 4px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); }
.avatar.xs { width: 22px; height: 22px; font-size: .62rem; }
.avatar.sm { width: 28px; height: 28px; font-size: .7rem; }
.bottomnav { display: none; }
@media (max-width: 1020px) { .tabs a span { display: none; } .tabs a { padding: 9px 11px; } }
@media (max-width: 720px) {
  .tabs { display: none; }
  .bottomnav { display: flex; position: fixed; inset: auto 0 0 0; z-index: 45; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); justify-content: space-around; }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 10px; min-width: 56px; }
  .bottomnav a .ic { width: 22px; height: 22px; }
  .bottomnav a[aria-current="page"] { color: var(--accent); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- knapper og felter ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; min-height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none; transition: border-color .15s, background .15s, transform .05s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 1.1em; height: 1.1em; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--sunk); }
.btn.danger { color: var(--bad); }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { min-height: 32px; padding: 5px 11px; font-size: .84rem; }
.btn.xs { min-height: 26px; padding: 3px 9px; font-size: .78rem; border-radius: 6px; }
.btn.lg { min-height: 46px; font-size: 1rem; }
.btn[aria-pressed="true"], .btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:disabled, .icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none; flex: none; }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.ghost:hover, .icon-btn.on { background: var(--sunk); }
.icon-btn.sm { width: 28px; height: 28px; } .icon-btn.sm .ic { width: 16px; height: 16px; }
.icon-btn.danger:hover { color: var(--bad); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 11px; min-height: 38px; min-width: 0; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
select { cursor: pointer; }
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 36px; }
.search.sm input { min-height: 34px; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap .ic { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.select-wrap select { padding-left: 34px; width: auto; font-weight: 600; font-size: .88rem; }
.select-wrap.sm select { min-height: 32px; font-size: .82rem; padding-top: 4px; padding-bottom: 4px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--sunk); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 5px; cursor: pointer; font-weight: 600; font-size: .84rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg.full { display: flex; } .seg.full button { flex: 1; justify-content: center; padding: 6px 4px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch > span { position: relative; width: 36px; height: 21px; border-radius: 999px; background: var(--line-2); transition: background .15s; flex: none; }
.switch > span::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(15px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + span { opacity: .5; }
.switch.big > span { width: 44px; height: 26px; } .switch.big > span::after { width: 21px; height: 21px; } .switch.big input:checked + span::after { transform: translateX(18px); }

/* ---------- badges, chips, tags ---------- */
.badge { --s: 32px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; flex: none; color: var(--c);
  background: color-mix(in srgb, var(--c) var(--tint), transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
:root:not([data-theme="dark"]) .badge { color: color-mix(in srgb, var(--c) 72%, #000); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: var(--c); } }
.badge .ic { width: 58%; height: 58%; }
.badge.xs { --s: 22px; } .badge.sm { --s: 28px; } .badge.lg { --s: 48px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.chip .ic { width: 15px; height: 15px; color: var(--c, var(--muted)); }
.chip:hover { border-color: var(--muted); }
.chip.on { border-color: var(--c, var(--ink)); background: color-mix(in srgb, var(--c, var(--ink)) 14%, var(--surface)); color: var(--ink); }
.chip.dashed { border-style: dashed; color: var(--muted); }
.chip.sm { padding: 2px 8px; font-size: .74rem; cursor: default; }
.chip.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.tag .ic { width: 12px; height: 12px; }
.tag.worn { color: var(--ok); background: var(--ok-soft); } .tag.cons { color: var(--warn); background: var(--warn-soft); } .tag.wish { color: var(--accent); background: var(--accent-soft); }
.tag.ghost { background: transparent; padding: 2px 4px; }
.pill { display: inline-grid; place-items: center; min-width: 30px; padding: 2px 9px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); font: 600 .9rem/1.3 var(--f-mono); color: var(--muted); vertical-align: middle; margin-left: 4px; }
.classchip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.classchip.lg { font-size: .8rem; padding: 6px 12px; }

/* ---------- layout ---------- */
main { min-height: 50vh; }
.wrap { max-width: 1240px; margin: 0 auto; padding-block: 28px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 860px; }
.banners { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 8px; }
.banners:not(:empty) { padding-top: 12px; }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.banner > .ic { color: var(--muted); }
.banner > span:not(.sp) { flex: 1 1 220px; min-width: 0; }
.banner > .sp { display: none; }
.banner.accent { border-color: var(--accent); background: var(--accent-soft); } .banner.accent > .ic { color: var(--accent); }
.banner.bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); } .banner.bad > .ic { color: var(--bad); }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 0; max-width: 1560px; margin: 0 auto; align-items: start; }
.side { position: sticky; top: calc(var(--hdr) + 1px); max-height: calc(100vh - var(--hdr) - 1px); overflow-y: auto; padding: 20px 14px 40px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; }
.side-sec { display: flex; flex-direction: column; gap: 6px; }
.side-h { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.main { min-width: 0; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 64px 18px; border-left: 1px solid var(--line); min-height: calc(100vh - var(--hdr)); }
.nav-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink-2); font-weight: 500; font-size: .92rem; position: relative; }
.nav-row > .ic { color: var(--muted); }
.nav-row:hover { background: var(--sunk); color: var(--ink); }
.nav-row.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.nav-row.on > .ic { color: var(--accent); }
.nav-row .cnt { font: 500 .78rem var(--f-mono); color: var(--muted); }
.nav-row .row-edit { display: none; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--muted); }
.nav-row:hover .row-edit, .nav-row:focus-visible .row-edit { display: inline-grid; }
.nav-row:hover .row-edit + .cnt, .nav-row .row-edit:hover { color: var(--ink); background: var(--line); }
.nav-row.add { color: var(--accent); font-weight: 600; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.minis > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 10px; display: flex; flex-direction: column; min-width: 0; }
.minis b { font-size: 1.02rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minis span { font-size: .72rem; color: var(--muted); }
.page-head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.center { justify-content: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { padding: 4px 8px; }
.card h2 { margin-bottom: 12px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-h h3 { display: flex; align-items: center; gap: 8px; }
.card-h h3 .ic { color: var(--accent); }
.empty { padding: 44px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic.xl { color: var(--line-2); margin-bottom: 4px; }
.empty h3 { color: var(--ink); font-size: 1.15rem; }
.empty p { max-width: 48ch; }
.empty .actions, .empty > .btn { margin-top: 10px; }
.empty.big { padding: 64px 24px; background: var(--surface); border-style: solid; }
.empty.sm { padding: 24px; border: 0; }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 12px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: .84rem; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; } .crumbs a:hover { text-decoration: underline; }
.crumbs .ic { width: 12px; height: 12px; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; overflow: visible; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .main { border-left: 0; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); min-height: 0; }
  body[data-view="udstyr"] .side-sec:not(:has(.search)), body[data-view="lister"] .side-sec:has(> .nav-row) { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  body[data-view="udstyr"] .side-sec .side-h { display: none; }
  body[data-view="udstyr"] .side .nav-row, body[data-view="lister"] .side-sec > .nav-row { width: auto; flex: none; border: 1px solid var(--line); background: var(--surface); padding: 6px 11px; font-size: .85rem; }
  body[data-view="udstyr"] .side .nav-row .grow { flex: none; }
  body[data-view="udstyr"] .side .nav-row .row-edit { display: none !important; }
}

/* ---------- kategorikort ---------- */
.masonry { columns: 3 340px; column-gap: 16px; }
.masonry.wide { columns: 2 460px; }
.catcard { break-inside: avoid; margin-bottom: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 34%, var(--line)); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: inline-block; width: 100%; }
.cc-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 9%, transparent), transparent); cursor: pointer; text-align: left; border-bottom: 1px solid var(--line); }
.cc-head.static { cursor: default; }
.cc-head h3 { font-size: 1rem; }
.cc-head .cnt { font: 500 .8rem var(--f-mono); color: var(--muted); }
.cc-head .w { font-weight: 600; font-size: .9rem; }
.cc-head .caret { color: var(--muted); transition: transform .15s; width: 16px; height: 16px; }
.cc-head[aria-expanded="false"] .caret { transform: rotate(-90deg); }
.cc-head[aria-expanded="false"] { border-bottom: 0; }
.rows { display: flex; flex-direction: column; }
.g-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; min-height: 52px; }
.rows > :last-child { border-bottom: 0; }
.g-row:hover { background: var(--surface-2); }
.g-row.sel { background: var(--accent-soft); }
.g-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g-name b { font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.g-name small { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.g-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.g-w { font-weight: 600; font-size: .9rem; white-space: nowrap; min-width: 62px; text-align: right; }
.cc-add { display: flex; align-items: center; gap: 6px; width: 100%; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: .84rem; font-weight: 600; cursor: pointer; }
.cc-add:hover { color: var(--accent); background: var(--surface-2); }
.cbx { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2); flex: none; color: var(--accent-ink); }
.cbx.on { background: var(--accent); border-color: var(--accent); }
.cbx .ic { width: 13px; height: 13px; }
.selbar { position: sticky; top: calc(var(--hdr) + 8px); z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 16px; background: var(--ink); color: var(--bg); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.selbar .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.selbar .btn.danger { color: var(--bad); }
.selbar select { background: color-mix(in srgb, var(--bg) 12%, var(--ink)); color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.selbar .select-wrap .ic { color: var(--bg); opacity: .7; }
.tablecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
table.t td.cb { width: 36px; }
table.gear-t tbody tr { cursor: pointer; } table.gear-t tbody tr:hover { background: var(--surface-2); } table.gear-t tr.sel { background: var(--accent-soft); }
table.t tr.cur td { background: var(--accent-soft); }
table.t a { text-decoration: none; font-weight: 600; } table.t a:hover { color: var(--accent); }
.cell-item { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.cell-item > span { display: flex; flex-direction: column; min-width: 0; } .cell-item small { color: var(--muted); font-size: .78rem; }
.cell-item .tag { margin-left: 4px; }

/* ---------- modaler ---------- */
body.modal-open { overflow: hidden; }
.modal-bg { position: fixed; inset: 0; z-index: 3000; background: rgb(8 12 10 / .55); display: grid; place-items: start center; overflow-y: auto; padding: max(48px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); animation: fade .15s; }
.modal { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; width: 100%; max-width: 580px; padding: 24px; box-shadow: var(--shadow-lg); animation: pop .18s; }
.modal.sm { max-width: 460px; } .modal.lg { max-width: 760px; }
.modal h2 { margin: 0 40px 14px 0; font-size: 1.35rem; }
.modal > p { margin-bottom: 12px; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 22px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form.one { grid-template-columns: 1fr; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span:first-child { font-size: .8rem; font-weight: 600; color: var(--muted); }
.inline { display: flex; gap: 6px; } .inline input { flex: 1; } .inline select { width: auto; }
.toggles { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.hint { color: var(--muted); font-size: .84rem; margin-top: 8px; }
.catpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.cp { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; font-size: .84rem; font-weight: 500; min-width: 0; }
.cp span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp:hover { border-color: var(--line-2); background: var(--surface-2); }
.cp.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); font-weight: 700; box-shadow: inset 0 0 0 1px var(--c); }
.subpick { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface-2); border-radius: var(--r-sm); border: 1px solid var(--line); }
.iconpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; max-height: 210px; overflow-y: auto; padding: 2px; }
.ip { display: grid; place-items: center; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-2); }
.ip .ic { width: 20px; height: 20px; }
.ip:hover { border-color: var(--line-2); }
.ip.on { border-color: var(--c, var(--accent)); color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--c, var(--accent)); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.sw.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.cf-prev { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; font-size: 1.05rem; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 3100; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center; }
@media (max-width: 720px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .modal { padding: 20px 16px; } .modal-bg { padding-top: 16px; } .catpick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- pakkelister ---------- */
.lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; padding-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s; min-width: 0; }
.lcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.lc-bar { position: absolute; inset: 0 0 auto 0; height: 5px; display: flex; background: var(--sunk); }
.lc-bar i { display: block; height: 100%; }
.lc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lc-top h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.lc-date { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.lc-notes { color: var(--ink-2); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.lc-foot .muted { font-size: .8rem; }
.weightpill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.progress { flex: 1; height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; min-width: 40px; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .3s; }
.progress.lg { height: 8px; }
.lc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avatars { display: inline-flex; } .avatars .avatar { box-shadow: 0 0 0 2px var(--surface); } .avatars .avatar + .avatar { margin-left: -6px; }
.warn-dot { display: inline-flex; align-items: center; gap: 4px; color: var(--bad); font-size: .78rem; font-weight: 700; }
.packcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; gap: 10px; box-shadow: var(--shadow); }
.packcard .big { font-size: 2.1rem; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.catbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--sunk); gap: 2px; }
.catbar i { display: block; height: 100%; }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tiles3 > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 9px; min-width: 0; }
.tiles3 span { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.tiles3 b { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.packcard .classchip { align-self: flex-start; }
.ess { border-radius: var(--r); padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); }
.ess.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-soft); }
.ess.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-soft); }
.ess.ok { flex-direction: row; align-items: center; gap: 10px; background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); color: var(--ok); }
.ess.ok > span { display: flex; flex-direction: column; } .ess.ok small { color: var(--ink-2); font-size: .76rem; }
.ess.off { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.ess-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ess.bad .ess-h { color: var(--bad); } .ess.warn .ess-h { color: var(--warn); }
.ess-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); font-size: .88rem; font-weight: 600; }
.ess-row small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.ess-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.filtergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fbtn { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.fbtn .cnt { margin-left: auto; font: 500 .78rem var(--f-mono); color: var(--muted); }
.fbtn .ic { color: var(--muted); }
.fbtn.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.who { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500; margin-top: 6px; }
.hbar { height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; min-width: 40px; }
.hbar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.hbar.stack { display: flex; } .hbar.stack i { border-radius: 0; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; padding-right: 10px; }
.person button { border: 0; background: none; color: var(--muted); cursor: pointer; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; margin-right: -6px; }
.person button:hover { background: var(--sunk); color: var(--bad); }
.person button .ic { width: 12px; height: 12px; }
.person.owner { border-color: var(--accent); }
.person.member { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.list-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-input { font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--f-display) !important; letter-spacing: -.02em; border: 1px solid transparent !important; background: transparent !important; padding: 2px 6px !important; margin-left: -7px; flex: 1; min-width: 0; box-shadow: none !important; }
.title-input:hover { border-color: var(--line) !important; } .title-input:focus { border-color: var(--accent) !important; }
.packbar { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; font-size: .85rem; color: var(--muted); }
.packbar .progress { max-width: 460px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .search { width: 220px; }
.i-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 14px; border-bottom: 1px solid var(--line); min-height: 52px; }
.i-row:hover { background: var(--surface-2); }
.i-row.packed .i-name b { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.i-row.packed .badge { opacity: .55; }
.chk { position: relative; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.chk input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chk span { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background .12s, border-color .12s; }
.chk span .ic { width: 14px; height: 14px; }
.chk input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.chk input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.i-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.i-name b { font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.i-name small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.qtyx { font: 600 .8rem var(--f-mono); color: var(--accent); }
.i-ctl { display: flex; align-items: center; gap: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.qty button { border: 0; background: none; width: 24px; height: 26px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.qty button .ic { width: 12px; height: 12px; }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 18px; text-align: center; font-size: .8rem; }
.tg { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--line-2); cursor: pointer; }
.tg .ic { width: 15px; height: 15px; }
.tg:hover { color: var(--muted); }
.tg.worn.on { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.tg.cons.on { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.who-sel { width: auto !important; min-height: 28px !important; padding: 2px 6px !important; font-size: .78rem; max-width: 110px; }
.i-w { font-weight: 600; font-size: .88rem; white-space: nowrap; min-width: 58px; text-align: right; }
.x { border: 0; background: none; color: var(--muted); cursor: pointer; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; flex: none; opacity: .5; }
.x .ic { width: 14px; height: 14px; }
.i-row:hover .x, .x:focus-visible { opacity: 1; }
.x:hover { background: var(--bad-soft); color: var(--bad); }
@media (hover: none) { .x { opacity: 1; } }
@media (min-width: 1200px) { .i-ctl { opacity: .55; transition: opacity .15s; } .i-row:hover .i-ctl, .i-ctl:focus-within { opacity: 1; } }
.packmode .i-ctl, .packmode .x { display: none; }
.packmode .i-row { min-height: 58px; }
.packmode .chk span { width: 28px; height: 28px; border-radius: 8px; }
.catcard, .ilist { container-type: inline-size; }
@container (max-width: 560px) {
  .i-row { flex-wrap: wrap; row-gap: 4px; }
  .i-ctl { order: 5; width: 100%; padding-left: 64px; opacity: 1 !important; }
}
@media (max-width: 640px) { .toolbar .search { width: 100%; } }
.pick-tools { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pick-tools .search { flex: 1 1 220px; }
.picker-list { max-height: 54vh; overflow-y: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pick { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.pick:last-child { border-bottom: 0; }
.pick:hover { background: var(--surface-2); }
.pick .mono { font-size: .85rem; font-weight: 600; }
.pick .pk { color: var(--line-2); display: grid; } .pick .pk .ic { width: 22px; height: 22px; }
.pick:hover .pk { color: var(--accent); }
.pick.added { background: var(--ok-soft); } .pick.added .pk { color: var(--ok); }

/* ---------- analyse ---------- */
.an-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-bottom: 20px; align-items: center; }
.bigbase { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.bigbase .v { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.scale { width: 100%; height: auto; display: block; }
.scale .band { fill: var(--ok); } .scale .b1 { opacity: .75; } .scale .b2 { opacity: .5; } .scale .b3 { opacity: .28; }
.scale .s-l { fill: var(--muted); font: 600 11px var(--f-body); } .scale .s-t { fill: var(--muted); font: 10px var(--f-mono); }
.scale .s-m { stroke: var(--accent); stroke-width: 3; } .scale .s-mf { fill: var(--accent); }
.an-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.an-stats > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.an-stats span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.an-stats b { font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.an-stats small { color: var(--muted); font-size: .74rem; }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.donut-wrap { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; }
.donut { width: 100%; height: auto; }
.donut .d-l { fill: var(--muted); font: 700 10px var(--f-body); letter-spacing: 1.2px; }
.donut .d-v { fill: var(--ink); font: 600 18px var(--f-mono); }
.catbars { display: flex; flex-direction: column; gap: 10px; }
.cb-row { display: flex; align-items: center; gap: 10px; }
.cb-top { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; margin-bottom: 4px; }
.cb-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-top .mono { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.swaps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.swap { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.swap small { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.swap small .ic { width: 12px; height: 12px; }
.save { color: var(--ok); font-weight: 700; }
.legend { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; }
th.barcol { width: 26%; }
@media (max-width: 960px) { .an-hero, .an-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .donut-wrap { grid-template-columns: minmax(0, 1fr); } .donut { max-width: 200px; margin: 0 auto; } .an-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- oversigt ---------- */
.hello { margin-bottom: 22px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.home-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next { display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); transition: border-color .15s; }
a.next:hover { border-color: var(--line-2); }
.next-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.next h2 { font-size: 1.8rem; font-weight: 800; }
.next-w { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.next-w .big { font-size: 2.2rem; font-weight: 600; letter-spacing: -.03em; }
.next-w .muted { font-size: .88rem; }
.next-foot { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.next-warn, .next-ok { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm); font-size: .86rem; font-weight: 600; }
.next-warn { background: var(--bad-soft); color: var(--bad); } .next-ok { background: var(--ok-soft); color: var(--ok); }
.empty-next { align-items: flex-start; } .empty-next .ic.xl { color: var(--accent); }
.empty-next .btn { margin-top: 8px; }
.qa { display: flex; flex-direction: column; gap: 8px; } .qa h3 { margin-bottom: 4px; }
.qa-btn { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.qa-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.qa-btn > span:not(.badge) { flex: 1; display: flex; flex-direction: column; } .qa-btn small { color: var(--muted); font-size: .8rem; }
.qa-btn .chev { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; box-shadow: var(--shadow); min-width: 0; }
.stat > .ic { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--accent); }
.stat b { font-size: 1.35rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: .78rem; color: var(--muted); }
.stat:hover { border-color: var(--line-2); }
.mini-list { display: flex; flex-direction: column; }
.mini { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; text-decoration: none; font-size: .9rem; font-weight: 500; }
.mini:first-child { border-top: 0; }
.mini small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.mini:hover { color: var(--accent); }
.mini .mono { font-size: .8rem; }
.onboarding ol { margin: 8px 0 14px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
@media (max-width: 960px) { .home-grid, .home-grid.three { grid-template-columns: minmax(0, 1fr); } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- indstillinger ---------- */
.set-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 18px; position: sticky; top: calc(var(--hdr) + 6px); z-index: 10; padding: 6px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-radius: var(--r); width: fit-content; max-width: 100%; }
.set-nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .86rem; color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.set-nav a:hover { color: var(--ink); border-color: var(--line-2); }
.set-sec { margin-bottom: 18px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--hdr) + 64px); }
.set-h { display: flex; gap: 12px; align-items: flex-start; }
.set-h > .ic { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.set-h h2 { margin: 0; }
.set-h p { margin-top: 3px; max-width: 64ch; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.set-row > div:first-child { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
.set-row small { color: var(--muted); font-size: .84rem; }
.switch-row { cursor: pointer; }
.ess-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ess-grid.dim { opacity: .5; }
.ess-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); cursor: pointer; font-weight: 500; font-size: .9rem; }
.cat-admin { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.ca-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ca-row:last-child { border-bottom: 0; }
.ca-row.hidden { background: var(--surface-2); } .ca-row.hidden > .badge, .ca-row.hidden .grow > b { opacity: .5; }
.ca-row .grow > b { display: block; } .ca-row .grow > small { color: var(--muted); font-size: .8rem; }
.subchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.subchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .76rem; font-weight: 500; color: var(--ink-2); }
.subchip .ic { width: 13px; height: 13px; color: var(--c); }
.subchip.custom { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.subchip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; display: grid; margin-right: -3px; }
.subchip button:hover { color: var(--bad); }
.subchip.add { cursor: pointer; border-style: dashed; color: var(--muted); background: transparent; }
.subchip.add:hover { color: var(--accent); border-color: var(--accent); }
.ca-act { display: flex; gap: 2px; }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.set-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; max-width: 1080px; margin: 0 auto; padding: 56px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); align-items: center; }
.login-art { padding: 36px; border-radius: 18px; min-height: 440px; display: flex; flex-direction: column; justify-content: center; gap: 22px; color: #EEF3EF;
  background: radial-gradient(120% 90% at 85% 0%, #3C5A47 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, #6A3A1E 0%, transparent 60%), linear-gradient(160deg, #1B2A22, #0F1713); position: relative; overflow: hidden; }
.login-art::after { content: ""; position: absolute; inset: auto -10% -2px -10%; height: 42%; background: linear-gradient(transparent, rgb(0 0 0 / .25)); clip-path: polygon(0 100%, 0 62%, 14% 40%, 26% 58%, 41% 22%, 55% 50%, 68% 30%, 82% 55%, 100% 35%, 100% 100%); background-color: #0B120E; opacity: .85; }
.login-art > * { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 10px; font: 800 1.3rem var(--f-display); }
.login-brand .logo { color: #EEF3EF; --logo-cut: #1B2A22; }
.login-art h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: #fff; }
.login-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.login-art li { display: flex; align-items: center; gap: 10px; color: #D5DED8; }
.login-art li .ic { color: #F3A26E; }
.login-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.login-card h2 { font-size: 1.6rem; }
.login-card .form { margin-top: 10px; }
.auth-tabs { margin-bottom: 8px; }
.login-card .back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 4px; }
.pw { position: relative; display: flex; } .pw input { padding-right: 42px; } .pw .icon-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.auth-msg { font-size: .88rem; min-height: 1.2em; }
.auth-msg.ok { color: var(--ok); font-weight: 600; } .auth-msg.bad { color: var(--bad); font-weight: 600; }
.auth-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.auth-note { display: flex; gap: 6px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .login { grid-template-columns: minmax(0, 1fr); padding-top: 24px; gap: 20px; } .login-art { min-height: 0; padding: 26px; } }

/* ---------- ture og ruteplanlægger ---------- */
body[data-view="ture"] .banners:not(:empty) { padding-block: 8px; }
.planner { display: grid; grid-template-columns: 400px minmax(0, 1fr); height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr)); min-height: 520px; }
.pl-side { overflow-y: auto; padding: 18px 18px 40px max(16px, env(safe-area-inset-left, 0px)); border-right: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.pl-side > * { flex-shrink: 0; }
.pl-side .side-head { display: flex; align-items: center; gap: 6px; }
.pl-side h1 { font-size: 1.7rem; }
.pl-side h2 { font-size: 1.05rem; margin-bottom: 8px; }
.pl-side h3 { font-size: .92rem; margin-bottom: 4px; display: flex; gap: 8px; align-items: baseline; }
.pl-side h3.mt { margin-top: 12px; }
.pl-side .title-input { font-size: 1.5rem !important; }
.pl-side .sub { margin: 0; }
/* isolation: kortets egne lag (Leaflet bruger z-index op til 1000) holdes inde i kortet, så de aldrig ligger over pop op-vinduer */
.pl-map { position: relative; min-width: 0; min-height: 420px; isolation: isolate; z-index: 0; }
.tstats, .rstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.tstats > div, .rstats > div { background: var(--surface); padding: 10px; min-width: 0; display: flex; flex-direction: column; }
.tstats .v, .rstats .v { font: 600 1.1rem var(--f-mono); white-space: nowrap; }
.tstats .label, .rstats .label { font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rstats .v.small { font: 600 .86rem/1.2 var(--f-body); padding-top: 3px; white-space: normal; }
.rstats small { font-size: .7rem; color: var(--muted); }
.t-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.t-card { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.t-card:last-child { border-bottom: 0; }
.t-card:hover { background: var(--surface-2); }
.t-card b { font-weight: 600; display: block; }
.t-card span span { color: var(--muted); font-size: .8rem; }
.t-card .mono { font-size: .85rem; font-weight: 600; }
.t-card .line { width: 5px; height: 32px; border-radius: 3px; }
.t-list .empty { border: 0; }
.usage table { font-size: .84rem; }
.section { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.route-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.route-tools .btn { min-height: 32px; padding: 5px 10px; font-size: .82rem; }
.gchips { display: flex; flex-wrap: wrap; gap: 5px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--surface); }
.gchip button { border: 0; background: none; color: var(--muted); cursor: pointer; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; }
.gchip button .ic { width: 12px; height: 12px; }
.gchip button:hover { color: var(--bad); background: var(--bad-soft); }
.stackbar { display: flex; height: 9px; border-radius: 999px; overflow: hidden; background: var(--sunk); gap: 2px; }
.stackbar i { display: block; height: 100%; }
.legend-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; font-size: .8rem; }
.legend-list li { display: flex; align-items: center; gap: 6px; }
.legend-list .mono { margin-left: auto; color: var(--muted); font-size: .74rem; }
.ldot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: none; }
svg.ele { width: 100%; height: auto; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); touch-action: none; }
svg.ele .grid { stroke: var(--line); stroke-width: 1; }
svg.ele .ax { fill: var(--muted); font-size: 9px; font-family: var(--f-mono); }
svg.ele .area { fill: var(--accent); opacity: .18; }
svg.ele .ln { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
svg.ele .cur { stroke: var(--ink); stroke-width: 1; }
svg.ele .dot { fill: var(--ink); }
svg.ele .lbl { fill: var(--ink); font-size: 10px; font-family: var(--f-mono); font-weight: 600; }
.map-wrap { position: absolute; inset: 0; }
.lmap { position: absolute; inset: 0; background: var(--sea); }
.map-msg { position: absolute; inset: 0; z-index: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--muted); background: var(--surface-2); }
.map-msg b { color: var(--ink); font-size: 1.05rem; } .map-msg span { max-width: 44ch; } .map-msg .ic.xl { color: var(--bad); }
.map-search { position: absolute; top: 12px; left: 12px; z-index: 500; width: min(320px, calc(100% - 24px)); }
.map-search input { width: 100%; box-shadow: var(--shadow-lg); padding: 9px 12px; border-radius: 999px; padding-left: 16px; }
.map-results { margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); max-height: 50vh; overflow-y: auto; }
.mr { display: block; width: 100%; text-align: left; padding: 9px 13px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.mr:hover { background: var(--sunk); }
.mr b { display: block; font-weight: 600; } .mr span { font-size: .75rem; color: var(--muted); }
.mr-msg { padding: 10px 13px; color: var(--muted); font-size: .85rem; }
.map-ctl { position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.map-ctl .seg { padding: 0; border: 0; background: none; }
.map-base { position: relative; display: inline-flex; align-items: center; }
.map-base .ic { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.map-base select { padding: 7px 12px 7px 32px; min-height: 36px; border-radius: 999px; font-weight: 600; font-size: .84rem; box-shadow: var(--shadow-lg); width: auto; }
.tgl { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--muted); box-shadow: var(--shadow-lg); }
.tgl[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-lg); }
.map-hint { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: var(--bg); padding: 8px 15px; border-radius: 999px; font-size: .82rem; font-weight: 500; max-width: calc(100% - 120px); text-align: center; pointer-events: none; box-shadow: var(--shadow-lg); }
.wp { display: grid; place-items: center; }
.wp span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--f-body); color: #fff; border: 2.5px solid #fff; box-shadow: 0 1px 5px rgb(0 0 0 / .45); background: #E8762E; cursor: grab; }
.wp.start span { background: #2F7D4E; } .wp.end span { background: #17201B; }
.wp.via span { width: 20px; height: 20px; margin: 3px; font-size: 10px; }
.pop { display: flex; flex-direction: column; gap: 4px; min-width: 150px; font-family: var(--f-body); }
.pop b { font-size: .95rem; } .pop span { font-size: .8rem; color: var(--muted); }
.pop .btn { margin-top: 6px; justify-content: center; }
.leaflet-container { font-family: var(--f-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.leaflet-bar a { background: var(--surface); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-control-attribution { font-size: 10px; }
@media (max-width: 900px) {
  .planner { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pl-map { order: -1; height: 62vh; }
  .pl-side { border-right: 0; overflow: visible; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
  .map-ctl { top: 60px; } .map-search { width: calc(100% - 24px); }
  .map-hint { max-width: calc(100% - 80px); bottom: 20px; }
}
@media (max-width: 480px) { .tstats .v { font-size: 1rem; } .rstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.boot-fail { max-width: 640px; margin: 48px auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 12px; }
.boot-fail ul { margin: 0; padding-left: 20px; color: var(--bad); }

/* ---------- kort: off-road, punkter og højreklik ---------- */
.tgl { display: inline-flex; align-items: center; gap: 6px; }
.tgl .ic { width: 15px; height: 15px; }
.map-wrap.placing .lmap, .map-wrap.placing .leaflet-container { cursor: crosshair; }
.poi-mk { background: none; border: 0; }
.poi-mk span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .4); color: #fff; }
.poi-mk span .ic { width: 15px; height: 15px; transform: rotate(45deg); }
.ctx { position: absolute; z-index: 1200; min-width: 230px; max-height: calc(100% - 12px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.ctx[hidden] { display: none; }
.ctx button { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; text-align: left; font-size: .88rem; font-weight: 500; color: var(--ink); }
.ctx button .ic { width: 17px; height: 17px; color: var(--c, var(--muted)); }
.ctx button:hover, .ctx button:focus-visible { background: var(--sunk); outline: none; }
.ctx hr { border: 0; border-top: 1px solid var(--line); margin: 5px 2px; }
.ctx-h { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 10px 2px; }
.ctx-ll { font-size: .72rem; color: var(--muted); padding: 4px 10px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.poi-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.poi-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .7rem; font-weight: 600; color: var(--ink-2); }
.poi-btn .ic { width: 18px; height: 18px; color: var(--c); }
.poi-btn:hover { border-color: var(--line-2); }
.poi-btn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--surface)); box-shadow: inset 0 0 0 1px var(--c); }
.poi-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.poi-row { display: flex; align-items: center; gap: 4px; padding-right: 6px; border-bottom: 1px solid var(--line); }
.poi-row:last-child { border-bottom: 0; }
.poi-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; background: none; cursor: pointer; text-align: left; font-size: .86rem; }
.poi-go:hover { background: var(--surface-2); }
.poi-go b { display: block; font-weight: 600; } .poi-go small { display: block; color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poi-go .mono { font-size: .78rem; white-space: nowrap; }
.stages { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: 52px 1fr 1fr 1.2fr; gap: 8px; font-size: .84rem; align-items: baseline; }
.stage .mono { font-size: .82rem; }

/* ---------- udstyrsopslag og billeder ---------- */
.lbl-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.lbl-row .link { display: inline-flex; align-items: center; gap: 4px; }
.sug-wrap { position: relative; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.sug-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.sug-row:hover, .sug-row.on { background: var(--accent-soft); }
.sug-row b { display: block; font-weight: 600; } .sug-row small { color: var(--muted); font-size: .76rem; }
.sug-row .mono { font-weight: 600; font-size: .86rem; }
.sug-foot { padding: 7px 12px; font-size: .74rem; color: var(--muted); background: var(--surface-2); }
.imgbox { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.img-prev { width: 84px; height: 84px; border-radius: var(--r); border: 1px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--line-2); flex: none; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-act { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; align-items: flex-start; }
.img-act .inline { width: 100%; }
.img-act label.btn { cursor: pointer; }
.badge.img { overflow: hidden; background: var(--surface); }
.badge.img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- skabeloner ---------- */
.tpl-intro { margin: -8px 0 16px; max-width: 72ch; }
.tpl-pick { display: flex; flex-direction: column; gap: 6px; }
.tpl-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: var(--surface); }
.tpl-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpl-opt .cbx-ui { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2); color: transparent; flex: none; }
.tpl-opt .cbx-ui .ic { width: 13px; height: 13px; }
.tpl-opt input:checked + .cbx-ui { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tpl-opt input:focus-visible + .cbx-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.tpl-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tpl-opt b { display: block; } .tpl-opt small { color: var(--muted); font-size: .78rem; }

/* ---------- sammenfoldelige indstillinger ---------- */
details.set-sec { gap: 0; padding: 0; }
details.set-sec > summary { list-style: none; cursor: pointer; padding: 16px 18px; border-radius: var(--r); }
details.set-sec > summary::-webkit-details-marker { display: none; }
details.set-sec > summary:hover { background: var(--surface-2); }
details.set-sec .set-caret { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; margin-top: 4px; }
details.set-sec[open] .set-caret { transform: rotate(180deg); }
details.set-sec .set-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; }
details.set-sec[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.linkfield { padding: 0; background: none; border: 0; }
.linkfield input[type=url] { min-height: 34px; font-size: .86rem; background: var(--surface-2); }
.linkfield > span:first-child { font-size: .76rem !important; }
.linkfield > span:first-child small { font-weight: 500; margin-left: 6px; }
.link-msg { font-size: .84rem; min-height: 0; display: flex; align-items: center; gap: 8px; }
.link-msg:empty { display: none; }
.link-msg.ok { color: var(--ok); font-weight: 600; } .link-msg.bad { color: var(--bad); font-weight: 600; }
.link-alt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.link-alt:empty { display: none; }
.chip.alt { cursor: pointer; }

/* =====================================================================
   Skovbund C2: mørkegrøn topbjælke med trætoppe, mosbund, sidepanel til højre
   ===================================================================== */
h1, .title-input { font-weight: 700 !important; letter-spacing: -.025em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1; }
.btn, .icon-btn { border-radius: 999px; }
.btn { padding-inline: 16px; }
.btn.primary { box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 55%, #000); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea { border-radius: var(--r-sm); }
.search input[type=search] { border-radius: 999px; }
.card, .catcard, .tablecard, .lcard, .packcard, .empty.big { border-radius: var(--r); border-color: var(--line); box-shadow: var(--shadow); }
.catcard { border: 1px solid var(--line); }
.cc-head { background: none; border-bottom: 1px solid var(--line); padding: 13px 16px; }
.cc-head h3 { font-size: 1.04rem; }
.g-row, .i-row { padding-inline: 16px; }
.eyebrow.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: .12em; font-size: .72rem; }
.chip.on { background: var(--forest); border-color: var(--forest); color: var(--forest-ink); }
.chip.on .leafdot { box-shadow: 0 0 0 2px var(--forest-ink); }
.btn[aria-pressed="true"], .btn.on { background: var(--forest); color: var(--forest-ink); border-color: var(--forest); }
.progress i { background: var(--fern); }
.chk input:checked + span { background: var(--fern); border-color: var(--fern); }
.modal { border-radius: 20px; }
.leafdot { display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 60% 0 60% 0; background: var(--c, var(--fern)); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--fern)); flex: none; }

/* topbjælke */
.top { background: var(--forest); color: var(--forest-ink); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-bottom: 14px; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; background: var(--bg); pointer-events: none;
  clip-path: polygon(0 100%,0 55%,2% 20%,4% 60%,6% 10%,8% 55%,10% 30%,12% 65%,15% 5%,18% 60%,20% 30%,23% 70%,26% 15%,29% 60%,31% 35%,34% 68%,37% 8%,40% 58%,42% 30%,45% 66%,48% 12%,51% 60%,53% 32%,56% 70%,59% 10%,62% 58%,64% 34%,67% 68%,70% 14%,73% 60%,75% 30%,78% 66%,81% 8%,84% 58%,86% 36%,89% 70%,92% 12%,95% 60%,97% 30%,100% 55%,100% 100%); }
.top-in { max-width: 1440px; margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
.brand, .logo { color: var(--forest-ink); }
.brand { font-weight: 700; font-size: 1.35rem; }
.logo ellipse:last-child { fill: var(--berry); }
.tabs { justify-content: flex-start; }
.tabs a { color: var(--forest-mute); font-weight: 700; }
.tabs a:hover { color: var(--forest-ink); background: color-mix(in srgb, var(--forest-ink) 10%, transparent); }
.tabs a[aria-current="page"] { background: var(--forest-ink); color: var(--forest); box-shadow: none; }
.tabs a[aria-current="page"] .ic { color: var(--forest); }
.top .icon-btn { background: transparent; border-color: transparent; color: var(--forest-mute); }
.top .icon-btn:hover, .top .icon-btn.on { color: var(--forest-ink); background: color-mix(in srgb, var(--forest-ink) 10%, transparent); }
.top .avatar.me { background: var(--fern); color: #fff; box-shadow: 0 0 0 2px var(--forest), 0 0 0 3px var(--forest-mute); }
.top .btn { background: transparent; color: var(--forest-ink); border-color: color-mix(in srgb, var(--forest-ink) 30%, transparent); }
@media (max-width: 720px) {
  .top { padding-bottom: 10px; } .top::after { height: 11px; }
  .bottomnav a[aria-current="page"] { color: var(--fern); }
}
.main { border-left: 0; }

/* segmenteret valg som piller */
.seg.rnd { border-radius: 999px; padding: 4px; gap: 3px; background: var(--sunk); border: 0; }
.seg.rnd button { border-radius: 999px; padding: 7px 14px; min-height: 34px; color: var(--muted); font-weight: 700; }
.seg.rnd button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(23 48 31 / .16); }
.seg.rnd button .mono { font-weight: 500; font-size: .78rem; opacity: .75; }
.seg.rnd button .ic { width: 16px; height: 16px; }
.seg.scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }

/* sidelayout */
.c2 { max-width: 1440px; margin: 0 auto; padding: 14px max(24px, env(safe-area-inset-right, 0px)) 72px max(24px, env(safe-area-inset-left, 0px)); }
.c2-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.c2-head .eyebrow { margin-bottom: 4px; display: block; }
.c2-head .actions { gap: 8px; }
.c2-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.c2-tools .search { flex: 1 1 240px; max-width: 360px; }
.catchips { display: flex; gap: 6px; align-items: center; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.catchips .chip { flex: none; padding: 6px 12px; }
.catchips .chip .mono { font-size: .74rem; color: inherit; opacity: .7; }
.catchips .link { flex: none; margin-left: 6px; }
.c2-grid { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; margin-top: 20px; }
.c2-main { flex: 999 1 620px; min-width: 0; }
.c2-aside { flex: 1 1 290px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--hdr) + 14px); }
@media (max-width: 960px) { .c2-aside { position: static; max-width: none; } }
.c2-main .masonry { columns: 2 320px; }
.c2-main .masonry.wide { columns: 2 380px; }
.c2 .crumbs { margin-bottom: 4px; }
.c2 .toolbar { margin: 16px 0 0; }
.c2 .toolbar .search { width: 210px; }
.c2-main .packmode .i-row, .c2-main.packmode .i-row { min-height: 60px; }

/* skovskilt: mørkegrønt kort med stor vægt */
.sign { background: var(--forest); color: var(--forest-ink); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sign .eyebrow { color: var(--forest-mute); }
.sign-w { font-family: var(--f-mono); font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; }
.sign-t { font: 700 1.7rem/1 var(--f-display); }
.sign-foot { font-size: .85rem; color: var(--forest-mute); }
.sign .catbar { background: color-mix(in srgb, var(--forest-ink) 12%, transparent); }
.catbar.thick { height: 10px; }
.sign .legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: .84rem; color: var(--forest-ink); margin: 0; }
.sign .legend i.leafdot { width: 10px; height: 10px; border-radius: 60% 0 60% 0; margin: 0; }
.sign .legend .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sign .legend > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sign .legend b { margin-left: auto; font-weight: 400; color: var(--forest-mute); font-size: .8rem; white-space: nowrap; }
.side-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.sc-h { font: 700 1.06rem/1.2 var(--f-display); display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.sc-h .ic { color: var(--accent); }
.next-mini b { font-size: 1rem; }
.next-mini .link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.next-mini:hover { border-color: var(--line-2); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-size: .9rem; width: 100%; }
.kv:last-child { border-bottom: 0; }
.kv small { display: block; color: var(--muted); font-size: .76rem; }
.kv .save { color: var(--fern); font-weight: 600; white-space: nowrap; }
.fillcard { background: color-mix(in srgb, var(--fern) 9%, var(--surface)); border-color: color-mix(in srgb, var(--fern) 30%, var(--line)); }
.fillcard .sc-h .ic { color: var(--fern); }
.fillcard .btn { align-self: flex-start; margin-top: 4px; }
.side-card .who:first-of-type { margin-top: 2px; }
.side-card .hbar { margin-bottom: 6px; }
.hbar i { background: var(--fern); }
.side-card.ess { gap: 2px; }
.side-card.ess.bad { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.side-card.ess.bad .ess-h, .side-card.ess.warn .ess-h { font-family: var(--f-display); font-size: 1.06rem; }
.side-card.ess.ok { flex-direction: row; }
.side-card.ess.off { flex-direction: row; }
.sign.small { padding: 18px 20px; gap: 10px; }

/* pakkestatus pr. kategori */
.pstat { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; }
.pstat-n { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pstat-l { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ppill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; font-family: inherit; }
.ppill b { font-weight: 800; }
.ppill .mono { font-weight: 500; font-size: .74rem; opacity: .85; }
.ppill.full { background: var(--fern); color: #fff; }
.ppill.part { background: var(--fern-soft); color: var(--ink); }
.ppill.none { background: var(--surface); color: var(--muted); border: 1px dashed var(--line-2); }
.ppill.miss { background: var(--accent); color: var(--accent-ink); }
button.ppill { cursor: pointer; } button.ppill:hover { filter: brightness(1.08); }
.list-head { align-items: center; }
.list-head .pstat { flex: 0 1 560px; }
.next .pstat { justify-content: flex-start; }
.psegs { display: flex; gap: 4px; margin-top: 6px; }
.psegs i { flex: 1; height: 8px; border-radius: 4px; background: var(--sunk); }
.psegs i.full { background: var(--fern); } .psegs i.part { background: color-mix(in srgb, var(--fern) 45%, var(--surface)); }
.psegs i.none { background: var(--sunk); } .psegs i.miss { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }

/* nøgletal i en række */
.statstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 0; margin-top: 16px; overflow: hidden; }
.statstrip .stat { padding: 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.statstrip .stat:last-child { border-right: 0; }
.statstrip b { font-size: 1.65rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.statstrip b small { font-size: 1rem; color: var(--muted); }
.statstrip .lead b { color: var(--fern); }
.statstrip .progress { margin-top: 4px; }

/* tæt listevisning */
.dlist { padding: 4px 18px 12px; }
.drow { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 160px) minmax(0, 150px) minmax(0, 120px) 50px 80px; gap: 14px; align-items: center; width: 100%; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: .9rem; cursor: pointer; color: inherit; }
.drow > .dot { justify-self: center; }
.drow:hover { background: var(--surface-2); }
.drow.sel { background: var(--accent-soft); }
.drow:has(.cbx) { grid-template-columns: 20px 28px minmax(0, 1fr) minmax(0, 160px) minmax(0, 150px) minmax(0, 120px) 50px 80px; }
.drow .r { text-align: right; }
.dhead { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); cursor: default; padding-top: 12px; }
.dhead:hover { background: none; }
.dname { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.dname b { font-weight: 700; overflow-wrap: anywhere; }
.dthumb { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.dgroup { display: flex; align-items: center; gap: 10px; padding: 18px 6px 7px; border-bottom: 1px solid var(--line-2); }
.dgroup h3 { font-size: 1rem; }
.dgroup .mono.muted { font-size: .75rem; letter-spacing: .06em; }
.ilist { padding-bottom: 6px; }
.ilist .i-row { padding-inline: 6px; min-height: 46px; }
.ilist .rows > :last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .drow .h-lg { display: none; } .drow { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 150px) minmax(0, 130px) 76px; } .drow:has(.cbx) { grid-template-columns: 20px 28px minmax(0, 1fr) minmax(0, 150px) minmax(0, 130px) 76px; } }
@media (max-width: 640px) { .drow .h-md { display: none; } .drow { grid-template-columns: 28px minmax(0, 1fr) 70px; } .drow:has(.cbx) { grid-template-columns: 20px 28px minmax(0, 1fr) 70px; } .dlist { padding-inline: 10px; } }
@media (max-width: 720px) {
  .c2 { padding: 10px 16px 48px; }
  .c2-head .actions { width: 100%; }
  .list-head .pstat { justify-content: flex-start; flex-basis: 100%; }
  .statstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statstrip .stat:nth-child(2n) { border-right: 0; }
  .statstrip .stat { border-bottom: 1px solid var(--line); }
  .c2 .toolbar .search { width: 100%; }
}

/* automatisk udfyldning */
.fill-prog { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.fill-log { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.fill-log li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.fill-log li:last-child { border-bottom: 0; }
.fill-log small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.fill-log li.ok small { color: var(--fern); } .fill-log li.bad small { color: var(--bad); }
.fill-log .spinner { width: 12px; height: 12px; }
.statstrip .stat { display: flex; background: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; align-items: flex-start; text-align: left; }
.side-card.ess.warn { background: var(--surface); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.side-card.ess.warn .ess-h { color: var(--accent); }
.ess-row .btn.xs { flex: none; }
.ppill .pm { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-size: .72rem; line-height: 1; }
.ppill.part .pm { background: conic-gradient(var(--fern) 0 50%, transparent 0); box-shadow: inset 0 0 0 1.5px var(--fern); }
.ppill.none .pm { box-shadow: inset 0 0 0 1.5px currentColor; }
.ppill.full .pm, .ppill.miss .pm { background: rgb(255 255 255 / .22); }
.toolbar .icon-btn { width: 36px; height: 36px; }

/* ---------- ture: forside ---------- */
.ov-map { position: relative; height: clamp(300px, 44vh, 470px); margin-top: 16px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); isolation: isolate; z-index: 0; background: var(--sunk); }
.ov-map > * { height: 100%; }
.ov-map .map-search, .ov-map .map-hint { display: none !important; }
.tpin { background: none; border: 0; }
.tpin > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; pointer-events: auto; cursor: pointer; }
.tpin i { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .35); flex: none; }
.tpin.plan i { background: #fff; border-color: var(--c); }
.tpin b { font: 700 12px/1 var(--f-body); color: #fff; background: rgb(23 48 31 / .92); padding: 5px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgb(0 0 0 / .25); max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.tpin:hover b, .tpin:focus b { background: var(--accent); }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.tcard { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-left: 5px solid var(--c); }
.tc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; cursor: pointer; padding: 4px; border-radius: 12px; color: inherit; }
.tc-main:hover b { color: var(--accent); }
.tc-pin { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); flex: none; }
.tc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tc-body b { font: 700 1.02rem/1.25 var(--f-display); overflow-wrap: anywhere; }
.tc-body small { color: var(--muted); font-size: .8rem; }
.tc-ev { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .78rem; color: var(--ink-2); margin-top: 3px; }
.tc-ev > span { display: inline-flex; align-items: center; gap: 4px; }
.tc-ev .ic { width: 14px; height: 14px; color: var(--muted); }
.tc-km { text-align: right; font-weight: 600; white-space: nowrap; display: flex; flex-direction: column; }
.tc-km small { font-weight: 400; color: var(--muted); font-size: .74rem; }
.stars-s { color: #D9A531; letter-spacing: 1px; } .stars-s i { color: var(--line-2); font-style: normal; }
.evban { margin-bottom: 14px; }
.kv.static { cursor: default; }
.sc-h.sub-h { font-size: .92rem; margin-top: 10px; }
.tag.temp { background: color-mix(in srgb, #4E6A9C 14%, var(--surface)); color: #3E5788; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.temp { color: #A9BCE6; } }
:root[data-theme="dark"] .tag.temp { color: #A9BCE6; }

/* evaluering */
.seg.wrap { flex-wrap: wrap; }
.stars { display: flex; gap: 2px; }
.stars button { font-size: 1.7rem; line-height: 1; border: 0; background: none; color: var(--line-2); cursor: pointer; padding: 2px 3px; }
.stars button[aria-pressed="true"] { color: #D9A531; }
.ev-temp { display: flex; flex-direction: column; gap: 10px; }
.ev-g { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ev-gh { display: flex; align-items: center; gap: 10px; }
.ev-gh small { display: block; color: var(--muted); font-size: .76rem; }
.ev-gh .switch { font-size: .82rem; }
.tscale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.tscale button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; padding: 8px 4px; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--ink-2); line-height: 1.15; }
.tscale button:hover { border-color: var(--muted); }
.tscale .ts-2[aria-checked="true"] { background: #3E6BB5; border-color: #3E6BB5; color: #fff; }
.tscale .ts-1[aria-checked="true"] { background: #8FB2E3; border-color: #8FB2E3; color: #10223F; }
.tscale .ts0[aria-checked="true"] { background: var(--fern); border-color: var(--fern); color: #fff; }
.tscale .ts1[aria-checked="true"] { background: #F2B880; border-color: #F2B880; color: #3B1F05; }
.tscale .ts2[aria-checked="true"] { background: #D9622B; border-color: #D9622B; color: #fff; }
.tscale button { background-image: linear-gradient(to right, transparent, transparent); }
.tscale .ts-2 { border-bottom: 3px solid #3E6BB5; } .tscale .ts-1 { border-bottom: 3px solid #8FB2E3; } .tscale .ts0 { border-bottom: 3px solid var(--fern); } .tscale .ts1 { border-bottom: 3px solid #F2B880; } .tscale .ts2 { border-bottom: 3px solid #D9622B; }
.ev-used { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; max-height: 240px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.ev-u { display: flex; align-items: center; gap: 8px; font-size: .86rem; padding: 4px; cursor: pointer; }
.ev-u > span:not(.badge) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-u .badge { flex: none; }
.ev-u small { color: var(--muted); }
.ev-u input { accent-color: var(--fern); width: 16px; height: 16px; }
.ev-sum { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .86rem; }
.ev-sum > span { display: inline-flex; align-items: center; gap: 5px; }
.ev-sum .ic { width: 15px; height: 15px; color: var(--muted); }
.ev-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; }
.ev-list li { display: flex; align-items: center; gap: 8px; }
.ev-list small { margin-left: auto; color: var(--muted); }
.tsdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tsdot.ts-2 { background: #3E6BB5; } .tsdot.ts-1 { background: #8FB2E3; } .tsdot.ts0 { background: var(--fern); } .tsdot.ts1 { background: #F2B880; } .tsdot.ts2 { background: #D9622B; }
.tempnote { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: .84rem; }
.tempnote .ic { color: #4E6A9C; margin-top: 2px; }
@media (max-width: 560px) { .tscale { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tscale button { font-size: .68rem; padding: 7px 2px; } }
.tcards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.tcard { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 10px 8px; }
.tc-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 6px 4px 0 54px; min-height: 30px; }
.tc-foot .tc-ev { margin: 0; }
.tc-ev.muted { color: var(--muted); }
.field > .seg { align-self: flex-start; }
.map-ctl [hidden] { display: none !important; }
.tc-ev > span { white-space: nowrap; }
.ov-map [data-map="pois"], .ov-map [data-map="locate"] { display: none !important; }
@media (max-width: 720px) { .ov-map { height: 56vh; } .ov-map .map-ctl { transform: scale(.9); transform-origin: top right; } .ov-map [data-map="trails"] { display: none; } }

/* ---------- oversigt: vejr og året ---------- */
.home-grid .fc, .home-grid .year { display: flex; flex-direction: column; gap: 10px; }
.fc-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; }
.fc-d { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; }
.fc-d > span:first-child { text-transform: capitalize; }
.fc-d .ic { width: 22px; height: 22px; color: var(--fern); }
.fc-d b { font-size: .98rem; } .fc-d small { font-size: .7rem; color: #3E6BB5; }
.fc .btn { align-self: flex-start; }
.ygrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ygrid > div { display: flex; flex-direction: column; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ygrid b { font-size: 1.4rem; font-weight: 500; } .ygrid span { font-size: .76rem; color: var(--muted); }
.year a, .fc a { color: var(--accent); font-weight: 600; text-decoration: none; }
@media (max-width: 520px) { .ygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- slid ---------- */
.wear { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.wear .progress { min-width: 60px; }
.wear .mono { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.wear.warn .progress i { background: var(--warn); } .wear.bad .progress i { background: var(--bad); }
.usage-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tag.warnt { background: var(--warn-soft); color: var(--warn); } .tag.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- forslag ---------- */
.sug-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 55vh; overflow-y: auto; }
.sug-it { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sug-it:last-child { border-bottom: 0; }
.sug-it input { width: 18px; height: 18px; accent-color: var(--fern); flex: none; }
.sug-it small { display: block; color: var(--muted); font-size: .78rem; }
.sug-it .mono { font-size: .85rem; color: var(--muted); }
p.ess.ok { display: flex; gap: 8px; align-items: center; padding: 10px 12px; }

/* ---------- analyse: udvikling ---------- */
.trend { width: 100%; height: auto; display: block; margin: 4px 0 8px; }
.tr-grid { stroke: var(--line); stroke-width: 1; }
.tr-band { stroke: var(--fern); stroke-width: 1; stroke-dasharray: 4 5; opacity: .6; }
.tr-bl { font: 600 10px var(--f-body); fill: var(--fern); }
.tr-t { font: 10px var(--f-mono); fill: var(--muted); }
.tr-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.tr-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; cursor: pointer; }
.tr-dot:hover { fill: var(--accent); }
h3.mt { margin-top: 14px; margin-bottom: 6px; font-size: .95rem; }

/* ---------- ture: billeder og deling ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-bottom: 8px; }
.ph { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--sunk); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ph:hover img { transform: scale(1.05); }
.lightbox img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #000; }
.lb-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.lb-bar input { flex: 1; }
.tc-img { object-fit: cover; padding: 0; }
.sharedban { margin-top: 14px; }
.tpin.shared b { background: #17201B; }

/* ---------- offline ---------- */
.banner.offline { border-color: var(--warn); background: var(--warn-soft); }
.banner.offline > .ic { color: var(--warn); }

/* ---------- udskrift ---------- */
#printHost { display: none; }
@media print {
  body.printing > *:not(#printHost) { display: none !important; }
  body.printing #printHost { display: block; }
  body.printing { background: #fff; color: #000; padding: 0 !important; }
  @page { margin: 14mm; }
}
.print-sheet { font: 11pt/1.4 var(--f-body); color: #000; }
.print-sheet header { border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 12px; }
.print-sheet h1 { font-size: 20pt; } .print-sheet header p { font-size: 10pt; }
.print-cols { columns: 2; column-gap: 10mm; }
.print-cols section { break-inside: avoid; margin-bottom: 10px; }
.print-sheet h2 { font-size: 12pt; border-bottom: 1px solid #999; padding-bottom: 2px; margin: 8px 0 4px; display: flex; justify-content: space-between; }
.print-sheet h2 span { font: 9pt var(--f-mono); }
.print-sheet ul { list-style: none; margin: 0; padding: 0; }
.print-sheet li { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 10pt; }
.print-sheet .box { width: 12px; height: 12px; border: 1.5px solid #000; border-radius: 2px; display: inline-grid; place-items: center; font-size: 9pt; flex: none; }
.print-sheet .nm { flex: 1; } .print-sheet .w { font: 9pt var(--f-mono); }
.print-sheet em { color: #555; font-style: normal; font-size: 9pt; }
.print-t { width: 100%; border-collapse: collapse; font-size: 9.5pt; margin-bottom: 10px; }
.print-t th, .print-t td { border: 1px solid #999; padding: 4px 6px; text-align: left; vertical-align: top; }
.print-t th { background: #eee; }
.print-pois li { display: block; }
.print-sheet footer { margin-top: 14px; font-size: 8pt; color: #666; }
.print-sheet svg { max-width: 100%; }
.field[hidden] { display: none !important; }
.unused-ic { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 1px 6px 1px 4px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font: 600 .68rem/1.4 var(--f-mono); vertical-align: 2px; cursor: help; white-space: nowrap; }
.unused-ic .ic { width: 12px; height: 12px; }
.poi-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.poi-filter .eyebrow { margin-right: 4px; }
.poi-filter .chip .ic { color: var(--c); }
.poi-filter .chip.on { background: color-mix(in srgb, var(--c) 18%, var(--surface)); border-color: var(--c); color: var(--ink); }
.poi-filter .chip.on .ic { color: color-mix(in srgb, var(--c) 75%, #000); }
.poi-filter .chip:not(.on) { opacity: .7; }
.poi-filter + .ov-map { margin-top: 8px; }
.leaflet-interactive.seg-hit { cursor: copy; }
.tempfield[data-pad="1"] .tf-temp, .tempfield:not([data-pad="1"]) .tf-r { display: none !important; }
.rhint { font-size: .78rem; color: var(--muted); opacity: .85; margin-top: 4px; }

/* ---------- "Leder efter dit grej…": pandelampen i teltet ---------- */
.seek { display: flex; align-items: center; gap: 14px; padding: 6px 4px; color: var(--ink); }
.seek .seek-svg { width: 120px; height: 76px; flex: none; overflow: visible; }
.seek-t { display: flex; flex-direction: column; } .seek-t b { font-weight: 700; } .seek-t small { color: var(--muted); font-size: .8rem; }
.seek-ov { position: fixed; inset: 0; z-index: 3050; display: grid; place-items: center; padding: 20px; background: rgb(18 26 21 / .55); backdrop-filter: grayscale(.85) blur(2px); -webkit-backdrop-filter: grayscale(.85) blur(2px); animation: seek-in .2s ease-out; }
.seek-ov[hidden] { display: none; }
@keyframes seek-in { from { opacity: 0; } }
.seek-box { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 30px 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); max-width: min(92vw, 380px); }
.seek-box .seek-svg { width: min(78vw, 300px); height: auto; aspect-ratio: 186 / 118; margin-bottom: 4px; }
.seek-box b { font: 700 1.2rem/1.2 var(--f-display); }
.seek-box small { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.seek-box .btn { margin-top: 6px; }
body.seeking { overflow: hidden; }
.beamlt { transform-origin: 76px 56px; animation: swlt 3.0s ease-in-out infinite; }
@keyframes swlt { 0%,100% { transform: rotate(10.6deg); } 50% { transform: rotate(50.7deg); } }
.hdlt { transform-origin: 66px 62px; animation: hdlt 3.0s ease-in-out infinite; }
@keyframes hdlt { 0%,100% { transform: rotate(-5.0deg); } 50% { transform: rotate(5.0deg); } }
@keyframes litmuglt { 0%,100% { opacity:0 } 11.4% { opacity:0 } 18.4% { opacity:1 } 25.4% { opacity:0 } 74.6% { opacity:0 } 81.6% { opacity:1 } 88.6% { opacity:0 } }
.lit-muglt { opacity:0; animation: litmuglt 3.0s linear infinite; }
@keyframes glmuglt { 0%,100% { opacity:0; transform: scale(.2) } 14.4% { opacity:0; transform: scale(.2) rotate(0) } 18.4% { opacity:1; transform: scale(1.15) rotate(45deg) } 24.4% { opacity:0; transform: scale(.3) rotate(90deg) } 77.6% { opacity:0; transform: scale(.2) rotate(0) } 81.6% { opacity:1; transform: scale(1.15) rotate(45deg) } 87.6% { opacity:0; transform: scale(.3) rotate(90deg) } }
.gl-muglt { transform-box: fill-box; transform-origin: center; animation: glmuglt 3.0s linear infinite; }
@keyframes pgmuglt { 0%,100% { opacity:0; transform: scale(.3) } 17.4% { opacity:0; transform: scale(.3) } 18.4% { opacity:.9; transform: scale(.5) } 30.4% { opacity:0; transform: scale(2.2) } 80.6% { opacity:0; transform: scale(.3) } 81.6% { opacity:.9; transform: scale(.5) } 93.6% { opacity:0; transform: scale(2.2) } }
.pg-muglt { transform-box: fill-box; transform-origin: center; opacity:0; animation: pgmuglt 3.0s ease-out infinite; }
@keyframes litbootlt { 0%,100% { opacity:0 } 24.6% { opacity:0 } 31.6% { opacity:1 } 38.6% { opacity:0 } 61.4% { opacity:0 } 68.4% { opacity:1 } 75.4% { opacity:0 } }
.lit-bootlt { opacity:0; animation: litbootlt 3.0s linear infinite; }
@keyframes glbootlt { 0%,100% { opacity:0; transform: scale(.2) } 27.6% { opacity:0; transform: scale(.2) rotate(0) } 31.6% { opacity:1; transform: scale(1.15) rotate(45deg) } 37.6% { opacity:0; transform: scale(.3) rotate(90deg) } 64.4% { opacity:0; transform: scale(.2) rotate(0) } 68.4% { opacity:1; transform: scale(1.15) rotate(45deg) } 74.4% { opacity:0; transform: scale(.3) rotate(90deg) } }
.gl-bootlt { transform-box: fill-box; transform-origin: center; animation: glbootlt 3.0s linear infinite; }
@keyframes pgbootlt { 0%,100% { opacity:0; transform: scale(.3) } 30.6% { opacity:0; transform: scale(.3) } 31.6% { opacity:.9; transform: scale(.5) } 43.6% { opacity:0; transform: scale(2.2) } 67.4% { opacity:0; transform: scale(.3) } 68.4% { opacity:.9; transform: scale(.5) } 80.4% { opacity:0; transform: scale(2.2) } }
.pg-bootlt { transform-box: fill-box; transform-origin: center; opacity:0; animation: pgbootlt 3.0s ease-out infinite; }
@keyframes litsacklt { 0%,100% { opacity:0 } 18.3% { opacity:0 } 25.3% { opacity:1 } 32.3% { opacity:0 } 67.7% { opacity:0 } 74.7% { opacity:1 } 81.7% { opacity:0 } }
.lit-sacklt { opacity:0; animation: litsacklt 3.0s linear infinite; }
@keyframes glsacklt { 0%,100% { opacity:0; transform: scale(.2) } 21.3% { opacity:0; transform: scale(.2) rotate(0) } 25.3% { opacity:1; transform: scale(1.15) rotate(45deg) } 31.3% { opacity:0; transform: scale(.3) rotate(90deg) } 70.7% { opacity:0; transform: scale(.2) rotate(0) } 74.7% { opacity:1; transform: scale(1.15) rotate(45deg) } 80.7% { opacity:0; transform: scale(.3) rotate(90deg) } }
.gl-sacklt { transform-box: fill-box; transform-origin: center; animation: glsacklt 3.0s linear infinite; }
@keyframes pgsacklt { 0%,100% { opacity:0; transform: scale(.3) } 24.3% { opacity:0; transform: scale(.3) } 25.3% { opacity:.9; transform: scale(.5) } 37.3% { opacity:0; transform: scale(2.2) } 73.7% { opacity:0; transform: scale(.3) } 74.7% { opacity:.9; transform: scale(.5) } 86.7% { opacity:0; transform: scale(2.2) } }
.pg-sacklt { transform-box: fill-box; transform-origin: center; opacity:0; animation: pgsacklt 3.0s ease-out infinite; }
.ltmote { opacity:0; animation: ltmote 1.8s ease-in-out infinite; }
@keyframes ltmote { 0% { opacity:0; transform: translate(calc(var(--d) * .6), var(--o)); } 40% { opacity:1; } 100% { opacity:0; transform: translate(var(--d), calc(var(--o) * -1)); } }
@media (prefers-reduced-motion: reduce) { .seek-svg * { animation: none !important; } .seek-svg .beamlt { transform: rotate(30deg); } }

/* ---------- baggrunde til søgningen ---------- */
.seek-box.scene { position: relative; padding: 0; width: min(92vw, 420px); max-width: none; aspect-ratio: 360 / 320; overflow: hidden; background: #1C2C22; gap: 0; }
.scene-bg, .scene-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-fg { position: absolute; left: 15%; width: 70%; top: 28.6%; }
.seek-box.scene .scene-fg .seek-svg { width: 100%; height: auto; margin: 0; }
.scene-text { position: absolute; left: 0; right: 0; bottom: 0; min-height: 25%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; padding: 4px 16px 10px; color: #fff; background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / .5) 40%); text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.scene-text b { font: 700 1.15rem/1.2 var(--f-display); color: #fff; }
.scene-text small { color: rgb(255 255 255 / .9) !important; font-size: .85rem; max-width: 100%; text-align: center; line-height: 1.35; }
.scene-text small .site { display: block; font-size: .74rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-text .btn { margin-top: 5px; min-height: 26px; padding: 2px 14px; background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .35); color: #fff; text-shadow: none; }
.scene-text .btn:hover { background: rgb(255 255 255 / .28); }
.sc-star { animation: sc-tw 3s ease-in-out infinite; } @keyframes sc-tw { 50% { opacity: .25; } }
.sc-fly { fill: #F8F38A; animation: sc-fly 2.4s ease-in-out infinite; } @keyframes sc-fly { 0%, 100% { opacity: .1; } 50% { opacity: 1; transform: translateY(-3px); } }
.sc-wave { animation: sc-wave 3s ease-in-out infinite; } @keyframes sc-wave { 50% { transform: translateX(-12px); } }
.sc-aurora { animation: sc-au 6s ease-in-out infinite; transform-origin: center; } .sc-aurora.a2 { animation-duration: 8s; animation-direction: reverse; }
@keyframes sc-au { 50% { transform: translateX(-14px) scaleY(1.12); opacity: .75; } }
.sc-cloud { animation: sc-cl 10s linear infinite alternate; } @keyframes sc-cl { to { transform: translateX(30px); } }
@media (prefers-reduced-motion: reduce) { .scene-bg * { animation: none !important; } }
.sc-mist { animation: sc-cl 12s ease-in-out infinite alternate; }

/* dagscenen: vandreren roder i rygsækken */
.dg-arm { animation: dg-dig .9s ease-in-out infinite; }
@keyframes dg-dig { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(2.5px, 3px); } 55% { transform: translate(-1px, -2.5px); } 75% { transform: translate(1.5px, 2px); } }
.dg-head { transform-origin: 92px 56px; animation: dg-nod .9s ease-in-out infinite; }
@keyframes dg-nod { 50% { transform: rotate(4deg); } }
.dg-body { transform-origin: 72px 110px; animation: dg-bob 1.8s ease-in-out infinite; }
@keyframes dg-bob { 50% { transform: rotate(1.5deg); } }
.dg-it { transform-box: fill-box; transform-origin: center; opacity: 0; animation: dg-pop 3.2s cubic-bezier(.25,.6,.45,1) infinite; }
.dg-it.i2 { animation-delay: .8s; } .dg-it.i3 { animation-delay: 1.6s; } .dg-it.i4 { animation-delay: 2.4s; }
@keyframes dg-pop {
  0% { opacity: 0; transform: translate(0, 6px) rotate(0) scale(.7); } 8% { opacity: 1; }
  35% { transform: translate(calc(var(--dx) * .5), var(--dy)) rotate(calc(var(--r) * .5)) scale(1); }
  62%, 88% { opacity: 1; transform: translate(var(--dx), var(--land)) rotate(var(--r)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--land)) rotate(var(--r)) scale(1); }
}
.ask-layer { position: fixed; inset: 0; z-index: 3200; display: grid; place-items: center; padding: 20px; background: rgb(18 26 21 / .5); }
.ask-layer[hidden] { display: none; }
.ask-box { background: var(--surface); border-radius: 18px; padding: 22px; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); }
.ask-box p { font: 600 1.05rem/1.4 var(--f-display); margin-bottom: 16px; overflow-wrap: anywhere; }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- administrator ---------- */
.adm-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.admin .statstrip .stat small { font-size: .74rem; }
.admin .seg { margin-top: 2px; }
.adm-list .drow { cursor: default; }
.adm-list .drow.flag { background: color-mix(in srgb, var(--bad) 8%, var(--surface)); }
.adm-act { display: flex; justify-content: flex-end; }
.wk { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 90px; }
.wk-c { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 2px; }
.wk-c i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--fern); }
.wk-c span { font-size: .62rem; color: var(--muted); }
.progress.warnbar i { background: var(--warn); }
.admin .kv.static .progress { max-width: 110px; }

/* ---------- profilbillede, billedvalg, underkategori-boks ---------- */
.avatar.has-img { padding: 0; overflow: hidden; background: var(--sunk); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar-link { display: inline-flex; text-decoration: none; }
.avatar-row { align-items: center; gap: 16px; }
.avatar-row .inline { margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.img-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.imgpick { max-width: 640px; }
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; margin-bottom: 14px; }
.ip-it { padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #fff; cursor: pointer; }
.ip-it:hover, .ip-it:focus-visible { border-color: var(--accent); }
.ip-it img { width: 100%; height: 100%; object-fit: contain; display: block; }
.subbox { max-width: 520px; }
.subbox h2 { font-size: 1.2rem; margin-bottom: 12px; }
.subbox .form { margin-bottom: 14px; }

/* ---------- tydeligere kategorier i grejskabet ---------- */
.c2-main .catcard { border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); border-top: 5px solid var(--c); }
.c2-main .cc-head { background: color-mix(in srgb, var(--c) 13%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); padding: 12px 16px; }
.c2-main .cc-head h3 { font-size: 1.08rem; font-weight: 700; }
.c2-main .cc-head .cnt { background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); border-radius: 999px; padding: 0 8px; font-size: .74rem; }
.c2-main .cc-head .w { color: color-mix(in srgb, var(--c) 45%, var(--ink)); }
.c2-main .cc-add { border-top-color: color-mix(in srgb, var(--c) 20%, var(--line)); }
.dgroup { margin-top: 12px; padding: 9px 12px; border-radius: 12px; border-bottom: 0; background: color-mix(in srgb, var(--c) 13%, var(--surface)); border-left: 5px solid var(--c); }
.dgroup:first-of-type { margin-top: 6px; }
.dgroup h3 { font-size: 1.04rem; font-weight: 700; }
.dgroup .leafdot { display: none; }
.dgroup + .drow, .dgroup + .rows { margin-top: 2px; }

/* ---------- Opret tur-menu ---------- */
.newmenu { position: relative; display: inline-block; }
.newmenu .btn .ic:last-child { width: 14px; height: 14px; margin-left: 2px; }
.nm-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 280px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(16,32,20,.18); padding: 6px; display: grid; gap: 2px; text-align: left; }
.nm-pop[hidden] { display: none; }
.actions.center .nm-pop { left: 50%; right: auto; transform: translateX(-50%); }
.nm-pop button { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.nm-pop button:hover, .nm-pop button:focus-visible { background: color-mix(in srgb, var(--fern, #3E7C4F) 12%, transparent); outline: none; }
.nm-pop button > .ic { width: 22px; height: 22px; color: var(--fern, #3E7C4F); flex: none; margin-top: 2px; }
.nm-pop b { display: block; } .nm-pop small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* ---------- Turplanlægger ---------- */
.tplan .c2-main { display: grid; gap: 14px; align-content: start; }
.dayc { padding: 18px 20px; border-top: 5px solid var(--fern, #3E7C4F); }
.dayc-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.dayc-h h2 { margin: 2px 0 0; font-size: 19px; }
.dayc-k { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.dayc-k b { color: var(--ink, inherit); font-size: 16px; }
.dayc-info { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 2px; font-size: 13.5px; color: var(--muted); }
.dayc-info span { display: inline-flex; gap: 6px; align-items: center; } .dayc-info .ic { width: 16px; height: 16px; }
.dayc-sec { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.dayc-sec h3 { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 15px; margin: 0 0 6px; }
.dayc-sec h3 .ic { width: 18px; height: 18px; color: var(--fern, #3E7C4F); }
.dayc-sec p { margin: 0; }
.kbar { height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; margin: 2px 0 10px; }
.kbar i { display: block; height: 100%; background: var(--fern, #3E7C4F); border-radius: 4px; transition: width .3s; }
.meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.meal { background: color-mix(in srgb, var(--fern, #3E7C4F) 6%, transparent); border-radius: 12px; padding: 10px; display: grid; gap: 6px; align-content: start; }
.meal-h { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13.5px; } .meal-h .ic { width: 16px; height: 16px; }
.meal-items { display: grid; gap: 4px; }
.mi { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 6px; align-items: center; font-size: 13px; background: var(--surface, #fff); border-radius: 8px; padding: 4px 6px; }
.mi small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.mi .link { padding: 0 2px; } .mi .link .ic { width: 13px; height: 13px; }
.meal select { font-size: 13px; padding: 5px 8px; }
.ok-t { color: var(--fern, #3E7C4F); } .warn-t { color: var(--accent, #B23A48); }
.ok-t .ic, .warn-t .ic { width: 15px; height: 15px; vertical-align: -3px; }
.chk-row { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 14px; cursor: pointer; }
.chk-row input { margin-top: 3px; accent-color: var(--fern, #3E7C4F); }
.chk-row input:checked + span { color: var(--muted); text-decoration: line-through; }
.chk-row .link { margin-left: auto; }
.shops { display: grid; gap: 2px; margin-top: 10px; max-height: 360px; overflow: auto; }
.tplan .side-card .btn.primary { margin-top: 8px; }
@media print { body.print-plan .topbar, body.print-plan .c2-aside, body.print-plan .actions, body.print-plan .crumbs, body.print-plan select, body.print-plan .mi .link, body.print-plan .dayc-sec .link { display: none !important; } body.print-plan .c2-grid { display: block; } body.print-plan .dayc { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; } }

/* ---------- kortsiden: sammenklappeligt ---------- */
.pl-map > #mapSlot { position: absolute; inset: 0; }
.planner.side-hidden { grid-template-columns: 0 minmax(0, 1fr); }
.planner.side-hidden .pl-side { display: none; }
.side-tgl { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 600; width: 22px; height: 56px; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 2px 2px 8px rgb(0 0 0 / .12); padding: 0; }
.side-tgl .ic { width: 14px; height: 14px; }
@media (max-width: 900px) { .side-tgl { display: none; } .planner.side-hidden .pl-side { display: flex; } }
.section.fold { gap: 0; }
.section.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0 4px; }
.section.fold > summary::-webkit-details-marker { display: none; }
.section.fold > summary h3 { margin: 0; }
.section.fold > summary > .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; flex: none; }
.section.fold:not([open]) > summary > .ic { transform: rotate(-90deg); }
.section.fold[open] > summary { margin-bottom: 8px; }
.section.fold[open] { display: flex; flex-direction: column; gap: 9px; }
.section.fold[open] > summary { margin-bottom: 0; }
.ov-list { max-height: 320px; overflow: auto; }
.wpdot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--f-body); color: #fff; background: #E8762E; flex: none; }
.wpdot.start { background: #2F7D4E; } .wpdot.end { background: #17201B; }
.map-ctl .ctl-fold { gap: 6px; }
.map-ctl .ctl-fold .ic:last-child { width: 12px; height: 12px; transition: transform .2s; }
.map-ctl.folded > :not(.ctl-fold) { display: none !important; }
.map-ctl.folded .ctl-fold .ic:last-child { transform: rotate(-90deg); }
.trail-pop .trail-r { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid var(--line); }
.trail-pop .trail-r:first-of-type { border-top: 0; }
.trail-pop .trail-r a { font-size: .8rem; font-weight: 600; color: var(--accent); }
.ctx .danger { color: var(--bad, #B23A48); }
/* planlægger: vejr og vandposter */
.wxcard { padding: 14px 18px; }
.wx-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wx-h .sc-h { margin: 0; }
.wx-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.wx-d { display: flex; flex-direction: column; gap: 3px; background: color-mix(in srgb, var(--fern, #3E7C4F) 7%, transparent); border-radius: 12px; padding: 10px; }
.wx-d > .ic { width: 22px; height: 22px; color: var(--fern, #3E7C4F); }
.wx-d small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.wxcard p { margin: 8px 0 0; }
.wlist { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.wlist li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; font-size: 13.5px; }
.wdot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #38BDF8; }
.wdot.sure { background: #38BDF8; }
.dayc-sec p + p { margin-top: 6px; }
.fill-pick li { padding: 0; } .fill-pick .chk-row { width: 100%; align-items: center; padding: 6px 4px; }
.fill-pick-head { display: flex; justify-content: flex-end; }
.linkfield .chk-row { margin-top: 6px; } .linkfield .chk-row small { display: block; }
/* fællestur */
.crew-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.crew-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.crewcard .btn.primary { margin: 2px 0 4px; }
.crewgear { padding: 14px 18px; }
.cw-table { display: grid; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cw-r { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px 12px; align-items: center; font-size: 13.5px; border-top: 1px solid var(--line); }
.cw-r:first-child { border-top: 0; }
.cw-r > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cw-hd { background: var(--surface-2, #f3f5f1); font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cw-items { list-style: none; padding: 0; margin: 12px 0 8px; display: grid; gap: 6px; }
.cw-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.cw-items li b { display: block; font-size: 14px; } .cw-items small { color: var(--muted); font-size: 12px; }
.cw-items select { width: auto; font-size: 13px; padding: 4px 8px; }
.crewgear > select { margin-top: 4px; font-size: 13px; }
@media (max-width: 640px) { .cw-r { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); } .cw-r > :nth-child(2), .cw-r > :nth-child(4) { display: none; } }
/* danske overnatningssteder */
/* admin: systemtjek og beskeder */
.diag .dg-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.diag .dg-row small { display: block; color: var(--muted); font-size: 11.5px; word-break: break-all; }
.dg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dg-row.ok .dg-dot { background: var(--fern, #3E7C4F); } .dg-row.bad .dg-dot { background: var(--accent, #B23A48); } .dg-row.run .dg-dot { background: #F5B53B; }
.diag h3.mt { margin-top: 14px; }
.msg-list { display: grid; gap: 10px; margin-top: 12px; }
.msg { padding: 14px 16px; } .msg.done { opacity: .6; }
.msg header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .msg header small { margin-left: auto; }
.msg p { margin: 8px 0; white-space: normal; }
.msg footer { display: flex; gap: 8px; align-items: center; }

/* ---------- offentlige sider: forside, funktioner, kontakt ---------- */
.lp { max-width: 1180px; margin: 0 auto; padding: 8px 20px 0; }
.lp h1 { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; margin: 6px 0 14px; }
.lp h2 { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; margin: 0 0 18px; }
.lp .eyebrow a { color: inherit; }
.lp-lead { font-size: 1.12rem; line-height: 1.55; max-width: 56ch; color: var(--ink); opacity: .85; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding: 34px 0 56px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.lp-cta.center { justify-content: center; }
.lp-hero-art { position: relative; padding-bottom: 30px; }
.lp-frame { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgb(23 48 31 / .35), 0 2px 6px rgb(0 0 0 / .06); }
.lp-frame .shot { display: block; width: 100%; height: auto; }
.lp-frame figcaption { padding: 12px 16px; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }
.lp-phone { position: absolute; right: -10px; bottom: -6px; width: 26%; min-width: 120px; border-radius: 22px; overflow: hidden; border: 6px solid #17301F; box-shadow: 0 20px 40px -10px rgb(0 0 0 / .45); background: #17301F; }
.lp-phone .shot { display: block; width: 100%; height: auto; aspect-ratio: 390 / 640; object-fit: cover; object-position: top; }
.lp-sec { padding: 48px 0; border-top: 1px solid var(--line); }
.lp-head { border-top: 0; padding: 30px 0 10px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lp-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.lp-feat h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.lp-feat p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.lp-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--fern, #3E7C4F) 14%, transparent); color: var(--fern, #3E7C4F); }
.lp-ic .ic { width: 22px; height: 22px; }
.lp-tabs { margin-bottom: 16px; flex-wrap: wrap; }
.lp-frame.big { max-width: 1060px; margin: 0 auto; }
.lp .center { text-align: center; } .lp p.center { margin-top: 20px; }
.lp-steps ol { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.lp-steps li span:last-child { color: var(--muted); font-size: .93rem; }
.lp-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--forest, #17301F); color: #fff; font-weight: 700; margin-bottom: 6px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.lp-faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .ic { width: 16px; height: 16px; transition: transform .2s; } .lp-faq details[open] summary .ic { transform: rotate(180deg); }
.lp-faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); line-height: 1.5; }
.lp-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.lp-row.flip .lp-row-txt { order: 2; }
.lp-row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-row li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.lp-row li .ic { width: 18px; height: 18px; color: var(--fern, #3E7C4F); flex: none; margin-top: 2px; }
.lp-contact { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; padding-bottom: 40px; }
.lp-form { padding: 22px; }
.lp-form .chips { flex-wrap: wrap; }
.lp-side { display: grid; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-msg.bad { color: var(--accent, #B23A48); } .ct-msg:empty { display: none; }
.lp-sent { text-align: center; padding: 30px 10px; } .lp-sent .ic { color: var(--fern, #3E7C4F); width: 44px; height: 44px; }
.lp-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 26px 0 40px; border-top: 1px solid var(--line); margin-top: 20px; color: var(--muted); font-size: .92rem; }
.lp-foot div { display: flex; flex-direction: column; gap: 2px; } .lp-foot b { color: var(--ink); }
.lp-foot nav { display: flex; gap: 18px; flex-wrap: wrap; } .lp-foot a { color: var(--ink); font-weight: 600; text-decoration: none; } .lp-foot a:hover { text-decoration: underline; }
.login-more { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; color: inherit; font-weight: 700; text-decoration: none; opacity: .9; } .login-more .ic { width: 16px; height: 16px; }
.top-login { margin-left: 4px; }
@media (max-width: 900px) {
  .lp-hero, .lp-row, .lp-contact { grid-template-columns: minmax(0, 1fr); }
  .lp-row.flip .lp-row-txt { order: 0; }
  .lp-steps ol { grid-template-columns: minmax(0, 1fr); }
  .lp-hero { padding-top: 14px; gap: 26px; }
  .lp-phone { width: 30%; right: 6px; }
}
/* samme indlæsning som udstyrssøgningen, til hele sider og kortet */
.scene-load { display: grid; place-items: center; padding: clamp(24px, 8vh, 80px) 16px; animation: seek-in .25s ease-out; }
.scene-load .seek-box.scene { width: min(88vw, 360px); box-shadow: var(--shadow-lg); }
.map-msg.scene-host { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); }
.map-msg.scene-host .scene-load { padding: 0; }
.chips.pick-cats { flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chips.pick-cats .chip { font-size: .82rem; padding: 4px 10px; }
.chips.pick-cats .chip .mono { opacity: .6; font-size: .72rem; }
/* Hvorfor Cairn */
.why-cairn { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 340px; margin: 0 auto; }
.cairn-art { width: min(70vw, 260px); height: auto; overflow: visible; }
.cairn-art .cs { animation: cairn-drop 7s cubic-bezier(.3, 1.4, .5, 1) infinite both; transform-box: fill-box; transform-origin: center bottom; }
.cairn-art .s1 { animation-delay: 0s; } .cairn-art .s2 { animation-delay: .35s; } .cairn-art .s3 { animation-delay: .7s; } .cairn-art .s4 { animation-delay: 1.05s; } .cairn-art .s5 { animation-delay: 1.4s; }
@keyframes cairn-drop { 0% { transform: translateY(-90px); opacity: 0; } 8% { transform: translateY(0); opacity: 1; } 86% { transform: translateY(0); opacity: 1; } 96%, 100% { transform: translateY(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cairn-art .cs { animation: none; } }
.why-art { display: grid; place-items: center; }
.seek-box.scene.art { width: min(100%, 460px); box-shadow: 0 30px 60px -20px rgb(23 48 31 / .4); border-radius: 22px; }
.lp-row.why p { line-height: 1.6; margin: 0 0 12px; max-width: 58ch; }
.app-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; padding: 28px 16px 40px; font-size: .88rem; }
.app-foot a { color: var(--muted); text-decoration: none; font-weight: 600; } .app-foot a:hover { color: var(--ink); text-decoration: underline; }
/* ---------- vand og indkøb langs ruten ---------- */
.rfcard { padding: 14px 18px 16px; display: grid; gap: 10px; }
.rfcard .wx-h .inline { gap: 6px; }
.rf-prog { display: grid; gap: 4px; } .rf-prog .progress { height: 6px; }
.rf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; }
.rf-chip.g-water { --c: #1F7FA0; } .rf-chip.g-possible { --c: #69B3C8; } .rf-chip.g-nature { --c: #2E9C84; } .rf-chip.g-shop { --c: #E8762E; }
.rf-chip.g-shop i { border-radius: 2px; } .rf-chip.g-possible i { background: none; border: 2px solid var(--c); }
.rf-chip:not(.on) { opacity: .5; } .rf-chip .mono { opacity: .7; font-size: .75rem; }
.rf-days { flex-wrap: wrap; }
.rf-strip { position: relative; height: 128px; background: var(--surface-2, #f4f6f1); border-radius: 12px; overflow: hidden; margin: 0 0 2px; }
.rf-band { position: absolute; top: 0; bottom: 0; } .rf-band.odd { background: color-mix(in srgb, var(--fern, #3E7C4F) 8%, transparent); }
.rf-band em { position: absolute; top: 3px; left: 6px; font: 600 11px var(--f-body); font-style: normal; color: var(--muted); white-space: nowrap; }
.rf-line { position: absolute; left: 0; right: 0; top: 68px; height: 4px; border-radius: 2px; background: #CFD8CB; }
.rf-gap { position: absolute; top: 67px; height: 6px; border-radius: 3px; background: #F2C14E; } .rf-gap.long { background: #D9534F; }
.rf-tick { position: absolute; top: 74px; bottom: 0; width: 1px; } .rf-tick::before { content: ""; position: absolute; top: 0; height: 6px; width: 1px; background: var(--line); }
.rf-tick em { position: absolute; bottom: 4px; transform: translateX(-50%); font: 10px var(--f-mono); font-style: normal; color: var(--muted); white-space: nowrap; }
.rf-unit { position: absolute; right: 6px; bottom: 4px; font: 10px var(--f-mono); color: var(--muted); }
.rf-m { position: absolute; width: 12px; height: 12px; margin-left: -6px; padding: 0; border: 2px solid #fff; border-radius: 50%; cursor: pointer; box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.rf-m.g-water { top: 48px; background: #1F7FA0; }
.rf-m.g-possible { top: 34px; width: 10px; height: 10px; margin-left: -5px; background: #fff; border: 2.5px solid #69B3C8; }
.rf-m.g-nature { top: 20px; background: #2E9C84; border-radius: 3px 10px; }
.rf-m.g-shop { top: 86px; background: #E8762E; border-radius: 3px; }
.rf-m.own { border-color: #17301F; }
.rf-m.sel, .rf-m:hover, .rf-m:focus-visible { z-index: 2; transform: scale(1.45); border-color: #17301F; outline: none; }
.rf-sum { margin: 0; }
.rf-list { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rf-day { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--surface-2, #f4f6f1); border-bottom: 1px solid var(--line); font-size: .86rem; }
.rf-row { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-bottom: 1px solid var(--line); }
.rf-row:last-child { border-bottom: 0; }
.rf-row.sel { background: color-mix(in srgb, var(--accent, #B23A48) 8%, transparent); }
.rf-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 6px; cursor: pointer; color: inherit; font: inherit; border-radius: 8px; }
.rf-main:hover { background: var(--surface-2, #f4f6f1); }
.rf-main b { display: block; font-size: .92rem; } .rf-main small { color: var(--muted); font-size: .78rem; }
.rf-k { min-width: 46px; text-align: right; font-size: .8rem; color: var(--muted); }
.rf-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #1F7FA0; }
.rf-row.g-possible .rf-dot { background: none; border: 2px solid #69B3C8; } .rf-row.g-nature .rf-dot { background: #2E9C84; border-radius: 3px 10px; } .rf-row.g-shop .rf-dot { background: #E8762E; border-radius: 2px; }
.rf-none { padding: 10px 14px; margin: 0; }
.rf-set summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; list-style: none; }
.rf-set summary::-webkit-details-marker { display: none; } .rf-set summary .ic { width: 16px; height: 16px; }
.rf-set[open] { display: grid; gap: 8px; } .rf-set[open] summary { margin-bottom: 4px; }
@media (max-width: 640px) { .rf-strip { height: 120px; } .rf-row .btn.xs { padding: 4px 6px; font-size: .72rem; } }
.rf-tick.first em { transform: none; left: 4px; }
.rf-row { padding: 1px 10px 1px 2px; }
.rf-main { padding: 5px 6px; gap: 9px; } .rf-main b { font-size: .9rem; line-height: 1.25; } .rf-main small { line-height: 1.3; display: block; }
.rfcard .wx-h { flex-wrap: wrap; } @media (max-width: 640px) { .rfcard .wx-h .btn.ghost { display: none; } }
/* kort fra andre lande */
.map-countries { display: grid; gap: 2px; }
.map-c .flag { margin-right: 8px; font-size: 1.1rem; }
.map-c small.mono { font-size: .72rem; margin-top: 2px; }
.map-key { margin: 0 0 8px 34px; }
.map-ctl .ov-btns { display: contents; }
.map-suggest { position: absolute; left: 50%; transform: translateX(-50%); top: 64px; z-index: 520; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .85rem; max-width: calc(100% - 24px); }
.map-suggest[hidden] { display: none; }
.map-suggest span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .map-suggest { top: auto; bottom: 64px; } }
.map-region { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; background: var(--surface); }
.map-region > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.map-region > summary::-webkit-details-marker { display: none; }
.map-region > summary .muted { margin-left: auto; }
.map-region > summary .ic { width: 16px; height: 16px; transition: transform .2s; } .map-region:not([open]) > summary .ic { transform: rotate(-90deg); }
.map-region > .set-row { padding-left: 14px; padding-right: 14px; }
.map-note { margin: 0 14px 6px; }
/* Hvorfor Cairn: varden af udstyr og hjerteruten (afspilles én gang) */
.why-cairn { max-width: 380px; margin: 0 auto; }
.cairn-art { width: min(88vw, 360px); height: auto; overflow: visible; }
.cairn-art .cs { animation: none; opacity: 0; transform: translateY(-70px); }
.cairn-art.play .cs { animation: stone-land .55s cubic-bezier(.25, 1.35, .5, 1) var(--d) forwards; }
.cairn-art .cs-t { font: 700 13px var(--f-body); fill: #fff; opacity: 0; paint-order: stroke; stroke: rgb(0 0 0 / .18); stroke-width: 2px; }
.cairn-art.play .cs-t { animation: fade-in .4s ease calc(var(--d) + .45s) forwards; }
@keyframes stone-land { 0% { opacity: 0; transform: translateY(-70px); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
.heart-art { width: min(100%, 460px); height: auto; border-radius: 20px; box-shadow: 0 30px 60px -24px rgb(23 48 31 / .35); }
.heart-route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.heart-art.play .heart-route { animation: draw-route 2.8s cubic-bezier(.45, .05, .35, 1) .2s forwards; }
@keyframes draw-route { to { stroke-dashoffset: 0; } }
.hpin { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
.heart-art.play .hpin { animation: pin-pop .4s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d) + .25s) forwards; }
@keyframes pin-pop { to { opacity: 1; transform: scale(1); } }
.hp-ic .ic { width: 24px; height: 24px; color: #fff; }
.hp-t { font: 800 11px var(--f-body); fill: #fff; }
.hp-l { font: 700 11.5px var(--f-body); fill: #2B3A2F; paint-order: stroke; stroke: #EEF2EA; stroke-width: 4px; }
@media (prefers-reduced-motion: reduce) { .cairn-art .cs, .cairn-art .cs-t, .hpin { opacity: 1 !important; transform: none !important; animation: none !important; } .heart-route { stroke-dashoffset: 0 !important; animation: none !important; } }
.wx-src { font-size: .72rem !important; margin-top: 6px !important; } .wx-src a { color: inherit; }
.os-logo { position: absolute; left: 10px; bottom: 34px; z-index: 500; height: 22px; pointer-events: none; }

/* turoversigt: overblik og en ren liste over kommende og gennemførte ture */
.ov-sum { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.ovs { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.ovs .eyebrow { margin: 0; }
.ovs-next { border-left: 5px solid var(--c, var(--accent)); }
.ovs-name { font: 700 1.35rem/1.2 var(--f-display); text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; overflow-wrap: anywhere; }
.ovs-name:hover { color: var(--accent); }
.ovs-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: .88rem; }
.ovs .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ovs p.sm { margin: 0; }
.ovn-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ovn { display: flex; flex-direction: column; min-width: 0; }
.ovn b { font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.ovn span { font-size: .76rem; color: var(--muted); }
.when-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--fern) 15%, var(--surface)); color: color-mix(in srgb, var(--fern) 55%, var(--ink)); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.when-chip.late { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--ink-2); }
.ov-h { display: flex; align-items: baseline; gap: 8px; font: 700 1.05rem/1.2 var(--f-display); margin: 22px 0 8px; }
.ov-h:first-child, .evban + .ov-h { margin-top: 4px; }
.trows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.trow { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-bottom: 1px solid var(--line); position: relative; }
.trow:last-child { border-bottom: 0; }
.trow::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.tr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; cursor: pointer; padding: 6px; border-radius: 10px; color: inherit; }
.tr-main:hover b { color: var(--accent); }
.tr-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); flex: none; }
.tr-pin .ic { width: 17px; height: 17px; }
.tr-img { object-fit: cover; padding: 0; }
.tr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tr-body b { font: 700 .98rem/1.25 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-body small { color: var(--muted); font-size: .78rem; }
.tr-km { text-align: right; font-weight: 600; font-size: .9rem; white-space: nowrap; display: flex; flex-direction: column; }
.tr-km small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.tr-act { display: flex; align-items: center; gap: 6px; flex: none; width: 196px; justify-content: flex-end; }
.yr { margin-bottom: 10px; }
.yr > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; font-size: .9rem; }
.yr > summary::-webkit-details-marker { display: none; }
.yr > summary .ic { margin-left: auto; transition: transform .2s; color: var(--muted); }
.yr:not([open]) > summary .ic { transform: rotate(-90deg); }
@media (max-width: 720px) {
  .ov-sum { grid-template-columns: 1fr; }
  .ovn-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trow { flex-wrap: wrap; padding-right: 8px; }
  .tr-act { width: 100%; padding: 0 0 6px 52px; justify-content: flex-start; }
  .tr-act:empty { display: none; }
}

/* rundvisning */
.tour { position: fixed; inset: 0; z-index: 3000; pointer-events: none; }
.tour-dim { position: fixed; inset: 0; background: rgb(10 20 15 / .55); pointer-events: auto; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgb(10 20 15 / .55); outline: 3px solid var(--accent); outline-offset: 2px; pointer-events: auto; transition: left .25s, top .25s, width .25s, height .25s; }
.tour-card { position: fixed; pointer-events: auto; background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: 0 18px 50px rgb(0 0 0 / .3); padding: 18px 20px 16px; outline: none; transition: left .25s, top .25s; }
.tour-card.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)) !important; }
.tour-card h2 { font: 700 1.25rem/1.2 var(--f-display); margin: 2px 0 6px; padding-right: 28px; }
.tour-card p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.5; font-size: .93rem; }
.tour-card .eyebrow { margin: 0; color: var(--muted); font-size: .72rem; }
.tour-x { position: absolute; top: 10px; right: 10px; }
.tour-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.tour-btns .sp { flex: 1; }
.tour-card.welcome { text-align: center; padding: 26px 24px 20px; }
.tour-card.welcome h2 { padding: 0; font-size: 1.5rem; }
.tour-card.welcome .tour-btns { flex-direction: column; align-items: stretch; }
.tour-logo { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--fern) 16%, var(--surface)); color: var(--fern); margin-bottom: 6px; }
.tour-logo .ic { width: 26px; height: 26px; }
.tour-dots { display: flex; gap: 5px; margin: 4px 0 8px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.tour-dots i.done { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.tour-dots i.on { background: var(--accent); width: 18px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-card { transition: none; } }

/* forside: import og eksport af ruter */
.lp-gpx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
.lp-gpx-txt h2 { margin-top: 4px; }
.lp-gpx-txt p { color: var(--ink-2); line-height: 1.6; }
.lp-gpx-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.gf-col { display: flex; flex-direction: column; gap: 6px; }
.gf-h { font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.gf-app { padding: 6px 10px; border-radius: 10px; background: var(--sunk); font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gf-arrow { display: flex; flex-direction: column; align-items: center; color: var(--muted); font: 500 .68rem/1 var(--f-mono); }
.gf-arrow .ic { width: 20px; height: 20px; transform: rotate(90deg); }
.gf-cairn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--fern) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--fern) 35%, var(--surface)); text-align: center; max-width: 150px; }
.gf-cairn .ic { color: var(--fern); }
.gf-cairn small { font-size: .7rem; color: var(--ink-2); line-height: 1.3; }
@media (min-width: 721px) { .gf-mid { flex-direction: row; } .gf-arrow .ic { transform: none; } }
@media (max-width: 900px) { .lp-gpx { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .lp-gpx-flow { grid-template-columns: 1fr 1fr; } .gf-mid { grid-column: 1 / -1; grid-row: 2; } .gf-col:last-child { grid-row: 3; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } .gf-col:last-child .gf-h { width: 100%; } .gf-col:first-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } .gf-col:first-child .gf-h { width: 100%; } }
.lp-gpx-txt p + p { margin-top: 10px; }

/* trin for en tur: 1 rute, 2 planlæg turen, 3 evaluer */
.tsteps { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; }
.tsteps .ts { display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border-radius: 12px; color: var(--ink-2); text-decoration: none; min-width: 0; }
.tsteps .ts:hover { background: var(--sunk); }
.ts-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); font: 700 .85rem/1 var(--f-mono); flex: none; background: var(--surface); }
.ts-n .ic { width: 15px; height: 15px; }
.ts-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ts-t small { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ts-t b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-t i { font-style: normal; font-size: .7rem; color: var(--muted); }
.ts.on .ts-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.ts.on b { color: var(--ink); }
.ts.past .ts-n { background: color-mix(in srgb, var(--fern) 18%, var(--surface)); border-color: var(--fern); color: var(--fern); }
.ts-line { flex: 1; height: 2px; min-width: 10px; background: var(--line-2); border-radius: 2px; }
.tsteps.compact { gap: 2px; margin: 8px 0 12px; }
.tsteps.compact .ts { padding: 4px; gap: 6px; }
.tsteps.compact .ts-n { width: 24px; height: 24px; font-size: .75rem; }
.tsteps.compact .ts-t small, .tsteps.compact .ts-t i { display: none; }
.tsteps.compact .ts-t b { font-size: .78rem; }
.tsteps.compact .ts-line { min-width: 6px; }
@media (max-width: 560px) { .tsteps .ts-t small, .tsteps .ts-t i { display: none; } .tsteps .ts-t b { font-size: .78rem; } .tsteps .ts { padding: 4px; gap: 6px; } }
.next-step { margin: 18px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.next-step .btn.full { justify-content: center; width: 100%; }
.after-trip { border-top: 1px dashed var(--line-2); margin-top: 14px; padding-top: 10px; }
.after-trip > .eyebrow { margin: 0 0 4px; color: var(--muted); font-size: .7rem; }

/* evalueringssiden */
.evgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.evc { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.evc h2 { display: flex; align-items: center; gap: 8px; font: 700 1.08rem/1.2 var(--f-display); margin: 0; }
.evc h2 .ic { color: var(--muted); }
.evc p { margin: 0; }
.evc-wide { grid-column: 1 / -1; }
.evc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ev-stars-c { align-items: flex-start; }
.bigstars { display: flex; gap: 4px; margin-top: 4px; }
.bigstars button { font-size: 2.4rem; line-height: 1; background: none; border: 0; padding: 2px; cursor: pointer; color: var(--line-2); transition: transform .12s, color .12s; }
.bigstars button[aria-pressed="true"] { color: #E3A317; }
.bigstars button:hover { transform: scale(1.12); }
.bigstars:hover button { color: #E3A317; }
.bigstars button:hover ~ button { color: var(--line-2); }
.bigstars-lbl { font-weight: 700; font-size: .95rem; }
.ev-temp2 { display: flex; flex-direction: column; gap: 12px; }
.ev-g2 { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.tsl-row { display: flex; align-items: center; gap: 10px; }
.tsl-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.tsl-ic.cold { background: color-mix(in srgb, #2F7FD8 16%, var(--surface)); color: #2F7FD8; }
.tsl-ic.warm { background: color-mix(in srgb, #D8452F 16%, var(--surface)); color: #D8452F; }
.tsl input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #2F7FD8 0%, #7DB7E8 25%, #4FAF6B 50%, #F0A35A 75%, #D8452F 100%); outline-offset: 4px; cursor: pointer; margin: 0; }
.tsl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 6px rgb(0 0 0 / .25); }
.tsl input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 6px rgb(0 0 0 / .25); }
.tsl.unset input[type="range"]::-webkit-slider-thumb { border-style: dashed; border-color: var(--muted); opacity: .8; }
.tsl.unset input[type="range"]::-moz-range-thumb { border-style: dashed; border-color: var(--muted); opacity: .8; }
.tsl input[type="range"]:disabled { opacity: .35; cursor: not-allowed; }
.tsl-lbl { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 44px; font-size: .72rem; color: var(--muted); text-align: center; }
.tsl-lbl span:first-child { text-align: left; } .tsl-lbl span:last-child { text-align: right; }
.tsl-lbl span.on { color: var(--ink); font-weight: 700; }
.tsl-now { font-size: .85rem; color: var(--ink-2); }
.tsl.unset .tsl-now { color: var(--muted); font-style: italic; }
.evbar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.evbar .sp { flex: 1; }
@media (max-width: 760px) { .evgrid { grid-template-columns: 1fr; } .tsl-lbl { margin: 0; font-size: .66rem; } .tsl-lbl span:nth-child(2), .tsl-lbl span:nth-child(4) { visibility: hidden; } }

/* kortværktøjer (højre side) */
.map-ctl { gap: 8px; }
.mt-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 52px; min-height: 48px; padding: 6px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgb(0 0 0 / .14); cursor: pointer; font: 600 .66rem/1 var(--f-body, inherit); }
.mt-btn .ic { width: 20px; height: 20px; }
.mt-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.mt-btn[aria-expanded="true"], .mt-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.mt-btn:disabled { opacity: .45; cursor: not-allowed; }
.mt-btn:not(:has(span)) { min-height: 44px; }

/* kortmenuen "Tilpas kort" */
.lyr { position: absolute; top: 12px; right: 74px; bottom: 12px; z-index: 600; width: min(380px, calc(100% - 96px)); background: var(--surface); border-radius: 18px; box-shadow: 0 14px 40px rgb(0 0 0 / .25); display: flex; flex-direction: column; overflow: hidden; }
.lyr-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.lyr-h h3 { font: 700 1.2rem/1.2 var(--f-display); margin: 0; }
.lyr-body { overflow-y: auto; padding: 0 18px 18px; overscroll-behavior: contain; }
.lyr-t { font: 700 .95rem/1.2 var(--f-display); margin: 16px 0 8px; }
.lyr-c { font-size: .8rem; color: var(--muted); margin: 8px 0 6px; font-weight: 600; }
.lyr .link.sm { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.lt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lt { display: flex; flex-direction: column; gap: 5px; align-items: stretch; background: none; border: 0; padding: 0; cursor: pointer; text-align: center; color: var(--ink-2); }
.lt-img, .lt-ic { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: var(--sunk); }
.lt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-img i { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: .9rem; background: var(--surface); border-radius: 6px; padding: 1px 3px; line-height: 1.2; }
.lt-ic { display: grid; place-items: center; color: var(--muted); }
.lt-ic .ic { width: 26px; height: 26px; }
.lt-n { font-size: .74rem; line-height: 1.2; overflow-wrap: anywhere; }
.lt:hover .lt-img, .lt:hover .lt-ic { border-color: var(--line-2); }
.lt.on .lt-img, .lt.on .lt-ic { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.lt.on .lt-ic { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.lt.on .lt-n { color: var(--ink); font-weight: 700; }
.pcats { display: flex; flex-wrap: wrap; gap: 6px; }
.pcat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .8rem; cursor: pointer; color: var(--ink-2); }
.pcat span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sunk); color: var(--muted); }
.pcat span .ic { width: 13px; height: 13px; }
.pcat.on { border-color: var(--c); color: var(--ink); font-weight: 600; }
.pcat.on span { background: var(--c); color: #fff; }
@media (max-width: 720px) { .lyr { right: 8px; left: 8px; top: auto; width: auto; max-height: 72%; bottom: 8px; } .mt-btn { width: 46px; min-height: 44px; } }

/* interessepunkter på kortet: farvet ikon og navn */
.poim { display: flex !important; align-items: center; gap: 4px; width: auto !important; height: auto !important; white-space: nowrap; }
.poim .pm { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .35); flex: none; }
.poim .pm .ic { width: 14px; height: 14px; }
.poim b { font: 700 12px/1.1 var(--f-body, system-ui); color: var(--c); text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.lmap.lowzoom .poim b { display: none; }

/* hjælp til kortplanlæggeren */
.helpp-h h2 { margin: 0 0 10px; }
.helpp-b { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); min-height: 380px; }
.helpp-nav { border-right: 1px solid var(--line); padding: 10px 12px 10px 0; display: flex; flex-direction: column; gap: 1px; max-height: 60vh; overflow-y: auto; }
.helpp-nav p { font-weight: 700; font-size: .85rem; margin: 12px 0 4px; }
.helpp-nav p:first-child { margin-top: 2px; }
.helpp-nav button { text-align: left; background: none; border: 0; padding: 6px 8px; border-radius: 8px; color: var(--ink-2); cursor: pointer; font-size: .88rem; }
.helpp-nav button:hover { background: var(--sunk); }
.helpp-nav button.on { color: var(--accent); font-weight: 700; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.helpp-c { padding: 14px 4px 14px 24px; }
.helpp-c h3 { font: 700 1.25rem/1.25 var(--f-display); margin: 0 0 10px; }
.helpp-c p { line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; }
@media (max-width: 680px) { .helpp-b { grid-template-columns: 1fr; } .helpp-nav { border-right: 0; border-bottom: 1px solid var(--line); max-height: 34vh; padding-right: 0; } .helpp-c { padding: 14px 0; } }

/* 3D-visning */
html.v3d-open { overflow: hidden; }
.v3d { position: fixed; inset: 0; z-index: 2500; background: #1a241e; color: #fff; }
.v3d .v3d-map { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.v3d-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #dfe8e1; font-size: .95rem; text-align: center; padding: 20px; }
.v3d-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.v3d-top > * { pointer-events: auto; }
.v3d-title { display: flex; flex-direction: column; background: rgb(20 30 24 / .72); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 14px; margin-right: auto; }
.v3d-title b { font: 700 1.05rem/1.2 var(--f-display); }
.v3d-title span { font-size: .78rem; opacity: .85; }
.v3d-ex { display: flex; align-items: center; gap: 8px; background: rgb(20 30 24 / .72); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 14px; font-size: .8rem; }
.v3d-ex input { width: 90px; accent-color: #E2621B; }
.v3d .icon-btn { background: rgb(20 30 24 / .72); color: #fff; border-color: transparent; }
.v3d-bar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, calc(100% - 28px)); display: flex; align-items: center; gap: 12px; background: rgb(20 30 24 / .8); backdrop-filter: blur(8px); border-radius: 18px; padding: 10px 14px; }
.v3d-play { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #E2621B; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / .35); }
.v3d-play .ic { width: 22px; height: 22px; }
.v3d-tl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.v3d-prof { position: relative; height: 40px; cursor: pointer; touch-action: none; border-radius: 8px; }
.v3d-prof:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.v3d-svg { width: 100%; height: 100%; display: block; }
.v3d-area { fill: rgb(255 255 255 / .22); }
.v3d-area.done { fill: #E2621B; }
.v3d-flat { fill: rgb(255 255 255 / .3); }
.v3d-cur { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; left: 0; box-shadow: 0 0 6px rgb(0 0 0 / .5); }
.v3d-read { display: flex; gap: 14px; font-size: .78rem; opacity: .92; }
.v3d-speed { flex: none; background: rgb(255 255 255 / .12); color: #fff; border-color: transparent; min-width: 48px; justify-content: center; }
.v3d-attr { position: absolute; right: 8px; bottom: 2px; margin: 0; font-size: .62rem; color: rgb(255 255 255 / .75); text-shadow: 0 0 3px #000; max-width: 60%; text-align: right; }
.v3d-attr a { color: inherit; }
.v3d-note { position: absolute; top: 78px; left: 50%; transform: translateX(-50%); background: rgb(20 30 24 / .85); padding: 8px 14px; border-radius: 12px; font-size: .82rem; margin: 0; }
.v3d-pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1C2A22; border: 2px solid #fff; color: #fff; font: 800 12px/1 system-ui; box-shadow: 0 2px 6px rgb(0 0 0 / .4); }
.v3d .maplibregl-ctrl-bottom-right { bottom: 96px; }
@media (max-width: 600px) { .v3d-ex span { display: none; } .v3d-ex input { width: 70px; } .v3d-bar { bottom: 10px; padding: 8px 10px; gap: 8px; } .v3d-play { width: 44px; height: 44px; } .v3d-title b { font-size: .92rem; } }
.lyr[hidden] { display: none !important; }

/* evaluering: listen over brugt udstyr */
.evpage .ev-used { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; max-height: none; border: 0; padding: 0; }
.evpage .ev-u { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; gap: 10px; background: var(--surface); }
.evpage .ev-u:has(input:not(:checked)) { opacity: .55; }
.evpage .ev-u:has(input:not(:checked)) > span:not(.badge) { text-decoration: line-through; }
.pop-facts { margin: 4px 0 2px; padding-left: 16px; font-size: .82rem; line-height: 1.45; }
.evc > label.btn { align-self: flex-start; }
.cover-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 650; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border-radius: 14px; padding: 8px 8px 8px 14px; box-shadow: 0 8px 24px rgb(0 0 0 / .2); font-size: .86rem; max-width: calc(100% - 140px); animation: popIn .25s ease both; }
.cover-hint[hidden] { display: none !important; }

/* ---------- bevægelse: blide overgange, der kun spiller, når noget faktisk skifter ---------- */
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -6px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes autofill { 0% { background-color: color-mix(in srgb, var(--fern) 30%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fern) 25%, transparent); } 100% { background-color: var(--surface); box-shadow: none; } }
#view.entering > * { animation: viewIn .32s cubic-bezier(.2, .7, .3, 1) both; }
#view.entering-soft > * { animation: fadeIn .25s ease both; }
details.just-opened > :not(summary) { animation: slideDown .25s ease both; }
.lyr:not([hidden]) { animation: slideLeft .22s cubic-bezier(.2, .7, .3, 1); }
.helpp-c > * { animation: fadeIn .2s ease both; }
.tour-card { animation: fadeIn .25s ease; }
input.autofilled, select.autofilled, textarea.autofilled { animation: autofill 1.4s ease-out; }
img.fi { opacity: 0; transition: opacity .35s ease; }
img.fi.ld { opacity: 1; }
.btn, .seg button, .tgl, .mt-btn, .lt-img, .pcat, .trow, .card { transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .15s; }
.btn:active, .mt-btn:active, .pcat:active { transform: scale(.97); }
.lp-tour .lp-frame.big img { animation: fadeIn .35s ease; }

/* forsidens demoer */
.lp-demos h2 { text-align: center; margin-top: 4px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.demo-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.demo-fig figcaption { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.dm-win { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg, 0 14px 40px rgb(0 0 0 / .12)); overflow: hidden; }
.dm-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.dm-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.dm-bar span { margin-left: 8px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.dm-body { padding: 16px; min-height: 270px; display: flex; flex-direction: column; gap: 12px; }
.dm-url { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 9px 12px; font: 500 .82rem/1.2 var(--f-mono, ui-monospace, monospace); color: var(--ink); }
.dm-url .dm-ic { color: var(--muted); display: grid; } .dm-url .dm-ic .ic { width: 16px; height: 16px; }
.dm-type { display: inline-block; white-space: nowrap; overflow: hidden; max-width: 0; }
.dm-caret { width: 2px; height: 1.1em; background: var(--accent); opacity: 0; }
.dm-status { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); opacity: 0; height: 0; overflow: hidden; }
.dm-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); }
.dm-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.dm-img { aspect-ratio: 1; border-radius: 12px; background: var(--sunk); display: grid; place-items: center; overflow: hidden; }
.dm-img svg { width: 82%; opacity: 0; transform: scale(.85); }
.dm-fields { display: grid; gap: 6px; }
.dm-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: .82rem; position: relative; }
.dm-f small { color: var(--muted); }
.dm-f b { font-weight: 700; opacity: 0; }
.dm-f::after { content: ""; position: absolute; right: 10px; top: 50%; width: 46%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--sunk); }
.dm-done { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: .8rem; font-weight: 600; color: var(--fern); opacity: 0; }
.dm-done .ic { width: 16px; height: 16px; }
.dm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; opacity: 0; }
.dm-list li span:nth-child(2) { flex: 1; }
.dm-b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--c); }
.dm-b .ic { width: 15px; height: 15px; }
.dm-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font-weight: 700; }
@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }
.dm-count { --n: 0; counter-reset: n var(--n); font-size: 1.3rem; }
.dm-count::after { content: counter(n) " g"; }
.dm-meter { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.dm-meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--fern), #E3A317); }
.dm-note { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.dm-chip { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--sunk); color: var(--ink-2); opacity: 0; }
.dm-chip.ok { background: color-mix(in srgb, var(--fern) 16%, var(--surface)); color: var(--fern); }
/* afspilning */
@keyframes typeIn { to { max-width: 100%; } }
@keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes statusIn { 0% { opacity: 0; height: 0; } 10%, 85% { opacity: 1; height: 18px; } 100% { opacity: 0; height: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fieldFill { to { opacity: 1; } }
@keyframes barOut { to { opacity: 0; } }
@keyframes imgPop { to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes count { to { --n: 3188; } }
@keyframes meter { to { width: 71%; } }
.dm-fill.play .dm-type { animation: typeIn 1.1s steps(30) .3s forwards; }
.dm-fill.play .dm-caret { animation: blink .6s 3 .2s; }
.dm-fill.play .dm-status { animation: statusIn 1s ease 1.35s both; }
.dm-fill.play .dm-spin { animation: spin .7s linear infinite; }
.dm-fill.play .dm-f { animation: autofill 1.2s ease-out var(--d) backwards; animation-fill-mode: none; animation-delay: var(--d); }
.dm-fill.play .dm-f b { animation: fieldFill .25s ease var(--d) forwards; }
.dm-fill.play .dm-f::after { animation: barOut .2s ease var(--d) forwards; }
.dm-fill.play .dm-img svg { animation: imgPop .5s cubic-bezier(.2, .8, .3, 1.2) 3.4s forwards; }
.dm-fill.play .dm-done { animation: fieldFill .4s ease 3.8s forwards; }
.dm-pack.play .dm-list li { animation: rowIn .4s cubic-bezier(.2, .7, .3, 1) var(--d) forwards; }
.dm-pack.play .dm-count { animation: count 1.9s linear .45s forwards; }
.dm-pack.play .dm-meter i { animation: meter 1.9s linear .45s forwards; }
.dm-pack.play .dm-chip { animation: fieldFill .4s ease 2.6s forwards; }
.dm-pack.play .dm-chip.ok { animation-delay: 2.85s; }
@media (max-width: 820px) { .demo-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  #view.entering > *, #view.entering-soft > *, details.just-opened > :not(summary), .lyr, .helpp-c > *, input.autofilled { animation: none !important; }
  .demo *, .demo.play * { animation: none !important; }
  .dm-type { max-width: 100%; } .dm-f b, .dm-done, .dm-list li, .dm-chip, .dm-img svg { opacity: 1; transform: none; } .dm-f::after { display: none; }
  .dm-count { --n: 3188; } .dm-meter i { width: 71%; }
}
