/* Regi MVP - mobile-first app look (tokens from Regi_Profilpakke/03_Farger_og_tokens, layout after 05_Appskisser:
   content sits on the page with hairline dividers, one dark/accent block per screen, no boxed cards everywhere) */
@font-face { font-family: Manrope; font-weight: 400; src: url(assets/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 500; src: url(assets/manrope-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 600; src: url(assets/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; src: url(assets/manrope-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; src: url(assets/manrope-latin-800-normal.woff2) format("woff2"); }
:root {
  --bg: #F7F5F0; --surface: #FFFFFF; --raised: #EFECE5; --text: #20211F; --muted: #696A63; --border: #E4E3DC;
  --accent: #F5664B; --onAccent: #20211F; --primary: #20211F; --onPrimary: #F7F5F0; --success: #25633F; --error: #A93232;
  --soft-accent: #FFECE7; --radius: 18px; --radius-c: 14px; --touch: 52px; --pad: 24px;
  --hair: #E4E3DC; --press: rgba(32,33,31,.05); --fill: #EEEBE4;
  /* one motion vocabulary for the whole app */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  interpolate-size: allow-keywords;
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
html, body { margin: 0; height: 100%; background: #E9E6DF; color: var(--text); font-family: Manrope, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, [role="button"], label, summary { touch-action: manipulation; }
button, .btn, .chip, .tabs a, .item, .vrow, .seg button, summary { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.device { min-height: 100%; display: flex; justify-content: center; align-items: center; padding: 24px 0; }
.screen { position: relative; width: 430px; height: min(932px, calc(100vh - 48px)); background: var(--bg); border-radius: 44px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18), 0 0 0 10px #20211F; overflow: hidden; display: flex; flex-direction: column; }
@media (max-width: 520px) {
  html, body { background: var(--bg); }
  .device { padding: 0; } .screen { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top, 0px)) var(--pad) 4px; flex: none; }
.logo { display: block; padding: 6px 0; }
.logo img { height: 28px; display: block; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; transition: transform 160ms var(--ease-out); }
.avatar:active { transform: scale(.94); }
.avatar.logo { padding: 6px; }
.avatar.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
main { flex: 1; overflow-y: auto; padding: 10px var(--pad) 32px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* bottom tab bar: a light material the page scrolls under, labels named for what is behind them */
.tabs { flex: none; display: flex; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(247,245,240,.86); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--hair); position: relative; z-index: 2; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.tabs a.on { color: var(--text); font-weight: 800; }
.tabs svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease-out); }
.tabs a:active svg { transform: scale(.88); }
.tabs a.on svg { stroke-width: 2; }
/* the active-tab dot (the orange dot of «regi.»): slides to the new tab, on-screen movement -> ease-in-out */
.tab-dot { position: absolute; left: 0; bottom: calc(5px + env(safe-area-inset-bottom, 0px)); width: 5px; height: 5px; border-radius: 50%; background: var(--accent); pointer-events: none; }
.tab-dot.ready { transition: transform 260ms var(--ease-in-out); }
.tabs a { padding-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .tab-dot.ready { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .tabs { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* type: tight and dark on big headings, calm body text */
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 10px; }
h1 { font-size: 34px; line-height: 1.06; letter-spacing: -.025em; font-weight: 800; margin: 14px 0 14px; text-wrap: balance; }
.eyebrow + h1 { margin-top: 0; }
h2 { font-size: 21px; line-height: 1.15; font-weight: 800; margin: 30px 0 10px; letter-spacing: -.015em; }
h3 { letter-spacing: -.015em; }
p { line-height: 1.5; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; line-height: 1.42; }
.sub { color: var(--muted); font-size: 15px; margin: -4px 0 18px; }

/* buttons: one dark primary, one accent for «go», a quiet filled secondary, and plain text actions */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--touch); border: 0; border-radius: var(--radius-c);
  background: var(--primary); color: var(--onPrimary); font-weight: 700; font-size: 17px; letter-spacing: -.005em; cursor: pointer; padding: 0 20px; margin: 10px 0;
  transition: transform 140ms var(--ease-out), opacity 150ms ease, background-color 150ms ease; }
.btn:active:not([disabled]) { transform: scale(.97); }
.btn.accent { background: var(--accent); color: var(--onAccent); }
.btn.ghost { background: var(--fill); color: var(--text); }
.btn.text { background: none; color: var(--text); min-height: 44px; font-size: 15px; }
.btn.small { min-height: 44px; font-size: 15px; }
.btn.cta { justify-content: space-between; padding: 0 20px 0 22px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.busy { pointer-events: none; }
.btn.busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.busy > .ic, .btn.busy > .arr { display: none; }
.arr { width: 20px; height: 20px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }

/* surfaces: kept for a few places that really are one object (the featured idea, a quote, a status) - no outlines */
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; margin: 12px 0; }
.card.dark { background: var(--primary); color: var(--onPrimary); }
.card.accent { background: var(--accent); color: var(--onAccent); }
.card.flat { background: var(--fill); }
/* a section on the page: hairline on top, no box */
.sect { border-top: 1px solid var(--hair); padding: 18px 0 6px; margin-top: 18px; }
.sect > h2:first-child, .sect > .sect-t:first-child { margin-top: 0; }
.sect-t { font-size: 17px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.note { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); background: var(--fill); border-radius: var(--radius-c); padding: 12px 14px; margin: 12px 0; }
.note .ic { width: 18px; height: 18px; margin-top: 1px; }
.note b { color: var(--text); }

.field { width: 100%; min-height: var(--touch); border: 0; border-radius: var(--radius-c); background: var(--fill); padding: 14px 15px; font-size: 17px;
  transition: background-color 150ms ease, box-shadow 150ms ease; -webkit-appearance: none; appearance: none; }
.field::placeholder { color: #75766F; }
textarea.field { min-height: 96px; resize: vertical; line-height: 1.45; }
.field:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 2px var(--text); }
select.field { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
label.l { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin: 18px 0 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { background: var(--fill); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; line-height: 1.2;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
button.chip { border: 0; cursor: pointer; font-family: inherit; min-height: 38px; }
button.chip:active { transform: scale(.96); }
.chip.accent { background: var(--soft-accent); color: #8a2b19; }
button.chip.on, .seg button.on { background: var(--text); color: var(--onPrimary); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); font-weight: 600; margin: 8px 0 0; }
.meta span + span::before { content: "·"; margin: 0 7px; color: #B4B2A9; }
.say { background: var(--soft-accent); border-radius: var(--radius-c); padding: 15px 17px; margin: 14px 0; }
.say b { display: block; font-size: 11.5px; letter-spacing: .14em; color: #B8432D; margin-bottom: 5px; }
.say div { font-weight: 700; font-size: 19px; line-height: 1.32; letter-spacing: -.01em; }

.progress { height: 4px; background: var(--hair); border-radius: 4px; overflow: hidden; margin: 6px 0 18px; }
.progress > i { display: block; height: 100%; background: var(--text); border-radius: 4px; transition: transform 300ms var(--ease-out); transform-origin: left; }
.steps { display: flex; gap: 4px; margin: 2px 0 18px; } .steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--hair); }
.steps i.done { background: #9FA09A; } .steps i.on { background: var(--text); }
.sketch { position: relative; border-radius: var(--radius); overflow: hidden; background: #F1EBE0; aspect-ratio: 9 / 16; max-height: 54vh; margin: 0 auto; }
.sketch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sketch .badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: var(--onPrimary); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 5px 11px; }
.skel { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-weight: 600;
  background: linear-gradient(100deg, #EFE9DD 30%, #F7F2E9 50%, #EFE9DD 70%); background-size: 200% 100%; animation: sh 1.4s infinite linear; }
@keyframes sh { to { background-position: -200% 0; } }

/* lists: rows straight on the page, hairlines between, the pressed row tints edge to edge (05_Appskisser «library») */
.list { margin: 6px calc(var(--pad) * -1) 0; }
.item { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px var(--pad); min-height: 60px; transition: background-color 120ms ease; }
.item::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--hair); }
.list.top-line { box-shadow: inset 0 1px 0 var(--hair); }
.list > .item:last-child::after { display: none; }
.list.end-line > .item:last-child::after { display: block; }
a.item:active, button.item:active { background: var(--press); }
button.item { width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.item .n { font-weight: 700; color: var(--muted); width: 26px; }
.item .t { flex: 1; min-width: 0; font-weight: 700; line-height: 1.28; }
.item .t small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; font-size: 14px; }
.item > .ic { color: #A3A49D; }
.item .v { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.thumb { width: 44px; height: 78px; border-radius: 8px; background: #EFE9DD center/cover; flex: none; }
.ok { width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; flex: none; }
.ok .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.qok { color: var(--success); font-weight: 700; margin: 4px 0 12px; }  /* quality line under a clip (.ok is the round check icon) */
.todo { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--hair); flex: none; }
/* video rows: picture tile + title + status (library sketch) */
.vrow .tile { width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--fill) center/cover; color: var(--text); overflow: hidden; }
.vrow .tile.accent { background-color: var(--accent); }
.vrow .tile .ic { width: 24px; height: 24px; }
.vrow .t { font-size: 17px; }
.vrow .t small.ok-t { color: var(--success); font-weight: 600; }
.vrow .t small.go-t { color: #B8432D; font-weight: 600; }
.vtabs { position: relative; display: flex; gap: 26px; margin: 4px 0 6px; box-shadow: inset 0 -1px 0 var(--hair); }
.vtabs button { border: 0; background: none; padding: 10px 0 12px; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 150ms ease; }
.vtabs button.on { color: var(--text); font-weight: 800; }
/* one underline that slides between the filters: a 100px bar placed and sized with transform only */
.vtabs-ind { position: absolute; left: 0; bottom: 0; width: 100px; height: 2px; background: var(--text); border-radius: 2px; transform-origin: left; pointer-events: none; }
.vtabs-ind.ready { transition: transform 260ms var(--ease-in-out); }
@media (prefers-reduced-motion: reduce) { .vtabs-ind.ready { transition: none; } }
.empty { text-align: center; padding: 40px 10px 10px; }
.empty .ic { width: 34px; height: 34px; color: #A3A49D; margin-bottom: 10px; }

/* home: the featured block (accent top + white body), like home_light.png */
.feat { border-radius: 22px; overflow: hidden; background: var(--surface); margin: 6px 0 4px; }
.feat-top { background: var(--accent); color: var(--onAccent); padding: 20px 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.feat-top .ic { width: 28px; height: 28px; stroke-width: 1.9; flex: none; margin-top: 1px; }
.feat-top q { quotes: none; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.012em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat-body { padding: 18px 20px 20px; }
.feat-body .eyebrow { margin: 0 0 6px; }
.feat-t { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 4px; }
.feat-body .btn { margin: 14px 0 0; }

.idea { padding: 20px 0 8px; border-top: 1px solid var(--hair); }
.idea:first-of-type { border-top: 0; padding-top: 6px; }
.idea .fmt { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #B8432D; }
.idea h3 { font-size: 23px; margin: 8px 0 10px; line-height: 1.15; font-weight: 800; }
.idea .hook { font-weight: 700; font-size: 17px; line-height: 1.38; margin: 0 0 10px; padding-left: 14px; box-shadow: inset 3px 0 0 var(--accent); }
.idea .btn { margin-top: 14px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sw { width: auto; cursor: pointer; }
.sw input { width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: 16px; padding: 0; background: none; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.sw input::-webkit-color-swatch-wrapper { padding: 0; } .sw input::-webkit-color-swatch { border: 0; border-radius: 15px; }
.sw span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* always exactly the 9:16 output frame: the width follows the height limit, so a wide screen never adds side bars */
video.player { width: min(100%, calc(62vh * 9 / 16)); height: auto; aspect-ratio: 9 / 16; object-fit: cover; margin: 6px auto 0;
  border-radius: var(--radius); background: #000; display: block; }
.seg { display: flex; gap: 4px; background: var(--fill); border-radius: 12px; padding: 4px; margin: 10px 0; }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.05); }
.seg .ic { width: 18px; height: 18px; }
pre.code { white-space: pre-wrap; background: var(--primary); color: var(--onPrimary); padding: 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; }
/* toast: rises from the bottom edge above the tab bar and leaves the same way */
#toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--primary); color: var(--onPrimary); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; z-index: 1100; max-width: min(90vw, 380px);
  box-shadow: 0 8px 30px rgba(0,0,0,.18); transition: transform 220ms var(--ease-out), opacity 180ms ease; }
#toast.show { transform: translate(-50%, 0); opacity: 1; transition: transform 400ms var(--ease-drawer), opacity 220ms ease; }
.err { color: var(--error); font-weight: 600; }
.spacer { height: 12px; }
.post .cover { display: block; width: 42%; border-radius: 12px; margin-bottom: 6px; }
.post textarea { font-size: 16px; line-height: 1.45; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 14px calc(var(--pad) * -1); background: var(--hair); box-shadow: 0 1px 0 var(--hair), 0 -1px 0 var(--hair); }
.kpi { background: var(--bg); padding: 16px var(--pad); }
.kpi b { display: block; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--muted); }
.item .thumb { width: 44px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
/* in-app camera */
body.cam-open { overflow: hidden; }
.cam { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.cam [hidden] { display: none !important; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam video.mirror, .cam canvas.mirror { transform: scaleX(-1); }
.cam-freeze { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .18s; z-index: 1; }
/* wide screens with a mouse (laptop) - never a phone: the camera shows the 9:16 frame that ends up in the video, centred, instead of a wide crop */
@media (min-aspect-ratio: 9/16) and (hover: hover) and (pointer: fine) {
  .cam video, .cam-freeze { left: 0; right: 0; width: calc(100vh * 9 / 16); margin: 0 auto; }
}
.cam-guide, .cam-line, .cam-count { pointer-events: none; }
.cam-guide { position: absolute; inset: 0; }
.cam-guide.grid i { position: absolute; inset: 0; background:
  linear-gradient(to right, transparent 33.1%, rgba(255,255,255,.3) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.3) 66.7%, transparent 66.9%),
  linear-gradient(to bottom, transparent 33.1%, rgba(255,255,255,.3) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.3) 66.7%, transparent 66.9%); }
.cam-guide.person i { position: absolute; left: 50%; top: 24%; width: 62%; height: 68%; transform: translateX(-50%);
  border: 2px dashed rgba(255,255,255,.5); border-radius: 46% 46% 12% 12% / 30% 30% 8% 8%; }
.cam.recording .cam-guide { opacity: .35; }
.cam-line { position: absolute; top: calc(env(safe-area-inset-top) + 72px); left: 16px; right: 16px; background: rgba(0,0,0,.55);
  border-radius: 14px; padding: 12px 14px; font-size: 20px; font-weight: 700; line-height: 1.3; text-align: center; }
.cam-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 130px; font-weight: 900;
  text-shadow: 0 4px 30px rgba(0,0,0,.5); z-index: 2; }
.cam-top { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 12px); left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center; }
.cam-top button { background: rgba(0,0,0,.5); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.cam-time { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 16px; background: rgba(0,0,0,.5);
  padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.cam-time i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); }
.cam.recording .cam-time i { background: #ff3b30; animation: camblink 1s infinite; }
@keyframes camblink { 50% { opacity: .25; } }
.cam-bottom { position: absolute; z-index: 5; bottom: 0; left: 0; right: 0; padding: 16px 16px calc(env(safe-area-inset-bottom) + 22px);
  display: flex; flex-direction: column; align-items: center; gap: 12px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.cam-lenses { display: flex; gap: 8px; background: rgba(0,0,0,.45); padding: 5px; border-radius: 999px; }
.cam-lenses button { border: 0; background: transparent; color: #fff; font-weight: 800; font-size: 14px; min-width: 42px; height: 34px;
  border-radius: 999px; cursor: pointer; }
.cam-lenses button.on { background: rgba(255,255,255,.9); color: #111; }
.cam-hint { font-size: 13px; opacity: .85; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.cam.recording .cam-hint, .cam.recording .cam-lenses, .cam.recording .cam-flip { visibility: hidden; }
.cam-rec { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: #ff3b30; cursor: pointer;
  transition: border-radius .2s, transform .2s; box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
.cam.recording .cam-rec { border-radius: 22px; transform: scale(.82); }
.cam-after { display: flex; gap: 10px; width: 100%; }
.cam-after .btn { flex: 1; margin: 0; }
.warnbox { border: 1px solid #e5322d; }
#upst .bar { height: 8px; background: var(--raised); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
#upst .bar i { display: block; height: 100%; background: var(--accent, #f15a3a); transition: width .2s; }
.cam-status { font-size: 14px; font-weight: 600; background: rgba(0,0,0,.55); padding: 8px 12px; border-radius: 12px; width: 100%; text-align: center; }
.cam-status .bar { height: 6px; background: rgba(255,255,255,.25); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.cam-status .bar i { display: block; height: 100%; background: #fff; }
.cam-use[disabled] { opacity: .45; }
.cam-shield { position: fixed; inset: 0; z-index: 2000; background: transparent; }
.cam-after .btn[disabled] { opacity: .5; }
.upcard { background: var(--raised); border-radius: 16px; padding: 14px; margin: 10px 0; }
.upcard.err { color: #b42318; }
.uprow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.uprow b { flex: 1; font-size: 15px; }
.uppct { font-weight: 800; font-variant-numeric: tabular-nums; }
.upcard .bar { height: 8px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.upcard .bar i { display: block; height: 100%; background: var(--accent, #f15a3a); transition: width .25s; }
.upcard small { color: var(--muted, #777); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(0,0,0,.12); border-top-color: var(--accent, #f15a3a); animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.upcard { background: var(--fill); }

/* video length slider: the business picks seconds, Regi works out the shots */
.vlen { margin: 4px 0 0; }
.vlen .ln-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.vlen .ln-head b { font-size: 15px; }
.vlen .ln-name { display: table; margin-top: 5px; padding: 2px 10px; border-radius: 99px; font-size: 12px; line-height: 18px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.vlen .ln-val { font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vlen .ln-val small { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.ln-slider { position: relative; margin: 8px 0 0; padding-bottom: 24px; }
.ln-slider input[type=range] { --p: 33%; display: block; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.ln-slider input[type=range]:focus { outline: none; }
.ln-slider input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px;
  background: linear-gradient(to right, var(--text) 0 var(--p), var(--hair) var(--p) 100%); }
.ln-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.16), 0 1px 1px rgba(0,0,0,.08);
  transition: transform 160ms var(--ease-out); }
.ln-slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.2), 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent); }
.ln-slider input[type=range]::-webkit-slider-thumb { transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.ln-val { overflow: hidden; } #lnNum { display: inline-block; }
.ln-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 22%, transparent), 0 3px 8px rgba(0,0,0,.16); }
.ln-slider input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--hair); }
.ln-slider input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--text); }
.ln-slider input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.16); }
.ln-marks { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; }
.ln-mark { position: absolute; left: calc(14px + (100% - 28px) * var(--m)); transform: translateX(-50%); bottom: 0; border: 0; background: none;
  padding: 2px 6px; font-family: inherit; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ln-mark.on { color: var(--text); font-weight: 800; }
.vlen .ln-text { margin: 4px 0 0; min-height: 40px; }
.feat .vlen .ln-text { min-height: 0; font-size: 13px; }

/* testmodus for eksterne bedrifter: vilkår, filmeguide, tilbakemelding */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 16px 0 6px; color: var(--muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--primary); }
.consent a, .terms a { text-decoration: underline; text-underline-offset: 2px; color: var(--text); }
.terms p { margin-bottom: 14px; font-size: 15px; }
.terms p b { display: block; margin-bottom: 2px; }
.guide p { margin: 8px 0 0; }
.stars { display: flex; gap: 4px; margin: 2px 0 4px -6px; }
.stars button { border: 0; background: none; line-height: 0; color: #D6D4CC; cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px; transition: transform 140ms var(--ease-out), color 150ms ease; }
.stars button svg { width: 30px; height: 30px; fill: currentColor; }
.stars button:active { transform: scale(.88); }
.stars button.on { color: var(--accent); }

/* loading animations (web/loading/, from Regi/Loading-animasjon): one looping drawing + caption per waiting screen */
.loadanim { display: block; width: 100%; max-width: 320px; height: 300px; border: 0; margin: 4px auto 0; background: transparent; }
.center { text-align: center; }
/* the loading block sits in the middle of the free space under the heading, not at the top with empty space below */
main:has(> .loadbox) { display: flex; flex-direction: column; }
.loadbox { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 6vh; }

/* icons + text actions */
.btn:focus-visible, .link:focus-visible, .item:focus-visible, .chip:focus-visible, .vtabs button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn.inline { width: auto; display: inline-flex; margin: 0; min-height: 40px; padding: 0 16px; font-size: 15px; flex: none; }
.btn .ic { width: 20px; height: 20px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 0; min-height: 44px; font-weight: 700; font-size: 15px;
  color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link.muted { color: var(--muted); font-weight: 600; }
.icl { display: flex; align-items: flex-start; gap: 8px; } .icl .ic { margin-top: 2px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.sec h2 { margin: 0; }
.hint { margin: 8px 0 0; }
a.item, button.item { cursor: pointer; }
details.more { margin: 4px 0 0; }
details.more summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; font-size: 14px; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .ic { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
details.more[open] summary .ic { transform: rotate(90deg); }
details.more p { margin: 2px 0 8px; }
summary { cursor: pointer; }
@supports (interpolate-size: allow-keywords) {
  details::details-content { height: 0; overflow: clip; opacity: 0;
    transition: height 220ms var(--ease-out), opacity 220ms var(--ease-out), content-visibility 220ms allow-discrete; }
  details[open]::details-content { height: auto; opacity: 1; }
}
.devtools { margin: 30px 0 8px; color: var(--muted); } .devtools .btn { color: var(--text); }
.tips b { display: block; margin-bottom: 4px; } .tips p { margin: 0; }
.qok .ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* the finished moment: a check that draws itself (rare, so it may take its time) */
.done-ok { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--success); margin: 14px 0 10px; }
.done-ok i { width: 24px; height: 24px; border-radius: 50%; background: var(--success); display: grid; place-items: center; }
.done-ok svg, .bp-done svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-ok svg path, .bp-done svg path { stroke-dasharray: 20; stroke-dashoffset: 0; }
.celebrate .done-ok i { animation: pop 420ms var(--ease-out) both; }
.celebrate .done-ok svg path, .bp-done.draw svg path { animation: draw 360ms var(--ease-out) 160ms both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 20; } }

/* screen entrance: a short fade-up when the content of the screen changes (not on tab switches, those are instant) */
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade { from { opacity: 0; } }
.stagger > * { animation: enter 340ms var(--ease-out) both; }
.stagger > :nth-child(2) { animation-delay: 50ms; } .stagger > :nth-child(3) { animation-delay: 100ms; } .stagger > :nth-child(4) { animation-delay: 150ms; }
.stagger > :nth-child(5) { animation-delay: 200ms; } .stagger > :nth-child(n+6) { animation-delay: 240ms; }

/* «Din stil» (brandPage): clean header with the logo, short grouped rows, one sheet per part */
.bp-id { position: relative; text-align: center; padding: 8px 8px 24px; }
.bp-logo { position: relative; display: inline-block; border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer; transition: transform 160ms var(--ease-out); }
.bp-logo:active { transform: scale(.96); }
.bp-logo-c { width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(32,33,31,.08); display: grid; place-items: center; overflow: hidden; margin: 0 auto; }
.bp-logo-c img { width: 80%; height: 80%; object-fit: contain; }
.bp-logo-c b { font-size: 30px; font-weight: 800; color: var(--muted); }
.bp-logo-edit { position: absolute; right: -2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.bp-logo-edit .ic { width: 15px; height: 15px; }
.bp-id h1 { font-size: 27px; line-height: 1.15; margin: 14px 0 0; }
.bp-one { margin: 6px auto 0; max-width: 300px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-more { position: absolute; right: -10px; top: -4px; text-align: left; }
.bp-more > button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.bp-menu { position: absolute; right: 4px; top: 44px; background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.14);
  padding: 6px; width: 200px; z-index: 5; transform-origin: top right; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
@starting-style { .bp-menu { opacity: 0; transform: scale(.96); } }
.bp-menu[hidden] { display: none; }
.bp-menu a, .bp-menu button { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 10px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; border: 0; background: none; cursor: pointer; }
.bp-menu a:active, .bp-menu button:active { background: var(--fill); }
@media (hover: hover) and (pointer: fine) { .bp-menu a:hover, .bp-menu button:hover { background: var(--fill); } }
.bp-banner, .bp-wrong { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; border: 0; border-radius: 16px; padding: 13px 14px; margin-bottom: 22px; transition: transform 140ms var(--ease-out); }
.bp-banner:active, .bp-wrong:active { transform: scale(.98); }
.bp-banner { background: var(--soft-accent); }
.bp-wrong { background: none; margin: 4px 0 8px; padding: 13px 0; }
.bp-banner .t, .bp-wrong .t { flex: 1; } .bp-banner b, .bp-wrong b { display: block; font-size: 15px; } .bp-banner .t span, .bp-wrong .t span { font-size: 13px; color: var(--muted); }
.bp-banner > .ic { color: #B8432D; }
.bp-count { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--accent); color: var(--onAccent); }
.bp-sec { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 2px 8px; }
/* grouped rows (iOS inset-grouped): white on the page, no outline, hairlines inset past the icon */
.bp-group { background: var(--surface); border-radius: 16px; margin-bottom: 24px; overflow: hidden; }
.bp-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; min-height: 58px; border: 0; background: none; font: inherit; color: var(--text); text-decoration: none; cursor: pointer; transition: background-color 120ms ease; }
.bp-row + .bp-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--hair); }
.bp-row:active { background: var(--press); }
.bp-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--fill); display: grid; place-items: center; flex: none; overflow: hidden; }
.bp-ic img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; box-shadow: inset 0 0 0 1px var(--hair); }
.bp-row .t { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; }
.bp-row .v { color: var(--muted); font-size: 14px; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-row > .ic:last-child { color: #B4B2A9; }
.bp-dots { display: flex; } .bp-dots i { width: 16px; height: 16px; border-radius: 50%; margin-left: -4px; box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px rgba(0,0,0,.12); }
.bp-wrong .bp-ic { background: color-mix(in srgb, var(--accent) 16%, transparent); color: #B8432D; }

/* bottom sheet (sheet() in app.js): iOS drawer curve, drag the top down to close */
.sheet-wrap { position: absolute; inset: 0; z-index: 50; }
body > .sheet-wrap { position: fixed; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20,20,18,.42); opacity: 0; transition: opacity 400ms var(--ease-drawer); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--bg); border-radius: 26px 26px 0 0; padding: 30px 20px calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform 480ms var(--ease-drawer); box-shadow: 0 -12px 40px rgba(0,0,0,.14); }
.sheet-wrap.closing .sheet { transition-duration: 300ms; } .sheet-wrap.closing .sheet-bg { transition-duration: 300ms; }
.sheet-grab { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 2; touch-action: none; cursor: grab; }
.sheet-grab::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 99px; background: #D6D4CC; }
.sheet-wrap.open .sheet-bg { opacity: 1; } .sheet-wrap.open .sheet { transform: none; }
.sheet.dragging, .sheet-wrap.dragging .sheet-bg { transition: none; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; z-index: 3;
  display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.sheet-x::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--fill); z-index: -1; }
/* sheet layout: head, scrolling body, footer with the button always visible */
.sheet.ps { display: flex; flex-direction: column; overflow: hidden; padding: 0; background: var(--surface); }
.ps-head { padding: 28px 64px 4px 20px; flex: none; touch-action: none; } .ps-head h2 { margin: 0; font-size: 21px; } .ps-head p { margin: 4px 0 0; }
.ps-body { padding: 14px 20px 8px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ps-foot { padding: 10px 20px calc(18px + env(safe-area-inset-bottom, 0px)); flex: none; } .ps-foot .btn { margin: 0; } .ps-foot .btn + .btn { margin-top: 8px; }
.sheet .field { background: var(--fill); }
.btn.wait { background: var(--raised); color: var(--muted); }
.bp-lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.bp-lbl:first-child { margin-top: 0; }
.bp-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border: 0; border-radius: 14px; margin-bottom: 8px; background: var(--bg);
  font: inherit; color: var(--text); cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 150ms ease, background-color 150ms ease, transform 140ms var(--ease-out); }
.bp-opt:active { transform: scale(.985); }
.bp-opt.on { background: var(--surface); box-shadow: inset 0 0 0 2px var(--text); }
.bp-opt .t { flex: 1; min-width: 0; } .bp-opt .t > span:first-child { display: block; } .bp-opt small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 2px; }
.bp-opt .chips { margin: 8px 0 0; } .bp-opt .chip { font-size: 12px; padding: 4px 9px; background: var(--fill); }
.bp-opt.on .chip { background: var(--bg); }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #CFCDC5; flex: none; display: grid; place-items: center; transition: box-shadow 150ms ease; }
.radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--text); transform: scale(.4); opacity: 0; transition: transform 160ms var(--ease-out), opacity 120ms ease; }
.bp-opt.on .radio { box-shadow: inset 0 0 0 2px var(--text); } .bp-opt.on .radio::after { transform: none; opacity: 1; }
.bp-tag { display: inline-block; font-size: 11px; font-weight: 800; background: color-mix(in srgb, var(--accent) 18%, transparent); color: #8E2F1D; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.bp-why { margin-top: 8px; font-size: 14px; color: var(--muted); } .bp-why summary { font-weight: 700; color: var(--text); min-height: 40px; display: flex; align-items: center; }
.bp-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bp-logos span { aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); }
.bp-logos img { width: 70%; max-height: 70%; object-fit: contain; }
.bp-logos small { display: block; text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
.bp-ai { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg); border-radius: 14px; }
.bp-ai > span:first-child { width: 64px; height: 44px; border-radius: 10px; display: grid; place-items: center; padding: 6px; flex: none; } .bp-ai img { max-width: 100%; max-height: 100%; }
.bp-ai .t { flex: 1; } .bp-ai .t b { display: block; } .bp-ai small { color: var(--muted); }
.bp-col { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hair); }
.bp-col:first-of-type { border-top: 0; }
.bp-sw { position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; overflow: hidden; cursor: pointer; transition: transform 140ms var(--ease-out); }
.bp-sw:active { transform: scale(.92); }
.bp-sw input { position: absolute; inset: -10px; width: 64px; height: 64px; opacity: 0; cursor: pointer; }
.bp-col .t { flex: 1; } .bp-col .t b { display: block; } .bp-col .t span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; }
.bp-col .hex { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 250px; margin: 0 auto; }
.mf .vf { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; position: relative; background: radial-gradient(120% 80% at 50% 30%, #55534E 0%, #2A2927 60%, #1A1918 100%); }
.vf .cap { position: absolute; left: 6px; right: 6px; bottom: 30%; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.4; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.vf .pill { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); max-width: 88%; text-align: center; font-weight: 800; font-size: 13px; line-height: 1.2; padding: 7px 11px; border-radius: 999px; }
.mf-l { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 250px; margin-left: auto !important; margin-right: auto !important; gap: 8px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); margin: 6px 0 6px; }
.bp-tone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; min-height: 44px; }
.bp-tone-top #cnt { font-size: 14px; font-weight: 700; color: var(--muted); } .bp-tone-top #cnt.low { color: var(--error); }
.bp-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; }
.bp-reset[hidden] { display: none; } .bp-reset .ic { width: 16px; height: 16px; }
.bp-tg { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tg .tg { min-height: 44px; padding: 10px 16px; border-radius: 99px; border: 0; background: var(--fill); font: inherit; font-weight: 700; font-size: 15px; color: var(--text); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease, transform 140ms var(--ease-out); }
.bp-tg .tg:active { transform: scale(.95); }
.bp-tg .tg.on { background: var(--text); color: #fff; }
.bp-tg .tg.off { opacity: .38; text-decoration: line-through; }
.bp-note { display: flex; gap: 10px; font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 14px; padding: 12px 14px; margin: 18px 0 0; }
.bp-note .ic { width: 18px; height: 18px; flex: none; }
.bp-offer { display: flex; align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid var(--hair); }
.bp-offer:first-child { border-top: 0; }
.bp-offer .t { flex: 1; font-weight: 700; } .bp-offer .t small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.bp-offer .field { margin: 4px 0 0; }
.bp-ib { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; }
.bp-ib:active { background: var(--fill); }
@media (hover: hover) and (pointer: fine) { .bp-ib:hover { background: var(--fill); } }
.bp-add { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; font: inherit; font-weight: 700; color: #B8432D; cursor: pointer; padding: 0; }
.bp-prog { display: flex; gap: 5px; margin-bottom: 14px; } .bp-prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--hair); transition: background-color 200ms ease; } .bp-prog i.on { background: var(--text); }
.bp-q { background: var(--bg); border-radius: 18px; padding: 18px; font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.bp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .bp-2 .btn { margin: 0; }
.bp-done { width: 56px; height: 56px; border-radius: 50%; background: var(--success); display: grid; place-items: center; margin: 16px auto 10px; }
.bp-done svg { width: 24px; height: 24px; }
.bp-done.draw { animation: pop 420ms var(--ease-out) both; }
.bp-change { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); align-items: flex-start; }
.bp-change:nth-child(2) { border-top: 0; }
.bp-change b { display: block; } .bp-change span span { font-size: 14px; color: var(--muted); }
.bp-ci { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #E3F0E7; color: var(--success); }
.bp-ci.rm { background: #F9E3E3; color: var(--error); } .bp-ci .ic { width: 16px; height: 16px; }
.bp-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--hair); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 30px auto 10px; }
#bp button:focus-visible, .sheet button:focus-visible, .sheet .field:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* login: Google button follows Google's own look (white with the coloured G), the code field reads like a code */
body.logged-out .tabs, body.logged-out #avatar { display: none; }
.btn.google { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair); margin-top: 18px; }
.btn.google .g { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.field.code { font-size: 26px; font-weight: 700; letter-spacing: .28em; text-align: center; font-variant-numeric: tabular-nums; }
.field.code::placeholder { letter-spacing: .28em; color: #C9C7BF; }
.link[disabled] { opacity: .7; cursor: default; text-decoration: none; }
.acct { --pad: 20px; margin: -6px -20px 0; padding-bottom: 8px; }

/* reduced motion: fewer and gentler - fades stay, movement goes */
@media (prefers-reduced-motion: reduce) {
  .sheet { transition: transform 1ms, opacity 200ms ease !important; }
  .stagger > *, .celebrate .done-ok i, .bp-done.draw { animation: fade 200ms ease both !important; }
  .celebrate .done-ok svg path, .bp-done.draw svg path { animation: none !important; }
  #toast, #toast.show { transition: opacity 200ms ease; }
  .btn:active:not([disabled]), button.chip:active, .bp-opt:active, .bp-tg .tg:active, .bp-banner:active { transform: none; }
}
