/* ÖVA-ROLL-3 (docs/design/ova-rollen/*.dc.html, docs/design/ova-rollen-brief.md "Design review, round 2" and "Round 3"): the end of a scene (Öva) and the practice page (js/ova-sida.js).
   Both show on the test site only (js/ova-sida.js ovaRollSynlig). Tokens are the app's own; the mock-ups' --card is the app's --sunk. Logical properties; 44 px targets; nothing under 14 px.
   Dark mode: the lighter green and red are the shared --ok and --bad (css/app.css dark :root, Linh 2026-11-06); the page reads them. */

/* ---- the end of a scene: one soft button, centred, nothing under it ---- */
.slutknappar.slut-ny { flex-direction: column; align-items: center; }
.slutknappar.slut-ny button { flex: none; height: auto; min-block-size: 48px; min-inline-size: 200px; padding: 10px 22px; border-radius: 12px; }
.slutova { display: flex; justify-content: center; }
.slutova .ovaknapp { min-block-size: 48px; min-inline-size: 200px; padding: 10px 22px; border-radius: 12px; font-weight: 600;
  background: var(--blue-soft); color: var(--blue-ink, var(--blue)); border: 1.5px solid var(--blue-ink, var(--blue)); }

/* ---- the top bar of the reader: Öva at any time (OVA-ROLL-5, Linh 2026-11-05), the end button's soft look at the bar's size ---- */
#readView #ovaTopp { flex: none; min-block-size: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--blue-ink, var(--blue)); background: var(--blue-soft); color: var(--blue-ink, var(--blue));
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
#readView #ovaTopp[hidden] { display: none; }
#readView #ovaTopp { display: inline-flex; align-items: center; justify-content: center; }
#readView #ovaTopp svg { display: none; inline-size: 22px; block-size: 22px; }
/* The word "Öva" while the opening shows; once the page has scrolled and the bar shows the episode's name (#readView.rullad, js/reader.js), the icon alone (the Tala rollen tile's speech bubbles) so the name has room;
   under 360 px always the icon (the bar has no room for the word beside the heart, the pin and the settings: pin2-vy V7 C9 at 320 px). The word stays its accessible name (Linh 2026-11-06, on an iPhone 13: the
   microphone read as weird, the word first so learners know what it means). */
#readView.rullad #ovaTopp { inline-size: 44px; padding: 0; } #readView.rullad #ovaTopp svg { display: block; } #readView.rullad #ovaTopp span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 359px) { #readView #ovaTopp { inline-size: 44px; padding: 0; } #readView #ovaTopp svg { display: block; } #readView #ovaTopp span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
#readView #ovaTopp:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- the page ---- */
body.ova-on { overflow: hidden; }
.ovasida { --ova-kort: var(--sunk, #ecebe6); --ova-bi: var(--blue-ink, var(--blue)); position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font-size: 17px; line-height: 1.45; }
/* Linh, 2026-11-05 (web): the page covers the whole window, so the reader never shows beside it; its content keeps the phone column of 560 px, centred (the sheet too; its shade covers everything) */
.ovasida > :not(.ova-skrim) { inline-size: 100%; max-inline-size: 560px; margin-inline: auto; }
.ovasida * { box-sizing: border-box; }
.ovasida button { font: inherit; }
.ova-top { display: flex; align-items: center; gap: 4px; min-block-size: 56px; padding: env(safe-area-inset-top) 4px 0; flex: none; }
.ova-top.ln { border-block-end: 1px solid var(--line); }
.ova-bk, .ova-ib { inline-size: 44px; block-size: 44px; display: grid; place-items: center; flex: none; padding: 0; border: 0; background: none; color: var(--ink); }
.ova-vem { display: flex; flex-direction: column; min-inline-size: 0; flex: 1; }
.ova-vem small { font-size: 14px; color: var(--granite); line-height: 1.25; overflow-wrap: anywhere; }
.ova-vem b { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; }

/* the practice types: icon tiles; a fourth and a fifth scroll sideways */
.ova-brickor { display: flex; gap: 8px; padding: 4px 16px 14px; flex: none; overflow-x: auto; scrollbar-width: none; }
.ova-bricka { flex: 1 0 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-block-size: 68px; padding: 8px 4px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.2; text-align: center; }
.ova-bricka svg { color: var(--granite); }
.ova-bricka[aria-current="true"] { background: var(--blue-soft); border-color: var(--ova-bi); font-weight: 600; }
.ova-bricka[aria-current="true"] svg { color: var(--ova-bi); }

/* the settings block: your role, the narrator */
.ova-inst { margin-inline: 16px; border-radius: 14px; background: var(--ova-kort); flex: none; }
.ova-rad { display: flex; align-items: center; justify-content: space-between; gap: 10px; inline-size: 100%; min-block-size: 52px; padding: 0 6px 0 14px; border: 0; background: none; color: var(--ink); font-size: 16px; text-align: start; }
.ova-rad + .ova-rad { border-block-start: 1px solid var(--line); }
.ova-rad .v { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; padding-inline-end: 8px; }
.ova-rad .v svg { color: var(--granite); }
.ova-tr { inline-size: 44px; block-size: 26px; border-radius: 13px; background: var(--line); position: relative; flex: none; margin-inline-end: 8px; transition: background .15s; }
.ova-tr::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: 20px; block-size: 20px; border-radius: 50%; background: var(--paper); transition: inset-inline-start .15s; }
[aria-checked="true"] > .ova-tr { background: var(--blue); }
[aria-checked="true"] > .ova-tr::after { inset-inline-start: 21px; }

/* the preview before start: quiet, fading out at the bottom */
.ova-forhand { flex: 1; min-block-size: 0; overflow: hidden; margin-block-start: 18px; border-block-start: 1px solid var(--line); padding: 16px 16px 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.ova-forhand::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 80px; background: linear-gradient(to top, var(--paper), transparent); pointer-events: none; }
.ova-n { font-size: 15px; color: var(--granite); font-style: italic; }
.ova-o { align-self: flex-start; max-inline-size: 80%; font-size: 15px; color: var(--granite); padding: 6px 10px; border-radius: 12px; background: var(--ova-kort); }
.ova-o i { display: block; font-style: normal; font-size: 14px; }
.ova-m { align-self: flex-end; max-inline-size: 80%; font-family: var(--serif); font-size: 16px; color: var(--granite); padding: 6px 10px; border-radius: 12px; border: 1.5px dashed var(--line); }

/* the bottom bar: Start and the one line under it, or Pause and Stop */
.ova-bar { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--paper); }
.ova-bar.ln { flex-direction: row; align-items: stretch; border-block-start: 1px solid var(--line); }
.ova-start, .ova-bar .ova-knapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 52px; min-inline-size: 220px; padding: 10px 22px; border-radius: 26px; border: 0;
  background: var(--blue); color: var(--on-blue); font-weight: 600; }
.ova-bar.ln .ova-knapp { flex: 1; min-inline-size: 0; min-block-size: 50px; border-radius: 12px; padding: 10px 18px; background: transparent; color: var(--ova-bi); border: 1.5px solid var(--ova-bi); font-weight: 500; }
[dir="rtl"] .ova-sm.hoppad .t { color: var(--granite); }
/* the run's bar: a big icon, a small word under it (Linh 2026-11-05); four equal columns, each at least 44 px wide and 64 px high */
.ova-bar.ln:has(.ova-kn) { gap: 4px; padding-block-start: 8px; padding-inline: 8px; }
.ova-bar .ova-kn { flex: 1 1 0; min-inline-size: 44px; min-block-size: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 2px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ova-bi); cursor: pointer; }
.ova-bar .ova-kn .ik { display: grid; place-items: center; inline-size: 48px; block-size: 40px; }
.ova-bar .ova-kn .ik svg { display: block; }
.ova-bar .ova-kn .tx { font-size: 14px; line-height: 1.2; font-weight: 500; text-align: center; overflow-wrap: anywhere; }
.ova-bar .ova-kn.huvud .ik { inline-size: 48px; block-size: 48px; border-radius: 50%; background: var(--blue); color: var(--on-blue); }
.ova-bar .ova-kn.huvud .tx { font-weight: 600; }
.ova-bar .ova-kn:disabled { color: var(--granite); opacity: .45; cursor: default; }
.ova-bar .ova-kn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
[dir="rtl"] .ova-bar #ovaBak .ik svg, [dir="rtl"] .ova-bar #ovaFram .ik svg { transform: scaleX(-1); }
.ova-bar.ln .ova-knapp.prim { background: var(--blue); color: var(--on-blue); border-color: var(--blue); font-weight: 600; }
.ova-knapp.gh { background: transparent; color: var(--ova-bi); border: 1.5px solid var(--ova-bi); font-weight: 500; }
.ova-lag { margin: 0; max-inline-size: 34ch; text-align: center; font-size: 14px; line-height: 1.4; color: var(--granite); }

/* the states with one thing to say */
.ova-mid { flex: 1; min-block-size: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 28px; text-align: center; overflow-y: auto; }
.ova-mid h2 { margin: 0; font-size: 20px; font-weight: 600; }
.ova-mid p { margin: 0; font-size: 16px; color: var(--granite); }
.ova-ikon { inline-size: 64px; block-size: 64px; border-radius: 32px; background: var(--ova-kort); display: grid; place-items: center; color: var(--granite); }
.ova-mid .ova-antal { font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--ink) !important; }
/* no microphone: the ways forward (OVA-UTAN-MIK) */
.ova-vagar { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: center; gap: 8px; max-inline-size: 34ch; font-size: 16px; line-height: 1.4; color: var(--granite); }
.ova-vag { min-block-size: 44px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ova-bi); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ova-vag:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ova-sk { flex: 1; padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; }
.ova-sk i { display: block; border-radius: 16px; background: var(--ova-kort); block-size: 44px; }

/* the run: what was said is small and grey above, the line now is large and last, nothing after it */
.ova-flodvy { flex: 1; min-block-size: 0; position: relative; display: flex; }
.ova-flodvy::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 90px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, var(--paper), transparent); }
.ova-flod { flex: 1; min-inline-size: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 16px 40px; overscroll-behavior: contain; }
.ova-flod > :first-child { margin-block-start: auto; }
.ova-sn { font-size: 14px; color: var(--granite); font-style: italic; text-align: center; padding: 0 16px; }
.ova-sn.av svg { vertical-align: -2px; margin-inline-end: 6px; }
.ova-so { align-self: flex-start; max-inline-size: 78%; font-size: 15px; color: var(--granite); padding: 6px 10px; border-radius: 12px; background: var(--ova-kort); }
.ova-so i { display: block; font-style: normal; font-size: 14px; }
.ova-sm { align-self: flex-end; max-inline-size: 84%; display: flex; align-items: center; gap: 6px; }
.ova-sm .t { font-family: var(--serif); font-size: 15px; color: var(--granite); padding: 6px 10px; border-radius: 12px; border: 1.5px solid var(--line); }
.ova-sm .g { flex: none; display: grid; place-items: center; color: var(--granite); }
.ova-sm .g.ok { color: var(--ok); }
.ova-cur { display: flex; flex-direction: column; gap: 8px; margin-block: 16px 18px; }
.ova-cur.me { align-items: flex-end; } .ova-cur.them { align-items: flex-start; } .ova-cur.nar { align-items: center; }
.ova-stat { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding-inline: 6px; }
.ova-stat.q { font-weight: 500; color: var(--granite); }
.ova-big { position: relative; max-inline-size: 94%; padding: 16px 18px; border-radius: 22px; font-family: var(--serif); font-size: 24px; line-height: 1.35; box-shadow: 0 8px 28px rgba(28, 29, 33, .10); overflow-wrap: anywhere; }
.ova-big::after { content: ""; position: absolute; inset-block-end: -9px; inline-size: 16px; block-size: 16px; transform: rotate(45deg); background: inherit; }
.me .ova-big { background: var(--paper); border: 2px solid var(--ova-bi); }
.me .ova-big::after { inset-inline-end: 30px; border-inline-end: 2px solid var(--ova-bi); border-block-end: 2px solid var(--ova-bi); }
.them .ova-big { background: var(--ova-kort); }
.them .ova-big::after { inset-inline-start: 30px; }
.nar .ova-big { background: none; box-shadow: none; font-style: italic; font-size: 21px; text-align: center; padding: 4px 8px; }
.nar .ova-big::after { display: none; }
.me.wait .ova-big { border-color: var(--line); box-shadow: none; }
.me.wait .ova-big::after { border-color: var(--line); }
@media (prefers-color-scheme: dark) { .ova-big { box-shadow: 0 8px 28px rgba(0, 0, 0, .4); } }
/* the green line: heard = green, not heard = dotted underline; a one- or two-letter word that was not heard is plain ink (it is never counted against you) */
.ovasida .ja { color: var(--ok); }
.ovasida .nej { color: var(--granite); text-decoration: underline dotted; text-underline-offset: 4px; }
.ovasida .kort { color: inherit; }
.ova-dot { inline-size: 12px; block-size: 12px; border-radius: 50%; background: var(--bad); flex: none; animation: sagpuls 1s ease-in-out infinite; }
body.stilla .ovasida .ova-dot { animation: none; }
body.dold .ovasida .ova-dot { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .ova-dot { animation: none; } }
.ova-ban { align-self: center; border-radius: 20px; background: var(--blue-soft); padding: 8px 14px; font-size: 15px; text-align: center; }

/* the sheets: role and narrator */
.ova-skrim { position: absolute; inset: 0; z-index: 3; background: rgba(20, 20, 22, .45); }
.ova-blad { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 4; background: var(--paper); border-radius: 20px 20px 0 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; max-block-size: 80%; overflow-y: auto; }
.ova-grab { inline-size: 40px; block-size: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.ova-blad h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.ova-blad .ova-inst { margin-inline: 0; }
.ova-val { display: flex; align-items: center; gap: 12px; min-block-size: 56px; inline-size: 100%; padding: 0; border: 0; border-block-start: 1px solid var(--line); background: none; color: var(--ink); text-align: start; }
.ova-val .rad { inline-size: 22px; block-size: 22px; border-radius: 50%; border: 2px solid var(--granite); flex: none; display: grid; place-items: center; }
.ova-val[aria-checked="true"] .rad { border-color: var(--ova-bi); }
.ova-val[aria-checked="true"] .rad::after { content: ""; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--ova-bi); }
.ova-val .sub { display: block; font-size: 14px; color: var(--granite); }
.ova-val .antal { margin-inline-start: auto; color: var(--granite); font-size: 15px; }
.ova-blad .ova-knapp { align-self: stretch; margin-block-start: 8px; min-block-size: 48px; border-radius: 12px; }

/* the other two practice types, as they are today */
.ova-inre { flex: 1; min-block-size: 0; overflow-y: auto; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.ova-inre .ovasamtal { margin: 0; }
.ova-inre .ovaintro { font-size: 17px; }
.ova-inre .ovatips summary { display: flex; align-items: center; min-block-size: 44px; }   /* 44 px targets on the page (OVA-ROLL-5) */
.ova-inre .ovasamtal .aier a { display: inline-flex; align-items: center; min-block-size: 44px; }
.ova-inre .ovasamtal button { min-block-size: 44px; }

/* the visible text of a live region that only a screen reader needs */
.ova-sr { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the summary (OVA-ROLL-4; docs/design/ova-rollen/4-sammanfattning.dc.html, 7-morkt.dc.html): the pet and its sentence, Säg igen, the words to save, Öva igen and Till berättelsen ---- */
.ova-sum { flex: 1; min-block-size: 0; overflow-y: auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.ova-hero { border-radius: 20px; background: var(--blue-soft); padding: 14px 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: none; }
.ova-speak { display: flex; align-items: flex-start; gap: 4px; align-self: stretch; }
.ova-petbox { position: relative; flex: none; display: grid; place-items: end center; inline-size: 128px; block-size: 104px; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 16px; color: inherit; }
.ova-petbox:focus-visible { outline: 3px solid var(--blue-ink, var(--blue)); outline-offset: 2px; }
.ova-petbox svg.pet { inline-size: 100%; block-size: 100%; display: block; overflow: visible; transform-origin: 50% 100%; }
.ova-say { position: relative; flex: 1; min-inline-size: 0; margin-block-start: 4px; background: var(--paper); border-radius: 16px; padding: 10px 16px; font-family: var(--serif); font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.ova-say::before { content: ""; position: absolute; inset-block-start: 16px; inset-inline-start: -7px; inline-size: 14px; block-size: 14px; background: var(--paper); transform: rotate(45deg); }
.ova-say.solo { margin-block-start: 0; align-self: stretch; }
.ova-say.solo::before { display: none; }
.ova-hero .ova-antal { margin: 0; font-size: 16px; line-height: 1.4; }
/* the hop and the sparks: two identical animations under two names, so that a tap starts it again; the sparks are the page's own (the three motion lists of css/app.css hold .ova-spark i) */
.ova-petbox.hop-a svg.pet { animation: ovaHopA .8s cubic-bezier(.3, .7, .4, 1); }
.ova-petbox.hop-b svg.pet { animation: ovaHopB .8s cubic-bezier(.3, .7, .4, 1); }
@keyframes ovaHopA { 0% { transform: none; } 15% { transform: translateY(2px) scale(1.06, .92); } 40% { transform: translateY(-22px) scale(.96, 1.05) rotate(-4deg); } 65% { transform: translateY(0) scale(1.04, .95); } 80% { transform: translateY(-5px); } 100% { transform: none; } }
@keyframes ovaHopB { 0% { transform: none; } 15% { transform: translateY(2px) scale(1.06, .92); } 40% { transform: translateY(-22px) scale(.96, 1.05) rotate(-4deg); } 65% { transform: translateY(0) scale(1.04, .95); } 80% { transform: translateY(-5px); } 100% { transform: none; } }
.ova-spark { position: absolute; inset: 0; pointer-events: none; }
.ova-spark i { position: absolute; inset-inline-start: 50%; inset-block-start: 40%; inline-size: 12px; block-size: 12px; opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.hop-a .ova-spark i { animation: ovaSparkA 1s ease-out .15s; }
.hop-b .ova-spark i { animation: ovaSparkB 1s ease-out .15s; }
@keyframes ovaSparkA { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.1) rotate(120deg); } }
@keyframes ovaSparkB { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.1) rotate(120deg); } }
body.stilla .ova-petbox svg.pet, body.stilla .ova-spark i { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .ova-petbox svg.pet, .ova-spark i { animation: none !important; } }

.ova-grp { border-radius: 16px; background: var(--ova-kort); padding: 4px 14px 8px; flex: none; }
.ova-grp h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 600; margin: 10px 0 4px; }
.ova-grp h2 bdi { font-weight: 500; font-size: 14px; color: var(--granite); }
.ova-lrad { display: flex; align-items: center; gap: 6px; min-block-size: 56px; border-block-start: 1px solid var(--line); padding-block: 4px; }
.ova-lrad:first-of-type { border-block-start: 0; }
.ova-lrad .ln { flex: 1; min-inline-size: 0; font-family: var(--serif); font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.ova-lrad .ln .g { display: inline-grid; vertical-align: middle; color: var(--ok); margin-inline-start: 6px; }
.ova-rs { display: flex; align-items: center; gap: 8px; margin-block-end: 2px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); }
.ova-lib { flex: none; inline-size: 44px; block-size: 44px; border-radius: 22px; display: grid; place-items: center; padding: 0; border: 0; background: var(--paper); color: var(--ova-bi); }
.ova-lib:disabled { opacity: .45; }
.ova-lib[aria-pressed="true"] { background: var(--blue-soft); }
.ova-alla { display: flex; justify-content: center; padding-block: 4px; border-block-start: 1px solid var(--line); }
.ova-alla button { min-block-size: 44px; padding: 0 16px; border: 0; background: none; color: var(--ova-bi); font-weight: 500; }
.ova-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px; }
.ova-chip { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding: 0 14px 0 12px; border-radius: 22px; border: 1.5px solid var(--ova-bi); background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; max-inline-size: 100%; overflow-wrap: anywhere; }
.ova-chip svg { color: var(--ova-bi); flex: none; }
.ova-chip.sv { background: var(--blue-soft); }
.ova-chip.sv svg { color: var(--ok); }
.ova-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 2px; flex: none; }
.ova-akt { flex: 1 1 140px; display: flex; align-items: center; justify-content: center; min-block-size: 50px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--ova-bi); background: transparent; color: var(--ova-bi); font-weight: 500; line-height: 1.2; text-align: center; }
.ova-akt.prim { background: var(--blue); border-color: var(--blue); color: var(--on-blue); font-weight: 600; }

/* ---- the Skriv tab (SKRIV-3 to SKRIV-6, js/skriv.js): 375 px first, no fixed width, 44 px targets, nothing told by colour alone ---- */
.skr { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
.skr > * { min-inline-size: 0; }
.skr [hidden] { display: none !important; }
.skr-beskr { margin: 0; font-size: 17px; }
.skr-label { font-weight: 600; }
.skr-box { inline-size: 100%; box-sizing: border-box; min-block-size: 140px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.45; resize: vertical; }
.skr-box:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.skr-fall { min-block-size: 96px; font-size: 16px; }
.skr-meta { margin: 0; font-size: 14px; color: var(--granite); }
.skr-rakna { margin: 0; font-size: 15px; color: var(--granite); }
.skr-grp { display: flex; flex-direction: column; gap: 6px; }
.skr-gl { margin: 0; font-size: 14px; color: var(--granite); }
.skr-knappar { display: flex; flex-wrap: wrap; gap: 8px; }
.skr-chip { min-block-size: 44px; max-inline-size: 100%; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--ova-bi); background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; overflow-wrap: anywhere; cursor: pointer; }
.skr-vik, .skr-knapp { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--ova-bi); background: transparent; color: var(--ova-bi); font: inherit; font-weight: 500; line-height: 1.2; text-align: center; cursor: pointer; max-inline-size: 100%; }
.skr-vik { align-self: flex-start; }
.skr-vik[aria-expanded="true"]::before { content: "\2212\00a0"; } /* a minus sign when open, so the state is not colour alone */
.skr-vik[aria-expanded="false"]::before { content: "+\00a0"; }
.skr-knapp.prim { background: var(--blue); border-color: var(--blue); color: var(--on-blue); font-weight: 600; }
.skr-knapp:disabled { opacity: .55; cursor: default; }
.skr-knapp.small { min-block-size: 44px; padding: 6px 12px; }
.skr-rad { display: flex; }
.skr-fraga { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--ova-kort); inline-size: 100%; box-sizing: border-box; }
.skr-fraga .skr-rad { flex-wrap: wrap; gap: 8px; }
.skr-kopia, .skr-svar, .skr-klistra { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.skr-kopia > .skr-box, .skr-klistra > .skr-box { align-self: stretch; }
.skr-kort { margin: 0; font-size: 15px; line-height: 1.4; }
.skr-aier { display: flex; flex-wrap: wrap; gap: 8px; }
.skr-aier a { display: inline-flex; align-items: center; gap: 4px; min-block-size: 44px; padding: 0 6px; }
.skr-fraser { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; inline-size: 100%; }
.skr-fraser li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--ova-kort); }
.skr-fraser li > span { min-inline-size: 0; flex: 1; overflow-wrap: anywhere; }
.skr-fraser small, .skr-fraser i { display: block; font-size: 14px; color: var(--granite); }
.skr-blad { max-block-size: 85%; }
.skr-text { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overflow-wrap: anywhere; padding-inline: 2px; }
.skr-text:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.skr-text p { margin: 0 0 10px; }

/* ---- the Lär dig tab (MORMOR-5d, js/lar.js; docs/design/lar-dig.md and docs/design/lar-dig/*.dc.html): 375 px first, logical properties, 44 px targets, nothing under 14 px, nothing told by colour alone.
   No animation anywhere in this tab (design section 11): the playing state is a fill, the loading blocks are static, nothing moves when a control is used. --ok is never a text colour (about 4.2:1 on the card). ---- */
.lar { display: flex; flex-direction: column; gap: 28px; min-inline-size: 0; }
.lar > * { min-inline-size: 0; }
.lar-blk { display: flex; flex-direction: column; gap: 12px; }
.lar h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; }
.lar h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.lar h2:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.lar-sv { font-family: var(--serif); font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.lar-gl { font-size: 16px; color: var(--granite); margin-inline-start: 6px; }
.lar-meta { margin: 0; font-size: 15px; color: var(--granite); line-height: 1.4; }
/* Words */
.lar-ordl { list-style: none; margin: 0; padding: 0; }
.lar-ord { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; padding: 10px 0; border-block-start: 1px solid var(--line); }
.lar-ord:first-child { border-block-start: 0; padding-block-start: 0; }
.lar-tx { flex: 1 1 150px; min-inline-size: 0; padding-block-start: 1px; overflow-wrap: anywhere; }
.lar-nt { display: block; font-size: 15px; color: var(--granite); line-height: 1.4; margin-block-start: 2px; }
.lar .lar-spela { inline-size: 44px; block-size: 44px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1.5px solid var(--ova-bi); background: transparent; color: var(--ova-bi); cursor: pointer; }
.lar .lar-spela.spelar, .lar .lar-bit.spelar, .lar .lar-stor.spelar { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.lar .lar-bit.spelar .lar-gl, .lar .lar-bit.spelar .lar-sv { color: var(--on-blue); }
.lar .lar-sp { min-block-size: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--ova-bi); background: transparent; color: var(--ova-bi); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex: none; margin-inline-start: auto; cursor: pointer; }
.lar .lar-sp.on { border-color: transparent; color: var(--ink); font-weight: 500; cursor: default; }
.lar .lar-sp.on svg { color: var(--ok); }
/* teaching cards */
.lar-kort { background: var(--ova-kort); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.lar-text { margin: 0; max-inline-size: 60ch; font-size: 17px; line-height: 1.45; }
/* LAR-FRI: the text a person wrote (Bra att veta): paragraphs, subheadings and bullets, nothing to tap */
.lar-fri { gap: 10px; overflow-wrap: anywhere; }
.lar-fri h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.3; font-weight: 600; }
.lar-fri h3:first-child { margin-block-start: 0; }
/* LAR-KALLA: the text's source and date, last, small and quieter (the ink at 75 %, which keeps the contrast in both themes) */
.lar-fri-kalla { margin: 2px 0 0; padding-block-start: 8px; border-block-start: 1px solid color-mix(in srgb, currentColor 22%, transparent); max-inline-size: 60ch; font-size: 14px; line-height: 1.4; font-style: italic; opacity: .78; }
.lar-fri-l { margin: 0; padding-inline-start: 22px; max-inline-size: 60ch; font-size: 17px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.lar-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lar .lar-bit { position: relative; min-block-size: 84px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--ova-bi); background: var(--paper); color: var(--ink); text-align: start; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; cursor: pointer; }
.lar .lar-bit .lar-sv { font-size: 26px; line-height: 1.2; }
.lar .lar-bit .lar-gl { margin: 0; min-block-size: 1.4em; }
.lar-bi { position: absolute; inset-inline-end: 10px; inset-block-start: 10px; color: var(--ova-bi); display: grid; }
.lar .lar-bit.spelar .lar-bi { color: var(--on-blue); }
.lar-xl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lar-rad + .lar-rad { border-block-start: 1px solid var(--line); }
.lar-rad button { inline-size: 100%; min-block-size: 52px; padding: 4px 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--ink); text-align: start; cursor: pointer; }
.lar-rad button.spelar .lar-ic { color: var(--on-blue); background: var(--blue); }
.lar-ic { inline-size: 44px; block-size: 44px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--ova-bi); }
.lar-rt { flex: 1; min-inline-size: 0; overflow-wrap: anywhere; }
.lar .lar-vik { align-self: flex-start; min-block-size: 44px; padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--ova-bi); background: transparent; color: var(--ova-bi); font-weight: 500; cursor: pointer; }
.lar .lar-vik[aria-expanded="true"]::before { content: "\2212\00a0"; } /* a minus sign when open, so the state is not colour alone */
.lar .lar-vik[aria-expanded="false"]::before { content: "+\00a0"; }
/* Check yourself */
.lar-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lar-cnt { font-size: 15px; color: var(--granite); white-space: nowrap; }
.lar-fraga { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.lar-q { margin: 0; font-size: 16px; font-weight: 600; }
.lar .lar-stor { align-self: flex-start; min-block-size: 56px; padding: 0 20px 0 16px; border-radius: 28px; border: 1.5px solid var(--ova-bi); background: var(--blue-soft); color: var(--ova-bi); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.lar-sats { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.lar-gap { display: inline-block; min-inline-size: 56px; text-align: center; border-block-end: 2.5px solid var(--ink); }
.lar-gap.f { font-weight: 600; }
.lar-val { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.lar-val.ett { grid-template-columns: 1fr; }
.lar .lar-o { min-block-size: 52px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.3; text-align: start; display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; cursor: pointer; }
.lar .lar-o.ok { border: 2px solid var(--ok); background: var(--blue-soft); }
.lar .lar-o.ok svg { color: var(--ok); flex: none; }
.lar .lar-o.tried { border-style: dotted; border-color: var(--granite); color: var(--granite); }
.lar .lar-o.tried svg { color: var(--granite); flex: none; }
.lar .lar-o[aria-disabled="true"] { cursor: default; }
.lar-say { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; line-height: 1.4; min-block-size: 24px; }
.lar-say svg { flex: none; margin-block-start: 1px; }
.lar-say > svg:first-child { color: var(--ok); }
.lar-re { display: inline-grid; color: var(--ova-bi); }
.lar-say b { font-weight: 600; }
.lar .lar-o:focus-visible, .lar .lar-spela:focus-visible, .lar .lar-sp:focus-visible, .lar .lar-bit:focus-visible, .lar-rad button:focus-visible, .lar .lar-vik:focus-visible, .lar .lar-stor:focus-visible, .lar .lar-knapp:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* states: loading (static grey blocks, no shimmer) and a failed bank (one banner, the rest of the page stays) */
.lar-sk { display: flex; flex-direction: column; gap: 10px; }
.lar-sk i { display: block; border-radius: 16px; background: var(--line); block-size: 20px; }
.lar-sk i + i { inline-size: 70%; }
.lar-ban { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--ova-kort); }
.lar-ban p { margin: 0; font-size: 16px; }
.lar .lar-knapp { min-block-size: 44px; padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--ova-bi); background: transparent; color: var(--ova-bi); font-weight: 600; cursor: pointer; }
.lar .lar-knapp:disabled { cursor: default; }
