/* =========================================================================
   Bilringen designsystem
   Hvidt branddesign med mørk blågrå som primærfarve (#3B4A63, #F4F6F9, #FFFFFF, #4B5563).
   Den tidligere røde udgave: skift --accent/--mark til #3B4A63 og de lyse flader til #F4F6F9.
   Skrifter: Archivo (display, bred) + Instrument Sans (brødtekst). Begge hostes lokalt.
   ========================================================================= */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff") format("woff"); font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-var.woff") format("woff"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --sunk: #F4F6F9; --sunk-2: #E7EBF1;
  --ink: #161D2B; --ink-2: #334155; --muted: #4B5563; --faint: #6B7280;
  --line: #E2E6EC; --line-2: #CBD2DC;
  --accent: #3B4A63; --accent-hover: #2C384B; --accent-ink: #FFFFFF; --accent-soft: #F4F6F9;
  --mark: #3B4A63; --mark-hover: #4A5B78; --mark-ink: #FFFFFF; --mark-soft: #F4F6F9;
  --danger: #B42318; --danger-soft: #FCE8E6; --ok: #1C7A46; --ok-soft: #DEF0E5; --warn: #8A5A00; --warn-soft: #FBEBC8; --info: #1F5F99; --info-soft: #E0ECF7;
  --hdr: #FFFFFF; --hdr-2: #F4F6F9; --hdr-ink: #161D2B; --hdr-muted: #4B5563; --hdr-line: #E2E6EC;
  --studio-hi: #FFFFFF; --studio-lo: #F4F6F9;
  --shadow-sm: 0 1px 2px rgba(22,29,43,.05);
  --shadow: 0 1px 2px rgba(22,29,43,.04), 0 8px 24px rgba(22,29,43,.07);
  --shadow-lg: 0 2px 4px rgba(22,29,43,.05), 0 18px 48px rgba(22,29,43,.13);
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 6px; --r-lg: 10px; --r-xl: 14px;
  --wrap: 1260px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); background-color: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 45%, transparent); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.12; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mark); color: var(--mark-ink); padding: 10px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.disp { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.prose { max-width: 70ch; line-height: 1.7; }
.prose h2 { font-size: 22px; margin: 30px 0 10px; font-family: var(--f-display); font-stretch: 110%; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--ink-2); text-decoration-color: var(--mark); text-underline-offset: 3px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }

/* ---------- header ---------- */
.util { background: var(--hdr); color: var(--hdr-muted); font-size: 12.5px; border-bottom: 1px solid var(--hdr-line); }
.util .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.util-l { display: flex; gap: 20px; flex-wrap: wrap; }
.util span, .util a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.util svg.i { width: 14px; height: 14px; color: var(--ink-2); }
.util a:hover { color: var(--hdr-ink); }
@media (max-width: 820px) { .util { display: none; } }

.top { position: sticky; top: 0; z-index: 40; background: var(--hdr); color: var(--hdr-ink); border-bottom: 1px solid var(--hdr-line); }
.top-in { display: flex; align-items: center; gap: 8px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 18px; flex-shrink: 0; }
.brand-word { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 21px; letter-spacing: -.03em; white-space: nowrap; color: var(--hdr-ink); }
.brand-word b { color: var(--ink-2); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a { position: relative; padding: 10px 12px; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--hdr-ink); white-space: nowrap; }
.nav a:hover { background: var(--sunk); }
.nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 3px; background: var(--mark); border-radius: 2px 2px 0 0; }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); color: var(--hdr-ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--sunk); }
.icon-btn svg.i { width: 20px; height: 20px; vertical-align: 0; }
.badge-count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--mark); color: var(--mark-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.top .btn-ghost-dark { color: var(--hdr-ink); border: 1px solid var(--hdr-line); background: transparent; }
.top .btn-ghost-dark:hover { border-color: var(--mark); background: var(--mark-soft); }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--sunk); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--accent); color: var(--accent-ink); flex-shrink: 0; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.avatar.dealer { border-radius: 10px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--r); text-decoration: none; border: 0; background: none; cursor: pointer; font-size: 14.5px; text-align: left; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--sunk); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-panel .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.brand { margin-right: 12px; }
/* Privat | Erhverv: always visible next to the logo, so it is clear which side you are on */
.seg-switch { display: inline-flex; flex-shrink: 0; background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-right: 14px; }
.seg-switch a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.seg-switch a:hover { color: var(--ink); }
.seg-switch a.on { background: var(--mark); color: var(--mark-ink); box-shadow: var(--shadow-sm); }
.seg-switch-wide { display: flex; margin: 0 0 8px; }
.seg-switch-wide a { flex: 1; text-align: center; padding: 9px 0; font-size: 14.5px; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-left: 4px; border: 1px solid var(--hdr-line); border-radius: var(--r); background: transparent; color: var(--hdr-ink); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.menu-btn:hover { border-color: var(--mark); background: var(--mark-soft); }
.menu-btn svg.i { width: 20px; height: 20px; vertical-align: 0; }
@media (max-width: 1100px) { .nav { display: none; } .top-actions .hide-m { display: none; } }
@media (max-width: 560px) { .top-actions .hide-xs { display: none; } .menu-btn span { display: none; } .menu-btn { padding: 0 9px; } .seg-switch { margin-right: 6px; } .seg-switch a { padding: 5px 10px; font-size: 13px; } }
@media (max-width: 420px) { .brand-word { font-size: 18px; } .brand { margin-right: 6px; } }
@media (max-width: 360px) { .brand-word { font-size: 16px; } .seg-switch a { padding: 5px 8px; } }

/* Menu drawer */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(22,29,43,.42); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: var(--surface); color: var(--ink); box-shadow: -18px 0 50px rgba(22,29,43,.2); overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 28px; transform: translateX(100%); transition: transform .22s ease; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 14px 0 12px; margin-bottom: 4px; z-index: 1; }
.drawer-head b { font-size: 17px; }
.drawer-head .icon-btn { color: var(--ink); }
.drawer-group { padding: 14px 0 6px; }
.drawer-group h3 { font-size: 13px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.drawer-group a:not(.btn) { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.drawer-group a:not(.btn):hover { color: var(--accent-hover); }
.drawer-group a:not(.btn) svg.i { width: 18px; height: 18px; color: var(--ink-2); }
.drawer-account { display: grid; gap: 8px; padding-top: 22px; }
body.drawer-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer-panel, .drawer-bg { transition: none; } }
@media (max-width: 480px) { .top-actions .hide-xs { display: none; } .top-actions { gap: 0; } }

/* ---------- buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 10px 16px; min-height: 42px; border-radius: var(--r); font-weight: 600; cursor: pointer; text-decoration: none; font-size: 14.5px; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-mark { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }
.btn-mark:hover { background: var(--mark-hover); border-color: var(--mark-hover); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: var(--surface); }
.btn-danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--sunk); border-color: transparent; }
.btn-sm { padding: 6px 11px; min-height: 34px; font-size: 13.5px; }
.btn-lg { padding: 13px 22px; min-height: 50px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--busy-c, var(--ink)) transparent var(--busy-c, var(--ink)) var(--busy-c, var(--ink)); animation: btnspin .7s linear infinite; }
.btn-primary.is-busy, .btn-mark.is-busy, .btn-danger-solid.is-busy { --busy-c: #fff; }
@keyframes btnspin { to { transform: rotate(360deg); } }
.link { color: var(--ink-2); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { color: var(--ink); text-decoration-color: var(--accent-hover); }
.link:hover { text-decoration: underline; }
.inline { display: inline; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13.5px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.in { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 10px 12px; min-height: 44px; font-size: 15px; }
.in:focus { outline: 2px solid var(--ink-2); outline-offset: -1px; border-color: var(--mark); }
.in[readonly], .in[disabled] { background: var(--sunk); color: var(--muted); }
textarea.in { resize: vertical; min-height: 110px; line-height: 1.5; }
select.in { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6368' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.in.is-invalid { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 760px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .span-2 { grid-column: auto; } }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.pill-check span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--surface); user-select: none; }
.pill-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill-check input:focus-visible + span { outline: 2px solid var(--ink-2); outline-offset: 2px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 45%, transparent); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); max-width: 100%; }
.seg a, .seg button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg > * + * { border-left: 1px solid var(--line-2) !important; }
.seg .on { background: var(--accent); color: var(--accent-ink); }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- chips / status ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.chip svg.i { width: 13px; height: 13px; vertical-align: 0; }
.chip-accent { background: var(--accent-soft); color: var(--ink-2); }
.chip-mark { background: var(--mark); color: var(--mark-ink); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-danger { background: var(--danger-soft); color: var(--danger); }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-dark { background: var(--mark); color: var(--mark-ink); }
.chip-ad { background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; padding: 2px 7px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.s-ok::before { background: var(--ok); } .status.s-warn::before { background: var(--warn); } .status.s-danger::before { background: var(--danger); }
.status.s-info::before { background: var(--info); } .status.s-new::before { background: var(--mark); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-lg); padding: 12px 14px; font-size: 14.5px; border: 1px solid transparent; }
.alert svg.i { margin-top: 2px; }
.alert-ok { background: var(--ok-soft); color: #134f2e; border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert-err { background: var(--danger-soft); color: #7a1d17; border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warn { background: var(--warn-soft); color: #5f3e00; border-color: color-mix(in srgb, var(--mark) 45%, transparent); }
.alert-info { background: var(--info-soft); color: #173f66; border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.flash-wrap { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- surfaces ---------- */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.box-raised { box-shadow: var(--shadow); }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.box-head h2, .box-head h3 { font-size: 17px; }
.box + .box { margin-top: 16px; }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); max-width: 54ch; }
.empty .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; color: var(--muted); }
.empty .ic svg.i { width: 24px; height: 24px; vertical-align: 0; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv > :first-child { color: var(--muted); }
.kv > :last-child { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- page heads ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 18px; }
.crumbs a { text-decoration: none; display: inline-block; padding-block: 4px; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.ptitle { padding-block: 22px 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ptitle h1 { font-size: clamp(26px, 3.4vw, 38px); }
.ptitle p { color: var(--muted); margin-top: 6px; max-width: 64ch; }

/* ---------- hero ---------- */
/* Lys hero med blågrå brandmarkering. Et eventuelt billede ligger diskret bag teksten. */
.hero { position: relative; color: var(--ink); overflow: hidden; isolation: isolate;
  background: linear-gradient(115deg, #FFFFFF 0%, #FFFFFF 62%, #F4F6F9 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .42;
  background: repeating-linear-gradient(100deg, transparent 0 140px, rgba(22, 29, 43, .025) 140px 141px); }
.hero::after { content: ""; position: absolute; right: -180px; top: -220px; width: 720px; aspect-ratio: 1; z-index: -1; border-radius: 50%;
  border: 90px solid rgba(59, 74, 99, .06); box-shadow: inset 0 0 0 1px rgba(59, 74, 99, .10); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 58%; z-index: -2; opacity: .14; filter: saturate(.78); }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(255,255,255,.55); }
.hero.has-photo::before, .hero.has-photo::after { display: block; }
.hero.has-photo .hero-shade { background: linear-gradient(90deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.82) 54%, rgba(255,255,255,.68) 100%); }
.hero-credit { position: absolute; right: 12px; bottom: 74px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); padding: 3px 7px; border-radius: 4px; max-width: 46ch; text-align: right; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: center; padding-block: 56px 64px; }
@media (max-width: 1080px) { .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hero-copy { max-width: 640px; } }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: .98; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 64%, #D3DBE6 64%, #D3DBE6 92%, transparent 92%); padding-inline: .04em; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.hero-art .hero-ring { position: absolute; width: min(72%, 380px); opacity: .09; }
.hero-art .road { position: absolute; left: 8%; right: 8%; bottom: 17%; height: 2px; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.hero-art .hero-car { position: relative; width: min(86%, 440px); margin-top: 8%; }
.hero-art .hero-car svg { width: 100%; height: auto; display: block; }
@media (max-width: 1080px) { .hero-art { display: none; } }
.hero-sub { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 48ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.hero-links a { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.hero-links a:hover { border-color: var(--mark); }
@media (max-width: 600px) { .hero-copy .hero-links { display: none; } .hero-sub { font-size: 16px; } }
.hero-links svg.i { color: var(--ink-2); }
.hero-stats { display: flex; gap: 30px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 520px) { .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .hero-stats > div { padding-left: 10px; } .hero-stats b { font-size: 24px; } .hero-stats span { font-size: 12.5px; line-height: 1.3; display: block; margin-top: 4px; } }
.hero-stats b { display: block; font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-stats > div { padding-left: 14px; border-left: 2px solid var(--mark); }
@media (max-width: 880px) {
  .hero-in { padding-block: 30px 36px; }
  .hero.has-photo .hero-shade { background: linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.94) 70%); }
  .hero-credit { bottom: 70px; }
}

.spanel { position: relative; z-index: 2; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.spanel-head { padding: 20px 22px 0; }
.spanel-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.005em; }
.sform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 16px 22px 18px; align-items: end; }
.sform .btn { min-height: 48px; grid-column: 1 / -1; font-size: 15.5px; }
.sform-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 14px 22px; font-size: 14px; border-top: 1px solid var(--line); background: var(--sunk); border-radius: 0 0 var(--r-xl) var(--r-xl); }
@media (max-width: 480px) { .sform { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; } .spanel-head { padding-inline: 16px; } }

/* ---------- sections ---------- */
.sec { margin-top: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); }
.sec-head p { color: var(--muted); margin-top: 4px; }
.brands { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brand-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.brand-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.brand-tile b { font-family: var(--f-display); font-stretch: 112%; font-size: 17px; font-weight: 750; }
.brand-tile span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cat { padding: 12px; } .cat .cat-art { height: 30px; margin-bottom: 6px; } .cat .cat-art svg { height: 28px; } .cat b { font-size: 14.5px; line-height: 1.3; } }
.cat { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.cat:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.cat .cat-art { height: 42px; display: flex; align-items: flex-end; margin-bottom: 8px; color: var(--ink-2); }
.cat .cat-art svg { height: 38px; width: auto; }
.cat b { font-size: 15px; }
.cat span { font-size: 13px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--mark); color: var(--mark-ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; flex-shrink: 0; }
.step b { font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.band h2 { font-size: clamp(22px, 2.6vw, 30px); position: relative; }
.band .eyebrow { position: relative; color: var(--ink-2); }
.band-accent .eyebrow { color: var(--mark-ink); opacity: .85; }
.band p { position: relative; max-width: 54ch; }
.band ul { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.band li { display: flex; gap: 10px; align-items: flex-start; }
.band .row { position: relative; margin-top: auto; padding-top: 6px; }
.band-dark { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.band-dark p, .band-dark li { color: var(--muted); }
.band-dark li svg.i { color: var(--ink-2); }
.band-accent { background: var(--mark); color: var(--mark-ink); border: 1px solid color-mix(in srgb, var(--mark) 70%, var(--line)); }
.band-accent p, .band-accent li { opacity: 1; }
.band-accent .btn:not(.btn-mark) { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.band-ring { position: absolute; right: -70px; top: -90px; width: 280px; opacity: .16; pointer-events: none; }
.partner-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.partner-strip img { height: 34px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partner-strip a:hover img { filter: none; opacity: 1; }
.campaign { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; }
.campaign.has-img { grid-template-columns: 220px minmax(0, 1fr) auto; }
.campaign img { width: 100%; height: 100%; object-fit: cover; min-height: 110px; }
.campaign .c-body { padding: 18px 0 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.campaign.has-img .c-body { padding-left: 0; }
.campaign .c-body b { font-size: 17px; font-family: var(--f-display); font-stretch: 110%; }
.campaign .c-body p { color: var(--muted); font-size: 14px; }
.campaign .c-cta { padding-right: 20px; }
.campaign .chip-ad { position: absolute; top: 8px; right: 10px; }
@media (max-width: 680px) { .campaign, .campaign.has-img { grid-template-columns: minmax(0, 1fr); } .campaign .c-body { padding: 14px 16px 0; } .campaign .c-cta { padding: 0 16px 16px; } .campaign img { max-height: 160px; } }

/* ---------- car cards ---------- */
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cars.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1150px) { .cars.four { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cars.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cars.four, .cars { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .cars.cars-rail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78%, 300px); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: -16px; padding: 2px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: thin; }
  .cars.cars-rail > * { scroll-snap-align: start; }
}
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .18s, transform .18s, border-color .18s; }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--line-2); } }
.card:has(.card-link:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 45%, transparent); border-color: var(--ink-2); }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.photo { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(110% 85% at 50% 22%, var(--studio-hi), var(--studio-lo)); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.pcount { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(12,14,16,.72); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pcount svg.i { width: 13px; height: 13px; vertical-align: 0; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 60px); z-index: 2; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-title { font-family: var(--f-display); font-stretch: 110%; font-weight: 750; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.card-variant { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.5em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.facts span { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts svg.i { width: 15px; height: 15px; color: var(--muted); vertical-align: 0; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.price { font-family: var(--f-display); font-stretch: 108%; font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1; }
.lease { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seller-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; text-align: right; }
.seller-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seller-line svg.i { width: 13px; height: 13px; vertical-align: 0; }
.heart { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: #14181B; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.heart svg.i { width: 19px; height: 19px; vertical-align: 0; }
.heart:hover { transform: scale(1.06); }
.heart.on { color: #C8102E; }
.heart.on svg path { fill: currentColor; }
.card form[data-fav] { position: absolute; top: 10px; right: 10px; z-index: 3; }
.card .heart { position: static; }

/* ---------- search page ---------- */
.slayout { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 26px; align-items: start; margin-bottom: 48px; }
.fpanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow-y: auto; }
.fpanel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.fpanel-head h2 { font-size: 16px; }
.fgroup { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup > .lbl { font-size: 13px; font-weight: 700; }
.fpair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fpanel-foot { padding: 14px 16px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
details.fmore > summary { cursor: pointer; font-weight: 700; font-size: 13px; list-style: none; display: flex; justify-content: space-between; }
details.fmore > summary::-webkit-details-marker { display: none; }
details.fmore[open] > summary { margin-bottom: 10px; }
.ftoggle { display: none; }
@media (max-width: 920px) {
  .slayout { grid-template-columns: minmax(0, 1fr); }
  .fpanel { display: none; position: static; max-height: none; }
  .fpanel.open { display: block; }
  .ftoggle { display: inline-flex; }
}
.rhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.active-f { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-f a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 9px 5px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
.active-f a svg.i { width: 12px; height: 12px; vertical-align: 0; }
.active-f a:hover { border-color: var(--danger); color: var(--danger); }
.sponsored { background: var(--mark-soft); border: 1px solid color-mix(in srgb, var(--mark) 45%, transparent); border-radius: var(--r-lg); padding: 14px; margin-bottom: 18px; }
.sponsored .cars { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- pagination ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.pager .on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager .off { opacity: .45; }
.pager a:hover { border-color: var(--muted); }

/* ---------- car detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 30px; align-items: start; margin-bottom: 40px; }
@media (max-width: 980px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.gal { position: relative; }
.gal-main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(110% 85% at 50% 22%, var(--studio-hi), var(--studio-lo)); border: 1px solid var(--line); }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.93); color: #14181B; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 2; }
.gnav svg.i { width: 20px; height: 20px; vertical-align: 0; }
.gnav.prev { left: 12px; } .gnav.next { right: 12px; }
.gcount { position: absolute; right: 12px; bottom: 12px; background: rgba(12,14,16,.72); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 96px; height: 70px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--sunk); }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dhead { margin: 24px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.dhead h1 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.02; }
.dsub { color: var(--muted); font-size: 17px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.kf svg.i { width: 22px; height: 22px; color: var(--ink-2); }
.kf span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.kf b { font-size: 16px; font-variant-numeric: tabular-nums; }
.dsec { margin-top: 32px; }
.dsec > h2 { font-size: 20px; margin-bottom: 12px; font-family: var(--f-display); font-stretch: 112%; font-weight: 750; }
.spec { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec td { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec tr:last-child td { border-bottom: 0; }
.spec td:first-child { color: var(--muted); width: 42%; }
.spec td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.equip li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.equip svg.i { color: var(--ok); width: 16px; height: 16px; vertical-align: 0; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
@media (max-width: 980px) { .rail { position: static; } }
.m-price, .m-cta { display: none; }
@media (max-width: 980px) {
  .m-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .m-price .big-price { font-size: 30px; }
  .m-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(22,29,43,.10); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .m-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
  .m-cta b { display: block; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 19px; line-height: 1.1; }
  .m-cta span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
  .m-cta .btn { min-height: 46px; }
  body:has(.m-cta) footer.site { padding-bottom: 76px; }
  body:has(.cmpbar) .m-cta { display: none; }
  #kontakt { scroll-margin-top: 80px; }
}
.big-price { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: clamp(30px, 3.4vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.dealer-mini { display: flex; gap: 12px; align-items: center; }
.dealer-mini img { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.dealer-mini b { display: block; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: -20px -20px 16px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: none; padding: 14px 10px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); position: relative; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: var(--accent); border-radius: 2px 2px 0 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { border: 1px solid var(--line-2); background: var(--bg); border-radius: 999px; padding: 6px 11px; font-size: 13px; cursor: pointer; }
.quick button:hover { border-color: var(--mark); color: var(--ink); background: var(--mark-soft); }
.plate { display: inline-flex; align-items: stretch; border: 2px solid #C8102E; border-radius: 4px; background: #fff; color: #111; font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 15px; letter-spacing: .06em; overflow: hidden; line-height: 1; }
.plate .eu { background: #1F3F99; color: #fff; font-size: 9px; padding: 4px 4px 2px; display: flex; align-items: flex-end; letter-spacing: 0; }
.plate .no { padding: 5px 9px; font-variant-numeric: tabular-nums; }
.fin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fin .field:first-child { grid-column: 1 / -1; }
.fin-out { display: flex; justify-content: space-between; align-items: baseline; background: var(--sunk); border-radius: var(--r); padding: 12px 14px; }
.fin-out b { font-family: var(--f-display); font-stretch: 112%; font-size: 22px; font-variant-numeric: tabular-nums; }

/* ---------- dealers ---------- */
.dealer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: box-shadow .18s, border-color .18s; }
.dcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.dcard-top { display: flex; gap: 12px; align-items: center; }
.dlogo { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: contain; flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: var(--ink-2); }
.dlogo.lg { width: 88px; height: 88px; font-size: 26px; }
.dealer-hero { background: linear-gradient(115deg, var(--surface), var(--mark-soft)); color: var(--ink); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.dealer-hero .cover { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .08; }
.dealer-hero .wrap { position: relative; padding-block: 30px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.dealer-hero h1 { font-size: clamp(26px, 3.6vw, 40px); }
.dealer-hero p { color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 5px 0; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 700; }

/* ---------- auth ---------- */
.auth { min-height: min(760px, calc(100vh - 66px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.auth-side { background: var(--mark); color: var(--mark-ink); position: relative; overflow: hidden; padding: 56px clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.auth-side h2 { font-size: clamp(28px, 3.2vw, 40px); position: relative; max-width: 14ch; }
.auth-side p, .auth-side li { color: color-mix(in srgb, var(--mark-ink) 86%, transparent); position: relative; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; position: relative; max-width: 40ch; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side li svg.i { color: var(--mark-ink); flex-shrink: 0; margin-top: 2px; }
.auth-side .ring { position: absolute; width: 460px; right: -150px; bottom: -170px; opacity: .10; filter: brightness(0) invert(1); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 18px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 30px; }
@media (max-width: 880px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }

/* ---------- account + portals ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; padding-block: 24px 48px; }
@media (max-width: 920px) { .shell { grid-template-columns: minmax(0, 1fr); padding-top: 12px; } }
.shell > * { min-width: 0; }
.side-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; position: sticky; top: 82px; }
.side-nav .who { display: flex; gap: 10px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.side-nav .who b { display: block; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.side-nav a:hover { background: var(--sunk); }
.side-nav a.on { background: var(--accent-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--mark); }
.side-nav a .n { margin-left: auto; background: var(--mark); color: var(--mark-ink); font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.side-nav .grp { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 14px 10px 4px; }
@media (max-width: 920px) {
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
  .side-nav .who, .side-nav .grp { display: none; }
  .side-nav a { white-space: nowrap; flex-shrink: 0; }
}
.portal-bar { background: var(--surface); color: var(--ink); border-bottom: 2px solid var(--mark); }
.portal-bar .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.portal-bar b { font-family: var(--f-display); font-stretch: 112%; }
.portal-bar .tag { background: var(--mark); color: var(--mark-ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.portal-bar.admin .tag { background: var(--mark); color: var(--mark-ink); }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h h1 { font-size: clamp(24px, 2.8vw, 32px); }
.page-h p { color: var(--muted); margin-top: 4px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpis { gap: 10px; } .kpi { padding: 14px; } .kpi b { font-size: 26px; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; position: relative; }
a.kpi:hover { border-color: var(--accent); }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi b { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 30px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.kpi.attn { border-color: color-mix(in srgb, var(--mark) 70%, transparent); background: var(--mark-soft); }
.kpi.attn::after { content: ""; position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 30%, transparent); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols-21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1060px) { .cols-2, .cols-21 { grid-template-columns: minmax(0, 1fr); } }
.cols-2 > .box + .box, .cols-21 > .box + .box { margin-top: 0; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.unread td { background: color-mix(in srgb, var(--mark-soft) 60%, var(--surface)); }
.table td.r, .table th.r { text-align: right; }
.table td.num, .table td.r.num { white-space: nowrap; }
.table .t-main { font-weight: 700; text-decoration: none; }
.table a.t-main:hover { text-decoration: underline; }
.table .t-sub { font-size: 12.5px; color: var(--muted); }
.thumb { width: 72px; height: 54px; border-radius: 5px; overflow: hidden; background: radial-gradient(110% 85% at 50% 22%, var(--studio-hi), var(--studio-lo)); flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-car { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters-bar form { display: flex; gap: 8px; flex-wrap: wrap; }
.filters-bar .in { min-height: 38px; padding-block: 7px; width: auto; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.list-item:last-child { border-bottom: 0; }
.list-item:first-child { padding-top: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow b, .list-item .grow .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 8px; background: var(--sunk); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.meter.full i { background: var(--danger); }

/* conversation */
.thread { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--bg); border-radius: var(--r-lg); border: 1px solid var(--line); max-height: 62vh; overflow-y: auto; }
.bubble { max-width: min(80%, 560px); padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.sys { align-self: center; max-width: 90%; background: var(--mark-soft); border: 1px solid color-mix(in srgb, var(--mark) 40%, transparent); color: var(--ink-2); font-size: 13.5px; border-radius: 10px; text-align: center; }
.bubble .meta { display: block; font-size: 12px; opacity: .72; margin-top: 4px; font-variant-numeric: tabular-nums; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.composer textarea { min-height: 52px; max-height: 200px; }
.ctx-car { display: flex; gap: 12px; align-items: center; }
.ctx-car .thumb { width: 96px; height: 72px; }

/* offers timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; padding-bottom: 12px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); margin-top: 5px; margin-left: 4px; }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 17px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.cur::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.timeline .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.offer-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 760px) { .offer-card { grid-template-columns: minmax(0, 1fr); } }
.actions-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
details.reveal > summary { list-style: none; cursor: pointer; }
details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal[open] > summary { margin-bottom: 10px; }

/* uploads */
.upl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--sunk); border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .tile-actions { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 6px; justify-content: flex-end; }
.tile .tile-actions button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; display: grid; place-items: center; }
.tile .tile-actions svg.i { width: 15px; height: 15px; vertical-align: 0; }
.tile .first { position: absolute; left: 6px; top: 6px; font-size: 12px; font-weight: 800; background: var(--mark); color: var(--mark-ink); padding: 2px 7px; border-radius: 4px; }
.drop { border: 2px dashed var(--line-2); border-radius: 10px; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; background: var(--bg); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--mark); background: var(--accent-soft); }
.drop svg.i { width: 28px; height: 28px; color: var(--ink-2); vertical-align: 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.fsec { padding: 22px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.fsec:last-child { border-bottom: 0; }
.fsec h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.fsec h2 .step-n { width: 28px; height: 28px; font-size: 13px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; padding: 16px 22px; background: var(--bg); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; }

/* notifications */
.notes { display: flex; flex-direction: column; }
.note-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.note-item:last-child { border-bottom: 0; }
.note-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mark); margin-top: 7px; flex-shrink: 0; }
.note-item.read .dot { background: transparent; }
.note-item b { display: block; font-size: 14.5px; }
.note-item p { color: var(--muted); font-size: 13.5px; }

/* chart */
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 180px; padding-top: 10px; }
.bars .bar { display: flex; flex-direction: column-reverse; height: 100%; gap: 1px; position: relative; }
.bars .bar i { display: block; border-radius: 2px; }
.bars .lbl { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.c-market { background: var(--accent); } .c-sponsor { background: var(--mark); } .c-transport { background: #5B6CA8; }

/* cookie banner + footer */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
footer.site { background: var(--surface); color: var(--muted); margin-top: 64px; border-top: 3px solid var(--mark); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 26px; padding-block: 44px 26px; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
.foot h4 { color: var(--ink); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.foot a { display: block; text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 3px 0; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-underline-offset: 3px; }
.foot p { font-size: 14px; margin-top: 12px; max-width: 36ch; }
.foot-b { border-top: 1px solid var(--line); padding-block: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.heart-btn.on { color: #C8102E; border-color: #e7b3b9; background: #fdf1f2; }
.heart-btn.on svg path { fill: currentColor; }
@media (max-width: 600px) { .hero-stats { gap: 18px; } .hero-stats b { font-size: 24px; } }

/* ---------- all brands A-Å ---------- */
.brand-all { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px 14px; }
.brand-all h3 { font-size: 15px; margin-bottom: 10px; }
.brand-all ul { list-style: none; margin: 0; padding: 0; columns: 6 150px; column-gap: 22px; }
.brand-all li { break-inside: avoid; }
.brand-all a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; text-decoration: none; font-size: 14.5px; border-bottom: 1px dashed transparent; }
.brand-all a span { color: var(--faint); font-size: 13px; }
.brand-all a:hover { color: var(--ink); border-bottom-color: var(--mark); }
.brand-all a.zero { color: var(--faint); }

/* ---------- photo credits (CC licences require attribution) ---------- */
.photo-credit { position: absolute; left: 10px; bottom: 10px; z-index: 2; max-width: calc(100% - 90px); font-size: 12px; line-height: 1.3; color: #fff; background: rgba(12, 16, 18, .55); padding: 3px 7px; border-radius: 4px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-credit:hover { background: rgba(12, 16, 18, .8); }

/* ---------- test period bar (TEST_DATA_NOTICE=true) ---------- */
.testbar { background: var(--ink); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 16px; }

/* ---------- number plate lookup (dealer portal) ---------- */
.plate-lookup { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--mark-soft); }
.plate-lookup > label { font-size: 13.5px; font-weight: 600; }
.plate-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.plate-in { display: inline-flex; align-items: stretch; border: 2px solid #C8102E; border-radius: 6px; background: #fff; overflow: hidden; }
.plate-in .eu { background: #1F3F99; color: #fff; font-size: 12px; font-weight: 700; padding: 0 7px; display: flex; align-items: flex-end; padding-bottom: 6px; }
.plate-in input { border: 0; outline: 0; width: 170px; padding: 8px 12px; font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; background: transparent; }
.plate-in:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 55%, transparent); }
.plate-lookup .err { color: var(--danger); font-size: 13px; }
.in.autofilled { background: var(--mark-soft); border-color: var(--mark); }

/* ---------- search filters: km range, collapsible groups, per page ---------- */
.fgroup .sub { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.range2 { position: relative; height: 28px; margin: 2px 4px 0; }
.range2::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 2px; background: var(--line); }
.range2 .fill { position: absolute; top: 13px; height: 3px; border-radius: 2px; background: var(--mark); }
.range2 input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range2 input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-2); cursor: grab; }
.range2 input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-2); cursor: grab; }
.range2 input[type=range]::-webkit-slider-runnable-track, .range2 input[type=range]::-moz-range-track { background: none; }
.fmore-head { padding-bottom: 4px; border-bottom: 0; }
.fmore-head .lbl { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.facc { border: 1px solid var(--line); border-radius: var(--r); margin: 0 16px 8px; background: var(--surface); }
.facc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; font-size: 14.5px; }
.facc > summary::-webkit-details-marker { display: none; }
.facc > summary svg.i { margin-left: auto; transform: rotate(90deg); transition: transform .15s; color: var(--muted); }
.facc[open] > summary svg.i { transform: rotate(-90deg); }
.facc > summary:hover { background: var(--sunk); }
.facc-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.facc-body > .lbl { font-size: 13px; font-weight: 700; }
.fcount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--mark); color: var(--mark-ink); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.in.in-sm { width: auto; min-height: 38px; padding-block: 6px; }
.pager-info { text-align: center; margin-top: 22px; }
.pager-info + .pager { margin-top: 10px; }

/* ---------- equipment filter: grouped checkboxes with "Vis mere" ---------- */
.feq { margin: 8px 16px 0; padding: 14px 0 6px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.feq-head { display: flex; flex-direction: column; gap: 2px; }
.feq-head h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.feq-find { min-height: 38px; padding-block: 6px; }
.feq-group { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 8px; background: var(--surface); }
.feq-gh { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feq-levels { display: grid; gap: 8px; margin: 2px 0 8px; }
.feq-levels label { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; min-width: 0; }
.feq-levels .in { width: 100%; min-width: 0; font-size: 13.5px; font-weight: 400; padding-left: 9px; padding-right: 26px; background-position: right 7px center; }
.feq-list { display: flex; flex-direction: column; }
.cbx { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 4px; cursor: pointer; font-size: 14px; line-height: 1.3; }
.cbx:hover { background: var(--sunk); }
.cbx input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cbx .cbx-box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--surface); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.cbx .cbx-box::after { content: ""; width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); opacity: 0; }
.cbx input:checked + .cbx-box { background: var(--accent); border-color: var(--accent); }
.cbx input:checked + .cbx-box::after { opacity: 1; }
.cbx input:checked ~ .t { font-weight: 600; }
.cbx input:focus-visible + .cbx-box { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.feq-more > summary { list-style: none; cursor: pointer; display: inline-flex; padding: 6px 4px; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.feq-more > summary::-webkit-details-marker { display: none; }
.feq-more > summary:hover { color: var(--ink); }
.feq-more[open] > summary { order: 2; }
.feq-more[open] { display: flex; flex-direction: column; }
.feq-more .when-open, .feq-more[open] .when-closed { display: none; }
.feq-more[open] .when-open { display: inline; }
.feq.is-finding .feq-more > summary { display: none; }
.feq [hidden] { display: none !important; }

/* listing form: same groups, laid out in columns */
.eq-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.eq-form .feq-group { padding-bottom: 10px; }

/* ---------- brand overview page ---------- */
.brand-more { margin-top: 14px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.az a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 700; background: var(--surface); }
.az a:hover { border-color: var(--accent); background: var(--accent-soft); }
.brand-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.brand-index section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; scroll-margin-top: 90px; }
.brand-index h2 { font-family: var(--f-display); font-size: 20px; margin: 0 0 6px; }
.brand-index ul { list-style: none; margin: 0; padding: 0; }
.brand-index a, .brand-index .none { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14.5px; }
.brand-index li:last-child a, .brand-index li:last-child .none { border-bottom: 0; }
.brand-index a span { color: var(--muted); font-size: 13px; }
.brand-index a:hover { color: var(--ink); }
.brand-index a:hover span { color: var(--ink-2); }
.brand-index .none { color: var(--faint); }
.brand-index .none span { font-size: 12.5px; }

/* ---------- admin: CVR register snapshot ---------- */
.cvr-snap { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--sunk); }
.cvr-snap .kv em { font-style: normal; font-size: 12px; font-weight: 700; margin-left: 6px; color: var(--muted); }
.cvr-snap .kv em.ok { color: var(--ok); }
.cvr-snap .kv em.bad { color: var(--danger); }

/* ---------- compare: toggle on cards and car page, floating bar, comparison table ---------- */
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; min-width: 0; }
.card-meta .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-meta form { position: relative; z-index: 2; flex: none; }
.cmp-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; border-radius: 4px; }
.cmp-toggle:hover { color: var(--ink); background: var(--sunk); }
.cmp-toggle .cbx-box { width: 15px; height: 15px; flex: none; border: 1.5px solid var(--line-2); border-radius: 3px; background: var(--surface); display: grid; place-items: center; }
.cmp-toggle .cbx-box::after { content: ""; width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); opacity: 0; }
.cmp-toggle.on .cbx-box { background: var(--accent); border-color: var(--accent); }
.cmp-toggle.on .cbx-box::after { opacity: 1; }
.cmp-toggle:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.cmp-btn.on { background: var(--accent-soft); border-color: var(--accent); }

.cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 2px solid var(--accent); box-shadow: 0 -6px 24px rgba(22,29,43,.10); }
.cmpbar-in { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.cmpbar-title { display: flex; align-items: center; gap: 8px; flex: none; font-size: 14.5px; }
.cmpbar-title .muted { font-size: 13px; }
.cmpbar-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; }
.cmpbar-list li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 4px 4px 4px; background: var(--surface); min-width: 0; flex: 0 1 220px; }
.cmpbar-list img, .cmpbar-list .ph { width: 44px; height: 32px; object-fit: cover; border-radius: 4px; flex: none; background: var(--sunk); display: grid; place-items: center; color: var(--muted); }
.cmpbar-list .t { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.25; }
.cmpbar-list .t, .cmpbar-list .t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmpbar-list .t small { font-weight: 500; color: var(--muted); font-size: 12px; }
.cmpbar-list .x { margin-left: auto; border: 0; background: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.cmpbar-list .x:hover { background: var(--sunk); color: var(--ink); }
.cmpbar-act { display: flex; align-items: center; gap: 8px; flex: none; }
.cmpbar-hint { white-space: nowrap; }
body:has(.cmpbar) footer.site { padding-bottom: 78px; }
@media (max-width: 760px) {
  .cmpbar-in { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .cmpbar-title { order: 1; }
  .cmpbar-act { order: 2; margin-left: auto; }
  .cmpbar-list { order: 3; flex-basis: 100%; }
  .cmpbar-list li { flex: 0 0 170px; }
  body:has(.cmpbar) footer.site { padding-bottom: 140px; }
}

.cmp-tools { gap: 14px; align-items: center; }
.cmp-tools .check { align-items: center; }
.cmp-scroll { max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: calc(150px + var(--cols) * 210px); border-collapse: separate; border-spacing: 0; font-size: 14.5px; table-layout: fixed; }
.cmp th, .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp tbody th[scope=row] { width: 170px; color: var(--muted); font-weight: 500; font-size: 13.5px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp thead th { vertical-align: bottom; border-bottom: 2px solid var(--line-2); }
.cmp .cmp-corner { width: 170px; position: sticky; left: 0; background: var(--surface); z-index: 2; vertical-align: bottom; }
.cmp-add { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--ink-2); border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 10px 12px; }
.cmp-add:hover { border-color: var(--accent); color: var(--ink); }
.cmp-car { display: table-cell; }
.cmp-car > * { display: block; }
.cmp-photo { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--sunk); margin-bottom: 10px; }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-photo .noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.cmp-name { font-weight: 800; font-size: 16px; text-decoration: none; color: var(--ink); line-height: 1.25; }
.cmp-name:hover { text-decoration: underline; }
.cmp-variant { font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; min-height: 1.3em; }
.cmp-price { font-family: var(--f-display); font-weight: 800; font-size: 20px; margin: 6px 0 8px; }
.cmp-car .chip { display: inline-flex; margin-bottom: 8px; }
.cmp-actions { display: flex !important; gap: 6px; flex-wrap: wrap; }
.cmp-group th { background: var(--sunk); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding-block: 8px; position: sticky; left: 0; }
.cmp td.best { background: var(--accent-soft); font-weight: 700; }
.best-tag { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.cmp td.eq { text-align: left; }
.cmp .yes { color: var(--ok); display: inline-grid; place-items: center; }
.cmp .yes svg.i { width: 18px; height: 18px; }
.cmp .no { color: var(--faint); }
.cmp.only-diff tr[data-same] { display: none; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 760px) {
  .cmp { min-width: calc(112px + var(--cols) * 168px); font-size: 13.5px; }
  .cmp tbody th[scope=row], .cmp .cmp-corner { width: 112px; padding-inline: 10px; }
  .cmp th, .cmp td { padding: 8px 10px; }
  .cmp-price { font-size: 17px; }
}
.cmp-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-size: 14px; font-weight: 600; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.cmp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- saved searches ---------- */
.active-f .save-search-form { display: inline-flex; margin-left: auto; }
.active-f .save-search, .active-f a.save-search { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.active-f .save-search-form .save-search { margin-left: 0; }
.active-f .save-search svg.i { width: 14px; height: 14px; }
.active-f .save-search:hover, .active-f a.save-search:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ss-list { display: flex; flex-direction: column; gap: 10px; }
.ss-item { display: flex; gap: 16px; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.ss-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ss-main h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ss-main h2 a { color: var(--ink); text-decoration: none; }
.ss-main h2 a:hover { text-decoration: underline; }
.ss-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ss-tags span { font-size: 12.5px; background: var(--sunk); border-radius: 999px; padding: 2px 9px; color: var(--ink-2); }
.ss-act { display: flex; gap: 6px; align-items: center; flex: none; position: relative; }
.ss-more > summary { list-style: none; }
.ss-more > summary::-webkit-details-marker { display: none; }
.ss-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 12px; width: 280px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .ss-item { flex-direction: column; align-items: stretch; } .ss-act { flex-wrap: wrap; } .ss-pop { left: 0; right: auto; } }
.chg-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.chg-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 14px; }
.chg-list a:hover { border-color: var(--line-2); background: var(--sunk); }
.chg-list .down { color: var(--ok); font-weight: 700; }
.chg-list .up { color: var(--warn); font-weight: 700; }
.chg-list .tiny { margin-left: auto; white-space: nowrap; }

/* ---------- phone number shown on click (counted for dealer statistics) ---------- */
.phone-reveal { display: inline; }
.phone-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 4px 4px 12px; min-height: 40px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.phone-btn svg.i { width: 14px; height: 14px; }
.phone-btn .phone-show { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 700; }
.phone-btn:hover .phone-show { background: var(--accent-hover); }
.phone-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.phone-link:hover { text-decoration: underline; }
.phone-link svg.i { width: 14px; height: 14px; }

/* ---------- dealer statistics ---------- */
.kpi .dl { font-weight: 600; }
.kpi .dl.up { color: var(--ok); }
.kpi .dl.down { color: var(--danger); }
.stats-charts { gap: 16px; }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--line-2); stroke-width: 1; }
.chart .ax { font-size: 11px; fill: var(--muted); font-family: var(--f-body); }
.chart .mark { fill: var(--accent-hover); }
.chart .hit { fill: transparent; }
.chart .bar:hover .mark { fill: var(--ink-2); }
.chart .bar:hover .hit { fill: var(--sunk); }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 5px; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.mini-kpis > div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mini-kpis span { font-size: 12.5px; color: var(--muted); }
.mini-kpis b { font-size: 20px; font-family: var(--f-display); }
.mini-kpis small { font-size: 12px; }
@media (max-width: 760px) { .stats-table th:nth-child(n+5):not(:last-child), .stats-table td:nth-child(n+5):not(:last-child) { display: none; } }

/* ---------- listing import ---------- */
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.import-table td { vertical-align: top; }
.import-table tr.st-error { background: color-mix(in srgb, var(--danger-soft) 55%, transparent); }
.imp-errs { margin: 0; padding-left: 16px; color: var(--danger); }
.imp-chg { margin: 0; padding-left: 16px; }
.imp-chg s { color: var(--muted); }
.field .err { color: var(--danger); font-size: 13px; margin-top: 4px; }

/* Touch targets: small text buttons get at least 24px of height (WCAG 2.2 target size). */
button.link.small { padding-block: 4px; min-height: 28px; }
.phone-btn .phone-show { padding: 6px 11px; }
.facts .fact-wide { grid-column: 1 / -1; }

/* ---------- brand filter: tick several brands ---------- */
.make-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 6px; display: flex; flex-direction: column; }
.make-list .cbx { padding: 5px 4px; }
.make-list .cbx .cnt { margin-left: auto; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.make-list .make-more { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 2px; }
.make-list .make-more .cbx .t { color: var(--muted); }
.fmake [hidden] { display: none !important; }
.fmake.is-finding .make-more > summary { display: none; }

/* ---------- one-time code input (login without password) ---------- */
.code-in { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .35em; text-align: center; font-weight: 700; padding-block: 12px; }
.code-in::placeholder { color: var(--line-2); letter-spacing: .35em; }

/* ---------- entrance: Privat / Erhverv ---------- */
.gate { background: linear-gradient(180deg, #FFFFFF 0%, var(--sunk) 100%); padding-block: 56px 72px; border-bottom: 1px solid var(--line); }
.gate-head { max-width: 640px; margin-bottom: 28px; }
.gate-head h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.03em; }
.gate-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.gate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .gate-grid { grid-template-columns: minmax(0, 1fr); } }
.gate-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.gate-card h2 { font-size: clamp(26px, 3vw, 34px); }
.gate-card > p { color: var(--muted); }
.gate-b2b { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }
.gate-b2b > p, .gate-b2b .gate-list li { color: color-mix(in srgb, var(--mark-ink) 86%, transparent); }
.gate-b2b .eyebrow { color: var(--mark-ink); opacity: .85; }
.gate-b2b .gate-ic { background: rgba(255,255,255,.12); color: #fff; }
.gate-b2b .gate-list svg.i { color: #fff; }
.gate-b2b .btn:not(.btn-mark) { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.gate-b2b .btn:not(.btn-mark):hover { background: rgba(255,255,255,.1); }
.gate-b2b .btn-mark { background: #fff; color: var(--ink); border-color: #fff; }
.gate-b2b .gate-go { color: #fff; border-color: rgba(255,255,255,.4); }
.gate-top { display: flex; align-items: center; gap: 10px; }
.gate-ic { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--sunk); color: var(--ink-2); flex-shrink: 0; }
.gate-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gate-list li { display: flex; gap: 10px; align-items: flex-start; }
.gate-list svg.i { color: var(--ok); margin-top: 3px; }
.gate-search { display: flex; gap: 8px; margin-top: 4px; }
.gate-search .in { flex: 1; min-width: 0; }
.gate-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.gate-go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; text-decoration: none; border-bottom: 2px solid var(--line-2); padding: 6px 0 4px; }
.gate-go:hover { border-color: currentColor; }
.gate-help { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px; }
.gate-help b { display: block; }
.gate-help span { color: var(--muted); font-size: 14.5px; }

/* ---------- Erhverv ---------- */
.b2b-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 8px 20px; }
.b2b-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.b2b-row:last-child { border-bottom: 0; }
.b2b-row b { display: block; }
.b2b-row span:not(.gate-ic) { color: var(--muted); font-size: 14px; }
.e-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .e-cards { grid-template-columns: minmax(0, 1fr); } }
.e-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.e-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.e-card b { font-size: 17px; margin-top: 6px; }
.e-card p { color: var(--muted); font-size: 14.5px; }
.e-card .link { margin-top: auto; font-weight: 700; }

/* ---------- segment switch (Privat | Erhverv) ---------- */


/* ---------- AI advisor (live chat) ---------- */
.ai-fab { position: fixed; right: 18px; bottom: 18px; z-index: 58; display: inline-flex; align-items: center; gap: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 7px 7px 9px; font: inherit; box-shadow: 0 10px 30px rgba(22,29,43,.18); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ai-fab:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(22,29,43,.24); }
.ai-fab-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.ai-fab-txt b { font-size: 14px; }
.ai-fab-txt small { font-size: 12px; color: var(--muted); }
.ai-fab-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--mark); color: var(--mark-ink); display: grid; place-items: center; flex-shrink: 0; }
.ai-fab-ic svg.i { width: 21px; height: 21px; vertical-align: 0; }
.ai-team { display: inline-flex; flex-shrink: 0; }
.ai-team .tav { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); display: block; }
.ai-team .tav + .tav { margin-left: -10px; }
.ai-team-lg .tav { width: 42px; height: 42px; border-color: var(--mark); }
.ai-team-lg .tav + .tav { margin-left: -12px; }
body:has(.cmpbar) .ai-fab { bottom: 96px; }
@media (max-width: 980px) { body:has(.m-cta) .ai-fab { bottom: 84px; } }
@media (max-width: 560px) { .ai-fab-txt { display: none; } .ai-fab { gap: 6px; padding: 5px; } .ai-team .tav { width: 30px; height: 30px; } }
body.ai-open .ai-fab { display: none; }
.ai-panel { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100vh - 36px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: 0 24px 70px rgba(22,29,43,.28); display: flex; flex-direction: column; overflow: hidden; }
.ai-panel[hidden] { display: none; }
@media (max-width: 560px) { .ai-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; height: 100dvh; } }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 14px 10px 14px 14px; border-bottom: 1px solid var(--line); background: var(--mark); color: var(--mark-ink); }
.ai-head > div { flex: 1; min-width: 0; }
.ai-head b { display: block; font-size: 16px; }
.ai-head > div span { font-size: 12.5px; opacity: .88; display: inline-flex; align-items: center; gap: 6px; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 2px rgba(61,220,132,.25); flex-shrink: 0; }
.ai-who { font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 0 0 -4px 2px; }
.ai-head .icon-btn { color: var(--mark-ink); }
.ai-head .icon-btn:hover { background: rgba(255,255,255,.12); }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--sunk); overscroll-behavior: contain; }
.ai-msg { display: flex; flex-direction: column; gap: 8px; max-width: 92%; }
.ai-me { align-self: flex-end; align-items: flex-end; }
.ai-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: 14.5px; line-height: 1.5; }
.ai-me .ai-bubble { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); border-radius: 14px 14px 4px 14px; }
.ai-bubble p { margin: 0 0 6px; } .ai-bubble p:last-child { margin: 0; }
.ai-bubble ul { margin: 4px 0 6px; padding-left: 18px; }
.ai-bubble a { color: inherit; text-underline-offset: 3px; font-weight: 600; }
.ai-wait .ai-bubble { color: var(--muted); animation: aipulse 1s ease-in-out infinite alternate; }
@keyframes aipulse { from { opacity: .45; } to { opacity: 1; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; background: var(--surface); }
.ai-chips[hidden] { display: none; }
.ai-chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); text-align: left; }
.ai-chip:hover { border-color: var(--mark); background: var(--mark-soft); }
.ai-form { display: flex; gap: 8px; padding: 10px 12px; background: var(--surface); align-items: flex-end; }
.ai-form textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.4; max-height: 120px; }
.ai-form textarea:focus { outline: 2px solid var(--ink-2); outline-offset: 1px; }
.ai-form .btn { min-height: 42px; padding-inline: 12px; }
.ai-note { margin: 0; padding: 0 12px 10px; font-size: 12px; color: var(--muted); background: var(--surface); }
.ai-note a { color: inherit; }
.ai-chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 8px; }
.ai-chart figcaption { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.ai-chart figcaption span { font-weight: 500; color: var(--muted); }
.ai-chart svg { width: 100%; height: auto; display: block; }
.ai-grid { stroke: var(--line); stroke-width: 1; }
.ai-ax { font-size: 10.5px; fill: var(--muted); font-family: var(--f-body); }
.ai-val { font-size: 10.5px; fill: var(--ink-2); font-weight: 700; font-family: var(--f-body); }
.ai-s0 { fill: #3B4A63; stroke: #3B4A63; } .ai-s1 { fill: #1C7A46; stroke: #1C7A46; } .ai-s2 { fill: #B4690E; stroke: #B4690E; }
polyline.ai-s0, polyline.ai-s1, polyline.ai-s2 { fill: none; }
.ai-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.ai-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ai-legend i.ai-s0 { background: #3B4A63; } .ai-legend i.ai-s1 { background: #1C7A46; } .ai-legend i.ai-s2 { background: #B4690E; }
.ai-cnote { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.ai-cars { display: flex; flex-direction: column; gap: 6px; }
.ai-car { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; text-decoration: none; color: var(--ink); }
.ai-car:hover { border-color: var(--accent); }
.ai-car img, .ai-noimg { width: 76px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--sunk); flex-shrink: 0; }
.ai-car span { display: flex; flex-direction: column; min-width: 0; }
.ai-car b { font-size: 14px; } .ai-car small { color: var(--muted); font-size: 12px; } .ai-car em { font-style: normal; font-weight: 800; font-size: 14px; }
.ai-all { font-size: 13px; font-weight: 700; color: var(--ink); padding: 2px 4px; }
.ai-plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ai-plan li { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; opacity: 0; transform: translateY(6px); animation: aistep .35s ease forwards; }
.ai-plan li:nth-child(2) { animation-delay: .08s; } .ai-plan li:nth-child(3) { animation-delay: .16s; } .ai-plan li:nth-child(4) { animation-delay: .24s; } .ai-plan li:nth-child(5) { animation-delay: .32s; }
@keyframes aistep { to { opacity: 1; transform: none; } }
.ai-plan li.on { border-color: var(--mark); box-shadow: 0 0 0 2px var(--mark-soft); }
.ai-plan li > span { width: 26px; height: 26px; border-radius: 50%; background: var(--mark); color: var(--mark-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.ai-plan b { font-size: 14px; } .ai-plan p { margin: 2px 0 0; font-size: 13px; color: var(--muted); } .ai-plan a { font-size: 13px; font-weight: 700; color: var(--ink); }

/* ---------- cookie settings (consent) ---------- */
.cc-back { position: fixed; inset: 0; z-index: 90; background: rgba(22,29,43,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-back[hidden] { display: none; }
body.cc-open { overflow: hidden; }
.cc { width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(22,29,43,.35); padding: 26px 26px 20px; display: flex; flex-direction: column; gap: 16px; }
.cc h2 { font-size: 26px; }
.cc-intro p { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.cc-list { background: var(--sunk); border-radius: var(--r-lg); padding: 4px 14px; }
.cc-row { border-bottom: 1px solid var(--line); }
.cc-row:last-child { border-bottom: 0; }
.cc-row summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; min-height: 44px; }
.cc-row summary::-webkit-details-marker { display: none; }
.cc-row summary b { flex: 1; font-size: 14.5px; }
.cc-row p { margin: 0 0 12px 24px; font-size: 13.5px; color: var(--muted); }
.cc-chev { width: 14px; height: 14px; flex-shrink: 0; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .15s; }
.cc-row[open] .cc-chev { transform: rotate(225deg) translate(-3px, -3px); }
.cc-sw { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.cc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-sw span[aria-hidden] { width: 46px; height: 26px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); position: relative; transition: background .15s; }
.cc-sw span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .15s, background .15s; }
.cc-sw input:checked + span { background: var(--mark); border-color: var(--mark); }
.cc-sw input:checked + span::after { transform: translateX(20px); background: #fff; }
.cc-sw input:focus-visible + span { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cc-sp { flex: 1; }
.cc-actions .btn { border-radius: 999px; }
@media (max-width: 520px) { .cc { padding: 20px 16px 16px; } .cc-actions .btn { flex: 1 1 auto; } .cc-sp { display: none; } }

/* ---------- compare: "Forskellen kort fortalt" ---------- */
.cmpx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.cmpx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cmpx-head h2 { font-size: clamp(18px, 2vw, 22px); line-height: 1.3; max-width: 60ch; font-stretch: 110%; }
.cmpx-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .cmpx-grid { grid-template-columns: minmax(0, 1fr); } }
.cmpx-car { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cmpx-car header b { display: block; font-size: 16px; }
.cmpx-car header span { font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.cmpx-car header em { display: inline-block; margin-left: 8px; font-style: normal; font-size: 12px; font-weight: 700; background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 2px 9px; vertical-align: 2px; }
.cmpx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cmpx-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; opacity: 0; transform: translateX(-8px); animation: cmpxin .4s ease forwards; animation-delay: calc(var(--d, 0) * 90ms + 100ms); }
.cmpx-list li svg.i { width: 16px; height: 16px; margin-top: 2px; }
.cmpx-list li.pro { background: var(--ok-soft); color: #134f2e; }
.cmpx-list li.pro svg.i { color: var(--ok); }
.cmpx-list li.con { background: var(--danger-soft); color: #7a1a12; }
.cmpx-list li.con svg.i { color: var(--danger); }
.cmpx-list li.neutral { background: var(--sunk); color: var(--muted); }
@keyframes cmpxin { to { opacity: 1; transform: none; } }
.cmpx-run { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.cmpx-run span { grid-column: 1 / -1; }
.cmpx-run b { color: var(--ink); font-size: 14px; white-space: nowrap; }
.cmpx-bar { height: 8px; background: var(--sunk-2); border-radius: 999px; overflow: hidden; }
.cmpx-bar i { display: block; height: 100%; width: var(--w); background: var(--mark); border-radius: 999px; transform-origin: left; animation: cmpxbar .8s ease-out both .3s; }
@keyframes cmpxbar { from { transform: scaleX(0); } }
.cmpx-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
body:has(.gate) footer.site { margin-top: 0; }
body:has(.gate) .ai-fab { display: none; }
.band-accent .btn-mark { background: #fff; color: var(--ink); border-color: #fff; }
.band-accent .btn-mark:hover { background: var(--sunk); }
.crumbs { align-items: center; }
.cmpx-car header em { display: table; margin: 6px 0 0; }

/* Guide pages */
.guide h2 { font-size: 19px; margin: 26px 0 8px; }
.guide h2:first-child { margin-top: 0; }
.guide p, .guide li { line-height: 1.65; }

/* Admin > Fejllog */
.err-item summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; list-style: none; }
.err-item summary::-webkit-details-marker { display: none; }
.err-msg { flex: 1 1 320px; font-size: 14.5px; overflow-wrap: anywhere; }
.err-stack { margin: 0; max-height: 320px; overflow: auto; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Front-page takeover (partner campaign around the search box). See Admin > Kampagner for the image sizes. */
.to { position: relative; overflow: hidden; background: var(--to-bg, #E9EDF2); isolation: isolate; }
.to-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: -2; }
.to-link { position: absolute; inset: 0; z-index: -1; }
.to-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 800px) minmax(0, 1fr); gap: 28px; align-items: center; min-height: clamp(560px, 39vw, 760px); padding: 40px max(24px, 2vw); pointer-events: none; }
.to-grid > * { pointer-events: auto; }
.to-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 300px; }
.to-left { justify-self: start; } .to-right { justify-self: end; text-align: right; align-items: flex-end; }
.to-side b { font-family: var(--f-display); font-stretch: 112%; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.to-side p { margin: 0; font-size: 15px; line-height: 1.45; }
.to-side .chip-ad { background: rgba(255,255,255,.85); color: var(--ink); }
.to-dark .to-side { color: var(--ink); }
.to-light .to-side { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.to-light .to-side .btn { color: var(--ink); text-shadow: none; }
.to-center { background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 18px 50px rgba(22,29,43,.22); padding: 26px 26px 0; overflow: hidden; }
.to-title { font-family: var(--f-display); font-stretch: 112%; font-size: clamp(24px, 2.4vw, 32px); text-align: center; margin: 0; letter-spacing: -.02em; }
.to-count { text-align: center; color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.to-center .spanel { box-shadow: none; border: 0; margin: 10px -26px 0; border-radius: 0; }
.to-center .spanel-head { display: none; }
.to-mobile { display: none; }
@media (max-width: 1180px) {
  .to { background: var(--surface); }
  .to-img { position: relative; height: 170px; display: block; }
  .to-link { bottom: auto; height: 170px; }
  .to-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 0 16px 8px; margin-top: -40px; }
  .to-side { display: none; }
  .to-center { padding: 20px 16px 0; }
  .to-center .spanel { margin: 10px -16px 0; }
  .to-mobile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 16px 18px; font-size: 14px; }
  .to-mobile .chip-ad { background: var(--sunk); }
}

/* Delivery price estimate */
.est { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--ok-soft); color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.est b { font-size: 18px; }
.est span { font-size: 14px; color: var(--ink-2); }
.est-err { background: var(--warn-soft); color: var(--warn); }

/* Front page: guides and delivery band */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.guide-card:hover { border-color: var(--ink-2); box-shadow: var(--shadow-sm); }
.guide-card b { font-size: 17px; }
.guide-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.guide-compare { background: var(--mark-soft); border-color: transparent; }
.deliver-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.deliver-band > div:first-of-type { max-width: 62ch; }
.deliver-band p { margin: 8px 0 0; opacity: .9; }
.ai-team-md .tav { width: 46px; height: 46px; }
.ai-team-md .tav + .tav { margin-left: -12px; }
.ai-contact { display: inline-block; font-weight: 700; color: var(--ink) !important; margin-bottom: 2px; }
