/* ==========================================================================
   ProTask design system — mockup runde 1
   Én fælles stylesheet for public site, kundeapp, håndværkerapp og admin.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Neutrale */
  --ink: #13211F;          /* primær tekst */
  --ink-2: #364442;        /* sekundær tekst */
  --muted: #5F6D6A;        /* meta, hjælpetekst */
  --faint: #8A9693;        /* placeholders, deaktiveret */
  --line: #DCE2E0;         /* standard border */
  --line-strong: #C3CCC9;  /* input border */
  --bg: #F3F5F4;           /* app-baggrund */
  --surface: #FFFFFF;      /* kort, paneler */
  --surface-2: #ECF0EE;    /* sekundær flade */
  --surface-3: #E2E8E6;

  /* Brand / primær handling */
  --primary: #0D5C55;
  --primary-hover: #094A44;
  --primary-press: #073B36;
  --primary-soft: #E1EFEC;
  --primary-line: #A9CFC8;
  --on-primary: #FFFFFF;
  --deep: #0B2B28;         /* mørke bånd, admin-sidebar */

  /* Semantik — farve er aldrig eneste bærer af betydning */
  --success: #1A7444;  --success-soft: #E4F3EA;  --success-line: #A8D6BB;
  --warning: #96560A;  --warning-soft: #FDF1DC;  --warning-line: #EBC98D;
  --danger:  #B3261E;  --danger-soft:  #FCEBE9;  --danger-line:  #EFB5AF;
  --info:    #22579C;  --info-soft:    #E7EFFA;  --info-line:    #AFC7E8;
  --neutral: #55625F;  --neutral-soft: #EDF0EF;  --neutral-line: #CDD4D2;

  /* Typografi */
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  --fs-h1: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem);
  --fs-h2: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  --fs-h3: 1.125rem;
  --fs-lead: 1.1875rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-meta: 0.8125rem;

  /* Spacing (4-pt grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;

  /* Radius — hierarki: små kontroller < kort < store flader */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;

  /* Skygger — bruges sparsomt */
  --shadow-1: 0 1px 2px rgba(19, 33, 31, .06);
  --shadow-2: 0 2px 6px rgba(19, 33, 31, .06), 0 10px 24px -12px rgba(19, 33, 31, .18);
  --shadow-3: 0 24px 60px -20px rgba(11, 43, 40, .35);

  --focus: 0 0 0 3px rgba(13, 92, 85, .35);
  --header-h: 68px;
  --w-marketing: 1440px;
  --w-app: 1440px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; color: var(--ink); background: var(--surface); font-feature-settings: "ss01" on; -webkit-font-smoothing: antialiased; }
body.app-bg { background: var(--bg); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-md); }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
[hidden] { display: none !important; }

/* ---------- Typografi ---------- */
.display { font-size: var(--fs-display); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.h1 { font-size: var(--fs-h1); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.h3 { font-size: var(--fs-h3); line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.body { font-size: var(--fs-body); }
.small { font-size: var(--fs-small); }
.meta { font-size: var(--fs-meta); color: var(--muted); line-height: 1.45; }
.label { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.muted { color: var(--muted); }
.prose p + p { margin-top: var(--s3); }
.measure { max-width: 64ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--w-marketing); margin-inline: auto; padding-inline: var(--s6); }
.container-app { width: 100%; max-width: var(--w-app); margin-inline: auto; padding-inline: var(--s6); }
@media (max-width: 640px) { .container, .container-app { padding-inline: var(--s4); } }
.stack > * + * { margin-top: var(--stack, var(--s4)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, var(--s3)); align-items: center; }
.split { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s6) 0; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .brand-mark { background: #fff; }
.brand-light .brand-mark svg path { stroke: var(--primary); }

/* ---------- Buttons ---------- */
.btn { --btn-h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-h); padding: 0 18px; border-radius: var(--r-md); border: 1px solid transparent; font-weight: 600; font-size: 0.9375rem; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; user-select: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-press); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #962019; color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: var(--danger-line); }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger); }
.btn-on-dark { background: #fff; color: var(--deep); }
.btn-on-dark:hover { background: #E7F1EF; color: var(--deep); }
.btn-outline-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-on-dark:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-sm { --btn-h: 36px; padding: 0 12px; font-size: 0.875rem; }
.btn-lg { --btn-h: 52px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-secondary.is-loading::after { border-color: var(--line-strong); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.icon-btn.bordered { border-color: var(--line-strong); background: var(--surface); }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: inherit; }
.link-btn:hover { text-decoration: underline; color: var(--primary-hover); }
.link-btn .icon { width: 16px; height: 16px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: var(--s5); }
.field-label { font-weight: 600; font-size: 0.9375rem; color: var(--ink); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.field-label .opt { font-weight: 400; color: var(--muted); font-size: var(--fs-small); }
.field-label .req { color: var(--danger); font-weight: 600; }
.field-help { font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }
.field-error { font-size: var(--fs-small); color: var(--danger); display: none; align-items: flex-start; gap: 6px; font-weight: 500; }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }
.field.has-error .field-error { display: flex; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field.has-error .choice-group, .field.has-error .chips { border-radius: var(--r-md); outline: 1px solid var(--danger-line); outline-offset: 4px; }
.input, .textarea, .select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .textarea:hover, .select:hover { border-color: #A5B1AE; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.input[disabled], .select[disabled], .textarea[disabled] { background: var(--surface-2); color: var(--faint); cursor: not-allowed; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.textarea-lg { min-height: 220px; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235F6D6A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-group .addon { display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--surface-2); color: var(--muted); font-size: var(--fs-small); font-weight: 500; white-space: nowrap; }
.input-with-icon { position: relative; }
.input-with-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-with-icon .input { padding-left: 42px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.field-row > .field + .field { margin-top: 0; }
.field-row-3 { grid-template-columns: 140px minmax(0, 1fr); }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0,1fr); } .field-row-3 { grid-template-columns: 120px minmax(0,1fr); } }
.char-count { font-size: var(--fs-meta); color: var(--muted); text-align: right; }
.char-count.is-low { color: var(--warning); }

/* Checkbox / radio */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.9375rem; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid #93A09C; background: var(--surface); border-radius: 5px; display: grid; place-items: center; cursor: pointer; transition: background .12s, border-color .12s; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input[type="checkbox"]:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type="radio"]:checked { background: var(--surface); border-width: 6px; }
.check input:focus-visible { outline: none; box-shadow: var(--focus); }
.check + .check { margin-top: var(--s3); }
.check .check-sub { display: block; color: var(--muted); font-size: var(--fs-small); }

/* Choice cards (radio/checkbox i kortform) */
.choice-group { display: grid; gap: var(--s3); }
.choice-group.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-group.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .choice-group.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 420px) { .choice-group.cols-2.stack-xs, .choice-group.cols-3 { grid-template-columns: minmax(0,1fr); } }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; min-height: 56px; }
.choice:hover { border-color: #93A09C; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-indicator { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #93A09C; margin-top: 1px; display: grid; place-items: center; background: var(--surface); }
.choice input[type="checkbox"] ~ .choice-indicator { border-radius: 5px; }
.choice .choice-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice .choice-title { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.choice .choice-desc { font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }
.choice .choice-icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.choice:has(input:checked) .choice-indicator { border-color: var(--primary); background: var(--primary); }
.choice:has(input:checked) .choice-indicator::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.choice input[type="checkbox"]:checked ~ .choice-indicator::after { width: 10px; height: 6px; border-radius: 0; background: none; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.choice:has(input:checked) .choice-icon { background: var(--surface); color: var(--primary); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice.compact { padding: 11px 14px; min-height: 48px; align-items: center; }
.choice.compact .choice-indicator { margin-top: 0; }

/* Chips (multi-select / underkategorier) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: all .12s; user-select: none; }
.chip:hover { border-color: #93A09C; background: var(--surface-2); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .icon { width: 16px; height: 16px; display: none; }
.chip:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip:has(input:checked) .icon { display: block; }
.chip:has(input:focus-visible) { box-shadow: var(--focus); }

/* Toggle */
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.9375rem; }
.toggle input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #B7C1BE; position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked { background: var(--primary); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:focus-visible { outline: none; box-shadow: var(--focus); }

/* Segmented (ja/nej/ved ikke) */
.segmented { width: max-content; max-width: 100%; align-self: flex-start; display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); padding: 3px; gap: 3px; flex-wrap: wrap; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 6px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); transition: background .12s; }
.segmented label:hover span { background: var(--surface-2); }
.segmented input:checked + span { background: var(--primary); color: #fff; }
.segmented input:focus-visible + span { box-shadow: var(--focus); }

/* Amount / range selector */
.range-wrap { display: flex; flex-direction: column; gap: 8px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--primary) var(--fill, 50%), var(--surface-3) var(--fill, 50%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: var(--shadow-1); cursor: pointer; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); cursor: pointer; }
.range:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- Upload ---------- */
.dropzone { border: 1.5px dashed #A9B5B2; border-radius: var(--r-lg); background: var(--surface); padding: var(--s8) var(--s6); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s3); transition: border-color .15s, background .15s; }
.dropzone.is-dragover { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .dz-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.dropzone .dz-actions { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; }
.dropzone.compact { padding: var(--s5); flex-direction: row; justify-content: center; text-align: left; }
.camera-only { display: none; }
@media (hover: none) and (pointer: coarse), (max-width: 640px) { .camera-only { display: inline-flex; } .desktop-only { display: none; } }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: var(--s3); }
.thumb { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.thumb.is-dragging { opacity: .45; }
.thumb.is-drop-target { box-shadow: 0 0 0 2px var(--primary); }
.thumb-img { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; cursor: grab; overflow: hidden; }
.thumb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-order .meta { white-space: nowrap; }
.thumb-badge { position: absolute; left: 8px; top: 8px; background: rgba(19,33,31,.82); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 5px; }
.thumb-del { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 6px; border: 0; background: rgba(255,255,255,.94); display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: var(--shadow-1); }
.thumb-del:hover { color: var(--danger); }
.thumb-progress { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(255,255,255,.6); }
.thumb-progress > span { display: block; height: 100%; background: var(--primary); width: 0; transition: width .2s; }
.thumb-foot { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.thumb-foot .input { min-height: 34px; padding: 6px 9px; font-size: var(--fs-small); }
.thumb-order { display: flex; justify-content: space-between; align-items: center; }
.thumb-order .icon-btn { width: 30px; height: 30px; }
.thumb-order .icon-btn .icon { width: 16px; height: 16px; }

.file-list { display: flex; flex-direction: column; gap: var(--s2); }
.file-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.file-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--info-soft); color: var(--info); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.file-name { font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: var(--fs-meta); color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.file-meta .ok { color: var(--success); display: inline-flex; gap: 4px; align-items: center; font-weight: 500; }
.file-meta .err { color: var(--danger); font-weight: 500; }
.file-bar { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.file-bar > span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.file-row.is-error { border-color: var(--danger-line); background: var(--danger-soft); }

/* ---------- Badges & status ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 9px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; border: 1px solid transparent; }
.badge .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.badge-neutral { background: var(--neutral-soft); color: var(--neutral); border-color: var(--neutral-line); }
.badge-primary { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }
.badge-success { background: var(--success-soft); color: var(--success); border-color: var(--success-line); }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-line); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.badge-info { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.badge-solid { background: var(--ink); color: #fff; }
.badge-new { background: var(--ink); color: #fff; }
/* StatusBadge: prik + tekst, samme betydning overalt */
.status { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 2px 10px 2px 9px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; border: 1px solid; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status-neutral { color: var(--neutral); background: var(--neutral-soft); border-color: var(--neutral-line); }
.status-info { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }
.status-warning { color: var(--warning); background: var(--warning-soft); border-color: var(--warning-line); }
.status-success { color: var(--success); background: var(--success-soft); border-color: var(--success-line); }
.status-danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.status-open { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-line); }
.status-open::before { box-shadow: 0 0 0 3px rgba(13,92,85,.18); }
.status-action::before { border-radius: 2px; transform: rotate(45deg); width: 6px; height: 6px; }

.verified { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-meta); font-weight: 600; color: var(--primary); }
.verified .icon { width: 15px; height: 15px; stroke-width: 2.2; }

/* ---------- Budpladser (signaturelement) ---------- */
.slots { display: flex; align-items: center; gap: 10px; }
.slot-track { display: flex; gap: 4px; }
.slot { width: 22px; height: 8px; border-radius: 3px; background: var(--surface-3); }
.slot.is-filled { background: var(--primary); }
.slot.is-extra { width: 12px; background: transparent; border: 1.5px dashed var(--line-strong); }
.slot.is-extra.is-filled { background: var(--primary-line); border: 0; }
.slots-text { font-size: var(--fs-small); font-weight: 600; color: var(--ink); white-space: nowrap; }
.slots-text span { color: var(--muted); font-weight: 400; }
.slots.lg .slot { width: 44px; height: 12px; border-radius: 4px; }
.slots.lg .slot.is-extra { width: 22px; }
.slots.is-full .slot.is-filled { background: var(--ink-2); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: var(--s6); }
@media (max-width: 640px) { .card-pad { padding: var(--s5); } }
.card-head { padding: var(--s5) var(--s6); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.card-body { padding: var(--s6); }
.card-foot { padding: var(--s4) var(--s6); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s3); background: #FAFBFB; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { color: inherit; border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.metric { padding: var(--s5); }
.metric-label { font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.metric-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
.metric-delta { font-size: var(--fs-meta); margin-top: 4px; color: var(--muted); }
.metric-delta.up { color: var(--success); }
.metric-delta.down { color: var(--danger); }

/* Fact rows / DataRow */
.facts { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; border-top: 1px solid var(--line); }
.facts > dt, .facts > dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 0.9375rem; }
.facts > dt { color: var(--muted); padding-right: var(--s4); }
.facts > dd { font-weight: 500; color: var(--ink); }
.facts.compact > dt, .facts.compact > dd { padding: 8px 0; font-size: var(--fs-small); }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts > dt { border-bottom: 0; padding-bottom: 0; } .facts > dd { padding-top: 2px; } }
.datarow { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.datarow:last-child { border-bottom: 0; }

/* ---------- Table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th { text-align: left; font-size: var(--fs-meta); font-weight: 600; color: var(--muted); background: #F7F9F8; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFBFB; }
.table .num { text-align: right; white-space: nowrap; }
@media (max-width: 720px) {
  .table-responsive thead { display: none; }
  .table-responsive, .table-responsive tbody, .table-responsive tr, .table-responsive td { display: block; width: 100%; }
  .table-responsive tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table-responsive tr:last-child { border-bottom: 0; }
  .table-responsive td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .table-responsive td::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-meta); font-weight: 500; text-align: left; }
  .table-responsive td.num { text-align: right; }
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; background: none; border: 0; padding: 12px 14px; font-weight: 600; font-size: 0.9375rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.tab .count { font-size: 12px; background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 1px 7px; font-weight: 600; }
.tab[aria-selected="true"] .count { background: var(--primary-soft); color: var(--primary); }
.tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--primary); border-radius: 6px 6px 0 0; }
.tabpanel { padding-top: var(--s5); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 18px 2px; font-weight: 600; font-size: 1.0625rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .2s; color: var(--muted); }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.accordion .acc-body { padding: 0 2px 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Dialog / Drawer ---------- */
dialog:not([open]) { display: none !important; }
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(11, 25, 23, .48); }
.dialog { width: min(520px, calc(100vw - 32px)); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); margin: auto; }
.dialog[open] { animation: dlg-in .18s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog-head { padding: var(--s6) var(--s6) 0; display: flex; justify-content: space-between; gap: var(--s4); align-items: flex-start; }
.dialog-body { padding: var(--s4) var(--s6) var(--s6); }
.dialog-foot { padding: var(--s4) var(--s6); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: var(--s3); flex-wrap: wrap; }
@media (max-width: 520px) { .dialog-foot { flex-direction: column-reverse; } .dialog-foot .btn { width: 100%; } }
.drawer { position: fixed; inset: 0 0 0 auto; height: 100%; width: min(420px, 100vw); margin: 0 0 0 auto; background: var(--surface); box-shadow: var(--shadow-3); flex-direction: column; }
.drawer[open] { display: flex; animation: drawer-in .22s ease-out; }
.drawer.left { inset: 0 auto 0 0; margin: 0 auto 0 0; }
.drawer.left[open] { animation-name: drawer-in-left; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-in-left { from { transform: translateX(-100%); } }
.drawer-head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.drawer-body { padding: var(--s5); overflow-y: auto; flex: 1; }
.drawer-foot { padding: var(--s4) var(--s5); border-top: 1px solid var(--line); display: flex; gap: var(--s3); }
.sheet { position: fixed; inset: auto 0 0 0; width: 100vw; max-height: 85vh; margin: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); flex-direction: column; }
.sheet[open] { display: flex; animation: sheet-in .22s ease-out; }
@keyframes sheet-in { from { transform: translateY(100%); } }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: 300; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px 13px 16px; background: var(--ink); color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-3); font-size: 0.9375rem; animation: toast-in .2s ease-out; }
.toast .icon { margin-top: 1px; }
.toast.success .icon { color: #7FD3A5; }
.toast.warning .icon { color: #F2C276; }
.toast.danger .icon { color: #F39B93; }
.toast.info .icon { color: #9DBFEA; }
.toast-title { font-weight: 600; }
.toast-text { color: rgba(255,255,255,.78); font-size: var(--fs-small); margin-top: 2px; }
.toast-close { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer; padding: 2px; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 820px) { .toast-region { bottom: 96px; } }

/* ---------- Inline alert ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid; font-size: 0.9375rem; line-height: 1.5; }
.alert > .icon { margin-top: 2px; }
.alert-title { font-weight: 600; color: var(--ink); }
.alert-text { color: var(--ink-2); }
.alert-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.alert-info { background: var(--info-soft); border-color: var(--info-line); }
.alert-info > .icon { color: var(--info); }
.alert-success { background: var(--success-soft); border-color: var(--success-line); }
.alert-success > .icon { color: var(--success); }
.alert-warning { background: var(--warning-soft); border-color: var(--warning-line); }
.alert-warning > .icon { color: var(--warning); }
.alert-danger { background: var(--danger-soft); border-color: var(--danger-line); }
.alert-danger > .icon { color: var(--danger); }
.alert-neutral { background: var(--surface-2); border-color: var(--line); }
.alert-neutral > .icon { color: var(--ink-2); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: var(--s12) var(--s6); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.empty-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); margin-bottom: var(--s2); }
.empty p { max-width: 46ch; color: var(--muted); }

/* ---------- Skeleton ---------- */
.skel { background: linear-gradient(90deg, var(--surface-2) 0%, #F6F8F7 40%, var(--surface-2) 80%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 6px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.skel-line { height: 12px; }
.skel-title { height: 20px; width: 60%; }

/* ---------- Progress ---------- */
.progress { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 8px; transition: width .3s ease; }
.progress.thin { height: 4px; }
.progress.is-success > span { background: var(--success); }
.progress.is-warning > span { background: #C77D18; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.page-btn { min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--r-md); border: 1px solid transparent; background: none; cursor: pointer; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); display: inline-grid; place-items: center; }
.page-btn:hover { background: var(--surface-2); }
.page-btn[aria-current="page"] { background: var(--ink); color: #fff; }
.page-btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- Filter bar ---------- */
.filterbar { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.875rem; font-weight: 500; cursor: pointer; }
.filter-pill:hover { background: var(--surface-2); }
.filter-pill.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.filter-pill .icon { width: 15px; height: 15px; }

/* ---------- Timeline / activity ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 1px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline li.is-done::after { background: var(--primary); border-color: var(--primary); }
.timeline li.is-current::after { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline li.is-warning::after { background: var(--warning); border-color: var(--warning); }
.timeline .tl-time { font-size: var(--fs-meta); color: var(--muted); }
.timeline .tl-title { font-weight: 600; font-size: 0.9375rem; }
.timeline .tl-text { font-size: var(--fs-small); color: var(--ink-2); }

.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity li:last-child { border-bottom: 0; }
.activity .act-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.activity .act-icon .icon { width: 17px; height: 17px; }
.activity .act-time { font-size: var(--fs-meta); color: var(--muted); white-space: nowrap; }

.audit { font-size: var(--fs-small); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: #FAFBFB; }
.audit-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.audit-actor { font-weight: 600; }
.audit-change { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.audit-change del { color: var(--danger); background: var(--danger-soft); padding: 1px 6px; border-radius: 4px; text-decoration: line-through; }
.audit-change ins { color: var(--success); background: var(--success-soft); padding: 1px 6px; border-radius: 4px; text-decoration: none; }
.audit-reason { margin-top: 6px; color: var(--ink-2); }

/* ---------- Stepper ---------- */
.stepper { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.stepper button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r-md); background: none; border: 0; text-align: left; cursor: pointer; font-size: 0.9375rem; color: var(--muted); }
.stepper button:hover:not([disabled]) { background: var(--surface-2); color: var(--ink); }
.stepper button[disabled] { cursor: default; }
.stepper .step-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--muted); }
.stepper .is-done .step-num { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); }
.stepper .is-done { color: var(--ink-2); }
.stepper .is-current { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: var(--shadow-1); }
.stepper .is-current .step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper .is-invalid .step-num { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.stepper-h { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; }
.stepper-h li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-meta); color: var(--muted); font-weight: 500; }
.stepper-h li::before { content: ""; height: 4px; border-radius: 4px; background: var(--surface-3); margin-right: 4px; }
.stepper-h li.is-done::before { background: var(--primary); }
.stepper-h li.is-current::before { background: var(--primary); }
.stepper-h li.is-current { color: var(--ink); font-weight: 600; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-small); color: var(--muted); list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--faint); border-top: 1.5px solid var(--faint); transform: rotate(45deg); margin-right: 4px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Avatar / logo / rating ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-grid; place-items: center; font-weight: 700; font-size: 0.875rem; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 0.75rem; }
.co-logo { width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; font-weight: 800; font-size: 0.875rem; color: var(--ink-2); flex: none; letter-spacing: -0.02em; }
.co-logo.anon { background: var(--surface-2); color: var(--muted); border-style: dashed; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; }
.rating-stars { display: inline-flex; gap: 1px; color: #C98A12; }
.rating-stars .icon { width: 15px; height: 15px; fill: currentColor; stroke-width: 1.2; }
.rating-stars .icon.off { fill: var(--surface-3); color: var(--surface-3); }
.rating .count { color: var(--muted); font-weight: 400; }

/* ---------- Sticky action bar ---------- */
.sticky-bar { position: sticky; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px var(--s4) calc(12px + env(safe-area-inset-bottom)); display: flex; gap: var(--s3); align-items: center; }

/* ---------- Public header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: var(--s6); }
.main-nav { display: flex; gap: 2px; margin-inline: auto; }
.main-nav a { padding: 8px 12px; border-radius: var(--r-md); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; gap: var(--s2); align-items: center; }
.header-actions .login-text { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: var(--r-md); font-size: 0.9375rem; }
.header-actions .login-text:hover { background: var(--surface-2); }
.mobile-only { display: none; }
@media (max-width: 1080px) { .main-nav a { padding: 8px 9px; font-size: 0.875rem; } .site-header .container { gap: var(--s4); } }
@media (max-width: 960px) {
  .main-nav, .header-actions .login-text { display: none; }
  .mobile-only { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) { :root { --header-h: 60px; } .site-header .btn { --btn-h: 38px; padding: 0 12px; font-size: .875rem; } .brand { font-size: 1.0625rem; } }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.mobile-nav a .icon { color: var(--faint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.72); padding: var(--s16) 0 var(--s8); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s8); }
.site-footer h2 { font-size: 0.9375rem; color: #fff; font-weight: 600; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: var(--fs-small); color: rgba(255,255,255,.55); }
.footer-bottom span + span { margin-left: var(--s4); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-about { grid-column: 1 / -1; } }

/* ---------- Mockup-navigator (kun mockup) ---------- */
.mock-nav { position: fixed; left: 16px; bottom: 16px; z-index: 250; font-size: 13px; }
.mock-nav > button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px dashed #7B8A86; background: #FFFBEA; color: #4A4A2A; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-2); }
.mock-nav > button .icon { width: 15px; height: 15px; }
.mock-nav-panel { position: absolute; bottom: 42px; left: 0; width: 270px; max-height: calc(100vh - 80px); overflow-y: auto; background: #FFFBEA; border: 1px dashed #7B8A86; border-radius: 12px; box-shadow: var(--shadow-3); padding: 10px; }
.mock-nav-panel p { padding: 4px 8px 8px; color: #6A6A4A; font-size: 12px; line-height: 1.4; }
.mock-nav-panel a, .mock-nav-panel button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: #33331F; text-decoration: none; font-weight: 500; background: none; border: 0; cursor: pointer; font-size: 13px; }
.mock-nav-panel a:hover, .mock-nav-panel button:hover { background: rgba(0,0,0,.05); }
.mock-nav-panel a[aria-current="page"] { font-weight: 700; background: rgba(0,0,0,.06); }
.mock-nav-panel hr { border: 0; border-top: 1px dashed #C9C29A; margin: 6px 0; }
@media (min-width: 821px) { .app-bg .mock-nav.lift { left: auto; right: 16px; } .app-bg .mock-nav.lift .mock-nav-panel { left: auto; right: 0; } }
@media (max-width: 820px) { .mock-nav.lift { bottom: 88px; } .mock-nav { left: 8px; } .mock-nav > button { padding: 0 9px; } .mock-nav > button .mock-txt { display: none; } }
@media print { .mock-nav { display: none; } }
.toggle input:disabled { opacity: .5; cursor: not-allowed; }

.price-watch-note{padding:var(--s4,16px);border:1px solid var(--warning,#a56a09);border-radius:var(--r2,8px);background:var(--warning-soft,#fff7e6);color:var(--ink,#172d47);line-height:1.6;overflow-wrap:anywhere}
