/* FOLKET — appen (stem.html). Mobile first: appen er designet til telefonen.
   På større skærme vises præcis samme app i en telefonramme ved siden af en kort intro. */
:root { --c-for: var(--blue); --c-imod: #dfe4f0; --c-tvivl: rgba(255,255,255,.3); --tab-h: 64px; --app-pad: 18px; }
.dim { color: var(--muted); }
kbd { font-family: var(--mono); font-size: 10px; line-height: 1; padding: 3px 5px; border: 1px solid var(--line-2); color: var(--soft); }

/* ================= page shell ================= */
.app-page { overflow: hidden; }
.app-page .nav { display: none; }
.app-page .footer { display: none; }
.desk-intro { display: none; }
.app-desk { position: fixed; inset: 0; }

/* ================= the device ================= */
.device { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; isolation: isolate; }
.iphone-status { display: none; }

.appbar {
  flex: none; position: relative; z-index: 6;
  height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--app-pad) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(1,1,3,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.appbar-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.04em; justify-self: start; }
.appbar-brand .brand-mark { width: 14px; height: 14px; }
.appbar-title { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.appbar-menu { justify-self: end; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; background: none; border: 1px solid var(--line-2); cursor: pointer; padding: 0; }
.appbar-menu i { display: block; width: 16px; height: 2px; background: #fff; }
.menu-close { display: none; }

.scroller {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 18px var(--app-pad) calc(var(--dock-h, 0px) + 28px); scroll-padding-bottom: var(--dock-h, 0px);
}
.screen { display: none; }
.screen.is-active { display: block; animation: scrIn .26s ease; }
@keyframes scrIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.is-active { animation: none; } }

/* ---------- tab bar ---------- */
.appnav {
  flex: none; position: relative; z-index: 6;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch;
  background: rgba(1, 1, 3, .96); border-top: 1px solid var(--line);
}
.appnav button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.appnav button.is-active { color: #fff; }
.appnav .ic { width: 18px; height: 18px; position: relative; display: block; }
.ic-stem { border: 1.5px solid currentColor; }
.appnav .is-active .ic-stem { background: var(--blue); border-color: var(--blue); }
.ic-res { background: linear-gradient(currentColor, currentColor) 0 100%/4px 60% no-repeat, linear-gradient(currentColor, currentColor) 7px 100%/4px 100% no-repeat, linear-gradient(currentColor, currentColor) 14px 100%/4px 35% no-repeat; }
.appnav .is-active .ic-res { background: linear-gradient(var(--blue), var(--blue)) 0 100%/4px 60% no-repeat, linear-gradient(#fff, #fff) 7px 100%/4px 100% no-repeat, linear-gradient(var(--blue), var(--blue)) 14px 100%/4px 35% no-repeat; }
.ic-man::before, .ic-man::after { content: ""; position: absolute; width: 8px; height: 8px; border: 1.5px solid currentColor; }
.ic-man::before { left: 0; top: 2px; }
.ic-man::after { right: 0; bottom: 2px; }
.appnav .is-active .ic-man::after { background: var(--blue); border-color: var(--blue); }
.ic-pro::before { content: ""; position: absolute; left: 5px; top: 0; width: 8px; height: 8px; border: 1.5px solid currentColor; }
.ic-pro::after { content: ""; position: absolute; left: 1px; bottom: 0; width: 16px; height: 6px; border: 1.5px solid currentColor; border-bottom: 0; }
.appnav .is-active .ic-pro::before { background: var(--blue); border-color: var(--blue); }
.nbadge { position: absolute; top: 9px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 10px/1 var(--mono); letter-spacing: 0; }
.nbadge[hidden] { display: none; }

/* ---------- dock (stemmeknapper / resultat) ---------- */
.dock {
  position: absolute; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 5;
  padding: 14px var(--app-pad) 14px;
  background: rgba(5, 7, 12, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -24px 40px rgba(1,1,3,.65);
}
.dock[hidden] { display: none; }
.dock.is-reveal { animation: dockUp .32s cubic-bezier(.2,.8,.2,1); }
@keyframes dockUp { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dock.is-reveal { animation: none; } }

/* ---------- stem ---------- */
.intro { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--blue-line); background: var(--blue-soft); font-size: 14px; line-height: 1.45; color: var(--soft); }
.intro b { color: #fff; font-weight: 500; }
.intro-x { align-self: flex-start; background: none; border: 1px solid var(--line-2); color: #fff; height: 32px; padding: 0 12px; font: 700 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.progress { margin-bottom: 20px; }
.progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.progress-label { color: var(--soft); }
.progress-all { background: none; border: 0; padding: 6px 0 6px 10px; color: var(--blue-text); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.steps6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.steps6 i { height: 3px; background: var(--line-2); }
.steps6 i.s-done { background: var(--blue); }
.steps6 i.s-now { background: #fff; }
.backlink { background: none; border: 0; padding: 6px 0; color: var(--soft); font: 700 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

.case { position: relative; }
.case-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line-2); padding: 6px 9px; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); }
.live-tag::before { content: ""; width: 7px; height: 7px; background: var(--blue); }
.live-tag.off { color: var(--muted); }
.live-tag.off::before { background: var(--muted); }
.live-tag.sm { font-size: 9.5px; }
.case-q { margin: 20px 0 12px; font-size: clamp(1.85rem, 8.4vw, 2.3rem); letter-spacing: -.05em; line-height: 1.02; text-wrap: balance; outline: none; }
.case-desc { color: var(--soft); font-size: 15.5px; line-height: 1.5; }
.means { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 20px; }
.means div { background: var(--panel); padding: 14px 16px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.means b { display: block; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.more { margin-top: 6px; border-bottom: 1px solid var(--line); }
.more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-text); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font: 400 20px/1 var(--sans); transition: transform .2s; }
.more[open] summary::after { transform: rotate(45deg); }
.more-body { padding: 0 0 16px; display: grid; gap: 12px; }
.more-row { display: grid; gap: 4px; font-size: 15px; color: var(--soft); line-height: 1.45; }
.more-row b { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

/* vote buttons (in dock) */
.vote3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vote3 button {
  position: relative; height: 58px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); color: #fff; cursor: pointer;
  font: 500 17px var(--sans); letter-spacing: -.01em; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s, transform .1s;
}
.vote3 button:active { transform: scale(.97); background: rgba(255,255,255,.05); }
.vote3 button.is-on { background: var(--blue); border-color: var(--blue); }
.vote3 kbd { position: absolute; right: 6px; top: 6px; display: none; border: 0; padding: 0; font-size: 9px; color: var(--muted); }
@media (hover: hover) { .vote3 button:hover { border-color: #fff; } .vote3 kbd { display: block; } }
.vote-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.vote-note { font-size: 12.5px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.linkish:hover { color: #fff; }
.linkish.inline { font-size: 10.5px; color: var(--blue-text); }
.linkish.danger:hover { color: var(--red); }

/* result (in dock) */
.reveal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-text); }
.live-dot::before { content: ""; width: 7px; height: 7px; background: var(--blue); animation: blink 1.4s steps(2) infinite; }
.rbar { display: flex; gap: 2px; height: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.rbar.big { height: 12px; }
.rbar i { display: block; height: 100%; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.rbar .f { background: var(--c-for); }
.rbar .t { background: repeating-linear-gradient(135deg, rgba(255,255,255,.34) 0 3px, rgba(255,255,255,.14) 3px 6px); }
.rbar .m { background: var(--c-imod); }
.rbar.empty { background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 6px, transparent 6px 10px); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.nums .n { display: flex; flex-direction: column; gap: 5px; }
.nums .n + .n { padding-left: 14px; border-left: 1px solid var(--line); }
.nums strong { font-size: 1.9rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.nums span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; }
.nums span::before { content: ""; width: 8px; height: 8px; }
.nums .f span::before { background: var(--c-for); }
.nums .m span::before { background: var(--c-imod); }
.nums .t span::before { background: rgba(255,255,255,.34); }
.you { display: flex; gap: 12px; align-items: center; margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--soft); }
.you b { color: #fff; font-weight: 500; }
.you-mark { flex: none; width: 26px; height: 26px; display: grid; place-items: center; font: 700 12px/1 var(--mono); border: 1px solid var(--line-2); }
.you-mark.for { background: var(--blue); border-color: var(--blue); }
.you-mark.imod { background: var(--c-imod); border-color: var(--c-imod); color: #05070c; }
.reveal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.reveal-actions .btn { min-height: 50px; padding: 0 12px; }
.reveal-actions .btn:first-child { grid-column: 1 / -1; min-height: 54px; }

/* done */
.done { text-align: center; padding: 18px 0 8px; }
.done-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; background: var(--blue); font: 700 22px/1 var(--sans); }
.done-title { margin: 22px 0 12px; font-size: 2.6rem; letter-spacing: -.06em; outline: none; }
.done-sub { color: var(--soft); max-width: 32ch; margin: 0 auto; font-size: 15.5px; }
.done .stats3 { margin: 26px 0 0; text-align: left; }
.done-actions { display: grid; gap: 8px; margin: 22px 0 26px; }
.done .panel { text-align: left; }
.done-links { display: flex; justify-content: center; gap: 24px; margin-top: 22px; }

/* ---------- other screens ---------- */
.screen-head { margin-bottom: 22px; }
.screen-head .badge { margin-left: 4px; text-transform: uppercase; }
.screen-title { margin: 14px 0 10px; font-size: 2.2rem; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
.screen-lead { color: var(--soft); font-size: 15px; line-height: 1.5; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--bg-2); }
.stats3 > div { padding: 14px; display: flex; flex-direction: column; gap: 7px; }
.stats3 > div + div { border-left: 1px solid var(--line); }
.stats3 strong { font-size: 1.65rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.stats3 span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.blue-n { color: var(--blue-text); }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 0; border: 1px solid var(--line-2); }
.seg button { background: none; border: 0; height: 42px; color: var(--muted); cursor: pointer; font: 700 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.is-active { color: #fff; background: var(--blue-soft); box-shadow: inset 0 -2px 0 var(--blue); }
.seg-n { font-size: 9.5px; padding: 2px 5px; border: 1px solid var(--line-2); color: var(--soft); letter-spacing: 0; }

.rlist, .plist, .dlist, .mvlist, .caselist { list-style: none; margin: 0; padding: 0; }
.rrow { width: 100%; display: grid; gap: 10px; padding: 18px 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: #fff; text-align: left; cursor: pointer; }
.rrow-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rrow-q { font-size: 1.12rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.22; }
.rrow-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rrow-nums { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 13px; color: var(--soft); }
.rrow-nums b { color: #fff; font-weight: 500; }
.you-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.you-chip i { width: 18px; height: 18px; display: grid; place-items: center; font: 700 10px/1 var(--mono); font-style: normal; border: 1px solid var(--line-2); color: #fff; }
.you-chip.for i { background: var(--blue); border-color: var(--blue); }
.you-chip.imod i { background: var(--c-imod); border-color: var(--c-imod); color: #05070c; }
.you-chip.none { color: var(--muted); }

.pipe-head { display: grid; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pipe-head p { font-size: 14px; color: var(--soft); line-height: 1.5; }
.pipe-head .badge { margin-right: 6px; text-transform: uppercase; }
.pipe-head .btn { justify-self: start; }
.pitem { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pvote { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pvote button { width: 36px; height: 30px; background: none; border: 1px solid var(--line-2); color: var(--soft); cursor: pointer; font-size: 10px; }
.pvote button.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pvote span { font: 700 13px var(--mono); }
.pbody { display: grid; gap: 7px; align-content: start; }
.pmeta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pq { font-size: 16px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.pprog { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.pprog-bar { flex: 1; height: 3px; background: var(--line-2); }
.pprog-bar i { display: block; height: 100%; background: var(--blue); }

.drow { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: #fff; text-align: left; cursor: pointer; }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); font: 700 11px var(--mono); letter-spacing: .06em; color: var(--soft); }
.avatar.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.dinfo { display: grid; gap: 3px; }
.dinfo b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.dinfo span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.dbadge { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line-2); color: var(--soft); }
.dbadge.on { border-color: var(--blue-line); color: var(--blue-text); }
.picker { padding: 14px 14px 10px; margin: 8px 0; border: 1px solid var(--blue-line); background: var(--blue-soft); }
.picker-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.picker .drow:last-of-type { border-bottom: 0; }
.note { margin-top: 20px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.block { margin-top: 28px; }
.block-title { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mvrow { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: #fff; text-align: left; cursor: pointer; font-size: 15px; letter-spacing: -.01em; line-height: 1.3; }
.mvlist .empty { padding: 16px 0; color: var(--soft); font-size: 14px; }
.trustgrid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trustgrid > div { background: var(--bg-2); padding: 16px; }
.trustgrid b { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 6px; font-size: 15px; }
.trustgrid b::before { content: ""; width: 8px; height: 8px; background: var(--blue); }
.trustgrid p { font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.panel { border: 1px solid var(--blue); background: var(--blue); padding: 18px; }
.panel .label { color: #fff; }
.panel .label .sq { background: #fff; }
.panel > p { margin: 10px 0 14px; color: rgba(255,255,255,.92); font-size: 14.5px; }
.app-signup { display: grid; gap: 8px; }
.app-signup input { height: 50px; padding: 0 14px; background: #fff; border: 0; color: #010103; font: 16px var(--sans); width: 100%; }
.app-signup input::placeholder { color: rgba(1,1,3,.5); }
.app-signup input:focus { outline: 2px solid #010103; outline-offset: -2px; }
.app-signup .btn { min-height: 50px; background: #010103; border-color: #010103; }
.app-signup-fb { min-height: 1.2em; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: #fff; }
.app-signup-fb.err { background: rgba(1,1,3,.35); padding: 4px 8px; }
.panel > p.app-signup-fb { margin: 10px 0 0; }
.profil-links { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.install-box { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line-2); background: var(--bg-2); }
.install-box[hidden] { display: none; }
.install-box b { font-weight: 500; }
.install-box p { font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.install-box .btn { justify-self: start; }

/* ---------- sheets (inside the device) ---------- */
.sheet { position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-panel { width: 100%; max-height: 88%; overflow-y: auto; background: var(--bg-2); border-top: 1px solid var(--line-2); padding: 18px var(--app-pad) calc(20px + env(safe-area-inset-bottom)); animation: sheetIn .28s cubic-bezier(.2,.8,.2,1); }
.sheet-panel::before { content: ""; display: block; width: 36px; height: 3px; background: var(--line-2); margin: -6px auto 14px; }
@keyframes sheetIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head h2 { font-size: 1.6rem; letter-spacing: -.045em; display: flex; align-items: baseline; gap: 10px; }
.sheet-count { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--soft); font-weight: 400; }
.sheet-x { width: 38px; height: 38px; background: none; border: 1px solid var(--line-2); color: #fff; cursor: pointer; }
.field-label { display: block; margin: 16px 0 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.field { width: 100%; padding: 13px 14px; background: var(--bg); border: 1px solid var(--line-2); color: #fff; font: 16px/1.4 var(--sans); resize: vertical; }
.field:focus { outline: none; border-color: var(--blue); }
.catchips { display: flex; flex-wrap: wrap; gap: 6px; }
.catchip { height: 36px; padding: 0 12px; background: none; border: 1px solid var(--line-2); color: var(--soft); cursor: pointer; font: 500 14px var(--sans); }
.catchip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.sheet-hint { margin-top: 14px; font-size: 13px; color: var(--soft); line-height: 1.5; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 18px; }
.sheet-done { text-align: center; padding: 18px 0 6px; }
.sheet-done h3 { margin: 18px 0 8px; font-size: 1.6rem; letter-spacing: -.04em; }
.sheet-done p { color: var(--soft); max-width: 32ch; margin: 0 auto 18px; font-size: 15px; }
.aside-prog { height: 2px; background: var(--line); margin: 0 0 4px; }
.aside-prog i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.case-item {
  width: 100%; display: grid; grid-template-columns: 1fr 22px; grid-template-areas: "a s" "q s"; gap: 3px 14px; align-items: center;
  padding: 14px 0 14px 14px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--soft); cursor: pointer; position: relative;
}
.case-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: transparent; }
.case-item.is-current { color: #fff; }
.case-item.is-current::before { background: var(--blue); }
.ci-area { grid-area: a; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ci-q { grid-area: q; font-size: 15px; line-height: 1.3; }
.ci-st { grid-area: s; }
.ci-mark { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-2); font: 700 10px/1 var(--mono); font-style: normal; color: #fff; }
.ci-mark.for { background: var(--blue); border-color: var(--blue); }
.ci-mark.imod { background: var(--c-imod); border-color: var(--c-imod); color: #05070c; }
.ci-mark.tvivl { border-color: rgba(255,255,255,.55); }

/* ---------- toast ---------- */
.toast { position: absolute; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); z-index: 30; transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; background: #fff; color: #05070c; font-size: 14px; line-height: 1.4; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* menu over the app (mobile) */
.app-page .menu { inset: 0; z-index: 80; padding-top: calc(72px + env(safe-area-inset-top)); }
.app-page .menu-close { display: grid; place-items: center; position: absolute; top: calc(10px + env(safe-area-inset-top)); right: var(--app-pad); width: 40px; height: 40px; background: none; border: 1px solid var(--line-2); color: #fff; font-size: 16px; cursor: pointer; }

/* ================= desktop / tablet: same app in a phone frame ================= */
@media (min-width: 900px) and (min-height: 640px) {
  .app-page { overflow: auto; }
  .app-page .nav { display: flex; }
  .app-page .menu { inset: var(--nav-h) 0 0 0; z-index: 49; padding-top: clamp(32px, 6vw, 72px); }
  .app-page .menu-close { display: none; }
  .appbar-menu { display: none; }
  .app-desk {
    position: relative; inset: auto; min-height: 100vh; padding: calc(var(--nav-h) + 28px) var(--gut) 28px;
    display: grid; grid-template-columns: minmax(0, 460px) auto; justify-content: center; align-items: center; gap: clamp(48px, 7vw, 120px);
    background-image: radial-gradient(50% 55% at 72% 50%, rgba(29,77,255,.16), transparent 70%), radial-gradient(40% 40% at 20% 30%, rgba(29,77,255,.06), transparent 70%);
  }
  .device { position: relative; inset: auto; width: 393px; height: min(852px, calc(100vh - var(--nav-h) - 56px)); }
  .iphone-status { display: flex; flex: none; position: relative; z-index: 7; height: 54px; padding: 0 30px 0 34px; align-items: center; justify-content: space-between; background: rgba(1,1,3,.92); font: 600 15px/1 -apple-system, "SF Pro Text", var(--sans); letter-spacing: -.01em; }
  .appbar { height: 52px; padding-top: 0; }
  .appnav { height: 82px; padding-bottom: 22px; }
  .appnav::after { content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.85); }
  .dock { bottom: 82px; }
  .toast { bottom: 96px; }
  .sheet-panel { padding-bottom: 28px; }

  .desk-intro { display: block; }
  .desk-title { margin: 22px 0 22px; font-size: clamp(3rem, 5.2vw, 4.8rem); font-weight: 700; letter-spacing: -.065em; line-height: .9; }
  .desk-intro .lead { margin-bottom: 34px; }
  .desk-qr { display: flex; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line-2); background: var(--bg-2); max-width: 420px; }
  .qr-box { flex: none; width: 104px; height: 104px; padding: 8px; background: #fff; }
  .qr-svg { width: 100%; height: 100%; display: block; }
  .qr-svg path { stroke: #010103; }
  .desk-qr b { display: block; font-weight: 500; margin-bottom: 6px; }
  .desk-qr span { font-size: 14px; color: var(--soft); line-height: 1.45; }
  .desk-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; max-width: 420px; border-top: 1px solid var(--line); }
  .desk-steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--soft); }
  .desk-steps span { flex: none; width: 70px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  .desk-keys { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
}
@media (min-width: 900px) and (max-width: 1080px) { .desk-intro { max-width: 340px; } .desk-title { font-size: 3rem; } }

/* ================= v7 ================= */
.ic-for { border: 1.5px solid currentColor; }
.ic-for::before, .ic-for::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.ic-for::before { width: 8px; height: 1.5px; }
.ic-for::after { width: 1.5px; height: 8px; }
.appnav .is-active .ic-for { background: var(--blue); border-color: var(--blue); color: #fff; }

/* intro: tre trin */
.intro { gap: 10px; }
.intro-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.intro-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.intro-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #fff; }
.intro-steps span { width: 24px; height: 24px; display: grid; place-items: center; background: var(--blue); font: 700 11px var(--mono); flex: none; }
.intro-note { font-size: 13px; color: var(--soft); }

/* begge sider – før man vælger */
.sides { display: grid; gap: 10px; margin-top: 20px; }
.side { position: relative; padding: 16px 16px 16px 18px; background: var(--panel); border: 1px solid var(--line); }
.side::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; }
.side.for::before { background: var(--c-for); }
.side.imod::before { background: var(--c-imod); }
.side-h { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin-bottom: 10px; }
.side-h i { width: 10px; height: 10px; flex: none; }
.side.for .side-h i { background: var(--c-for); }
.side.imod .side-h i { background: var(--c-imod); }
.side-h span { margin-left: auto; font-family: var(--mono); font-size: 9.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side-means { font-size: 15px; line-height: 1.45; color: #fff; }
.side-arg { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.side-arg b { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 9.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-cost { margin-top: 12px; display: flex; gap: 12px; font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.case-cost b { flex: none; font-family: var(--mono); font-size: 9.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.dock-q { margin-bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }

/* forslag */
.pipe-head { padding-top: 0; }
.pipe-head .btn { justify-self: stretch; }

/* delegering i profil */
.deleg { border: 1px solid var(--line-2); background: var(--bg-2); padding: 0 16px; }
.deleg summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; }
.deleg summary::-webkit-details-marker { display: none; }
.deleg summary::after { content: "+"; font: 400 20px/1 var(--sans); color: var(--blue-text); transition: transform .2s; }
.deleg[open] summary::after { transform: rotate(45deg); }
.deleg summary b { display: block; font-weight: 500; font-size: 15px; }
.deleg summary small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.deleg .note { margin: 4px 0 16px; }

/* iPhone-ramme (kun på computer) */
@media (min-width: 900px) and (min-height: 640px) {
  .iphone {
    border-radius: 58px; border: 0;
    box-shadow: 0 0 0 11px #0d0f14, 0 0 0 12.5px #2a2e38, 0 0 0 14px #0a0b0f, 0 60px 140px rgba(0,0,0,.75), 0 0 140px rgba(29,77,255,.2);
  }
  .iphone::before { content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 40; }
  .app-desk .device-wrap { position: relative; }
  .ip-icons { display: flex; align-items: center; gap: 6px; }
  .ip-sig { display: flex; align-items: flex-end; gap: 1.5px; height: 11px; }
  .ip-sig b { width: 3px; background: #fff; border-radius: 1px; }
  .ip-sig b:nth-child(1) { height: 4px; } .ip-sig b:nth-child(2) { height: 6px; } .ip-sig b:nth-child(3) { height: 8.5px; } .ip-sig b:nth-child(4) { height: 11px; }
  .ip-wifi { width: 15px; height: 11px; position: relative; overflow: hidden; }
  .ip-wifi::before { content: ""; position: absolute; left: 50%; top: 1px; width: 20px; height: 20px; transform: translateX(-50%); border-radius: 50%; border: 2.5px solid #fff; border-bottom-color: transparent; border-left-color: transparent; border-right-color: transparent; box-shadow: inset 0 0 0 3px #010103, inset 0 0 0 5.5px #fff; clip-path: polygon(50% 100%, 0 0, 100% 0); }
  .ip-bat { width: 25px; height: 12px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 4px; padding: 1.5px; position: relative; }
  .ip-bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255,255,255,.45); }
  .ip-bat b { display: block; height: 100%; width: 80%; background: #fff; border-radius: 1.5px; }
  .ip-island { display: none; }
}
.dock.is-gate .dock-q { text-align: center; }
.gate-btn { width: 100%; min-height: 58px; }
.dock.is-vote { animation: dockIn .25s ease; }
@keyframes dockIn { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dock.is-vote { animation: none; } }

/* v6: koncept */
.desk-concept { margin: -14px 0 30px; font-size: 14px; line-height: 1.55; color: var(--soft); border-left: 2px solid var(--blue); padding: 2px 0 2px 14px; max-width: 46ch; }
.desk-concept b { color: #fff; }
.desk-concept a { color: var(--blue-text); white-space: nowrap; }
