/* =====================================================================================================================
   needs: the first-time needs assessment, final (18 October 2026). Markup: ../../prototype/app/needs.js.
   Spec: ../../old/explore/needs/SPEC.md. Built on direction A ("Your business, mapped") with grafts from B and C.
   Components follow Fennia's library as ../../old/explore/needs/ds-components.md reads it: a chosen card is light green #E6FAE7 with a
   2px green edge (#2EAA4A on radio and illustration cards, #008A28 on checkbox cards); rest is white with a hairline; hover the
   double green hairline; keyboard focus the ring with a white gap; the blue info box #F2F5FF. Where v8 differs from Fennia, these
   rules follow Fennia, inside .nd-flow only. Type: 40/28/20/16/12 only, sizes and weights !important (base.css section 2), never
   inside a query. New to Fennia's library, said on the spec: the slider, the split bar, the drawn map.
   ===================================================================================================================== */

/* ---------- The frame: question left, the map right (one column below 1024, the map after the controls) ---------- */
#v8 #app .nd-flow .v8-fcol { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(16, auto) minmax(0, 1fr); column-gap: 64px; align-items: start; }
#v8 #app .nd-flow .v8-fcol > form, #v8 #app .nd-flow .v8-fbody { display: contents; }
#v8 #app .nd-flow .v8-fcol :is(.v8-ftitle, .v8-fline, .v8-ffoot),
#v8 #app .nd-flow .v8-fbody > * { grid-column: 1; min-width: 0; }
#v8 #app .nd-flow .v8-fbody > .nd-map { grid-column: 2; grid-row: 1 / -1; position: sticky; top: 96px; align-self: start; }
#v8 #app .nd-flow .v8-fbody > :first-child { margin-top: var(--v8-6); }
#v8 #app .nd-flow .v8-fbody > .nd-map:first-child { margin-top: 0; }
#v8 #app .nd-flow .v8-fbody > .nd-proto + .nd-map, #v8 #app .nd-flow .v8-fbody > .nd-react + .nd-map { margin-top: 0; }
/* The plan: the list wide, the price beside it */
#v8 #app .nd-plan .v8-fcol { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: 48px; }
#v8 #app .nd-plan .v8-fbody > .nd-plan-r { grid-column: 2; grid-row: 1 / -1; position: sticky; top: 96px; align-self: start; }
@media (max-width: 1023px) {
  #v8 #app .nd-flow .v8-fcol, #v8 #app .nd-plan .v8-fcol { display: block; }
  #v8 #app .nd-flow .v8-fbody { display: block; margin-top: var(--v8-6); }
  #v8 #app .nd-flow .v8-fbody > .nd-map, #v8 #app .nd-plan .v8-fbody > .nd-plan-r { position: static; margin-top: var(--v8-7); }
  #v8 #app .nd-flow .v8-fbody > :first-child { margin-top: 0; }
}

/* Buttons: Fennia's Medium 48 in the flow (v8 is 44); Back and Continue together, as Fennia's button group pairs them */
#v8 #app .nd-flow :is(.v8-fcol, .nd-sum) .v8-btn { min-height: 48px; padding: 0 32px; }
#v8 #app .nd-flow .v8-ffoot { justify-content: flex-start; }
#v8 #app .nd-flow .v8-ffoot > :only-child { margin-left: 0; }
@media (max-width: 1023px) { #v8 #app .nd-flow .v8-ffoot .v8-btn { padding: 0 20px; } }
@media (max-width: 479px) { #v8 #app .nd-flow .v8-ffoot .v8-btn { padding: 10px 16px; } }
#v8 #app .nd-flow .nd-ib { min-height: 44px; padding: 0; border: 0; background: none; color: #0052CC; font: inherit; font-weight: 700 !important; cursor: pointer; text-decoration: none; }
#v8 #app .nd-flow .nd-ib:hover { text-decoration: underline; text-underline-offset: 3px; }
#v8 #app .nd-flow .nd-ib:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; border-radius: 4px; box-shadow: var(--v8-focus-glow) !important; }

/* ---------- Type ---------- */
#v8 #app .nd-flow :is(.nd-h28) { font-size: var(--v8-fs-28) !important; line-height: var(--v8-lh-28) !important; font-weight: 700 !important; color: var(--v8-ink); }
#v8 #app .nd-flow :is(.nd-h20, .nd-map-t, .nd-risk-t) { font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; color: var(--v8-ink); }
#v8 #app .nd-flow :is(.nd-h16, .nd-legend, .nd-info-t) { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; color: var(--v8-ink); }
#v8 #app .nd-flow .nd-tx b, #v8 #app .nd-flow .nd-pl b, #v8 #app .nd-flow .nd-kv dd b, #v8 #app .nd-flow .nd-risk-c b, #v8 #app .nd-flow .nd-nn b { font-weight: 700 !important; }
#v8 #app .nd-flow .nd-f28 { display: block; font-size: var(--v8-fs-28) !important; line-height: var(--v8-lh-28) !important; font-weight: 400 !important; font-variant-numeric: tabular-nums; color: var(--v8-ink); }
#v8 #app .nd-flow .nd-lead { max-width: var(--v8-measure); color: var(--v8-ink); }
#v8 #app .nd-flow .nd-hint, #v8 #app .nd-flow .nd-sec-l, #v8 #app .nd-flow .nd-proto { color: var(--v8-ink-2); }
#v8 #app .nd-known-l { margin-top: var(--v8-1); color: var(--v8-ink-2); max-width: var(--v8-measure); }

/* ---------- Choice controls (Fennia's Components library) ---------- */
#v8 #app .nd-group { min-width: 0; margin: 0; padding: 0; border: 0; }
#v8 #app .nd-g1, #v8 #app .nd-stack { display: grid; gap: var(--v8-2); }
#v8 #app .nd-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v8-2); }
#v8 #app .nd-legend { margin-bottom: var(--v8-2); padding: 0; }
#v8 #app .nd-chips { margin-top: var(--v8-6); }

#v8 #app .nd-card { position: relative; display: flex; align-items: flex-start; gap: var(--v8-4); min-width: 0; padding: var(--v8-5); border-radius: var(--v8-r-sm); background: var(--v8-white); box-shadow: inset 0 0 0 1px #DDDDDD; color: var(--v8-ink); cursor: pointer; transition: box-shadow .12s ease-out, background-color .12s ease-out; }
#v8 #app :is(.nd-row, .nd-ck-card) { align-items: center; min-height: 56px; padding: var(--v8-4) var(--v8-5); box-shadow: inset 0 0 0 1px #8B8B8B; }
#v8 #app .nd-tx { display: grid; gap: var(--v8-1); min-width: 0; }
#v8 #app .nd-tx > span { color: var(--v8-ink-2); }
#v8 #app .nd-row .nd-tx > span { color: var(--v8-ink); }
/* Hover: 1px outside #008A28 + 1px inside #8ADC94; the fill doesn't change */
@media (hover: hover) {
  #v8 #app .nd-card:hover { box-shadow: 0 0 0 1px #008A28, inset 0 0 0 1px #8ADC94; }
  #v8 #app .nd-card:has(input:checked):hover { box-shadow: 0 0 0 1px #008A28, inset 0 0 0 2px #2EAA4A; }
  #v8 #app .nd-ck-card:has(input:checked):hover { box-shadow: 0 0 0 2px #008A28, inset 0 0 0 2px #8ADC94; }
}
/* Selected: the light green wash and a 2px edge (#2EAA4A on radio and illustration cards, #008A28 on checkbox cards) */
#v8 #app .nd-card:has(input:checked) { background: #E6FAE7; box-shadow: inset 0 0 0 2px #2EAA4A; }
#v8 #app .nd-ck-card:has(input:checked) { box-shadow: inset 0 0 0 2px #008A28; }
/* Keyboard focus: a 1px green edge, 2px white, a 1px #004C07 ring */
#v8 #app .nd-card:has(input:focus-visible) { box-shadow: inset 0 0 0 1px #008A28, 0 0 0 4px rgba(46, 170, 74, .28); }
#v8 #app .nd-card:has(input:checked:focus-visible) { box-shadow: inset 0 0 0 2px #2EAA4A, 0 0 0 4px rgba(46, 170, 74, .28); }
/* A ticked checkbox card keeps the checkbox card's #008A28 edge under keyboard focus */
#v8 #app .nd-ck-card:has(input:checked:focus-visible) { box-shadow: inset 0 0 0 2px #008A28, 0 0 0 4px rgba(46, 170, 74, .28); }
/* Error: 2px #D63D29 inside, the message under the group */
#v8 #app .nd-group.is-err .nd-card { box-shadow: inset 0 0 0 2px #D63D29; }
#v8 #app .nd-err { display: flex; align-items: flex-start; gap: var(--v8-2); margin-top: var(--v8-3); color: #D63D29; }
#v8 #app .nd-err svg.i { flex: none; width: 24px; height: 24px; }

/* The radio glyph: a 24 white circle with a 1px gray ring that never changes; chosen adds a 14 green dot */
#v8 #app .nd-rd { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; border: 0; border-radius: 50%; background: var(--v8-white); box-shadow: inset 0 0 0 1px #5E5E5E; appearance: none; -webkit-appearance: none; cursor: pointer; }
#v8 #app .nd-rd::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: transparent; }
#v8 #app .nd-rd:checked::before { background: #008A28; }
/* The card (or the box's own shadow ring, .nd-check) carries focus, so the input draws no outline of its own; !important because
   base.css's shared v8 focus outline is !important (18 October 2026: a focused checkbox card showed two rings) */
#v8 #app .nd-rd:focus-visible, #v8 #app .nd-cb:focus-visible { outline: none !important; }
/* The checkbox: 24, radius 4, 1px #8B8B8B; checked #008A28 with a white check; hover on checked #004C07 */
#v8 #app .nd-cb { flex: none; width: 24px; height: 24px; margin: 0; border: 0; border-radius: 4px; background: var(--v8-white) center / 18px 18px no-repeat; box-shadow: inset 0 0 0 1px #8B8B8B; appearance: none; -webkit-appearance: none; cursor: pointer; }
#v8 #app .nd-cb:checked { background-color: #008A28; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z' fill='%23fff'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 1px #008A28; }
@media (hover: hover) { #v8 #app .nd-cb:checked:hover, #v8 #app .nd-check:hover .nd-cb:checked { background-color: #004C07; box-shadow: inset 0 0 0 1px #004C07; } }
#v8 #app .nd-check { display: inline-flex; align-items: center; gap: var(--v8-4); min-height: 44px; cursor: pointer; }
#v8 #app .nd-check:has(.nd-cb:focus-visible) .nd-cb { box-shadow: inset 0 0 0 1px #008A28, 0 0 0 4px rgba(46, 170, 74, .28); }

/* InfoRadioButtons-icon: radio, 48 line icon, header and line */
#v8 #app .nd-ic-card .nd-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -12px; }
#v8 #app .nd-ic-card .nd-ic svg.i { width: 48px; height: 48px; color: var(--v8-ink); }
/* InfoRadioButtons-illustration: the art, the label, the radio at the top right */
#v8 #app .nd-art-card { flex-direction: column; gap: var(--v8-4); padding: var(--v8-5); }
#v8 #app .nd-art-card .nd-rd { position: absolute; top: var(--v8-4); right: var(--v8-4); }
#v8 #app .nd-art-card .nd-art img { display: block; width: 64px; height: 64px; }
@media (max-width: 479px) {
  #v8 #app .nd-g2 { grid-template-columns: minmax(0, 1fr); }
  /* The horizontal mobile layout (343 x 80): art, label, radio at the right */
  #v8 #app .nd-art-card { flex-direction: row; align-items: center; padding: var(--v8-4) 56px var(--v8-4) var(--v8-4); }
  #v8 #app .nd-art-card .nd-art img { width: 48px; height: 48px; }
  #v8 #app .nd-art-card .nd-rd { top: 50%; margin-top: -12px; }
  #v8 #app .nd-ic-card .nd-ic, #v8 #app .nd-ic-card .nd-ic svg.i { width: 24px; height: 24px; margin-top: 0; }
}

/* The info box: Fennia's Info variant. #F2F5FF, radius 8, padding 24 (16 on phones), no border, no icon */
#v8 #app .nd-info { max-width: var(--v8-measure); margin-top: var(--v8-5); padding: var(--v8-5); border-radius: var(--v8-r-sm); background: #F2F5FF; color: var(--v8-ink); }
#v8 #app .nd-info > p + p { margin-top: var(--v8-1); }
@media (max-width: 639px) { #v8 #app .nd-info { padding: var(--v8-4); } }

/* ---------- Fields: Fennia's Input field (56, padding 16 / 24, radius 8, 1px #8B8B8B) ---------- */
#v8 #app .nd-lbl { display: block; color: var(--v8-ink); }
#v8 #app .nd-in { box-sizing: border-box; width: 100%; height: 56px !important; padding: 16px 24px !important; border: 0 !important; border-radius: var(--v8-r-sm) !important; background: var(--v8-white); box-shadow: inset 0 0 0 1px #8B8B8B; color: var(--v8-ink); font: inherit; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; outline: none; }
@media (hover: hover) { #v8 #app .nd-in:hover { box-shadow: 0 0 0 1px #008A28, inset 0 0 0 1px #8ADC94; } }
#v8 #app .nd-in:focus { box-shadow: inset 0 0 0 2px #2EAA4A, 0 0 0 4px rgba(46, 170, 74, .28); }
#v8 #app .nd-field .nd-in { margin-top: var(--v8-2); }
#v8 #app .nd-field .nd-hint { margin-top: var(--v8-2); }

/* Amounts: the exact field and the slider (a slider is new to Fennia's library) */
#v8 #app .nd-amts { display: grid; gap: var(--v8-6); }
#v8 #app .nd-amts-2 { margin-top: var(--v8-6); }
#v8 #app .nd-amt-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--v8-2) var(--v8-4); }
#v8 #app .nd-amt-v { display: inline-flex; align-items: center; gap: var(--v8-2); }
#v8 #app .nd-in-n { width: 136px; text-align: right; font-variant-numeric: tabular-nums; }
#v8 #app .nd-range { display: block; width: 100%; height: 44px; margin: var(--v8-2) 0 0; accent-color: #008A28; cursor: pointer; }
#v8 #app .nd-range:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; border-radius: 4px; box-shadow: var(--v8-focus-glow) !important; }
#v8 #app .nd-amt .nd-hint { margin-top: var(--v8-1); }
#v8 #app .nd-est { color: var(--v8-ink-2); }

/* The reaction: one sentence that names what the answer changed */
#v8 #app .nd-react { display: flex; align-items: flex-start; gap: var(--v8-3); max-width: var(--v8-measure); margin-top: var(--v8-5); color: var(--v8-ink); }
#v8 #app .nd-react svg.i { flex: none; width: 24px; height: 24px; color: var(--v8-ink); }
#v8 #app .nd-react-0 { margin: 0; }
#v8 #app .nd-out .nd-check { margin-top: var(--v8-3); }

/* ---------- The map ---------- */
#v8 #app .nd-map { padding: var(--v8-6); border-radius: var(--v8-r); background: var(--v8-mint); color: var(--v8-ink); }
#v8 #app .nd-map-h p { margin-top: var(--v8-1); color: var(--v8-ink); }
#v8 #app .nd-map-t { color: var(--v8-deep) !important; }
#v8 #app .nd-scene { container-type: inline-size; margin-top: var(--v8-5); }
#v8 #app .nd-sc { position: relative; }
#v8 #app .nd-lines { position: absolute; inset: 0; display: none; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#v8 #app .nd-ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke: #B8EABB; }
#v8 #app .nd-ln.is-in { stroke: #2EAA4A; }
#v8 #app .nd-ln.is-gap, #v8 #app .nd-ln.is-out { stroke: #8C8C8C; }
#v8 #app .nd-ln.is-strong { stroke: #7A8500; }
#v8 #app .nd-ln.is-wait { stroke: #B8EABB; }
#v8 #app .nd-ln.is-none { stroke: none; }
#v8 #app .nd-ground { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 128px; }
#v8 #app .nd-place { position: relative; z-index: 1; display: grid; place-items: end center; width: 112px; height: 112px; }
#v8 #app .nd-place img { display: block; width: 112px; height: 112px; }
#v8 #app .nd-plot { display: grid; place-items: center; width: 100%; height: 56px; border-radius: 50% 50% 8px 8px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px #B8EABB; }
#v8 #app .nd-plot svg.i { width: 24px; height: 24px; color: var(--v8-ink-2); }
#v8 #app .nd-town { display: none; }
#v8 #app .nd-pins { display: grid; gap: var(--v8-2); margin-top: var(--v8-4); }
/* A pin: the disc and its two lines. A button (it explains the risk below): white row on phones, a marker on the wide map */
#v8 #app .nd-pin { display: flex; align-items: center; gap: var(--v8-3); width: 100%; min-height: 56px; padding: var(--v8-2) var(--v8-4) var(--v8-2) var(--v8-2); border: 0; border-radius: var(--v8-r-sm); background: rgba(255, 255, 255, .72); color: var(--v8-ink); font: inherit; text-align: left; cursor: pointer; }
#v8 #app .nd-pl { display: grid; min-width: 0; }
#v8 #app .nd-pl > span { color: var(--v8-ink-2); }
#v8 #app .nd-disc { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--v8-white); box-shadow: inset 0 0 0 2px #B8EABB; color: var(--v8-ink); transition: box-shadow .16s ease-out, background-color .16s ease-out; }
#v8 #app .nd-disc svg.i { width: 24px; height: 24px; }
#v8 #app .nd-ok { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--v8-green); color: var(--v8-white); box-shadow: 0 0 0 2px var(--v8-mint); }
#v8 #app .nd-ok svg.i { width: 14px; height: 14px; }
#v8 #app .is-in > .nd-disc { box-shadow: inset 0 0 0 2px #008A28; color: var(--v8-green); }
#v8 #app :is(.is-gap, .is-out) > .nd-disc { box-shadow: inset 0 0 0 2px #5E5E5E; }
#v8 #app .is-out > .nd-disc { background: var(--v8-gray); }
#v8 #app .is-strong > .nd-disc { background: var(--v8-lime); box-shadow: inset 0 0 0 2px #7A8500; }
#v8 #app :is(.is-wait, .is-none) > .nd-disc { background: rgba(255, 255, 255, .5); color: #8C8C8C; }
#v8 #app :is(.is-wait, .is-none) .nd-pl b { color: var(--v8-ink-2); }
#v8 #app .nd-pin.is-sel { box-shadow: inset 0 0 0 2px var(--v8-deep); background: var(--v8-white); }
@media (hover: hover) {
  #v8 #app button.nd-pin:hover { background: var(--v8-white); }
  #v8 #app button.nd-pin:hover .nd-pl b { text-decoration: underline; text-underline-offset: 3px; }
}
#v8 #app button.nd-pin:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
/* The wide map: her place in the middle, people on the left, the business's things on the right, joined by lines */
@container (min-width: 500px) {
  #v8 #app .nd-sc { height: 336px; }
  #v8 #app .nd-lines { display: block; }
  #v8 #app .nd-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 152px; }
  #v8 #app .nd-place { width: 152px; height: 152px; }
  #v8 #app .nd-place img { width: 152px; height: 152px; }
  #v8 #app .nd-plot { height: 72px; }
  #v8 #app .nd-town { position: absolute; bottom: 0; display: flex; gap: var(--v8-2); }
  #v8 #app .nd-town img { width: 56px; height: 56px; }
  #v8 #app .nd-town-l { left: 0; }
  #v8 #app .nd-town-r { right: 0; }
  #v8 #app .nd-pins { display: block; margin: 0; }
  #v8 #app .nd-pin-li { position: absolute; width: min(210px, 34%); }
  #v8 #app .nd-pin { min-height: 0; padding: var(--v8-1); background: transparent; }
  #v8 #app .nd-pin.is-sel { background: transparent; box-shadow: none; }
  #v8 #app .nd-pin.is-sel > .nd-disc { box-shadow: inset 0 0 0 2px #008A28, 0 0 0 3px var(--v8-mint), 0 0 0 5px var(--v8-deep); }
  #v8 #app .nd-pin.is-sel.is-strong > .nd-disc { box-shadow: inset 0 0 0 2px #7A8500, 0 0 0 3px var(--v8-mint), 0 0 0 5px var(--v8-deep); }
  #v8 #app .nd-pin.is-sel:is(.is-wait, .is-none, .is-gap, .is-out) > .nd-disc { box-shadow: inset 0 0 0 2px #8C8C8C, 0 0 0 3px var(--v8-mint), 0 0 0 5px var(--v8-deep); }
  /* The underline marks a pin she can click; on the decision step the pins are pictures (div), and the ring alone marks the risk */
  #v8 #app button.nd-pin.is-sel .nd-pl b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  @media (hover: hover) { #v8 #app button.nd-pin:hover { background: transparent; } #v8 #app button.nd-pin:hover > .nd-disc { background: var(--v8-hover); } }
  #v8 #app .nd-at-clients, #v8 #app .nd-at-you { left: 0; }
  #v8 #app .nd-at-clients .nd-pin, #v8 #app .nd-at-you .nd-pin { flex-direction: row-reverse; text-align: right; }
  #v8 #app .nd-at-clients .nd-pl, #v8 #app .nd-at-you .nd-pl { justify-items: end; }
  #v8 #app .nd-at-clients { top: 16px; }
  #v8 #app .nd-at-you { top: 128px; }
  #v8 #app :is(.nd-at-things, .nd-at-income, .nd-at-disputes) { right: 0; }
  #v8 #app .nd-at-things { top: 0; }
  #v8 #app .nd-at-income { top: 92px; }
  #v8 #app .nd-at-disputes { top: 184px; }
}
/* A pin that an answer just changed arrives (motion explains: this is what your answer did) */
#v8 #app .nd-pin.is-fresh > .nd-disc { animation: nd-arrive .32s var(--v8-ease) both, nd-ring 1.4s ease-out .32s both; }
@keyframes nd-arrive { from { transform: scale(.6); opacity: 0; } }
@keyframes nd-ring { from { box-shadow: inset 0 0 0 2px #008A28, 0 0 0 0 rgba(0, 138, 40, .35); } to { box-shadow: inset 0 0 0 2px #008A28, 0 0 0 14px rgba(0, 138, 40, 0); } }
@media (prefers-reduced-motion: reduce) { #v8 #app .nd-pin.is-fresh > .nd-disc { animation: none; } }
html[data-motion="off"]#v8 #app .nd-pin.is-fresh > .nd-disc { animation: none; }

/* The risk card under the map */
#v8 #app .nd-risk { margin-top: var(--v8-5); padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-white); }
#v8 #app .nd-risk-h { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v8-2) var(--v8-3); }
#v8 #app .nd-risk-x { margin-top: var(--v8-2); max-width: var(--v8-measure); }
#v8 #app .nd-risk-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v8-4); margin-top: var(--v8-5); }
#v8 #app .nd-risk-f > div > span { display: block; margin-top: var(--v8-1); color: var(--v8-ink-2); }
#v8 #app .nd-risk-c { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--v8-4); margin-top: var(--v8-5); padding-top: var(--v8-5); border-top: 1px solid var(--v8-line); }
#v8 #app .nd-risk-c img { display: block; width: 48px; height: 48px; }
#v8 #app .nd-risk-c > div { display: grid; gap: var(--v8-1); }
#v8 #app .nd-risk-c > div > span { color: var(--v8-ink-2); }
#v8 #app .nd-risk-c > :last-child { white-space: nowrap; }
@container (max-width: 420px) { #v8 #app .nd-risk-c { grid-template-columns: 48px minmax(0, 1fr); } #v8 #app .nd-risk-c > .v8-price, #v8 #app .nd-risk-c > :last-child:not(div) { grid-column: 2; } }
#v8 #app .nd-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--v8-2) var(--v8-4); margin-top: var(--v8-5); padding-top: var(--v8-4); border-top: 1px solid #B8EABB; }
#v8 #app .nd-map .nd-risk { container-type: inline-size; }

/* Tiers: the system's status, a mark and the word (V8.badge("tier", ...), base.css section 5, README 192); the old tag's dots are gone */

/* ---------- Start: what we already know (Fennia's section card: white, 1px #DDDDDD, radius 16, padding 32) ---------- */
#v8 #app .nd-known, #v8 #app .nd-recap { padding: var(--v8-6); border-radius: var(--v8-r); background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-line); }
#v8 #app .nd-recap { margin-top: var(--v8-6); }
#v8 #app .nd-kv { margin-top: var(--v8-4); }
#v8 #app .nd-kv > div { display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; gap: var(--v8-1) var(--v8-4); padding: var(--v8-3) 0; border-top: 1px solid var(--v8-line); }
#v8 #app .nd-kv > div:first-child { border-top: 0; padding-top: 0; }
#v8 #app .nd-kv dt { color: var(--v8-ink-2); }
#v8 #app .nd-kv dd { display: grid; gap: 2px; min-width: 0; }
#v8 #app .nd-kv dd > span { color: var(--v8-ink-2); }
#v8 #app .nd-kv-a { align-self: start; }
#v8 #app .nd-known-more { margin-top: var(--v8-4); }
#v8 #app .nd-sec .nd-kv { padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-gray); }
@media (max-width: 639px) {
  #v8 #app .nd-known, #v8 #app .nd-recap { padding: var(--v8-5); }
  #v8 #app .nd-kv > div { grid-template-columns: minmax(0, 1fr) auto; }
  #v8 #app .nd-kv dt { grid-column: 1 / -1; }
}

/* ---------- Work: search, the chosen kinds as Fennia's pills ---------- */
#v8 #app .nd-picked { margin-top: var(--v8-6); }
#v8 #app .nd-pills { display: flex; flex-wrap: wrap; gap: var(--v8-2); margin-top: var(--v8-2); }
#v8 #app .nd-pill { display: inline-flex; align-items: center; gap: var(--v8-1); min-height: 32px; padding: 0 0 0 var(--v8-3); border-radius: var(--v8-r-tag); background: #E6FAE7; box-shadow: inset 0 0 0 1px #2EAA4A; color: #00700B; }
#v8 #app .nd-pill-x { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px 0; border: 0; background: none; color: #00700B; cursor: pointer; }
#v8 #app .nd-pill-x svg.i { width: 20px; height: 20px; }
#v8 #app .nd-pill-x:focus-visible { outline: var(--v8-focus); outline-offset: -8px; border-radius: var(--v8-r-sm); box-shadow: var(--v8-focus-glow-in) !important; }
#v8 #app .nd-results { margin-top: var(--v8-6); }

/* ---------- Your needs ---------- */
#v8 #app .nd-needl { display: grid; gap: var(--v8-2); margin-top: var(--v8-4); }
/* Each need is a button that selects its pin: white with a hairline (gray would read as disabled), the words as a green link */
#v8 #app .nd-needb { display: flex; align-items: center; gap: var(--v8-3); width: 100%; min-height: 56px; padding: var(--v8-2) var(--v8-4) var(--v8-2) var(--v8-2); border: 0; border-radius: var(--v8-r-sm); background: var(--v8-white); box-shadow: inset 0 0 0 1px #DDDDDD; color: var(--v8-ink); font: inherit; text-align: left; cursor: pointer; }
#v8 #app .nd-needt { color: #00700B; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#v8 #app .nd-needb.is-sel { box-shadow: inset 0 0 0 2px var(--v8-deep); }
#v8 #app .nd-needb.is-sel .nd-needt { text-decoration-thickness: 2px; }
@media (hover: hover) { #v8 #app .nd-needb:hover { box-shadow: 0 0 0 1px #008A28, inset 0 0 0 1px #8ADC94; } #v8 #app .nd-needb:hover .nd-needt { color: #004C07; } }
#v8 #app .nd-needs-ch { margin-top: var(--v8-4); }
#v8 #app .nd-needs-ch .v8-link { min-height: 44px; }
#v8 #app .nd-needb:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
#v8 #app .nd-disc-s { width: 40px; height: 40px; box-shadow: inset 0 0 0 2px #008A28; color: var(--v8-green); }

/* ---------- The decision ---------- */
#v8 #app .nd-dec-sim { margin: var(--v8-5) 0 var(--v8-6); padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-white); box-shadow: inset 0 0 0 1px #DDDDDD; }
#v8 #app .nd-dec-sim .nd-wk { margin-top: var(--v8-6); padding-top: var(--v8-5); border-top: 1px solid var(--v8-line); }
#v8 #app .nd-remind { margin-top: var(--v8-4); }

/* ---------- The plan ---------- */
#v8 #app .nd-plan-l > .nd-map { margin-top: var(--v8-6); }
#v8 #app .nd-plan-l > .nd-info:first-child { margin-top: 0; }
#v8 #app .nd-sec { margin-top: var(--v8-9); }
#v8 #app .nd-sec-l { margin-top: var(--v8-3); }
#v8 #app .nd-pcs { display: grid; gap: var(--v8-4); margin-top: var(--v8-5); }
/* A plan item: Fennia's checkbox card (outline), drawn on the list item so "Show on the map" can sit inside it without nesting a
   button in the label. Rest: white, 1px #8B8B8B. Ticked: #E6FAE7 with 2px #008A28. Hover (only over the label, the clickable
   part): the double green hairline. Required by law: a plain section card, 1px #DDDDDD, no box */
#v8 #app .nd-pc { position: relative; padding: var(--v8-5); border-radius: var(--v8-r-sm); background: var(--v8-white); box-shadow: inset 0 0 0 1px #8B8B8B; transition: box-shadow .12s ease-out, background-color .12s ease-out; }
#v8 #app .nd-pc.is-fixed { box-shadow: inset 0 0 0 1px #DDDDDD; }
#v8 #app .nd-pc:has(.nd-cb:checked) { background: #E6FAE7; box-shadow: inset 0 0 0 2px #008A28; }
@media (hover: hover) {
  #v8 #app .nd-pc:has(label.nd-pc-b:hover) { box-shadow: 0 0 0 1px #008A28, inset 0 0 0 1px #8ADC94; }
  #v8 #app .nd-pc:has(.nd-cb:checked):has(label.nd-pc-b:hover) { box-shadow: 0 0 0 2px #008A28, inset 0 0 0 2px #8ADC94; }
}
#v8 #app .nd-pc:has(.nd-cb:focus-visible) { box-shadow: inset 0 0 0 1px #008A28, 0 0 0 4px rgba(46, 170, 74, .28); }
#v8 #app .nd-pc:has(.nd-cb:checked:focus-visible) { box-shadow: inset 0 0 0 2px #008A28, 0 0 0 4px rgba(46, 170, 74, .28); }
#v8 #app .nd-pc-b { display: grid; grid-template-columns: auto 48px minmax(0, 1fr) auto; align-items: start; gap: var(--v8-4); cursor: pointer; }
#v8 #app div.nd-pc-b { grid-template-columns: 48px minmax(0, 1fr) auto; cursor: default; }
#v8 #app .nd-pc-art img { display: block; width: 48px; height: 48px; }
#v8 #app .nd-pc-tx, #v8 #app .nd-pc-d { display: grid; min-width: 0; }
#v8 #app .nd-pc-n { font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; color: var(--v8-ink); }
#v8 #app .nd-pc-m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v8-2) var(--v8-3); margin-top: var(--v8-2); color: var(--v8-ink-2); }
#v8 #app .nd-pc-l { margin-top: var(--v8-3); color: var(--v8-ink); }
#v8 #app .nd-pc-w { margin-top: var(--v8-1); color: var(--v8-ink-2); max-width: var(--v8-measure); }
#v8 #app .nd-pc-case { margin-top: var(--v8-3); color: var(--v8-ink); max-width: var(--v8-measure); }
#v8 #app .nd-pc-case b { font-weight: 700 !important; }
#v8 #app .nd-pc-x { margin-top: var(--v8-3); color: var(--v8-ink-2); }
#v8 #app .nd-pc-p { white-space: nowrap; }
#v8 #app .nd-pc-f { margin: var(--v8-1) 0 0 calc(24px + 48px + 2 * var(--v8-4)); }
#v8 #app .nd-pc.is-fixed .nd-pc-f { margin-left: calc(48px + var(--v8-4)); }
#v8 #app .nd-pc-map { min-height: 44px; }
#v8 #app .nd-pc .nd-cb { margin-top: 12px; }
@media (max-width: 639px) {
  #v8 #app .nd-pc { padding: var(--v8-4); }
  #v8 #app .nd-pc-b { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--v8-3); }
  #v8 #app div.nd-pc-b { grid-template-columns: minmax(0, 1fr) auto; }
  #v8 #app .nd-pc-art { display: none; }
  #v8 #app .nd-pc .nd-cb { margin-top: 0; }
  #v8 #app .nd-pc-p { grid-column: 2 / -1; grid-row: 2; justify-self: start; }
  #v8 #app .nd-pc-f, #v8 #app .nd-pc.is-fixed .nd-pc-f { margin-left: calc(24px + var(--v8-3)); }
  #v8 #app .nd-pc.is-fixed .nd-pc-f { margin-left: 0; }
  #v8 #app div.nd-pc-b .nd-pc-p { grid-column: 1; }
}
#v8 #app .nd-nn { margin-top: var(--v8-5); }
#v8 #app .nd-nn li { display: grid; gap: var(--v8-1); padding: var(--v8-4) 0; border-top: 1px solid var(--v8-line); }
#v8 #app .nd-nn li:first-child { border-top: 0; padding-top: 0; }
#v8 #app .nd-nn li span { color: var(--v8-ink-2); max-width: var(--v8-measure); }
/* The price beside the plan */
#v8 #app .nd-sum { padding: var(--v8-6); border-radius: var(--v8-r); background: var(--v8-gray); }
#v8 #app .nd-sum-f b { font-size: var(--v8-fs-40) !important; line-height: var(--v8-lh-40) !important; font-weight: 400 !important; font-variant-numeric: tabular-nums; }
#v8 #app .nd-sum-l { margin-top: var(--v8-2); color: var(--v8-ink-2); }
#v8 #app .nd-sum-acts { display: grid; gap: var(--v8-3); margin-top: var(--v8-5); }
#v8 #app .nd-sum-acts .v8-btn { width: 100%; text-wrap: balance; }
#v8 #app .nd-sum-z { color: var(--v8-ink); font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; }
#v8 #app .nd-sum .nd-info { margin-top: var(--v8-5); background: #F2F5FF; }
#v8 #app .nd-sum-s { margin-top: var(--v8-4); }
#v8 #app .nd-sum-tel { margin-top: var(--v8-3); color: var(--v8-ink-2); text-align: center; }
/* What the plan pays in each everyday case (a small split bar per case) */
#v8 #app .nd-ifs { margin-top: var(--v8-5); padding-top: var(--v8-5); border-top: 1px solid #DDDDDD; }
#v8 #app .nd-ifl { display: grid; gap: var(--v8-4); margin-top: var(--v8-3); }
#v8 #app .nd-ifl p:first-child { color: var(--v8-ink); }
#v8 #app .nd-ifn { margin-top: var(--v8-1); color: var(--v8-ink-2); }
#v8 #app .nd-ifn b { font-weight: 700 !important; color: var(--v8-ink); }
#v8 #app .nd-sum-s .v8-link { min-height: 44px; }
@media (min-width: 1024px) { #v8 #app .nd-plan .nd-foot-offer { display: none; } }
/* Below 1024 the foot carries "Get this as an offer"; the panel keeps "Talk it through with an expert", so the phone line follows it */
@media (max-width: 1023px) { #v8 #app .nd-plan .nd-sum-acts .v8-btn-1 { display: none; } }

/* The start's facts: Fennia's read-only fields, two a row (the label, the value in Bold, where it came from) */
#v8 #app .nd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v8-5) var(--v8-6); margin-top: var(--v8-5); }
#v8 #app .nd-facts > div { display: grid; align-content: start; gap: 2px; min-width: 0; }
#v8 #app .nd-facts dt, #v8 #app .nd-facts .nd-src { color: var(--v8-ink-2); }
#v8 #app .nd-facts dd b { font-weight: 700 !important; }
#v8 #app .nd-facts .nd-kv-a { margin-top: var(--v8-1); }
@media (max-width: 479px) { #v8 #app .nd-facts { grid-template-columns: minmax(0, 1fr); } }
/* Before she says where she works, her place is a pale outline of one */
#v8 #app .nd-plot { display: block; width: 100%; height: 100%; border-radius: 0; background: none; box-shadow: none; }
#v8 #app .nd-ghost { opacity: .16; filter: grayscale(1); }

/* Phones: the map breathes less; on the plan the price comes first, under the title */
@media (max-width: 639px) { #v8 #app .nd-map { padding: var(--v8-5) var(--v8-4); } #v8 #app .nd-risk { padding: var(--v8-4); } }
@media (max-width: 1023px) {
  #v8 #app .nd-plan .v8-fbody { display: flex; flex-direction: column; }
  #v8 #app .nd-plan .v8-fbody > .nd-plan-r { order: -1; margin: 0 0 var(--v8-6); }
}

/* =====================================================================================================================
   The final's additions (grafts from B and C, and the judges' fixes)
   ===================================================================================================================== */

/* RadioButtons-default with a value at the end: the cost of a case, or the price of an amount */
#v8 #app .nd-row-e { justify-content: space-between; }
#v8 #app .nd-row-e .nd-tx { flex: 1 1 auto; }
#v8 #app .nd-row-v { flex: none; font-variant-numeric: tabular-nums; color: var(--v8-ink); white-space: nowrap; }
#v8 #app .nd-g-gap { margin-top: var(--v8-6); }
/* How much business interruption pays at most, under 480: the price goes under the label (in line with it, past the radio), so
   "10.000 €, about 2½ months" keeps to one or two lines */
@media (max-width: 479px) {
  #v8 #app .nd-g-bi .nd-row-e { flex-wrap: wrap; row-gap: var(--v8-1); }
  #v8 #app .nd-g-bi .nd-row-e .nd-tx { flex: 1 1 0; }
  #v8 #app .nd-g-bi .nd-row-v { flex-basis: 100%; padding-left: calc(24px + var(--v8-4)); }
}

/* What she'd pay herself: the 28 figure, then two bars on one scale. The data colours (18 October 2026, explore/charts/SPEC.md
   row 11): what Fennia pays in --v8-data-base, what she pays herself in the hatch (#5E5E5E diagonals on white, a 1 px #5E5E5E
   edge), parted by 2 px of the ground; no track behind the bar, so it ends where the case's cost ends. Charts never use the greens */
#v8 #app .nd-sim { margin-top: var(--v8-5); }
#v8 #app .nd-big { display: grid; gap: var(--v8-1); }
#v8 #app .nd-big > span { color: var(--v8-ink-2); max-width: var(--v8-measure); }
#v8 #app .nd-bars { display: grid; gap: var(--v8-4); margin-top: var(--v8-5); }
#v8 #app .nd-bar-h { display: flex; justify-content: space-between; gap: var(--v8-4); }
#v8 #app .nd-bar-h b { font-weight: 700 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
#v8 #app .nd-tk { display: flex; gap: 2px; height: 16px; margin-top: var(--v8-2); }
#v8 #app .nd-tk-s { height: 12px; margin-top: var(--v8-1); }
#v8 #app .nd-tk i { display: block; flex: 0 1 auto; min-width: 4px; height: 100%; border-radius: 4px; transition: width .32s var(--v8-ease); }
#v8 #app i.nd-pays { background: var(--v8-data-base); }
#v8 #app i.nd-you {
  background: var(--v8-data-left), var(--v8-data-gap);
  box-shadow: inset 0 0 0 1px var(--v8-data-edge);
}
#v8 #app .nd-bar-l { margin-top: var(--v8-2); color: var(--v8-ink-2); }
#v8 #app .nd-key { display: flex; flex-wrap: wrap; gap: var(--v8-2) var(--v8-5); margin-top: var(--v8-4); color: var(--v8-ink-2); }
#v8 #app .nd-key span { display: inline-flex; align-items: center; gap: var(--v8-2); }
#v8 #app .nd-key i { display: block; flex: none; width: 24px; height: 12px; border-radius: 3px; }
/* The paying colour's swatch is 12 square, as the system's key (base.css .v8-sw); the hatch's stays 24 so its lines can be read */
#v8 #app .nd-key i.nd-pays { width: 12px; }
/* The plan's key, under "If something happens" */
#v8 #app .nd-ifs .nd-key { margin-top: var(--v8-2); }
@media (forced-colors: active) {
  #v8 #app i.nd-pays { background: CanvasText; forced-color-adjust: none; }
  #v8 #app i.nd-you { background: repeating-linear-gradient(-45deg, CanvasText 0 1.5px, Canvas 1.5px 5px); box-shadow: inset 0 0 0 1px CanvasText; forced-color-adjust: none; }
}
@media (prefers-reduced-motion: reduce) { #v8 #app .nd-tk i { transition: none; } }
html[data-motion="off"]#v8 #app .nd-tk i { transition: none; }

/* "Try it with your own numbers": a disclosure (a text button with a chevron) */
#v8 #app .nd-try { margin-top: var(--v8-4); }
#v8 #app .nd-try-b { display: inline-flex; align-items: center; gap: var(--v8-2); min-height: 44px; padding: 0; border: 0; background: none; color: #00700B; font: inherit; font-weight: 700 !important; cursor: pointer; }
#v8 #app .nd-try-b svg.i { width: 24px; height: 24px; }
@media (hover: hover) { #v8 #app .nd-try-b:hover span { text-decoration: underline; text-underline-offset: 3px; } }
#v8 #app .nd-try-b:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; border-radius: 4px; box-shadow: var(--v8-focus-glow) !important; }
#v8 #app .nd-try-c { margin-top: var(--v8-3); }
#v8 #app .nd-try-c[hidden] { display: none; }

/* The accident card's fix */
#v8 #app .nd-allow { margin-top: var(--v8-4); }

/* Amounts: the estimate badge, and the honest way out */
#v8 #app .nd-around { margin-left: var(--v8-2); }   /* on the label's baseline (README 192) */
#v8 #app .nd-dk { margin-top: var(--v8-3); }
#v8 #app .nd-dk .v8-link { min-height: 44px; }
#v8 #app .nd-in-w { width: 96px; }

/* Below 1024 a question step shows the pin that just changed and the plan so far, not the whole map (it opens on request) */
#v8 #app .nd-strip { display: none; }
@media (max-width: 1023px) {
  #v8 #app .nd-strip { display: grid; gap: var(--v8-3); margin-top: var(--v8-5); padding: var(--v8-4); border-radius: var(--v8-r); background: var(--v8-mint); }
  #v8 #app .nd-map-q { display: none; }
  #v8 #app .nd-map-q.is-open { display: block; margin-top: var(--v8-4); }
  #v8 #app .nd-q .v8-fbody > .nd-strip { margin-top: var(--v8-5); }
}
#v8 #app .nd-strip-pin { display: flex; align-items: center; gap: var(--v8-3); }
#v8 #app .nd-strip-t b { font-weight: 700 !important; }
#v8 #app .nd-strip-b { min-height: 44px; }

/* The narrow map (its container under 500): still drawn. Her place at the foot, the five pins in an arc over it, the short name
   under each disc; the state is said to screen readers and in the risk card below */
#v8 #app .nd-pl-s { display: none; }
@container (max-width: 499px) {
  #v8 #app .nd-sc { height: 236px; }
  #v8 #app .nd-lines { display: block; }
  #v8 #app .nd-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; }
  #v8 #app .nd-place { width: 96px; height: 96px; }
  #v8 #app .nd-place img { width: 96px; height: 96px; }
  #v8 #app .nd-pins { display: block; margin: 0; }
  #v8 #app .nd-pin-li { position: absolute; width: 20%; }
  #v8 #app .nd-pin { flex-direction: column; gap: var(--v8-1); min-height: 0; padding: var(--v8-1) 0; background: transparent; text-align: center; }
  #v8 #app .nd-pin.is-sel { background: transparent; box-shadow: none; }
  #v8 #app .nd-pin.is-sel > .nd-disc { box-shadow: inset 0 0 0 2px #008A28, 0 0 0 3px var(--v8-mint), 0 0 0 5px var(--v8-deep); }
  #v8 #app .nd-pin.is-sel:is(.is-wait, .is-none, .is-gap, .is-out) > .nd-disc { box-shadow: inset 0 0 0 2px #8C8C8C, 0 0 0 3px var(--v8-mint), 0 0 0 5px var(--v8-deep); }
  #v8 #app .nd-pin.is-sel.is-strong > .nd-disc { box-shadow: inset 0 0 0 2px #7A8500, 0 0 0 3px var(--v8-mint), 0 0 0 5px var(--v8-deep); }
  #v8 #app button.nd-pin.is-sel .nd-pl-s { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  #v8 #app .nd-pl { justify-items: center; }
  #v8 #app .nd-pl > span, #v8 #app .nd-pl-l { display: none; }
  #v8 #app .nd-pl-s { display: block; }
  #v8 #app .nd-at-clients { left: 0; top: 96px; }
  #v8 #app .nd-at-you { left: 20%; top: 28px; }
  #v8 #app .nd-at-things { left: 40%; top: 0; }
  #v8 #app .nd-at-income { left: 60%; top: 28px; }
  #v8 #app .nd-at-disputes { left: 80%; top: 96px; }
  #v8 #app .nd-town { display: none; }
  @media (hover: hover) { #v8 #app button.nd-pin:hover { background: transparent; } #v8 #app button.nd-pin:hover > .nd-disc { background: var(--v8-hover); } }
}
/* Under a 360 map (320 phones; round G review: labels ran into the neighbouring discs and a check badge sat on the next pin): a
   taller scene and a steeper arc, so each pin's label sits clear of its neighbours' discs, and the check badge tucks into the ring */
@container (max-width: 359px) {
  #v8 #app .nd-sc { height: 304px; }
  #v8 #app .nd-at-clients { top: 164px; }
  #v8 #app .nd-at-you { top: 82px; }
  #v8 #app .nd-at-income { top: 82px; }
  #v8 #app .nd-at-disputes { top: 164px; }
  #v8 #app .nd-ok { top: -2px; right: -2px; width: 18px; height: 18px; }
}

/* The start: a wider question column, so the facts don't wrap and "That's right. Start" is in the first screen at 1440 x 900 */
#v8 #app .nd-facts .nd-kv-a { display: flex; flex-wrap: wrap; gap: 0 var(--v8-4); }
#v8 #app .nd-facts .nd-kv-a .v8-link { display: inline-flex; align-items: center; min-height: 44px; }
#v8 #app .nd-facts { gap: var(--v8-4) var(--v8-5); }   /* 24 between the two facts (round G review), so Change and Add other work share a row and "That's right. Start" stays in a 1440 x 900 screen */
#v8 #app .nd-facts .nd-fact-w { grid-column: 1 / -1; }
#v8 #app .nd-dec-sim > .nd-sim { margin-top: 0; }
#v8 #app div.nd-pin { cursor: default; }

/* =====================================================================================================================
   The review's fixes (18 October 2026, late)
   ===================================================================================================================== */

/* The work search is Fennia's Input field too: components.css styles every #app input[type="search"] as fin.ai's sand field with
   !important, so the field's own look is restated here with !important. No browser clear button (it isn't Fennia's) */
#v8 #app input.nd-in { min-height: 56px; border: 0 !important; border-radius: var(--v8-r-sm) !important; background: var(--v8-white) !important; box-shadow: inset 0 0 0 1px #8B8B8B !important; outline: none !important; -webkit-appearance: none; appearance: none; }
@media (hover: hover) { #v8 #app input.nd-in:hover { box-shadow: 0 0 0 1px #008A28, inset 0 0 0 1px #8ADC94 !important; } }
#v8 #app input.nd-in:focus { box-shadow: inset 0 0 0 2px #2EAA4A, 0 0 0 4px rgba(46, 170, 74, .28) !important; }
#v8 #app input.nd-search::-webkit-search-cancel-button, #v8 #app input.nd-search::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
/* An amount she hasn't given: the field's error edge */
#v8 #app .nd-amt.is-err input.nd-in { box-shadow: inset 0 0 0 2px #D63D29 !important; }
#v8 #app .nd-amt.is-err input.nd-in:focus { box-shadow: inset 0 0 0 2px #D63D29, 0 0 0 4px rgba(46, 170, 74, .28) !important; }
#v8 #app .nd-amt .nd-err { margin-top: var(--v8-2); }

/* The place cards' art never shrinks when a label wraps, so every label starts on one line */
#v8 #app .nd-art-card .nd-art { flex: none; }
#v8 #app .nd-art-card .nd-art img { max-width: none; }

/* The map's head carries the plan so far (it was under the risk card, below the first screen at 1440) */
#v8 #app .nd-map { container-type: inline-size; }
#v8 #app .nd-map-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--v8-3) var(--v8-5); }
#v8 #app .nd-map-h > div { flex: 1 1 240px; min-width: 0; }
#v8 #app .nd-map-h .nd-total { flex: 0 1 auto; display: grid; justify-items: start; gap: 2px; margin: 0; padding: var(--v8-2) var(--v8-4); border: 0; border-radius: var(--v8-r-sm); background: var(--v8-white); text-align: left; }
/* The figure first in ink, what it is under it in gray (round G review) */
#v8 #app .nd-map-h .nd-total > span:last-child { color: var(--v8-ink-2); }
#v8 #app .nd-map-h .nd-total { min-width: 0; max-width: 100%; }
#v8 #app .nd-total .v8-price, #v8 #app .nd-strip-t { white-space: normal; overflow-wrap: anywhere; }
@container (max-width: 559px) { #v8 #app .nd-map-h .nd-total { flex-basis: 100%; justify-items: start; text-align: left; } }

/* The pins open their risk card, so their names look like links at rest: Fennia's green, underlined (thicker when chosen) */
#v8 #app button.nd-pin .nd-pl :is(.nd-pl-l, .nd-pl-s) { color: #00700B; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#v8 #app button.nd-pin.is-sel .nd-pl :is(.nd-pl-l, .nd-pl-s) { text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) { #v8 #app button.nd-pin:hover .nd-pl :is(.nd-pl-l, .nd-pl-s) { color: #004C07; } }

/* The short risk card's way into the figures */
#v8 #app .nd-risk-more { margin-top: var(--v8-3); }
#v8 #app .nd-risk:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
#v8 #app .nd-risk:focus:not(:focus-visible) { outline: none; }

/* The decision: the two cards first, the figures behind "Try it with your own numbers" */
#v8 #app .nd-dec .nd-group { margin-top: var(--v8-5); }
#v8 #app .nd-dec-try { margin-top: var(--v8-5); }
#v8 #app .nd-dec-try .nd-dec-sim { margin: var(--v8-3) 0 0; }
#v8 #app .nd-dec-try .nd-dec-sim[hidden] { display: none; }

/* Targets are 44 high everywhere: the Change links and the phone line */
#v8 #app .nd-kv-a .v8-link, #v8 #app .nd-sum-tel a { display: inline-flex; align-items: center; min-height: 44px; }

/* Phones and tablets: on the plan, the list of what she gets comes before the map; the map, then what we assumed, follow */
@media (max-width: 1023px) {
  #v8 #app .nd-plan-l { display: flex; flex-direction: column; }
  #v8 #app .nd-plan-l > .nd-map { order: 1; margin-top: var(--v8-9); }
  #v8 #app .nd-plan-l > .nd-sec-end { order: 2; }
}

/* =====================================================================================================================
   Round G (19 October 2026): the reference study's items 10 to 15 (../../old/explore/a reference/STUDY.md section 3)
   ===================================================================================================================== */


/* The risk card, left to right: the level, the figure (and the bars), the need. Two columns from a 460 card (the need under
   them), three from 760 (the plan's wide map), one column below 460 */
#v8 #app .nd-rk { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v8-5); margin-top: var(--v8-5); }
#v8 #app .nd-rk-1 { margin-top: var(--v8-4); }
#v8 #app .nd-rk .nd-sim { margin-top: 0; }
#v8 #app .nd-rk-need { display: grid; gap: var(--v8-3); padding-top: var(--v8-5); border-top: 1px solid var(--v8-line); }
#v8 #app .nd-rk-need > p { max-width: var(--v8-measure); color: var(--v8-ink); }
#v8 #app .nd-rk-pol { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--v8-4); }
#v8 #app .nd-rk-pol img { display: block; width: 48px; height: 48px; }
#v8 #app .nd-rk-pol b { font-weight: 700 !important; color: var(--v8-ink); }
#v8 #app .nd-rk-pol > :last-child:not(b) { white-space: nowrap; }
#v8 #app .nd-rk-go .v8-link { display: inline-flex; align-items: center; min-height: 44px; }
/* From a 520 card the level and the figure sit side by side (the meter at its own width), the need under them; with the bars open,
   the figure takes the full width under the level. From 860 (never on today's maps) the need joins them as a third column */
@container (min-width: 520px) {
  #v8 #app .nd-rk:not(.is-full):not(.nd-rk-1) { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); grid-template-areas: "lv fig" "need need"; column-gap: var(--v8-6); }
  #v8 #app .nd-rk-lv { grid-area: lv; max-width: 320px; }
  #v8 #app .nd-rk-fig { grid-area: fig; }
  #v8 #app .nd-rk-need { grid-area: need; }
  #v8 #app .nd-rk.is-full { grid-template-areas: "lv" "fig" "need"; }
}
@container (min-width: 860px) {
  #v8 #app .nd-rk:not(.is-full):not(.nd-rk-1) { grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "lv fig need"; }
  #v8 #app .nd-rk:not(.is-full) .nd-rk-need { align-content: start; padding: 0 0 0 var(--v8-6); border-top: 0; box-shadow: inset 1px 0 0 var(--v8-line); }
}
@container (max-width: 359px) { #v8 #app .nd-rk-pol { grid-template-columns: 48px minmax(0, 1fr); } #v8 #app .nd-rk-pol > :last-child:not(b) { grid-column: 2; } }

/* The plan's numbers: on the card before its name, in the pin's disc on the map (a number and a word, never colour alone) */
#v8 #app .nd-no { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-right: var(--v8-2); padding: 0 6px; border-radius: 999px; background: var(--v8-deep); color: var(--v8-white); font-size: var(--v8-fs-16) !important; line-height: 1 !important; font-weight: 700 !important; vertical-align: 2px; font-variant-numeric: tabular-nums; }
#v8 #app .nd-no-d { font-size: var(--v8-fs-20) !important; line-height: 1 !important; font-weight: 700 !important; color: var(--v8-white); font-variant-numeric: tabular-nums; }
/* One look for the plan's numbers (round G review): the pin's disc is filled #004C07 with the number in white, as on the cards */
#v8 #app .nd-pin.has-no > .nd-disc { background: var(--v8-deep); box-shadow: inset 0 0 0 2px var(--v8-deep); }

/* Covered elsewhere: the pin's ring dashed (it's covered, not by us), the line dashed; its tier is the check (V8.badge, README 192) */
#v8 #app .is-else > .nd-disc { box-shadow: none; outline: 2px dashed #008A28; outline-offset: -2px; color: var(--v8-green); }
#v8 #app .nd-ln.is-else { stroke: #2EAA4A; stroke-dasharray: 4 6; }
#v8 #app .nd-el li { grid-template-columns: 48px minmax(0, 1fr); align-items: center; column-gap: var(--v8-4); }
#v8 #app .nd-el-a img { display: block; width: 48px; height: 48px; }
#v8 #app .nd-el-t { display: grid; gap: var(--v8-1); }
#v8 #app .nd-el-ch { margin-top: var(--v8-2); }
#v8 #app .nd-el-ch .v8-link { display: inline-flex; align-items: center; min-height: 44px; }

/* The start's promise (round G review, 18 October 2026: three gray cards stacked in the 460 column and pushed "That's right. Start"
   below a 1440 x 900 screen): three compact rows, the icon, the topic in Bold, its line under it, no card. Three columns from a
   520 column */
#v8 #app .nd-prom-w { container-type: inline-size; }
#v8 #app .nd-prom { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v8-2); }
#v8 #app .nd-prom li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--v8-3); row-gap: 0; align-items: start; }
#v8 #app .nd-prom-i { grid-row: 1 / span 2; color: var(--v8-deep); }
#v8 #app .nd-prom-i svg.i { display: block; width: 24px; height: 24px; }
#v8 #app .nd-prom-t { font-weight: 700 !important; color: var(--v8-ink); }
#v8 #app .nd-prom li > span:last-child { color: var(--v8-ink-2); }
@container (min-width: 520px) {
  #v8 #app .nd-prom { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v8-5); }
}
#v8 #app .nd-prom-n { max-width: var(--v8-measure); margin: var(--v8-4) 0 var(--v8-5); color: var(--v8-ink); }

/* The start's facts: the value first, its label and source under it */
#v8 #app .nd-facts > div > dd:first-of-type { order: -1; }

/* Did we get this right?: three traits first (the art, her answer in Bold, Change), then the needs */
#v8 #app .nd-needs { container-type: inline-size; }
#v8 #app .nd-traits { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v8-2); margin-bottom: var(--v8-6); }
#v8 #app .nd-trait { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; column-gap: var(--v8-4); padding: var(--v8-3) var(--v8-4); border-radius: var(--v8-r); background: var(--v8-gray); }
#v8 #app .nd-trait img { grid-row: 1 / span 2; display: block; width: 48px; height: 48px; }
#v8 #app .nd-trait b { font-weight: 700 !important; color: var(--v8-ink); }
#v8 #app .nd-trait > span { grid-column: 2; color: var(--v8-ink-2); }
#v8 #app .nd-trait .v8-link { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; min-height: 44px; }
/* A trait with no line under it centres on its art */
@container (max-width: 599px) { #v8 #app .nd-trait:not(:has(> span)) > b { grid-row: 1 / span 2; } }
/* Three across only from a 600 column (round G review: at 1440 the 460 column made three 146 px tiles with four-line words), so
   every width today shows the rows */
@container (min-width: 600px) {
  #v8 #app .nd-traits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v8-3); }
  #v8 #app .nd-trait { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-items: start; row-gap: var(--v8-2); padding: var(--v8-5) var(--v8-5) var(--v8-2); }
  #v8 #app .nd-trait img { grid-row: auto; width: 64px; height: 64px; }
  #v8 #app .nd-trait > span, #v8 #app .nd-trait .v8-link { grid-column: 1; grid-row: auto; }
  #v8 #app .nd-trait .v8-link { align-self: end; justify-self: start; }
}
/* What you told us: her answer first, the question's name under it, Change beside them, at every width */
#v8 #app .nd-kv.nd-kv-vf > div { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "v a" "l a"; row-gap: 2px; }
#v8 #app .nd-kv.nd-kv-vf dd:not(.nd-kv-a) { grid-area: v; }
#v8 #app .nd-kv.nd-kv-vf dt { grid-area: l; grid-column: auto; }
#v8 #app .nd-kv.nd-kv-vf .nd-kv-a { grid-area: a; align-self: center; }

/* "I don't know" and "I'd rather not say": a checkbox card under the amounts, the same weight as an answer */
#v8 #app .nd-dk-t { margin-top: var(--v8-4); }

/* Do you already have business insurance?: Yes opens the follow-up in place */
#v8 #app .nd-follow { margin-top: var(--v8-6); }
#v8 #app .nd-follow > .nd-group + .nd-group, #v8 #app .nd-follow > .nd-err + .nd-group { margin-top: var(--v8-6); }
#v8 #app .nd-legend-h { margin: calc(-1 * var(--v8-1)) 0 var(--v8-3); }

/* The plan's fourth exit */
#v8 #app .nd-sum-s2 { margin-top: 0; }

/* The start in one 1440 x 900 screen (round G review, 18 October 2026: the promise rows pushed "That's right. Start" below the
   fold): the facts card a step tighter on this page only */
#v8 #app .nd-start .nd-known { padding: var(--v8-5); }
#v8 #app .nd-start .nd-known .nd-facts { margin-top: var(--v8-4); }
#v8 #app .nd-start .v8-ffoot { margin-top: var(--v8-5); }
#v8 #app .nd-start .nd-prom-n { margin-bottom: var(--v8-4); }
