/* =====================================================================================================================
   VISUAL SYSTEM v8: Home and its sub-pages (17 October 2026). Loads after base.css. Views: ../../prototype/app/v8-home.js.
   Spec: ../../old/explore/visual/VISUAL-SPEC.md sections 8.1 and 25. Every rule starts with `#v8 #app` (2 ids, see README 2);
   !important only on font-size and font-weight. No font-size inside a media query: layout responds, type does not.
   ===================================================================================================================== */

/* ---------- Shared on these pages ---------- */
#v8 #app .v8-hm-p { max-width: var(--v8-measure); color: var(--v8-ink); }
#v8 #app .v8-hm-after { margin-top: var(--v8-5); }
#v8 #app .v8-hm-noprice .v8-price { display: none; }

/* ---------- Home: the greeting and five tiles (explore/simplify/SPEC.md section 2, 18 October 2026, night) ----------
   Janne: "I would like this visualized dashboard that you could combine ... it should be somehow more contained." The lean hero
   (V8.hero type home: the greeting, one sentence, two actions, the town; no plate, no cards, README 35), then one dashboard on
   the same mint: five white tiles, the footer after it. Views: v8-home.js (tile, claimsTile, payTile, msgTile, covTile, insTile,
   bento). Widths (SPEC 2.1): from 1440 three measured columns (32 : 28,5 : 38,5, what each tile holds at 1440), the coverage
   spanning the first two and the insight in the third, so the edge between the payment and the messages runs on into the edge
   between the coverage and the insight; from 640 to 1439 two across (claims and payment side by side, the rest full width); below
   640 one column in reading order. A role with one or two of the first three gets them side by side or full width */

/* The hero stands on the dashboard: 48 under the actions (room to breathe before the tiles), and the town stands on the tiles' top
   edge (base.css's floor town) */
#v8 #app .v8-hm-home > .v8-hero { padding-bottom: var(--v8-8); }
/* Below 1360 the scene is smaller; under 1024 smaller still. Where it would meet the text it stands on its own row above the
   tiles (the hero's own room for it), as the spec's 1024 and 390 builds do */
@media (max-width: 1199px) {
  #v8 #app .v8-hm-home > .v8-hero:has(> .v8-town) { padding-bottom: calc(64px + var(--v8-6)); }
}
/* push: also answers to the page area's width (branch ai-drawer README, the push layout) */
@container app (max-width: 1199px) {
  #v8 #app .v8-hm-home > .v8-hero:has(> .v8-town) { padding-bottom: calc(64px + var(--v8-6)); }}
@media (max-width: 1023px) {
  #v8 #app .v8-hm-home > .v8-hero:has(> .v8-town) { padding-bottom: calc(2 * var(--v8-scene-u) + var(--v8-5)); }
}

/* The floor: the hero's mint runs on, full bleed, to the footer (it cancels the page's own bottom padding, as the band does) */
#v8 #app .v8-hm-floor { margin: 0 calc(-1 * var(--v8-bleed)) calc(-1 * var(--v8-page-b)); padding: 0 var(--v8-bleed) var(--v8-8); background: var(--v8-mint); }
/* The roles' line (v8-home.js roleNote) on the floor, white like the tiles, 16 above them */
#v8 #app .v8-hm-floor > .ro-line { margin: 0 0 var(--v8-cards) !important; background: var(--v8-white) !important; }
#v8 #app .v8-hm-bento { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v8-cards); align-items: stretch; }
/* Round Q (19 October 2026): Your next payment left; Ongoing claims is the wide tile. From 1200 three columns (32 : 28,5 : 38,5): the
   claims span the first two and Messages takes the third; How well you're covered spans the first two under them and the insight
   takes the third, so both rows share one edge. Under 1200 one column in reading order */
/* push: also answers to the page area's width (branch ai-drawer README, the push layout) */
@media (min-width: 1200px) { @container app (min-width: 1200px) {
  #v8 #app .v8-hm-bento { grid-template-columns: minmax(0, 32fr) minmax(0, 28.5fr) minmax(0, 38.5fr); }
  #v8 #app .v8-hm-bento > :is(.v8-hm-t-claims, .v8-hm-t-cov) { grid-column: 1 / span 2; }
  #v8 #app .v8-hm-bento > :is(.v8-hm-t-msg, .v8-hm-ins) { grid-column: 3; }
  #v8 #app .v8-hm-r1 > .v8-hm-tile:first-child, #v8 #app .v8-hm-noins > .v8-hm-t-cov { grid-column: 1 / -1; }
} }

/* The tile (SPEC 2.1 "Tile anatomy"): white, 16 corners, 24 in; the title 20 Bold with the illustration at 40 on its right (the
   head is the art's height), the body 8 under it, the cue at the foot */
/* Lifted off the mint by a three-layer shadow: a 1px ring, a tight lift, a soft ambient (forced colours draw the border instead) */
#v8 #app .v8-hm-tile { position: relative; display: flex; flex-direction: column; min-width: 0; padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-white);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04); }
#v8 #app .v8-hm-th { display: flex; align-items: center; justify-content: space-between; gap: var(--v8-4); min-height: 40px; }
#v8 #app .v8-hm-tt { min-width: 0; margin: 0; font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; color: var(--v8-ink); }
#v8 #app .v8-hm-art { flex: none; display: block; width: 40px; height: 40px; }
#v8 #app .v8-hm-art :is(img, svg) { display: block; width: 40px; height: 40px; }
#v8 #app .v8-hm-tb { display: grid; gap: var(--v8-3); margin-top: var(--v8-2); min-width: 0; }
/* The figure 28 Bold deep green, its label under it */
#v8 #app .v8-hm-fig { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
#v8 #app .v8-hm-fig > b { font-size: var(--v8-fs-28) !important; line-height: var(--v8-lh-28) !important; font-weight: 700 !important; color: var(--v8-deep); white-space: nowrap; }
#v8 #app .v8-hm-fig > span { color: var(--v8-ink-2); }
#v8 #app .v8-hm-tl { margin: 0; max-width: var(--v8-measure); color: var(--v8-ink); }
/* The figure beside its details (the stage counts, the two subjects): the figure's column is its own width */
#v8 #app .v8-hm-split { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--v8-5); min-width: 0; }
/* The cue: link green, underlined; one link stretched over the whole tile, so the whole tile hovers with the green edge */
#v8 #app .v8-hm-tf { margin: auto 0 0; padding-top: var(--v8-2); }
#v8 #app .v8-hm-cue { color: var(--v8-green-t); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#v8 #app .v8-hm-cue::after { content: ""; position: absolute; inset: 0; border-radius: var(--v8-r); }
#v8 #app .v8-hm-whole:has(.v8-hm-cue:hover) { box-shadow: var(--v8-edge-hover); }
#v8 #app .v8-hm-whole:has(.v8-hm-cue:hover) .v8-hm-cue { color: var(--v8-deep); text-decoration-thickness: 2px; }
#v8 #app .v8-hm-cue:focus-visible { outline: none !important; }
#v8 #app .v8-hm-cue:focus-visible::after { outline: var(--v8-focus) !important; outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }

/* The count beside a tile's title (round Q): a mint pill, 12 Bold deep green (9,1:1), 24 tall, 8 from the title */
#v8 #app .v8-hm-count { display: inline-flex; align-items: center; height: 24px; margin-left: var(--v8-2); padding: 0 var(--v8-2); border-radius: var(--v8-r-pill); background: var(--v8-mint); color: var(--v8-deep); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; font-weight: 700 !important; vertical-align: 2px; white-space: nowrap; letter-spacing: 0; }
/* A tile with its own links (claims, messages): the foot's link is 44 high */
#v8 #app .v8-hm-tile .v8-hm-tf > .v8-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -10px; }
/* A tile's way to its full list at the head's right (All claims, All messages, All policies; Jordi, b2b-portal PR #2), 44 to the
   pointer within the head's 40 */
#v8 #app .v8-hm-th > .v8-hm-thl { flex: none; min-height: 44px; margin-block: -2px; white-space: nowrap; }

/* Home's list rows (hmRow in v8-home.js): Ongoing claims and Messages in one look. No hairlines: the rows part by their own
   space, 4 apart, so the hover wash can be a soft shape (with no line beside it there is no step, README 54), its 20 corners
   concentric with the icon tile's 8, 12 in on every side. Every row is two lines, the title and its meta under it, 12 all round;
   a claim's 52 icon tile is exactly their height, its stage sits at the right in one 112 column (the word above a bar the column's
   width, so every bar is one length), and the mark (a chevron, a new message's red dot) closes the row */
/* The list reaches 12 into the tile's padding and each row is 12 in, so the words, icons and marks stand on the tile's own edges,
   level with its title, its art and its foot link: one left line and one right line down the tile. The hover shape keeps 12 of
   white to the tile's edge */
#v8 #app .v8-hm-rows { container: v8hmrows / inline-size; display: grid; gap: 4px; min-width: 0; margin: 0 calc(-1 * var(--v8-3)); padding: 0; list-style: none; }
#v8 #app .v8-hm-row { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "m"; gap: 4px var(--v8-3); align-items: center; padding: var(--v8-3); border-radius: 20px; color: var(--v8-ink); text-decoration: none; }
#v8 #app .v8-hm-row-i { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "i t" "i m"; }
#v8 #app .v8-hm-row-s { grid-template-columns: minmax(0, 1fr) var(--v8-hm-sw, 112px); grid-template-areas: "t s" "m s"; }
#v8 #app .v8-hm-row-i.v8-hm-row-s { grid-template-columns: 24px minmax(0, 1fr) var(--v8-hm-sw, 112px); grid-template-areas: "i t s" "i m s"; }
#v8 #app .v8-hm-ric { grid-area: i; align-self: start; display: grid; place-items: center; height: 24px; }
#v8 #app .v8-hm-ric svg { display: block; width: 24px; height: 24px; fill: var(--v8-green-t); }
#v8 #app .v8-hm-ric .v8-hm-dot { margin: 0; vertical-align: 0; }
/* A claim's icon in a 52 mint tile (8 corners, concentric with the row's 20 around it, 12 in), as tall as the title and its date line
   and pinned to the top, so a title that wraps on a phone keeps the tile on its first line (README 59's open fix, applied to every
   row 21 October 2026; on a desktop nothing moves, the tile already equals the two lines). Mint on every surface, the Claims page's
   gray and white cards too; white while the row hovers, is pressed or has the keyboard's focus, so it keeps its shape on the green */
#v8 #app .v8-hm-row-i:has(> .v8-hm-ric > svg) { grid-template-columns: var(--v8-hm-iw, 52px) minmax(0, 1fr); }
#v8 #app .v8-hm-row-i.v8-hm-row-s:has(> .v8-hm-ric > svg) { grid-template-columns: var(--v8-hm-iw, 52px) minmax(0, 1fr) var(--v8-hm-sw, 112px); }
#v8 #app .v8-hm-ric:has(> svg) { align-self: start; width: 52px; height: 52px; border-radius: var(--v8-r-sm); background: var(--v8-mint); }
#v8 #app a.v8-hm-row:is(:hover, :active, :focus-visible) .v8-hm-ric:has(> svg) { background: var(--v8-white); }
/* The title is a standalone link in a row that reads as one (its tile, its hover shape), so it goes without the underline at rest;
   green says it opens, and the underline comes back on hover. The tile's foot link keeps its underline: nothing else marks it */
#v8 #app .v8-hm-rt { grid-area: t; min-width: 0; color: var(--v8-green-t); font-weight: 400 !important; font-variant-numeric: normal; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#v8 #app .v8-hm-row-new .v8-hm-rt { font-weight: 700 !important; }
#v8 #app .v8-hm-rm { grid-area: m; min-width: 0; color: var(--v8-ink-2); }
/* Words, not figures: proportional digits read evenly in a name or a date (the system's tabular digits are for figures) */
#v8 #app .v8-hm-rm, #v8 #app .v8-hm-rm b { font-variant-numeric: normal; }
#v8 #app .v8-hm-rm b { color: var(--v8-ink); }
#v8 #app .v8-hm-rs { grid-area: s; display: flex; min-width: 0; }
/* A new message's mark: a 10 red dot at the row's right edge, centred on the two lines, at every width */
#v8 #app .v8-hm-row-k { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t k" "m k"; }
/* One 32 slot for every mark (a claim's chevron, a new message's dot), so a small dot keeps its air inside the hover shape and the
   marks of both tiles share a centre line */
#v8 #app .v8-hm-rk { grid-area: k; align-self: center; display: grid; place-items: center; width: 32px; height: 32px; }
#v8 #app .v8-hm-newdot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--v8-red); forced-color-adjust: none; }
/* A claim's chevron: 32, so its thin stroke holds its own beside the stage block, link green, on the same right edge as a new
   message's dot */
#v8 #app .v8-hm-rk > svg { display: block; width: 32px; height: 32px; fill: var(--v8-green-t); }
#v8 #app .v8-hm-row-i.v8-hm-row-s.v8-hm-row-k { grid-template-columns: var(--v8-hm-iw, 52px) minmax(0, 1fr) var(--v8-hm-sw, 112px) auto; grid-template-areas: "i t s k" "i m s k"; }
/* A claim's stage, compact: its word on top in the badges' type (12 Bold, README: 12 is for badges, tags and counts), the bar
   under it the column's full width, 4 apart, so it reads as one small status block beside the title and its date */
#v8 #app .v8-hm-rs .v8-pbar { flex-direction: column; align-items: stretch; gap: var(--v8-1); width: 100%; max-width: var(--v8-hm-sw, 112px); }
#v8 #app .v8-hm-rs .v8-pbar-w { order: -1; font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; font-weight: 700 !important; color: var(--v8-blue-ink); }   /* the claim page's progress blue; deeper than the bar so it reads as status, not a link */
#v8 #app .v8-hm-rs .v8-pbar-t { width: 100%; }
/* The track's empty part is a pale tint of the bar's own blue; a dark outline read as a tiny button, so its edge is white (forced
   colours keep the system's outlined track) */
@media not (forced-colors: active) {
  #v8 #app .v8-hm-rs .v8-pbar-t { background: color-mix(in srgb, var(--v8-data-base) 16%, var(--v8-white)); box-shadow: 0 0 0 1px rgb(255 255 255 / .7); }   /* outside the track, so it takes no space */
}
/* The status stands on the title's line: the word centred on its 24 line, the bar 4 under it; a badge is that line's height */
#v8 #app .v8-hm-row-s .v8-hm-rs { align-self: start; }
#v8 #app .v8-hm-rs > .v8-pbar { margin-top: var(--v8-1); }
/* 24 between the stage and the chevron, so the bar doesn't run on into it as one arrow */
#v8 #app .v8-hm-row-s.v8-hm-row-k .v8-hm-rk { margin-left: var(--v8-3); }
/* Every status starts on the column's left edge (21 October 2026, review of the shared row): a badge (Needs you, Rejected, a past
   claim's Approved) stands where the stage words and bars start, so the column reads as one line on Home and on the Claims page.
   README 59 had Needs you at the right edge while Rejected, inside the decided claim's wrapper, stayed left: two edges in one column */
/* The ring hugs the hover shape, inside it, so neighbouring rows never cover it */
#v8 #app .v8-hm-row:focus-visible { outline-offset: -2px !important; }
@media (hover: hover) {
  #v8 #app .v8-hm-row:hover { background: var(--v8-hover); }
  #v8 #app .v8-hm-row:hover .v8-hm-rt { color: var(--v8-deep); text-decoration-line: underline; }
}
/* The keyboard's focus shows what the pointer's hover shows (ux-rules 2), the green wash and the underlined name, inside the ring */
#v8 #app a.v8-hm-row:focus-visible { background: var(--v8-hover); }
#v8 #app a.v8-hm-row:focus-visible .v8-hm-rt { color: var(--v8-deep); text-decoration-line: underline; }
/* Pressed: the buttons' pressed green, so a tap is felt on touch screens too */
#v8 #app .v8-hm-row:active { background: var(--v8-pressed); }
/* A narrow list (a phone's tile): the stage moves under the meta line, still in the title's column. On a claim the chevron stands on
   the title's line (21 October 2026: centred on a phone's tall row it sat far below the name and kept a 44 column empty beside the
   words), so the date line and the stage run on under it and the words get that column back. The chevron's slot is 32 but takes the
   title's 24 line, overhanging 4 above and below, so the row stays as tall as its words */
@container v8hmrows (max-width: 439px) {
  #v8 #app .v8-hm-row-s { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "m" "s"; }
  #v8 #app .v8-hm-row-i.v8-hm-row-s { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "i t" "i m" ". s"; }
  #v8 #app .v8-hm-row-i.v8-hm-row-s:has(> .v8-hm-ric > svg) { grid-template-columns: var(--v8-hm-iw, 52px) minmax(0, 1fr); }
  #v8 #app .v8-hm-row-i.v8-hm-row-s.v8-hm-row-k { grid-template-columns: var(--v8-hm-iw, 52px) minmax(0, 1fr) auto; grid-template-areas: "i t k" "i m m" ". s s"; }
  #v8 #app .v8-hm-row-s.v8-hm-row-k .v8-hm-rk { align-self: start; margin: calc(-1 * var(--v8-1)) 0; }
  #v8 #app .v8-hm-rs { margin-top: 4px; }
}
/* The row is shared since 21 October 2026 (V8.listRow and V8.claimRow in v8-base.js): the Claims page's claim cards are this row on
   a card surface (claims.css "Claims: the claim cards"). A row with a second line under its title (the row's `line`: what happened,
   on the Claims page only): the icon tile spans the title and that line, exactly their two lines' height, pinned to the top; the
   date line runs under them in the title's column; the status stays on the title's line and the chevron centred */
#v8 #app .v8-hm-rl { grid-area: l; min-width: 0; color: var(--v8-ink-2); }
#v8 #app .v8-hm-row-i.v8-hm-row-s.v8-hm-row-k.v8-hm-row-l { grid-template-areas: "i t s k" "i l s k" ". m s k"; }
/* A row with actions (V8.listRow's acts: the saved draft's Continue and Delete draft) puts them on their own line under the words,
   8 below (the empty meta row's gaps make it 16); the row itself has no href, so it never hovers, only its buttons do */
#v8 #app .v8-hm-row-i.v8-hm-row-s.v8-hm-row-k.v8-hm-row-l.v8-hm-row-a { grid-template-areas: "i t s k" "i l s k" ". m s k" ". a s k"; }
#v8 #app .v8-hm-ra { grid-area: a; display: flex; flex-wrap: wrap; align-items: center; gap: var(--v8-2) var(--v8-5); min-width: 0; margin-top: var(--v8-2); }
@container v8hmrows (max-width: 439px) {
  #v8 #app .v8-hm-row-i.v8-hm-row-s.v8-hm-row-k.v8-hm-row-l { grid-template-areas: "i t k" "i l l" ". m m" ". s s"; }
  #v8 #app .v8-hm-row-i.v8-hm-row-s.v8-hm-row-k.v8-hm-row-l.v8-hm-row-a { grid-template-areas: "i t k" "i l l" ". m m" ". s s" ". a a"; }
}
/* A row with nothing to open (no href: a sample record): ink, not link green, and no hover */
#v8 #app .v8-hm-row.v8-hm-row-off .v8-hm-rt { color: var(--v8-ink); }
#v8 #app .v8-hm-row.v8-hm-row-off:is(:hover, :active) { background: none; }
#v8 #app .v8-hm-row.v8-hm-row-off:hover .v8-hm-rt { color: var(--v8-ink); text-decoration-line: none; }
/* Messages (round Q): the new messages' subjects, each its own link */
#v8 #app .v8-hm-subj { display: grid; min-width: 0; margin-top: var(--v8-1); }
#v8 #app .v8-hm-subj > li { display: grid; min-width: 0; padding: var(--v8-2) 0; color: var(--v8-ink); }
#v8 #app .v8-hm-subj > li + li { border-top: 1px solid var(--v8-line); }
#v8 #app .v8-hm-tile .v8-hm-subj > li.v8-hm-new > a.v8-link { font-weight: 700 !important; }
#v8 #app .v8-hm-sd { color: var(--v8-ink-2); }

/* How well you're covered (round Q): the line, then the rows in their own table card (1 px edge, 12 corners, 16 in at the sides)
   under a header row (Risk, A typical case, Your cover, Left with you), the key and the status words' meanings at its foot */
#v8 #app .v8-hm-t-cov .v8-hm-tl { color: var(--v8-ink-2); }
#v8 #app .v8-hm-ct { margin-top: var(--v8-2); padding: 0 var(--v8-4); border-radius: var(--v8-r-in); box-shadow: inset 0 0 0 1px var(--v8-line); }
#v8 #app .v8-hm-crh { padding: var(--v8-3) 0; border-bottom: 1px solid var(--v8-line); color: var(--v8-ink-2); }
#v8 #app .v8-hm-crh > .v8-hm-crn { font-weight: 400 !important; }
#v8 #app .v8-hm-crs { display: grid; gap: var(--v8-4); padding: var(--v8-4) 0; }
#v8 #app .v8-hm-crs > .v8-hm-cr + .v8-hm-cr { padding-top: var(--v8-4); border-top: 1px solid var(--v8-line); }
/* Round T: the row is a case (its name Bold, the cover and policy that would pay under it), the bar with how often and what it
   costs under it, the status, what's left with her. Top-aligned: the bar sits on the name's first line */
#v8 #app .v8-hm-cr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 124px 96px; align-items: start; column-gap: var(--v8-4); }
#v8 #app .v8-hm-crn { display: grid; gap: 2px; min-width: 0; }
#v8 #app .v8-hm-cn { font-weight: 700 !important; }
#v8 #app .v8-hm-cp { color: var(--v8-ink-2); }
#v8 #app .v8-hm-crb { display: grid; gap: var(--v8-2); min-width: 0; padding-top: 6px; }
#v8 #app .v8-hm-crh .v8-hm-crb, #v8 #app .v8-hm-crh > span { padding-top: 0; }
#v8 #app .v8-hm-bar { display: flex; gap: 2px; height: 12px; min-width: 0; }
#v8 #app .v8-hm-bar > i { display: block; flex: none; height: 100%; min-width: 2px; border-radius: 2px; }
#v8 #app .v8-hm-crl { text-align: right; white-space: nowrap; }
#v8 #app .v8-hm-crl b { font-weight: 700 !important; }
/* The status: an icon and a word, never colour alone; the word Bold where something is wrong */
#v8 #app .v8-hm-fit { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--v8-ink); }
#v8 #app .v8-hm-fit svg { flex: none; width: 20px; height: 20px; }
#v8 #app .v8-hm-fit-gap svg { color: var(--v8-red); }
#v8 #app .v8-hm-fit-right svg { color: var(--v8-green); }
#v8 #app :is(.v8-hm-fit-gap, .v8-hm-fit-under, .v8-hm-fit-over) { font-weight: 700 !important; }
/* The table card's foot: the key, then the words defined (V8.fitDefs, base.css) */
#v8 #app .v8-hm-ctf { display: grid; gap: var(--v8-2); padding: var(--v8-3) 0 var(--v8-4); border-top: 1px solid var(--v8-line); }
#v8 #app .v8-hm-key { display: flex; flex-wrap: wrap; gap: 4px var(--v8-4); margin: 0; color: var(--v8-ink-2); }
#v8 #app .v8-hm-key li { display: inline-flex; align-items: center; gap: var(--v8-2); }
#v8 #app .v8-hm-key .v8-sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
#v8 #app .v8-hm-key .v8-sw.v8-t-left { width: 24px; }
/* Round R: How well you're covered is the Fennia insight (V8.insight, README 37) spanning the dashboard; the table is its white chart
   panel, so the table card loses its own edge there (the panel is the separation), the policies line its caption. From a 720 card
   the words take the narrower column (1 to 1.9) so the table's four columns keep their room */
#v8 #app .v8-hm-covins { display: flex; min-width: 0; }
#v8 #app .v8-hm-covins > .v8-ins-w { flex: 1 1 auto; margin-top: 0 !important; }
#v8 #app .v8-ins-cov .v8-hm-ctcap { margin: 0 0 var(--v8-3); }
#v8 #app .v8-ins-cov .v8-hm-ct { margin-top: 0; padding: 0; box-shadow: none; }
#v8 #app .v8-ins-cov .v8-hm-ctf { padding-bottom: 0; }
/* Round T's and the Policies insight's own grids for the old insight were removed 20 October 2026: the new anatomy (README 37) lays
   out every insight the same way, the chart under the words across the card */
/* The table's own width decides its layout (round T: at 1024 the panel is under 640 while the window isn't). Stacked, as Policies'
   rows: the case and what's left with her ("left with you" shown under the amount), the status, then the bar and how often */
#v8 #app .v8-hm-ct { container: v8hmct / inline-size; }
#v8 #app .v8-hm-crll { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 639px) {
  #v8 #app .v8-hm-ct { padding: 0 var(--v8-3); }
}
@container v8hmct (max-width: 639px) {
  #v8 #app .v8-hm-crh { display: none; }
  #v8 #app .v8-hm-cr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n l" "s s" "b b"; row-gap: var(--v8-2); column-gap: var(--v8-3); }
  #v8 #app .v8-hm-cr > .v8-hm-crn { grid-area: n; } #v8 #app .v8-hm-cr > .v8-hm-crb { grid-area: b; }
  #v8 #app .v8-hm-cr > .v8-hm-crst { grid-area: s; } #v8 #app .v8-hm-cr > .v8-hm-crl { grid-area: l; display: grid; justify-items: end; align-content: start; }
  #v8 #app .v8-hm-crll { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; color: var(--v8-ink-2); }
}

/* Just joined: her new policies in the coverage tile's place (the illustration, the name, the price) */
#v8 #app .v8-hm-pols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: var(--v8-3) var(--v8-8); margin-top: var(--v8-2); }
#v8 #app .v8-hm-pols > li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap: var(--v8-4); }
#v8 #app .v8-hm-pn { font-weight: 700 !important; }
#v8 #app .v8-hm-pp { color: var(--v8-ink-2); white-space: nowrap; }
/* On phones the price goes under the name, so the name keeps the row's width */
@media (max-width: 639px) {
  #v8 #app .v8-hm-pols > li { grid-template-columns: 40px minmax(0, 1fr); }
  #v8 #app .v8-hm-pols > li > .v8-hm-art { grid-row: span 2; align-self: start; }
  #v8 #app .v8-hm-pp { grid-column: 2; }
}

/* The insight in the bento: the system's one look (V8.insight, README 37), its height the row's; no section gap above it here */
#v8 #app .v8-hm-ins { display: flex; min-width: 0; }
#v8 #app .v8-hm-ins > * { flex: 1 1 auto; min-width: 0; margin-top: 0 !important; }
#v8 #app .v8-hm-ins .v8-ins { min-height: 100%; margin-top: 0 !important; }
/* From 1440 its bars are left out: the coverage tile beside it draws the same gap */
/* push: also answers to the page area's width (branch ai-drawer README, the push layout) */
@media (min-width: 1200px) { @container app (min-width: 1200px) {
  #v8 #app .v8-hm-bento:not(.v8-hm-noins) > .v8-hm-ins .v8-ins-chart { display: none; }
  #v8 #app .v8-hm-bento:not(.v8-hm-noins) > .v8-hm-ins .v8-insx > .v8-ins-main { padding-bottom: var(--v8-5); }
  #v8 #app .v8-hm-bento:not(.v8-hm-noins) > .v8-hm-ins .v8-insx > .v8-ins-go { margin-bottom: var(--v8-5); }
} }

/* The lime dot before the hero's sentence when something needs her (the words say it; the dot marks it) */
#v8 #app .v8-hm-dot { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; background: var(--v8-lime); box-shadow: inset 0 0 0 1.5px var(--v8-lime-edge); vertical-align: 1px; }

/* Forced colours: the tiles keep an edge, the bars and swatches keep their fills */
@media (forced-colors: active) {
  #v8 #app .v8-hm-tile { border: 1px solid CanvasText; }
  #v8 #app .v8-hm-bar > i, #v8 #app .v8-hm-key .v8-sw, #v8 #app .v8-hm-dot { forced-color-adjust: none; }
}

/* ---------- The sub-pages' foot ---------- */
/* The band follows the mint zone directly when nothing sits between them (a role with no policies) */
#v8 #app .v8-hm > .v8-hero + .v8-band { margin-top: 0 !important; }
/* The help card alone on the band, at its left edge, card width */
#v8 #app .v8-hm-helpw { max-width: 560px; }


/* ---------- Your coverage: the case cards ---------- */
/* The cards in a row share their rows (subgrid), so the figures, the changes and "How we worked it out" line up across a row
   however long each case's words are. The sum opens in the drawer, so opening it never stretches the row */
#v8 #app .v8-cases > li { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
#v8 #app .v8-case { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; row-gap: 0; min-height: 0; }
#v8 #app .v8-case > .v8-art { align-self: start; }
#v8 #app .v8-case > .v8-ct { align-content: start; }
#v8 #app .v8-case-b { margin-top: var(--v8-1); }
#v8 #app .v8-case-n { color: var(--v8-ink); }
#v8 #app .v8-case-fig { align-self: end; margin: 0; padding-top: var(--v8-5); }
/* One card a row below 600: no row to share, so no subgrid; the figure follows the badge at 24, not at the foot of an empty middle */
@media (max-width: 599px) {
  #v8 #app .v8-cases > li { display: flex; grid-row: auto; }
  #v8 #app .v8-case { display: flex; flex-direction: column; grid-row: auto; }
  #v8 #app .v8-case > :is(.v8-case-fig, .v8-case-more, .v8-case-acts) { align-self: stretch; }
  #v8 #app .v8-case-more { margin-top: var(--v8-4); }
}
#v8 #app .v8-case-acts { display: grid; align-content: start; justify-items: start; gap: var(--v8-3); padding-top: var(--v8-4); }
#v8 #app .v8-case-acts:empty { padding-top: 0; }
#v8 #app .v8-case-acts .v8-link { min-height: 32px; text-align: left; white-space: normal; }
#v8 #app .v8-case-step { color: var(--v8-ink); }
#v8 #app .v8-case-step .v8-link { display: inline; min-height: 0; }
#v8 #app .v8-case-more { align-self: end; margin-top: var(--v8-4); padding-top: var(--v8-2); border-top: 1px solid var(--v8-line); }
#v8 #app .v8-case-more .v8-link { min-height: 44px; }
#v8 #app .v8-cov-fold { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--v8-3); margin-top: var(--v8-5); color: var(--v8-ink); }
/* The sum in the drawer (the drawer sits on <body>, outside #app, so the sum's rules are restated here) */
#v8 .v8-hm-math .v8-sum { margin: var(--v8-5) 0; padding: 0; list-style: none; }
#v8 .v8-hm-math .v8-sum li { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: baseline; gap: var(--v8-4); padding: var(--v8-4) 0; border-top: 1px solid var(--v8-line); }
#v8 .v8-hm-math .v8-sum li:first-child { border-top: 0; padding-top: 0; }
#v8 .v8-hm-math .v8-sum b { font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 400 !important; text-align: right; white-space: nowrap; color: var(--v8-ink); font-variant-numeric: tabular-nums; }
#v8 .v8-hm-math .v8-sum span { color: var(--v8-ink-2); }
#v8 .v8-hm-math .v8-sum .v8-sum-tot { border-top: 1px solid var(--v8-ink); }
#v8 .v8-hm-math .v8-sum .v8-sum-tot b { font-size: var(--v8-fs-28) !important; line-height: var(--v8-lh-28) !important; font-weight: 700 !important; }
#v8 .v8-hm-math .v8-sum .v8-sum-tot span { color: var(--v8-ink); font-weight: 700 !important; }
#v8 .v8-hm-math > p > b { font-weight: 700 !important; }
#v8 .v8-hm-math .v8-hm-mnote { color: var(--v8-ink-2); }

/* ---------- Compared with businesses like yours: Home's comparison row and How you compare (19 October 2026, README 41) ----------
   Janne: "shrink these quite significantly ... no card illustrations ... like this Fennia insight section ... 'show more'". One
   compact module in the insight's look (the pale lime surface, the mark, the tag; README 37), under Home's dashboard, and the same
   three charts on How you compare. Views: v8-home.js cxHome, cxRows, cxClaims, cxCauses, vCompare8 (no prices since round O). Sizes come from the module's
   and each chart's own width (container queries), never the window; no type changes size anywhere */

/* Home's comparison card (round R, 19 October 2026): a white dashboard tile under the cover insight (one pale lime card on Home, not
   two in a row). The title a label (20 Bold ink, the tiles' title), the finding under it, "4 of 6" as the tiles' 28 figure, the gap
   sentence; the matrix in its own table card (1 px #DDDDDD edge, 12 corners); the basis and 'See how you compare' at the foot over a
   hairline. From a 860 card the words take the left column and the table the right (1 to 2) */
#v8 #app .v8-cx-home { container: v8cx / inline-size; z-index: 1; margin-top: var(--v8-cards); }
#v8 #app .v8-hm-floor > .ro-line + .v8-cx-home { margin-top: 0; }
#v8 #app .v8-cx-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v8-5); }
#v8 #app .v8-cx-words { min-width: 0; }
#v8 #app .v8-cx-find { max-width: 44ch; margin: var(--v8-2) 0 0; color: var(--v8-ink); }
#v8 #app .v8-cx-words > .v8-hm-fig { margin-top: var(--v8-5); }
#v8 #app .v8-cx-basis { max-width: 44ch; margin: var(--v8-4) 0 0; color: var(--v8-ink); }
#v8 #app .v8-cx-tbl { min-width: 0; padding: var(--v8-4); border-radius: var(--v8-r-in); box-shadow: inset 0 0 0 1px var(--v8-line); }
#v8 #app .v8-cx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--v8-5); margin-top: var(--v8-5); padding-top: var(--v8-2); border-top: 1px solid var(--v8-line); }
#v8 #app .v8-cx-src { margin: 0; color: var(--v8-ink-2); }
#v8 #app .v8-cx-foot > .v8-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -10px; }
@container v8cx (min-width: 860px) {
  #v8 #app .v8-cx-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--v8-7); }
}
/* A phone's tile: the table card gives its edge and padding back to the matrix (its two readings need every pixel); a hairline
   above the matrix still separates it from the words */
@container v8cx (max-width: 559px) { #v8 #app .v8-cx-tbl { padding: var(--v8-3) 0 0; border-top: 1px solid var(--v8-line); border-radius: 0; box-shadow: none; } }

/* The charts. Each is its own container, so a row lays out from the chart's width (Home's half panel, the page, a phone) */
#v8 #app .v8-cx-chart { container: v8cxc / inline-size; min-width: 0; }
#v8 #app .v8-cx-chart .v8-ch-head { margin-bottom: var(--v8-4); }
#v8 #app .v8-cx-h { margin: 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; }
#v8 #app .v8-cx-l { margin: var(--v8-1) 0 var(--v8-4); color: var(--v8-ink); }
#v8 #app .v8-cx-rows { display: grid; gap: var(--v8-2) ; margin: 0; padding: 0; list-style: none; }
#v8 #app .v8-cx-rows > li { display: grid; align-items: center; gap: var(--v8-1) var(--v8-4); min-width: 0; }
#v8 #app .v8-cx-n { min-width: 0; color: var(--v8-ink); }
#v8 #app .v8-cx-v { color: var(--v8-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
#v8 #app .v8-cx-v b { font-weight: 700 !important; }

/* The matrix: your risk against your cover, one slim row per insurance (round P, 19 October 2026; README 42). Replaces round O's
   rows and the page's gray card per insurance. Its own container, so it lays out from its width (Home's panel, the page, the
   Policies insight's chart panel, a phone): under 570 (720 on the page) the name runs across and the two readings sit side by side under it; from
   570 one row of columns under a header whose first cell is the caret's key; the page adds the action column from 720. Every
   reading's line goes under its capsule and word, 16 on a 20 line, so a row is two lines tall. Hairlines between rows, nothing
   hovers but the links */
#v8 #app .v8-cx-kmk { display: block; flex: none; width: 10px; height: 6px; background: var(--v8-data-base); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
#v8 #app .v8-cxm { container: v8cxm / inline-size; min-width: 0; }
#v8 #app .v8-cxm-hd { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "k"; align-items: end; gap: var(--v8-2) var(--v8-4); padding-bottom: var(--v8-3); border-bottom: 1px solid var(--v8-line); color: var(--v8-ink-2); }
#v8 #app .v8-cxm-key { grid-area: k; display: flex; align-items: center; gap: var(--v8-2); min-width: 0; }
#v8 #app .v8-cxm-hd > .v8-cxm-ch, #v8 #app .v8-cxm-hd > span:empty { display: none; }
#v8 #app .v8-cxm-rows { display: grid; margin: 0; padding: 0; list-style: none; }
#v8 #app .v8-cxm-r { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "n n" "r c"; gap: var(--v8-2) var(--v8-3); align-items: start; min-width: 0; padding: 10px 0; border-top: 1px solid var(--v8-line); }
#v8 #app .v8-cxm-r:first-child { border-top: 0; }
#v8 #app .v8-cxm-r:last-child { padding-bottom: 0; }
#v8 #app .v8-cxm-n { grid-area: n; display: flex; align-items: center; gap: var(--v8-3); min-width: 0; color: var(--v8-ink); }
#v8 #app .v8-cxm-nm { min-width: 0; }
#v8 #app .v8-cxm-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--v8-mint); }
#v8 #app .v8-cxm-ic svg.i { width: 20px; height: 20px; color: var(--v8-green); }
/* One she doesn't have: the disc white with the dashed edge of a could-add card; "Not insured" says it in words */
#v8 #app .v8-cxm-out .v8-cxm-ic { background: var(--v8-white); box-shadow: none; border: 1px dashed var(--v8-dash); }
#v8 #app .v8-cxm-out .v8-cxm-ic svg.i { color: var(--v8-ink-2); }
#v8 #app .v8-cxm-rk { grid-area: r; min-width: 0; }
#v8 #app .v8-cxm-cv { grid-area: c; min-width: 0; }
#v8 #app .v8-cxm-a { grid-area: a; min-width: 0; }
#v8 #app .v8-cxm-a:empty { display: none; }
#v8 #app .v8-cxm-c > .v8-meter { display: flex; }
#v8 #app .v8-cxm-l { display: block; margin-top: 0; color: var(--v8-ink-2); line-height: 20px !important; }
/* The page keeps the stacked rows until its matrix is 720 wide (its full names need the room), then adds the action column */
#v8 #app .v8-cxm-pg .v8-cxm-r { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "n n" "r c" "a a"; }
#v8 #app .v8-cxm-pg .v8-cxm-hd { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k"; }
#v8 #app .v8-cxm-pg .v8-cxm-hd > .v8-cxm-ch { display: none; }
#v8 #app .v8-cxm-pg .v8-cxm-nm { font-weight: 700 !important; }
@container v8cxm (min-width: 570px) {
  /* The key over the names' column, the column names over the readings; under 760 the key takes its own line above them */
  #v8 #app :is(.v8-cxm-hd, .v8-cxm-r) { grid-template-columns: minmax(0, 1fr) 15rem 10rem; grid-template-areas: "n r c"; column-gap: var(--v8-4); }
  #v8 #app .v8-cxm-hd { grid-template-areas: "k k k" ". r c"; }
  #v8 #app .v8-cxm-hd > .v8-cxm-ch { display: block; }
  #v8 #app .v8-cxm-hd > .v8-cxm-ch:nth-child(2) { grid-area: r; }
  #v8 #app .v8-cxm-hd > .v8-cxm-ch:nth-child(3) { grid-area: c; }
  /* The name and its disc sit on the readings' first line: the disc 32, the meter's line 24, so the readings start 4 lower */
  #v8 #app .v8-cxm-c { padding-top: var(--v8-1); }
}
@container v8cxm (min-width: 760px) {
  #v8 #app .v8-cxm-hd { grid-template-areas: "k r c"; }
}
/* Round S: Home's matrix has no key and no caret (Janne read the caret's key as an accordion); the header is the column names alone,
   and narrower than 570, where the column names don't show, there is no header at all */
#v8 #app .v8-cxm-nokey .v8-cxm-hd { display: none; }
@container v8cxm (min-width: 570px) {
  #v8 #app .v8-cxm-nokey .v8-cxm-hd { display: grid; grid-template-areas: ". r c"; }
}
@container v8cxm (min-width: 720px) {
  #v8 #app .v8-cxm-pg :is(.v8-cxm-hd, .v8-cxm-r) { grid-template-columns: minmax(0, 1fr) 16rem 12rem 8.5rem; grid-template-areas: "n r c a"; column-gap: var(--v8-6); }
  #v8 #app .v8-cxm-pg .v8-cxm-hd { grid-template-areas: "k k k k" ". r c a"; }
  #v8 #app .v8-cxm-pg .v8-cxm-hd > .v8-cxm-ch { display: block; }
}
@container v8cxm (min-width: 820px) {
  #v8 #app .v8-cxm-pg .v8-cxm-hd { grid-template-areas: "k r c a"; }
  #v8 #app .v8-cxm-pg .v8-cxm-hd > span:empty { display: block; grid-area: a; }
  #v8 #app .v8-cxm-pg .v8-cxm-r { grid-template-rows: auto; }
  #v8 #app .v8-cxm-pg .v8-cxm-a { padding: var(--v8-1) 0 0; text-align: right; }
  #v8 #app .v8-cxm-pg .v8-cxm-a:empty { display: block; }
}
/* The squares: name | ten squares of 10 in 100 | "31 in 100"; her row Bold with the plum dot and "You, 5 claims" under */
#v8 #app .v8-cx-sqs > li { grid-template-columns: minmax(0, 1fr) auto 4.75rem; grid-template-areas: "n s v"; }
#v8 #app .v8-cx-sqs .v8-cx-n { grid-area: n; }
#v8 #app .v8-cx-sqs .v8-cx-v { grid-area: v; text-align: right; }
#v8 #app .v8-cx-sq { grid-area: s; display: inline-grid; grid-template-columns: repeat(10, 10px); gap: 2px; }
#v8 #app .v8-cx-sq > i { display: block; width: 10px; height: 10px; border-radius: 2px; background: linear-gradient(to right, var(--v8-data-base) var(--f, 0%), #E3E3E3 var(--f, 0%)); }
#v8 #app .v8-cx-sq > i.on { background: var(--v8-data-base); }
#v8 #app .v8-cx-me .v8-cx-n { font-weight: 700 !important; }
#v8 #app .v8-cx-you { display: flex; align-items: center; gap: var(--v8-2); font-weight: 400 !important; }
#v8 #app .v8-cx-you > i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--v8-data-yours); }
@container v8cxc (max-width: 319px) {
  #v8 #app .v8-cx-sqs > li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n n" "s v"; }
}

/* How you compare (round R, 19 October 2026): the lean hero, then two sections on white with their 28 titles and lines (V8.section, as
   every page): Your policies and cover (the matrix card, then the insight, 16 apart) and Your claims (two cards, side by side from
   1200). Each comparison is a white card with the 1 px #DDDDDD inside edge (the white panel's frame, README 36), 16 corners, 32 in
   (24 on phones): its title 20 Bold, the line naming the measure 4 under it, the body 24 under the head, the foot 24 under the body
   over a hairline */
#v8 #app .v8-cmp-sec > .v8-sh + * { margin-top: var(--v8-5); }
#v8 #app .v8-cmp-stack { display: grid; gap: var(--v8-cards); min-width: 0; }
#v8 #app .v8-cmp-stack > .v8-ins-w { margin-top: 0 !important; }
#v8 #app .v8-cmp-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v8-cards); min-width: 0; }
/* push: also answers to the page area's width (branch ai-drawer README, the push layout) */
@media (min-width: 1200px) { @container app (min-width: 1200px) { #v8 #app .v8-cmp-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } } }
#v8 #app .v8-cmp-card { display: flex; flex-direction: column; min-width: 0; padding: var(--v8-6); border-radius: var(--v8-r); background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-line); color: var(--v8-ink); }
#v8 #app .v8-cmp-t { margin: 0; color: var(--v8-ink); font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; }
#v8 #app .v8-cmp-l { max-width: var(--v8-measure); margin: var(--v8-1) 0 0; color: var(--v8-ink-2); }
#v8 #app .v8-cmp-b { min-width: 0; margin-top: var(--v8-5); }
#v8 #app .v8-cmp-f { margin-top: auto; padding-top: var(--v8-5); }
#v8 #app .v8-cmp-f > p { max-width: none; margin: 0; padding-top: var(--v8-4); border-top: 1px solid var(--v8-line); color: var(--v8-ink-2); }
@media (max-width: 639px) { #v8 #app .v8-cmp-card { padding: var(--v8-5); } }

@media (forced-colors: active) {
  #v8 #app .v8-cx-tbl, #v8 #app .v8-cmp-card, #v8 #app .v8-hm-ct { outline: 1px solid CanvasText; outline-offset: -1px; }
  #v8 #app .v8-cxm-out .v8-cxm-ic { border-color: CanvasText; }
  #v8 #app :is(.v8-cx-kmk, .v8-cx-you > i, .v8-cx-sq > i.on) { forced-color-adjust: none; background: CanvasText; }
  #v8 #app .v8-cx-sq > i { forced-color-adjust: none; background: linear-gradient(to right, CanvasText var(--f, 0%), Canvas var(--f, 0%)); box-shadow: inset 0 0 0 1px CanvasText; }
}


/* ---------- Lower your risk ---------- */
#v8 #app .v8-step { min-height: 0; }
#v8 #app .v8-step.v8-on { box-shadow: var(--v8-edge-chosen); }
#v8 #app .v8-step:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
#v8 #app .v8-step-f { display: grid; gap: var(--v8-1); margin-top: auto; padding-top: var(--v8-5); }
#v8 #app .v8-step-p { color: var(--v8-ink); }
#v8 #app .v8-step-a { margin-top: var(--v8-5); }
#v8 #app .v8-hm-done > li { grid-template-columns: 24px minmax(0, 1fr) auto; }
#v8 #app .v8-hm-ck svg.i { color: var(--v8-green); }
#v8 #app .v8-hm-dn { color: var(--v8-ink) !important; }
@media (hover: hover) { #v8 #app .v8-hm-done > li:hover { background: none; box-shadow: none; } }

/* ---------- Your applications: the plate holds what an expert is checking, one row each ---------- */
#v8 #app .v8-apps > li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: var(--v8-5); padding: var(--v8-5) 0; border-top: 1px solid var(--v8-line); }
#v8 #app .v8-apps > li:first-child { padding-top: 0; border-top: 0; }
#v8 #app .v8-apps > li:last-child { padding-bottom: 0; }
#v8 #app .v8-app-t { display: grid; gap: var(--v8-2); min-width: 0; }
@media (max-width: 599px) {
  #v8 #app .v8-apps > li { grid-template-columns: 48px minmax(0, 1fr); gap: var(--v8-2) var(--v8-4); align-items: start; }
  #v8 #app .v8-apps .v8-art, #v8 #app .v8-apps .v8-art :is(img, svg) { width: 48px !important; height: 48px !important; }
  #v8 #app .v8-apps .v8-badge { grid-column: 2; justify-self: start; }
}



/* ---------- Home: Your insurance, the full-width tile (20 October 2026) ----------
   Across the dashboard under claims and messages. Her policies as small gray cards in one row (five across from 1100, then fewer),
   12 corners inside the tile's 16: the art 40, the short name 16 Bold, the package meter (sm) with its word, the price a month 16
   secondary. Each card is one link: the whole card fills with the green wash on hover. A policy she lacks: white with the dashed
   edge, "Not insured" and the "Get an offer" cue */
#v8 #app .v8-hm-t-pol { grid-column: 1 / -1; }
#v8 #app .v8-hm-pcs { container: hmpcs / inline-size; display: grid; grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: var(--v8-2); margin: 0; padding: 0; list-style: none; }
#v8 #app .v8-hm-pc { display: grid; align-content: start; gap: var(--v8-2); height: 100%; padding: var(--v8-4); border-radius: var(--v8-r-in); background: var(--v8-gray); color: var(--v8-ink); text-decoration: none; transition: background-color .16s ease-out; }
#v8 #app .v8-hm-pc-a { display: block; width: 40px; height: 40px; margin-bottom: var(--v8-1); }
#v8 #app .v8-hm-pc-a :is(svg, img) { display: block; width: 40px; height: 40px; }
#v8 #app .v8-hm-pc-n { font-weight: 700 !important; }
#v8 #app .v8-hm-pc-p, #v8 #app .v8-hm-pc-l { color: var(--v8-ink-2); }
#v8 #app .v8-hm-pc-cue { color: var(--v8-green-t); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
#v8 #app .v8-hm-pc-add { background: var(--v8-white); box-shadow: inset 0 0 0 1px transparent; outline: 2px dashed var(--v8-dash); outline-offset: -2px; }
@media (hover: hover) {
  #v8 #app .v8-hm-pc:hover { background: var(--v8-hover); }
  #v8 #app .v8-hm-pc:hover .v8-hm-pc-cue { text-decoration-color: currentColor; }
}
#v8 #app .v8-hm-pc:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }

/* The matrix's breakpoints with the thicker meter (20 October 2026, Janne: "take breakpoints into consideration. see how they get
   cramped"): one row per insurance only when the name keeps at least 12rem; between, the name runs across the top and the two
   readings sit side by side under it (the action under them on the page), so no name ever runs under a meter */
@container v8cxm (min-width: 570px) and (max-width: 759px) {
  #v8 #app .v8-cxm:not(.v8-cxm-pg) :is(.v8-cxm-hd, .v8-cxm-r) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "n n" "r c"; }
  #v8 #app .v8-cxm:not(.v8-cxm-pg) .v8-cxm-hd { grid-template-areas: "k k" "r c"; }
  #v8 #app .v8-cxm-nokey .v8-cxm-hd { grid-template-areas: "r c"; }
}
@container v8cxm (min-width: 720px) and (max-width: 879px) {
  #v8 #app .v8-cxm-pg :is(.v8-cxm-hd, .v8-cxm-r) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "n n n" "r c a"; column-gap: var(--v8-5); }
  #v8 #app .v8-cxm-pg .v8-cxm-hd { grid-template-areas: "k k k" "r c a"; }
}
@container v8cxm (min-width: 880px) {
  #v8 #app .v8-cxm-pg :is(.v8-cxm-hd, .v8-cxm-r) { grid-template-columns: minmax(11rem, 1fr) 15rem 12rem 8rem; column-gap: var(--v8-5); }
}
@container v8cxm (min-width: 760px) {
  #v8 #app .v8-cxm:not(.v8-cxm-pg) :is(.v8-cxm-hd, .v8-cxm-r) { grid-template-columns: minmax(12rem, 1fr) 15rem 11rem; }
}

/* ---------- Lower your risk: the steps as list cards (20 October 2026) ----------
   As Claims' claim cards: a gray card a step (radius 16, 24 in), 8 apart; the number in a deep green 48 disc, the title and why,
   what it prevents (16 ink) and the cost (16 secondary) in a 15rem column, Mark as done at the end. Under 760 the column and the
   button go under the text */
#v8 #app .v8-stps { container: v8stps / inline-size; display: grid; gap: var(--v8-2); margin: 0; padding: 0; list-style: none; }
#v8 #app .v8-stp { display: grid; grid-template-columns: 48px minmax(0, 1fr) 15rem auto; grid-template-areas: "n t m a"; align-items: center; gap: var(--v8-3) var(--v8-5); padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-gray); }
#v8 #app .v8-stp.v8-on { box-shadow: var(--v8-edge-chosen); }
#v8 #app .v8-stp-n { grid-area: n; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--v8-deep); color: var(--v8-white); font-size: var(--v8-fs-20) !important; line-height: 1 !important; font-weight: 700 !important; }
#v8 #app .v8-stp-t { grid-area: t; min-width: 0; }
#v8 #app .v8-stp-t .v8-cn { margin: 0; }
#v8 #app .v8-stp-t .v8-cl { margin: var(--v8-1) 0 0; max-width: 60ch; }
#v8 #app .v8-stp-m { grid-area: m; min-width: 0; }
#v8 #app .v8-stp-m p { margin: 0; }
#v8 #app .v8-stp-a { grid-area: a; }
@container v8stps (max-width: 759px) {
  #v8 #app .v8-stp { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "n t" ". m" ". a"; align-items: start; padding: var(--v8-4); column-gap: var(--v8-4); }
}
/* One structure in every Your insurance card (20 October 2026, Janne: "the coverage bars should always be vertically on the same
   level, and the text should always be either below or on the side, but it should be consistent"): the cards share their rows
   (subgrid): the art, the name (room for two lines), the meter with its word always under the capsule, the price or the cue. So
   every capsule sits on one line across the row, every word under it */
#v8 #app .v8-hm-pcs { grid-auto-rows: auto; }
#v8 #app .v8-hm-pcs > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
#v8 #app .v8-hm-pc { grid-row: span 4; grid-template-rows: subgrid; align-content: stretch; row-gap: var(--v8-2); }
#v8 #app .v8-hm-pc-n { align-self: start; min-height: calc(2 * var(--v8-lh-16)); }
#v8 #app .v8-hm-pc-m .v8-meter { display: flex; flex-direction: column; align-items: flex-start; row-gap: var(--v8-1); }
#v8 #app .v8-hm-pc-m .v8-meter .v8-mt-t { flex: none; }
#v8 #app .v8-hm-pc-add .v8-hm-pc-l { align-self: start; }
#v8 #app .v8-hm-pcs { grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); }
/* The minimal claims list (20 October 2026): each ongoing claim its green name link, 8 apart, nothing else */
#v8 #app .v8-hm-clmin { display: grid; gap: var(--v8-3); margin: 0; padding: 0; list-style: none; }
#v8 #app .v8-hm-clm { font-weight: 400 !important; }
#v8 #app .v8-hm-subj.v8-hm-clmin > li { padding: 0; border: 0 !important; }
#v8 #app .v8-hm-subj.v8-hm-clmin > li::before { content: none !important; }
#v8 #app .v8-hm-subj.v8-hm-clmin a { font-weight: 400 !important; }
#v8 #app .v8-hm-subj.v8-hm-clmin > li.v8-hm-new a { font-weight: 700 !important; }
/* Simpler step cards (20 October 2026): the number, the title with one short line, the cost as a small 16 secondary note, Mark as
   done; the cost column narrows to its words */
#v8 #app .v8-stp { grid-template-columns: 48px minmax(0, 1fr) auto auto; padding: var(--v8-4) var(--v8-5); }
#v8 #app .v8-stp-m { margin: 0; color: var(--v8-ink-2); white-space: nowrap; }
@container v8stps (max-width: 759px) { #v8 #app .v8-stp { grid-template-columns: 48px minmax(0, 1fr); } }
/* Your insurance without prices (20 October 2026): the card keeps its height; the art and the name at the top, the package meter
   (and a lacking policy's "Not insured" with Get an offer) at the bottom, where the price was, so the middle stays open */
#v8 #app .v8-hm-pcs > li { display: block; grid-row: auto; }
#v8 #app .v8-hm-pc { display: flex; flex-direction: column; gap: var(--v8-2); min-height: 216px; height: 100%; }
#v8 #app .v8-hm-pc-m, #v8 #app .v8-hm-pc-add .v8-hm-pc-l, #v8 #app .v8-hm-pc-one { margin-top: auto; }
/* "Insured" on a one-level policy's card reads as the held cards' level word, in ink, not as the gray "Not insured" (21 October 2026) */
#v8 #app .v8-hm-pc-one { color: var(--v8-ink); }
#v8 #app .v8-hm-pc-n { min-height: 0; }

/* Claim rows without the chevron (21 October 2026, Janne: "Take it away"): the mark slot stays in the grid (one layout for every
   claim card) but takes no room, and the status pulls into the column gap so it ends where the card's padding begins */
#v8 #app .v8-hm-rk:empty { width: 0; margin: 0 !important; }
#v8 #app .v8-hm-row-k:has(> .v8-hm-rk:empty) > .v8-hm-rs { margin-right: calc(-1 * var(--v8-3)); }

/* The claim status, simplified (21 October 2026, V8.claimStatus): three steps, and under an approved claim's bar its amount, 16 ink,
   4 under the bar. The status column is 144 so "1.150 € to be paid" fits on one line; the number after a claim's type is ink-2 */
#v8 #app .v8-hm-rows:has(.v8-cst) { --v8-hm-sw: 144px; }
#v8 #app .v8-hm-rs .v8-cst-a { color: var(--v8-ink); white-space: nowrap; }
#v8 #app .v8-hm-rn { color: var(--v8-ink-2); white-space: nowrap; }

/* No badges in the claim status (21 October 2026): Rejected is the word in ink over a full gray bar; Needs you is the word in ink
   over the claim's own bar */
#v8 #app .v8-hm-rs .v8-cst-rej .v8-pbar-w, #v8 #app .v8-hm-rs .v8-cst-need .v8-pbar-w { color: var(--v8-ink); }
#v8 #app .v8-hm-rs .v8-cst-rej .v8-pbar-t > i { background: var(--v8-ink-2); }

/* Ongoing claims on Home: the decision, not the bars (21 October 2026, night; Janne: "you need to take those bars away"). The Claims
   page's lean K look (claims-flow.css "THE LEAN K ROUND"), scoped to Home's tile (.v8-hm-cls), so Claims without the flag and a
   policy page keep V8.claimRow's own status. The row: the mint tile, the type in link green over its number in ink-2, and at the
   right the decision behind K's 24 rounded marker (radius 6, 16 glyph, 12 before regular ink), with an approved claim's "To be
   paid" or "Paid" and the amount in the mint tag (8 corners, deep green, Regular, 24 high) under it, on the decision's text line.
   Two lines on every row, the tile's height. Under a 440 list (phones) the decision drops under the number and the amount runs
   on beside it while it fits. README 60, the night note */
#v8 #app .v8-hm-cls { --v8-hm-sw: 232px; }
#v8 #app .v8-hm-cls .v8-hm-rm { color: var(--v8-ink-2); }
#v8 #app .v8-hm-cls .v8-hm-rs { align-self: start; }
#v8 #app .v8-hm-cd { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#v8 #app .v8-hm-cd-dec { display: flex; align-items: flex-start; gap: var(--v8-3); min-width: 0; color: var(--v8-ink); }
#v8 #app .v8-hm-cd-w { min-width: 0; color: var(--v8-ink); font-weight: 400 !important; }
#v8 #app .v8-hm-cd-pay { padding-left: 36px; color: var(--v8-ink); white-space: nowrap; }
#v8 #app .v8-hm-cd-amt { display: inline-block; padding: 0 var(--v8-2); border-radius: var(--v8-r-sm); background: var(--v8-mint); color: var(--v8-deep); font-weight: 400 !important; white-space: nowrap; }
#v8 #app .v8-hm-mk { display: inline-grid; place-items: center; flex: none; box-sizing: border-box; width: 24px; height: 24px; border-radius: var(--v8-r-tag); }
#v8 #app .v8-hm-mk svg.i { width: 16px; height: 16px; overflow: visible; }
#v8 #app .v8-hm-mk svg.i :is(path, g > path) { stroke: currentColor; stroke-width: 1px; stroke-linejoin: round; paint-order: stroke; }
#v8 #app .v8-hm-mk-ok { background: var(--v8-mint); color: var(--v8-green-t); }
#v8 #app .v8-hm-mk-wait { background: var(--v8-blue); color: var(--v8-blue-ink); }
#v8 #app .v8-hm-mk-rej { background: color-mix(in srgb, var(--v8-red) 10%, var(--v8-white)); color: var(--v8-red); }
/* On the row's green wash the mint marker and tag turn white, as the tile does, so they keep their shape */
#v8 #app a.v8-hm-cl:is(:hover, :active, :focus-visible) :is(.v8-hm-mk-ok, .v8-hm-cd-amt) { background: var(--v8-white); }
@media (forced-colors: active) {
  #v8 #app :is(.v8-hm-mk, .v8-hm-cd-amt) { border: 1px solid CanvasText; }
  #v8 #app .v8-hm-mk svg.i { color: CanvasText; }
}
@container v8hmrows (max-width: 439px) {
  #v8 #app .v8-hm-cls .v8-hm-cd { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 4px var(--v8-4); }
  #v8 #app .v8-hm-cls .v8-hm-cd-pay { padding-left: 0; }
}
#v8 #app .v8-hm-cd-none { color: var(--v8-ink-2); }
/* Phones leave the dash out, as the Claims page does: run on after the decision, a lone dash reads as a stray mark */
@container v8hmrows (max-width: 439px) { #v8 #app .v8-hm-cls .v8-hm-cd-none { display: none; } }

/* ---------- Suggestions for you (21 October 2026): what's worth her attention, as cards (v8-home.js icTile) ----------
   A Fennia Insight (.v8-hm-ic-ins) wears the Insights page's look: the lime panel (--v8-insight-panel) and its lamp-and-Insight
   mark, so she learns to recognise them; checking her details and account news stay mint. Every title is ink.
   No tile around the row: each card is a white tile on the mint, as every Home tile is, with the tiles' three-layer lift. Its top
   is an inset art panel in the illustrations' own mint (#E6FAE7, so their background shapes run on into it), the illustration
   flush in its corner and the card's figures as white chips over it, so the picture says the finding; the finding's own chip
   carries the Fennia Insight lime. Under it the title, one sentence (its source) and the
   foot, every foot on the row's one bottom line. Three to a view at 1440, two from a 616 row, below that one card and a peek */
#v8 #app .v8-hm-t-ic { grid-column: 1 / -1; container: hmic / inline-size; min-width: 0; margin-block: var(--v8-5); }   /* 40 from the tiles above and below (the grid's 16 + 24): its own section, not one more tile */
#v8 #app .v8-hm-ic-hd { display: flex; align-items: center; gap: var(--v8-4); min-height: 44px; margin-bottom: var(--v8-3); }
#v8 #app .v8-hm-ic-hd .v8-hm-tt { margin-right: auto; color: var(--v8-ink); }
/* Touch: the title alone; the cards swipe and the next one peeks in as the cue. A mouse keeps Previous and Next at every width */
@media (hover: none) { #v8 #app .v8-hm-ic-nav { display: none !important; } }
#v8 #app .v8-hm-ic-nav { display: inline-flex; gap: var(--v8-1); margin-right: -10px; }
#v8 #app .v8-hm-ic-nav[hidden] { display: none; }
#v8 #app .v8-hm-ic-nav .v8-ib:disabled { color: color-mix(in srgb, var(--v8-deep) 25%, transparent); cursor: default; background: transparent; }

#v8 #app .v8-hm-ics { --ic-n: 1; --ic-gap: var(--v8-cards); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--ic-n) - 1) * var(--ic-gap)) / var(--ic-n)); gap: var(--ic-gap);
  margin: -8px; padding: 8px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 8px; scrollbar-width: none; }
#v8 #app .v8-hm-ics::-webkit-scrollbar { display: none; }
/* A card is never under 300, so its two zones always fit: under a 616 row, one card at most 340 wide and the next peeking */
@container hmic (max-width: 615px) { #v8 #app .v8-hm-ics { grid-auto-columns: min(340px, calc(100% - var(--v8-7))); } }
@container hmic (min-width: 616px) { #v8 #app .v8-hm-ics { --ic-n: 2; } }
@container hmic (min-width: 900px) { #v8 #app .v8-hm-ics { --ic-n: 3; } }

/* The card: white, 16 corners as Home's tiles, no border (as the tiles: forced colours draw one), the art panel inset 8 with 8
   corners (16 = 8 + 8, concentric) */
#v8 #app .v8-hm-ic { container: icard / inline-size; position: relative; display: flex; flex-direction: column; min-width: 0; padding: var(--v8-2); border-radius: var(--v8-r); background: var(--v8-white); scroll-snap-align: start;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04); }
/* Two zones that never touch: the figures in the left column, the art in the right one, flush to the panel's bottom-right
   corner at its column's width; the band over the art holds Hide. The art steps down in a narrow panel */
#v8 #app .v8-hm-ic-p { --ic-art: 96px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--ic-art); column-gap: var(--v8-2);
  min-height: 208px; padding-left: var(--v8-4); overflow: hidden; border-radius: calc(var(--v8-r) - var(--v8-2) + 2px); background: var(--v8-mint); }
/* The panel's 10 corners (Janne, 21 October 2026, night: 8 was "a bit too small"): the exact concentric 8 (16 less the 8 band)
   reads tight at so small an inset, so 2 more, and the white band looks even around the curve. The card stays 16, the band 8;
   on ?scale=compact the card is 12, so the panel is 6 (4 + 2).
   The small white card inside keeps 8: it floats in the panel, not in a corner, so it only has to be no rounder than 10 */
#v8 #app .v8-hm-ic-a { grid-column: 2; grid-row: 1; align-self: end; width: var(--ic-art); height: var(--ic-art); transition: translate .24s var(--v8-ease); }
#v8 #app .v8-hm-ic-a :is(img, svg) { display: block; width: 100%; height: 100%; }
#v8 #app .v8-hm-ic-p > :not(.v8-hm-ic-a) { grid-column: 1; grid-row: 1; align-self: center; min-width: 0; margin-block: var(--v8-4); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { #v8 #app .v8-hm-ic:hover .v8-hm-ic-a { translate: 0 -4px; } }
/* The chips: white, a hairline lift, the icon on a pale tile; the finding's own figure in its warning tone, a done one in green */
#v8 #app .v8-hm-ic-chips { display: flex; flex-direction: column; align-items: flex-start; gap: var(--v8-2); margin: 0; padding: 0; list-style: none; }
/* A chip wraps inside its column rather than run into the art: 20 corners hold one line as a pill and two as a soft tag */
#v8 #app .v8-hm-ic-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 12px 4px 4px; border-radius: 20px; background: var(--v8-white); color: var(--v8-ink); line-height: 20px !important; text-wrap: balance;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 2px 6px -2px rgb(0 0 0 / .12); font-variant-numeric: tabular-nums; }
#v8 #app .v8-hm-ic-ci { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--v8-gray); color: var(--v8-ink); }
#v8 #app .v8-hm-ic-ci svg { width: 18px; height: 18px; }
#v8 #app .v8-hm-ic-chip-warn { font-weight: 700 !important; }
#v8 #app .v8-hm-ic-chip-warn .v8-hm-ic-ci { background: var(--v8-hover); color: var(--v8-deep); }
/* Lime means a Fennia Insight, so only an insight's own figure gets the lime tile */
#v8 #app .v8-hm-ic-ins .v8-hm-ic-chip-warn .v8-hm-ic-ci { background: var(--v8-lime); }
#v8 #app .v8-hm-ic-chip-ok .v8-hm-ic-ci { background: var(--v8-hover); color: var(--v8-deep); }
/* The small card: white, 12 corners, the rows label left in secondary and figure right in Bold, the bar under them */
#v8 #app .v8-hm-ic-mini { display: grid; gap: var(--v8-2); width: 100%; max-width: 192px; padding: var(--v8-3); border-radius: min(var(--v8-2), calc(var(--v8-r) - var(--v8-2) + 2px));   /* never rounder than the panel it sits in (10, or 6 on the compact scale) */ background: var(--v8-white);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 4px 12px -4px rgb(0 0 0 / .16); align-self: center; }
#v8 #app .v8-hm-ic-mini dl { display: grid; gap: 2px; margin: 0; }
#v8 #app .v8-hm-ic-mini dl > div { display: flex; justify-content: space-between; gap: var(--v8-3); }
#v8 #app .v8-hm-ic-mini dt { color: var(--v8-ink-2); }
#v8 #app .v8-hm-ic-mini dd { margin: 0; color: var(--v8-ink); font-weight: 700 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
#v8 #app .v8-hm-ic-mini .v8-sb-b { height: 12px; margin-top: var(--v8-1); }
#v8 #app .v8-hm-ic-mini > p { margin: 0; color: var(--v8-ink-2); }
@container icard (max-width: 299px) { #v8 #app .v8-hm-ic-p { --ic-art: 80px; } }
/* A card under 260 inside (a 320 phone): the art steps out and the figures take the panel, right of them only Hide */
@container icard (max-width: 259px) { #v8 #app .v8-hm-ic-p { grid-template-columns: minmax(0, 1fr) 36px; } #v8 #app .v8-hm-ic-p > .v8-hm-ic-a { display: none; } #v8 #app .v8-hm-ic-mini { max-width: none; } }   /* the card's inner width: 310 at 1440, 282 at its 300 floor */
#v8 #app .v8-hm-ic-mini dl > div { flex-wrap: wrap; column-gap: var(--v8-2); }
/* The loyalty steps: five segments, the years she has in deep green, next year's in lime */
#v8 #app .v8-hm-ic-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; height: 12px; margin-top: var(--v8-1); }
#v8 #app .v8-hm-ic-steps > i { border-radius: 4px; background: var(--v8-gray); box-shadow: inset 0 0 0 1px var(--v8-line); }
#v8 #app .v8-hm-ic-steps > i.on { background: var(--v8-deep); box-shadow: none; }
#v8 #app .v8-hm-ic-steps > i.next { background: var(--v8-lime); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v8-deep) 40%, transparent); }
#v8 #app .v8-hm-ic-done .v8-hm-ic-p { background: var(--v8-mint); }
/* Mirrored (the mint cards with art): the art flush in the bottom-left corner, the figures on the right */
#v8 #app .v8-hm-ic-flip .v8-hm-ic-p { grid-template-columns: var(--ic-art) minmax(0, 1fr); padding-left: 0; padding-right: var(--v8-4); }
#v8 #app .v8-hm-ic-flip .v8-hm-ic-p > .v8-hm-ic-a { grid-column: 1; }
#v8 #app .v8-hm-ic-flip .v8-hm-ic-p > :not(.v8-hm-ic-a) { grid-column: 2; margin-top: var(--v8-8); }
/* The risks: each insurance in Bold with the Insights page's risk meter under it */
#v8 #app .v8-hm-ic-risks ul { display: grid; gap: var(--v8-2); margin: 0; padding: 0; list-style: none; }
#v8 #app .v8-hm-ic-risks li { display: grid; gap: 0; }
#v8 #app .v8-hm-ic-rn { color: var(--v8-ink); font-weight: 700 !important; }
#v8 #app .v8-hm-ic-risks .v8-meter { margin: 0; }
/* The insight: the Insights page's lime panel and the mark over the figures in their column; the title stays ink, as every card's,
   and the card keeps the tiles' neutral lift: the panel alone says insight */
#v8 #app .v8-hm-ic-ins .v8-hm-ic-p { grid-template-rows: auto minmax(0, 1fr); background: var(--v8-insight-panel); }
#v8 #app .v8-hm-ic-ins .v8-hm-ic-p > .v8-hm-ic-a { grid-row: 1 / -1; }
#v8 #app .v8-hm-ic-ins .v8-hm-ic-p > :not(.v8-hm-ic-a, .v8-hm-ic-pin) { grid-row: 2; margin-top: var(--v8-2); }
#v8 #app .v8-hm-ic-pin { grid-column: 1; grid-row: 1; align-self: start; display: inline-flex; align-items: center; gap: 6px; margin: var(--v8-3) 0 0; color: var(--v8-deep);
  font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; font-weight: 700 !important; }
#v8 #app .v8-hm-ic-pmk { display: grid; place-items: center; width: 24px; height: 24px; }
#v8 #app .v8-hm-ic-pmk svg.i { width: 24px; height: 24px; color: var(--v8-deep); fill: currentColor; }
@media (forced-colors: active) { #v8 #app .v8-hm-ic-pin { forced-color-adjust: none; } }

/* The body: the title, sentence and foot on the chips' left edge (the panel's 8 inset plus its 16); the panel is drawn first */
#v8 #app .v8-hm-ic > .v8-hm-ic-p { order: -1; }
#v8 #app .v8-hm-ic > :is(.v8-hm-ic-t, .v8-hm-ic-s, .v8-hm-ic-f) { margin-inline: var(--v8-4); }
#v8 #app .v8-hm-ic > .v8-hm-ic-t { margin-top: var(--v8-4); }
#v8 #app .v8-hm-ic > .v8-hm-ic-f { margin-bottom: var(--v8-4); }
#v8 #app .v8-hm-ic-t { margin: 0; font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; color: var(--v8-ink); text-wrap: balance; }
#v8 #app .v8-hm-ic-s { margin-top: var(--v8-2); margin-bottom: 0; color: var(--v8-ink-2); text-wrap: pretty; }
#v8 #app .v8-hm-ic-f { display: flex; flex-direction: column; align-items: flex-start; gap: var(--v8-2); margin-top: auto; padding-top: var(--v8-5); }
#v8 #app .v8-hm-ic-done .v8-hm-ic-f > .v8-link { min-height: 44px; }
/* Hide sits on the panel's corner as a small white disc (44 to the pointer) */
#v8 #app .v8-hm-ic-x { position: absolute; top: var(--v8-2); right: var(--v8-2); width: 44px; height: 44px; background: transparent; color: var(--v8-ink-2); }
#v8 #app .v8-hm-ic-x::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgb(255 255 255 / .8); transition: background-color .16s ease-out; }
#v8 #app .v8-hm-ic-x svg { position: relative; width: 18px; height: 18px; }
@media (hover: hover) { #v8 #app .v8-hm-ic-x:hover { background: transparent; } #v8 #app .v8-hm-ic-x:hover::before { background: var(--v8-white); } }
/* Hide is always visible (README 142, the audit's D6; UX rule 2, nothing hover-only): it showed only on the card's hover with a
   mouse, so Raili would never find it and a laptop with touch never showed it. Its keyboard focus is the system's ring, drawn
   round the 28 white square so it reads on the coloured panel */
#v8 #app .v8-hm-ic-x:focus-visible { outline: none !important; }
#v8 #app .v8-hm-ic-x:focus-visible::before { background: var(--v8-white); outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }

/* Hidden: the card's place keeps its size for the visit, a quiet dashed outline with Undo, so the row doesn't jump */
#v8 #app .v8-hm-ic-gone { justify-content: center; align-items: flex-start; gap: var(--v8-2); padding: var(--v8-5); background: transparent; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--v8-deep) 30%, transparent); color: var(--v8-ink); transition: opacity .2s var(--v8-ease); }
#v8 #app .v8-hm-ic-gone > p { margin: 0; }
@starting-style { #v8 #app .v8-hm-ic-gone { opacity: 0; } }
/* Up to date: one white card, the panel at its side */
#v8 #app .v8-hm-ic-none { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: var(--v8-2) var(--v8-4); padding: var(--v8-2); border-radius: var(--v8-r); background: var(--v8-white);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04); }
#v8 #app .v8-hm-ic-none .v8-hm-ic-p { --ic-art: 128px; height: 144px; grid-template-columns: 1fr; justify-items: center; padding: 0; }
#v8 #app .v8-hm-ic-none .v8-hm-ic-a { grid-column: 1; }
@container hmic (max-width: 559px) { #v8 #app .v8-hm-ic-none { grid-template-columns: minmax(0, 1fr); } }
@media (forced-colors: active) { #v8 #app .v8-hm-ic { border: 1px solid CanvasText; } }

/* The panel's graphics at illustration size (21 October 2026, Jordi: "they can afford to be a bit smaller, since they're
   illustrative"): the icon tiles 24, the bars 8, the small card tighter. Its words stay 16: the type scale's guard
   (system/type-scale.js) allows only 40, 28, 20, 16 and 12 */
#v8 #app .v8-hm-ic-p .v8-hm-ic-chip { gap: 6px; padding: 3px 10px 3px 3px; }
#v8 #app .v8-hm-ic-p .v8-hm-ic-ci { width: 24px; height: 24px; }
#v8 #app .v8-hm-ic-p .v8-hm-ic-ci svg { width: 16px; height: 16px; }
#v8 #app .v8-hm-ic-p .v8-hm-ic-mini { max-width: 176px; gap: 6px; padding: 10px; }
#v8 #app .v8-hm-ic-p .v8-hm-ic-mini .v8-sb-b { height: 8px; margin-top: 2px; }
#v8 #app .v8-hm-ic-p .v8-hm-ic-steps { height: 8px; margin-top: 2px; }
#v8 #app .v8-hm-ic-p .v8-hm-ic-risks ul { gap: 6px; }
/* Policies' green cards on Home, a study (Janne, 21 October 2026, night; README 73): the full row under Your insurance */
#v8 #app .v8-hm-polc { grid-column: 1 / -1; min-width: 0; width: 100%; }
#v8 #app .v8-hm-polc > section { margin: 0; }
#v8 #app .v8-hm-polc > section { padding-top: var(--v8-6) !important; margin-top: 0 !important; }
/* Home's tile titles are 20 Bold (.v8-hm-tt, titles inside a box); "Your policies" is a page section, 24 like every page section
   title (Janne, 30 October 2026). Earlier it followed the tiles at 20 (Janne: "check the font size of the 'Your
   Policies' header because it seems a bit bigger than the others on the homepage") */
#v8 #app .v8-hm-polc .v8-h2 { font-size: var(--v8c-fs-24, 24px) !important; line-height: var(--v8c-lh-24, 32px) !important; font-weight: 700 !important; }
html#v8[data-scale] #app .v8-hm-polc .v8-h2, html#v8 #app .v8-hm-polc section .v8-h2 { font-size: var(--v8c-fs-24, 24px) !important; line-height: var(--v8c-lh-24, 32px) !important; }
html#v8[data-scale="compact"] #app .v8-hm-polc .v8-h2 { font-size: var(--v8c-fs-24, 24px) !important; line-height: var(--v8c-lh-24, 32px) !important; }

/* ---------- Suggestions' mini charts in the chart well (22 October 2026, README 79) ----------
   The equipment card's split bar and the loyalty card's steps sit in a small well (chart-well.css .v8-cw-sm); the split bar's parts
   become soft chubby parts (10 high, 4 px corners, 3 apart: blue is what we'd pay, the hatch what's left with her, README 30), the
   loyalty steps chubby too: her years in the well's yellow-olive, the next step soft with the olive edge, the rest on the fill with
   the well's outline. The words in the mini keep their own colours */
#v8 #app .v8-hm-ic-p .v8-hm-ic-mini.v8-chartwell { border-color: var(--v8-cw-edge); border-radius: min(var(--v8-2), calc(var(--v8-r) - var(--v8-2) + 2px)); background: var(--v8-cw-bg); box-shadow: none; }   /* the mini keeps its corner, never rounder than its panel */
#v8 #app .v8-hm-ic-mini.v8-chartwell .v8-sb-b { height: 10px; gap: 3px; }
#v8 #app .v8-hm-ic-mini.v8-chartwell .v8-sb-b > i { border-radius: 4px; }
#v8 #app .v8-hm-ic-p .v8-hm-ic-mini.v8-chartwell .v8-hm-ic-steps { height: 10px; gap: 3px; }
#v8 #app .v8-hm-ic-mini.v8-chartwell .v8-hm-ic-steps > i { border-radius: 4px; background: var(--v8-cw-bg); box-shadow: inset 0 0 0 1px var(--v8-cw-edge); }
#v8 #app .v8-hm-ic-mini.v8-chartwell .v8-hm-ic-steps > i.on { background: var(--v8-cw-mark); box-shadow: none; }
#v8 #app .v8-hm-ic-mini.v8-chartwell .v8-hm-ic-steps > i.next { background: var(--v8-cw-soft); box-shadow: inset 0 0 0 1px var(--v8-cw-mark); }
@media (forced-colors: active) {
  #v8 #app .v8-hm-ic-mini.v8-chartwell .v8-hm-ic-steps > i { forced-color-adjust: none; background: Canvas; box-shadow: inset 0 0 0 1px CanvasText; }
  #v8 #app .v8-hm-ic-mini.v8-chartwell .v8-hm-ic-steps > i.on { background: CanvasText; }
}
/* The decision and the amount on one line (README 65, 22 October 2026): "Approved   To be paid 1.150 €", wrapping under only when the
   tile is too narrow; centred on the row's two lines */
#v8 #app .v8-hm-cd.v8-hm-cd-1 { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 4px var(--v8-4); align-self: center; }
#v8 #app .v8-hm-cd.v8-hm-cd-1 .v8-hm-cd-dec { align-items: center; }
#v8 #app .v8-hm-cd.v8-hm-cd-1 .v8-hm-cd-pay { padding-left: 0 !important; }
/* The status column wide enough for "Approved  To be paid 1.150 €" on one line (300 instead of 232; the name column keeps the rest),
   and the status centred on the row's two lines */
#v8 #app .v8-hm-cls { --v8-hm-sw: 300px; }
#v8 #app .v8-hm-cls .v8-hm-rs { align-self: center !important; }
/* The centred card (22 October 2026, the income estimate; README 88): the saved mint-panel card's look (README 82), one 128 px
   illustration in the middle of the mint panel and nothing else on it; a tag at the panel's top left like the Insight pin, white on
   the mint with the deep green word, its own icon (Calculator: a line icon, so stroked, not filled) */
#v8 #app .v8-hm-ic-cen .v8-hm-ic-p { --ic-art: 128px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto var(--ic-art) auto; justify-items: center; padding: var(--v8-3) var(--v8-4) var(--v8-5); }
#v8 #app .v8-hm-ic-cen .v8-hm-ic-p > .v8-hm-ic-a { grid-column: 1; grid-row: 2; align-self: center; }
#v8 #app .v8-hm-ic-cen .v8-hm-ic-p > .v8-hm-ic-pin { grid-column: 1; grid-row: 1; justify-self: start; margin: 0 0 var(--v8-2); }
#v8 #app .v8-hm-ic-pin.v8-hm-ic-pin-calc { padding: 2px 8px 2px 4px; border-radius: var(--v8-r-tag); background: var(--v8-white); }
#v8 #app .v8-hm-ic-pin-calc .v8-hm-ic-pmk svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@container icard (max-width: 259px) { #v8 #app .v8-hm-ic-cen .v8-hm-ic-p > .v8-hm-ic-a { display: block; } }
/* Janne, 22 October 2026: "The money jar ... looks like it is for blind people. Look at the styling we did in the cards that you
   documented from the insurances. It was much smaller, kind of in the center, and it looked very cute." The illustration rule of the
   saved policy card (README 82, policies-s.css: 48 in a 160 panel, plain mint, no tile) at this panel's height: 64, centred in
   the whole panel; the tag stays at the top left, out of the flow (README 92) */
#v8 #app .v8-hm-ic-cen .v8-hm-ic-p { --ic-art: 64px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 0; }
#v8 #app .v8-hm-ic-cen .v8-hm-ic-p > .v8-hm-ic-a { grid-area: 1 / 1; align-self: center; justify-self: center; margin: 0; }
#v8 #app .v8-hm-ic-cen .v8-hm-ic-p > .v8-hm-ic-pin { position: absolute; top: var(--v8-3); left: var(--v8-4); margin: 0; }
/* The claims snippet's mini card (README 93): two rows, each the tiles' squares (ix-pair.css .ixp-dots, 12 px, three to a row) and
   the figure in 16 Bold with its words */
#v8 #app .v8-hm-ic-cl ul { display: grid; gap: var(--v8-3); margin: 0; padding: 0; list-style: none; }
#v8 #app .v8-hm-ic-cl li { display: flex; align-items: center; gap: var(--v8-3); color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 #app .v8-hm-ic-cl li b { font-weight: 700; }
#v8 #app .v8-hm-ic-sq { flex: none; display: grid; place-items: center; width: 40px; }
/* The Calculator card's panel (Janne, 22 October 2026: "Maybe the background shouldn't be that green for these calculators. Maybe it
   should be some other color that we are not yet using ... a bit lighter"): Fennia's Yellow-10 (#FFF0D6, the warm extension colour
   no surface uses) mixed 60 % with white, a light peach, so a tool reads apart from the mint suggestions and the lime insights */
#v8 #app .v8-hm-ic-cen .v8-hm-ic-p { background: color-mix(in srgb, var(--fennia-yellow-10) 60%, var(--v8-white)) !important; }
#v8 #app .v8-hm-ic-cl li > span:last-child { white-space: nowrap; }
/* The mid card (README 100, Janne of the claims snippet: "It should just be in the very center of that card, and that money envelope
   illustration should be taken away"): no illustration; the white mini card alone, centred in the panel; the tag at the top left,
   out of the flow, as on the centred card (README 92) */
#v8 #app .v8-hm-ic-mid .v8-hm-ic-p { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: var(--v8-8) var(--v8-4) var(--v8-4); }
#v8 #app .v8-hm-ic-mid .v8-hm-ic-p > .v8-hm-ic-mini { grid-area: 1 / 1; grid-column: 1 !important; grid-row: 1 !important; justify-self: center; align-self: center; margin: 0 !important; }
#v8 #app .v8-hm-ic-mid .v8-hm-ic-p > .v8-hm-ic-pin { position: absolute; top: var(--v8-3); left: var(--v8-4); margin: 0; }
#v8 #app .v8-hm-ic.v8-hm-ic-mid .v8-hm-ic-p > p.v8-hm-ic-pin { position: absolute !important; top: var(--v8-4) !important; left: var(--v8-4) !important; margin: 0 !important; grid-area: auto !important; }
/* README 103 (22 October 2026). The Assessment card's panel: Fennia's Blue-10 (#F2F5FF), another tool colour beside the Calculator's
   peach. The Assessment tag's list icon is a line icon, so stroked like the calculator's */
#v8 #app .v8-hm-ic-cen.v8-hm-ic-blue .v8-hm-ic-p { background: var(--fennia-blue-10) !important; }
#v8 #app .v8-hm-ic-pin.v8-hm-ic-pin-list { padding: 2px 8px 2px 4px; border-radius: var(--v8-r-tag); background: var(--v8-white); }
#v8 #app .v8-hm-ic-pin-list .v8-hm-ic-pmk svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
/* Card titles at the policy cards' size (Janne, the same day: "use the smaller font size that we use in those policy cards ... how it
   would look if you put the titles in smaller font"): 16 Bold on 24, was 20 */
#v8 #app .v8-hm-ic .v8-hm-ic-t { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
/* The suggestion cards' one action as the small chip (README 103; Janne, the same day: "should those be like those very small buttons
   that we created with a stroke around ... When we have these insurance insights, I wonder, would it be useful?"): with 16 titles a
   44 secondary outweighed the title, so the card's action is the View document chip's size and stroke (README 96, 97): 36 high,
   0 12, 8 corners, Primary-30, white; hover the green wash and Primary-40. A 44 tap area stays on touch */
/* Since README 111 (the same day) the action is the system's chip button itself (.v8-chipbtn, light green), so this file has no
   copy of it */
/* The Assessment tag's icon is Fennia's "form check" (a filled icon, like the Insight lamp), on the tag's white chip */
#v8 #app .v8-hm-ic-pin.v8-hm-ic-pin-formCheck { padding: 2px 8px 2px 4px; border-radius: var(--v8-r-tag); background: var(--v8-white); }
#v8 #app .v8-hm-ic-pin-formCheck .v8-hm-ic-pmk svg.i { width: 20px; height: 20px; fill: currentColor; stroke: none; }
/* The claims insight card centred (README 114): the insight's lime with the centred card's layout; the Insight tag stays at the top
   left like the tools' tags */
#v8 #app .v8-hm-ic-ins.v8-hm-ic-cen .v8-hm-ic-p { background: var(--v8-insight-panel) !important; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: var(--v8-8) var(--v8-4) var(--v8-4); }
#v8 #app .v8-hm-ic-ins.v8-hm-ic-cen .v8-hm-ic-p > .v8-hm-ic-a { grid-area: 1 / 1 !important; align-self: center; justify-self: center; }
#v8 #app .v8-hm-ic.v8-hm-ic-ins.v8-hm-ic-cen .v8-hm-ic-p > p.v8-hm-ic-pin { position: absolute !important; top: var(--v8-4) !important; left: var(--v8-4) !important; margin: 0 !important; }
#v8 #app .v8-hm-ic.v8-hm-ic-ins.v8-hm-ic-cen .v8-hm-ic-p { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; place-items: center !important; }
#v8 #app .v8-hm-ic.v8-hm-ic-ins.v8-hm-ic-cen .v8-hm-ic-p > .v8-hm-ic-a { grid-column: 1 !important; grid-row: 1 !important; align-self: center !important; justify-self: center !important; width: 64px !important; height: 64px !important; }
/* An absolutely placed tag inside a grid takes its grid area as its box; with no area it measures from the panel itself */
#v8 #app .v8-hm-ic.v8-hm-ic-cen .v8-hm-ic-p > p.v8-hm-ic-pin, #v8 #app .v8-hm-ic.v8-hm-ic-mid .v8-hm-ic-p > p.v8-hm-ic-pin { grid-column: auto !important; grid-row: auto !important; grid-area: auto !important; }
/* The risks card (Janne, 22 October 2026: "take the lighthouse away, and just try to place those risk bars in the middle of the white
   box. Also, maybe try to make them slightly smaller so they're a bit cuter"): the mid card (README 101) and a smaller meter: the
   capsule 54 x 14 (was 72 x 18), its steps 15 x 8, the words at 16; the box's padding 12 16 */
#v8 #app .v8-hm-ic-mid .v8-hm-ic-risks { padding: var(--v8-3) var(--v8-4) !important; }
#v8 #app .v8-hm-ic-risks ul { gap: var(--v8-2) !important; }
#v8 #app .v8-hm-ic-risks .v8-mt-cap { width: 54px !important; height: 14px !important; gap: 2px !important; padding: 2px !important; }
#v8 #app .v8-hm-ic-risks .v8-mt-cap > i { width: 15px !important; height: 8px !important; flex: none; }
/* "All claims", "All messages", "All policies" as the small chip button (README 121; Janne, 22 October 2026: "i think those should
   be little buttons"): white, 1 px Primary-30, 8 corners, 36 high, no arrow (README 96: the chip has words, no icon). Supersedes
   README 90's subtle-button look for these head links */
#v8 #app .v8-hm-th > a.v8-chipbtn.v8-hm-thl { margin: 0 !important; padding: 5px 12px !important; min-height: 36px; border-radius: var(--v8-r-pill) !important; background: var(--v8-white) !important; border: 1px solid var(--fennia-primary-30) !important; }
#v8 #app .v8-hm-th > a.v8-chipbtn.v8-hm-thl::after { display: none !important; }
@media (hover: hover) { #v8 #app .v8-hm-th > a.v8-chipbtn.v8-hm-thl:hover { background: var(--v8-hover) !important; border-color: var(--fennia-primary-40) !important; } }
/* Home's ongoing claims rows (README 126; Janne, 22 October 2026: "You should put the financial loss and the claim number closer to
   each other. They're too far from each other, and I would put the decision to the right. If it doesn't fit when the screen gets
   smaller ... it should push downwards. It should be clearly separated from the joint ... layout of the financial loss and the
   claim number"). The name and its number are one block (no gap; the number in secondary ink right under the name, both 16/24); the decision
   sits at the row's right edge; when the tile is narrower than 520 the decision drops under the block, aligned with the words,
   12 below them */
#v8 #app .v8-hm-t-claims { container: hmclaims / inline-size; }
#v8 #app .v8-hm-t-claims a.v8-hm-row.v8-hm-cl { grid-template-columns: var(--v8-hm-iw, 52px) minmax(0, 1fr) auto auto !important; grid-template-areas: "i t s k" "i m s k" !important; row-gap: 0 !important; column-gap: var(--v8-4) !important; }
#v8 #app .v8-hm-t-claims a.v8-hm-row.v8-hm-cl > .v8-hm-rs { justify-self: end; align-self: center !important; }
@container hmclaims (max-width: 519px) {
  #v8 #app .v8-hm-t-claims a.v8-hm-row.v8-hm-cl { grid-template-columns: var(--v8-hm-iw, 52px) minmax(0, 1fr) auto !important; grid-template-areas: "i t k" "i m k" ". s s" !important; }
  #v8 #app .v8-hm-t-claims a.v8-hm-row.v8-hm-cl > .v8-hm-rs { justify-self: start; margin-top: var(--v8-3); }
}
/* The could-add cards' arrow square at the bottom right like the policy cards' (README 126): the foot has no price there */
#v8 #app .v8-pc .v8-pc-foot > .v8-arrow { margin-left: auto; }
/* Every Home card's panel one fixed height (Janne, 22 October 2026, of the risks card growing taller than its neighbour when
   "Accident insurance" wrapped: "The card should be a fixed height (I mean the yellow area). Maybe you should just try to make the
   little container inside smaller"): the panel is 208 high, never more; the risks box inside is smaller, its names and words 14/20
   on one line, the meter 12 high, so two risks fit in any card width */
#v8 #app .v8-hm-ic-p { height: 208px; min-height: 0; }
#v8 #app .v8-hm-ic-mid .v8-hm-ic-risks { max-width: 176px; padding: var(--v8-3) !important; }
#v8 #app .v8-hm-ic-risks ul { gap: var(--v8-2) !important; }
#v8 #app .v8-hm-ic-risks :is(.v8-hm-ic-rn, .v8-meter, .v8-meter *) { font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; white-space: nowrap; }
#v8 #app .v8-hm-ic-risks .v8-hm-ic-rn { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Quick stats (README 140, 22 October 2026) ----------
   Janne, with a "Quick Stats" card as the reference: "its own little row of four little, thin, narrow cards". A row of four on
   the mint floor above the dashboard, each one link to its page: white, 1 px line, 12 corners, 12 16 in; a 40 square (8 corners,
   the page's gray) with the side menu's icon for that page at 24; the figure 20 Bold over its label 16 in ink-2. The whole card is
   the link, so the whole card washes green on hover (hover only on what's clickable). Four across from 880 of the floor, two
   across under it, one under 400 */
#v8 #app .v8-qs { container: v8qs / inline-size; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--v8-4); margin: 0 0 var(--v8-5); padding: 0; list-style: none; }
@container app (max-width: 1099px) { #v8 #app .v8-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1099px) { #v8 #app .v8-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 399px) { #v8 #app .v8-qs { grid-template-columns: minmax(0, 1fr); } }
#v8 #app .v8-qs > li { min-width: 0; }
#v8 #app .v8-qs-c { display: flex; align-items: center; gap: var(--v8-3); height: 100%; box-sizing: border-box; padding: var(--v8-3) var(--v8-4); border: 1px solid var(--v8-line); border-radius: var(--v8-r); background: var(--v8-white); color: var(--v8-ink); text-decoration: none; transition: background-color .16s ease-out, border-color .16s ease-out; }
#v8 #app .v8-qs-i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--v8-r-sm); background: var(--v8-gray); color: var(--v8-ink); }
#v8 #app .v8-qs-i svg.i { width: 24px; height: 24px; }
#v8 #app .v8-qs-t { display: grid; min-width: 0; }
#v8 #app .v8-qs-f { color: var(--v8-ink); font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
#v8 #app .v8-qs-l { color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; overflow-wrap: anywhere; }
@media (forced-colors: active) { #v8 #app .v8-qs-i { border: 1px solid CanvasText; } }
/* Second pass: the page's name first, so a card is recognised by its word, not its number (Janne: "like number 4, are just not very
   recognizable"); the row has its own title on the green ("You could also add quick stats above"). The name 16 Bold in ink, the
   figure line 16 in ink-2; the icon on the side menu's mint tile in link green, the menu's own pairing of icon and word */
#v8 #app .v8-qs-w { margin: 0 0 var(--v8-6); }
#v8 #app .v8-qs-w .v8-qs { margin: 0; }
#v8 #app .v8-qs-n { color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; }
#v8 #app .v8-qs-i { background: var(--v8-mint); color: var(--v8-green-t); }
#v8 #app .v8-qs-i svg.i { color: var(--v8-green-t); }

/* One distance between Home's sections, across and down (Janne, 22 October 2026: "add more gap between the Ongoing Claims and
   Messages ... the same kind of distance horizontally between them as you apply vertically"): 40 between Ongoing claims and
   Messages, 40 under Quick stats, 40 above Suggestions for you (was 16 across and 32 under the stats) */
#v8 #app .v8-qs-w { margin-bottom: var(--v8-7); }
/* The heads' counts as a blue square (Janne, 22 October 2026: "a light blue background for the number 4, and it could be dark
   blue ... the same kind of curved-edged square, but ... quite a thick border, maybe 2 or 4 pixels, like a white band around it").
   Ongoing claims' "4" and Messages' "2 new": Fennia's Blue-20 with the number in Blue-200, 16 Bold, a 28 high curved square (8
   corners, 8 in for words), a 4 white band round it (so 36 outside), 8 after the title. Blue-200 on Blue-20 is about 8:1 */
#v8 #app .v8-hm-tile:is(.v8-hm-t-claims, .v8-hm-t-msg) .v8-hm-count { display: inline-grid; place-items: center; vertical-align: middle; box-sizing: content-box; min-width: 28px; height: 28px; margin: 0 0 0 var(--v8-2) !important; padding: 0 var(--v8-2) !important; border: 4px solid var(--v8-white); border-radius: 12px; background: var(--fennia-blue-20) !important; color: var(--fennia-blue-200) !important; font-size: var(--v8-fs-16) !important; line-height: 28px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
@media (forced-colors: active) { #v8 #app .v8-hm-tile:is(.v8-hm-t-claims, .v8-hm-t-msg) .v8-hm-count { border-color: CanvasText; } }
/* A light gray line between the rows (Janne, 22 October 2026: "even though I've been taking them away, to put a separating line
   (light gray) between the ongoing claims ... The same applies to the messages too"): 1 px --v8-line between two rows, in the
   card's padding line, under the row's own hover wash */
/* (the lines were taken away again the same night: "Take the dividers away. Let's look at them without them.") */
/* A slightly darker blue stroke inside the white band (Janne, the same night: "could you also add a slightly darker blue stroke
   just before there's the white band?"): 1 px of Blue-100 mixed 35 % with white, inside the 4 white band */
#v8 #app .v8-hm-tile:is(.v8-hm-t-claims, .v8-hm-t-msg) .v8-hm-count { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fennia-blue-100) 35%, var(--v8-white)); }
#v8 #app .v8-hm-tile:is(.v8-hm-t-claims, .v8-hm-t-msg) .v8-hm-count { min-width: 16px; padding: 0 6px !important; }   /* a lone number is a 28 square; "2 new" grows with its words */
/* Regular weight (Janne, the same night: "maybe make the numbers not bold and the text not bold"); the box hugs its words with a
   28 minimum, so a lone number is a perfect 28 square inside its band */
#v8 #app .v8-hm-tile:is(.v8-hm-t-claims, .v8-hm-t-msg) .v8-hm-count { font-weight: 400 !important; box-sizing: border-box; min-width: 36px; height: 36px; padding: 0 8px !important; line-height: 28px !important; }
/* The counts' meaning by colour (Janne, 22 October 2026: "take the white band away ... For the ongoing claims, I wonder what color
   we should use here because it's not really urgent. What semantic color should we be using so people notice that there are 4
   ongoing claims and then there are those new messages?"). No white band. Two meanings, two colours:
   - a count (Ongoing claims' "4": how many are in progress, nothing new, nothing to do): neutral, the page's gray (Neutral-15)
     with ink, 1 px --v8-line; it reads as a quantity, like the claims page's own counts
   - news (Messages' "2 new": something arrived she hasn't read): the info blue (Blue-20, Blue-200 words, the Blue-100 stroke),
     Fennia's colour for "please note", calm but noticed; red stays for errors and the unread dots in the rows */
#v8 #app .v8-hm-tile:is(.v8-hm-t-claims, .v8-hm-t-msg) .v8-hm-count { border: 0 !important; min-width: 28px; height: 28px; padding: 0 6px !important; }
/* Both counts blue since the same night (Janne: "let's keep the blue that we have now"): the claims count is information too */
/* The counts take the tags' corners (Janne, 22 October 2026: "The tag should have the same corner radius as the other tags we have
   been using, so not that soft, not that round"): 6, as the card tags (README 137) and the data tags; both stay blue */
#v8 #app .v8-hm-tile:is(.v8-hm-t-claims, .v8-hm-t-msg) .v8-hm-count { border-radius: var(--v8-r-tag) !important; }
/* Recent claims' statuses line up at their left (Janne, 22 October 2026: "the time things should be vertically aligned ... Now
   they're all right-aligned. They should be left-aligned"): every row gives the status one column of the same width (272, the
   widest status, "Approved, To be paid 1.150 €", fits), and the status starts at that column's left edge, so the clock, the cross
   and the check stand in one vertical line. Only where the rows sit side by side (the tile from 520); narrower, they stack */
@container hmclaims (min-width: 520px) {
  #v8 #app .v8-hm-cls .v8-hm-row-i.v8-hm-row-s.v8-hm-row-k { grid-template-columns: var(--v8-hm-iw, 52px) minmax(0, 1fr) 272px 0 !important; }
  #v8 #app .v8-hm-cls .v8-hm-row-s .v8-hm-rs { justify-self: start !important; justify-content: flex-start !important; text-align: left !important; }
}
/* A small arrow square at each stat card's end (Janne, 22 October 2026: "add a tiny button that has an arrow in the quick stats, so
   that also gives us an understanding that they are clickable and you can get directed to those places"): 32, 8 corners, white
   with the chip's 1 px Primary-30 stroke and the link green arrow at 16, at the card's right; the whole card stays the one link
   (the square is decoration for sight, hidden from screen readers), and it darkens with the card's hover like the chips (README 111) */
#v8 #app .v8-qs-c .v8-qs-t { flex: 1 1 auto; }

/* The Risk assessment card's AI action (22 October 2026, README 144; Janne: "put the AI button there and say, 'Reassess risks.' It
   would have an AI symbol, so it would actually launch the AI chat. That would be one of the nudging patterns"): the system's AI
   button (.v8-btn-ai: the rainbow ring and the sparkle) at the card foot's chip size, so it stands as high as the other cards'
   actions: 36 tall (44 tap area on touch), 8 corners, 16 Regular. The ring is 2 px at rest and 3 px on hover, as everywhere; the
   padding gives the extra pixel back so nothing moves */
html#v8 #app .v8-hm-ic .v8-hm-ic-f .v8-btn-ai { height: 36px; min-height: 36px; padding: 0 12px 0 10px; gap: 6px; border-radius: var(--v8-r-pill); box-sizing: border-box; }
@media (hover: hover) { html#v8 #app .v8-hm-ic .v8-hm-ic-f .v8-btn-ai:hover, html#v8 #app .v8-hm-ic .v8-hm-ic-f .v8-btn-ai:focus-visible { padding: 0 11px 0 9px; } }
@media (pointer: coarse) { html#v8 #app .v8-hm-ic .v8-hm-ic-f .v8-btn-ai::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; } }
/* Quick stats about her account (README 140, second set): the lines are longer, and with the arrow square each card needs more room,
   so the row is four across from 1600, two across below (and beside the docked AI drawer), one under 400 */
@container app (max-width: 1599px) { #v8 #app .v8-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1599px) { #v8 #app .v8-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 399px) { #v8 #app .v8-qs { grid-template-columns: minmax(0, 1fr); } }
/* Three stats, three across (Janne: "three quick stats ... more space for the middle one"): three across from a 1200 page area (the
   docked drawer counts), one under it */
@container app (min-width: 1200px) { #v8 #app .v8-qs { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@container app (max-width: 1199px) { #v8 #app .v8-qs { grid-template-columns: minmax(0, 1fr) !important; } }
@container app (max-width: 1399px) { #v8 #app .v8-qs-c { gap: var(--v8-2); padding: var(--v8-3); } }   /* tighter inside on narrower pages, so the three lines stay on one row */
/* In the dashboard between Suggestions for you and Your policies: the full width, 40 above and below like the other sections (the
   grid's 16 row gap plus 24) */
#v8 #app .v8-hm-bento > .v8-qs-w { grid-column: 1 / -1; margin: 0 0 var(--v8-5) !important; }

/* Quick stats are figures, not links (Janne, 22 October 2026: "take the entire hover effect away, and also the arrow. You don't
   need the button there."): no hover, no arrow, no focus stop. README 148. */
/* Suggestions for you: the cards' type tags (Calculator, Assessment, Insight) in regular weight and Neutral-100, icon and words
   alike (Janne, 22 October 2026: "I don't want them to be bold. They should be just regular weight, and I think they shouldn't also be
   green. They should be just our regular neutral 100 color, both the icon and the text"). README 150 */
html#v8 #app .v8-hm-ic .v8-hm-ic-pin, html#v8 #app .v8-hm-ic .v8-hm-ic-pin * { font-weight: 400 !important; color: var(--fennia-neutral-100, #333333) !important; }
html#v8 #app .v8-hm-ic .v8-hm-ic-pmk svg.i { color: var(--fennia-neutral-100, #333333) !important; }
html#v8 #app .v8-hm-ic .v8-hm-ic-pmk svg.i:not([fill="none"]) [fill]:not([fill="none"]) { fill: currentColor !important; }
/* Quick stats: the figure in a light blue tile (README 157), Claims' amount tile (.v8-fl-amt) in the claim card's blue: --v8-blue under
   --v8-blue-ink words (6.1:1), 8 corners, 8 px sides, Regular */
html#v8 #app .v8-qs-amt { display: inline-block; padding: 0 var(--v8-2); border-radius: var(--v8-r-sm); background: var(--v8-blue); color: var(--v8-blue-ink); font-weight: 400 !important; white-space: nowrap; }
@media (forced-colors: active) { html#v8 #app .v8-qs-amt { border: 1px solid CanvasText; } }

/* Messages' "2 new" is the notice colour (README 166, then lime in README 169, Janne, 23 October 2026); Ongoing claims' count stays the info blue */
#v8 #app .v8-hm-tile.v8-hm-t-msg .v8-hm-count { background: var(--v8-new) !important; color: var(--v8-deep) !important; box-shadow: inset 0 0 0 1px var(--v8-new-edge) !important; }   /* lime since README 169 */

/* README 206 (Janne, 9 November 2026: "when we use those semantic colors and there's a background color, we don't use a stroke. On
   the home, when we say Recent claims and there are 4, it shouldn't have a stroke. Same with 2 new messages"): the counts keep
   their fill (claims blue, news lime) and lose the 1 px edge */
#v8 #app .v8-hm-tile:is(.v8-hm-t-claims, .v8-hm-t-msg) .v8-hm-count { box-shadow: none !important; }
@media (forced-colors: active) { #v8 #app .v8-hm-tile:is(.v8-hm-t-claims, .v8-hm-t-msg) .v8-hm-count { outline: 1px solid CanvasText; } }
