/* KvikTilbud: Kompas AI-paletten (creme, navy, mørk lilla som accent), Schibsted Grotesk, kantede hjørner. Ét lyst tema. */
:root {
  --bg: #F2E9D8; --screen: #F8F3E9; --surface: #FFFDF8; --ink: #0F2340; --muted: #4A5872; --line: #D9CBB0;
  --accent: #4A2C85; --accent-ink: #FFFFFF; --accent-soft: #E9E3F3; --navy: #0F2340;
  --chalk-soft: #EFE4CC; --chalk-ink: #0F2340;
  --ok: #1E6B45; --ok-soft: #DDEBDF; --warn-soft: #EEDDD3; --warn-ink: #7A3B1C; --danger: #A8321F;
  --paper: #FFFFFF; --paper-line: #E2D8C4;
  --f: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light; accent-color: var(--accent);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--screen); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
@media (min-width: 560px) { body { background: var(--bg); } }

.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; background: var(--screen); display: flex; flex-direction: column; position: relative; }
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px var(--line); } }
.view { flex: 1; display: flex; flex-direction: column; gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left)); }
.view:focus { outline: none; }

h1, h2, h3 { font-family: var(--f); letter-spacing: -.02em; margin: 0; line-height: 1.1; text-wrap: balance; }
.topbar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.topbar h1 { font-size: 24px; font-weight: 700; }
.topbar .sub { font-size: 14px; color: var(--muted); }
.back { border: 0; background: var(--surface); color: var(--ink); width: 44px; height: 44px; border-radius: 4px; font-size: 22px; cursor: pointer; flex: none; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; text-decoration: none; }
.eyebrow { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: proportional-nums; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--accent); }

button, input, textarea, select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn { border: 0; border-radius: 4px; min-height: 48px; padding: 12px 16px; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-danger { background: var(--surface); color: var(--danger); box-shadow: inset 0 0 0 1px var(--line); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0 max(4px, env(safe-area-inset-bottom)); margin-top: auto; background: linear-gradient(to top, var(--screen) 75%, transparent); display: grid; gap: 8px; z-index: 2; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.card { background: var(--surface); border-radius: 6px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.stack { display: grid; gap: 10px; }

/* Felter */
.terms-check { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.terms-check input { width: 28px; height: 28px; flex: none; accent-color: var(--accent); }
.terms-check:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 600; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select, .input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 11px 12px; min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input[aria-invalid="true"] { border-color: var(--danger); }

/* Beskeder */
.alert { border-radius: 6px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: start; }
.alert-error { background: var(--warn-soft); color: var(--warn-ink); }
.alert-info { background: var(--accent-soft); color: var(--ink); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert b { display: block; }
.toast { position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); width: min(488px, calc(100% - 24px)); transform: translate(-50%, -160%); background: var(--ink); color: var(--screen); border-radius: 6px; padding: 12px 14px; font-size: 14px; transition: transform .3s ease; z-index: 20; }
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--warn-ink); }

/* Login */
.brand { display: flex; gap: 10px; align-items: center; }
.logo { width: 44px; height: 44px; border-radius: 4px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }
.hero { padding: 28px 0 8px; display: grid; gap: 10px; }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.035em; }
.hero p { color: var(--muted); font-size: 17px; }

/* Forside */
.hello { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border-radius: 6px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font-size: 24px; line-height: 1; }
.stat span { font-size: 12px; color: var(--muted); }
.big-new { background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 18px; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.big-new .plus { width: 48px; height: 48px; border-radius: 4px; background: var(--accent); display: grid; place-items: center; font-size: 28px; font-weight: 600; flex: none; }
.big-new b { font-size: 22px; display: block; line-height: 1.1; }
.big-new small { font-size: 14px; opacity: .85; }
.qlist { display: grid; gap: 8px; }
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; background: var(--surface); border-radius: 6px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; min-height: 64px; }
.qrow .who { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .what { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .amt { text-align: right; font-size: 14px; }
.pill { justify-self: end; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; white-space: nowrap; align-self: center; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.wait { background: var(--chalk-soft); color: var(--chalk-ink); }
.pill.lost { background: var(--warn-soft); color: var(--warn-ink); }
.pill.new { background: var(--accent-soft); color: var(--accent); }
.empty { text-align: center; padding: 22px 14px; color: var(--muted); font-size: 14px; }

.tabbar { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: 4px 8px max(8px, env(safe-area-inset-bottom)); z-index: 3; }
.tabbar a { color: var(--muted); font-size: 12px; font-weight: 600; padding: 6px; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 2px; text-decoration: none; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--accent); }

/* Nyt tilbud */
.mic-wrap { display: grid; justify-items: center; gap: 8px; padding: 4px 0; }
.mic { width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; position: relative; }
.mic svg { width: 36px; height: 36px; }
.mic.rec { background: #C8372D; }
.mic.rec::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid #C8372D; opacity: .5; animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.25); opacity: 0; } }
.mic-label { font-size: 14px; color: var(--muted); text-align: center; }
.audio-ok { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.audio-ok audio { flex: 1; min-width: 0; height: 40px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo { aspect-ratio: 1; border-radius: 4px; overflow: hidden; position: relative; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo button { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; border-radius: 4px; background: rgba(15,35,64,.8); color: #fff; font-size: 20px; cursor: pointer; }
.photo span { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 600; background: rgba(15,35,64,.75); color: #fff; padding: 2px 6px; border-radius: 3px; }
.photo-add { aspect-ratio: 1; border-radius: 4px; border: 2px dashed var(--line); background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; align-content: center; gap: 4px; font-size: 13px; font-weight: 600; position: relative; }
.photo-add svg { width: 26px; height: 26px; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-add:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

/* AI arbejder */
.working { flex: 1; display: grid; align-content: center; gap: 22px; padding: 10px 6px; }
.working h2 { font-size: 30px; line-height: 1.05; }
.steps { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--muted); }
.steps .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; }
.steps li.active, .steps li.done { color: var(--ink); }
.steps li.active .dot { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li small { display: block; font-size: 14px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.timer { font-size: 14px; color: var(--muted); }

/* Tjek og ret */
.ai-banner { display: flex; gap: 10px; align-items: start; background: var(--accent-soft); border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.ai-banner b { color: var(--accent); }
.lines { display: grid; gap: 8px; }
.line { background: var(--surface); border-radius: 6px; padding: 12px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.line.needs { box-shadow: inset 0 0 0 2px var(--warn-ink); }
.line.saving { opacity: .7; }
.line-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.line-head input { font: inherit; font-weight: 600; color: var(--ink); border: 1px solid transparent; border-radius: 4px; background: none; padding: 8px 6px; margin-left: -6px; width: 100%; min-width: 0; min-height: 44px; }
.line-head input:hover, .line-head input:focus { border-color: var(--line); background: var(--screen); }
.line-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 22px; width: 44px; height: 44px; flex: none; }
.line-calc { display: grid; grid-template-columns: 78px auto 96px minmax(0, 1fr); gap: 6px; align-items: center; font-size: 14px; }
.line-calc input { font-size: 16px; width: 100%; color: var(--ink); background: var(--screen); border: 1px solid var(--line); border-radius: 4px; padding: 8px 6px; text-align: right; min-height: 44px; font-variant-numeric: tabular-nums; }
.line-calc .unit { color: var(--muted); white-space: nowrap; }
.line-calc .sum { text-align: right; font-weight: 600; }
.src { font-size: 14px; color: var(--muted); }
.note { font-size: 14px; background: var(--chalk-soft); color: var(--chalk-ink); border-radius: 4px; padding: 7px 9px; display: flex; gap: 6px; font-style: italic; }
.note .pen { font-style: normal; }
.needs-msg { font-size: 14px; color: var(--warn-ink); font-weight: 600; }
.add-line { border: 2px dashed var(--line); background: none; color: var(--muted); border-radius: 6px; padding: 12px; min-height: 48px; cursor: pointer; font-weight: 600; font-size: 15px; width: 100%; }
.add-box { display: grid; gap: 8px; }
.totals { display: grid; gap: 4px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 8px; }
.totals .grand { font-size: 19px; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.desc { font-size: 15px; line-height: 1.5; white-space: pre-line; }
.assumptions { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }

/* Send */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 6px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; color: var(--muted); padding: 10px; min-height: 44px; border-radius: 4px; font-weight: 600; font-size: 15px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* Sendt */
.done-hero { text-align: center; display: grid; justify-items: center; gap: 6px; padding-top: 14px; }
.done-hero .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.done-hero .tick.lost { background: var(--warn-soft); color: var(--warn-ink); }
.done-hero .tick svg { width: 34px; height: 34px; }
.done-hero h2 { font-size: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 14px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline .tdot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.timeline li.done .tdot { background: var(--accent); border-color: var(--accent); }
.timeline li.lost .tdot { background: var(--warn-ink); border-color: var(--warn-ink); }
.timeline li.skip { opacity: .5; }
.timeline li.skip b { text-decoration: line-through; }
.timeline b { font-size: 15px; display: block; }
.timeline small { font-size: 14px; color: var(--muted); }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { flex: 1; min-width: 0; font-size: 13px; }

/* Prisliste */
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow .pn { font-size: 15px; font-weight: 500; }
.prow .pu { font-size: 14px; color: var(--muted); }
.prop { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prop:last-child { border-bottom: 0; }
.prop input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--accent); justify-self: center; }
.prop .pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 88px 100px; gap: 6px; }
.prop .pgrid input, .prop .pgrid select, .newitem input, .newitem select { font: inherit; font-size: 16px; width: 100%; color: var(--ink); background: var(--screen); border: 1px solid var(--line); border-radius: 4px; padding: 8px 6px; min-height: 44px; }
.prop.off .pgrid { opacity: .45; }
.newitem { display: grid; grid-template-columns: minmax(0, 1fr) 88px 100px; gap: 6px; }
@media (max-width: 400px) { .prop .pgrid, .newitem { grid-template-columns: 1fr 1fr; } .prop .pgrid > :first-child, .newitem > :first-child { grid-column: 1 / -1; } }
.filedrop { display: flex; gap: 12px; align-items: center; position: relative; }
.filedrop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filedrop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.fileicon { width: 40px; height: 48px; border-radius: 3px; background: var(--warn-soft); color: var(--warn-ink); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.progress-dots { display: flex; gap: 6px; }
.progress-dots i { flex: 1; height: 4px; background: var(--line); }
.progress-dots i.on { background: var(--accent); }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 30px auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Logo, prisrækker og filknap */
.logo-img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; flex: none; }
.logo-edit { display: flex; gap: 14px; align-items: center; }
.logo-edit .logo-img { width: 72px; height: 72px; }
.filebtn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.filebtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filebtn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.pact { grid-column: 1 / -1; display: flex; gap: 8px; }
.prow-edit { display: grid; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Tale til tekst: information og til/fra */
.stt { border-radius: 4px; }
.stt p { margin: 0; font-size: 14px; }
.stt-actions { display: grid; gap: 8px; }
.stt-actions .btn { min-height: 48px; }
.stt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.stt-info summary { cursor: pointer; font-size: 14px; color: var(--accent); min-height: 32px; display: flex; align-items: center; }
.stt-info { display: grid; gap: 6px; }

/* Tilgængelighed og robusthed */
.skip { position: absolute; left: 8px; top: -60px; z-index: 30; background: var(--ink); color: var(--screen); padding: 12px 16px; min-height: 44px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }
.net { position: sticky; top: 0; z-index: 15; background: var(--warn-ink); color: #fff; padding: 12px 14px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.toast.error { color: #fff; }
button:disabled, .btn:disabled { cursor: not-allowed; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.tabbar a:focus-visible { outline-offset: -3px; }
.line-del, .photo button, [data-delphoto], [data-delclip] { min-width: 44px; min-height: 44px; }
.stt-info summary { min-height: 44px; }
body, .view { overflow-wrap: anywhere; }
@media (forced-colors: active) { .btn, .seg button, .switch { border: 1px solid ButtonText; } }

/* Landingsside (ikke-indloggede) */
.lp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; }
.lp-hero { background: var(--navy); color: #F6EEDF; border-radius: 6px; padding: 24px 18px 22px; display: grid; gap: 14px; }
.lp-hero .eyebrow { color: #C9D2E3; }
.lp-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.lp-lead { font-size: 17px; line-height: 1.5; color: #E4E9F2; }
.lp-hero .muted { color: #C9D2E3; }
.lp-hero .btn-primary { background: #FFFDF8; color: var(--navy); min-height: 52px; font-size: 17px; }
.lp-hero :focus-visible { outline-color: #FFFDF8; }
.lp-h2 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; background: var(--surface); border-radius: 6px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.lp-n { width: 44px; height: 44px; border-radius: 4px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.lp-steps h3 { font-size: 18px; margin-bottom: 4px; }
.lp-steps p { color: var(--muted); font-size: 15px; }
.lp-faq { display: grid; gap: 8px; }
.lp-faq details { background: var(--surface); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; }
.lp-faq summary { cursor: pointer; font-weight: 600; min-height: 48px; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 22px; color: var(--accent); flex: none; }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq details p { padding-bottom: 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.lp-final { background: var(--accent-soft); border-radius: 6px; padding: 20px 16px; display: grid; gap: 10px; }
.lp-final h2 { font-size: 24px; }
.lp-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 0 12px; }
.lp-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- opdateringsbanner, installguide, abonnement ---- */
.upd { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); width: min(488px, calc(100% - 24px)); min-height: 52px; border: 0; border-radius: 6px; background: var(--navy); color: #fff; font: inherit; text-align: left; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; z-index: 15; box-shadow: 0 4px 16px rgba(15,35,64,.3); }
.upd b { font-size: 15px; }
.upd span { font-size: 13px; opacity: .85; }
.upd[disabled] { opacity: .6; }
.install-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.install h2 { font-size: 18px; }
.install ol { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 4px; font-size: 15px; }
.install .x { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 4px; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.paywall h2 { font-size: 22px; }
.linkpad { display: inline-block; padding: 14px 0; }
.install ol { font-family: var(--f); }

/* Fotos på tilbuddet + stor visning */
.photo-open { border: 0; padding: 0; cursor: pointer; display: block; width: 100%; }
.photo-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(15,35,64,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; }
.photo-overlay img { max-width: 100%; max-height: calc(100% - 72px); object-fit: contain; display: block; }
.po-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #fff; }
.po-bar button { min-width: 44px; min-height: 44px; border: 0; border-radius: 4px; background: #F2E9D8; color: #0F2340; font: inherit; font-weight: 700; font-size: 18px; padding: 0 14px; cursor: pointer; }
.po-bar button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.po-count { min-width: 56px; text-align: center; font-size: 14px; }

/* Foldet gruppe af afsluttede tilbud på forsiden */
details.closed > summary { cursor: pointer; list-style: none; padding: 12px 0; }
details.closed > summary::-webkit-details-marker { display: none; }
details.closed > summary::after { content: ' ▾'; }
details.closed[open] > summary::after { content: ' ▴'; }
details.closed .qlist { margin-bottom: 10px; }
.qrow[hidden] { display: none; }
.qsearch { margin: 4px 0 12px; }

/* Kundeoplysninger foldet sammen på Nyt tilbud */
.cust summary { cursor: pointer; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 2px; color: var(--navy); font-weight: 600; }
.cust summary small { font-weight: 400; opacity: .75; font-size: 14px; }
.cust[open] summary { margin-bottom: 10px; }
.cust summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.install p { margin: 0; font-size: 15px; }
.install-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.install-line .btn { min-height: 44px; }

/* Hent app / Åben i app øverst på forsiden */
.app-btn { min-height: 44px; min-width: 44px; padding: 8px 16px; font-size: 15px; flex: none; }
.guide-body { flex: 1; overflow-y: auto; padding: 20px 18px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; max-width: 520px; width: 100%; margin: 0 auto; }
.guide-lead { font-size: 17px; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.guide-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; line-height: 1.35; }
.guide-n { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 26px; font-weight: 700; border-radius: 4px; }

/* PDF-overlay: fuld skærm i samme side, stor Luk-knap øverst */
.pdf-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--screen); display: flex; flex-direction: column; }
.pdf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: #fff; padding: max(8px, env(safe-area-inset-top)) 12px 8px; }
.pdf-title { font-weight: 700; font-size: 16px; }
.pdf-close { min-height: 48px; min-width: 96px; padding: 0 22px; border: 2px solid #fff; border-radius: 6px; background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.pdf-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pdf-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 0; }
.pdf-body .alert { margin: 16px; }
.pdf-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* Fremdriftsspor i tilbudslisten */
.qrow .track { grid-column: 1 / -1; display: grid; gap: 4px; margin-top: 2px; }
.track .segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.track .segs i { height: 8px; border-radius: 2px; background: var(--line); display: block; }
.track .segs i.on { background: var(--accent); }
.track .segs i.off { background: repeating-linear-gradient(135deg, var(--line) 0 3px, var(--surface) 3px 6px); }
.track-txt { font-size: 12px; color: var(--muted); }

/* startprisliste */
.st-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.st-group legend { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 0; }
.st-row { border-bottom: 1px solid var(--line); padding: 4px 0 8px; }
.st-row:last-child { border-bottom: 0; }
.st-check { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 48px; cursor: pointer; }
.st-check input { width: 24px; height: 24px; accent-color: var(--accent); justify-self: center; }
.st-check .hint { display: block; font-size: 14px; color: var(--muted); }
.st-price { margin: 4px 0 4px 52px; }
.st-price[hidden] { display: none; }
.st-status { color: var(--ink); font-weight: 600; }
.stack > .hint { font-size: 14px; color: var(--muted); }
.qcount { text-align: center; margin: 12px 0 0; }
.stt-row > span { min-width: 0; }

.msg-default { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.field { position: relative; }
.sugg { list-style: none; margin: 2px 0 0; padding: 0; position: absolute; left: 0; right: 0; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.sugg[hidden] { display: none; }
.sugg li + li { border-top: 1px solid var(--line); }
.sugg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 48px; padding: 8px 12px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.sugg button:focus-visible, .sugg button:hover { background: var(--cream, #f5f0e6); outline: none; }

/* loop 18: tjek-og-ret på mobil, eksempel, toast med handling, forklaringslinje */
.line-qty { display: flex; align-items: center; gap: 10px; }
.stepper { display: flex; align-items: stretch; flex: 1; max-width: 260px; }
.stepper .step { width: 56px; min-height: 52px; font-size: 28px; font-weight: 600; line-height: 1; background: var(--surface); color: var(--ink); border: 1px solid var(--line); cursor: pointer; flex: none; }
.stepper .step:first-child { border-radius: 4px 0 0 4px; }
.stepper .step:last-child { border-radius: 0 4px 4px 0; }
.stepper .qty-in { flex: 1; min-width: 0; text-align: center; font-size: 24px; font-weight: 600; min-height: 52px; border: 1px solid var(--line); border-left: 0; border-right: 0; border-radius: 0; background: var(--screen); color: var(--ink); font-variant-numeric: tabular-nums; }
.line-qty .unit { color: var(--muted); font-size: 15px; }
.line .line-calc { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
.toast-act { margin-left: 12px; min-height: 44px; padding: 0 14px; background: var(--screen); color: var(--ink); border: 0; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; }
.toast.show { display: flex; align-items: center; justify-content: space-between; }
.pick { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.pick li + li { border-top: 1px solid var(--line); }
.pick button { display: flex; justify-content: space-between; gap: 8px; align-items: center; width: 100%; min-height: 48px; padding: 8px 12px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.pick button.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.linkbtn { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; min-height: 44px; }
.alert-example { background: var(--warn-soft); color: var(--warn-ink); }
.example-offer { border: 1px dashed var(--line); }
.track-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 8px; font-size: 12px; }
.track-legend .segs { display: inline-flex; gap: 2px; }
.track-legend .segs i { width: 10px; height: 4px; background: var(--ink); opacity: .45; }

/* til/fra-kontakt */
.switch { position: relative; flex: none; width: 92px; min-width: 92px; height: 44px; border: 0; border-radius: 22px; background: var(--chalk-soft); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; padding: 0; font: inherit; font-weight: 700; font-size: 15px; transition: background .2s ease, box-shadow .2s ease, color .2s ease; }
.switch .sw-knob { position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 50%; background: #8A93A3; transition: transform .2s ease, background .2s ease; box-shadow: 0 1px 3px rgba(15,35,64,.3); }
.switch .sw-state { position: absolute; top: 0; bottom: 0; right: 14px; display: flex; align-items: center; }
.switch.on { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
.switch.on .sw-knob { transform: translateX(48px); background: #fff; }
.switch.on .sw-state { right: auto; left: 12px; }
.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.switch:disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .switch, .switch .sw-knob { transition: none; } }

/* besvaret tilbud (accepteret / afvist) */
.answer-hero { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 16px 18px; border-radius: 6px; background: var(--ok-soft); color: var(--ink); }
.answer-hero.rej { background: var(--chalk-soft); }
.answer-hero h2 { margin: 0; font-size: 22px; }
.answer-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.answer-hero.rej .answer-ico { background: var(--navy); }
.answer-ico svg { width: 38px; height: 38px; }
.answer-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.answer-hero.rej .answer-label { color: var(--navy); }
.answer-amt { font-size: 34px; font-weight: 700; line-height: 1.1; }
.answer-track { margin-top: 8px; width: 100%; }
.qrow.acc { box-shadow: inset 4px 0 0 var(--ok); }
.qrow.rej { box-shadow: inset 4px 0 0 var(--navy); }
.closed-flow summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }

/* iOS-installationsguide: store trin */
.guide-steps.big { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guide-steps.big li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; }
.guide-card { background: var(--surface); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); padding: 12px; display: grid; gap: 8px; }
.guide-card p { margin: 0; font-size: 18px; line-height: 1.35; }
.guide-ill { width: 100%; height: auto; max-height: 130px; display: block; }
.ill-bar { fill: var(--chalk-soft); stroke: var(--line); stroke-width: 1.5; }
.ill-field { fill: var(--surface); }
.ill-dot { fill: var(--muted); opacity: .5; }
.ill-hl { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 3; }
.ill-ic { stroke: var(--accent); }
.ill-arrow { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ill-hl-row { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 3; }
.ill-text { fill: var(--ink); font: 600 16px var(--f); }
.ill-text.small { font-weight: 500; font-size: 14px; fill: var(--muted); }
.ill-text-inv { fill: #fff; font: 700 15px var(--f); }
.ill-hl-btn { fill: var(--accent); }
.ill-ic-box { fill: none; stroke: var(--ink); stroke-width: 2; }
.ill-ic-plus { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; fill: none; }

.share-hint { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy); color: #fff; border-radius: 8px; padding: 12px 14px; font-size: 17px; }
.share-hint svg { flex: none; animation: hint-bob 1s ease-in-out infinite; }
.share-hint-x { min-height: 44px; padding: 0 12px; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 4px; font: inherit; cursor: pointer; }
@keyframes hint-bob { 50% { transform: translateY(4px); } }

/* Ændringsønske fra kunden på sendt-skærmen */
.change-req { border: 2px solid var(--accent); background: var(--accent-soft); }
.change-req .cr-msg { margin: 0; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cr-badge { margin-left: 6px; }
/* Push-kontakten under Firma > Beskeder: adskilt fra kontakten ovenfor med en tynd linje. */
.push-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
#push-nudge:empty { display: none; }

/* Pris og prøve (loop 22) */
.price-box { background: var(--accent-soft); color: var(--navy); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--accent); padding: 12px 14px; font-size: 16px; line-height: 1.4; }
.trial-band { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--navy); color: #FFFDF8; border-radius: 6px; padding: 12px 14px; text-decoration: none; min-height: 48px; }
.trial-band span { font-size: 14px; opacity: .85; }

/* Demo før login (#eksempel) */
.lp-hero .lp-demo { background: transparent; color: #F6EEDF; box-shadow: inset 0 0 0 2px #F6EEDF; min-height: 48px; }
.demo-flag { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 10px 12px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--accent); }
.demo-flag b { margin-right: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.demo-table { width: 100%; border-collapse: collapse; }
.demo-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.demo-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-sum { margin: 0; display: grid; gap: 6px; }
.demo-sum div { display: flex; justify-content: space-between; gap: 12px; }
.demo-sum dt, .demo-sum dd { margin: 0; }
.demo-sum .tot { font-weight: 700; font-size: 18px; color: var(--navy); border-top: 2px solid var(--navy); padding-top: 8px; }
.demo-cust { border-left: 4px solid var(--navy); }
.btn-delete { background: var(--danger); color: #fff; }
.btn-delete[disabled] { opacity: .45; }
.goodbye h1 { font-size: 26px; }

.mic-note { text-align: center; margin-top: 4px; }
.retention ul { margin: 6px 0 0; padding-left: 18px; }
.retention li + li { margin-top: 3px; }

/* Loop 27: hjælpetekster mindst 14 px, support, spam-hjælp, link-deling, send-side */
.hint { font-size: 14px; color: var(--muted); }
.support { font-size: 15px; margin: 0; }
.support a, .no-prices a, .link-alt a { color: var(--accent); }
.spam-note { font-size: 15px; }
.link-alt.emph { box-shadow: inset 0 0 0 2px var(--accent); }
.link-share { box-shadow: inset 0 0 0 2px var(--accent); }
.setup-help .hint { display: block; }
#write-instead { justify-self: center; }
