/* ═══ V8.32 🔨 — Flöde: Doseringsguiden + Kurplaneraren (en fråga i taget, svaret byggs medan du går) ═══
   Laddas bara av dosering.html och kalkylator.html. Samma mörka lava-tema som resten av butiken (shared.css-tokens). */
.fl { max-width: 1120px; margin: 0 auto; }
.fl-hero { display: flex; align-items: end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 18px 0 6px; }
.fl-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 58px); line-height: .98; font-weight: 900; letter-spacing: -.02em; margin-top: 8px; }
.fl-hero p { margin-top: 12px; max-width: 620px; font-size: clamp(15px, 1.5vw, 17px); color: var(--muted); line-height: 1.55; }
.fl-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--control); border: 1px solid var(--line); flex: none; }
.fl-switch a { padding: 10px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 800; color: var(--muted); white-space: nowrap; transition: color .18s var(--ease), background .18s var(--ease); }
.fl-switch a:hover { color: var(--text); }
.fl-switch a.on { background: var(--lava); color: var(--bg); }

/* stegräknare */
.fl-prog { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 26px 0 18px; }
.fl-prog button { display: flex; flex-direction: column; gap: 8px; text-align: left; background: none; border: 0; padding: 0; color: var(--muted-2); font: 800 12.5px/1.2 var(--font-body); cursor: default; min-width: 0; }
.fl-prog button::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--control); transition: background .3s var(--ease); }
.fl-prog button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-prog button.klar { color: var(--text-2); cursor: pointer; }
.fl-prog button.klar::before { background: rgba(255,122,0,.55); }
.fl-prog button.klar:hover { color: var(--lava-3); }
.fl-prog button.nu { color: var(--text); }
.fl-prog button.nu::before { background: var(--lava); }
.fl-prog em { font-style: normal; color: var(--lava-2); margin-right: 4px; }

/* ett steg i taget */
.fl-step { display: none; }
.fl-step.on { display: block; animation: flIn .32s var(--ease); }
@keyframes flIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fl-step.on { animation: none; } }
.fl-q { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.fl-q h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; outline: none; }
.fl-q p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 680px; }

/* svarskort */
.fl-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.fl-opts.tva { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fl-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 18px 16px; border-radius: 20px; text-align: left;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; min-width: 0;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease); }
.fl-opt:hover { border-color: rgba(255,122,0,.45); transform: translateY(-2px); }
.fl-opt:focus-visible { outline: 2px solid var(--lava-2); outline-offset: 2px; }
.fl-opt.on { border-color: var(--lava-2); background: rgba(255,122,0,.08); box-shadow: inset 0 0 0 1px var(--lava-2); }
.fl-opt.on::after { content: "✓"; position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--lava); color: var(--bg); font: 900 13px/24px var(--font-body); text-align: center; }
.fl-opt[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.fl-opt > i { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(255,122,0,.1); color: var(--lava-3); margin-bottom: 4px; }
.fl-opt > i svg { width: 22px; height: 22px; }
.fl-opt b { font-family: var(--font-display); font-size: 19px; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; padding-right: 26px; overflow-wrap: anywhere; }
.fl-opt small { font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 600; }
.fl-opt .fl-v { font-family: var(--font-display); font-size: 15px; font-weight: 900; color: var(--lava-3); }
.fl-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 800; letter-spacing: .02em; background: var(--control); color: var(--muted); border: 1px solid var(--line); }
.fl-tag.rek { background: rgba(61,220,132,.12); color: #7dedae; border-color: rgba(61,220,132,.3); }
.fl-tag.lava { background: rgba(255,122,0,.12); color: var(--lava-3); border-color: rgba(255,122,0,.3); }
.fl-tag.nej { background: rgba(255,77,77,.1); color: #ff9a9a; border-color: rgba(255,77,77,.3); }

/* chips (frekvens, längd, startdag) */
.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-chip { height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--control); color: #e8e8ea; border: 1px solid var(--line); font: 700 14px/1 var(--font-body); cursor: pointer; white-space: nowrap; transition: border-color .18s var(--ease); }
.fl-chip:hover { border-color: var(--line-strong); }
.fl-chip.on { background: var(--lava); color: var(--bg); border-color: transparent; font-weight: 800; }
.fl-chip small { font-weight: 700; opacity: .7; margin-left: 4px; }

/* fält */
.fl-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fl-f > label, .fl-f > span { font-size: 12.5px; font-weight: 800; color: var(--muted); letter-spacing: .01em; }
.fl-in { position: relative; max-width: 260px; }
.fl-in input { width: 100%; height: 56px; padding: 0 64px 0 16px; border-radius: 14px; background: var(--control); border: 1px solid var(--line-strong); color: var(--text);
  font: 900 24px/1 var(--font-display); outline: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.fl-in input:focus { border-color: var(--lava-2); box-shadow: 0 0 0 3px rgba(255,122,0,.18); }
.fl-in span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 800; color: var(--muted-2); pointer-events: none; }
.fl-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; }
.fl-sok { width: 100%; max-width: 420px; height: 50px; padding: 0 16px; border-radius: 14px; background: var(--control); border: 1px solid var(--line-strong); color: var(--text); font: 700 15px/1 var(--font-body); outline: none; }
.fl-sok:focus { border-color: var(--lava-2); box-shadow: 0 0 0 3px rgba(255,122,0,.18); }
.fl-range { width: 100%; max-width: 420px; accent-color: var(--lava-2); }

/* produktväljaren */
.fl-grp { margin-top: 22px; }
.fl-grp > h3 { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.fl-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.fl-prod .fl-opt { padding: 14px 16px; gap: 4px; border-radius: 16px; }
.fl-prod .fl-opt b { font-size: 16.5px; }
.fl-prod .fl-opt small { font-size: 12.5px; }
.fl-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* knapprad */
.fl-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.fl-nav .btn[disabled] { opacity: .4; pointer-events: none; }
.fl-nav .fl-hint { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.fl-back { background: none; border: 0; color: var(--muted); font: 800 14px/1 var(--font-body); cursor: pointer; padding: 12px 4px; }
.fl-back:hover { color: var(--text); }
@media (max-width: 640px) {
  /* ligger ovanför butikens bottenmeny (fast, ~76 px) */
  .fl-nav { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin: 22px calc(-1 * var(--pad-x)) 0; padding: 14px var(--pad-x) 10px;
    background: linear-gradient(180deg, rgba(11,11,12,0) 0%, rgba(11,11,12,.94) 30%, var(--bg) 100%); flex-wrap: nowrap; }
  .fl-nav .btn { flex: 1; justify-content: center; }
  .fl-nav .fl-hint { display: none; }
}

/* resultat */
.fl-svar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fl-svar button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: var(--r-pill); background: var(--control); border: 1px solid var(--line); color: var(--text-2); font: 700 13px/1 var(--font-body); cursor: pointer; max-width: 100%; }
.fl-svar button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-svar button:hover { border-color: var(--lava-2); color: var(--text); }
.fl-svar button i { font-style: normal; color: var(--muted-2); font-size: 12px; }
.fl-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start; }
.fl-main, .fl-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fl-side { position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 1000px) { .fl-res { grid-template-columns: minmax(0, 1fr); } .fl-side { position: static; } }
.fl-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; min-width: 0; }
.fl-card > h3 { font-family: var(--font-display); font-size: 20px; font-weight: 900; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fl-card > h3 small { font: 700 12.5px/1.3 var(--font-body); color: var(--muted-2); letter-spacing: 0; }
.fl-card > p.fl-not, .fl-not { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 10px; }
.fl-not a, .fl-card p a, .fl-steg a, .fl-chk a { color: var(--lava-3); font-weight: 700; }
.fl-hero-res { background: linear-gradient(160deg, #1d1d20 0%, #101011 100%); border: 1px solid var(--line-strong); border-radius: 26px; padding: 26px 24px 22px; box-shadow: var(--sh-card); min-width: 0; }
.fl-k { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lava-2); }
.fl-big { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.fl-big b { font-family: var(--font-display); font-size: clamp(54px, 9vw, 84px); font-weight: 900; line-height: .9; letter-spacing: -.03em; background: var(--lava); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fl-big span { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--muted); }
.fl-under { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.5; }
.fl-under b { color: var(--text); }
.fl-svg { display: block; width: 100%; height: auto; margin-top: 18px; }
.fl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.fl-stats > div { padding: 12px 8px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; min-width: 0; }
.fl-stats b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.fl-stats span { display: block; font-size: 11px; font-weight: 700; color: var(--muted-2); margin-top: 3px; line-height: 1.3; }

/* så gör du */
.fl-steg { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.fl-steg li { counter-increment: s; position: relative; padding-left: 38px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.fl-steg li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,122,0,.12); color: var(--lava-3); font: 900 13px/26px var(--font-display); text-align: center; }
.fl-steg li b { color: var(--text); }

/* kontroll */
.fl-chk { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fl-chk li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; font-weight: 600; }
.fl-chk li::before { flex: none; font-weight: 900; width: 18px; text-align: center; }
.fl-chk .ok { background: rgba(61,220,132,.07); color: #b9f3d2; } .fl-chk .ok::before { content: "✓"; color: var(--ok); }
.fl-chk .info { background: rgba(255,255,255,.04); color: var(--text-2); } .fl-chk .info::before { content: "i"; color: var(--muted); font-style: italic; }
.fl-chk .varn { background: rgba(255,179,0,.08); color: #ffd68a; } .fl-chk .varn::before { content: "!"; color: var(--lava-3); }
.fl-chk .fel { background: rgba(255,77,77,.1); color: #ffb3b3; } .fl-chk .fel::before { content: "×"; color: var(--err); }

/* schema: 14 dagar */
.fl-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.fl-dag { min-width: 0; padding: 8px 4px 9px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.fl-dag > small { font-size: 10.5px; font-weight: 800; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.fl-dag > b { font-family: var(--font-display); font-size: 15px; font-weight: 900; }
.fl-dag.idag { border-color: var(--lava-2); }
.fl-dag.av { opacity: .45; }
.fl-dots { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; min-height: 14px; }
.fl-dot { min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; font: 900 9px/14px var(--font-body); color: var(--bg); text-align: center; }
.fl-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.fl-leg span { display: inline-flex; align-items: center; gap: 6px; }
.fl-leg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (max-width: 480px) { .fl-cal { gap: 3px; } .fl-dag { padding: 6px 1px 7px; border-radius: 9px; } .fl-dag > b { font-size: 13px; } .fl-dot { min-width: 10px; height: 10px; font-size: 0; padding: 0; } }

/* tabeller */
.fl-tw { overflow-x: auto; margin-top: 12px; -webkit-overflow-scrolling: touch; }
.fl-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.fl-tbl th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); padding: 0 10px 9px; font-weight: 800; white-space: nowrap; }
.fl-tbl td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.fl-tbl td.num, .fl-tbl th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fl-tbl td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.4; }
.fl-tbl a { font-weight: 800; }
.fl-tbl a:hover { color: var(--lava-3); }
.fl-tbl tr.fl-av td > * { opacity: .45; }
.fl-tbl td small a { color: var(--lava-3); font-weight: 800; }

/* inköpslista */
.fl-kop { display: flex; flex-direction: column; margin-top: 10px; }
.fl-kop label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.fl-kop label:first-child { border-top: 0; }
.fl-kop input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lava-2); }
.fl-kop .n { font-size: 14px; font-weight: 700; line-height: 1.35; min-width: 0; }
.fl-kop .n small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.fl-kop .p { text-align: right; font-size: 14px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fl-kop .p small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted-2); }
.fl-kop label.av .n, .fl-kop label.av .p { opacity: .45; text-decoration: line-through; }
.fl-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.fl-tot span { font-size: 13px; font-weight: 700; color: var(--muted); }
.fl-tot b { font-family: var(--font-display); font-size: 32px; font-weight: 900; letter-spacing: -.02em; }
.fl-tot small { display: block; text-align: right; font-size: 12px; color: var(--muted-2); font-weight: 700; }
.fl-act { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.fl-act .btn { width: 100%; justify-content: center; }
.fl-act2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.fl-act2 .btn { width: 100%; justify-content: center; height: 44px; padding: 0 10px; font-size: 13.5px; }

/* tidslinje */
.fl-tl { margin-top: 14px; overflow-x: auto; }
.fl-tl-g { display: grid; gap: 5px 3px; align-items: center; min-width: 0; }
.fl-tl-l { font-size: 12px; font-weight: 800; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.fl-tl-h { font-size: 10px; font-weight: 800; color: var(--muted-2); text-align: center; }
.fl-tl-c { height: 20px; border-radius: 5px; background: var(--control); }
.fl-tl-c.paus { background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 4px, transparent 4px 8px); }
.fl-tl-c.pct { background: #3ddc84; }
.fl-tl-c.blod { background: none; display: flex; align-items: center; justify-content: center; color: #ff6482; font-size: 13px; }

/* vecka för vecka */
.fl-fas { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.fl-fas > div { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.fl-fas b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 900; }
.fl-fas b small { font: 700 12px/1 var(--font-body); color: var(--muted-2); margin-left: 6px; }
.fl-fas ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.fl-fas > div.pct { border-color: rgba(61,220,132,.3); background: rgba(61,220,132,.05); }
.fl-fas > div.paus { border-style: dashed; }

/* följ kuren */
.fl-logg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; }
.fl-logg-top b { font-family: var(--font-display); font-size: 22px; font-weight: 900; }
.fl-logg-top span { font-size: 13px; color: var(--muted); font-weight: 700; }
.fl-mat { height: 8px; border-radius: 8px; background: var(--control); overflow: hidden; margin-top: 10px; }
.fl-mat > i { display: block; height: 100%; background: var(--lava); border-radius: 8px; transition: width .4s var(--ease); }
.fl-idag { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.fl-idag label { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 700; }
.fl-idag label small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.fl-idag label.klar { opacity: .55; }
.fl-idag label.klar span { text-decoration: line-through; }
.fl-idag input { width: 20px; height: 20px; accent-color: var(--ok); flex: none; }
.fl-datum { height: 48px; padding: 0 14px; border-radius: 12px; background: var(--control); border: 1px solid var(--line-strong); color: var(--text); font: 700 15px/1 var(--font-body); color-scheme: dark; max-width: 100%; }
.fl-kom { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.fl-kom div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-2); padding: 8px 0; border-top: 1px solid var(--line); }
.fl-kom div:first-child { border-top: 0; }
.fl-kom b { color: var(--text); white-space: nowrap; }
.fl-länk { background: none; border: 0; padding: 0; color: var(--muted); font: 700 12.5px/1 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fl-länk:hover { color: var(--text); }

/* fakta/FAQ under flödet */
.fl-fakta { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.fl-fakta > div { padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.fl-fakta h2 { font-family: var(--font-display); font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.fl-fakta p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.fl-fakta a { color: var(--lava-3); font-weight: 700; }
.fl-disc { margin-top: 18px; font-size: 12px; line-height: 1.55; color: var(--muted-2); max-width: 820px; }
.fl-tom { padding: 30px 20px; text-align: center; color: var(--muted); font-weight: 600; }

@media (max-width: 640px) {
  .fl-hero { padding-top: 10px; }
  .fl-switch { width: 100%; } .fl-switch a { flex: 1; text-align: center; padding: 10px 8px; font-size: 13.5px; }
  .fl-prog { gap: 5px; margin: 20px 0 14px; } .fl-prog button { font-size: 11px; } .fl-prog em { display: none; }
  .fl-opts, .fl-opts.tva { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fl-opts .fl-opt.ik { padding: 14px 44px 14px 70px; min-height: 74px; justify-content: center; }
  .fl-opts .fl-opt.ik > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); margin: 0; }
  .fl-opts .fl-opt.on::after { top: 50%; transform: translateY(-50%); }
  .fl-prod { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-prod .fl-opt { padding: 12px 12px; } .fl-prod .fl-opt b { font-size: 15px; padding-right: 22px; }
  .fl-card { padding: 18px 16px; border-radius: 18px; }
  .fl-hero-res { padding: 22px 18px 18px; }
  .fl-stats { gap: 6px; } .fl-stats > div { padding: 10px 4px; } .fl-stats b { font-size: 18px; }
  .fl-tbl { font-size: 13px; } .fl-tbl th, .fl-tbl td { padding-left: 6px; padding-right: 6px; }
}

/* färg per preparat (prickar, förklaring, tidslinje) — två klasser så att de vinner över .fl-tl-c */
.fl .c0 { background: #ff7a00; } .fl .c1 { background: #ffb300; } .fl .c2 { background: #3ddc84; } .fl .c3 { background: #5ac8fa; } .fl .c4 { background: #bf5af2; } .fl .c5 { background: #ff6482; } .fl .c6 { background: #d1d1d6; }

/* ═══ V8.32b — Kurplaneraren: välj produkter (kb-*) och din kur (kp-*) ═══ */
.kb-langd { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 18px; }
.kb-langd > span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.kb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 22px; align-items: start; }
.kb-lista { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kb-h { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.kb-h:first-child { margin-top: 0; }
.kb-h small { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--muted-2); opacity: .75; }

/* produktkortet: bocka i, varför, dos, hur länge det räcker, jämför */
.kb-kort { --in: 40px; position: relative; background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px; padding: 16px 18px 16px 20px; min-width: 0;
  transition: border-color .18s var(--ease), background .18s var(--ease); }
.kb-kort::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--kp-c, var(--lava-2)); opacity: .3; transition: opacity .18s var(--ease); }
.kb-kort:not(.fast):hover { border-color: rgba(255,122,0,.35); }
.kb-kort.on { border-color: rgba(255,122,0,.55); background: linear-gradient(180deg, rgba(255,122,0,.07), rgba(255,122,0,.015)), var(--card); }
.kb-kort.on::before { opacity: 1; }
.kb-kort.ny { animation: kbNy 1.4s var(--ease); }
@keyframes kbNy { 0% { box-shadow: 0 0 0 0 rgba(255,122,0,.6); } 100% { box-shadow: 0 0 0 16px rgba(255,122,0,0); } }
@media (prefers-reduced-motion: reduce) { .kb-kort.ny { animation: none; } }
.kb-top { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; cursor: pointer; }
.kb-kort.fast .kb-top { cursor: default; }
.kb-top input { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin: 2px 0 0; border-radius: 8px; border: 2px solid rgba(255,255,255,.3); background: var(--control);
  display: grid; place-items: center; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease); }
.kb-top input::after { content: ""; width: 6px; height: 12px; border: solid var(--bg); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); opacity: 0; }
.kb-top input:checked { background: var(--lava); border-color: transparent; }
.kb-top input:checked::after { opacity: 1; }
.kb-top input:disabled { cursor: default; opacity: .7; }
.kb-top input:focus-visible { outline: 2px solid var(--lava-2); outline-offset: 2px; }
.kb-namn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kb-namn small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lava-3); line-height: 1.35; }
.kb-kort:not(.on) .kb-namn small { color: var(--muted-2); }
.kb-namn b { font-family: var(--font-display); font-size: 20px; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
.kb-namn em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kb-pris { text-align: right; white-space: nowrap; }
.kb-pris b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.kb-pris small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted-2); margin-top: 2px; }
.kb-kort:not(.on) .kb-pris b { color: var(--text-2); }
.kb-kort > :not(.kb-top) { margin-left: var(--in); }
.kb-why { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-2); font-weight: 600; }
.kb-pros { list-style: none; margin-top: 8px; margin-bottom: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kb-pros li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.kb-pros li::before { content: "✓"; position: absolute; left: 1px; top: 0; color: var(--ok); font-weight: 900; }
.kb-dos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kb-dos span { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--text-2); line-height: 1.3; }
.kb-dos span b { color: var(--text); font-weight: 800; }
.kb-eko { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted-2); }
.kb-not { margin-top: 8px; padding: 8px 11px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 12.5px; line-height: 1.45; font-weight: 600; color: var(--text-2); }
.kb-not.varn { background: rgba(255,179,0,.08); color: #ffd68a; }
.kb-jmf { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.kb-jmf > summary { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 800; color: var(--lava-3); }
.kb-jmf > summary::-webkit-details-marker { display: none; }
.kb-jmf > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,122,0,.12); color: var(--lava-3); font-weight: 900; flex: none; }
.kb-jmf[open] > summary::before { content: "−"; }
.kb-jmf > summary em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kb-alts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.kb-alt { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px 15px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s var(--ease); }
.kb-alt:hover { border-color: var(--line-strong); }
.kb-alt.on { border-color: rgba(255,122,0,.5); background: rgba(255,122,0,.06); }
.kb-alt.av { grid-template-columns: minmax(0, 1fr); cursor: default; opacity: .55; padding-bottom: 10px; }
.kb-alt input { width: 18px; height: 18px; margin: 0; accent-color: var(--lava-2); }
.kb-alt-n { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.kb-alt-n b { font-size: 14.5px; font-weight: 800; }
.kb-alt-n small { flex-basis: 100%; font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.kb-alt-p { text-align: right; white-space: nowrap; }
.kb-alt-p b { display: block; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.kb-alt-p small { display: block; font-size: 11px; color: var(--muted-2); font-weight: 700; }
.kb-alt-m { position: absolute; left: 42px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); }
.kb-alt-m::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px; background: var(--lava-2); opacity: .75; }

/* sammanfattningen: pris, hur nära målet, skydd/PCT, fakta */
.kb-sum { position: sticky; top: calc(var(--nav-h) + 16px); background: linear-gradient(160deg, #1d1d20 0%, #111112 100%); border: 1px solid var(--line-strong); border-radius: 24px;
  padding: 22px 20px 20px; box-shadow: var(--sh-card); min-width: 0; }
.kb-tot { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.kb-tot b { font-family: var(--font-display); font-size: clamp(46px, 6vw, 60px); font-weight: 900; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: var(--lava); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kb-tot span { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--muted); }
.kb-tot-s { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.kb-mal { margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.kb-mal-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 800; color: var(--text-2); }
.kb-mal-t b { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.kb-mal .fl-mat { height: 10px; margin-top: 8px; }
.kb-mal p { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 600; }
.kb-lagg { background: none; border: 0; padding: 0; color: var(--lava-3); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.kb-trygg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kb-trygg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px; border-radius: var(--r-pill); background: var(--control); border: 1px solid var(--line-strong);
  color: var(--text-2); font: 700 12.5px/1 var(--font-body); cursor: pointer; transition: border-color .15s var(--ease); }
.kb-trygg button:hover { border-color: rgba(255,255,255,.22); }
.kb-trygg button i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 12px; background: rgba(255,255,255,.08); color: var(--muted); }
.kb-trygg button.ja { border-color: rgba(61,220,132,.35); color: #b9f3d2; background: rgba(61,220,132,.08); }
.kb-trygg button.ja i { background: var(--ok); color: var(--bg); }
.kb-fakta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.kb-fakta span { padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); text-align: center; font-size: 11px; font-weight: 700; color: var(--muted-2); line-height: 1.3; }
.kb-fakta b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 900; color: var(--text); letter-spacing: -.01em; }
.kb-sum .fl-chk { margin-top: 12px; }
.kb-cta { width: 100%; justify-content: center; margin-top: 14px; }
.kb-bar { display: none; }
@media (max-width: 1000px) {
  .kb { grid-template-columns: minmax(0, 1fr); }
  .kb-sum { position: static; }
  /* mobil: pris + hur nära målet + Planera kur hela tiden i bild */
  .kb-bar { position: sticky; bottom: 12px; z-index: 6; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 10px 10px 6px;
    border-radius: 20px; background: rgba(22,22,23,.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -18px rgba(0,0,0,.9); overflow: hidden; }
  .kb-bar::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: var(--p); background: var(--lava); transition: width .4s var(--ease); }
  .kb-bar .fl-back { padding: 10px 10px; font-size: 20px; line-height: 1; }
  .kb-bar > span { display: flex; flex-direction: column; min-width: 0; }
  .kb-bar > span b { font-family: var(--font-display); font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1; }
  .kb-bar > span small { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
  .kb-bar .btn { height: 46px; padding: 0 18px; font-size: 14.5px; }
}
@media (max-width: 900px) { .kb-bar { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 640px) {
  .kb-kort { --in: 0px; padding: 14px 14px 14px 16px; border-radius: 18px; }
  .kb-top { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; }
  .kb-namn b { font-size: 18px; }
  .kb-pris b { font-size: 17px; }
  .kb-sum { padding: 20px 16px 18px; border-radius: 20px; }
  .kb-alt { padding: 10px 10px 15px; gap: 8px; } .kb-alt-m { left: 38px; right: 10px; }
}

/* din kur: så här tar du allt */
.fl-card > .fl-chips { margin-top: 12px; }
.kp-ins { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.kp-i { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 16px 16px 18px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.kp-i::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--kp-c); }
.kp-i > i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.06); background: color-mix(in srgb, var(--kp-c) 16%, transparent); color: var(--kp-c); }
.kp-i > i svg { width: 22px; height: 22px; }
.kp-i-b { min-width: 0; }
.kp-i h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; font-weight: 800; }
.kp-i h4 small { font-size: 12px; font-weight: 700; color: var(--muted-2); }
.kp-mangd { margin-top: 4px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.kp-nar { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.kp-nar span { color: var(--muted); font-weight: 600; }
.kp-bildruta { max-width: 380px; }
.kp-bildruta .fl-svg { margin-top: 10px; }
.kp-tips { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* din vecka */
.kp-vecka { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.kp-dag { min-width: 0; min-height: 96px; padding: 8px 6px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.kp-dag > b { display: flex; justify-content: space-between; gap: 4px; font-size: 12px; font-weight: 800; color: var(--text-2); }
.kp-dag > b small { font-weight: 700; color: var(--muted-2); }
.kp-dag.idag { border-color: var(--lava-2); box-shadow: inset 0 0 0 1px var(--lava-2); }
.kp-dag.vila { background: transparent; border-style: dashed; }
.kp-p { display: block; padding: 4px 6px 4px 7px; border-radius: 8px; background: rgba(255,255,255,.05); background: color-mix(in srgb, var(--kp-c) 14%, transparent); border-left: 3px solid var(--kp-c);
  font-size: 11.5px; font-weight: 700; color: var(--text-2); line-height: 1.3; overflow-wrap: anywhere; }
.kp-p b { display: block; color: var(--text); font-weight: 900; font-size: 12.5px; }
.kp-vila { margin: auto 0; font-size: 11.5px; font-weight: 600; color: var(--muted-2); text-align: center; }
.kp-pct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.kp-pct > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 14px; background: rgba(61,220,132,.05); border: 1px solid rgba(61,220,132,.25); }
.kp-pct > div > b { font-family: var(--font-display); font-size: 17px; font-weight: 900; }
.kp-pct small { font-size: 12px; color: var(--muted); font-weight: 600; }
.kp-pct .kp-p { font-size: 13px; }
@media (max-width: 640px) {
  .kp-i { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 14px 14px 16px; }
  .kp-i > i { width: 36px; height: 36px; border-radius: 11px; } .kp-i > i svg { width: 19px; height: 19px; }
  .kp-vecka { grid-template-columns: minmax(0, 1fr); }
  .kp-dag { flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 0; padding: 10px 12px; gap: 6px; }
  .kp-dag > b { flex: 0 0 58px; flex-direction: column; gap: 0; }
  .kp-p { display: inline-block; } .kp-p b { display: inline; margin-left: 4px; }
  .kp-vila { margin: 0; text-align: left; }
  .kp-pct { grid-template-columns: minmax(0, 1fr); }
}

/* hela kuren på en bild */
.kp-bild { display: flex; gap: 3px; margin-top: 14px; height: 40px; }
.kp-bild > div { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 9px; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-bild .kur { background: var(--lava); color: var(--bg); }
.kp-bild .paus { background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 5px, transparent 5px 10px); color: var(--muted); border: 1px dashed var(--line-strong); }
.kp-bild .pct { background: rgba(61,220,132,.85); color: var(--bg); }
.kp-bild .blod { background: rgba(255,100,130,.14); color: #ff9db1; border: 1px solid rgba(255,100,130,.35); }
.kp-bild-l { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.kp-bild-l span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kp-bild-l b { color: var(--text); font-weight: 800; }
.kp-bild-l i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.kp-bild-l i.kur { background: var(--lava-2); } .kp-bild-l i.sista { background: var(--lava-3); } .kp-bild-l i.pct { background: var(--ok); } .kp-bild-l i.blod { background: #ff6482; }
@media (max-width: 640px) { .kp-bild { height: 36px; } .kp-bild > div { font-size: 11px; padding: 0 3px; border-radius: 8px; } }
.kp-gantt { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.kp-g { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kp-g > span { font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-g > div { height: 10px; border-radius: 5px; background: rgba(255,255,255,.04); }
.kp-g i { display: block; height: 100%; border-radius: 5px; background: var(--kp-c); }

/* bra att veta (ihopfällt) + att beställa */
.kp-det > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.kp-det > summary::-webkit-details-marker { display: none; }
.kp-det > summary h3 { font-family: var(--font-display); font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.kp-det > summary::after { content: "+"; flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--control); color: var(--muted); font-weight: 900; }
.kp-det[open] > summary::after { content: "−"; }
.kp-kop { display: flex; flex-direction: column; margin-top: 10px; }
.kp-rad { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.kp-rad:first-child { border-top: 0; }
.kp-rad .n { min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
.kp-rad .n b { color: var(--lava-3); font-weight: 900; }
.kp-rad .n small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.kp-rad .p { font-size: 14px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* fuskblad — utskrift */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .nav, header.nav, footer, #tg-wrap, .fl-hero, .fl-prog, .fl-svar, .fl-nav, .fl-side .fl-act, .fl-act2, .fl-noprint, .crumbs, .mega-wrap, .toast { display: none !important; }
  .fl-step { display: none !important; } .fl-step[data-step="kur"], .fl-step[data-step="res"] { display: block !important; }
  .fl-res { grid-template-columns: 1fr; }
  .fl-card, .fl-hero-res, .fl-fas > div, .fl-dag { background: #fff !important; border-color: #bbb !important; box-shadow: none !important; color: #000 !important; break-inside: avoid; }
  .fl-big b { background: none; color: #000; -webkit-text-fill-color: #000; }
  .fl-card *, .fl-hero-res * { color: #000 !important; }
  .fl-side { position: static; }
  .kb-bar, .kp-det > summary::after { display: none !important; }
  .kp-i, .kp-dag, .kp-p, .kp-pct > div { background: #fff !important; border-color: #bbb !important; break-inside: avoid; }
}
