:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --text: #1D1D1F;
  --text2: #6E6E73;
  --sep: #E5E5EA;
  --fill: #EDEDF0;
  --accent: #B3261E;
  --accent-press: #8F1E18;
  --up: #1B7F3B;
  --down: #D70015;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06);
  --card-shadow: 0 2px 6px rgba(0,0,0,.12), 0 10px 24px rgba(0,0,0,.10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.35 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 96px);
}
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

/* ---------- typografi ---------- */
.large-title { font-size: 34px; font-weight: 700; letter-spacing: .37px; margin: 8px 0 12px; }
.title2 { font-size: 22px; font-weight: 700; letter-spacing: .35px; margin: 28px 0 10px; }
.caption { font-size: 13px; color: var(--text2); }
.muted { color: var(--text2); }
.up { color: var(--up); }
.down { color: var(--down); }
.num { font-variant-numeric: tabular-nums; }

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer;
  min-width: 44px; min-height: 44px; background-clip: content-box; padding: 4px;
}
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 8px 0 0;
  border: 0; background: none; color: var(--accent); font-size: 17px; cursor: pointer;
}
.back svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- flader ---------- */
.surface { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 16px; }
.value-block .big { font-size: 40px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; margin: 2px 0 4px; }
.value-block .sub { font-size: 15px; font-weight: 600; }
.kpis { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.kpi .caption { display: block; }
.kpi b { font-size: 17px; }

/* ---------- segmenterede kontroller ---------- */
.segmented {
  display: flex; background: var(--fill); border-radius: 10px; padding: 2px; gap: 2px; margin: 12px 0;
}
.segmented button {
  flex: 1; border: 0; background: none; border-radius: 8px; min-height: 32px; padding: 4px 8px;
  font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text);
}
.segmented button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.segmented.small { margin: 8px 0 0; }
.segmented.small button { min-height: 28px; font-size: 13px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.chip {
  border: 0; background: var(--surface); border-radius: 999px; padding: 8px 14px; min-height: 36px;
  font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: inset 0 0 0 1px var(--sep);
}
.chip[aria-pressed="true"] { background: var(--text); color: #fff; box-shadow: none; }

/* ---------- graf ---------- */
.chart { margin-top: 14px; }
.chart svg { width: 100%; height: 150px; display: block; overflow: visible; }
.chart .empty {
  height: 110px; display: grid; place-items: center; text-align: center;
  color: var(--text2); font-size: 14px; background: var(--bg); border-radius: var(--radius-sm); padding: 12px;
}

/* ---------- kortgitter ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { display: block; color: inherit; min-width: 0; }
.cardimg {
  width: 100%; aspect-ratio: 63 / 88; border-radius: 4.5% / 3.2%; background: var(--fill);
  box-shadow: var(--card-shadow); border: 2px solid #fff; object-fit: cover;
}
.cardimg.ph {
  display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--text2); padding: 8px;
}
.tile .t-name { font-size: 13px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-sub { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-val { font-size: 13px; font-weight: 600; }

/* ---------- lister ---------- */
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 64px; color: inherit;
  width: 100%; border: 0; background: none; text-align: left; cursor: pointer;
}
.row + .row { border-top: 1px solid var(--sep); }
.row .thumb { width: 40px; flex: none; }
.row .thumb .cardimg { border-width: 1px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.row .main { flex: 1; min-width: 0; }
.row .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .right { text-align: right; flex: none; }
.row .right .v { font-weight: 600; }
.row .right .c { font-size: 13px; }

.empty-state { text-align: center; padding: 40px 16px; color: var(--text2); }
.empty-state h2 { color: var(--text); font-size: 20px; margin: 12px 0 6px; }

/* ---------- knapper ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 50px; border: 0; border-radius: 14px; font-size: 17px; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:active { background: var(--accent-press); }
.btn.secondary { background: var(--fill); color: var(--accent); }
.btn.danger { background: none; color: var(--down); }
.btn:disabled { opacity: .5; }
.btn-inline { display: inline-flex; width: auto; padding: 0 20px; margin-top: 16px; }
.links { display: flex; gap: 10px; margin-top: 12px; }
.links a {
  flex: 1; text-align: center; background: var(--surface); border-radius: 12px; padding: 12px; min-height: 44px;
  font-weight: 600; font-size: 15px; box-shadow: var(--shadow);
}

/* ---------- søgning ---------- */
.search {
  display: flex; align-items: center; gap: 8px; background: var(--fill); border-radius: 12px; padding: 0 12px;
}
.search svg { width: 18px; height: 18px; stroke: var(--text2); stroke-width: 2.2; fill: none; flex: none; }
.search input {
  flex: 1; border: 0; background: none; font: inherit; min-height: 44px; outline: none; color: var(--text);
}
.hint { font-size: 13px; color: var(--text2); margin: 8px 4px 16px; }

/* ---------- kort-detalje ---------- */
.detail-hero { display: flex; justify-content: center; margin: 4px 0 18px; }
.detail-hero .cardimg { width: min(64vw, 300px); border-width: 3px; }
.detail-title { font-size: 28px; font-weight: 700; margin: 0; letter-spacing: .2px; }
.detail-sub { color: var(--text2); margin: 2px 0 14px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: var(--fill); color: var(--text2); vertical-align: middle; margin-left: 4px;
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--sep); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 12px; }
.stats div { background: var(--surface); padding: 12px 16px; }
.stats b { display: block; font-size: 17px; }
.stale { font-size: 13px; color: var(--down); margin-top: 6px; }

/* ---------- fanelinje ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px);
  background: rgba(249, 249, 251, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid rgba(0,0,0,.15);
}
.tabbar a {
  flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 48px; justify-content: center; color: #8E8E93; font-size: 10.5px; font-weight: 500;
}
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"] svg { fill: currentColor; fill-opacity: .14; }

/* ---------- bundark (formular) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 20; display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s ease;
}
.sheet {
  background: var(--bg); width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 8px 16px calc(env(safe-area-inset-bottom) + 20px);
  animation: up .28s cubic-bezier(.2,.8,.2,1);
}
.sheet .grabber { width: 36px; height: 5px; border-radius: 3px; background: #C7C7CC; margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h2 { font-size: 17px; margin: 0; }
.sheet-head button { border: 0; background: none; color: var(--accent); font-size: 17px; min-height: 44px; padding: 0 4px; cursor: pointer; }
.form-group { background: var(--surface); border-radius: var(--radius-sm); margin: 12px 0; overflow: hidden; }
.field { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 48px; }
.field + .field { border-top: 1px solid var(--sep); }
.field label { flex: 1; }
.field input, .field select {
  border: 0; background: none; font: inherit; text-align: right; color: var(--text); min-height: 44px;
  max-width: 55%; outline: none;
}
.field textarea { width: 100%; border: 0; font: inherit; min-height: 70px; padding: 12px 0; outline: none; resize: vertical; background: none; }
.field.block { display: block; padding-top: 8px; }
.field.block .segmented { margin: 6px 0 10px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 36px; border: 0; background: var(--fill); border-radius: 8px; font-size: 20px; cursor: pointer; }
.stepper output { min-width: 32px; text-align: center; font-weight: 600; }
.switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: #E9E9EA; position: relative; cursor: pointer; transition: background .2s; max-width: none !important; min-height: 0 !important; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch:checked { background: #34C759; }
.switch:checked::after { transform: translateX(20px); }
.form-note { font-size: 13px; color: var(--text2); margin: -4px 16px 8px; }
.error { color: var(--down); font-size: 14px; margin: 8px 4px; }

/* ---------- login ---------- */
.login { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; max-width: 380px; margin: 0 auto; }
.login .logo { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 18px; box-shadow: var(--shadow); }
.login h1 { text-align: center; font-size: 28px; margin: 0 0 24px; }
.login .form-group .field input { text-align: left; max-width: none; width: 100%; }

/* ---------- placeholder-faner ---------- */
.soon { text-align: center; padding: 60px 20px; color: var(--text2); }
.soon .ico { font-size: 44px; }
.soon h2 { color: var(--text); margin: 10px 0 6px; }

.spinner { width: 28px; height: 28px; border: 3px solid var(--sep); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 84px); transform: translateX(-50%);
  background: rgba(29,29,31,.92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; z-index: 30;
  animation: fade .2s ease;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- valgliste (stand, variant) ---------- */
.choices { display: flex; flex-direction: column; margin: 6px -16px 0; }
.choices button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  border: 0; border-top: 1px solid var(--sep); background: none; padding: 10px 16px; min-height: 56px;
}
.choices .ct { flex: 1; min-width: 0; }
.choices b { display: block; font-weight: 600; font-size: 16px; }
.choices small { display: block; color: var(--text2); font-size: 13px; line-height: 1.3; }
.choices .note { font-size: 13px; color: var(--text2); flex: none; }
.choices .chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C7C7CC; flex: none; position: relative; }
.choices button[aria-pressed="true"] .chk { border-color: var(--accent); background: var(--accent); }
.choices button[aria-pressed="true"] .chk::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.choices button[aria-pressed="true"] b { color: var(--accent); }

/* ---------- marked: filtre ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px;
  padding: 0 6px 0 14px; min-height: 40px; box-shadow: inset 0 0 0 1px var(--sep); font-size: 14px; max-width: 100%;
}
.pill span { color: var(--text2); }
.pill select {
  border: 0; background: none; font: inherit; font-weight: 600; color: var(--text); min-height: 40px;
  max-width: 190px; text-overflow: ellipsis; cursor: pointer; outline: none;
}
.tile .t-val { margin-top: 2px; }

/* ---------- scanner ---------- */
.header-actions { display: flex; gap: 0; }
.accent { color: var(--accent); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 4px 0 12px; }
.shot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 190px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 2px dashed #C7C7CC; cursor: pointer; overflow: hidden; text-align: center; padding: 12px;
}
.shot.has { border-style: solid; border-color: var(--accent); padding: 0; justify-content: flex-end; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot.has .shot-t, .shot.has .shot-s { position: relative; background: rgba(0,0,0,.55); color: #fff; width: 100%; padding: 2px 8px; }
.shot.has .shot-t { padding-top: 6px; }
.shot.has .shot-s { padding-bottom: 6px; }
.shot-ico svg { width: 36px; height: 36px; stroke: var(--accent); stroke-width: 1.8; fill: none; stroke-linejoin: round; }
.shot-t { font-weight: 600; }
.shot-s { font-size: 13px; color: var(--text2); }
.tips { margin: 0 0 16px; padding-left: 20px; color: var(--text2); font-size: 14px; }
.tips li { margin: 2px 0; }
.scanthumb { object-fit: cover; }
.scan-photos { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.scan-photos img { height: 140px; border-radius: 12px; box-shadow: var(--shadow); }
.scan-item { margin-top: 16px; }
.scan-item .q { font-size: 17px; margin: 18px 0 6px; }
.scan-item .grid.picks { grid-template-columns: repeat(3, 1fr); }
.scan-item .grid.alt:not(:empty) { margin-top: 10px; }
.pick { border: 0; background: none; padding: 6px; border-radius: 14px; text-align: left; cursor: pointer; font: inherit; }
.pick.picked { background: rgba(179, 38, 30, .08); box-shadow: inset 0 0 0 2px var(--accent); }
.search.small { margin-top: 10px; }
.search.small input { min-height: 40px; font-size: 15px; }
.ai-note { font-size: 14px; color: var(--text2); margin: 0 0 4px; }
.ok-line { color: var(--up); font-weight: 600; margin: 8px 0 0; }
.warn { background: #FFF4E5; color: #8A4B00; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin: 8px 0; }
.scan-item .form-group { background: var(--bg); }

/* ---------- forside: marked, banner, holder øje ---------- */
.banner {
  display: block; background: #FFF6D6; color: #6B4E00; border-radius: var(--radius); padding: 14px 16px;
  font-weight: 600; margin-bottom: 14px; box-shadow: var(--shadow);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-size: 15px; font-weight: 600; white-space: nowrap; }
.hscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 34%; gap: 12px; overflow-x: auto;
  padding: 4px 2px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x mandatory;
}
.hscroll .tile { scroll-snap-align: start; }
@media (min-width: 560px) { .hscroll { grid-auto-columns: 22%; } }
.watch-row { display: flex; gap: 8px; margin-top: 10px; }
.watch-row .btn { font-size: 15px; min-height: 46px; }
.watch-row .btn.on { background: rgba(27,127,59,.12); color: var(--up); }

/* ---------- stjerner ---------- */
.stars { color: #F2B705; letter-spacing: 1px; font-size: 15px; }
.stars .off { color: #D9D9DE; }

/* ---------- Alfred ---------- */
.kid { font-family: var(--font-rounded); }
.kid-hero {
  background: linear-gradient(135deg, #FFE27A, #FFB547); border-radius: 24px; padding: 22px 20px; margin: 8px 0 8px;
  box-shadow: var(--shadow); color: #3A2A00;
}
.kid-hero h1 { font-size: 32px; margin: 0 0 4px; }
.kid-hero p { margin: 0 0 14px; font-size: 18px; }
.kid-btn { background: #B3261E; color: #fff; font-size: 19px; min-height: 56px; border-radius: 16px; }
.kid-wait { font-size: 15px !important; margin: 12px 0 0 !important; }
.kid-h2 { font-size: 24px; margin: 26px 0 10px; }
.kid-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kid-grid.small { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 560px) { .kid-grid { grid-template-columns: repeat(3, 1fr); } .kid-grid.small { grid-template-columns: repeat(4, 1fr); } }
.kid-card {
  border: 0; background: var(--surface); border-radius: 18px; padding: 10px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow); font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.kid-card .cardimg { margin-bottom: 4px; }
.kid-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.kid-val { font-size: 14px; color: var(--text2); }
.kid-card.big { padding: 14px; }
.cotd { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .cotd { grid-template-columns: 1fr 1fr; align-items: center; } }
.cotd .kid-card.big .cardimg { max-width: 260px; }
.facts { margin: 0; padding: 14px 16px 14px 34px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); font-size: 17px; }
.facts li { margin: 6px 0; }
.tipbox { background: #E8F3FF; color: #0A3D73; border-radius: 18px; padding: 16px; margin-top: 22px; font-size: 16px; }
.kid-title { text-align: center; font-family: var(--font-rounded); font-size: 26px; margin: 0; }
.sheet.kid .facts { box-shadow: none; margin-bottom: 14px; }
.link-btn { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 36px; }

/* ---------- godkend ---------- */
.appr-head { display: grid; grid-template-columns: 90px 70px 1fr; gap: 12px; align-items: center; }
.appr-photo { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; }

/* ---------- fund ---------- */
.deal { margin-top: 14px; overflow: hidden; }
.deal-imgs { display: flex; gap: 10px; padding: 14px 14px 0; align-items: flex-start; }
.deal-photo { width: 62%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.deal-imgs .cardimg { width: 30%; }
.deal-body { padding: 10px 16px 16px; }
.deal-title { font-size: 18px; margin: 4px 0 2px; }
.deal-listing { font-size: 14px; color: var(--text2); margin: 0 0 8px; }
.deal-nums { font-size: 15px; margin: 6px 0; }
.auth { display: inline-block; font-weight: 600; font-size: 14px; padding: 4px 10px; border-radius: 8px; margin: 4px 0; }
.auth-real { background: rgba(27,127,59,.1); color: var(--up); }
.auth-doubt { background: #FFF4E5; color: #8A4B00; }
.auth-fake { background: rgba(215,0,21,.08); color: var(--down); }
.deal-reason { font-size: 14px; color: var(--text2); margin: 6px 0; }
.deal-photo-note { font-size: 14px; color: #8A4B00; margin: 6px 0; }
.deal-note { font-size: 14px; color: var(--accent); font-weight: 600; margin: 6px 0; }
.deal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.deal-actions .btn { flex: 1 1 140px; min-height: 44px; font-size: 15px; }
.settings-box { margin-top: 20px; }
.settings-box summary { font-weight: 600; cursor: pointer; min-height: 32px; }
.settings-box .form-group { background: var(--bg); }

/* ---------- boostere ---------- */
.boost-img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.row .thumb:has(.boost-img) { width: 44px; }
.row .name.wrap2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.25; }

/* ---------- ugens trend ---------- */
.trend { margin: 4px 0 14px; }
.trend-head { font-size: 22px; margin: 4px 0 4px; }
.trend-sum { margin: 0 0 6px; color: var(--text); }
.trend-list { margin: 0; padding-left: 0; list-style: none; font-size: 15px; }
.trend-list li { padding: 6px 0; border-top: 1px solid var(--sep); }

/* ---------- bunke-tilstand ---------- */
.big-shot { min-height: 72px; font-size: 20px; margin-top: 6px; cursor: pointer; }
.bcheck { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 8px; cursor: pointer; }
.bcheck input, .bsure input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.bsure { cursor: pointer; }
.batch-bar {
  position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 64px); padding: 10px 16px; z-index: 9;
  background: rgba(245,245,247,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.batch-bar .btn { max-width: 688px; margin: 0 auto; }

/* ---------- live-scanner ---------- */
.live { position: fixed; inset: 0; background: #000; z-index: 40; display: flex; flex-direction: column; }
.live video { flex: 1; width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.live-flash.on { animation: flash .35s ease-out; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.live-hud {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(env(safe-area-inset-bottom) + 16px);
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; text-align: center;
}
.live-status { font-size: 18px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.live-count { font-size: 14px; opacity: .85; margin: 2px 0 12px; }
.live-btns { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 520px; margin: 0 auto; }
.live-btns .btn { width: auto; flex: 1; min-height: 44px; background: rgba(255,255,255,.18); color: #fff; }
.live-shutter { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: #B3261E; flex: none; cursor: pointer; }
.live-shutter:active { transform: scale(.94); }
