/* Egen kod. Segmentväljarens glidande markering porterad från affectUI Segmented Control (Clean), MIT, Copyright (c) 2026 Florian Höller. Kontrollistans räknare, tunna stapel och bockar porterade från affectUI Progress Tracker (Clean), MIT, Copyright (c) 2026 Florian Höller, utan autoplay. Clean-tokens: 13/20 px, hårlinjeskugga, knappar 28 px radie 6 px, Nolmas färger. En påhittad kunds sajt före och efter, i samma ruta. Idéer: dragreglaget över samma sida från claude-website-rebuilder (bara idén); kontrollistan ur sajt-referenser-ui raden interfaces.rauno.me (16 px i fält, synlig fokusring, ingen autoplay, interaktion under 200 ms); raden react-aria (formulär med etikett över fält, fel vid fältet, tangentbord); reglerna under Komponentbibliotek 24 okt 2026 (värdet byts direkt under drag, vald markering glider, dolda inputs med opacity aldrig display:none); orbix.studio-raden (ingen logovägg, inga räknare). Ingen kod tagen. */
#c-hemsida {
  --cs-panel: #FFFFFF;
  --cs-ink: #111110;
  --cs-ink2: rgba(17, 17, 16, 0.68);
  --cs-line: rgba(17, 17, 16, 0.1);
  --cs-seg: rgba(17, 17, 16, 0.06);
  --cs-segon: #FFFFFF;
  --cs-hover: rgba(17, 17, 16, 0.04);
  --cs-ok: #1E7A4C;
  --cs-ember: #D9601C;
  --cs-etext: #B4501A;
  --cs-tint: rgba(217, 96, 28, 0.08);
  --cs-bezel: #1A1A19;
  --cs-hair: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 1px 1px -1px rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --cs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  container-type: inline-size;
  display: grid;
  gap: 14px;
  width: 100%;
  font-family: var(--sans);
  color: var(--cs-ink);
  text-align: left;
}
:where(.dark, [data-theme="dark"]) #c-hemsida {
  --cs-panel: #1C1B1A;
  --cs-ink: #F2F1EE;
  --cs-ink2: rgba(255, 255, 255, 0.7);
  --cs-line: rgba(255, 255, 255, 0.1);
  --cs-seg: rgba(255, 255, 255, 0.07);
  --cs-segon: #2E2D2A;
  --cs-hover: rgba(255, 255, 255, 0.05);
  --cs-ok: #3EC27A;
  --cs-etext: #F08A4B;
  --cs-tint: rgba(240, 138, 75, 0.1);
  --cs-bezel: #2E2D2A;
  --cs-hair: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.4);
}
#c-hemsida *, #c-hemsida *::before, #c-hemsida *::after { box-sizing: border-box; }
#c-hemsida button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#c-hemsida :focus-visible { outline: 2px solid var(--cs-ember); outline-offset: 2px; }

/* Verktygsraden */
#c-hemsida .ui-csc__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#c-hemsida .ui-csc__seg { position: relative; display: inline-flex; padding: 2px; gap: 2px; border-radius: 8px; background: var(--cs-seg); }
#c-hemsida .ui-csc__pill { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 6px; background: var(--cs-segon); box-shadow: var(--cs-hair); opacity: 0; pointer-events: none; }
#c-hemsida .ui-csc__seg[data-ready] .ui-csc__pill { opacity: 1; transition: left 180ms var(--cs-ease), width 180ms var(--cs-ease); }
#c-hemsida .ui-csc__seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--cs-ink2); transition: color 90ms ease, transform 140ms var(--cs-ease); }
#c-hemsida .ui-csc__seg button:active { transform: scale(0.97); }
#c-hemsida .ui-csc__seg button[aria-pressed="true"] { color: var(--cs-ink); }
#c-hemsida .ui-csc__seg:not([data-ready]) button[aria-pressed="true"] { background: var(--cs-segon); box-shadow: var(--cs-hair); }
#c-hemsida .ui-csc__seg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
#c-hemsida .ui-csc__url { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--cs-panel); box-shadow: var(--cs-hair); font-family: var(--mono); font-size: 13px; color: var(--cs-ink2); }
#c-hemsida .ui-csc__url svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Huvudytan */
#c-hemsida .ui-csc__main { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 20px; align-items: start; }
#c-hemsida .ui-csc__view { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
#c-hemsida .ui-csc__dots { display: none; }
#c-hemsida .ui-csc__screen { position: relative; width: 100%; height: 580px; border-radius: 12px; overflow: hidden; background: #FAF8F4; box-shadow: 0 0 0 1px var(--cs-line), 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 32px -18px rgba(0, 0, 0, 0.25); transition: width 180ms var(--cs-ease), border-radius 180ms var(--cs-ease); }
#c-hemsida[data-dev="mobil"] .ui-csc__screen { width: 372px; height: 640px; border-radius: 40px; box-shadow: 0 0 0 10px var(--cs-bezel), 0 0 0 11px var(--cs-line), 0 18px 40px -20px rgba(0, 0, 0, 0.4); margin: 11px 0; }
#c-hemsida .ui-csc__scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; container-type: inline-size; scrollbar-width: thin; }
#c-hemsida .ui-csc__scroll:focus-visible { outline-offset: -3px; }
#c-hemsida .ui-csc__layers { display: grid; min-height: 100%; }
#c-hemsida .ui-csc__layers > * { grid-area: 1 / 1; min-width: 0; }
#c-hemsida .ui-csc__old { clip-path: inset(0 calc((100 - var(--v)) * 1%) 0 0); }
#c-hemsida .ui-csc__new { clip-path: inset(0 0 0 calc(var(--v) * 1%)); }
#c-hemsida:not([data-drag]) .ui-csc__old,
#c-hemsida:not([data-drag]) .ui-csc__new { transition: clip-path 180ms var(--cs-ease); }
#c-hemsida:not([data-drag]) .ui-csc__split { transition: left 180ms var(--cs-ease), opacity 160ms var(--cs-ease); }

#c-hemsida .ui-csc__tag { position: absolute; bottom: 12px; z-index: 3; padding: 3px 9px; border-radius: 6px; background: #111110; color: #FFFFFF; font-size: 12px; font-weight: 500; line-height: 18px; pointer-events: none; transition: opacity 160ms var(--cs-ease); }
#c-hemsida .ui-csc__tag--l { left: 12px; }
#c-hemsida .ui-csc__tag--r { right: 12px; }
#c-hemsida[data-mode="efter"] .ui-csc__tag--l,
#c-hemsida[data-mode="fore"] .ui-csc__tag--r { opacity: 0; }
#c-hemsida[data-dev="mobil"] .ui-csc__tag { bottom: 22px; }
#c-hemsida[data-dev="mobil"] .ui-csc__tag--l { left: 20px; }
#c-hemsida[data-dev="mobil"] .ui-csc__tag--r { right: 20px; }

#c-hemsida .ui-csc__split { position: absolute; top: 0; bottom: 0; left: calc(var(--v) * 1%); z-index: 2; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; display: flex; align-items: center; justify-content: center; }
#c-hemsida .ui-csc__split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(17, 17, 16, 0.35); }
#c-hemsida .ui-csc__knob { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: #111110; box-shadow: 0 0 0 1px rgba(17, 17, 16, 0.2), 0 4px 12px rgba(0, 0, 0, 0.18); transition: transform 140ms var(--cs-ease); }
#c-hemsida .ui-csc__split:active .ui-csc__knob, #c-hemsida[data-drag] .ui-csc__knob { transform: scale(0.94); }
#c-hemsida .ui-csc__knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#c-hemsida .ui-csc__split:focus-visible { outline: none; }
#c-hemsida .ui-csc__split:focus-visible .ui-csc__knob { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--cs-ember); }
#c-hemsida:not([data-mode="jamfor"]) .ui-csc__split { opacity: 0; pointer-events: none; }

/* Markering från kontrollistan */
#c-hemsida .ui-csc__site [data-hl] { outline: 2px solid #D9601C; outline-offset: 4px; border-radius: 4px; }

/* Före: den gamla sajten */
#c-hemsida .ui-csc__old { background: #FFFFFF; color: #3F454B; font-size: 13px; line-height: 1.45; }
#c-hemsida .o-top { background: #3F4850; color: #FFFFFF; font-size: 12px; padding: 6px 16px; }
#c-hemsida .o-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 16px; border-bottom: 3px solid #3F4850; }
#c-hemsida .o-head b { font-size: 21px; color: #3F4850; font-weight: 600; }
#c-hemsida .o-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: #2E5C8A; text-decoration: underline; }
#c-hemsida .o-slide { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px; height: 200px; padding: 0 10px; background: #59636B; color: #FFFFFF; text-align: left; }
#c-hemsida .o-slide > div { flex: 1; min-width: 0; }
#c-hemsida .o-slide b { display: block; font-size: 22px; font-weight: 600; }
#c-hemsida .o-slide span { font-size: 14px; }
#c-hemsida .o-arr { font-size: 30px; line-height: 1; }
#c-hemsida .o-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
#c-hemsida .o-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #FFFFFF; }
#c-hemsida .o-dots i.on { background: #FFFFFF; }
#c-hemsida .o-body { padding: 0 16px 8px; }
#c-hemsida .o-body h3, #c-hemsida .o-form h3 { margin: 0 0 6px; font-size: 16px; color: #3F4850; }
#c-hemsida .o-body p { margin: 0 0 12px; }
#c-hemsida .o-news { border: 1px solid #C9CDD1; padding: 10px; margin-bottom: 8px; }
#c-hemsida .o-news span { display: block; font-size: 12px; color: #5C6268; }
#c-hemsida .o-news p { margin: 2px 0 0; }
#c-hemsida .o-form { display: grid; gap: 6px; padding: 8px 16px 16px; max-width: 360px; }
#c-hemsida .o-form input, #c-hemsida .o-form textarea { width: 100%; font: 400 13px/1.3 var(--sans); color: #3F454B; height: 28px; padding: 4px 6px; border: 1px solid #A9AFB5; border-radius: 0; background: #FFFFFF; outline: none; }
#c-hemsida .o-form textarea { height: auto; resize: none; }
#c-hemsida .o-form input::placeholder, #c-hemsida .o-form textarea::placeholder { color: #6A7076; }
#c-hemsida .o-form input:focus, #c-hemsida .o-form textarea:focus { outline: none; }
#c-hemsida .o-send { justify-self: start; height: 30px; padding: 0 12px; background: #3F4850; color: #FFFFFF; font-size: 13px; }
#c-hemsida .o-send:focus-visible { outline: none; }
#c-hemsida .o-foot { padding: 12px 16px; background: #ECEEEF; font-size: 12px; color: #4A5056; }

/* Efter: den nya sajten, kundens egen identitet (petrol, varm vit botten) */
#c-hemsida .ui-csc__new { --st-ink: #13252A; --st-mute: rgba(19, 37, 42, 0.74); --st-line: rgba(19, 37, 42, 0.14); --st-acc: #17424D; --st-err: #A1281E; background: #FAF8F4; color: var(--st-ink); font-size: 15px; line-height: 1.5; }
#c-hemsida .ui-csc__new :focus-visible { outline: 2px solid var(--st-acc); outline-offset: 2px; }
#c-hemsida .n-head { display: flex; align-items: center; gap: 22px; padding: 14px 24px; border-bottom: 1px solid var(--st-line); }
#c-hemsida .n-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
#c-hemsida .n-nav { display: flex; gap: 18px; font-size: 14px; color: var(--st-mute); }
#c-hemsida .n-tel { margin-left: auto; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--st-acc); color: #FFFFFF; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
#c-hemsida .n-hero { display: grid; gap: 24px; padding: 28px 24px 24px; }
#c-hemsida .n-lead h3 { margin: 0 0 10px; font-size: 32px; line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
#c-hemsida .n-lead > p { margin: 0; font-size: 16px; color: var(--st-mute); max-width: 36ch; }
#c-hemsida .n-price { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--st-line); }
#c-hemsida .n-pr { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#c-hemsida .n-pr b { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
#c-hemsida .n-pr span { font-size: 14px; color: var(--st-mute); }
#c-hemsida .n-price ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
#c-hemsida .n-price li { position: relative; padding-left: 22px; font-size: 15px; }
#c-hemsida .n-price li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 6px; height: 11px; border: solid var(--st-acc); border-width: 0 2px 2px 0; transform: rotate(40deg); }
#c-hemsida .n-book { background: #FFFFFF; border: 1px solid var(--st-line); border-radius: 14px; padding: 18px; align-self: start; }
#c-hemsida .n-form { display: grid; gap: 14px; }
#c-hemsida .n-book h4 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
#c-hemsida .n-chips { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
#c-hemsida .n-chips legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
#c-hemsida .n-chips label { position: relative; display: inline-flex; }
#c-hemsida .n-chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
#c-hemsida .n-chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--st-line); background: #FFFFFF; font-size: 15px; white-space: nowrap; transition: background-color 150ms var(--cs-ease), color 150ms var(--cs-ease), border-color 150ms var(--cs-ease), transform 140ms var(--cs-ease); }
#c-hemsida .n-chips label:active span { transform: scale(0.97); }
#c-hemsida .n-chips input:checked + span { background: var(--st-acc); border-color: var(--st-acc); color: #FFFFFF; }
#c-hemsida .n-chips input:focus-visible + span { outline: 2px solid var(--st-acc); outline-offset: 2px; }
#c-hemsida .n-chips input:disabled { cursor: not-allowed; }
#c-hemsida .n-chips input:disabled + span { color: var(--st-mute); background: #F2F0EB; border-style: dashed; }
#c-hemsida .n-chips em { font-style: normal; font-size: 12px; }
#c-hemsida .n-times span { font-variant-numeric: tabular-nums; }
#c-hemsida .n-field { display: grid; gap: 6px; }
#c-hemsida .n-field label { font-size: 14px; font-weight: 500; }
#c-hemsida .n-field input { width: 100%; height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(19, 37, 42, 0.3); background: #FFFFFF; color: var(--st-ink); font: 400 16px/1 var(--sans); }
#c-hemsida .n-field input::placeholder { color: rgba(19, 37, 42, 0.6); }
#c-hemsida .n-field input[aria-invalid="true"] { border-color: var(--st-err); }
#c-hemsida .n-err { margin: 0; font-size: 13px; color: var(--st-err); }
#c-hemsida .n-submit { height: 48px; border-radius: 10px; background: var(--st-acc); color: #FFFFFF; font-size: 16px; font-weight: 600; transition: transform 140ms var(--cs-ease), background-color 150ms var(--cs-ease); }
#c-hemsida .n-submit:hover { background: #0F333C; }
#c-hemsida .n-submit:active { transform: scale(0.97); }
#c-hemsida .n-note { margin: -4px 0 0; font-size: 13px; color: var(--st-mute); }
#c-hemsida .n-done { display: grid; justify-items: start; gap: 8px; padding: 6px 0; }
#c-hemsida .n-done:focus { outline: none; }
#c-hemsida .n-done p { margin: 0; font-size: 15px; color: var(--st-mute); }
#c-hemsida .n-ok { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1E7A4C; }
#c-hemsida .n-ok svg { width: 22px; height: 22px; fill: none; stroke: #FFFFFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#c-hemsida .n-again { margin-top: 4px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--st-line); font-size: 15px; font-weight: 500; }
#c-hemsida .n-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 16px 24px 20px; border-top: 1px solid var(--st-line); font-size: 13px; color: var(--st-mute); }

@container (min-width: 600px) {
  #c-hemsida .n-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; padding: 36px 28px 28px; }
}
@container (max-width: 560px) {
  #c-hemsida .n-nav { display: none; }
  #c-hemsida .n-head { padding: 12px 16px; }
  #c-hemsida .n-hero { padding: 22px 16px 20px; }
  #c-hemsida .n-lead h3 { font-size: 27px; }
  #c-hemsida .n-book { padding: 16px; }
  #c-hemsida .n-foot { padding: 14px 16px 18px; }
}
@container (max-width: 340px) {
  #c-hemsida .n-head { gap: 8px 10px; padding: 12px; flex-wrap: wrap; }
  #c-hemsida .n-tel { padding: 0 10px; font-size: 13px; }
  #c-hemsida .n-logo { font-size: 16px; }
}

/* Kontrollistan */
#c-hemsida .ui-csc__check { background: var(--cs-panel); border-radius: 10px; box-shadow: var(--cs-hair); padding: 16px 0 8px; }
#c-hemsida .ui-csc__chhead { padding: 0 16px 10px; }
#c-hemsida .ui-csc__chhead h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
#c-hemsida .ui-csc__chhead p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--cs-ink2); }
#c-hemsida .ui-csc__chhead b { font-weight: 500; color: var(--cs-ink); }
#c-hemsida .ui-csc__mono { font-variant-numeric: tabular-nums; }
#c-hemsida .ui-csc__list { list-style: none; margin: 0; padding: 0; }
#c-hemsida .ui-csc__list li + li button { border-top: 1px solid var(--cs-line); }
#c-hemsida .ui-csc__list button { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; width: 100%; padding: 12px 16px; text-align: left; transition: background-color 150ms var(--cs-ease); }
#c-hemsida .ui-csc__list button:hover { background: var(--cs-hover); }
#c-hemsida .ui-csc__list button:active { background: var(--cs-hover); }
#c-hemsida .ui-csc__list button[aria-pressed="true"] { background: var(--cs-tint); }
#c-hemsida .ui-csc__list button[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--cs-ember); }
#c-hemsida .ui-csc__list button:focus-visible { outline-offset: -2px; }
#c-hemsida .ui-csc__ck { grid-row: span 2; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.25px var(--cs-line), inset 0 0 0 1.25px var(--cs-ink2); transition: background-color 160ms var(--cs-ease), box-shadow 160ms var(--cs-ease); }
#c-hemsida .ui-csc__ck svg { width: 16px; height: 16px; fill: none; stroke: #FFFFFF; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.6); transition: opacity 140ms var(--cs-ease), transform 160ms var(--cs-ease); }
#c-hemsida .ui-csc__list button[data-seen] .ui-csc__ck { background: var(--cs-ember); box-shadow: none; }
#c-hemsida .ui-csc__list button[data-seen] .ui-csc__ck svg { opacity: 1; transform: none; }
#c-hemsida .ui-csc__prog { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--cs-ink2); }
#c-hemsida .ui-csc__bar2 { display: block; height: 3px; border-radius: 3px; background: var(--cs-seg); overflow: hidden; }
#c-hemsida .ui-csc__bar2 i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cs-ember); transition: width 180ms var(--cs-ease); }
#c-hemsida .ui-csc__ct { font-size: 13px; line-height: 20px; font-weight: 500; }
#c-hemsida .ui-csc__ct em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--cs-etext); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin-left: 4px; white-space: nowrap; }
#c-hemsida .ui-csc__cv { display: flex; align-items: center; gap: 8px; font-size: 13px; }
#c-hemsida .ui-csc__cv s { text-decoration: none; color: var(--cs-ink2); }
#c-hemsida .ui-csc__cv s::after { content: "\2192"; margin-left: 8px; }
#c-hemsida .ui-csc__cv b { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--cs-ok); }
#c-hemsida .ui-csc__cv b::before { content: ""; width: 5px; height: 9px; margin: 0 2px 3px 1px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(40deg); }
#c-hemsida .ui-csc__live { margin: 0; padding: 8px 16px 6px; font-size: 13px; line-height: 1.45; color: var(--cs-ink2); min-height: 0; }
#c-hemsida .ui-csc__live:empty { display: none; }

/* Smal bredd */
@container (max-width: 780px) {
  #c-hemsida .ui-csc__main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #c-hemsida .ui-csc__devseg { display: none; }
  #c-hemsida .ui-csc__screen, #c-hemsida[data-dev="mobil"] .ui-csc__screen { width: 100%; height: 540px; border-radius: 12px; margin: 0; box-shadow: 0 0 0 1px var(--cs-line), 0 12px 32px -18px rgba(0, 0, 0, 0.25); }
  #c-hemsida[data-dev="mobil"] .ui-csc__tag { bottom: 12px; }
  #c-hemsida[data-dev="mobil"] .ui-csc__tag--l { left: 12px; }
  #c-hemsida[data-dev="mobil"] .ui-csc__tag--r { right: 12px; }
}
@container (max-width: 520px) {
  #c-hemsida .ui-csc__bar { justify-content: center; }
  #c-hemsida .ui-csc__url { display: none; }
  #c-hemsida .ui-csc__seg { width: 100%; }
  #c-hemsida .ui-csc__seg button { flex: 1; justify-content: center; padding: 0 8px; height: 36px; }
}

/* Mobil: en version i taget i full bredd, svep eller tryck för att byta */
@container (max-width: 640px) {
  #c-hemsida .ui-csc__seg button[data-v="jamfor"] { display: none; }
  #c-hemsida .ui-csc__split { display: none; }
  #c-hemsida .ui-csc__scroll { touch-action: pan-y; }
  #c-hemsida .ui-csc__screen, #c-hemsida[data-dev="mobil"] .ui-csc__screen { height: 560px; }
  #c-hemsida .ui-csc__tag, #c-hemsida[data-dev] .ui-csc__tag { top: auto; bottom: 12px; }
  #c-hemsida .ui-csc__dots { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
  #c-hemsida .ui-csc__dots button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--cs-ink2); transition: color 120ms var(--cs-ease), transform 140ms var(--cs-ease); }
  #c-hemsida .ui-csc__dots button:active { transform: scale(0.97); }
  #c-hemsida .ui-csc__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--cs-line); box-shadow: inset 0 0 0 1px var(--cs-ink2); transition: background-color 150ms var(--cs-ease), width 150ms var(--cs-ease); }
  #c-hemsida .ui-csc__dots button[aria-pressed="true"] { color: var(--cs-ink); }
  #c-hemsida .ui-csc__dots button[aria-pressed="true"] i { width: 20px; border-radius: 4px; background: var(--cs-ember); box-shadow: none; }
  #c-hemsida .ui-csc__hint { font-size: 12px; color: var(--cs-ink2); text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  #c-hemsida *, #c-hemsida *::before { transition: none !important; }
}

#c-hemsida svg * { vector-effect: non-scaling-stroke; }
#c-hemsida .n-lead h3, #c-hemsida .ui-csc__chhead h4 { text-wrap: balance; }
#c-hemsida .n-lead p { text-wrap: pretty; }
#c-hemsida .ui-csc__old h3, #c-hemsida .ui-csc__old b { font-weight: 600; }

/* Ett lager som inte syns tas ur text och tillgänglighet efter övergången */
#c-hemsida .ui-csc__site[data-gone] { visibility: hidden; transition: clip-path 180ms var(--cs-ease), visibility 0s linear 180ms; }
@media (prefers-reduced-motion: reduce) { #c-hemsida .ui-csc__site[data-gone] { transition: none; } }
/* 1440, dator: fönstret är lika högt som kontrollistan och tonas ut nedtill */
@media (min-width: 641px) {
  #c-hemsida[data-dev="dator"] .ui-csc__main { align-items: stretch; }
  #c-hemsida[data-dev="dator"] .ui-csc__view { min-height: 0; }
  #c-hemsida[data-dev="dator"] .ui-csc__screen { flex: 1 1 0; height: auto; min-height: 0; border-radius: 12px 12px 0 0; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); box-shadow: inset 0 0 0 1px var(--cs-line); }
  #c-hemsida[data-dev="dator"] .ui-csc__tag { bottom: 26%; }
  #c-hemsida .ui-csc__list button { padding: 14px 16px; }
  #c-hemsida .ui-csc__check { padding: 18px 0 10px; }
}
