/* Min dag: I dag on top, Framsteg below (design "Framsteg - I dag", runda 2 = option 1b).
   Replaces the Din vecka rules removed from css/for-dig.css. The class names the smoke
   tests use are kept (.dinvecka, .dvrad[data-dv], .dvlage, .dvmin, .dvring, .dvvalfri, .dvmal, .dvga, .dvlista, .fstats);
   only their look changes. No motion: the pulse, the shimmer and the gold "alla" card are gone. */

/* ---- the zone: check-in notice + the plan, on a tinted band ---- */
#framstegView .idagzon {
  /* full bleed: main's own side padding is 1em, so the band reaches the screen edges at any phone width */
  margin-inline: -1em; margin-top: 0;
  padding-block: 12px 22px; padding-inline: 1em;
  background: var(--blue-soft);
  display: grid; gap: 10px;
}
#framstegView .idagzon > #incheckPlats:empty { display: none; }
#framstegView .idagzon .lasidag { margin: 0; }

/* ---- the weekly check-in, folded to a notice ---- */
.icnotis { display: flex; align-items: center; gap: 8px; padding-block: 6px; padding-inline: 14px 2px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--blue-ink, var(--blue)); }
.icnotis .icnotistext { flex: 1; min-width: 0; display: grid; }
.icnotis .icnotistext b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.icnotis .icnotistext small { font-size: 14px; color: var(--granite); }
.icnotis .icsvara { flex: none; min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 600; } /* keeps app.css's purple fill */
.icnotis .icdolj { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--granite); display: grid; place-items: center; }
.icnotis .icdolj:hover { background: var(--sunk); }
.icnotis .icdolj svg { width: 18px; height: 18px; }
#framstegView .idagzon .incheck { margin: 0; } /* the opened card, in the same place */

/* ---- the plan ---- */
.idagzon .dinvecka { display: grid; gap: 12px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: 0; overflow: visible; }
.dinvecka .dvhead { display: flex; align-items: center; gap: 12px; padding: 0; background: none; color: var(--ink); }
.dinvecka .dvtitel { flex: 1; min-width: 0; display: grid; gap: 0; }
.dinvecka .dvkickrad:empty { display: none; } /* only the language chip lives here now, with 2 study languages */
.dinvecka .dvhead h2 { margin: 0; font: 500 30px/1.15 var(--serif); letter-spacing: 0; color: var(--ink); }
.dinvecka .dvmin { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; color: var(--granite); }
.dinvecka .dvmin .link { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--blue-ink, var(--blue)); font-weight: 600; text-decoration: none; }
.dinvecka .dvring { position: relative; width: 60px; height: 60px; flex: none; display: grid; place-items: center; }
.dinvecka .dvring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dinvecka .dvringbak { fill: var(--card); stroke: var(--card); stroke-width: 4.5; }
.dinvecka .dvringfram { fill: none; stroke: var(--blue); stroke-width: 4.5; stroke-linecap: round; transition: none; }
.dinvecka .dvring b { position: relative; font-size: 16px; font-weight: 700; color: var(--ink); }
.dinvecka .dvlage, .dinvecka .dvny { margin: 0; padding: 0; border: 0; background: none; font-size: 15px; line-height: 1.4; color: var(--ink); }
.dinvecka .dvmal { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding-block: 6px; padding-inline: 12px 2px; border: 0; border-radius: 12px; background: var(--card); font-size: 15px; color: var(--granite); }
.dinvecka .dvmal .dvmalok { margin-inline-start: auto; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; background: none; color: var(--granite); font-size: 20px; }

/* the next step */
.dvnasta { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 12px; border-radius: 20px; background: var(--blue); color: var(--on-blue); }
.dvnasta .dvnkick { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dvnasta .dvnkick svg { width: 12px; height: 12px; }
.dvnasta .dvnkick, .dvnasta .dvnsub { color: color-mix(in srgb, var(--on-blue) 82%, var(--blue)); } /* LASVY: 5.6 : 1 light; dark ink on lavender in dark */
.dvnasta .dvntitel { margin: 0; font: 500 30px/1.1 var(--serif); overflow-wrap: anywhere; hyphens: manual; } /* auto split "avsnitt" in a short title; anywhere still keeps a long word inside */
.dvnasta .dvnsub { margin: 0; font-size: 16px; line-height: 1.4; }
.dvnasta .dvncta { margin-top: 12px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--on-blue); color: var(--blue); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 700; }
.dvnasta .dvncta svg { width: 16px; height: 16px; }
.dvnasta .dvnannat { align-self: center; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--on-blue); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dvnasta :focus-visible { outline: 3px solid var(--on-blue); outline-offset: 2px; } /* terracotta on purple is too faint */
.dvnasta.klar { flex-direction: row; align-items: center; gap: 14px; padding: 16px; background: var(--ok-soft); color: var(--ink); border: 1.5px solid var(--ok); }
.dvnasta.klar .dvnbock { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--ok); color: var(--on-ok); display: grid; place-items: center; }
.dvnasta.klar .dvnbock svg { width: 26px; height: 26px; }
.dvnasta.klar .dvntitel { font-size: 24px; }
.dvnasta.klar .dvnsub { margin-top: 2px; font-size: 15px; color: var(--granite); }

/* the checklist */
.dinvecka .dvlista { list-style: none; margin: 0; padding: 0; display: block; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.dinvecka .dvrad { position: static; display: flex; align-items: center; gap: 12px; min-height: 64px; padding-block: 10px; padding-inline: 14px 6px; background: transparent; }
.dinvecka .dvrad + .dvrad { border-top: 1px solid var(--line); }
.dinvecka .dvrad.nu { background: var(--blue-soft); }
.dinvecka .dvrad.nu::before { content: none; }
.dinvecka .dvbox { width: 26px; height: 26px; flex: none; border: 2px solid var(--granite); border-radius: 8px; background: none; color: var(--on-ok); display: grid; place-items: center; }
.dinvecka .dvrad.klar .dvbox { border: 0; background: var(--ok); }
.dinvecka .dvrad.last .dvbox { border: 0; background: var(--sunk); color: var(--granite); }
.dinvecka .dvbox svg { width: 15px; height: 15px; }
.dinvecka .dvtext { flex: 1; min-width: 0; display: grid; gap: 3px; }
.dinvecka .dvrubrikrad { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dinvecka .dvtext b, .dinvecka .dvrad.klar .dvtext b, .dinvecka .dvrad.nu .dvtext b, .dinvecka .dvrad.valfri .dvtext b { font: 500 19px/1.25 var(--serif); color: var(--ink); }
.dinvecka .dvrad.klar .dvtext b { color: var(--granite); } /* LASVY: done is the title only, quieter */
.dinvecka .dvtext small { font-size: 14px; line-height: 1.4; color: var(--granite); }
.dinvecka .dvfast { display: inline-block; vertical-align: -2px; margin-inline-end: 5px; color: var(--blue-ink, var(--blue)); } /* PIN-1: the pin before the line of the listen row while the pin is in force and names its story */
.dinvecka .dvrad.last .dvtext small { color: var(--granite); }
.dinvecka .dvsteg { font-weight: 600; } /* a situation's Steg, in the line under its title (replaces .dvtext small.nsitsteg) */
.dinvecka .dvnutagg { padding: 0 8px; border-radius: 6px; background: var(--blue); color: var(--on-blue); font-size: 14px; font-weight: 700; }
.dinvecka .dvvalfri { padding: 0 7px; border-radius: 6px; border: 1.5px solid var(--granite); color: var(--granite); font-size: 14px; font-weight: 600; white-space: nowrap; }
.dinvecka .dvga, .dinvecka .dvrad.nu .dvga { width: 44px; height: 44px; flex: none; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--blue-ink, var(--blue)); box-shadow: none; animation: none; filter: none; display: grid; place-items: center; }
.dinvecka .dvga:hover, .dinvecka .dvga:focus-visible { background: var(--blue-soft); }
.dinvecka .dvrad.klar .dvga { color: var(--granite); } /* IDAG-IGEN: a done row keeps its button, as quiet as its title */
.dinvecka .dvrad.klar .dvnamn.ls-hand { font-family: "Caveat namn", var(--serif); font-size: 1.3em; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--ink); } /* IDAG-IGEN: the name in a done row hand-written (js/serienamn.js handKlass), as on Läs */
.dinvecka .dvrad.klar .dvnamn.ls-hand2 { font-family: "Patrick Hand", var(--serif); font-weight: 400; letter-spacing: 0; font-size: 1.2em; line-height: 1; color: var(--ink); } /* HAND-VI: Patrick Hand, as the row's Caveat name */
.dinvecka .dvrad.nu .dvga:hover, .dinvecka .dvrad.nu .dvga:focus-visible { background: var(--card); }
.dinvecka .dvsr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .dinvecka .dvga svg, [dir="rtl"] .dvnasta .dvncta svg, [dir="rtl"] .dvnasta .dvnkick svg { transform: scaleX(-1); } /* the chevrons and the play triangles; I.pil and I.spela carry no class to match */

/* loading: static blocks at final heights, no shimmer */
.dvskelett { display: grid; gap: 12px; }
.dvskelett i { display: block; border-radius: 16px; background: var(--card); opacity: .75; }
.dvskelett .sk-huvud { display: flex; align-items: center; gap: 12px; }
.dvskelett .sk-huvud > span { flex: 1; display: grid; gap: 10px; }
.dvskelett .sk-titel { width: 96px; height: 34px; border-radius: 8px; }
.dvskelett .sk-rad { width: 170px; height: 18px; border-radius: 6px; }
.dvskelett .sk-ring { width: 60px; height: 60px; border-radius: 50%; flex: none; }
.dvskelett .sk-nasta { height: 212px; border-radius: 20px; }
.dvskelett .sk-lista { height: 258px; }

/* ---- Framsteg, under the zone ---- */
/* Min dag is the page's one h1 (js/glosor.js) and stays off screen: the page starts at I dag */
#framstegView .minrubrik { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#framstegView .framrubrik { margin: 26px 0 0; font: 500 26px/1.15 var(--serif); }

/* ---- IDAG-VAL (Linh 2026-11-20): the day's listen as either/or ----
   The card: the plan's suggestion and its button as before; under it "eller" on a rule, the other kind as a tile with its own
   button, and one line ("En av dem räcker i dag"). The tile is lighter than the card's main button but just as wide and tall,
   so the two read as two answers to one question. The row: "eller" and a pill button naming the other kind, under the row's line. */
.dvnasta .dvnalt { display: grid; gap: 8px; margin-top: 4px; }
.dvnasta .dvvalmitt { display: flex; align-items: center; gap: 10px; margin: 6px 2px 0; font-size: 15px; font-weight: 700; font-style: italic; color: var(--on-blue); }
.dvnasta .dvvalmitt::before, .dvnasta .dvvalmitt::after { content: ""; flex: 1; height: 1.5px; background: color-mix(in srgb, var(--on-blue) 40%, var(--blue)); }
.dvnasta .dvvalkort { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 0; padding: 12px 14px; border: 1.5px solid color-mix(in srgb, var(--on-blue) 45%, var(--blue)); border-radius: 14px; background: color-mix(in srgb, var(--on-blue) 10%, var(--blue)); color: var(--on-blue); text-align: start; font: inherit; cursor: pointer; }
.dvnasta .dvvalkort:hover { background: color-mix(in srgb, var(--on-blue) 18%, var(--blue)); }
.dvnasta .dvvaltyp { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--on-blue) 82%, var(--blue)); }
.dvnasta .dvvalnamn { font: 500 22px/1.15 var(--serif); overflow-wrap: anywhere; }
.dvnasta .dvvalnamn.ls-hand { font-family: "Caveat namn", var(--serif); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: 0; overflow-wrap: normal; }
.dvnasta .dvvalnamn.ls-hand2 { font-family: "Patrick Hand", var(--serif); font-weight: 400; letter-spacing: 0; font-size: 26px; line-height: 1.05; overflow-wrap: normal; }
.dvnasta .dvvalsub { font-size: 15px; line-height: 1.35; color: color-mix(in srgb, var(--on-blue) 82%, var(--blue)); }
.dvnasta .dvvalga { margin-top: 8px; align-self: stretch; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--on-blue); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 700; }
.dvnasta .dvvalga svg { width: 16px; height: 16px; }
.dvnasta .dvvalen { margin: 0; text-align: center; font-size: 15px; line-height: 1.4; color: color-mix(in srgb, var(--on-blue) 82%, var(--blue)); }
.dinvecka .dvrad:has(.dvalt) { flex-wrap: wrap; }
.dinvecka .dvalt { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: -4px; padding-inline-start: 38px; } /* under the text: the box (26) and the gap (12) */
.dinvecka .dvvaleller { font-size: 14px; font-style: italic; color: var(--granite); }
.dinvecka .dvvalchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 44px; margin: 0; padding: 4px 14px; border: 1.5px solid var(--blue); border-radius: 999px; background: var(--card); color: var(--blue-ink, var(--blue)); font-size: 15px; font-weight: 700; text-align: start; }
.dinvecka .dvvalchip svg { width: 14px; height: 14px; flex: none; }
.dinvecka .dvvalchip:hover, .dinvecka .dvvalchip:focus-visible { background: var(--blue-soft); }
[dir="rtl"] .dvnasta .dvvalkort svg, [dir="rtl"] .dinvecka .dvvalchip svg { transform: scaleX(-1); }
