/* ═══════════════════════════════════════════════════════════════════
   betyr.css — Design 2.0 (tavle 02). Egne tokens, ingen Bootstrap.
   Navnerom: .b-*  Modus: <html data-mode="light|dark">, .b-dark for
   seksjoner med fast mørkt utseende (forsidens hero/pris).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root, [data-mode="light"] {
  --bg:#f5f5f7; --card:#fff; --card2:#f5f5f7; --fill:#e8e8ed; --fill2:#d2d2d7;
  --text:#1d1d1f; --text2:#6e6e73; --text3:#a1a1a6; --sep:rgba(0,0,0,.08);
  --accent:#5856d6; --accent-h:#4b49c7; --accent-text:#5856d6; --accent-tint:rgba(88,86,214,.10);
  --on-accent:#fff;
  --ok:#248a3d; --ok-tint:rgba(52,199,89,.14); --ok-bar:#34c759;
  --warn:#b25000; --warn-tint:rgba(255,159,10,.16);
  --err:#d70015; --err-tint:rgba(255,59,48,.12);
  --shadow:0 2px 12px rgba(0,0,0,.06); --float:0 12px 40px rgba(0,0,0,.18);
  --nav:rgba(255,255,255,.72);
  color-scheme: light;
}
[data-mode="dark"], .b-dark {
  --bg:#000; --card:#1c1c1e; --card2:#2c2c2e; --fill:#3a3a3c; --fill2:#48484a;
  --text:#f5f5f7; --text2:#a1a1a6; --text3:#6e6e73; --sep:rgba(255,255,255,.12); --nav-link:#b4b4b9;
  --accent:#5e5ce6; --accent-h:#7270ee; --accent-text:#8e8cff; --accent-tint:rgba(125,122,255,.18);
  --on-accent:#fff;
  --ok:#30d158; --ok-tint:rgba(48,209,88,.16); --ok-bar:#30d158;
  --warn:#ff9f0a; --warn-tint:rgba(255,159,10,.16);
  --err:#ff453a; --err-tint:rgba(255,69,58,.16);
  --shadow:0 2px 16px rgba(0,0,0,.5); --float:0 16px 48px rgba(0,0,0,.7);
  --nav:rgba(28,28,30,.72);
  color-scheme: dark;
}
.b-dark { background: var(--bg); color: var(--text); }

/* ── Grunnlag ───────────────────────────────────────────────────── */
html.b { font-size: 17px; }
body.b {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.47;
}
.b *, .b *::before, .b *::after { box-sizing: border-box; }
.b a { color: var(--accent-text); text-decoration: none; }
.b a:hover { text-decoration: underline; }
.b a.b-btn, .b a.b-google, .b a.b-list-row, .b a.b-card-link, .b a.b-logo, .b a.b-avatar { text-decoration: none; }
.b h1, .b h2, .b h3, .b h4, .b p { margin: 0; }
.b button, .b input, .b select, .b textarea { font-family: inherit; font-size: inherit; }
.b img { max-width: 100%; display: block; }
.b :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Typografiroller (tavle 02): display 80, stor tittel 48, tittel 32,
   overskrift 21, brødtekst 17, sekundær 15, liten 13, stort tall 56 */
.b-display   { font-size: clamp(40px, 8vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.b-h1        { font-size: clamp(28px, 5vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.b-h2        { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.b-h3        { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.b-body      { font-size: 17px; line-height: 1.47; }
.b-sec       { font-size: 15px; line-height: 1.45; color: var(--text2); }
.b-small     { font-size: 13px; line-height: 1.4; color: var(--text2); }
.b-num       { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.b-kicker    { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .75; }
.b-muted     { color: var(--text2); }
.b-muted3    { color: var(--text3); }
.b-pretty    { text-wrap: pretty; }

/* Layout */
.b-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; width: 100%; }
.b-narrow    { max-width: 720px; margin: 0 auto; padding: 0 32px; width: 100%; }
@media (max-width: 599px) { .b-container, .b-narrow { padding: 0 20px; } }
.b-stack     { display: flex; flex-direction: column; gap: 14px; }
.b-row       { display: flex; align-items: center; gap: 12px; }
.b-grid      { display: grid; gap: 14px; }
.b-section   { padding: 64px 0; }
@media (max-width: 599px) { .b-section { padding: 48px 0; } }

/* ── Logo ───────────────────────────────────────────────────────── */
.b-logo, a.b-logo { display: inline-flex; align-items: baseline; font-weight: 600; letter-spacing: -.04em; color: var(--text); line-height: 1; text-decoration: none !important; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Helvetica, Arial, sans-serif; }
.b-logo-dot { display: inline-block; width: .17em; height: .17em; border-radius: 50%; background: var(--accent); margin: 0 .05em 0 .04em; }
.b-dark .b-logo, .b-logo.on-dark { color: #f5f5f7; }
.b-dark .b-logo-dot, .b-logo.on-dark .b-logo-dot { background: #7d7aff; }

/* ── Ikoner ─────────────────────────────────────────────────────── */
.b-ico { display: inline-block; vertical-align: middle; flex: none; color: currentColor; }
.b-ico-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); display: inline-grid; place-items: center; color: var(--text2); }
.b-ico-big { width: 120px; height: 120px; border-radius: 50%; background: var(--fill); display: inline-grid; place-items: center; color: var(--text3); }

/* ── Knapper (piller, vanlig vekt, ≥44px) ───────────────────────── */
.b-btn, a.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none !important;
  font: 400 17px/1 inherit; padding: 12px 22px; min-height: 44px; border-radius: 980px;
  background: var(--fill); color: var(--text); transition: background .15s ease-out, color .15s ease-out, transform .22s cubic-bezier(.2,.8,.2,1), opacity .15s; }
.b-btn:hover, a.b-btn:hover { background: var(--fill2); }
.b-btn:active { transform: scale(.96); filter: brightness(.92); }
.b-btn:disabled, .b-btn[aria-disabled="true"] { opacity: .35; cursor: default; transform: none; }
.b-btn-primary, a.b-btn-primary { background: var(--accent); color: var(--on-accent); }
.b-btn-primary:hover, a.b-btn-primary:hover { background: var(--accent-h); }
.b-btn-tinted, a.b-btn-tinted { background: var(--accent-tint); color: var(--accent-text); }
.b-btn-danger, a.b-btn-danger { background: var(--err-tint); color: var(--err); }
.b-btn-ghost, a.b-btn-ghost { background: transparent; color: var(--accent-text); }
.b-btn-ghost:hover, a.b-btn-ghost:hover { background: var(--accent-tint); }
.b-btn-sm { font-size: 14px; padding: 8px 16px; min-height: 34px; }
.b-btn-lg { font-size: 21px; padding: 14px 30px; min-height: 52px; }
.b-btn-block { width: 100%; }
.b-link { font-size: 17px; display: inline-flex; align-items: center; gap: 2px; }
.b-link::after { content: "›"; font-size: 1.15em; margin-left: 2px; }
.b-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: b-spin .8s linear infinite; }

/* ── Felt (innfelte flater, ingen kant) ─────────────────────────── */
.b-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text2); }
.b-input, .b-select, .b-textarea { width: 100%; border: 0; background: var(--card); border-radius: 12px; padding: 13px 16px; font-size: 17px; color: var(--text); min-height: 50px; outline: none; transition: box-shadow .15s; }
[data-mode="light"] .b-input, [data-mode="light"] .b-select, [data-mode="light"] .b-textarea, .b-on-card .b-input, .b-on-card .b-select, .b-on-card .b-textarea { box-shadow: inset 0 0 0 1px var(--sep); }
.b-input::placeholder { color: var(--text3); }
.b-input:focus, .b-select:focus, .b-textarea:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.b-input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--err); }
.b-input:disabled { opacity: .5; }
.b-textarea { min-height: 96px; resize: vertical; }
.b-field-hint { font-size: 13px; color: var(--text3); }
.b-field-err { font-size: 13px; color: var(--err); }
.b-field-ok { font-size: 13px; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.b-input-group { display: flex; background: var(--card); border-radius: 12px; overflow: hidden; min-height: 50px; align-items: center; }
.b-input-group .b-input { background: transparent; box-shadow: none; flex: 1; }
.b-input-group .b-input:focus { outline: none; }   /* fokusringen klippes av overflow: hidden og ble en «hale» (QA 48) */
.b-input-group:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.b-input-group .b-suffix { padding: 13px 16px; font-size: 15px; color: var(--text3); }

/* Bryter */
.b-switch { position: relative; display: inline-block; width: 51px; height: 31px; flex: none; }
.b-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.b-switch span { position: absolute; inset: 0; border-radius: 980px; background: var(--fill2); transition: background .22s cubic-bezier(.2,.8,.2,1); cursor: pointer; }
.b-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.b-switch input:checked + span { background: var(--accent); }
.b-switch input:disabled + span { opacity: .5; cursor: not-allowed; }   /* låst av et annet valg */
.b-switch input:checked + span::after { transform: translateX(20px); }
.b-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.b-switch-sm { width: 44px; height: 27px; } .b-switch-sm span::after { width: 23px; height: 23px; } .b-switch-sm input:checked + span::after { transform: translateX(17px); }

/* Valgmerke, segment, søk */
.b-check { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1.5px var(--fill2); color: #fff; transition: background .22s, box-shadow .22s; }
.b-check.is-on { background: var(--accent); box-shadow: none; }
.b-segment { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 2px; gap: 2px; font-size: 14px; }
.b-segment > button, .b-segment > a { border: 0; background: transparent; color: var(--text2); padding: 6px 14px; border-radius: 8px; cursor: pointer; font: inherit; text-decoration: none !important; transition: background .22s, color .22s; }
.b-segment > [aria-pressed="true"], .b-segment > .is-on { background: var(--card); box-shadow: var(--shadow); color: var(--text); font-weight: 600; }
.b-mode-switch { font-size: 12px; border-radius: 9px; } .b-mode-switch > button { padding: 4px 10px; border-radius: 7px; }
.b-search { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 0 14px; min-height: 44px; color: var(--text3); }
.b-search input { border: 0; background: transparent; flex: 1; font-size: 17px; color: var(--text); outline: none; min-width: 0; }

/* ── Kort ───────────────────────────────────────────────────────── */
.b-card { background: var(--card); border-radius: 22px; padding: 24px; color: var(--text); }
@media (max-width: 599px) { .b-card { padding: 20px; } }
.b-card-link, a.b-card-link { display: flex; flex-direction: column; gap: 14px; text-decoration: none !important; transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.b-card-link:hover { transform: translateY(-2px); }
.b-card-quiet { background: var(--card2); box-shadow: inset 0 0 0 1px var(--sep); }
.b-panel { background: var(--card); border-radius: 28px; padding: 28px; }
.b-card-head { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text2); }
.b-card-head .b-ico-circle { width: 28px; height: 28px; }
.b-card-head .b-chev { margin-left: auto; color: var(--text3); font-size: 19px; }
.b-card-num { margin-top: auto; font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.b-card-idle { margin-top: auto; font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }

/* Status som tall, fremdrift, nedtelling */
.b-bar { display: flex; height: 8px; border-radius: 980px; overflow: hidden; background: var(--fill); }
.b-bar > span { display: block; height: 100%; }
.b-bar-ok { background: var(--ok-bar); } .b-bar-no { background: var(--fill2); } .b-bar-open { background: var(--accent-tint); }
.b-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.b-steps { display: flex; align-items: center; gap: 6px; }
.b-steps > span { height: 4px; flex: 1; border-radius: 980px; background: var(--fill2); }
.b-steps > span.is-done { background: var(--accent); }
.b-count { display: flex; gap: 20px; align-items: baseline; font-variant-numeric: tabular-nums; }
.b-count b { font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.b-count small { font-size: 14px; color: var(--text2); margin-left: 6px; }
.b-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 980px; background: var(--fill); color: var(--text); }
.b-pill-accent { background: var(--accent-tint); color: var(--accent-text); }
.b-pill-solid { background: var(--accent); color: var(--on-accent); }
.b-pill-ok { background: var(--ok-tint); color: var(--ok); }
.b-pill-warn { background: var(--warn-tint); color: var(--warn); }

/* ── Varsler, toast, dialog ─────────────────────────────────────── */
.b-flash-float { position: absolute; left: 20px; right: 20px; top: 66px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.b-flash-float .b-banner { pointer-events: auto; width: 100%; max-width: 560px; box-shadow: var(--float); cursor: pointer; animation: b-up .32s cubic-bezier(.2,.8,.2,1); }
.b-banner { border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 1.45; color: var(--text); background: var(--accent-tint); }
.b-banner-warn { background: var(--warn-tint); } .b-banner-err { background: var(--err-tint); } .b-banner-ok { background: var(--ok-tint); }
.b-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; background: var(--card); color: var(--text); border-radius: 980px; padding: 12px 20px; font-size: 15px; box-shadow: var(--float); z-index: 1100; animation: b-up .32s cubic-bezier(.2,.8,.2,1); }
.b-dialog-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: center; padding: 20px; z-index: 1050; backdrop-filter: blur(6px); }
.b-dialog { background: var(--card); color: var(--text); border-radius: 24px; padding: 28px 24px 20px; box-shadow: var(--float); max-width: 340px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 10px; animation: b-in .32s cubic-bezier(.2,.8,.2,1); }
.b-dialog h4 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.b-dialog p { font-size: 15px; line-height: 1.45; color: var(--text2); }
.b-dialog .b-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* ── Gruppert liste, panel ──────────────────────────────────────── */
.b-list { background: var(--card); border-radius: 22px; overflow: hidden; }
.b-list-row, a.b-list-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; min-height: 60px; color: var(--text); text-decoration: none !important; }
.b-list-row + .b-list-row { border-top: 1px solid var(--sep); }
.b-list-row:hover { background: var(--card2); }
.b-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.b-list-main b { font-weight: 400; font-size: 17px; }
.b-list-main span { font-size: 14px; color: var(--text2); }
.b-list-val { font-size: 15px; color: var(--text2); }
.b-list-chev { color: var(--text3); font-size: 19px; }
.b-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--fill); display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text2); flex: none; }
.b-details { background: var(--card); border-radius: 22px; overflow: hidden; }
.b-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-size: 17px; font-weight: 600; }
.b-details > summary::-webkit-details-marker { display: none; }
.b-details > summary .b-chev { margin-left: auto; transition: transform .22s; color: var(--text3); }
.b-details[open] > summary .b-chev { transform: rotate(90deg); }
.b-details-body { border-top: 1px solid var(--sep); padding: 6px 20px; }
.b-setting-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 17px; }
.b-setting-row + .b-setting-row { border-top: 1px solid var(--sep); }
.b-setting-row .b-label { flex: 1; }
.b-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 32px 24px; }
.b-empty h4 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-top: 6px; }
.b-empty p { font-size: 15px; line-height: 1.45; color: var(--text2); max-width: 280px; }

/* ── Toppnav (glass) ────────────────────────────────────────────── */
/* Ankerlenker (#hero, #frist …) skal lande under den faste toppstripen, og målet lyser kort opp */
.b [id] { scroll-margin-top: 84px; }
.b-setting-row:target, .b-card:target { animation: b-target 1.6s ease-out; border-radius: 12px; }
@keyframes b-target { 0%, 35% { background: var(--accent-tint); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .b-setting-row:target, .b-card:target { animation: none; } }
.b a.b-nav-event:hover { text-decoration: underline; text-underline-offset: 3px; }
.b-nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--sep); }
.b-nav-inner { display: flex; align-items: center; gap: 26px; height: 52px; font-size: 14px; color: var(--text2); }
.b-nav-inner a:not(.b-logo):not(.b-btn) { color: var(--nav-link, #5f5f64); }   /* 4,42 → 5,4 mot lys bakgrunn (WCAG AA) */
.b-nav-inner a:not(.b-btn):hover { color: var(--text); text-decoration: none; }
.b-nav-inner .b-nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.b-nav-dark { background: rgba(29,29,31,.6); border-bottom: 0; color: #a1a1a6; position: absolute; left: 0; right: 0; top: 0; }
.b-nav-dark .b-nav-inner a:not(.b-btn) { color: #a1a1a6; } .b-nav-dark .b-nav-inner a:not(.b-btn):hover { color: #fff; }
.b-nav-links { display: flex; gap: 26px; }
.b-nav-cream { position: absolute; left: 0; right: 0; top: 0; background: rgba(244,239,230,.72); border-bottom: 0; }
.b-nav-logout-m, .b-nav-priser-m { display: none; }
.b-nav-burger { display: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); color: var(--text); place-items: center; cursor: pointer; }
.b-nav-dark .b-nav-burger { background: #2c2c2e; color: #f5f5f7; }
@media (max-width: 899px) {
  .b-nav-links { display: none; }
  /* Logg ut flytter fra høyre side inn i burgermenyen når plassen blir trang */
  .b-nav-right .b-nav-logout { display: none; }
  .b-nav.is-open .b-nav-links .b-nav-logout-m { display: block; }
  .b-nav-right .b-nav-priser { display: none; }
  .b-nav.is-open .b-nav-links .b-nav-priser-m { display: block; margin-top: 8px; border-top: 1px solid var(--sep); padding-top: 18px; }
  .b-nav-burger { display: grid; }
  .b-nav.is-open .b-nav-links { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 52px; padding: 12px 20px 20px; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--sep); box-shadow: 0 16px 32px -20px rgba(0,0,0,.25); }
  /* Åpen burgermeny: Chrome tegner ikke bakgrunnen til et barn som stikker utenfor en forelder
     med backdrop-filter, så glasset slås av mens menyen er åpen og stripen blir dekkende.
     Lukket meny (og PC) har glasset som før. */
  .b-nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .b-nav-dark.is-open, .b-nav-dark.is-open .b-nav-links { background: rgba(29,29,31,.97); }
  .b-nav-cream.is-open, .b-nav-cream.is-open .b-nav-links { background: rgba(244,239,230,.97); }
  .b-nav.is-open .b-nav-links a { padding: 12px 0; font-size: 17px; }
}

/* Toppmenyen «Anledninger» / «Funksjoner» (_nav_public.html, 11.10.2026): panel i hele bredden under stripen, i forsidens
   krem uansett side. Dekkende, ikke glass: backdrop-filter inni stripens backdrop-filter tegnes ikke i Chrome (teksten bak
   skinte igjennom), (mørke typesider får lys stripe mens panelet er åpent). Anledninger = bildekort i temaets skrift,
   Funksjoner = ren tekst + levende forhåndsvisning. Under 900 px: burgermenyen i krem, kort å sveipe i og en ren liste. */
.b-dd-btn { position: relative; display: inline-flex; align-items: center; border: 0; background: none; padding: 0; font: inherit; color: var(--nav-link, #5f5f64); cursor: pointer; height: 52px; transition: color .2s; }
.b-dd-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.b-dd-btn:hover, .b-dd.is-open .b-dd-btn { color: var(--text); }
.b-dd.is-open .b-dd-btn::after { transform: scaleX(1); }
.b-nav-dark .b-dd-btn { color: #a1a1a6; } .b-nav-dark .b-dd-btn:hover { color: #fff; }
.b-nav { transition: background-color .3s, color .3s; }
.b-nav.dd-open { --text: #1d1d1f; --text2: #6e6e73; --text3: #a1a1a6; --nav-link: #5f5f64; --fill: rgba(0,0,0,.05); --sep: rgba(0,0,0,.08);
  background: #f4efe6; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.b-nav-dark.dd-open .b-nav-inner a:not(.b-btn), .b-nav-dark.dd-open .b-dd-btn { color: #5f5f64; }
.b-nav-dark.dd-open .b-dd.is-open .b-dd-btn, .b-nav-dark.dd-open .b-dd-btn:hover { color: #1d1d1f; }
.b-nav-dark.dd-open .b-logo.on-dark { color: #1d1d1f; } .b-nav-dark.dd-open .b-logo.on-dark .b-logo-dot { background: #5856d6; }
.b-dd-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; color: #1d1d1f;
  background: #f4efe6; box-shadow: 0 40px 60px -40px rgba(40,30,20,.45); clip-path: inset(0 0 100% 0); transition: clip-path .45s cubic-bezier(.2,.8,.2,1); }
.b-dd.is-open .b-dd-panel { clip-path: inset(0 0 -80px 0); }
.b-nav.dd-bytt .b-dd-panel { transition: none; }
.b-dd-demp { position: fixed; inset: 0; z-index: 40; background: rgba(30,24,18,.22); opacity: 0; transition: opacity .35s; }
.b-dd-demp.paa { opacity: 1; }
.b-dd-inn { padding-top: 26px; padding-bottom: 30px; }
.b-dd-inn > *, .b-dd-kort > a, .b-dd-grupper > div { --d: calc(var(--i, 0) * 45ms + 80ms); }
.b-dd-fot, .b-dd-kort > a, .b-dd-grupper > div, .b-dd-alle, .b-dd-vis { opacity: 0; transform: translateY(12px); transition: opacity .45s cubic-bezier(.2,.8,.2,1) var(--d, 120ms), transform .45s cubic-bezier(.2,.8,.2,1) var(--d, 120ms); }
.b-dd.is-open .b-dd-fot, .b-dd.is-open .b-dd-kort > a, .b-dd.is-open .b-dd-grupper > div, .b-dd.is-open .b-dd-alle, .b-dd.is-open .b-dd-vis { opacity: 1; transform: none; }
.b-nav.dd-bytt .b-dd-kort > a, .b-nav.dd-bytt .b-dd-grupper > div { --d: calc(var(--i, 0) * 30ms); }
/* Anledninger: bildekort */
.b-dd-kort { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.b-nav-inner .b-dd-kort a { position: relative; aspect-ratio: 4 / 5; max-height: 250px; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; isolation: isolate; }
#bNav .b-dd-kort a, #bNav .b-dd-kort a:hover { color: #fff; }   /* stripens lenkefarge (grå) skal ikke treffe kortene */
.b-dd-kort img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .35s; }
.b-dd-kort a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.08) 30%, rgba(0,0,0,.64)); }
.b-dd-kort .k { position: absolute; top: 14px; left: 16px; right: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .85; }
.b-dd-kort .n { font-size: clamp(19px, 1.85vw, 25px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.b-dd-kort .l { font-size: 13px; line-height: 1.35; margin-top: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.b-dd-kort:hover a:not(:hover) img { filter: saturate(.55) brightness(.75); }
.b-dd-kort a:hover img, .b-dd-kort a:focus-visible img { transform: scale(1.07); }
.b-dd-kort a:hover .l, .b-dd-kort a:focus-visible .l { max-height: 40px; opacity: .92; }
.b-dd-fot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; font-size: 14px; color: #6e6e73; --i: 6; }
.b-nav-inner .b-dd-panel a.b-dd-alle, .b-nav-inner .b-dd-fot a { color: #5856d6; font-weight: 500; font-size: 14px; }
.b-nav-inner .b-dd-panel a.b-dd-alle { display: inline-block; margin-top: 22px; --i: 3; }
/* Funksjoner: tekst + forhåndsvisning */
.b-dd-funk { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.b-dd-grupper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.b-dd-head { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a1a1a6; margin-bottom: 8px; }
.b-nav-inner .b-dd-grupper a { display: block; padding: 7px 0; font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; color: #1d1d1f; text-decoration: none; transition: color .2s, transform .3s cubic-bezier(.2,.8,.2,1); }
.b-dd-grupper:hover a { color: rgba(29,29,31,.4) !important; }
.b-nav-inner .b-dd-grupper a:hover, .b-nav-inner .b-dd-grupper a:focus-visible, .b-nav-inner .b-dd-grupper a.paa { color: #1d1d1f !important; transform: translateX(4px); }
.b-dd-vis { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 380px; --i: 4; }
.b-dd-enhet { transition: opacity .28s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1); }
.b-dd-enhet.bytter { opacity: 0; transform: translateY(8px) scale(.985); }
.b-dd-enhet .skjerm { display: block; overflow: hidden; }
.b-dd-enhet img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.b-dd-enhet.mobil { width: 172px; border-radius: 30px; background: #1d1d1f; padding: 6px; box-shadow: 0 30px 50px -24px rgba(40,30,20,.55); }
.b-dd-enhet.mobil .skjerm { border-radius: 24px; aspect-ratio: 390 / 700; }
.b-dd-enhet.pc { width: 100%; max-width: 420px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 50px -24px rgba(40,30,20,.5), 0 0 0 1px rgba(0,0,0,.06); }
.b-dd-enhet.pc .bar { display: flex; gap: 5px; align-items: center; height: 20px; padding: 0 9px; background: #ececee; } .b-dd-enhet.pc .bar i { width: 7px; height: 7px; border-radius: 50%; background: #d1d1d6; }
.b-dd-enhet.pc .skjerm { aspect-ratio: 1280 / 800; }
.b-dd-enhet.flate { width: 100%; max-width: 240px; } .b-dd-enhet.flate .skjerm { border-radius: 18px; }
.b-dd-enhet.ikon { width: 200px; aspect-ratio: 1; border-radius: 32px; display: grid; place-items: center; color: #5856d6; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.b-dd-vistekst { text-align: center; margin-top: 14px; min-height: 40px; }
.b-dd-vistekst b { display: block; font-size: 15px; font-weight: 600; } .b-dd-vistekst span { font-size: 13px; color: #6e6e73; }
@media (prefers-reduced-motion: reduce) {
  .b-dd-panel, .b-dd-fot, .b-dd-kort > a, .b-dd-grupper > div, .b-dd-alle, .b-dd-vis, .b-dd-enhet, .b-dd-kort img { transition: none !important; transform: none !important; }
}
@media (max-width: 899px) {
  /* Burgermenyen i krem på alle sider; anledningene som kort å sveipe i, funksjonene som ren liste */
  .b-nav.is-open, .b-nav-dark.is-open, .b-nav-cream.is-open { --text: #1d1d1f; --text2: #6e6e73; --nav-link: #1d1d1f; --fill: rgba(0,0,0,.06); --sep: rgba(0,0,0,.08); background: #f4efe6; }
  .b-nav.is-open .b-nav-links, .b-nav-dark.is-open .b-nav-links, .b-nav-cream.is-open .b-nav-links { background: #f4efe6; max-height: calc(100svh - 52px); overflow-y: auto; padding: 4px 0 24px; }
  .b-nav-dark.is-open .b-logo.on-dark { color: #1d1d1f; } .b-nav-dark.is-open .b-logo.on-dark .b-logo-dot { background: #5856d6; }
  .b-nav-dark.is-open .b-nav-burger { background: rgba(0,0,0,.06); color: #1d1d1f; }
  .b-nav.is-open .b-nav-links .b-dd { width: 100%; }
  .b-nav.is-open .b-nav-links .b-dd-btn { cursor: default; height: auto; padding: 14px 20px 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a1a1a6; }
  .b-nav.is-open .b-dd-btn::after { display: none; }
  .b-nav.is-open .b-dd-panel { display: block; position: static; clip-path: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; transition: none; }
  .b-dd-inn { padding: 0; max-width: none; }
  .b-dd-fot, .b-dd-kort > a, .b-dd-grupper > div, .b-dd-alle { opacity: 1; transform: none; transition: none; }
  .b-dd-kort { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 4px; scroll-padding: 0 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .b-dd-kort::-webkit-scrollbar { display: none; }
  .b-nav.is-open .b-nav-links .b-dd-kort a { flex: none; width: 134px; aspect-ratio: auto; height: 172px; padding: 12px; border-radius: 18px; scroll-snap-align: start; }
  .b-dd-kort .k, .b-dd-kort .l { display: none; }
  .b-dd-kort .n { font-size: 19px; }
  .b-dd-fot { display: none; }
  .b-dd-funk { display: block; }
  .b-dd-grupper { display: block; }
  .b-dd-head { display: none; }
  .b-nav.is-open .b-nav-links .b-dd-grupper a { padding: 10px 20px; font-size: 17px; transform: none !important; color: #1d1d1f !important; }
  .b-dd-vis { display: none; }
  .b-nav.is-open .b-nav-links .b-dd-panel a.b-dd-alle { display: block; margin: 4px 0 0; padding: 10px 20px; font-size: 17px; }
  .b-nav.is-open .b-nav-links > a { padding: 12px 20px; font-size: 17px; color: #1d1d1f; }
  .b-nav.is-open .b-nav-links .b-nav-priser-m { margin: 10px 20px 0; padding: 16px 0 6px; }
  .b-dd-demp { display: none; }
}

.b-innhjelp { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 14px; line-height: 1.45; margin-bottom: 14px; }
.b-innhjelp a { font-weight: 500; }

/* ── Footer ─────────────────────────────────────────────────────── */
.b-footer { background: #1d1d1f; color: #a1a1a6; border-top: 1px solid rgba(255,255,255,.08); padding: 48px 0 40px; font-size: 13px; }
.b-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.b-footer-col { display: flex; flex-direction: column; gap: 10px; }
.b-footer-col b { color: #f5f5f7; font-weight: 600; }
.b-footer-col a { color: #a1a1a6; }
@media (max-width: 899px) { .b-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .b-footer-grid { grid-template-columns: 1fr; } }

/* ── Bevegelse ──────────────────────────────────────────────────── */
@keyframes b-spin { to { transform: rotate(360deg); } }
@keyframes b-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes b-up { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes b-floatA { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(-4deg); } }
@keyframes b-floatB { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes b-floatC { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes b-glow { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .b *, .b *::before, .b *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Innholdssider (typesider, juridisk, priser) ────────────────── */
.b-prose { padding: 64px 0 96px; }
.b-prose h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; margin-bottom: 12px; }
.b-prose h1 em { font-style: normal; color: var(--accent-text); }
.b-prose h2 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: 48px 0 12px; }
.b-prose h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; margin: 28px 0 6px; }
.b-prose p, .b-prose li { font-size: 17px; line-height: 1.6; color: var(--text2); }
.b-prose p strong, .b-prose li strong { color: var(--text); font-weight: 600; }
.b-prose .lead { font-size: 21px; line-height: 1.4; margin-bottom: 20px; }
.b-prose ul, .b-prose ol { padding-left: 22px; margin: 8px 0 16px; } .b-prose li { margin: 6px 0; }
.b-prose .updated { font-size: 13px; color: var(--text3); margin-bottom: 32px; }
.b-prose .b-card { margin: 32px 0; }
.b-cta-box { text-align: center; padding: 32px 24px; margin-top: 48px; }
.b-cta-box h2 { margin: 0 0 8px; font-size: 24px; }
@media (max-width: 599px) { .b-prose { padding: 40px 0 64px; } .b-prose h2 { margin-top: 36px; } }

/* ── Auth (registrering, innlogging …) ──────────────────────────── */
.b-auth { display: flex; align-items: flex-start; justify-content: center; padding: 96px 20px 120px; min-height: 70vh; }
.b-auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.b-auth-card h1 { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; text-align: center; }
.b-auth-card .sub { font-size: 15px; color: var(--text2); text-align: center; margin-top: -6px; }
.b-auth-card form { display: flex; flex-direction: column; gap: 14px; }
.b-auth-card .b-input { background: var(--card); box-shadow: inset 0 0 0 1px var(--sep); }
.b-auth-foot { text-align: center; font-size: 15px; color: var(--text2); margin-top: 6px; }
.b-divider { display: flex; align-items: center; gap: 12px; color: var(--text3); font-size: 13px; }
.b-divider::before, .b-divider::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
.b-google, a.b-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border-radius: 980px; background: var(--card); box-shadow: inset 0 0 0 1px var(--sep); color: var(--text); font-size: 17px; text-decoration: none !important; transition: background .15s; }
.b-google:hover, a.b-google:hover { background: var(--card2); }
.b-error { font-size: 13px; color: var(--err); }
/* Kapsel-linje (tavle 20a): informasjon, ikke samtykke */
.b-cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1040;   /* under dialoger og ark (1050), over sider, menyer og tilbakemeldingsfanen (900) */ background: var(--card); color: var(--text); border-radius: 16px; padding: 12px 14px 12px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: 0 12px 40px rgba(0,0,0,.18), inset 0 0 0 1px var(--sep); font-size: 14px; line-height: 1.45; }
.b-cookie > span { flex: 1; min-width: 200px; }
.b-cookie a { color: var(--accent-text); }
@media (min-width: 900px) { .b-cookie { left: auto; right: 24px; bottom: 24px; max-width: 560px; } }
@media (max-width: 599px) { .b-cookie { left: 12px; right: 12px; bottom: 12px; } }
.b-cookie.is-kort { left: 50%; right: auto; bottom: 20px; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); max-width: none; display: block; padding: 22px 22px 18px; text-align: center; animation: b-cookie-inn .4s cubic-bezier(.2,.8,.2,1) both; }
.b-cookie.is-kort > b { display: block; font-size: 17px; letter-spacing: -.01em; margin-bottom: 6px; }
.b-cookie.is-kort > p { margin: 0 0 16px; color: var(--text2); }
.b-cookie.is-kort .b-cookie-knapper { display: grid; gap: 8px; }
.b-cookie.is-kort .b-btn { width: 100%; }
@keyframes b-cookie-inn { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 599px) { .b-cookie.is-kort { left: 12px; right: 12px; bottom: 12px; width: auto; transform: none; } @keyframes b-cookie-inn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } } }
@media (prefers-reduced-motion: reduce) { .b-cookie.is-kort { animation: none; } }
.b-error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 48px 20px; }

.b-prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.b-prose th, .b-prose td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--sep); vertical-align: top; color: var(--text2); }
.b-prose th { color: var(--text); font-weight: 600; border-top: 0; }
.b-prose .table-responsive { overflow-x: auto; }
.b-prose code { font-size: 14px; background: var(--fill); padding: 2px 6px; border-radius: 6px; color: var(--text); }

/* ── Admin (design 2.0): bunnfaner + dashbord ───────────────────── */
.b-tabs { display: none; }
@media (max-width: 599px) {
  .b-nav-crumb, .b-nav-guest { display: none; }
  .b-has-tabs { padding-bottom: 76px; }
  .b-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--nav); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--sep); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .b-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--text3); text-decoration: none !important; }
  .b-tabs a.is-on { color: var(--accent-text); }
}
.b-dash { padding: 28px 0 64px; }
.b-dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.b-dash-head .kicker { font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 8px; }
.b-dash-head h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.b-dash-head .sub { font-size: 15px; color: var(--text2); margin-top: 6px; }
.b-dash-head .sub a { color: var(--text2); }
.b-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1200px) { .b-dash-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.b-dash-main, .b-dash-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.b-guide { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--ok-tint); border-radius: 16px; padding: 12px 16px 12px 18px; }
.b-guide b { font-size: 15px; font-weight: 600; }
.b-guide .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.b-guide .chips a { display: inline-flex; align-items: center; gap: 4px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 600; padding: 7px 8px 7px 14px; border-radius: 980px; text-decoration: none !important; box-shadow: var(--shadow); }
.b-guide .done { margin-left: auto; font-size: 12px; color: var(--text2); }
.b-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; }
@media (max-width: 899px) { .b-status { grid-template-columns: 1fr; } }
.b-status .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.b-status .big b { font-size: clamp(44px, 6vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.b-status .big span { font-size: 17px; color: var(--text2); }
.b-status .acts { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 220px; }
.b-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.b-mod { display: flex; flex-direction: column; gap: 12px; background: var(--card); border-radius: 22px; padding: 20px 22px; min-height: 160px; color: var(--text); text-decoration: none !important; transition: transform .22s cubic-bezier(.2,.8,.2,1); }
a.b-mod, a.b-mod:hover { color: var(--text); text-decoration: none; }
a.b-mod:hover, .b-mod.is-link:hover { transform: translateY(-2px); }
.b-mod.is-link { position: relative; }
.b-mod .b-mod-link { color: var(--text2); text-decoration: none; }
.b-mod .b-mod-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.b-mod.is-link .switchrow { position: relative; z-index: 1; align-self: flex-start; cursor: pointer; }
.b-mod.is-off, .b-mod.is-locked { background: var(--card2); box-shadow: inset 0 0 0 1px var(--sep); }
.b-mod .head { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text2); }
.b-mod .head .b-ico-circle { width: 28px; height: 28px; }
.b-mod .head .right { margin-left: auto; font-size: 13px; color: var(--text3); }
.b-mod .big { margin-top: auto; font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; }
.b-mod .big small { font-size: 15px; font-weight: 400; color: var(--text2); letter-spacing: 0; }
.b-mod .idle { margin-top: auto; font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.b-mod .sub { font-size: 15px; line-height: 1.4; color: var(--text2); }
.b-mod .desc { margin-top: auto; font-size: 15px; line-height: 1.4; color: var(--text2); }
.b-mod .switchrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.b-res { display: flex; flex-direction: column; gap: 10px; }
.b-res .head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.b-res .head .b-ico { color: var(--accent-text); }
.b-res .num { display: flex; align-items: baseline; gap: 8px; }
.b-res .num b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.b-res .num span { font-size: 13px; color: var(--text2); }
.b-user { border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.b-user:hover { background: var(--fill2); }
.b-avatars { display: flex; }
.b-avatars .b-avatar { border: 2px solid var(--card); margin-left: -8px; width: 32px; height: 32px; font-size: 11px; color: #fff; }
.b-avatars .b-avatar:first-child { margin-left: 0; }

/* ═══ Runde 2 (tavle 16): admin-komponenter ═══════════════════════ */

/* Sidehode for admin-sider: tilbake-lenke, tittel, undertekst, handlinger */
.b-page { padding: 24px 0 64px; }
.b-back, a.b-back { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--text2); text-decoration: none !important; margin-bottom: 14px; }
.b-back .b-ico { transform: rotate(180deg); }
.b-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.b-page-head h1 { font-size: clamp(28px, 4vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.b-page-head .sub { font-size: 15px; color: var(--text2); margin-top: 4px; }
.b-page-head .sub b { color: var(--text); font-weight: 600; }
.b-actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.b-btn-dark, a.b-btn-dark { background: var(--text); color: var(--bg); }
.b-btn-dark:hover, a.b-btn-dark:hover { background: var(--text); opacity: .88; }
.b-btn-icon { width: 44px; padding: 0; } .b-btn-icon.b-btn-sm { width: 34px; }
.b-only-mobile { display: none !important; }
@media (max-width: 599px) { .b-only-desktop { display: none !important; } .b-only-mobile { display: inline-flex !important; } }

/* Funksjons-sidehode (16g): ikon i aksent-tint når på, grå når av */
.b-modhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.b-modhead .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.b-modhead.is-off .ico { background: var(--fill); color: var(--text3); }
.b-modhead .txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.b-modhead h1 { font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.b-modhead .sub { font-size: 14px; color: var(--text2); }
.b-modhead .toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); }

/* Segmentfilter med tall + søk + sortering */
.b-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.b-filters .b-search { flex: 1; min-width: 200px; }
.b-segment .n { font-size: 12px; color: var(--text3); margin-left: 5px; font-variant-numeric: tabular-nums; }
.b-segment > .is-on .n { color: var(--text2); }
.b-segment-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.b-segment-scroll::-webkit-scrollbar { display: none; }
.b-select-inline { border: 0; background: var(--fill); color: var(--text); font-size: 14px; padding: 8px 30px 8px 12px; border-radius: 10px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }

/* Massevalg-linje (16a): erstatter verktøylinjen når noe er valgt */
.b-bulk { display: none; align-items: center; gap: 14px; background: var(--accent); color: #fff; border-radius: 14px; padding: 10px 16px; font-size: 14px; margin-bottom: 14px; }
.b-bulk.is-on { display: flex; }
.b-bulk b { font-weight: 600; margin-right: 6px; }
.b-bulk button, .b-bulk a { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #fff; font: inherit; cursor: pointer; padding: 6px 8px; border-radius: 8px; text-decoration: none !important; }
.b-bulk button:hover, .b-bulk a:hover { background: rgba(255,255,255,.14); }
.b-bulk .sp { flex: 1; }
.b-bulk .x { margin-left: auto; }
@media (max-width: 599px) {
  .b-bulk.is-on { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 61; box-shadow: var(--float); }
  .b-bulk button span, .b-bulk a span { display: none; }
}

/* Datatabell (gjester, import, påmelding) */
.b-table-wrap { background: var(--card); border-radius: 22px; overflow: hidden; }
.b-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.b-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); padding: 12px 14px; border-bottom: 1px solid var(--sep); white-space: nowrap; }
.b-table td { padding: 12px 14px; border-top: 1px solid var(--sep); vertical-align: middle; }
.b-table tr:first-child td { border-top: 0; }
.b-table tr.is-sel td { background: var(--accent-tint); }
.b-table tr.is-sub td { background: var(--card2); }
.b-table tr:hover td { background: var(--card2); }
.b-table tr.is-sel:hover td { background: var(--accent-tint); }
.b-table .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b-table .who .b-list-main b { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.b-table .st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.b-table .st.yes { color: var(--ok); } .b-table .st.no { color: var(--text2); } .b-table .st.maybe { color: var(--warn); } .b-table .st.none { color: var(--text3); } .b-table .st.unsent { color: var(--warn); }
.b-table .muted { color: var(--text2); font-size: 14px; }
.b-table td.chev { width: 30px; color: var(--text3); text-align: right; }
.b-table td.cb, .b-table th.cb { width: 36px; padding-right: 0; }
.b-table-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: 13px; color: var(--text3); border-top: 1px solid var(--sep); flex-wrap: wrap; }
.b-cb { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--fill2); display: inline-grid; place-items: center; color: #fff; cursor: pointer; background: transparent; transition: background .18s, box-shadow .18s; }
.b-cb input { position: absolute; opacity: 0; width: 0; height: 0; }
.b-cb .b-ico { opacity: 0; transition: opacity .18s; }
.b-cb:has(input:checked) { background: var(--accent); box-shadow: none; } .b-cb:has(input:checked) .b-ico { opacity: 1; }
.b-cb.is-on { background: var(--accent); box-shadow: none; } .b-cb.is-on .b-ico { opacity: 1; }
.b-pill-err { background: var(--err-tint); color: var(--err); }
.b-pill-sm { font-size: 12px; padding: 2px 8px; font-weight: 600; }
@media (max-width: 699px) {
  .b-table .hide-m, .b-table th.hide-m { display: none; }
  .b-table td, .b-table th { padding: 12px 10px; }
  .b-table-wrap { border-radius: 18px; }
}

/* Kanalvelger (16b) */
.b-chan { display: flex; flex-direction: column; gap: 6px; }
.b-chan label { display: flex; align-items: center; gap: 12px; background: var(--card2); border-radius: 12px; padding: 0 14px; min-height: 52px; cursor: pointer; }
.b-chan label input { position: absolute; opacity: 0; width: 0; height: 0; }
.b-chan .txt { flex: 1; display: flex; flex-direction: column; }
.b-chan .txt b { font-weight: 500; font-size: 15px; } .b-chan .txt span { font-size: 13px; color: var(--text2); }
.b-chan .r { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--fill2); display: grid; place-items: center; color: #fff; flex: none; }
.b-chan .r .b-ico { opacity: 0; }
.b-chan label:has(input:checked) .r { background: var(--accent); box-shadow: none; } .b-chan label:has(input:checked) .r .b-ico { opacity: 1; }
.b-chan label.is-dis { opacity: .45; cursor: default; }
.b-on-card .b-chan label { background: var(--card2); }

/* Kredittnotis (16c): står alltid rett over knappen den forklarer */
.b-note { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; background: var(--accent-tint); color: var(--accent-text); }
.b-note .b-ico { flex: none; margin-top: 1px; }
.b-note-warn { background: var(--warn-tint); color: var(--warn); }
.b-note-err { background: var(--err-tint); color: var(--err); }
.b-note-ok { background: var(--ok-tint); color: var(--ok); }
.b-note a { color: inherit; text-decoration: underline; }

/* Kvitteringstall (16f) og oppgavekort (16i) */
.b-receipt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b-receipt > div { background: var(--card2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.b-receipt b { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.b-receipt span { font-size: 13px; color: var(--text2); }
.b-tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 18px; }
.b-task, a.b-task { background: var(--card); color: var(--text); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none !important; }
.b-task.is-primary, a.b-task.is-primary { background: var(--accent); color: #fff; }
.b-task .n { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.b-task .l { font-size: 14px; font-weight: 500; }
.b-task .s { font-size: 12px; opacity: .75; }

/* Kolonnekobling (16e) */
.b-maprow { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; gap: 8px; font-size: 14px; }
.b-maprow .from { color: var(--text2); }
.b-maprow .arrow { color: var(--text3); }
.b-maprow.is-skip .from { color: var(--text3); }

/* Detaljrader (gjestedetalj) */
.b-kv { display: flex; align-items: center; gap: 14px; padding: 13px 20px; min-height: 52px; }
.b-kv + .b-kv { border-top: 1px solid var(--sep); }
.b-kv .k { width: 120px; flex: none; font-size: 14px; color: var(--text2); }
.b-kv .v { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.b-kv .a { margin-left: auto; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.b-kv .a .b-ico { color: var(--text3); }
@media (max-width: 599px) { .b-kv { flex-wrap: wrap; } .b-kv .k { width: 100%; } }

/* Stegindikator (import) */
.b-stepper { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text2); margin-bottom: 18px; flex-wrap: wrap; }
.b-stepper span { display: inline-flex; align-items: center; gap: 8px; }
.b-stepper i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--fill2); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; }
.b-stepper .is-done i { background: var(--ok); } .b-stepper .is-on { color: var(--text); font-weight: 600; } .b-stepper .is-on i { background: var(--accent); }
.b-drop { border: 1.5px dashed var(--fill2); border-radius: 16px; padding: 32px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text2); cursor: pointer; }
.b-drop:hover, .b-drop.is-over { background: var(--accent-tint); border-color: var(--accent); }
.b-drop b { color: var(--text); font-weight: 600; font-size: 17px; }

/* Fare-sone (16n) */
.b-danger { background: var(--err-tint); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.b-danger .txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.b-danger .txt b { color: var(--err); font-weight: 600; font-size: 15px; }
.b-danger .txt span { font-size: 13px; color: var(--text2); }
.b-btn-err, a.b-btn-err { background: var(--err); color: #fff; }
.b-dialog .b-input { text-align: center; }

/* Ark fra bunnen (mobil-handlinger) */
.b-sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1050; display: flex; align-items: flex-end; justify-content: center; animation: b-fade .2s; }
.b-sheet { background: var(--card); color: var(--text); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); box-shadow: var(--float); animation: b-sheet-up .32s cubic-bezier(.2,.8,.2,1); }
.b-sheet .grip { width: 36px; height: 5px; border-radius: 3px; background: var(--fill2); margin: 0 auto 10px; }
.b-sheet h4 { font-size: 15px; font-weight: 600; text-align: center; padding: 4px 0 10px; color: var(--text2); }
.b-sheet a, .b-sheet button { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; padding: 14px 12px; border-radius: 12px; text-align: left; cursor: pointer; text-decoration: none !important; }
.b-sheet a:hover, .b-sheet button:hover { background: var(--card2); }
.b-sheet .meta { margin-left: auto; font-size: 13px; color: var(--text3); }
.b-sheet .cancel { justify-content: center; font-weight: 600; color: var(--accent-text); margin-top: 6px; background: var(--card2); }
.b-sheet .is-danger { color: var(--err); }
@media (min-width: 600px) { .b-sheet-backdrop { align-items: center; padding: 20px; } .b-sheet { border-radius: 22px; } }
@keyframes b-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes b-sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Skjema-kort (legg til gjest m.m.) */
.b-form { display: flex; flex-direction: column; gap: 14px; }
.b-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 599px) { .b-form-2 { grid-template-columns: 1fr; } }
.b-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.b-sub-list { display: flex; flex-direction: column; gap: 8px; }
.b-sub-list .row { display: flex; align-items: center; gap: 8px; }
.b-sub-list .row .b-input { flex: 1; }
.b-form h3 { font-size: 15px; font-weight: 600; margin-top: 8px; }
.b-form .hint { font-size: 13px; color: var(--text3); }
.b-input-group .b-prefix { padding: 0 0 0 16px; font-size: 15px; color: var(--text2); white-space: nowrap; }
.b-input-group .b-select { background: transparent; box-shadow: none; width: auto; min-width: 0; padding-right: 8px; }

/* Rutenett (minner) */
.b-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.b-photo-grid > * { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--fill); position: relative; }
.b-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
/* Mobil: avkryssing vises bare i velg-modus («Velg» øverst) */
@media (max-width: 599px) {
  .b-table td.cb, .b-table th.cb { display: none; }
  body.b-select-mode .b-table td.cb, body.b-select-mode .b-table th.cb { display: table-cell; }
}
.b-segment > button, .b-segment > a { white-space: nowrap; }

/* ═══ Funksjonssider (tavle 11) ═════════════════════════════════════ */
.b [hidden] { display: none !important; }
.b-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 899px) { .b-settings-grid { grid-template-columns: 1fr; } }
.b-setting-row .b-label .sub { display: block; font-size: 13px; color: var(--text2); }
/* Autolagring (admin/settings): status rett etter feltet */
/* Innstillinger (04.10.2026): innholdsliste til venstre på PC, knapperad på mobil; innholdet i lesbar bredde så
   feltene står nær etikettene og «Tilbakemelding»-fanen ikke dekker dem */
.b-innst { display: grid; grid-template-columns: 190px minmax(0, 760px); gap: 28px; align-items: start; }
.b-innst-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 72px; }
.b-innst-nav a { padding: 8px 12px; border-radius: 10px; color: var(--text2); font-size: 15px; text-decoration: none !important; }
.b-innst-nav a:hover { background: var(--card2); color: var(--text); }
.b-innst-nav a.is-on { background: var(--fill); color: var(--text); font-weight: 600; }
.b-innst-nav a.ut { font-size: 14px; padding-top: 6px; padding-bottom: 6px; }
.b-innst-andre { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); margin: 14px 12px 4px; }
.b-innst-innhold > section { scroll-margin-top: 76px; }
.b-innst-innhold .b-h3 { margin-bottom: 4px; }
.b-innst .b-setting-row .sub { max-width: 46ch; }
.b-ctl-bred { flex: 1; max-width: 320px; }
.b-setting-row.b-under { padding-left: 18px; font-size: 16px; }
.b-del-rad { background: var(--card2); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1.4fr 1fr 90px; gap: 8px; }
.b-del-rad .b-del-sted { grid-column: 1 / 2; } .b-del-rad .b-del-adr { grid-column: 2 / -1; }
.b-flere-felt { border-top: 1px solid var(--sep); }
.b-flere-felt > summary { cursor: pointer; padding: 12px 0; font-size: 15px; color: var(--accent-text); list-style: none; }
.b-flere-felt > summary::-webkit-details-marker { display: none; }
.b-flere-felt[open] > summary { color: var(--text2); }
.b-skjema-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 22px; align-items: start; }
.b-skjema-mini { background: var(--card2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; position: sticky; top: 84px; }
.b-skjema-mini > b { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); margin-bottom: 2px; }
.b-skjema-mini .q { background: var(--card); border: 1px solid var(--sep); border-radius: 8px; padding: 6px 9px; color: var(--text2); }
.b-skjema-mini .valg { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 8px; }
.b-skjema-mini .valg i { font-style: normal; font-size: 12px; border-radius: 980px; padding: 2px 8px; background: var(--fill); color: var(--text2); }
@media (max-width: 899px) {
  .b-innst { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .b-innst-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .b-innst-nav a { padding: 7px 12px; background: var(--card); font-size: 14px; }
  .b-innst-nav a.ut, .b-innst-andre { display: none; }
  .b-skjema-grid { grid-template-columns: minmax(0, 1fr); }
  .b-skjema-mini { position: static; }
}
@media (max-width: 599px) {
  .b-del-rad { grid-template-columns: 1fr 1fr; } .b-del-rad > input:nth-of-type(2) { grid-column: 1 / -1; }
  .b-del-rad .b-del-sted, .b-del-rad .b-del-adr { grid-column: 1 / -1; }
  .b-innst .b-setting-row:has(.b-ctl-bred) { flex-wrap: wrap; } .b-ctl-bred { max-width: none; flex-basis: 100%; }
}
/* Invitasjonen (egen side fra 04.10.2026): standard/egen tekst per kanal, brikker som setter inn plassholdere */
.b-inv-topp { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b-inv-egen { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.b-inv-standard { margin-top: 6px; }
.b-inv-boble { margin: 10px 0 6px; max-width: 420px; }
.b-brikker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.b-brikker .b-brikke { font: inherit; font-size: 13px; line-height: 1.3; border: 1px solid var(--sep); background: var(--card2); color: var(--text); border-radius: 980px; padding: 4px 10px; cursor: pointer; }
.b-brikker .b-brikke:hover { background: var(--fill); }
/* Tema-siden: bildet øverst på siden (flyttet fra Innstillinger) */
.b-tema-bilde { margin-bottom: 18px; padding-top: 14px; padding-bottom: 14px; }
.b-tema-bilde-rad { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.b-tema-bilde-rad .txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; font-size: 16px; }
.b-tema-bilde-rad .txt .sub { font-size: 13px; color: var(--text2); }
.b-tema-bilde-rad .b-btn { font-size: 14px; }
.b-tema-bilde .b-fokus-rad { margin-top: 14px; border-top: 1px solid var(--sep); padding-top: 14px; }
.b-autosave { font-size: 12px; color: var(--text2); min-height: 0; }
.b-autosave:empty { display: none; }
.b-setting-row .b-label > .b-autosave { display: block; margin-top: 2px; }
.b-autosave.is-ok { color: var(--ok); }
.b-autosave.is-err { color: var(--err); display: block; flex-basis: 100%; }
.b-setting-row .ctl:has(.b-autosave.is-err) { flex-wrap: wrap; }
.b-field .b-autosave { display: block; margin-top: 4px; }
.b-input[aria-invalid], .b-textarea[aria-invalid] { box-shadow: 0 0 0 1.5px var(--err); }
.b-forh { border: 0; border-radius: 18px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--card); color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.b-forh::backdrop { background: rgba(0,0,0,.45); }
.b-forh-topp { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--sep); flex-wrap: wrap; }
.b-forh-innhold { padding: 16px; overflow: auto; max-height: calc(100vh - 170px); }
.b-forh-epost { width: 100%; height: 70vh; border: 1px solid var(--sep); border-radius: 12px; background: #fff; }
.b-forh-sms { max-width: 320px; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--fill); font-size: 16px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.b-forh-fot { margin: 0; padding: 0 16px 14px; color: var(--text2); }
/* Låste verdier vises som tekst, ikke som grå felt man prøver å klikke i */
.b-laast { display: inline-flex; gap: 10px; align-items: baseline; font-size: 17px; }
.b-laast-hvorfor { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--accent-text); cursor: pointer; }
.b-lesevisning { white-space: pre-wrap; padding: 12px 14px; border-radius: 12px; background: var(--fill); color: var(--text2); font-size: 15px; min-height: 60px; }

.b-setting-row .ctl { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.b-setting-row .ctl .b-select-inline { max-width: 220px; }
.b-setting-row .b-input, .b-setting-row .b-textarea { font-size: 15px; min-height: 42px; padding: 9px 12px; }
.b-settings-block { padding: 12px 0; }
.b-settings-block + .b-settings-block { border-top: 1px solid var(--sep); }
.b-settings-block h4 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.b-group-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px 6px; }
.b-group-head b { font-size: 15px; font-weight: 600; } .b-group-head span { font-size: 13px; color: var(--text3); }
.b-group-add { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; font-size: 15px; color: var(--accent-text); border-top: 1px solid var(--sep); text-decoration: none !important; }
.b-thumb { width: 44px; height: 44px; border-radius: 12px; background: var(--fill); display: inline-grid; place-items: center; color: var(--text2); font-size: 13px; font-weight: 600; flex: none; overflow: hidden; }
.b-thumb img { width: 100%; height: 100%; object-fit: cover; }
.b-thumb-time { width: 58px; height: 30px; border-radius: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.b-thumb-time.is-now { background: var(--accent); color: #fff; }
.b-thumb-av { border-radius: 50%; width: 36px; height: 36px; }
.b-row-acts { display: inline-flex; gap: 2px; margin-left: auto; align-items: center; flex: none; }
.b-icon-btn, a.b-icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--text3); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none !important; }
.b-icon-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }
.b-icon-btn:hover { background: var(--fill); color: var(--text); }
.b-icon-btn.is-danger:hover { background: var(--err-tint); color: var(--err); }
.b-feed .b-list-row { align-items: flex-start; }
.b-feed p { font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; margin-top: 2px; }
.b-feed .is-pinned { box-shadow: inset 3px 0 0 var(--accent); }
.b-feed .meta { font-size: 13px; color: var(--text2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.b-composer { display: flex; flex-direction: column; gap: 10px; }
.b-composer .b-textarea { min-height: 80px; }
.b-composer .foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b-checkrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.b-checkrow .b-cb { width: 22px; height: 22px; }
.b-dialog-wide { max-width: 980px; text-align: left; padding: 0; overflow: hidden; gap: 0; }
.b-dialog-wide .head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--sep); flex-wrap: wrap; }
.b-dialog-wide .head h4 { margin-right: auto; }
.b-dialog-wide iframe { width: 100%; height: 66vh; border: 0; display: block; background: #fff; }
.b-dialog-wide .foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--sep); justify-content: flex-end; }
.b-variant { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 10px 5px 6px; border-radius: 980px; background: var(--fill); border: 0; color: var(--text); cursor: pointer; font-family: inherit; }
.b-variant.is-on { box-shadow: 0 0 0 2px var(--accent); }
.b-variant i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.b-photo-tile { position: relative; cursor: pointer; }
.b-photo-tile .by { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); display: flex; justify-content: space-between; gap: 6px; }
.b-photo-tile .by span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-photo-tile .badge { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 980px; background: rgba(0,0,0,.55); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.b-photo-tile .del { position: absolute; top: 4px; right: 4px; opacity: 0; transition: opacity .15s; }
.b-photo-tile .del button { background: rgba(0,0,0,.55); color: #fff; }
.b-photo-tile:hover .del, .b-photo-tile:focus-within .del { opacity: 1; }
.b-photo-tile.is-text { display: flex; align-items: center; justify-content: center; padding: 12px; font-size: 13px; color: var(--text2); text-align: center; background: var(--card); }
.b-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 1200; }
.b-lightbox.is-on { display: flex; }
.b-lightbox img, .b-lightbox video { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.b-lightbox .close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; cursor: pointer; }
.b-hero-thumb { width: 96px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.b-fokus-rad { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 16px; font-size: 17px; }
.b-fokus-rad .b-label .sub { display: block; font-size: 13px; color: var(--text2); }
.b-fokus { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.b-fokus-bilde { position: relative; flex: none; align-self: flex-start; line-height: 0; border-radius: 12px; cursor: crosshair; touch-action: none; user-select: none; }
.b-fokus-bilde:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.b-fokus-bilde img { display: block; max-width: min(420px, calc(100vw - 64px)); max-height: 260px; width: auto; height: auto; border-radius: 12px; pointer-events: none; }   /* ingen %-bredde: da blir rammen bredere enn bildet */
.b-fokus-prikk { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 10px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; transition: left .08s, top .08s; }
.b-fokus-prikk::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #fff; }
.b-fokus-vis { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.b-fokus-vis figure { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text2); text-align: center; }
.b-fokus-vis figcaption { display: flex; flex-direction: column; line-height: 1.3; }
.b-fokus-vis figcaption b { font-weight: 600; color: var(--text); }
.b-fokus-hel { margin: -4px 0 0; font-size: 13px; color: var(--text2); }
.b-fokus-hel:empty { display: none; }
.b-fokus-flate { background-size: cover; background-repeat: no-repeat; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--sep); }
.b-qr { width: 160px; height: 160px; border-radius: 12px; background: #fff; padding: 8px; }
.b-code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--fill); padding: 2px 7px; border-radius: 6px; }
.b-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 599px) { .b-stat-row { grid-template-columns: 1fr; } }
.b-stat-row > div { background: var(--card); border-radius: 16px; padding: 16px 18px; }
.b-stat-row b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.b-stat-row span { font-size: 13px; color: var(--text2); }
.b-ok { color: var(--ok); } .b-err { color: var(--err); } .b-warn { color: var(--warn); }

@media (max-width: 599px) {
  .b-setting-row { flex-wrap: wrap; }
  .b-setting-row .ctl:has(.b-input, .b-textarea, .b-select-inline) { flex: 1 1 100%; }
  .b-setting-row .ctl:has(.b-input, .b-textarea) .b-input { flex: 1; }
}

/* ═══ Konto og butikk (tavle 13) ═════════════════════════════════════ */
.b-konto { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.b-konto-menu { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 66px; }
.b-konto-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text2); font-size: 15px; text-decoration: none !important; }
.b-konto-menu a:hover { background: var(--card2); color: var(--text); }
.b-konto-menu a.is-on { background: var(--fill); color: var(--text); font-weight: 600; }
.b-konto-menu a .n { margin-left: auto; }
.b-konto-menu hr { border: 0; border-top: 1px solid var(--sep); margin: 6px 12px; }
@media (max-width: 899px) { .b-konto { grid-template-columns: 1fr; gap: 14px; } .b-konto-menu { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; } .b-konto-menu hr { display: none; } .b-konto-menu a { padding: 7px 12px; background: var(--card); font-size: 14px; } }
.b-konto-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.b-konto-head .b-avatar { width: 56px; height: 56px; font-size: 20px; }
.b-konto-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.b-konto-head .sub { font-size: 14px; color: var(--text2); }
.b-section-title { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text3); margin: 20px 0 8px; scroll-margin-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.b-section-title:first-child { margin-top: 0; }
.b-thread { display: flex; flex-direction: column; gap: 8px; }
.b-bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; background: var(--card); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; }
.b-bubble.is-mine { align-self: flex-end; background: var(--accent); color: #fff; }
.b-bubble.is-new { box-shadow: 0 0 0 1.5px var(--accent); }
.b-bubble .who { display: block; font-size: 12px; opacity: .7; margin-top: 4px; white-space: nowrap; }
.b-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.b-pack { background: var(--card); border-radius: 18px; padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.b-pack.is-best { box-shadow: 0 0 0 2px var(--accent); }
.b-pack .tag { position: absolute; top: -10px; left: 14px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 980px; background: var(--accent); color: #fff; }
.b-pack .n { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.b-pack .n small { font-size: 14px; font-weight: 400; color: var(--text2); letter-spacing: 0; margin-left: 4px; }
.b-pack .price { font-size: 21px; font-weight: 600; margin-top: 6px; }
.b-pack .price s { font-size: 14px; color: var(--text3); font-weight: 400; margin-right: 6px; }
.b-pack .per { font-size: 13px; color: var(--text2); margin-bottom: 10px; }
.b-pack .b-btn { margin-top: auto; }
.b-btn-vipps, a.b-btn-vipps { background: #ff5b24; color: #fff; font-weight: 600; }
.b-btn-vipps:hover, a.b-btn-vipps:hover { background: #e94f1c; }
.b-plan { background: var(--card); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.b-plan.is-best { box-shadow: 0 0 0 2px var(--accent); }
.b-plan .price { font-size: 26px; font-weight: 600; letter-spacing: -.03em; } .b-plan .price small { font-size: 14px; font-weight: 400; color: var(--text2); }
.b-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.b-sum { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 8px 0; }
.b-sum + .b-sum { border-top: 1px solid var(--sep); }
.b-sum.is-total { font-size: 19px; font-weight: 600; }
.b-sum .k { color: var(--text2); }
.b-ok-big { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.b-err-big { background: var(--err-tint); color: var(--err); }
.b-code-input { text-align: center; font-size: 28px; letter-spacing: .4em; font-variant-numeric: tabular-nums; }

/* Tilbakemeldings-fane (fast nederst til høyre) */
.b-fb { position: fixed; right: 20px; bottom: 20px; z-index: 900; }
.b-fb-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--text); border: 0; border-radius: 980px; padding: 10px 16px; font: 500 14px/1 inherit; box-shadow: var(--float); cursor: pointer; }
.b-fb-panel { position: absolute; right: 0; bottom: 0; width: 340px; max-width: calc(100vw - 40px); background: var(--card); border-radius: 22px; box-shadow: var(--float); padding: 18px; display: flex; flex-direction: column; gap: 10px; animation: b-in .25s cubic-bezier(.2,.8,.2,1); }
.b-fb-panel h4 { font-size: 17px; font-weight: 600; }
@media (max-width: 599px) { .b-has-tabs .b-fb { bottom: calc(84px + env(safe-area-inset-bottom)); right: 12px; } .b-fb-btn span { display: none; } .b-fb-btn { padding: 12px; } }

/* Knapp som jobber (f.eks. pakker en zip): dempet, med pulserende ikon */
.b-btn.is-busy { opacity: .7; cursor: progress; }
.b-btn.is-busy .ik { animation: b-puls 1s ease-in-out infinite; }
@keyframes b-puls { 50% { opacity: .3; } }
