/* =====================================================================================================================
   v8 / rest: Certificates, the risk assessment, the needs finder (#/start, #/setup), Home in the new stage, the search
   palette. Loads after base.css. Specificity as base.css says: #v8 #app .v8-... inside the app, #v8 ... for overlays;
   !important only on font-size and font-weight, and where an older class is restyled. Only the five sizes, no font-size in
   a media query.
   ===================================================================================================================== */

/* ---------- Certificates: in certs-k.css since the redesign of Get a certificate and Your certificates (README 105, 22 October 2026) ---------- */

/* ---------- Home in the new stage ---------- */
#v8 #app .v8-new-empty .v8-empty { justify-items: center; }
/* Every empty state (Home, Policies, Claims, Payments, Certificates in the new stage): its one column never grows past the card,
   and a long button label wraps inside its pill instead of pushing the button and the line out of the gray card at 320
   (harmonised by the pages integrator, 18 October 2026; base.css .v8-empty can take this over) */
#v8 #app .v8-empty { grid-template-columns: minmax(0, 1fr); }
#v8 #app .v8-empty > .v8-acts { max-width: 100%; }
#v8 #app .v8-empty .v8-btn { max-width: 100%; height: auto; padding-block: 10px; white-space: normal; text-align: center; }
/* The guide's #/guide/heard reached without typed words: no empty mint bubble above the assistant's answer (guide.js renders the
   bubble from g.said; it should skip it when g.said is empty) */
#v8 #app .gd-log .gd-me:empty { display: none; }

/* ---------- The needs finder and the risk assessment, in the flow shell ---------- */
/* The welcome's panel: Fennia's blue info box (base.css 24, .v8-info: #F2F5FF, radius 8, padding 24, 16 on phones; ux8, 18 October
   2026: mint is for a selected control), its 16 Bold title, then three plain promises with checks */
#v8 #app .v8-start-p { max-width: 640px; }
#v8 #app .v8-ticks { display: grid; gap: var(--v8-3); margin-top: var(--v8-4); }
#v8 #app .v8-ticks li { display: flex; align-items: flex-start; gap: var(--v8-3); }
#v8 #app .v8-ticks svg.i { flex: none; width: 24px; height: 24px; color: var(--v8-green); }

/* The preview: what could go wrong, area by area */
#v8 #app .v8-risk { display: grid; margin-top: var(--v8-5); }
#v8 #app .v8-risk li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--v8-4); align-items: start; padding: var(--v8-4) 0; border-top: 1px solid var(--v8-line); }
#v8 #app .v8-risk li:last-child { border-bottom: 1px solid var(--v8-line); }
#v8 #app .v8-rk-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--v8-mint); color: var(--v8-green); }
#v8 #app .v8-rk-ic svg.i { width: 24px; height: 24px; }
#v8 #app .v8-rk-0 .v8-rk-ic { background: var(--v8-gray); color: var(--v8-ink-2); }
#v8 #app .v8-rk-tx { display: grid; gap: var(--v8-1); min-width: 0; }
#v8 #app .v8-rk-tx span { color: var(--v8-ink-2); }
#v8 #app .v8-rk-l { padding-top: 0; white-space: nowrap; }
/* A narrow sheet (the flow's preview between 1024 and about 1300, where the stage is 5 columns of a 1176 grid): the status goes
   under the risk's name and line, so neither runs into the other */
#v8 #app .v8-sheet-doc:has(.v8-risk) { container: v8sheet / inline-size; }
@container v8sheet (max-width: 339px) {
  #v8 #app .v8-risk li { grid-template-columns: 40px minmax(0, 1fr); row-gap: var(--v8-2); }
  #v8 #app .v8-rk-l { grid-column: 2; white-space: normal; }
}
#v8 #app .v8-rk-est { margin-top: var(--v8-5); }
#v8 #app .v8-rk-safe { display: flex; align-items: flex-start; gap: var(--v8-2); margin-top: var(--v8-5); color: var(--v8-ink-2); }
#v8 #app .v8-rk-safe svg.i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--v8-ink-2); }

/* The plan: the chosen policies with their prices, the total under a rule */
#v8 #app .v8-plan { display: grid; margin-top: var(--v8-5); }
#v8 #app .v8-plan li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--v8-4); padding: var(--v8-3) 0; border-top: 1px solid var(--v8-line); }
#v8 #app .v8-plan-tot { margin-top: 0; padding-top: var(--v8-4); border-top: 1px solid var(--v8-ink); }
#v8 #app .v8-plan-tot .v8-tot { font-weight: 700 !important; }

/* Company: the company as found, then the contact details */
#v8 #app .v8-found { padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-gray); }
#v8 #app .v8-found-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--v8-4); }
#v8 #app .v8-found-ok { display: inline-flex; align-items: center; gap: var(--v8-2); color: var(--v8-ink); }
#v8 #app .v8-found-ok svg.i { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: var(--v8-green); color: var(--v8-white); }
#v8 #app .v8-found > .v8-cn { margin-top: var(--v8-6); }
#v8 #app .v8-found > .v8-cl { margin-top: var(--v8-2); }
#v8 #app .v8-found > .v8-dl { margin-top: var(--v8-5); padding: var(--v8-2) var(--v8-5); background: var(--v8-white); }
#v8 #app .v8-setup-form { margin-top: var(--v8-7); }
/* White v8 fields, as base.css draws them, against components.css's "#app input[type=...]" (!important there, so here too):
   the 1 px field edge, radius 8, 48 tall, the 2 px deep green edge on focus and the 2 px red edge with an error. Scoped to this
   area's forms; base.css can take it for every form */
#v8 #app .v8-check .v8-link { display: inline; min-height: 0; }
#v8 #app .v8-check .v8-link svg.i { display: inline-block; width: 16px; height: 16px; margin-left: 4px; vertical-align: -2px; }

/* Choice cards, compact: a 48 disc and a name (premises, the assessment's options) */
#v8 #app .v8-choice-s { min-height: 0; }
#v8 #app .v8-choice-s .v8-ct { padding-top: var(--v8-4); }
#v8 #app .v8-choice .v8-ic48 { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--v8-white); color: var(--v8-green); }
#v8 #app .v8-choice .v8-ic48 svg.i { width: 24px; height: 24px; }
#v8 #app .v8-cg-1 { --cols: 1; }
#v8 #app .v8-choice .v8-ct { display: grid; gap: var(--v8-2); }
#v8 #app .v8-choice .v8-cl { color: var(--v8-ink-2); }

/* Policies: one card per policy, the illustration, the reason, the price at the foot */
#v8 #app .v8-tier + .v8-tier { margin-top: var(--v8-7); }
#v8 #app .v8-tier > .v8-line { margin-top: var(--v8-2); }
#v8 #app .v8-tier > .v8-choice-g { margin-top: var(--v8-4); }
#v8 #app .v8-offer { min-height: 0; padding-right: var(--v8-9); }
#v8 #app .v8-offer .v8-art img, #v8 #app .v8-offer .v8-art svg { width: 64px; height: 64px; }
#v8 #app .v8-offer .v8-ct { padding-top: var(--v8-5); }
#v8 #app .v8-offer .v8-choice-f { padding-top: var(--v8-4); }
#v8 #app .v8-law { display: inline-flex; align-items: center; gap: var(--v8-2); color: var(--v8-ink); }
#v8 #app .v8-law svg.i { width: 20px; height: 20px; color: var(--v8-green); }
#v8 #app .v8-offers + .v8-err, #v8 #app .v8-choices + .v8-err { margin-top: var(--v8-4); }

/* Belongings and income: the amount, its field and its slider, on the tokens */
#v8 #app .v8-amounts { display: grid; gap: var(--v8-7); max-width: 640px; }
#v8 #app .v8-flow .amount-q { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
#v8 #app .v8-flow .amount-q .top { display: grid !important; grid-template-columns: minmax(0, 1fr) 176px; gap: var(--v8-4); align-items: end; }
#v8 #app .v8-flow .amount-q .q { display: block; color: var(--v8-ink) !important; font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; }
#v8 #app .v8-flow .amount-q .s { display: block; margin-top: var(--v8-2); color: var(--v8-ink-2) !important; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 #app .v8-flow .amount-q .field { margin: 0 !important; }
#v8 #app .v8-flow .amount-q .field input { width: 100%; height: 56px !important; padding: 0 16px !important; border: 0 !important; border-radius: var(--v8-r-sm) !important; background: var(--v8-white) !important; box-shadow: inset 0 0 0 1px var(--v8-field) !important; color: var(--v8-ink) !important; font: inherit; font-size: var(--v8-fs-16) !important; text-align: right; font-variant-numeric: tabular-nums; }
#v8 #app .v8-flow .amount-q .field input:focus { outline: none !important; box-shadow: inset 0 0 0 2px var(--v8-deep) !important; }
#v8 #app .v8-flow .amount-q .field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--v8-red) !important; }
#v8 #app .v8-flow .amount-q input[type="range"] { --p: 50%; display: block; width: 100%; height: 44px; margin: var(--v8-4) 0 0 !important; background: transparent !important; -webkit-appearance: none; appearance: none; cursor: pointer; }
/* The done part of the track: an inset shadow as wide as the value (v8-rest.js sets --pn, 0 to 1), no gradient */
#v8 #app .v8-flow .amount-q { container-type: inline-size; }
#v8 #app .v8-flow .amount-q input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--v8-line); box-shadow: inset calc(14px + var(--pn, 0.5) * (100cqw - 28px)) 0 0 0 var(--v8-green); }
#v8 #app .v8-flow .amount-q input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -12px; border: 0; border-radius: 50%; background: var(--v8-white); box-shadow: inset 0 0 0 2px var(--v8-green), 0 1px 3px rgba(0, 0, 0, .12); -webkit-appearance: none; appearance: none; }
#v8 #app .v8-flow .amount-q input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--v8-line); }
#v8 #app .v8-flow .amount-q input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--v8-green); }
#v8 #app .v8-flow .amount-q input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--v8-white); box-shadow: inset 0 0 0 2px var(--v8-green); }
#v8 #app .v8-flow .amount-q input[type="range"]:focus-visible { outline: var(--v8-focus) !important; outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
#v8 #app .v8-flow .amount-q .scale-l { display: flex; justify-content: space-between; color: var(--v8-ink-2) !important; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 #app .v8-flow .err { display: flex; align-items: flex-start; gap: 8px; margin-top: var(--v8-2); color: var(--v8-red) !important; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 #app .v8-flow .err[hidden] { display: none; }
#v8 #app .v8-flow .err svg.i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--v8-red) !important; }
@media (max-width: 479px) { #v8 #app .v8-flow .amount-q .top { grid-template-columns: minmax(0, 1fr); } }
#v8 #app .v8-stake { margin-top: var(--v8-7); max-width: 640px; }
#v8 #app .v8-stake .v8-sum { margin-top: var(--v8-4); }

/* Work: the field and its suggestions, on the tokens */
#v8 #app .v8-flow .wf { max-width: 640px; }
#v8 #app .v8-flow .wf-labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: var(--v8-4); margin-bottom: var(--v8-2); }
#v8 #app .v8-flow .wf-labelrow label { color: var(--v8-ink) !important; font-size: var(--v8-fs-16) !important; font-weight: 400 !important; }
#v8 #app .v8-flow .wf-labelrow .small { color: var(--v8-ink-2) !important; font-size: var(--v8-fs-16) !important; }
#v8 #app .v8-flow .wf-box { min-height: 48px !important; padding: 4px 12px !important; border: 0 !important; border-radius: var(--v8-r-sm) !important; background: var(--v8-white) !important; box-shadow: inset 0 0 0 1px var(--v8-field) !important; }
#v8 #app .v8-flow .wf-box:focus-within { box-shadow: inset 0 0 0 2px var(--v8-deep) !important; }
#v8 #app .v8-flow .wf-box.invalid { box-shadow: inset 0 0 0 2px var(--v8-red) !important; }
#v8 #app .v8-flow .wf-box > svg.i { color: var(--v8-ink-2) !important; }
#v8 #app .v8-flow .wf-box input { font-size: var(--v8-fs-16) !important; color: var(--v8-ink) !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
#v8 #app .v8-flow .wf-chip { min-height: 36px; border: 0 !important; border-radius: var(--v8-r-pill) !important; background: var(--v8-mint) !important; color: var(--v8-deep) !important; font-size: var(--v8-fs-16) !important; }
#v8 #app .v8-flow .wf-chip svg.i { color: var(--v8-green) !important; }
#v8 #app .v8-flow .wf-x { border-radius: 50% !important; color: var(--v8-deep) !important; }
#v8 #app .v8-flow .wf-x:hover { background: var(--v8-hover) !important; }
#v8 #app .v8-flow .wf-pop { border: 0 !important; border-radius: var(--v8-r) !important; background: var(--v8-white) !important; box-shadow: var(--v8-shadow-pop) !important; }
#v8 #app .v8-flow .wf-opt { border-radius: var(--v8-r-sm) !important; color: var(--v8-ink) !important; font-size: var(--v8-fs-16) !important; }
#v8 #app .v8-flow .wf-opt .g, #v8 #app .v8-flow .wf-opt .hint { color: var(--v8-ink-2) !important; font-size: var(--v8-fs-16) !important; }
#v8 #app .v8-flow .wf-opt.on { background: var(--v8-hover) !important; }
#v8 #app .v8-flow .wf-tile { border-radius: 50% !important; background: var(--v8-mint) !important; color: var(--v8-green) !important; }
#v8 #app .v8-flow .wf-notes .note { display: flex; gap: var(--v8-2); margin-top: var(--v8-3); color: var(--v8-ink-2) !important; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 #app .v8-flow .wf-notes .note svg.i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--v8-ink-2) !important; }


/* The risk assessment: the parts as links in the step track, groups of option cards, the answers so far */
#v8 #app .v8-as-steps li a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-decoration: none; }
/* The other parts are links, and look it at rest: green and underlined; the current part is Bold ink */
#v8 #app .v8-as-steps li:not(.now) a { color: var(--v8-green-t); text-decoration: underline; text-decoration-color: rgba(0, 112, 11, .4); text-underline-offset: 3px; }
@media (hover: hover) { #v8 #app .v8-as-steps li:not(.now) a:hover { text-decoration-color: currentColor; } }
#v8 #app .v8-as-nav { max-width: 640px; margin-top: var(--v8-5); }
#v8 #app .v8-as-steps { display: flex; flex-wrap: wrap; gap: 0 var(--v8-5); }
#v8 #app .v8-as-steps li { display: inline-flex; }
#v8 #app .v8-as-g + .v8-as-g { margin-top: var(--v8-7); }
/* The preview: the part's illustration and name, what the answers mean for her cover, the share complete once at the foot */
#v8 #app .v8-as-head .v8-art { display: block; margin-bottom: var(--v8-5); }
#v8 #app .v8-as-head .v8-art :is(img, svg) { display: block; width: 64px; height: 64px; }
#v8 #app .v8-as-head .v8-cl { margin-top: var(--v8-2); }
#v8 #app .v8-as-mean { display: grid; gap: var(--v8-2); margin-top: var(--v8-5); padding-top: var(--v8-5); border-top: 1px solid var(--v8-line); }
#v8 #app .v8-as-fig { margin-top: var(--v8-5); padding-top: var(--v8-5); border-top: 1px solid var(--v8-line); }

/* ---------- The search palette (shell.js's command bar): the menu frame, rows in the document-row look ---------- */
#v8 body .cmdk { width: min(640px, calc(100vw - 32px)) !important; border: 0 !important; border-radius: var(--v8-r) !important; background: var(--v8-white) !important; box-shadow: var(--v8-shadow-pop) !important; color: var(--v8-ink) !important; }
#v8 body .scrim:has(> .cmdk) { background: var(--v8-scrim) !important; }
#v8 body .cmdk-in { min-height: 64px; border-bottom: 1px solid var(--v8-line) !important; }
#v8 body .cmdk-in input { font-size: var(--v8-fs-20) !important; color: var(--v8-ink) !important; }
#v8 body .cmdk-in input::placeholder { color: var(--v8-ink-2) !important; opacity: 1; }
#v8 body .cmdk-in > svg.i { color: var(--v8-ink) !important; }
#v8 body .cmdk-in kbd { border: 1px solid var(--v8-line) !important; border-radius: var(--v8-r-tag) !important; background: var(--v8-white) !important; color: var(--v8-ink-2) !important; }
#v8 body .cmdk .icon-btn { width: 44px; height: 44px; border-radius: 50% !important; color: var(--v8-ink) !important; }
#v8 body .cmdk .icon-btn:hover { background: var(--v8-hover) !important; }
/* The suggestion chips repeated the list's first rows: the list alone holds the suggestions */
#v8 body .cmdk-pop { display: none !important; }
@media (max-width: 639px) { #v8 body .cmdk { margin-top: 16px !important; height: auto !important; max-height: calc(100dvh - 32px) !important; } }
#v8 body .cmdk-pop button { min-height: 40px; border: 1px solid var(--v8-pressed) !important; border-radius: var(--v8-r-pill) !important; background: var(--v8-white) !important; color: var(--v8-green-t) !important; font-size: var(--v8-fs-16) !important; }
#v8 body .cmdk-pop button:hover { background: var(--v8-hover) !important; }
#v8 body .cmdk-item { border-radius: var(--v8-r-sm) !important; color: var(--v8-ink) !important; }
#v8 body .cmdk-item > svg.i { color: var(--v8-green) !important; }
#v8 body .cmdk-item .t { color: var(--v8-ink) !important; font-size: var(--v8-fs-16) !important; font-weight: 400 !important; }
#v8 body .cmdk-item .s { color: var(--v8-ink-2) !important; font-size: var(--v8-fs-16) !important; }
#v8 body .cmdk-item[aria-selected="true"] { background: var(--v8-hover) !important; }
#v8 body .cmdk-item[aria-selected="true"] .t { color: var(--v8-green-t) !important; }
#v8 body .cmdk-item .enter { color: var(--v8-ink-2) !important; }
#v8 body .cmdk-gh { color: var(--v8-ink) !important; font-size: var(--v8-fs-16) !important; font-weight: 700 !important; }
#v8 body .cmdk-empty, #v8 body .cv-caveat { color: var(--v8-ink-2) !important; font-size: var(--v8-fs-16) !important; }
#v8 body .cv-try { color: var(--v8-green-t) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 112, 11, .4); }
/* The status in a result (Check your claim: In progress or Needs you) is base.css section 5's mark and word, which covers .cmdk too
   (README 192); the copy of the old white tag that lived here is gone. The chosen row is the green wash, so its mark turns white,
   as README 90's row marks do */
#v8 :is(#app, .cmdk) .cmdk-item:is(:hover, [aria-selected="true"]) .v8-b-mk { background: var(--v8-white); box-shadow: none; }   /* :is(#app, ...) only to outweigh section 5's scope */
/* "Am I covered?" answers: white with a green edge, not a green fill */
#v8 body .cmdk .cv-card { border-radius: var(--v8-r) !important; background: var(--v8-white) !important; box-shadow: inset 0 0 0 1px var(--v8-line) !important; color: var(--v8-ink) !important; }
#v8 body .cmdk .cv-card[aria-selected="true"] { background: var(--v8-mint) !important; box-shadow: inset 0 0 0 1.5px var(--v8-green-t) !important; }

/* ---------- Second pass ---------- */
/* Segmented controls keep their own width */
#v8 #app .v8-field > .v8-seg, #v8 #app .v8-group > .v8-seg { justify-self: start; align-self: start; width: auto; }
/* The assessment's current part in Bold (the link inside the step carries the weight) */
#v8 #app .v8-as-steps li.now a { font-weight: 700 !important; color: var(--v8-ink); }
/* Policies in the plan: the horizontal InsuranceCard, the illustration left, the price under the reason */
#v8 #app .v8-offer { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--v8-5); align-items: start; padding: var(--v8-5) var(--v8-9) var(--v8-5) var(--v8-5); }
#v8 #app .v8-offer > .v8-art { grid-row: 1 / span 2; }
#v8 #app .v8-offer .v8-ct { padding-top: 0; }
#v8 #app .v8-offer .v8-choice-f { grid-column: 2; margin-top: 0; padding-top: var(--v8-4); }
@media (max-width: 479px) { #v8 #app .v8-offer { grid-template-columns: minmax(0, 1fr); padding-right: var(--v8-5); } #v8 #app .v8-offer > .v8-art { grid-row: auto; margin-bottom: var(--v8-4); } #v8 #app .v8-offer .v8-choice-f { grid-column: 1; } #v8 #app .v8-offer .v8-ct { padding-right: var(--v8-7); } }
/* Phones: a compact choice is a row (the disc left, the name beside it), so a group of five fits a screen */
@media (max-width: 599px) {
  #v8 #app .v8-choice-s { flex-direction: row; align-items: center; gap: var(--v8-4); padding: var(--v8-4) var(--v8-9) var(--v8-4) var(--v8-4); }
  #v8 #app .v8-choice-s .v8-ct { padding-top: 0; }
  #v8 #app .v8-choice-s .v8-choice-ck { top: 50%; right: var(--v8-4); transform: translateY(-50%); }
  #v8 #app .v8-choice-s .v8-ic48 { flex: none; }
}

/* ---------- Third pass (the second review) ---------- */
/* Checkbox cards show their empty ring at rest, so an unticked policy or answer reads as something to choose */
#v8 #app .v8-rf .v8-choice:has(input[type="checkbox"]:not(:checked)) .v8-choice-ck { display: grid; background: var(--v8-white); box-shadow: inset 0 0 0 2px var(--v8-ink); }
/* "Choose everything that applies" is a checkbox: a square box with 4 corners, as V8.check draws one (Certificates' "Which
   policies?"); a round ring stays the radio's. Here for the assessment and the needs finder; base.css should carry it for every
   choice card (asked of its owner) */
#v8 #app .v8-rf .v8-choice:has(input[type="checkbox"]) .v8-choice-ck { border-radius: var(--v8-r-tag); }
#v8 #app .v8-rf .v8-choice:has(input[type="checkbox"]:not(:checked)) .v8-choice-ck svg { visibility: hidden; }
/* Welcome's preview: a sample plan, each policy with its illustration */
#v8 #app .v8-sample { display: grid; margin-top: var(--v8-5); }
#v8 #app .v8-sample li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--v8-4); align-items: center; padding: var(--v8-4) 0; border-top: 1px solid var(--v8-line); }
#v8 #app .v8-sample li:last-child { border-bottom: 1px solid var(--v8-line); }
#v8 #app .v8-sample .v8-art :is(img, svg) { display: block; width: 64px; height: 64px; }
#v8 #app .v8-sample .v8-ct { display: grid; gap: var(--v8-1); min-width: 0; }

/* The side menu's File a new claim (18 October 2026, Janne: "We shouldn't have the plus sign, and it should be a primary button
   with hug content"): Fennia's primary button, as wide as its words, at the start of the menu's column. No icon (shell.js and
   admin.js). Specificity beats base.css's outlined full-width rail button (header.rail.rail2 .rail-cta) */
#v8 #app header.rail.rail2 a.btn.rail-cta { display: inline-flex !important; align-self: flex-start; justify-self: start; width: auto !important; max-width: 100%; padding: 0 24px !important;
  border: 0 !important; background: var(--v8-green) !important; color: var(--v8-white) !important; font-weight: 400 !important; }
#v8 #app header.rail.rail2 a.btn.rail-cta:hover { background: var(--v8-deep) !important; color: var(--v8-white) !important; }
#v8 #app header.rail.rail2 a.btn.rail-cta:active { background: var(--v8-deep) !important; }

/* The meter word's deep green moved to base.css 28 (round G, 18 October 2026), scoped to the policy cards */

/* Dashed, not dotted (18 October 2026, Janne: "it should be more like a dashed line in those policies you don't yet have. It's a
   bit too tight ... I meant a dashed line"). The browser's own dashes are short and close, so the edge is drawn as an SVG: dashes
   10 long with 7 between, 2 px wide (a 4 px stroke on the box's edge, half of it clipped), the field gray at rest (3.4:1 on white)
   and the text green on hover, rounded to the card's 16 and the chip's 8. Replaces base.css's 2 px dotted outlines on the
   could-add policy card (.v8-pc-add) and the cover she lacks (.v8-chip-cover-out) */
#v8 #app .v8-pc.v8-pc-add { outline: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%232EAA4A' stroke-width='4' stroke-dasharray='10 7'/%3E%3C/svg%3E") !important; }
@media (hover: hover) { #v8 #app a.v8-pc.v8-pc-add:hover { outline: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%2300700B' stroke-width='4' stroke-dasharray='10 7'/%3E%3C/svg%3E") !important; } }
#v8 #app .v8-chip-cover.v8-chip-cover-out { outline: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%232EAA4A' stroke-width='4' stroke-dasharray='8 6'/%3E%3C/svg%3E"); }
@media (hover: hover) { #v8 #app .v8-chip-cover.v8-chip-cover-out:hover { outline: none !important; background-color: var(--v8-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%2300700B' stroke-width='4' stroke-dasharray='8 6'/%3E%3C/svg%3E"); } }
/* Forced colours drop background images, so the edge comes back as a real dashed outline there */
@media (forced-colors: active) { #v8 #app :is(.v8-pc.v8-pc-add, .v8-chip-cover.v8-chip-cover-out) { outline: 2px dashed CanvasText !important; outline-offset: -2px; } }

/* The meter capsule's outer edge, stronger (19 October 2026, Janne: "the outer strokes look too faint, given the color of the
   card"). #DDDDDD vanished on the gray card (1,2:1 on #F5F5F5); #A8A8A8 is 2,2:1 on the gray card and 2,4:1 on white, so the
   capsule reads as one object without competing with the filled pills' green edge. Move into base.css section 28 when no other
   run is editing it */
/* A document's file type (19 October 2026, Janne: "It definitely shouldn't be in the text. It should be in the title"): a small
   outlined tag after the name, 12 Bold secondary on white, 4 from the name; screen readers hear ", PDF" as part of the name */
#v8 :is(#app, .v8-dlgw) .v8-doc-ft { display: inline-block; margin-left: var(--v8-2); padding: 0 6px; border-radius: 4px; background: var(--v8-white); box-shadow: inset 0 0 0 1px #A8A8A8; color: var(--v8-ink-2); font-size: var(--v8-fs-14) !important; line-height: 18px !important; font-weight: 700 !important; vertical-align: 2px; letter-spacing: 0.02em; }

/* The meter, a reference's segmented bar (20 October 2026, Janne: "copy a reference style a bit more specifically. the item should look
   thicker and inside bars should not be rounded except at the ends"). A thicker capsule: a 2 px gray ring (#BDBDBD) around a white
   inset, the segments square, only the first one's left end and the last one's right end rounded, 3 apart. A filled segment is
   Fennia green with a soft light band through its middle, as a reference's; an empty one light gray with the #8C8C8C edge, so the
   count still reads (WCAG 1.4.11). Taller: 12 (8 small), so it reads as an object, not a line */
#v8 :is(#app, .v8-dlgw) .v8-meter { --mt-w: 30px; --mt-h: 12px; --mt-gap: 3px; --mt-pad: 4px; }
#v8 :is(#app, .v8-dlgw) .v8-meter.v8-mt-sm { --mt-w: 20px; --mt-h: 10px; --mt-gap: 2px; --mt-pad: 3px; }
#v8 :is(#app, .v8-dlgw) .v8-meter .v8-mt-cap { box-shadow: inset 0 0 0 2px #BDBDBD; background: var(--v8-white); padding: calc(var(--mt-pad) + 1px); }
#v8 :is(#app, .v8-dlgw) .v8-meter .v8-mt-cap > i { border-radius: 0; background: #E9E9E9; box-shadow: inset 0 0 0 1px #8C8C8C; }
#v8 :is(#app, .v8-dlgw) .v8-meter .v8-mt-cap > i:first-child { border-radius: var(--v8-r-pill) 0 0 var(--v8-r-pill); }
#v8 :is(#app, .v8-dlgw) .v8-meter .v8-mt-cap > i:last-child { border-radius: 0 var(--v8-r-pill) var(--v8-r-pill) 0; }
#v8 :is(#app, .v8-dlgw) .v8-meter .v8-mt-cap > i:first-child:last-child { border-radius: var(--v8-r-pill); }
#v8 :is(#app, .v8-dlgw) .v8-meter .v8-mt-cap > i.v8-mt-on { background: linear-gradient(to bottom, transparent 30%, rgba(255, 255, 255, 0.22) 30%, rgba(255, 255, 255, 0.22) 62%, transparent 62%), var(--v8-green); box-shadow: none; }
@media (forced-colors: active) {
  #v8 :is(#app, .v8-dlgw) .v8-meter .v8-mt-cap > i.v8-mt-on { background: CanvasText; }
}
/* On a policy card at four a row the word must stay beside the capsule ("Standard package" in 194): the segments 16 wide there */
#v8 #app .v8-pc .v8-meter.v8-mt-sm { --mt-w: 13px; --mt-x: 6px; --mt-pad: 2px; }

/* Claim progress bars are blue (20 October 2026, Janne: "all progress charts could be blue"): the thin bar's ring and fill in the
   data base blue (#1C69FF, 4,65:1 on white, 4,27:1 on the gray card), matching the claim page's blue track; green stays for
   actions and the package meter */
/* Not in forced colours (21 October 2026): there the system's CanvasText ring and fill (base.css 29) must win, or a dark
   high-contrast theme shows a white capsule with a brand-blue fill */
@media not (forced-colors: active) {
  #v8 :is(#app, .v8-dlgw) .v8-pbar-t { box-shadow: inset 0 0 0 1px var(--v8-data-base); }
  #v8 :is(#app, .v8-dlgw) .v8-pbar-t > i { background: var(--v8-data-base); }
}
/* The rail's groups without their visible names (20 October 2026, Janne: take "Your insurance" and "Your company" away and create
   more negative space, "so it would be easier to comprehend when the topic changes"): the names stay for screen readers (each
   group's list is labelled by them); the groups stand 40 apart, with no hairline */
#v8 #app header.rail.rail2 .nav-h { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
#v8 #app header.rail.rail2 .nav.nav-grouped { gap: 40px !important; }

/* Large insight cards (20 October 2026, Janne's rule: "if the card of Fennia Insights is quite large, then the indication bar should
   be at the top because you need a lot of space. If it's this kind of smaller banner, then it can be totally on the side"):
   .v8-ins-big, the Insights page's sections, carry the panel as a strip across the top; smaller insights keep the side panel.
   The panel as a strip across the card's top at every width (20 October 2026, Janne: "put this at the top of the card, not on the
   left, so that would give a good idea of what this is"): the mark (32) and "Fennia Insight" in a row on the pale lime, the notch
   pointing down at the finding; under it the finding with the arrow at its right, then the chart across the card. The tools get
   the card's full width */
#v8 #app .v8-ins-big.v8-ins-w > section.v8-ins.v8-insx { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; grid-template-areas: "pan pan" "main go" "chart chart"; }
#v8 #app .v8-ins-big .v8-insx > .v8-ins-pan { grid-area: pan; grid-row: auto; display: block; justify-items: normal; min-height: 0; padding: 0; border-radius: calc(var(--v8-r) - 1px) calc(var(--v8-r) - 1px) 0 0; }
#v8 #app .v8-ins-big .v8-ins-pan::before { position: absolute; left: calc(var(--v8-6) + 7px); bottom: -9px; margin: 0; }
#v8 #app .v8-ins-big .v8-ins-pin { display: flex; align-items: center; justify-self: stretch; gap: var(--v8-2); padding: var(--v8-3) var(--v8-6); }
#v8 #app .v8-ins-big .v8-ins-pmk { width: 32px; height: 32px; }
#v8 #app .v8-ins-big .v8-ins-pmk svg.i { width: 32px; height: 32px; }
#v8 #app .v8-ins-big .v8-ins-pl { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; text-align: left; }
#v8 #app .v8-ins-big .v8-insx > .v8-ins-main { padding: var(--v8-5) var(--v8-5) var(--v8-5) var(--v8-6); }
#v8 #app .v8-ins-big.v8-ins-w > section.v8-ins.v8-insx:has(> .v8-ins-go-w) { grid-template-areas: "pan pan" "main go" "chart chart"; }
@container v8ins (max-width: 799px) {
  #v8 #app .v8-ins-big.v8-ins-w > section.v8-ins.v8-insx:has(> .v8-ins-go-w) { grid-template-areas: "pan pan" "main main" "go go" "chart chart"; }
}
@container v8ins (max-width: 559px) {
  #v8 #app .v8-ins-big .v8-ins-pan::before { left: calc(var(--v8-5) + 7px); }
  #v8 #app .v8-ins-big .v8-ins-pin { padding: var(--v8-2) var(--v8-5); }
  #v8 #app .v8-ins-big .v8-insx > .v8-ins-main { padding: var(--v8-5) var(--v8-4) var(--v8-5) var(--v8-5); }
}
/* More room between the search and the first menu item (20 October 2026, Janne: "More space between that"): 24, so the search
   reads as its own tool above the menu, now that the group names are gone */
#v8 #app header.rail.rail2 .nav.nav-grouped { margin-top: var(--v8-5) !important; }

/* One hover for every clickable card (20 October 2026, Janne: "I don't want the dark green stroke. It should be the green hover"):
   the card fills with the green wash (--v8-hover) and loses the 1.5 px dark green edge. A chosen option keeps its chosen edge */
@media (hover: hover) {
  #v8 #app :is(a.v8-card, button.v8-card):hover,
  #v8 #app a.v8-pc:hover, #v8 #app a.pc0:hover,
  #v8 #app .v8-att:has(.v8-open:hover),
  #v8 #app .v8-cert:hover,
  #v8 #app .v8-chip-cover:hover,
  #v8 #app :is(a, button).v8-doc:hover,
  #v8 #app a.v8c-row:hover,
  #v8 #app .v8-hm-whole:has(.v8-hm-cue:hover),
  #v8 #app .v8-msg-files > li:has(.v8-msg-fn:hover) { background: var(--v8-hover) !important; box-shadow: none !important; }
  #v8 :is(#app, .v8-dlgw) .v8-opt:hover:not(:has(input:checked)), #v8 #app .v8-choice:hover:not(:has(input:checked)), #v8 body .gd-dlg .gd-slot:hover { background: var(--v8-hover) !important; box-shadow: none !important; }
  #v8 #app a.v8-pc.v8-pc-add:hover { background: var(--v8-hover) !important; }
}
/* What most businesses like hers have, in the marker's blue and with room under the meter (20 October 2026, Janne: the text is "too
   close" to the indicator, and "it should be maybe in blue ... then it connects aesthetically: this arrow means this"): 16 between
   the capsule and the line, so the caret sits in the gap; the line in a deeper data blue (#1555D6, 5,6:1 on white, 5,1:1 on the
   gray card) where the base blue (#1C69FF) would fall under 4,5:1 as text */
#v8 :is(#app, .v8-dlgw) .v8-meter.v8-mt-hasmk { row-gap: var(--v8-4) !important; }
#v8 #app .v8-cxm-cv .v8-cxm-l, #v8 :is(#app, .v8-dlgw) .v8-meter.v8-mt-hasmk .v8-mt-l { color: #1555D6 !important; }
#v8 #app .v8-cxm-cv > .v8-meter.v8-mt-hasmk + .v8-cxm-l { margin-top: var(--v8-2); }
/* Insight cards are always the full width of their column (20 October 2026, Janne: "It should be full width, though, always") */
#v8 #app .v8-ins-w, #v8 #app .v8c-nug { max-width: none !important; width: 100%; }

/* A question sits close to its answers (20 October 2026, Janne: "when you have a selector or field and you have the text that it
   references, it should be closer to it ... the question is not even very close to those selective items"). Proximity, as one
   rule: a legend or label is 8 above its controls (a hint between them: 4 under the label, 8 above the controls); a question
   group stands 32 below whatever came before it, so it reads as its own unit */
#v8 #app .v8-legend { margin-bottom: var(--v8-2) !important; }
#v8 #app .v8-legend + .v8-line, #v8 #app .v8-legend + .v8-hint { margin: calc(-1 * var(--v8-1)) 0 var(--v8-2) !important; }
#v8 #app .v8-field { gap: var(--v8-2); }
#v8 #app .v8-field > .v8-hint { margin-top: calc(-1 * var(--v8-1)); }
#v8 #app fieldset.v8-choices > .v8-seg, #v8 #app fieldset.v8-choices > .v8-choice-g, #v8 #app fieldset.v8-choices > .v8-opts { margin-top: 0 !important; }
#v8 #app .v8-sec > .v8-sec-h + fieldset, #v8 #app .v8-sec .v8-line + fieldset.v8-choices { margin-top: var(--v8-6) !important; }
#v8 #app .v8-field .v8-label + .v8-seg { margin-top: 0; }
/* Flat (20 October 2026, Janne: "lets keep design flat. u dont need that lighter stroke in the middle"): a filled segment is plain
   Fennia green, no light band */
#v8 :is(#app, .v8-dlgw) .v8-meter .v8-mt-cap > i.v8-mt-on { background: var(--v8-green) !important; }
/* The gap card's figure: the amount 28 Bold, its few words under it */
#v8 #app .crb-fig { display: grid; gap: var(--v8-1); margin: 0; }
#v8 #app .crb-fig > b { color: var(--v8-ink); font-size: var(--v8-fs-28) !important; line-height: var(--v8-lh-28) !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
#v8 #app .crb-fig > span { color: var(--v8-ink-2); }
/* No spacer line where a container already separates (20 October 2026, Janne: "no spacer lines needed when there are
   containers"): a large insight's tool sits under its words without the hairline */
#v8 #app .v8-ins-big .v8-insx > .v8-ins-chart { border-top: 0 !important; padding-top: 0 !important; }
/* The insight's action with words is Fennia's secondary button (20 October 2026, Janne: "See how to lower your risk ... doesn't
   look good"): the words in an outlined pill, 44 tall, a small arrow after them; no green disc beside long words */
#v8 #app .v8-insx > .v8-ins-go.v8-ins-go-w { gap: var(--v8-2); min-height: 44px; padding: 0 var(--v8-5); border-radius: var(--v8-r-pill); background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-green); color: var(--v8-green-t); font-weight: 400 !important; white-space: nowrap; }
#v8 #app .v8-insx > .v8-ins-go.v8-ins-go-w .v8-ins-gow { max-width: none; text-align: left; }
#v8 #app .v8-insx > .v8-ins-go.v8-ins-go-w .v8-ins-goc { order: 2; width: 20px; height: 20px; background: none; color: var(--v8-green-t); }
#v8 #app .v8-insx > .v8-ins-go.v8-ins-go-w .v8-ins-goc svg.i { width: 20px; height: 20px; color: var(--v8-green-t); }
@media (hover: hover) {
  #v8 #app .v8-insx > .v8-ins-go.v8-ins-go-w:hover { background: var(--v8-hover); }
  #v8 #app .v8-insx > .v8-ins-go.v8-ins-go-w:hover .v8-ins-gow { text-decoration: none; }
  #v8 #app .v8-insx > .v8-ins-go.v8-ins-go-w:hover .v8-ins-goc { background: none; }
}
/* One bar look for the small summary bars (the Claims insight, the claims payout): 8 tall, ends rounded, 2 apart */
/* (22 October 2026: both now draw soft segments in the chart well, README 79, so these apply only to a bar without .v8-cw-row) */
#v8 #app .v8c-nug-bar:not(.v8-cw-row), #v8 #app .v8c-paybar:not(.v8-cw-row) { height: 8px !important; border-radius: 4px; gap: 2px; }
#v8 #app .v8c-nug-bar:not(.v8-cw-row) > i:first-child { border-radius: 4px 0 0 4px; }
#v8 #app .v8c-nug-bar:not(.v8-cw-row) > i:last-child { border-radius: 0 4px 4px 0; }
/* Policy cards: every name keeps two lines, so the descriptions start on one line across the row */
#v8 #app .v8-pc .v8-pc-tx > .v8-cn { min-height: calc(2 * var(--v8-lh-20)); }

/* =================================================================
   Risk is a warning, never the coverage green (20 October 2026, Janne: "risk should be in red or orange as a warning, or
   yellow ... so you don't mix it with the coverage, which is green, because you're using the same component"). The risk meter
   keeps the capsule; its filled segments take the level's colour: Low yellow, Medium orange, High red. The colours are
   decorative (the word beside the meter carries the level, and the screen-reader text too), so they need no text contrast;
   each still parts from the gray empty segment. Package and stage meters stay green and blue
   ================================================================= */
#v8 { --v8-risk-1: #F2C230; --v8-risk-2: #F08A24; --v8-risk-3: #D63D29; }
#v8 :is(#app, .v8-dlgw) .v8-meter.v8-mt-risk[data-at="1"] .v8-mt-cap > i.v8-mt-on { background: var(--v8-risk-1) !important; }
#v8 :is(#app, .v8-dlgw) .v8-meter.v8-mt-risk[data-at="2"] .v8-mt-cap > i.v8-mt-on { background: var(--v8-risk-2) !important; }
#v8 :is(#app, .v8-dlgw) .v8-meter.v8-mt-risk[data-at="3"] .v8-mt-cap > i.v8-mt-on { background: var(--v8-risk-3) !important; }
@media (forced-colors: active) { #v8 :is(#app, .v8-dlgw) .v8-meter.v8-mt-risk .v8-mt-cap > i.v8-mt-on { background: CanvasText !important; } }

/* =================================================================
   Hover on rows with hairlines: one straight edge (20 October 2026, Janne: "the hover effects look awkward w lines ... I don't
   want to see this kind of step effect. It should be just a straight, neat line, so maybe it should continue the stroke").
   The green wash used to reach 8 to 12 px past the row with a shadow, rounded, so it stuck out beyond the hairline under it.
   Now the wash is exactly the row: square corners, the same width as its hairline, and the row's content sits 12 px inside it
   (the coverage list's way), so wash and stroke share one edge
   ================================================================= */
#v8 #app .v8-rows > li, #v8 #app .v8-inbox > li, #v8 #app .v8c-pr-r { padding-left: 12px; padding-right: 12px; border-radius: 0; }
#v8 #app .v8-dn-a { padding-left: 8px; padding-right: 8px; border-radius: 0; }
#v8 :is(#app, .v8-dlgw) :is(.v8-table, .v8c-table) tr.v8-tr-l > :first-child { padding-left: 12px; }
#v8 :is(#app, .v8-dlgw) :is(.v8-table, .v8c-table) tr.v8-tr-l > :last-child { padding-right: 12px; }
@media (hover: hover) {
  #v8 #app :is(.v8-rows > li, .v8-inbox > li, .v8c-pr-r, .v8-dn-a):hover { box-shadow: none !important; border-radius: 0 !important; }
  #v8 :is(#app, .v8-dlgw) :is(.v8-table, .v8c-table) tr.v8-tr-l:hover, #v8 :is(#app, .v8-dlgw) :is(.v8-table, .v8c-table) tr.v8-tr-l:hover > * { box-shadow: none !important; border-radius: 0 !important; }
}

/* Room after the insight's arrow (20 October 2026, Janne: "add a bit more white space, maybe 8px of padding, because when you
   have that yellow arrow, it almost appears that it's too cramped. Apply this to all components"). The white part starts 8
   further from the lime panel, on the side the arrow points: below the top strip (large cards and phones), right of the side
   panel (small cards). Only that one side grows */
#v8 #app .v8-insx > .v8-ins-main { padding-left: calc(var(--v8-6) + var(--v8-2)); }
#v8 #app .v8-ins-big .v8-insx > .v8-ins-main { padding-left: var(--v8-6); padding-top: calc(var(--v8-5) + var(--v8-2)); }
@container v8ins (max-width: 559px) {
  #v8 #app .v8-insx > .v8-ins-main, #v8 #app .v8-ins-big .v8-insx > .v8-ins-main { padding-left: var(--v8-5); padding-top: calc(var(--v8-5) + var(--v8-2)); }
}
/* The chart under a small card's words starts on the same line as the words */
#v8 #app .v8-ins-w:not(.v8-ins-big) .v8-insx > .v8-ins-chart { margin-left: calc(var(--v8-6) + var(--v8-2)); }
@container v8ins (max-width: 559px) { #v8 #app .v8-ins-w:not(.v8-ins-big) .v8-insx > .v8-ins-chart { margin-left: var(--v8-5); } }

/* Tablets: everything in a hamburger menu (20 October 2026, Janne: "if they cannot fit on the screen ... throw everything into a
   hamburger menu ... so tablet sizes"). From 640 to 1023 the bottom tab bar (four of the nine places) goes; a menu button opens on
   the left of the top bar; it slides the full side menu in from the left, 320 wide, over a 48 % ink scrim; Escape, the scrim, the
   close button or a choice closes it (menu-sheet.js drawerSet). From 1024 the side menu stands.
   Phones too since 22 October 2026 (README 142; Janne: "The phone navigation actually should always be a kind of hamburger that
   opens and then opens across the entire screen"): the tab bar is gone at every width, and under 640 the same menu takes the whole
   screen (the block after this one) */
#v8 #app .topbar .tb-menu { display: none; }
@media (max-width: 1023px) {
  #v8 { --tabbar-h: 0px; }
  #v8 #app .tabbar { display: none !important; }
  #v8 #app .topbar .tb-menu { display: grid; margin-right: var(--v8-2); }
  #v8 #app .topbar { justify-content: flex-start; }
  #v8 #app .topbar .logo { margin-right: auto; }
  #v8 #app header.rail.rail2 { display: flex !important; position: fixed; top: 0; bottom: 0; left: 0; width: 320px; max-width: 86vw; z-index: 80; overflow-y: auto; overscroll-behavior: contain; background: var(--v8-white); box-shadow: 0 0 0 1px var(--v8-line), 0 12px 40px rgba(0,0,0,.18); transform: translateX(-105%); transition: transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s .22s; visibility: hidden; }
  #v8.drawer-open #app header.rail.rail2 { transform: none; visibility: visible; transition: transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  /* A modal drawer (README 80; shell.js drawerInert): the page behind holds still, it slides out as it slid in, and its close
     button is a cross on the logo's row */
  html#v8.drawer-open { overflow: hidden; }
  #v8 #app .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 79; background: var(--v8-scrim); }
  #v8 #app .drawer-scrim[hidden] { display: none; }
  #v8 #app header.rail.rail2 .nav-item.drawer-x { display: grid !important; place-items: center; position: absolute; top: 32px; right: 16px; width: 36px !important; height: 36px !important; padding: 0 !important; }
  #v8 #app header.rail.rail2 .nav-item.drawer-x .lb { display: none; }
}
/* The phone's menu, the whole screen (README 142): white, no scrim, no shadow; the side menu's own items, icons and words, in its
   order (Search, Your insurance with Insights' and Policies' sub-pages, Your company, File a new claim, the person and her menu).
   Every row is 48 tall (the sub-pages, Search and File a new claim 44), so each is a full-width target well over 44; the chevrons
   that open a sub-list are 44 squares at the row's end. The close cross is a 44 square at the logo row's right, where a phone's
   top bar keeps its buttons. Type keeps the menu's sizes (no font-size here) */
@media (max-width: 639px) {
  #v8 #app header.rail.rail2 { width: 100%; max-width: none; box-shadow: none; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)) !important; }
  #v8 #app .drawer-scrim { display: none !important; }
  #v8 #app header.rail.rail2 .rail-head { min-height: 48px; margin: 0 0 8px; padding-left: 0; }
  #v8 #app header.rail.rail2 .nav-item.drawer-x { top: 10px; right: 12px; width: 44px !important; height: 44px !important; }
  #v8 #app header.rail.rail2 .nav-item.drawer-x svg.i { width: 24px !important; height: 24px !important; }
  html#v8 #app header.rail.rail2 .rail-search { height: 44px !important; margin-bottom: 16px !important; }
  html#v8 #app header.rail.rail2 .nav-item { height: 48px !important; }
  html#v8 #app header.rail.rail2 .nav-sub-a { height: 44px; }
  html#v8 #app header.rail.rail2 .nav-par > .nav-item { padding-right: 52px !important; }
  html#v8 #app header.rail.rail2 .nav-twist { top: 2px; right: 2px; width: 44px; height: 44px; border-radius: var(--v8-r-tag); }
  html#v8:is(:not([data-rail]), [data-rail]) #app header.rail.rail2 .rail-foot2 > a.rail-cta.btn { align-self: stretch !important; justify-self: stretch; width: 100% !important; height: 48px !important; }   /* the phone's full-width action, over base.css 3313's hugging width and scale-compact.css's 36 */
  html#v8 #app header.rail.rail2 .rail-search kbd { display: none; }   /* no keyboard shortcut to show on a phone */
  html#v8 #app header.rail.rail2 .rail-foot2 { position: static; margin: 16px 0 0 !important; padding: 0 !important; display: grid; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { #v8 #app header.rail.rail2 { transition: none !important; } }
