/* =====================================================================================================================
   v8 claims: Claims (#/claims), a claim (#/claims/:id) and the Add costs drawer (17 October 2026).
   Views: ../../prototype/app/v8-claims.js. Builds on base.css; only what these pages add. In-app rules start with #v8 #app
   (2 ids), the drawer's with #v8 .v8-dlgw (it lives on <body>). Weight and size carry !important (base.css explains why).
   No font-size inside a media query: layout responds, type does not.
   ===================================================================================================================== */

/* ---------- The task on a waiting claim: the upload is a real file input behind a primary button ---------- */
#v8 #app .v8c-upw { display: inline-flex; }
#v8 #app .v8c-upw label { cursor: pointer; }
#v8 #app .v8c-upw:has(input:focus-visible) label { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }

/* ---------- Disagree with the decision? Under Claim details on an approved claim, above them on a declined one. Each is a box in
   the band, 24 apart (base.css 30) ---------- */

/* ---------- The draft card in the hero's card row ---------- */
/* The claim card's anatomy (art, name, line, badge, foot); the foot holds Continue and Delete draft */
#v8 #app .v8c-dr-acts { flex-wrap: wrap !important; align-items: center; justify-content: flex-start; gap: var(--v8-4) var(--v8-5); }

/* ---------- The new stage: the empty state sits one section under the hero ---------- */
#v8 #app .v8c-empty .v8-empty { max-width: none; }

/* ---------- The Add costs drawer (on <body>, so every rule names the dialog) ---------- */
#v8 .v8co .v8-dlg-b { display: grid; align-content: start; gap: var(--v8-6); }
#v8 .v8co .v8-dlg-b p { margin: 0; }
#v8 .v8co .v8co-intro { color: var(--v8-ink-2); }
#v8 .v8co .v8co-set { display: grid; gap: var(--v8-2); min-width: 0; margin: 0; padding: 0; border: 0; }
#v8 .v8co .v8co-l { padding: 0; margin: 0 0 var(--v8-2); font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; letter-spacing: -0.01em; color: var(--v8-ink); }
#v8 .v8co .v8co-hint { margin-top: calc(-1 * var(--v8-1)) !important; color: var(--v8-ink-2); }
#v8 .v8co .v8co-opts { display: grid; gap: var(--v8-3); }
#v8 .v8co .v8co-opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: var(--v8-4); padding: var(--v8-5); cursor: pointer; }
#v8 .v8co .v8co-tx { display: grid; gap: var(--v8-1); min-width: 0; overflow-wrap: anywhere; }
#v8 .v8co .v8co-tx b { font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; letter-spacing: -0.01em; color: var(--v8-ink); }
#v8 .v8co .v8co-tx > span { color: var(--v8-ink-2); }
/* The rows' states and the radio are base.css 22's (the integrator, 18 October 2026) */
#v8 .v8co .v8co-ck { place-items: center; }
#v8 .v8co .v8co-ck svg.i { width: 16px; height: 16px; }
/* An error marks its group with one red rule at the left, the message under the question (GOV.UK's pattern), not red edges on every card */
#v8 .v8co .v8co-set.v8co-bad { padding-left: var(--v8-4); border-left: 2px solid var(--v8-red); }
#v8 .v8co .v8co-drop { color: var(--v8-ink-2); }
#v8 .v8co .v8co-up.v8co-over { box-shadow: var(--v8-edge-chosen); }
#v8 .v8co .v8co-up { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v8-4); padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-gray); }
#v8 .v8co .v8co-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--v8-white); color: var(--v8-green); }
#v8 .v8co .v8co-ic svg.i { width: 24px; height: 24px; }
#v8 .v8co .v8co-up label { cursor: pointer; }
#v8 .v8co .v8co-up:has(input:focus-visible) label { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
#v8 .v8co .v8co-chosen { display: grid; gap: var(--v8-2); margin: 0; padding: 0; list-style: none; }
#v8 .v8co .v8co-chosen:empty { display: none; }
#v8 .v8co .v8co-chosen li { display: flex; align-items: center; gap: var(--v8-3); min-height: 44px; padding: 0 var(--v8-4); border-radius: var(--v8-r-sm); background: var(--v8-gray); color: var(--v8-ink); overflow-wrap: anywhere; }
#v8 .v8co .v8co-chosen svg.i { flex: none; width: 24px; height: 24px; color: var(--v8-green); }
#v8 .v8co .v8co-err { display: flex; align-items: flex-start; gap: var(--v8-2); margin: 0 0 var(--v8-2) !important; color: var(--v8-red); font-weight: 700 !important; }
#v8 .v8co .v8co-err[hidden] { display: none; }
#v8 .v8co .v8co-err svg.i { flex: none; width: 20px; height: 20px; margin-top: 2px; }
@media (max-width: 639px) { #v8 .v8co .v8-dlg-f { padding-left: var(--v8-4); padding-right: var(--v8-4); } #v8 .v8co .v8-dlg-f .v8-btn { flex: 1 1 auto; } }

/* ---------- A claim's page (.v8c-claim wraps it), the fixes of 18 October 2026 (Janne's claim page notes, review fr-claims) ---------- */
/* "We've got your claim.": the green check and the words, first in the progress card right after Send */
#v8 #app .v8c-got { display: flex; align-items: flex-start; gap: var(--v8-2); margin: 0; color: var(--v8-ink); }
#v8 #app .v8c-got svg.i { flex: none; width: 24px; height: 24px; color: var(--v8-blue-ink); }
#v8 #app .v8c-got b { font-weight: 700 !important; }
/* Claim progress with nothing to do: the track runs across the card, the one sentence under it (no half-empty second column) */
#v8 #app .v8-split.v8c-prog1 { grid-template-columns: minmax(0, 1fr); }
#v8 #app .v8c-prog1 .v8-split-m { padding: 0 0 var(--v8-5); }
#v8 #app .v8c-prog1 .v8-split-s { padding: var(--v8-5) 0 0; border-left: 0; border-top: 1px solid var(--v8-blue-line); }
/* Claim payment and deductible in one column: the rows, then under a hairline what they mean (Janne: "stuff should be below") */
#v8 #app .v8-split.v8c-stack { grid-template-columns: minmax(0, 1fr); }
#v8 #app .v8c-stack .v8-split-m { max-width: 640px; padding: 0 0 var(--v8-5); }
#v8 #app .v8c-stack .v8-split-s { padding: var(--v8-5) 0 0; border-left: 0; border-top: 1px solid var(--v8-line); }
/* The facts: the system's boxed facts since README 100 (base.css "Detail page parts"), which stack under 720 on their own; the
   open row's narrow-row rules that stood here are gone */

/* Claim details and the help card start on one line in the band: the system's paired boxes (README 32, base.css 30) since 18
   October 2026, late evening, so this file no longer steps the help card down */

/* The hero's strip is the system's (V8.facts({ strip: true }), README 35, base.css 7) since 18 October 2026, night */

/* ---------- Claims: Ongoing claims as decision days (SPEC 4.3) ----------
   A thin line runs down the days through their dots: "Today" on a filled 16 Fennia green dot, each day on a hollow one (white, the
   2 px green ring). From a 720 list the day (its date 20 Bold, what is expected 16 secondary under it) takes a 264 column and its
   claim cards stand beside it, 8 apart; under 720 the day sits above its cards and the cards keep 32 in, past the line. A card is
   gray, 16 corners, 24 in: the white 48 disc, the name 16 Bold and what happened, the progress bar with its word, and View claim,
   the one link. Only View claim hovers (the link's underline); the card has no hover of its own */
#v8 #app .v8c-tlw { container: v8ctl / inline-size; }
#v8 #app .v8c-rowsw + .v8c-tlw { margin-top: var(--v8-6); }
#v8 #app .v8c-dgs { position: relative; display: grid; gap: var(--v8-6); margin: 0; padding: 0; list-style: none; }
#v8 #app .v8c-dgs::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 24px; width: 2px; border-radius: 1px; background: var(--v8-line); }
#v8 #app .v8c-dg { position: relative; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: var(--v8-4) var(--v8-5); align-items: start; }
#v8 #app .v8c-dg-today { display: block; }
#v8 #app .v8c-dg-h { position: relative; padding-left: 32px; }
#v8 #app .v8c-dg-dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--v8-white); box-shadow: inset 0 0 0 2px var(--v8-green); }
#v8 #app .v8c-dg-today .v8c-dg-dot { top: 4px; background: var(--v8-green); }
#v8 #app .v8c-dg-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; letter-spacing: -0.01em; }
#v8 #app .v8c-dg-t + .v8c-dg-l { margin: var(--v8-1) 0 0; color: var(--v8-ink-2); }
#v8 #app .v8c-dg-now { margin: 0; color: var(--v8-ink-2); }
#v8 #app .v8c-ccs { display: grid; gap: var(--v8-2); margin: 0; padding: 0; list-style: none; }
#v8 #app .v8c-cc { display: grid; grid-template-columns: 48px minmax(0, 1fr) 11.5rem auto; grid-template-areas: "i t s a"; align-items: center; gap: var(--v8-2) var(--v8-4); padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-gray); }
#v8 #app .v8c-cc > .v8c-row-ic { grid-area: i; }
#v8 #app .v8c-cc-tx { grid-area: t; display: grid; gap: var(--v8-1); min-width: 0; overflow-wrap: anywhere; }
#v8 #app .v8c-cc-n { margin: 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; letter-spacing: 0; }
#v8 #app .v8c-cc-l { color: var(--v8-ink-2); }
#v8 #app .v8c-cc-need { color: var(--v8-ink); font-weight: 700 !important; }
#v8 #app .v8c-cc-st { grid-area: s; min-width: 0; }
#v8 #app .v8c-cc-a { grid-area: a; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
/* V8C.card(c, { when: true }) on a policy page: the status line with its date 4 under the bar (no day above the card says it) */
#v8 #app .v8c-cc-when { display: block; margin-top: var(--v8-1); color: var(--v8-ink); }
#v8 #app .v8c-cc-when .v8c-when { color: var(--v8-ink); font-weight: 700 !important; }
@container v8ctl (max-width: 719px) {
  #v8 #app .v8c-dgs { gap: var(--v8-5); }
  #v8 #app .v8c-dg { grid-template-columns: minmax(0, 1fr); }
  #v8 #app .v8c-ccs { padding-left: 32px; }
  #v8 #app .v8c-cc { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "i t" "s s" "a a"; align-items: start; padding: var(--v8-4); row-gap: var(--v8-3); column-gap: var(--v8-4); }
  #v8 #app .v8c-cc-a { justify-self: start; min-height: 44px; margin: calc(-1 * var(--v8-2)) 0; }
}
@container v8ctl (max-width: 319px) {
  /* A 320 phone (a 288 list): the disc steps aside so the name keeps its width */
  #v8 #app .v8c-cc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "s" "a"; }
  #v8 #app .v8c-cc > .v8c-row-ic { display: none; }
}

/* ---------- Claims: Past claims as white rows (SPEC 4.1, 4.3) ----------
   No box: hairlines above, between and below, 16 in each row. The claim's name is the link (16 Bold link green), what happened and
   the claim number under it in secondary; then the policy and "Decided on ..."; the decision badge; what was paid (16 Bold) with to
   whom and when under it, at the right. Under a 720 list the badge stays beside the name and the rest runs under it */
#v8 #app .v8c-prw { container: v8cpr / inline-size; }
#v8 #app .v8c-pr { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--v8-line); }
#v8 #app .v8c-pr-r { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 112px minmax(0, 1fr); grid-template-areas: "a b c d"; gap: var(--v8-2) var(--v8-5); align-items: start; padding: var(--v8-4) 0; border-bottom: 1px solid var(--v8-line); }
#v8 #app .v8c-pr-a { grid-area: a; } #v8 #app .v8c-pr-b { grid-area: b; } #v8 #app .v8c-pr-c { grid-area: c; } #v8 #app .v8c-pr-d { grid-area: d; }
#v8 #app :is(.v8c-pr-a, .v8c-pr-b, .v8c-pr-d) { display: flex; flex-direction: column; min-width: 0; }
#v8 #app :is(.v8c-pr-a, .v8c-pr-b, .v8c-pr-d) > span { color: var(--v8-ink-2); }
#v8 #app .v8c-pr-b > span:first-child { color: var(--v8-ink); }
#v8 #app .v8c-pr-n { align-self: flex-start; font-weight: 700 !important; }
#v8 #app span.v8c-pr-n { color: var(--v8-ink); }
#v8 #app .v8c-pr-c { padding-top: 2px; }
#v8 #app .v8c-pr-d { align-items: flex-end; text-align: right; }
#v8 #app .v8c-pr-d > b { color: var(--v8-ink); font-weight: 700 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
@container v8cpr (max-width: 719px) {
  #v8 #app .v8c-pr-r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a c" "b b" "d d"; row-gap: var(--v8-3); }
  #v8 #app .v8c-pr-d { align-items: flex-start; text-align: left; }
}

/* Claims' hero: the town never stands on the actions. base.css section 6 does it for every hero since the integrator's pass */

/* ---------- Claims: the saved draft's row above the timeline (it was every ongoing claim's row until 18 October 2026, night; Janne's
   note 3: "long, thin list rows, like the documents") ----------
   The documents' anatomy (base.css, .v8-doc): one gray card per claim, radius 16, 8 apart; the icon in a white 48 disc, the name 16
   Bold and what happened 16 gray, then the status (its badge, and the date under it), then "View claim" in green. The row is one
   link and hovers with the green edge. Under a 720 list the status and the cue go under the text */
#v8 #app .v8c-rowsw { container: v8crows / inline-size; }
/* One grid for all the rows (subgrid), so the statuses and the cues line up down the list whatever a row holds. A subgrid's
   padding sits in its edge tracks, so the first track is the row's 24 padding plus the 48 icon */
/* The text leads (review lr-claims: a fixed 352 status track squeezed the names to 158 at 1180): it keeps at least 16.5rem, the
   longest "what happened" on one line; the status takes what is left up to its one line ("Decision by 30 September", short since
   18 October 2026, evening, so it no longer breaks after "by") */
#v8 #app .v8c-rows { display: grid; grid-template-columns: 72px minmax(16.5rem, 1fr) auto auto; gap: var(--v8-2) var(--v8-5); margin: 0; padding: 0; list-style: none; }
#v8 #app .v8c-rows > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; min-width: 0; }
#v8 #app .v8c-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; width: 100%; min-height: 88px; margin: 0;
  padding: var(--v8-4) var(--v8-5); border-radius: var(--v8-r); background: var(--v8-gray); color: var(--v8-ink); text-decoration: none; transition: box-shadow .16s ease-out, background-color .16s ease-out; }
#v8 #app .v8c-row-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--v8-white); }
#v8 #app .v8c-row-ic svg.i { width: 24px; height: 24px; color: var(--v8-green); }
#v8 #app .v8c-row-tx { display: grid; gap: var(--v8-1); min-width: 0; overflow-wrap: anywhere; }
#v8 #app .v8c-row-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 .v8c-row-l { color: var(--v8-ink-2); }
#v8 #app .v8c-row-st { display: grid; justify-items: start; gap: var(--v8-1); min-width: 0; color: var(--v8-ink-2); }
/* The date that matters, short and Bold in ink on the line's gray (Janne, 18 October 2026, evening: "I would just do the date ...
   highlight the date a bit so it's a bit clearer"): "Decision by 30 September". The same line on Home's Ongoing claims card */
#v8 #app .v8c-when { color: var(--v8-ink); font-weight: 700 !important; white-space: nowrap; }
#v8 #app .v8c-row-cue { justify-self: end; color: var(--v8-green-t); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 112, 11, .4); transition: text-decoration-color .16s ease-out; }
/* The draft's two actions stacked at the row's end, so its column is no wider than a cue */
#v8 #app .v8c-row-acts { display: flex; flex-direction: column; align-items: flex-end; gap: var(--v8-2); }
@media (hover: hover) { #v8 #app a.v8c-row:hover { box-shadow: var(--v8-edge-hover); } }
#v8 #app a.v8c-row:is(:hover, :focus-visible) .v8c-row-cue { text-decoration-color: currentColor; }
#v8 #app a.v8c-row:active { background: var(--v8-pressed); }
#v8 #app a.v8c-row:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
@container v8crows (max-width: 719px) {
  #v8 #app .v8c-rows { grid-template-columns: minmax(0, 1fr); }
  #v8 #app .v8c-rows > li { display: flex; }
  #v8 #app .v8c-row { grid-template-columns: 48px minmax(0, 1fr); align-items: start; column-gap: var(--v8-4); padding: var(--v8-4); }
  #v8 #app .v8c-row-st, #v8 #app .v8c-row-cue, #v8 #app .v8c-row-acts { grid-column: 2; }
  /* The current-status bar keeps its own line above the date (V8.stageBar, base.css 26): a word and a bar run inline into the
     sentence read as one run-on line. A draft's badge still runs inline before its line */
  #v8 #app .v8c-row-st { display: grid; justify-items: start; gap: var(--v8-1); margin-top: var(--v8-2); }
  #v8 #app .v8c-row-st:has(> .v8-badge) { display: block; }
  #v8 #app .v8c-row-st > .v8-badge { margin-right: var(--v8-2); }
  #v8 #app .v8c-row-cue { justify-self: start; margin-top: var(--v8-1); }
  #v8 #app .v8c-row-acts { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--v8-2) var(--v8-5); margin-top: var(--v8-4); }
}
@media (prefers-reduced-motion: reduce) { #v8 #app .v8c-row, #v8 #app .v8c-row-cue { transition: none; } }

/* ---------- Claims: Past claims, the toolbar and the table ----------
   The toolbar is the shared list toolbar since 20 October 2026 (base.css 32, .v8-lt with .v8-lt-hsort: the "Decided on" head sorts,
   so the Sort dropdown shows only under 600). Only what is Claims' own stays here */
#v8 #app .v8c-pcard { background: none; }

/* The table: the system table's look (base.css .v8-table: 16 cells, hairlines, gray heads, the green wash on a row that opens),
   its own columns. Cells start on one line (top), so a two-line claim and a two-line payment line up */
#v8 #app .v8c-tw { container: v8ctw / inline-size; }
/* Fixed columns, so a filter never moves them (review lr-claims: Decision jumped 77 px when filtered to Rejected) */
#v8 #app .v8c-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#v8 #app .v8c-table :is(th, td) { padding: 16px 12px; text-align: left; vertical-align: top; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; color: var(--v8-ink); border-bottom: 1px solid var(--v8-line); }
#v8 #app .v8c-table :is(th, td):first-child { padding-left: 0; }
#v8 #app .v8c-table :is(th, td):last-child { padding-right: 0; }
#v8 #app .v8c-table thead th { padding-top: 12px; padding-bottom: 12px; vertical-align: bottom; color: var(--v8-ink); font-weight: 700 !important; white-space: nowrap; }   /* ink Bold, the cells' size (20 October 2026, Figma's People page: each head reads as its column's) */
#v8 #app .v8c-table tbody tr { position: relative; }
#v8 #app .v8c-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
#v8 #app .v8c-table .v8c-t-pay { text-align: right; }
#v8 #app .v8c-table .v8c-t-on, #v8 #app .v8c-table .v8c-t-dec { white-space: nowrap; }
#v8 #app .v8c-t-l { display: grid; gap: var(--v8-1); }
#v8 #app .v8c-t-n { color: var(--v8-green-t); font-weight: 700 !important; }
#v8 #app .v8c-t-w { color: var(--v8-ink-2); }
#v8 #app .v8c-t-eur { display: block; font-weight: 400 !important; color: var(--v8-ink); white-space: nowrap; }
#v8 #app .v8c-t-sub { display: block; color: var(--v8-ink-2); }
#v8 #app .v8c-table thead th:first-child { width: 27%; }
#v8 #app .v8c-table thead th:nth-child(2) { width: 18%; }
#v8 #app .v8c-table thead th:nth-child(3) { width: 17%; }
#v8 #app .v8c-table thead th:nth-child(4) { width: 13%; }
#v8 #app .v8c-table thead th:nth-child(5) { width: 25%; }
#v8 #app .v8c-table th[scope="row"] { overflow-wrap: anywhere; }
/* The claim cell's third line: the claim number, 16 gray (the search finds it); the policy line only shows from 520 to 779 */
#v8 #app .v8c-t-id { display: block; margin-top: var(--v8-1); color: var(--v8-ink-2); }
#v8 #app .v8c-t-p2 { display: none; }
/* From 520 to 779 (a 1024 window's 552, a 1180 window's 708) the Policy column goes under the claim's name, so four columns keep their room */
@container v8ctw (min-width: 520px) and (max-width: 779px) {
  #v8 #app .v8c-table .v8c-t-pol, #v8 #app .v8c-table thead th:nth-child(2) { display: none; }
  #v8 #app .v8c-t-p2 { display: block; margin-top: var(--v8-1); color: var(--v8-ink-2); }
  #v8 #app .v8c-table thead th:first-child { width: 34%; }
  #v8 #app .v8c-table thead th:nth-child(3) { width: 20%; }
  #v8 #app .v8c-table thead th:nth-child(4) { width: 19%; }
  #v8 #app .v8c-table thead th:nth-child(5) { width: 27%; }
  /* Tighter cells, and the dates may break before the year ("20 February" / "2026"), so nothing clips at 552 */
  #v8 #app .v8c-table :is(th, td) { padding-left: 8px; padding-right: 8px; }
  #v8 #app .v8c-table tbody .v8c-t-on, #v8 #app .v8c-table .v8c-t-sub .nw { white-space: normal; }
}
#v8 #app .v8c-t-no { color: var(--v8-ink-2); }
/* The sort: the column head as a button (base.css .v8-sortb: ink Bold like every head, the arrow after the word, green underline on hover) */
/* The head's plain name, read only where the head is clipped and the sort button is gone (the Filters panel holds the sort there) */
#v8 #app .v8c-sort-n { display: none; }
@media (hover: hover) {
  #v8 #app .v8c-table tr.v8-tr-l:hover > * { background: var(--v8-hover); }
  #v8 #app .v8c-table tr.v8-tr-l:hover .v8c-t-n { text-decoration: underline; text-underline-offset: 3px; }
  #v8 #app .v8c-table tr.v8-tr-l:hover > :first-child { border-radius: var(--v8-r-sm) 0 0 var(--v8-r-sm); box-shadow: -12px 0 0 var(--v8-hover); }
  #v8 #app .v8c-table tr.v8-tr-l:hover > :last-child { border-radius: 0 var(--v8-r-sm) var(--v8-r-sm) 0; box-shadow: 12px 0 0 var(--v8-hover); }
}
/* Under a 520 table (inside its card's 24 padding: a 568 block) each claim is a block: the claim and its badge on top, then the policy, the decision date with its name, and
   the payment, each on its own line */
@container v8ctw (max-width: 519px) {
  #v8 #app .v8c-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* A clipped head keeps no control a keyboard could land on unseen (18 October 2026, night; WCAG 2.4.7): the sort is the Filters
     panel's select here, so the head names its column in plain text */
  #v8 #app .v8c-table .v8c-sort { display: none; }
  #v8 #app .v8c-table .v8c-sort-n { display: inline; }
  #v8 #app .v8c-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--v8-4); padding: var(--v8-4) 0; border-bottom: 1px solid var(--v8-line); }
  #v8 #app .v8c-table tbody tr:last-child { border-bottom: 0; }
  #v8 #app .v8c-table tbody :is(th, td) { width: auto; padding: 0; border: 0; text-align: left; }
  #v8 #app .v8c-table tbody th { grid-column: 1; grid-row: 1; }
  #v8 #app .v8c-table tbody .v8c-t-dec { grid-column: 2; grid-row: 1; }
  #v8 #app .v8c-table tbody :is(.v8c-t-pol, .v8c-t-on, .v8c-t-pay) { grid-column: 1 / -1; text-align: left; }
  #v8 #app .v8c-table tbody .v8c-t-pol { margin-top: var(--v8-3); }
  #v8 #app .v8c-table tbody .v8c-t-on { white-space: normal; }
  #v8 #app .v8c-table tbody .v8c-t-on::before { content: attr(data-label) " "; color: var(--v8-ink-2); }
  #v8 #app .v8c-table tbody :is(.v8c-t-eur, .v8c-t-sub) { display: inline; white-space: normal; }
  #v8 #app .v8c-table tbody .v8c-t-paid::before { content: attr(data-label) " "; color: var(--v8-ink-2); }
}
@media (hover: hover) {
  @container v8ctw (max-width: 519px) {
    #v8 #app .v8c-table tr.v8-tr-l:hover { border-radius: var(--v8-r-sm); background: var(--v8-hover); box-shadow: -12px 0 0 var(--v8-hover), 12px 0 0 var(--v8-hover); }
    #v8 #app .v8c-table tr.v8-tr-l:hover > * { background: none; box-shadow: none; }
  }
}
#v8 #app .v8c-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--v8-3) var(--v8-5); padding: var(--v8-4) 0 var(--v8-3); border-top: 1px solid var(--v8-line); }
#v8 #app .v8c-more p { margin: 0; color: var(--v8-ink-2); }
/* No match: the sentence, the hint and the one way back, inside the card under the bar */
#v8 #app .v8c-none { padding: 0; }
#v8 #app .v8c-none p { margin: 0; }
#v8 #app .v8c-none .v8-cl { margin-top: var(--v8-2); }
#v8 #app .v8c-none .v8-acts { margin-top: var(--v8-5); }

/* ---------- Moved to base.css section 21 (18 October 2026, the integrator) ----------
   The split card (V8.split), the icon rows (V8.iconRows), the explainer drawer's body (.v8-xd-*), the drawer's icon tile
   (V8.openDrawer({ icon })) and the facts plate's figure column. Nothing of them stays here */

/* ---------- Claims: the paired boxes at the page's foot (Janne, 18 October 2026, evening) ----------
   The boxes, their tops and titles are the system's (README 32, base.css 30); the call box is V8.claimHelp since 18 October 2026,
   night (base.css "The claims help card"), shared with a claim page and the specimen, so nothing of its own here */

/* ---------- Claims: Ongoing claims as date leaves (19 October 2026, option B of explore/claims-order) ----------
   Each card opens with its decision date as a small calendar leaf: 56 by 64, 12 corners, the day 28 Bold deep green, the month
   12 secondary under it. Expected: white with the 1 px line. Decided: mint with a 1 px Fennia green edge. A claim waiting for her:
   a dash. "Decision date" (16 secondary) heads the leaf column, over the leaves, as a table's column head. A 2 px line joins the
   leaves through the 8 between cards. Under 720 the disc steps aside and the leaf takes its place */
#v8 #app .v8c-lvh { display: grid; grid-template-columns: 104px; padding: 0 0 var(--v8-2) 0; color: var(--v8-ink-2); }
#v8 #app .v8c-lvh span { justify-self: start; padding-left: var(--v8-5); white-space: nowrap; }
#v8 #app .v8c-cc.v8c-cc-leaf { position: relative; grid-template-columns: 56px 48px minmax(0, 1fr) 11.5rem auto; grid-template-areas: "d i t s a"; }
#v8 #app .v8c-leaf { grid-area: d; position: relative; z-index: 1; }
#v8 #app .v8c-leaf-f { display: grid; justify-items: center; align-content: center; width: 56px; height: 64px; border-radius: var(--v8-r-in); background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-line); }
#v8 #app .v8c-leaf-f b { color: var(--v8-deep); font-size: var(--v8-fs-28) !important; line-height: var(--v8-lh-28) !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
#v8 #app .v8c-leaf-f span { color: var(--v8-ink-2); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; }
#v8 #app .v8c-leaf-done .v8c-leaf-f { background: var(--v8-mint); box-shadow: inset 0 0 0 1px var(--v8-green); }
#v8 #app .v8c-leaf-done .v8c-leaf-f span { color: var(--v8-deep); }
#v8 #app .v8c-leaf-none .v8c-leaf-f b { color: var(--v8-ink-2); }
#v8 #app .v8c-lvs .v8c-cc-leaf + .v8c-cc-leaf::before { content: ""; position: absolute; left: calc(var(--v8-5) + 27px); bottom: calc(100% - var(--v8-5)); height: calc(var(--v8-2) + 2 * var(--v8-5)); width: 2px; background: var(--v8-line); }
#v8 #app .v8c-lvs .v8c-cc-leaf + .v8c-cc-leaf::before { z-index: 0; }
@container v8ctl (max-width: 719px) {
  #v8 #app .v8c-lvs { padding-left: 0; }
  #v8 #app .v8c-lvh { grid-template-columns: auto; }
  #v8 #app .v8c-lvh span { padding-left: var(--v8-4); }
  #v8 #app .v8c-cc.v8c-cc-leaf { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "d t" "d s" "d a"; column-gap: var(--v8-4); }
  #v8 #app .v8c-cc-leaf > .v8c-row-ic { display: none; }
  #v8 #app .v8c-cc-leaf .v8c-leaf { align-self: start; }
  #v8 #app .v8c-lvs .v8c-cc-leaf + .v8c-cc-leaf::before { left: calc(var(--v8-4) + 27px); bottom: calc(100% - var(--v8-4)); height: calc(var(--v8-2) + 2 * var(--v8-4)); }
}

/* ---------- Claims: the hero strip's payout bar (19 October 2026) ----------
   Under "1.260 € paid out on your claims", one 12 tall bar the cell's width: what Fennia paid (the data base blue) and what she
   paid in deductibles (the hatch), to scale, 8 under the label; the key under it names both with their sums. The first cell
   takes more room, as Policies' price cell does */
#v8 #app .v8c-paybar { display: flex; height: 12px; margin-top: var(--v8-3); border-radius: var(--v8-r-tag); overflow: hidden; gap: 2px; }
#v8 #app .v8c-paybar > i { display: block; height: 100%; }
#v8 #app .v8c-paybar > i.v8-t-left { flex: 1 1 auto; }
#v8 #app .v8c-paykey { margin-top: var(--v8-2); color: var(--v8-ink); }
@media (min-width: 640px) { #v8 #app .v8-strip > .v8-facts-2:has(.v8c-paybar) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
#v8 #app .v8-strip .v8-facts li > .v8-strip-f:has(.v8c-paybar) { flex: 1 1 auto; }
#v8 #app .v8-strip .v8c-paykey > li { margin: 0; padding: 0; border: 0; box-shadow: none; }
@media (max-width: 639px) {
  #v8 #app .v8-strip > .v8-facts-2:has(.v8c-paybar) { grid-template-columns: minmax(0, 1fr); row-gap: var(--v8-4); }
  #v8 #app .v8-strip > .v8-facts-2:has(.v8c-paybar) > li + li { padding: var(--v8-4) 0 0; box-shadow: inset 0 1px 0 var(--v8-line); }
}
/* The leaf's key: what its date means, 12 secondary, centred under the leaf, two short lines ("Decision" / "expected") */
#v8 #app .v8c-leaf { display: grid; justify-items: center; row-gap: var(--v8-1); }
#v8 #app .v8c-leaf-k { color: var(--v8-ink-2); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; text-align: center; white-space: nowrap; }
#v8 #app .v8c-leaf-done .v8c-leaf-k { color: var(--v8-deep); }
#v8 #app .v8c-cc.v8c-cc-leaf { align-items: center; }

/* ---------- Claims: whole rows and cards are links again, with the green hover (20 October 2026, Janne: "i liked when u had the
   green hover effect on rows. (i also liked cards having the full green fill effect)") ----------
   To keep the hover honest (it marks only what is clickable), the claim's one link stretches over its row or card: in Past claims
   the name, on an ongoing claim card "View claim". The whole row then takes the green wash with the name underlined; the whole
   card fills with the wash and its View claim underlines. Focus stays on the link itself (its ring) */
#v8 #app .v8c-pr-r, #v8 #app .v8c-cc { position: relative; }
#v8 #app .v8c-pr-r a.v8c-pr-n::after, #v8 #app .v8c-cc a.v8c-cc-a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
#v8 #app .v8c-cc { border-radius: var(--v8-r); }
#v8 #app .v8c-pr-r { border-radius: var(--v8-r-sm); }
@media (hover: hover) {
  #v8 #app .v8c-pr-r:has(a.v8c-pr-n):hover { background: var(--v8-hover); box-shadow: -12px 0 0 var(--v8-hover), 12px 0 0 var(--v8-hover); }
  #v8 #app .v8c-pr-r:has(a.v8c-pr-n):hover a.v8c-pr-n { text-decoration-color: currentColor; }
  #v8 #app .v8c-cc:has(a.v8c-cc-a):hover { background: var(--v8-hover); }
  #v8 #app .v8c-cc:has(a.v8c-cc-a):hover a.v8c-cc-a { text-decoration-color: currentColor; }
}
#v8 #app .v8c-cc :is(.v8c-leaf, .v8c-row-ic) { pointer-events: none; }

/* ---------- Claims: the comparison insight as a nugget (20 October 2026) ----------
   At most 720. Since 20 October 2026 drawn by V8.insight (README 37's new anatomy): the finding, one sentence, the round arrow
   ("See the steps"); as its chart the figure (40 Bold plum, its label 16 under it) beside a 12 tall bar of every business like hers
   split by claims, 2 apart, rounded only at its ends, the ends named under it (her end in plum, right-aligned) */
#v8 #app .v8c-nug { max-width: 720px; margin-top: var(--v8-8, 64px); }
/* 20 October 2026: the nugget is V8.insight (README 37's new anatomy); its figure and bar are the chart, under the words */
#v8 #app .v8c-nug-fig { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--v8-6); }
#v8 #app .v8c-nug-n { display: grid; margin: 0; }
#v8 #app .v8c-nug-n b { color: var(--v8-data-yours); font-size: var(--v8-fs-40) !important; line-height: var(--v8-lh-40) !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
#v8 #app .v8c-nug-n span { color: var(--v8-ink-2); }
#v8 #app .v8c-nug-bar { display: flex; gap: 2px; height: 12px; }
#v8 #app .v8c-nug-bar > i { display: block; min-width: 6px; }
#v8 #app .v8c-nug-bar > i:first-child { border-radius: 6px 0 0 6px; }
#v8 #app .v8c-nug-bar > i:last-child { border-radius: 0 6px 6px 0; }
#v8 #app .v8c-nug-ends { display: flex; justify-content: space-between; gap: var(--v8-4); margin-top: var(--v8-2); color: var(--v8-ink-2); }
#v8 #app .v8c-nug-ends b { color: var(--v8-ink); font-weight: 700 !important; }
#v8 #app .v8c-nug-you { text-align: right; }
#v8 #app .v8c-nug-you b { color: var(--v8-data-yours); }
#v8 #app .v8c-nug-t { margin: var(--v8-4) 0 0; color: var(--v8-ink); }
@container (max-width: 479px) { #v8 #app .v8c-nug-fig { grid-template-columns: minmax(0, 1fr); gap: var(--v8-4); } }
/* If something happens: numbered steps (20 October 2026) */
#v8 #app .v8c-ifn-n { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--v8-r-sm);   /* a curved square, not a circle (README 70; README 142, the audit's D13) */ background: var(--v8-deep); color: var(--v8-white); font-size: var(--v8-fs-20) !important; line-height: 1 !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
#v8 #app .v8c-nug-ends > span { white-space: nowrap; }
#v8 #app .v8c-nug-ends { flex-wrap: wrap; row-gap: 0; }
/* No line from leaf to leaf (20 October 2026, Janne: "strokes from one card to another make no sense. this gives impression that
   they r interlinked. they r not"): each claim card stands alone, the order is the cards' own */
#v8 #app .v8c-lvs .v8c-cc-leaf + .v8c-cc-leaf::before { content: none !important; }

/* ---------- Claims: the date cards, minimal (20 October 2026, Janne: "these cards need improved visual style. especially the
   icon with the date looks very awkward. simplify, make minimal, make aesthetic") ----------
   The date is type, not a box: the day 28 Bold deep green, the month 12 under it, then one 12 word ("Decided" in green, "Expected"
   in secondary); a 1 px hairline divides the date from the claim. No icon disc (the name says what it is). Tighter: 20 / 24 in */
#v8 #app .v8c-cc.v8c-cc-leaf { grid-template-columns: 56px minmax(0, 1fr) 11.5rem auto; grid-template-areas: "d t s a"; column-gap: var(--v8-5); padding: var(--v8-4) var(--v8-5); }
#v8 #app .v8c-cc-leaf > .v8c-row-ic { display: none !important; }
#v8 #app .v8c-cc-leaf .v8c-leaf { align-self: stretch; align-content: center; padding-right: var(--v8-4); box-shadow: inset -1px 0 0 var(--v8-line); }
#v8 #app .v8c-cc-leaf .v8c-leaf-f { width: auto; height: auto; border-radius: 0; background: none !important; box-shadow: none !important; justify-items: start; gap: 0; }
#v8 #app .v8c-cc-leaf .v8c-leaf-f b { font-size: var(--v8-fs-28) !important; line-height: var(--v8-lh-28) !important; }
#v8 #app .v8c-cc-leaf .v8c-leaf-f span { color: var(--v8-ink-2); }
#v8 #app .v8c-cc-leaf .v8c-leaf { justify-items: start; }
#v8 #app .v8c-cc-leaf .v8c-leaf-k { text-align: left; color: var(--v8-ink-2); }
#v8 #app .v8c-cc-leaf .v8c-leaf-done .v8c-leaf-k, #v8 #app .v8c-cc-leaf.v8c-cc .v8c-leaf-done .v8c-leaf-k { color: var(--v8-green-t); font-weight: 700 !important; }
#v8 #app .v8c-cc-leaf .v8c-leaf-done .v8c-leaf-f b { color: var(--v8-green-t); }
@container v8ctl (max-width: 719px) {
  #v8 #app .v8c-cc.v8c-cc-leaf { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "d t" "d s" "d a"; }
}
/* The day and month on one line ("25 Sep"), the word under: two lines, not three */
#v8 #app .v8c-cc.v8c-cc-leaf { grid-template-columns: 88px minmax(0, 1fr) 11.5rem auto; }
#v8 #app .v8c-cc-leaf .v8c-leaf-f { display: flex !important; align-items: baseline; gap: var(--v8-1); }
#v8 #app .v8c-cc-leaf .v8c-leaf-f span { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 #app .v8c-cc-leaf .v8c-leaf { row-gap: 2px; }
@container v8ctl (max-width: 719px) {
  #v8 #app .v8c-cc.v8c-cc-leaf { grid-template-columns: 80px minmax(0, 1fr); }
  #v8 #app .v8c-cc-leaf .v8c-leaf { align-self: start; align-content: start; }
}

/* ---------- The payout bar, labelled in place (20 October 2026, Janne: "This needs visual finesse. It should be 10 out of 10")
   The key under the bar is gone: Fennia's part is labelled under its start, hers under the bar's end, each a 12 secondary word
   over a 16 Bold sum (the opened cover's figures). The bar keeps the one summary-bar look (rest.css: 8 high, ends rounded); Fennia's blue takes its
   share by --fennia, her hatch is finer and lighter so the blue leads ---------- */
#v8 #app .v8c-pb { display: grid; gap: var(--v8-3); margin-top: var(--v8-4); }
#v8 #app .v8c-pb .v8c-paybar { display: flex; margin: 0; overflow: hidden; }
#v8 #app .v8c-pb .v8c-paybar > i.v8-t-base { flex: 0 0 var(--fennia); }
#v8 #app .v8c-pb .v8c-paybar > i.v8-t-left { flex: 1 1 auto; background: repeating-linear-gradient(-45deg, #B5B5B5 0 1.5px, #F4F4F4 1.5px 5px) !important; box-shadow: none !important; }
#v8 #app .v8c-pb-l { display: flex; justify-content: space-between; gap: var(--v8-4); }
#v8 #app .v8c-pb-l > span { display: grid; gap: 2px; min-width: 0; }
#v8 #app .v8c-pb-l > span > span { color: var(--v8-ink-2); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; }
#v8 #app .v8c-pb-l > span > b { color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
#v8 #app .v8c-pb-b { text-align: right; justify-items: end; }
@media (forced-colors: active) { #v8 #app .v8c-pb .v8c-paybar > i.v8-t-left { background: Canvas !important; border: 1px solid CanvasText; } }

/* Past claims read like the ongoing ones (20 October 2026, Janne: "should these be similar in style? i like the top. and the
   bottom ones could be w grey stroke and white interior. so they are read akin"): each past claim its own card, the ongoing
   card's radius and padding, 8 apart, white inside a 1 px gray stroke; no hairlines between; the green wash on hover as before */
#v8 #app .v8c-pr { display: grid; gap: var(--v8-2); border-top: 0 !important; }
#v8 #app .v8c-pr > li.v8c-pr-r { padding: var(--v8-5) !important; border: 1px solid var(--v8-line-2) !important; border-radius: var(--v8-r) !important; background: var(--v8-white); box-shadow: none !important; }
@media (hover: hover) { #v8 #app .v8c-pr > li.v8c-pr-r:has(a.v8c-pr-n):hover { background: var(--v8-hover); border-color: var(--v8-hover) !important; } }

/* Past claims as the ongoing cards, white with the gray stroke (20 Oct 2026); no connecting line between past leaves */
#v8 #app .v8c-cc.v8c-cc-past { background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-line-2); }
#v8 #app .v8c-pcs .v8c-cc-leaf + .v8c-cc-leaf::before { content: none; }

/* ---------- Claims: the claim cards (21 October 2026) ----------
   Janne: "start reworking the claim designs. You have to do the styling similarly, but the logic should still be that ongoing
   claims are gray ... I would like it to be kind of the same logic as the order of items from what you show on the home page to
   what you see on the claim page." Each claim is Home's list row (V8.claimRow; the row's rules are home.css "Home's list rows")
   on a card: the icon in its 52 tile, the name, what happened, the date line, the status block in Home's 112 column, the chevron.
   The card is a gray card of README 36, radius 16 like every other card on the page (the summary, the insight, If something
   happens, the help card), 24 in from a 720 list and 16 below it. Ongoing: gray. Past: white with the 1 px gray stroke
   (--v8-line-2, the 20 October note above). The tile is Home's mint on both, so the row reads as one component on both pages and
   only the card's surface says ongoing or past. The whole card is the one link, so the whole card hovers, with the green wash
   Janne asked to keep on Claims' cards (20 October 2026: "i also liked cards having the full green fill effect") and Home's rows
   use: one hover idiom for a claim on both pages; the keyboard's focus shows the same. The tile turns white on the wash, the name
   deep green and underlined (Home's rule). A row with nothing to open (the saved draft, a sample record) keeps its card surface
   and never hovers. A policy page's "Claims under this policy" draws the same cards (v8-policies.js through V8C.card) */
#v8 #app .v8c-cards { margin: 0; gap: var(--v8-stack); }
#v8 #app .v8c-cards .v8-hm-row, #v8 #app .v8c-cards .v8-hm-row.v8-hm-row-off:is(:hover, :active) { padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-gray); }
/* (The white stroked past card, .v8c-cards-past, is gone since 21 October 2026, late night: past claims are the hairline list,
   .v8c-plist, on Claims and on a policy page alike) */
@container v8ctl (max-width: 719px) {
  #v8 #app .v8c-cards .v8-hm-row, #v8 #app .v8c-cards .v8-hm-row.v8-hm-row-off:is(:hover, :active) { padding: var(--v8-4); }
}
@media (hover: hover) {
  #v8 #app .v8c-cards a.v8-hm-row:hover { background: var(--v8-hover); box-shadow: none; }
}
#v8 #app .v8c-cards a.v8-hm-row:focus-visible { background: var(--v8-hover); box-shadow: none; }
#v8 #app .v8c-cards a.v8-hm-row:active { background: var(--v8-pressed); box-shadow: none; }
/* The decision's badge alone; what we paid is in the date line ("1.955 € paid to your lawyer on 25 May") */
#v8 #app .v8c-cards .v8-hm-rs > .v8-sbar-done { display: grid; justify-items: start; gap: var(--v8-1); }
/* The saved draft's title is ink (nothing to open), its Continue and Delete draft on the line under the words */
#v8 #app .v8c-cards .v8-hm-ra .v8-btn { margin: 0; }
@media (forced-colors: active) {
  #v8 #app .v8c-cards .v8-hm-row { border: 1px solid CanvasText; padding: calc(var(--v8-5) - 1px); }
  @container v8ctl (max-width: 719px) {
    #v8 #app .v8c-cards .v8-hm-row { padding: calc(var(--v8-4) - 1px); }
  }
}

/* The claim cards, simpler (21 October 2026, Janne: "the light green against the gray doesn't look good. You have to make the icon
   just on gray. They're also way too tall"): the icon stands on the card itself (no mint tile), 24, on the title's line; the card
   is the type with its number, one date line and the status */
#v8 #app .v8c-cards { --v8-hm-iw: 24px; }
#v8 #app .v8c-cards .v8-hm-ric:has(> svg) { width: 24px; height: 24px; background: transparent !important; border-radius: 0; }
#v8 #app .v8c-cards a.v8-hm-row:is(:hover, :active, :focus-visible) .v8-hm-ric:has(> svg) { background: transparent !important; }

/* ---------- Claims: past claims as a list (21 October 2026, night) ----------
   Janne: "the past claims should be a list view because there can ultimately be dozens or even hundreds of them, so they
   shouldn't actually be the cards at all." A past claim is a record she looks up (README 36): the claim cards' row (the same
   classes, so the same columns: the 24 icon, the title, the date line, the 144 status block) with no card under it, on hairlines.
   The rows keep the cards' 24 in (16 under a 720 list), so the icon, the title, the date and the status of a past claim stand
   exactly under an ongoing card's. 16 above and below the words, not the card's 24, so a long list reads as one calm list.
   Hairlines: one over the first row and one under each row, #DDDDDD, the system's line. The green wash is exactly the row: square,
   between its hairlines, as wide as they are (README 54, Janne: "a straight, neat line"); the name turns deep green and underlined
   (Home's rule), and the keyboard's focus shows the same wash inside the 2 px ring. A row with nothing to open never hovers */
#v8 #app .v8c-cards.v8c-plist { gap: 0; border-top: 1px solid var(--v8-line); }
#v8 #app .v8c-plist > li { border-bottom: 1px solid var(--v8-line); }
#v8 #app .v8c-cards.v8c-plist .v8-hm-row, #v8 #app .v8c-cards.v8c-plist .v8-hm-row.v8-hm-row-off:is(:hover, :active) { padding: var(--v8-4) var(--v8-5); border-radius: 0; background: none; box-shadow: none; }
@container v8ctl (max-width: 719px) {
  #v8 #app .v8c-cards.v8c-plist .v8-hm-row, #v8 #app .v8c-cards.v8c-plist .v8-hm-row.v8-hm-row-off:is(:hover, :active) { padding: var(--v8-4); }
}
@media (forced-colors: active) {
  #v8 #app .v8c-cards.v8c-plist .v8-hm-row { border: 0; padding: var(--v8-4) var(--v8-5); }
  @container v8ctl (max-width: 719px) { #v8 #app .v8c-cards.v8c-plist .v8-hm-row { padding: var(--v8-4); } }
}
/* Show more, under the last row: the count, then the button, from the list's left edge (the toolbar's and the title's edge) */
#v8 #app .v8c-pmore { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v8-3) var(--v8-5); padding-top: var(--v8-5); }
#v8 #app .v8c-pmore-n { margin: 0; color: var(--v8-ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Past claims as a list, calm at scale (21 October 2026, late night; the review of README 61) ----------
   - No bar on a decided claim: every past row's bar was full, so the list was a column of identical stripes that said nothing the
     word doesn't, and the bar made approved and rejected rows different heights. The word stays over what we paid ("Approved",
     "Paid 1.955 €"), or the word alone ("Rejected"). Ongoing cards keep their bars, where progress still means something.
   - The toolbar holds still. The bar's count is for screen readers only (it stays the role=status that says each new result);
     the one visible count is under the list. Clear keeps its slot while hidden (visibility: hidden, which also takes it out of the
     tab order and the accessibility tree), as wide as its longest name ("Clear search and filters", 168), so the search field has
     one width whatever is on. Under 960 the toggle keeps the width of "Filter and sort (2)" for the same reason.
   - Insurance is as wide as its longest option, "Professional liability insurance" (17rem), so a chosen insurance is never cut
     off; in the opened panel it takes two of four columns (a whole row under 600) */
#v8 #app .v8c-plist .v8-hm-rs .v8-pbar-t { display: none; }
/* Without the bar the word stands on the title's line (centred in its 24) and what we paid on the date line, so the status reads
   across with the words beside it */
#v8 #app .v8c-plist .v8-hm-rs > .v8-pbar { margin-top: 0; gap: var(--v8-1); }
#v8 #app .v8c-plist .v8-hm-rs .v8-pbar-w { padding: 4px 0; }
/* Where the status runs under the date line (a list under 440) there is no line to centre on: the word sits 8 under the date */
@container v8hmrows (max-width: 439px) { #v8 #app .v8c-plist .v8-hm-rs .v8-pbar-w { padding: 0; } }
#v8 #app .v8c-past .v8-lt-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#v8 #app .v8c-past .v8-lt-end { min-width: 10.5rem; justify-content: flex-end; }
#v8 #app .v8c-past .v8-lt-end .is-off { display: inline-flex; visibility: hidden; }
#v8 #app .v8c-past #v8c-pol { width: 17rem; max-width: none; }
@container v8lt (max-width: 959px) {
  #v8 #app .v8c-past .v8-lt-bar, #v8 #app .v8c-past .v8-lt-bar.has-clr { grid-template-columns: minmax(0, 1fr) auto 10.5rem; grid-template-areas: "q tog end"; }
  #v8 #app .v8c-past .v8-lt-bar.is-open { grid-template-columns: minmax(0, 1fr) auto 10.5rem; grid-template-areas: "q tog ." "sel sel sel" "end end end"; }
  #v8 #app .v8c-past .v8-lt-bar .v8-lt-end, #v8 #app .v8c-past .v8-lt-bar:is(.has-clr, .is-open) .v8-lt-end { justify-content: flex-end; min-width: 0; }
  #v8 #app .v8c-past .v8-lt-tog { min-width: 11.625rem; }
  #v8 #app .v8c-past .v8-lt-bar.is-open .v8-lt-sel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #v8 #app .v8c-past .v8-lt-dd:has(#v8c-pol) { grid-column: span 2; }
  #v8 #app .v8c-past #v8c-pol { width: 100%; }
}
@container v8lt (max-width: 599px) {
  #v8 #app .v8c-past .v8-lt-bar, #v8 #app .v8c-past .v8-lt-bar.has-clr { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "q q" "tog end"; }
  #v8 #app .v8c-past .v8-lt-bar.is-open { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "q q" "tog ." "sel sel" "end end"; }
  /* While a filter is on, Clear has its own row under the toggle ("Clear filters", "Clear search and filters" don't fit beside
     "Filter and sort (1)" on a phone): it moves only when the panel opens or closes, which reflows anyway, never while she types.
     A search alone keeps "Clear search" beside the toggle */
  #v8 #app .v8c-past .v8-lt-bar.has-flt:not(.is-open) { grid-template-areas: "q q" "tog ." "end end"; }
  #v8 #app .v8c-past .v8-lt-tog { min-width: 0; }
  #v8 #app .v8c-past .v8-lt-bar.is-open .v8-lt-sel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container v8lt (max-width: 359px) {
  #v8 #app .v8c-past .v8-lt-bar.is-open .v8-lt-sel { grid-template-columns: minmax(0, 1fr); }
  #v8 #app .v8c-past .v8-lt-dd:has(#v8c-pol) { grid-column: auto; }
}
/* A policy page's past claims are this list too; from 8, its newest five and a link to the Claims page with that insurance chosen */
#v8 #app .v8p-clall { margin: var(--v8-1) 0 0; }
#v8 #app .v8p-clall .v8-link { display: inline-flex; align-items: center; min-height: 44px; }   /* a 44 target, its words 16 under the last line */

/* ---------- The chart well on Claims (22 October 2026, README 79) ----------
   The insight's bar and the payout bar each sit in a well (chart-well.css) as one soft chubby bar in two parts by share
   (.v8-cw-row, 12 high, 3 apart, 4 px corners on every part): the insight's in the well's yellow-olive and her plum, the payout's
   in the data blue and the hatch. The well's padding is 16, its words 12 and 16
   as before; the old bars' end rounding and clipping are off */
#v8 #app :is(.v8c-nug-bar, .v8c-paybar).v8-cw-row { height: 12px; overflow: visible; border-radius: 0; gap: 3px; }
#v8 #app :is(.v8c-nug-bar, .v8c-paybar).v8-cw-row > i { min-width: 6px; border-radius: 4px !important; }
#v8 #app .v8c-pb.v8-chartwell { gap: var(--v8-3); }
#v8 #app .v8c-nug-ch.v8-chartwell .v8c-nug-ends { margin-top: var(--v8-3); }

/* ---------- README 110 (22 October 2026): the claim page, round two ----------
   The quiet label that leads the line under the title ("What happened:"), in the same line, ink-2 (never above it: no eyebrows) */
#v8 #app .v8c-claim .v8-lead .v8c-lk { color: var(--v8-ink-2); }
/* Claim payment and deductible: the system's boxed table (base.css .v8-tbox), then the sentence and the fine print 16 under it on
   the white page, then the chip actions (Read the decision letter, How your deductible works) */
#v8 #app .v8c-pay-s { max-width: 700px; margin-top: var(--v8-4); }
#v8 #app .v8c-pay-s > p { margin: 0; }
#v8 #app .v8c-pay-s > p + p { margin-top: var(--v8-2); }
#v8 #app .v8c-pay-a { margin-top: var(--v8-4); align-items: center; }
/* Claim progress's decision letter as a chip, its row 16 under the sentence */
#v8 #app .v8c-prog1 .v8-acts:has(> .v8-chipbtn) { margin-top: var(--v8-4); }

/* ---------- The hero's two cards on the lime tray, 22 October 2026 (README 147, Jordi's round) ----------
   The tray and its white cards are Policies' (policies.css, "The hero as a lime tray"); here each card is one compact row after
   Nordnet's insight cards: a 16 title, labelled pairs each marked by a thin bar in its chart colour, a small chart at the right */
#v8 #app .v8c-tray { --v8c-pay: var(--v8-data-1); --v8c-dec: var(--v8-data-4); --v8c-past: var(--v8-line); --v8c-ahead: #F3F3F3; }
#v8 #app .v8c-tc2 { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--v8-5); }
/* One slot for both charts, the calendar's width, the donut centred in it, so the two charts share a centre line (Jordi: the
   donut sat too far right) */
#v8 #app .v8c-tc2-a { flex: none; display: flex; justify-content: center; width: 102px; }
#v8 #app .v8c-tc2-w { display: flex; flex-direction: column; gap: var(--v8-4); min-width: 0; }
#v8 #app .v8c-tc2-t { margin: 0; color: var(--v8-ink); font-size: var(--v8-fs-16); line-height: var(--v8-lh-16); font-weight: 700; }
#v8 #app .v8c-tc2-t > span { color: var(--v8-ink-2); font-weight: 400; }
#v8 #app .v8c-prs { display: flex; flex-wrap: wrap; gap: var(--v8-3) 20px; margin: 0; padding: 0; list-style: none; }
#v8 #app .v8c-pr { display: flex; gap: var(--v8-2); min-width: 0; }
#v8 #app .v8c-pr > span { display: flex; flex-direction: column; min-width: 0; }
#v8 #app .v8c-pr b { color: var(--v8-ink); font-size: var(--v8-fs-20); line-height: var(--v8-lh-20); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#v8 #app .v8c-pr b + span { color: var(--v8-ink-2); white-space: nowrap; }
#v8 #app .v8c-pr-m { flex: none; width: 4px; border-radius: 2px; }
#v8 #app .v8c-pr-m.is-pay, #v8 #app .v8c-pr-m.is-us { background: var(--v8c-pay); }
#v8 #app .v8c-pr-m:is(.is-dec, .is-you) { background: var(--v8c-dec); }
/* The calendar: 12 squares, 3 apart, a 12 row of weekday letters on top */
#v8 #app .v8c-cal { flex: none; display: grid; grid-template-columns: repeat(7, 14px); grid-template-rows: 18px; grid-auto-rows: 14px; gap: 3px; }
#v8 #app .v8c-cal-d { align-self: start; overflow: visible; }   /* 1 more above the days than between them (Jordi) */
#v8 #app .v8c-cal-d text { fill: var(--v8-off); font-size: 14px; font-family: inherit; }   /* 14, the smallest size (README 194) */
#v8 #app .v8c-cal-q { width: 14px; height: 14px; border-radius: 4px; background: var(--v8c-ahead); }
#v8 #app .v8c-cal-q.is-past { background: var(--v8c-past); }
#v8 #app .v8c-cal-q.is-pay { background: var(--v8c-pay); }
#v8 #app .v8c-cal-q.is-dec { background: var(--v8c-dec); }
/* The donut: the data blue for us, the light data blue for her */
#v8 #app .v8c-dn { flex: none; }
#v8 #app .v8c-dn path { stroke-linejoin: round; }
#v8 #app .v8c-dn-us { fill: var(--v8c-pay); stroke: var(--v8c-pay); }
#v8 #app .v8c-dn-you { fill: var(--v8c-dec); stroke: var(--v8c-dec); }
/* Hover and focus (README 147): a marked day and a donut part show a tip; nothing else changes (Jordi). The tip fades in 120 ms,
   as the system tooltip; none with reduced motion */
#v8 #app .v8c-tray { position: relative; }   /* the tip's anchor */
/* The tip is a light card: white, the cards' hairline and a soft lift, 8 corners, both lines at 14 (Jordi), the first Bold (README 149) */
#v8 #app .v8c-tip { position: absolute; z-index: 20; display: flex; flex-direction: column; width: max-content; max-width: 280px; padding: 8px 12px; border-radius: var(--v8-r-sm);
  background: var(--v8-white); color: var(--v8-ink-2); font-size: var(--v8-fs-14); line-height: var(--v8-lh-14);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 4px 12px -2px rgb(0 0 0 / .12); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s ease-out; }
#v8 #app .v8c-tip > b { color: var(--v8-ink); font-size: var(--v8-fs-14); line-height: var(--v8-lh-14); font-weight: 700; }
@media (forced-colors: active) { #v8 #app .v8c-tip { border: 1px solid CanvasText; } }
#v8 #app .v8c-tip.is-on { opacity: 1; visibility: visible; }
#v8 #app a.v8c-cal-q { display: block; cursor: pointer; }
#v8 #app a.v8c-cal-q:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
#v8 #app .v8c-dn path { cursor: default; }
@media (prefers-reduced-motion: reduce) { #v8 #app .v8c-tip { transition: none; } }
@media (forced-colors: active) {
  #v8 #app :is(.v8c-pr-m, .v8c-cal-q) { forced-color-adjust: none; background: Canvas; box-shadow: inset 0 0 0 1px CanvasText; }
  #v8 #app .v8c-cal-q.is-past { background: CanvasText; }
  #v8 #app :is(.v8c-pr-m, .v8c-cal-q):is(.is-pay, .is-us) { background: Highlight; box-shadow: none; }   /* apart from the days so far */
  #v8 #app .v8c-cal-q.is-dec, #v8 #app .v8c-pr-m:is(.is-dec, .is-you) { box-shadow: inset 0 0 0 3px CanvasText; }   /* a heavier ring than a plain day */
  #v8 #app .v8c-dn-us { fill: Highlight; stroke: Highlight; forced-color-adjust: none; }
}

/* ---------- If something happens as tip cards (from branch-claim-tips into the prototype, 22 October 2026, night; README 151) ----------
   After the reference's three numbered steps: a soft panel with a picture in its middle, a large number under it, a short line.
   Here each step is a column: the panel in the step cards' pale Plum (Plum-100 at 7 % on white, 10 corners, 144 high) with a Fennia
   illustration at 64, the number 28 Regular in ink, the title 16 Bold with two lines' room, its sentence 16/24 in ink-2. Three
   columns from a 600 container, one below it (the panel 120 there). No circles (README 70): the numbers stand free, no disc */
html#v8 #app .v8c-ift-cq { container: ift / inline-size; }
html#v8 #app .v8c-ift { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v8-6); margin: 0; padding: 0; list-style: none; }
@container ift (min-width: 600px) { html#v8 #app .v8c-ift { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v8-5); } html#v8 #app h3.v8c-ift-t { min-height: calc(2 * var(--v8-lh-16)); } }   /* two lines' room only side by side, where it lines the sentences up */
html#v8 #app .v8c-ift > li { display: flex; flex-direction: column; min-width: 0; }
html#v8 #app .v8c-ift-p { display: grid; place-items: center; height: 144px; border-radius: 10px; background: color-mix(in srgb, var(--fennia-plum-100) 7%, var(--v8-white)); }
html#v8 #app .v8c-ift-p img { display: block; width: 64px; height: 64px; }
html#v8 #app .v8c-ift-n { display: block; margin-top: var(--v8-4); color: var(--v8-ink); font-size: var(--v8-fs-28) !important; line-height: var(--v8-lh-28) !important; font-weight: 400 !important; font-variant-numeric: tabular-nums; }
html#v8 #app h3.v8c-ift-t { margin: var(--v8-2) 0 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; letter-spacing: 0; text-wrap: pretty; }
html#v8 #app p.v8c-ift-l { margin: var(--v8-1) 0 0; color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
@media (forced-colors: active) { html#v8 #app .v8c-ift-p { border: 1px solid CanvasText; } }
/* The section a white box at the page's width (V8.box), and the claims help card under it full width on the page's own grey (the
   policy page's wide help layout, .v8pk-help, without its white band). The claims card has more lines than the talk card (the
   number, the hours, writing to us), so every line sits in the words' column and the art spans them */
/* On white (Janne, 22 October 2026: "They should be just against the white, not against the gray"): the band holding If something
   happens and the help card is white; the steps stand on it without a box, the help card keeps its 1 px line */
html#v8 #app .v8-band.v8c-ifband { background: var(--v8-white) !important; }
/* Second pass: the steps as cards (Janne, 22 October 2026: "the illustration still looks a bit big ... put the numbers inside little
   squares ... a bit bigger than the squares we have normally used inside the color item (top left) ... inside a card stroke ...
   make them into cards"). Each card: white, 1 px --v8-line, 12 corners, an 8 band round the 144 pale Plum panel (10 corners). The
   number sits in a white 32 square with 8 corners at the panel's top left, 12 in (Home's tag chips are 24 high: this is a size up),
   16 Bold in ink; the illustration 48 (the saved policy card's size, README 82) in the panel's middle. The body 16 in: the title 16
   Bold, two lines' room side by side, its sentence 16/24 */
html#v8 #app .v8c-ift > li.v8c-iftc { padding: var(--v8-2); border: 1px solid var(--v8-line); border-radius: var(--v8-r); background: var(--v8-white); }
html#v8 #app .v8c-iftc .v8c-ift-p { position: relative; }
html#v8 #app .v8c-iftc .v8c-ift-p img { width: 48px; height: 48px; }
html#v8 #app .v8c-iftc .v8c-ift-n { position: absolute; top: var(--v8-3); left: var(--v8-3); display: grid; place-items: center; width: 32px; height: 32px; margin: 0; border-radius: var(--v8-r-sm); background: var(--v8-white); color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; }
html#v8 #app .v8c-ift-b { padding: var(--v8-4) var(--v8-4) var(--v8-3); }
html#v8 #app .v8c-iftc h3.v8c-ift-t { margin-top: 0; }
@media (forced-colors: active) { html#v8 #app .v8c-iftc .v8c-ift-n { border: 1px solid CanvasText; } }
/* Disagree with the decision?: the two ways in are card titles, 16 Bold under the 20 section title (README 103, 156) */
html#v8 #app .v8-irows :is(h3, h4).v8-cn { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
/* The figures' marks are the calendar's own day squares (Janne, 22 October 2026, night: "instead of those bars of color, have the
   same shape and size of the color as they appear in the calendar"; README 157): 12 x 12, 3 corners, in the figure's colour, set on
   the figure's first line instead of a bar running down both lines. On both cards (What's next and Paid on your claims) */
html#v8 #app .v8c-pr-m { width: 12px !important; height: 12px !important; align-self: flex-start; margin-top: 7px; border-radius: 3px !important; }
