/* ===== v101 · the Dashboard, direction B (3 Oct 2026) — _research/2026-10-main-ui/01-study.md mock B · BRIEF.md DB1–DB15 ·
   _research/2026-10-design-system/01-study.md §4/§5 (D1–D4 approved): one hairline, cards with ONE 8% edge, floating things with ring + shadow,
   impact and type neutral, big numbers in text colour with a small direction arrow, the chart palette c1–c6 (no red or green), no box in a box.
   v103 (iteration 2, FIX-it2.md DF-D): the v2 tokens moved to :root (styles/v103-tokens.css) so every page has these card edges; nothing is cut — rows
   wrap to two or three lines; one left edge per card on the card system (22 padding · the rule at +15 · row text at +23 · one title column for the
   three loop cards); 48px card headers; one 36px leading slot in the rail; the rail stacks under the loop column when the content is narrow. Focus
   rings are the shared ones (styles/v103-a11y.css) — this file draws none of its own. ===== */

/* ---------- the page ---------- */
.db-b{padding:22px var(--page-x,32px) 64px;gap:0;color:var(--text-1)}   /* v106: no 1280 cap — the page frame's width (linear.css .page) */
.db-b .lk{color:var(--accent-text)}
.db-b .lbl.tint.gray{background:var(--st-gray-bg);color:var(--st-gray-fg)}
/* a card: the site's card exactly (styles/v103-tokens.css) — the 8% hairline, the surface, 18px */
.db-card{background:var(--lvl-0);border:1px solid var(--bd-tl);border-radius:var(--r-card,18px);box-shadow:var(--sh-tiny);min-width:0}
.db-b>.alert-line,.db-b>.preview-line{margin:0 0 16px}
.db-b .st-strip,.db-b>.ob-strip{margin-bottom:16px}

/* header: the greeting + one sentence, the four loop counters */
.db-hd{display:grid;grid-template-columns:minmax(380px,1fr) minmax(0,auto);gap:24px;align-items:end;margin:0 0 20px}   /* loop fix (visual · 1440): the greeting keeps ≥ 380px — a long tile line never squeezes it into a 207px column */
.db-hl{min-width:0}
.db-hl h1{margin:0}
.db-hl h1:focus{outline:none}
.db-brief{margin:6px 0 0;max-width:740px;font-size:var(--t-body);line-height:var(--lh-body);color:var(--text-2);text-wrap:pretty}
.db-brief b{color:var(--text-1);font-weight:600}
.db-since{color:var(--text-1);font-weight:500}
.db-bl{color:inherit;text-decoration:none;border-bottom:1px solid var(--line-strong)}
@media (hover:hover){.db-bl:hover{color:var(--text-1);border-bottom-color:var(--text-3)}}
.db-bl.is-q{color:var(--text-3)}
/* "Mark as seen" and the brief's share link: text buttons with a 24px target (DF-A D4) */
.db-seen::after{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:24px;transform:translateY(-50%)}
@media (hover:hover){.db-seen:hover{color:var(--text-1)}}
.db-ag{margin:6px 0 0;font-size:var(--t-meta);line-height:var(--lh-meta);color:var(--text-3)}
.db-ag svg{display:inline-block;vertical-align:-2px;margin-right:6px}
/* the counters: one strip at the card radius (18), equal columns */
.db-ctrs{display:grid;grid-template-columns:repeat(4,minmax(124px,190px));background:var(--lvl-0);border:1px solid var(--bd-tl);border-radius:var(--r-card,18px);box-shadow:var(--sh-tiny);overflow:hidden}
.db-ctr{display:grid;grid-template-rows:auto 28px auto;row-gap:2px;align-content:start;padding:11px 16px 12px;min-width:0;color:var(--text-1);text-decoration:none;border-left:1px solid var(--line)}
.db-ctr:first-child{border-left:0}
@media (hover:hover){.db-ctr:hover{background:var(--hover)}}
.db-ck,.db-cs{font-size:var(--t-sh);line-height:var(--lh-sh);color:var(--text-3)}
.db-cs{text-wrap:balance}
.db-ck{font-weight:500}
.db-cv{display:flex;align-items:center;gap:6px;font-size:22px;line-height:28px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.db-of{font-size:13px;font-weight:500;color:var(--text-3);letter-spacing:0}
.db-ctr.is-hot .db-cv{color:var(--st-orange-fg)}
.db-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex:none;background:var(--st-green);box-shadow:0 0 0 3px var(--st-green-bg)}
.db-dot.is-orange{background:var(--st-orange);box-shadow:0 0 0 3px var(--st-orange-bg)}
.db-dot.is-gray{background:var(--text-3);box-shadow:none}
.db-dot.is-hollow{background:transparent;box-shadow:inset 0 0 0 1.5px var(--text-3)}

/* the overview card: the numbers as a list beside one chart */
.db-ov{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:336px;position:relative}
.db-ml{border-right:1px solid var(--line);padding:8px;display:flex;flex-direction:column;gap:1px;min-width:0}
.db-mr{position:relative}
.db-mr.has-why{z-index:41}
.db-mb{display:grid;grid-template-columns:minmax(0,1fr) 64px;grid-template-rows:auto auto auto;column-gap:10px;align-items:start;width:100%;padding:8px 10px 9px;border:0;border-radius:var(--r-8,8px);background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
@media (hover:hover){.db-mb:hover{background:var(--hover)}}
.db-mr.is-on .db-mb{background:var(--well)}
:root[data-theme="dark"] .db-mr.is-on .db-mb{background:var(--fill-2)}
.db-kr.is-kf{outline:2px solid var(--ring,var(--accent));outline-offset:-2px}
/* nothing is cut: the label, the scope and the range word wrap (DF2) */
.db-mn{grid-column:1;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3);display:flex;align-items:baseline;gap:5px;min-width:0;text-wrap:pretty}
.db-mn svg{flex:none;align-self:center}
.db-mr.is-on .db-mn{color:var(--text-2);font-weight:500}
.db-sw{display:inline-block;width:10px;height:2px;border-radius:1px;flex:none;align-self:center}
.db-mv{grid-column:1;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;margin-top:1px;min-width:0}
.db-mv b{font-size:var(--t-num2);line-height:var(--lh-num2);font-weight:var(--w-semibold);letter-spacing:var(--ls-num2);font-variant-numeric:tabular-nums;color:var(--text-1)}   /* D03: a secondary number 20/26 */
.db-md{display:inline-flex;align-items:center;gap:1px;font-size:var(--t-meta);line-height:var(--lh-sh);font-weight:600;color:var(--text-3);font-variant-numeric:tabular-nums}
.db-md.is-neg,.db-dir.is-neg{color:var(--neg-2)}
.db-md.is-pos,.db-dir.is-pos{color:var(--pos-2)}
.db-md .db-dir svg{width:12px;height:12px}
.db-mw{grid-column:1;font-size:var(--t-sh);line-height:var(--lh-sh);color:var(--text-3);text-wrap:pretty}
.db-mw.is-out{color:var(--text-2);font-weight:500}
.db-pt{color:var(--st-orange-fg)}
.db-spk{grid-column:2;grid-row:1/4;align-self:center;width:64px;height:28px;display:block;overflow:visible}   /* D12: 28px — its value and direction are said in words beside it */
/* "Why?" sits over the sparkline on hover or focus — never on top of the words. Oct 7 review (D10): an action button, so 8px corners and the
   28px row-button height, not a 24px capsule */
.db-why{position:absolute;top:50%;right:10px;transform:translateY(-50%);height:var(--h-sm);min-width:48px;padding:0 9px;border:0;border-radius:var(--r-ctl);background:var(--surface-2);box-shadow:0 0 0 1px var(--line-strong);font:inherit;font-size:var(--t-sh);line-height:var(--h-sm);font-weight:600;color:var(--text-2);cursor:pointer;opacity:0;transition:opacity var(--dur-1) var(--ease-out)}
.db-mr:hover .db-why,.db-mr:focus-within .db-why,.db-mr.is-kf .db-why,.db-mr.has-why .db-why{opacity:1}
@media (hover:hover){.db-why:hover{color:var(--text-1);box-shadow:0 0 0 1px var(--text-3)}}
.db-why:focus-visible{opacity:1}
.db-pinh{padding:8px 10px 2px;font-size:var(--t-sh);line-height:var(--lh-sh);font-weight:500;color:var(--text-3);border-top:1px solid var(--line);margin-top:4px}
.db-mr.is-pin .db-mn svg{color:var(--text-3)}
.db-cp{position:relative;padding:14px 18px 12px;min-width:0;display:flex;flex-direction:column}
/* v106: the chart fills its card's height (the numbers' list sets it) — it grew wide with the full-width page; every mark is placed in % */
.db-cp > .chart{flex:1 1 auto}
.db-cp > .chart > .chart-body{flex:1 1 auto;grid-template-rows:minmax(var(--ch),1fr) 20px}
/* the chart header: the name, then the tools — they wrap under it rather than leave the card (DF-D 2) */
.db-ch{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-height:28px}
.db-ch h2{margin:0;font-size:var(--t-hl);line-height:var(--lh-hl);font-weight:600}
.db-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;min-width:0}
.db-tools .db-cust{width:28px;height:28px}
.db-home{font-size:12px;white-space:nowrap}
.db-cp .chart{margin-top:8px}
.db-i{width:24px;height:24px;color:var(--text-3)}
/* empty states inside a card are one calm line: no dashed box, no icon circle (DF-D 9) */
.db-b .chart-empty{border:0;background:none;min-height:200px}
.db-b .empty-ic{background:none;box-shadow:none;color:var(--text-3)}

/* the chart, the Dashboard's way (§5.7): grid at 6%, dashed markers in --line-strong, the usual range in a fill, quiet lines grey, the 7-day average
   as the one line and each day as a faint dot (DF8) */
.db-b .chart-svg .grid{stroke:var(--grid);stroke-dasharray:none}
.db-b .chart-svg .annot{stroke:var(--line-strong);opacity:1;stroke-dasharray:3 3}
.db-b .chart-plot{border-bottom-color:var(--line)}
.db-b .chart-svg .line{stroke-width:2}
.chart-svg .yband{fill:var(--fill-2)}
.chart-svg .yline{stroke:var(--text-2,var(--fg-2));stroke-width:1.5;stroke-dasharray:5 4;opacity:.8}
.ch-dot{position:absolute;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:var(--chart-dot);pointer-events:none;z-index:1}
.db-b .annot-n{background:var(--surface-1);box-shadow:0 0 0 1px var(--line-strong);border-color:transparent;color:var(--text-2)}
.db-b .annot-n::after{content:"";position:absolute;inset:-4px}
.db-b .annot-n.is-holiday{border-style:dashed;color:var(--text-3)}
.db-b .annot-n.is-general{border-style:dashed;border-color:var(--chart-quiet);box-shadow:none;color:var(--text-3)}   /* the Changes builder (7 Oct): general events stay dashed here too */
.db-b .annot-n.is-note{border:1.5px solid var(--text-3);box-shadow:none;background:var(--surface-1);color:var(--text-2)}
.db-b .chart-endl span{color:var(--text-2)}
.ccol.is-day{cursor:pointer}
.tip-a.is-hint{color:var(--fg-3);font-size:var(--t-sh);margin-top:4px}
.chart.can-range .chart-plot{cursor:crosshair}
.chart-sel{position:absolute;top:0;bottom:0;background:var(--accent-tint);box-shadow:inset 1px 0 0 var(--accent),inset -1px 0 0 var(--accent);pointer-events:none;z-index:3}
.annot-n[hidden],.chart-ev[hidden],.chart-ev li[hidden]{display:none!important}
.chart-evh{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:6px;padding-left:54px;font-size:var(--t-meta);line-height:var(--lh-sh);color:var(--text-3,var(--fg-3))}
.ch-fold,.ch-mk-b{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 6px;margin:0 -6px;border:0;border-radius:var(--r-6,6px);background:none;font:inherit;color:inherit;cursor:pointer}
@media (hover:hover){.ch-fold:hover,.ch-mk-b:hover{color:var(--text-1,var(--fg));background:var(--hover)}}
.ch-fold[aria-expanded="true"] .ch-cv{transform:rotate(180deg)}
.ch-cv{display:inline-block;font-size:10px;transition:transform var(--dur-1) var(--ease-out)}
.ch-mk{position:relative}
.ch-mk-pop{position:absolute;left:-6px;top:28px;z-index:30;min-width:180px;padding:4px;background:var(--surface-2,var(--elev));border-radius:var(--r-12,12px);box-shadow:var(--ring-2,var(--sh-med))}
.ch-mk-pop[hidden]{display:none}
.ch-mk-i{display:flex;align-items:center;gap:8px;width:100%;height:28px;padding:0 8px;border:0;border-radius:var(--r-8,8px);background:none;font:inherit;font-size:13px;color:var(--text-1,var(--fg));text-align:left;cursor:pointer}
@media (hover:hover){.ch-mk-i:hover{background:var(--fill-1,var(--bg-4))}}
.ch-mk-ck{width:14px;height:14px;border-radius:4px;box-shadow:inset 0 0 0 1.5px var(--line-strong,var(--bd-2));flex:none;display:grid;place-items:center}
.ch-mk-i.is-on .ch-mk-ck{background:var(--accent);box-shadow:none}
.ch-mk-i.is-on .ch-mk-ck::after{content:"";width:7px;height:4px;border:2px solid var(--on-fill);border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.db-b .chart-ev{margin-top:6px;padding-left:54px}
.chart-evh .db-home{margin-left:auto;display:inline-flex;align-items:center;gap:2px;font-size:12px;color:var(--text-3);white-space:nowrap}
@media (hover:hover){.chart-evh .db-home:hover{color:var(--text-1)}}

/* "Why did this move?" — 380px, ring + shadow (level 2), at once (no typing animation). On a number it opens BESIDE the number, with a caret (DF-D 10) */
.wy-pop{position:absolute;z-index:40;width:380px;max-width:calc(100vw - 32px);background:var(--surface-2,var(--elev));border-radius:var(--r-12,12px);box-shadow:var(--ring-2,var(--sh-high));padding:14px 16px 12px;color:var(--text-1,var(--fg));text-align:left;cursor:auto}
.db-wy.is-tile{top:-4px;left:calc(100% + 12px)}
.db-wy.is-tile::before{content:"";position:absolute;left:-6px;top:22px;width:11px;height:11px;background:inherit;transform:rotate(45deg);box-shadow:-1px 1px 0 0 var(--line-strong)}
.db-wy.is-day{top:50px;right:18px}
.db-wy.is-card{top:calc(100% - 6px);right:auto;left:136px}
.db-wy.is-card::before{content:"";position:absolute;left:24px;top:-6px;width:11px;height:11px;background:inherit;transform:rotate(45deg);box-shadow:-1px -1px 0 0 var(--line-strong)}
.wy-h{display:flex;align-items:center;gap:6px;color:var(--text-2)}
.wy-h h3{margin:0;font-size:var(--t-hl);line-height:var(--lh-hl);font-weight:600;color:var(--text-1)}
.wy-x{margin-left:auto;width:24px;height:24px;color:var(--text-3)}
.wy-q{font-weight:600;color:var(--text-1);font-variant-numeric:tabular-nums}
/* the three buttons on one line */
.wy-btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.wy-btns .btn{padding:0 8px;gap:4px;white-space:nowrap;font-size:12px}
.wy-lk{color:var(--accent-text);text-decoration:none}
@media (hover:hover){.wy-lk:hover{text-decoration:underline;text-underline-offset:2px}}
.wy-src{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 2px;margin:8px 0 0;font-size:var(--t-sh);line-height:var(--lh-sh);color:var(--text-3)}
.wy-wrong{margin-left:auto;font:inherit;font-size:var(--t-sh);color:var(--text-3);background:none;border:0;padding:0 0 0 8px;cursor:pointer;text-decoration:underline dotted;text-underline-offset:2px}
@media (hover:hover){.wy-wrong:hover{color:var(--text-1)}}

/* ---------- the loop column and the context rail — one card system: 22 padding, the rule at +15, row text at +23 ---------- */
.db-grid{display:grid;grid-template-columns:minmax(0,1fr) 384px;gap:16px;margin-top:16px;align-items:start}   /* v106: the loop column grows; the rail (Goals · Running for you · Coming up) keeps its width */
.db-main,.db-rail{display:flex;flex-direction:column;gap:16px;min-width:0}
.db-list{padding:0 22px 4px;position:relative}
/* the card header: 48px, the title 13/600, the rule from +15 to the far +15 */
.db-lh{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;min-height:48px;padding:13px 8px;margin:0 -8px;border-bottom:1px solid var(--line)}
.db-lh h2{margin:0;font-size:var(--t-hl);line-height:var(--lh-hl);font-weight:600;letter-spacing:0;white-space:nowrap}
.db-lm{font-size:var(--t-meta);line-height:var(--lh-sh);color:var(--text-3);min-width:0;text-wrap:pretty}
.db-lh .grow{flex:1 1 0;min-width:0}
.db-lh .db-lm{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}   /* loop fix (round 1): the sub-line shrinks — the header's link stays on its line */
.db-lh .more{display:inline-flex;align-items:center;gap:2px;flex:none;font-size:12px;color:var(--text-3);white-space:nowrap}
@media (hover:hover){.db-lh .more:hover{color:var(--text-1)}}
/* the rows bleed 8px for their hover, so their rules start where the header's does */
.db-list>.db-kr{margin:0 -8px;padding-left:8px;padding-right:8px;border-radius:var(--r-8,8px)}
.db-list>.db-kr+.db-kr,.db-list>.db-sheet+.db-kr,.db-list>.db-inv+.db-kr{border-top:1px solid var(--line);border-radius:0}
.db-cz{color:var(--text-1);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
@media (hover:hover){.db-cz:hover{text-decoration-color:var(--text-3)}}
.db-ro{color:var(--text-2);white-space:nowrap}
.db-seen.is-in{font-size:inherit;color:var(--text-1);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.db-tail{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:0 -8px;width:calc(100% + 16px);padding:10px 8px 10px;border:0;border-top:1px solid var(--line);background:none;font:inherit;font-size:var(--t-meta);line-height:var(--lh-meta);color:var(--text-3);text-align:left;text-decoration:none;cursor:pointer}
p.db-tail{cursor:auto;display:block}
@media (hover:hover){a.db-tail:hover,button.db-tail:hover{color:var(--text-1)}}
.db-tail .lk{color:var(--text-2)}
.db-oth{display:flex;align-items:flex-start;gap:6px;margin:0 -8px;padding:10px 8px;border-top:1px solid var(--line);font-size:var(--t-meta);line-height:var(--lh-meta);color:var(--text-3)}
.db-oth svg{flex:none;margin-top:2px}
.db-empty{padding:14px 0}
.db-empty.is-sm{margin:0;padding:12px 0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3)}
.db-new{display:inline-block;height:18px;padding:0 5px;border-radius:4px;background:var(--st-blue-bg);color:var(--st-blue-fg);font-size:var(--t-sh);line-height:18px;font-weight:600;letter-spacing:.02em;flex:none}   /* Oct 7 review (D03): a badge is 12px, never 10 */
.db-mk{font-size:var(--t-sh);color:var(--text-3);white-space:nowrap}

/* the three loop cards share ONE grid: a 112px lead · the title column (never under 220px) · the side — so every title starts at one x */
.db-ir,.db-nr,.db-rr{display:grid;grid-template-columns:132px minmax(220px,1fr) auto;column-gap:16px;align-items:start;padding-top:12px;padding-bottom:12px;position:relative}

/* What changed: investigation rows — the number, why, one evidence line, the state (no Approve here: Needs you owns it) */
.db-ir{min-height:96px}
.db-in{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;padding:4px 6px;margin:-4px -6px;border:0;border-radius:var(--r-8,8px);background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
@media (hover:hover){.db-in:hover{background:var(--hover)}}
.db-in b{display:inline-flex;align-items:center;gap:3px;font-size:var(--t-num2);line-height:var(--lh-num2);font-weight:var(--w-semibold);letter-spacing:var(--ls-num2);white-space:nowrap;color:var(--text-1);font-variant-numeric:tabular-nums}
.db-in span{display:block;font-size:var(--t-sh);line-height:var(--lh-sh);color:var(--text-3);text-wrap:pretty}
.db-in .db-win{color:var(--text-2)}
.db-it{min-width:0;max-width:880px}   /* v106: a readable line in the wide loop column (≈ 130 characters), the status stays at the row's end */
.db-ih{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;min-width:0}
.db-tt{font-weight:600;line-height:var(--lh-body);color:var(--text-1);text-decoration:none;min-width:0;text-wrap:pretty}
@media (hover:hover){.db-tt:hover{text-decoration:underline;text-underline-offset:2px}}
.db-iw,.db-im{margin:3px 0 0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-2);text-wrap:pretty}
.db-iw em{font-style:normal;color:var(--text-1);font-weight:500;margin-right:2px}
.db-im{color:var(--text-3)}
.db-im b{color:var(--text-1);font-weight:600}
/* loop fix (round 1 · visual): a figure never breaks inside itself — "≈ $9–10K a month", "≈ $6K–$30K" stay on one line */
.db-im b,.db-b .stake-line b,.db-fv-l b,.db-gs b{white-space:nowrap}
.db-ic{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:0}
.db-imp{display:inline-flex;align-items:center;gap:5px;color:var(--text-2);font-size:var(--t-meta);line-height:var(--lh-meta);font-weight:500}
/* one waiting rule (lib/state.js waitOf · Settings' days): grey, orange once reminded, red only when overdue */
.db-wait{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 7px;border-radius:var(--r-full);background:var(--st-gray-bg);color:var(--st-gray-fg);font-size:var(--t-sh);font-weight:500;white-space:nowrap}
.db-wait.is-over{background:var(--st-orange-bg);color:var(--st-orange-fg)}
.db-wait.is-late{background:var(--st-red-bg);color:var(--st-red-fg)}
.db-prog{font-size:12px;color:var(--text-3);white-space:nowrap}
.db-sheet{padding:0 0 14px}
.db-inv{padding:0 0 14px 128px}

/* Needs you · Results */
.db-nr{min-height:56px;align-items:center;grid-template-columns:28px minmax(220px,1fr) auto}   /* loop fix (round 1 · density): the lead holds 12px bars or a 14px icon, never a word — the title gets the width */
.db-nci{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;color:var(--text-3)}
.db-nr.is-warn .db-nci{color:var(--st-orange-fg)}
.db-rm-sp{display:inline-block;flex:none}
.db-nc{justify-self:start;min-width:0;padding-top:1px}
.db-nt{display:flex;flex-direction:column;min-width:0;max-width:880px}
.db-na{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;font-weight:500;line-height:var(--lh-body);min-width:0}
.db-tl{color:var(--text-1);text-decoration:none;text-wrap:pretty}
@media (hover:hover){.db-tl:hover{text-decoration:underline;text-underline-offset:2px}}
.db-nu{margin-top:2px;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3);text-wrap:pretty}
.db-nk{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px}
.db-nb{display:flex;align-items:center;gap:4px}
.db-rc{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:var(--r-full);box-shadow:inset 0 0 0 1px var(--line-strong);font-size:var(--t-sh);font-weight:500;color:var(--text-3)}
.db-nr.is-warn .db-rc{box-shadow:none;background:var(--st-orange-bg);color:var(--st-orange-fg)}
.db-late{color:var(--st-red-fg)}
.db-rm{width:28px;height:28px;color:var(--text-3)}
.db-rr{grid-template-columns:112px minmax(220px,1fr) auto 52px;align-items:center;min-height:56px}
.db-rv{justify-self:start}
.db-re{text-align:right;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.db-rd{text-align:right;font-size:12px;color:var(--text-3);font-variant-numeric:tabular-nums;white-space:nowrap}

/* the rail: ONE 36px leading slot (a ring, a rule's icon, a date tile), so every rail line starts at one x */
.db-gr,.db-rl,.db-cr{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:12px;align-items:center;padding-top:10px;padding-bottom:10px;color:inherit;text-decoration:none}
@media (hover:hover){.db-gr:hover,.db-rl:hover,.db-cr:hover{background:var(--hover)}}
.db-lead{grid-column:1;grid-row:1/4;width:36px;display:grid;place-items:center;align-self:start}
.db-gt{display:flex;flex-direction:column;min-width:0;grid-column:2/4}
.db-gn{font-weight:500;line-height:var(--lh-body);text-wrap:pretty}
.db-gs{font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3)}
.db-gs b{color:var(--text-1);font-weight:600}
.db-gw{font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-2);font-weight:500}
.db-gw.is-miss{color:var(--st-orange-fg)}
.db-rl{grid-template-columns:36px minmax(0,1fr);grid-template-areas:"ic nm" "ic sb" "ic ck";row-gap:2px}
.db-ri{grid-area:ic;color:var(--text-3);height:20px}
.db-rn{grid-area:nm;display:flex;align-items:flex-start;gap:7px;font-weight:500;line-height:var(--lh-body);min-width:0}
.db-rn > .db-dot{flex:none;margin-top:calc((var(--lh-body) - 6px) / 2)}   /* loop fix (round 1): a wrapped name keeps its dot on its first line */
.db-rnt{min-width:0;text-wrap:pretty}
.db-rs{grid-area:sb;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3);min-width:0;text-wrap:pretty}
.db-rl.is-orange .db-rs{color:var(--st-orange-fg)}
.db-rk{grid-area:ck;justify-self:start;display:flex;align-items:center;gap:6px;margin-top:4px}
/* a time is not a state: the run chips are neutral (DF-D 6) */
.db-b .rl-cd,.db-b .rl-cd.is-soon,.db-b .rl-cd.is-late{background:var(--fill-1);color:var(--text-2)}
.db-jobs{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:6px}
.db-jobs svg{margin-top:1px}
.db-cr{align-items:start}
.db-dt{height:36px;border-radius:var(--r-8,8px);background:var(--fill-1);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
.db-dt span{font-size:var(--t-sh);line-height:14px;font-weight:500;color:var(--text-3)}   /* Oct 7 review (D03): the day is 12px in its own case ("Today", "Tmrw", "Fri") — 10px capitals were the smallest text on the page */
.db-dt b{font-size:15px;line-height:18px;font-weight:600;color:var(--text-1);font-variant-numeric:tabular-nums}
.db-ce{grid-column:2/4;display:flex;flex-direction:column;min-width:0;padding-top:1px}
.db-cet{font-size:var(--t-body);line-height:var(--lh-body);color:var(--text-1);text-wrap:pretty}
.db-cs2{font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3)}

/* the footer: the promise once, the sources, what Dottpace knows */
.db-ft{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:24px;font-size:var(--t-meta);line-height:var(--lh-meta);color:var(--text-3)}
.db-lock{display:inline-flex;align-items:center;gap:6px}
.db-ft .src-line{margin:0}
.db-know{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0;border:0;background:none;font:inherit;color:var(--text-3);cursor:pointer}
@media (hover:hover){.db-know:hover{color:var(--text-1)}}
.db-b.is-client .db-rm,.db-b.is-client .db-cust{display:none}

/* the change-marker panel (DB5) — floats over the page (level 3); one motion on the page is the ring's, so the panel appears without sliding */
.mk-scrim{position:fixed;inset:0;z-index:700;background:var(--scrim-soft);animation:dp-fade var(--dur-2) var(--ease-out)}
.mk-panel{position:fixed;top:0;right:0;bottom:0;width:min(420px,92vw);display:flex;flex-direction:column;background:var(--surface-2);box-shadow:var(--ring-2);color:var(--text-1);font-family:var(--font);font-size:13px;line-height:18px;animation:dp-slide var(--dur-3) var(--ease-out)}
.mk-hd{display:flex;align-items:flex-start;gap:8px;padding:16px 16px 12px 20px;border-bottom:1px solid var(--line)}
.mk-k{margin:0;font-size:12px;color:var(--text-3)}
.mk-hd h2{margin:2px 0 0;font-size:15px;line-height:20px;font-weight:600}
.mk-b{flex:1;overflow:auto;padding:4px 20px 12px}
.mk-s h3{margin:14px 0 6px;font-size:12px;line-height:16px;font-weight:600;color:var(--text-3)}
.mk-s p{margin:0 0 4px;color:var(--text-2)}
.mk-s b{color:var(--text-1)}
.mk-ba span{display:block;margin-top:2px}
.mk-m{font-size:12px;color:var(--text-3)!important}
.mk-mv{display:flex;align-items:baseline;gap:6px}
.mk-mv .sw{width:10px;height:2px;border-radius:1px;flex:none;transform:translateY(-3px)}
.mk-f{display:flex;align-items:center;gap:8px;padding:12px 20px;border-top:1px solid var(--line)}
.mk-panel .lk{color:var(--accent-text)}

/* sheets: Tell me when…, the jobs, Choose the numbers, What Dottpace knows */
.al-f{border:0;margin:0 0 14px;padding:0;min-width:0}
.al-f legend{padding:0;margin:0 0 6px;font-size:12px;font-weight:600;color:var(--text-3)}
.al-r{display:flex;align-items:flex-start;gap:8px;padding:6px 0;cursor:pointer;flex-wrap:nowrap}
.al-r input{margin:2px 0 0;accent-color:var(--accent)}
.al-rt{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}   /* loop fix (round 1): the radio stays beside its label, never alone on a line */
.al-rt b{font-weight:500}
.al-rt span{font-size:12px;color:var(--text-3)}
.al-v{display:flex;align-items:center;gap:6px;flex-basis:100%;padding-left:22px;font-size:12px;color:var(--text-3)}
.al-v input{width:88px}
.al-seg,.al-cs{display:flex;flex-wrap:wrap;gap:6px 14px}
.al-sg{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:0;border-radius:var(--r-full);background:var(--surface-1);box-shadow:inset 0 0 0 1px var(--line-strong);font:inherit;font-size:12px;font-weight:500;color:var(--text-2);cursor:pointer;white-space:nowrap}
.al-sg.is-on{background:var(--accent-tint);box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent-text)}
.al-sg[disabled]{opacity:.45;cursor:not-allowed}
.al-c{display:inline-flex;align-items:center;gap:6px}
.al-c input{accent-color:var(--accent)}
.al-note{display:flex;gap:6px;margin:4px 0 0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3)}
.al-note svg{flex:none;margin-top:2px}
.jb-l{list-style:none;margin:0;padding:0}
.jb-r{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.jb-r:first-child{border-top:0;padding-top:4px}
.jb-ic{color:var(--text-3);margin-top:1px}
.jb-h{display:flex;align-items:center;gap:8px}
.jb-d{display:grid;grid-template-columns:64px minmax(0,1fr);gap:2px 10px;margin:6px 0 0;font-size:var(--t-co);line-height:var(--lh-co)}
.jb-d dt{color:var(--text-3)}
.jb-d dd{margin:0;color:var(--text-2)}
.jb-log{margin:6px 0 0;padding:0 0 0 14px;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3)}
.ct-c{margin:0 0 6px;font-size:12px;color:var(--text-3)}
.ct-l{list-style:none;margin:0;padding:0}
.ct-r{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.ct-s{display:block;font-size:var(--t-sh);color:var(--text-3)}
.mm-g{margin:0 0 12px}
.mm-g h3{margin:0 0 4px;font-size:12px;line-height:16px;font-weight:600;color:var(--text-3)}
.mm-g.is-wait{padding:8px 12px;border-radius:var(--r-12,12px);background:var(--well)}
.mm-l{list-style:none;margin:0;padding:0}
.mm-r{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.mm-r:first-child{border-top:0}
.mm-r .stg-in{flex:1}
.mm-t{margin:0;font-size:13px;line-height:18px}
.mm-s{margin:2px 0 0;font-size:var(--t-sh);line-height:var(--lh-sh);color:var(--text-3)}
.mm-add{display:flex;gap:8px;margin-top:8px}
.mm-add .stg-in{flex:1}
.mm-n{font-size:12px;color:var(--text-3)}
.mp-t{width:100%;resize:vertical;min-height:72px}

/* ---------- reflow, on the CONTENT width (styles/v103-a11y.css: the scroller is the container `pg`) — nothing leaves its card at 1100, 1024 or 390 ---------- */
/* the counters go under the greeting */
@container pg (max-width:1180px){.db-hd{grid-template-columns:minmax(0,1fr);gap:14px}.db-brief{max-width:760px}.db-ctrs{width:100%}.db-grid{grid-template-columns:minmax(0,1fr) 336px}}
/* the rail stacks under the loop column (≈ a 1180px window with the sidebar open) — its cards side by side while there is room */
@container pg (max-width:940px){.db-grid{grid-template-columns:minmax(0,1fr)}.db-rail{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:start}}
@container pg (max-width:860px){.db-ov{grid-template-columns:248px minmax(0,1fr)}}
/* one column: the numbers above the chart as a grid of tiles */
@container pg (max-width:760px){.db-b{padding:18px 16px 48px}
  .db-ov{grid-template-columns:minmax(0,1fr)}
  .db-ml{border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:2px}
  .db-ml .db-pinh{grid-column:1/-1}
  .db-mb{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto 32px}
  .db-spk{grid-column:1;grid-row:4;align-self:end;width:100%;height:28px}
  .db-why{top:8px;right:8px;transform:none}
  .db-mn{padding-right:0}   /* loop fix (C6): the Why? pill sits beside the sparkline now (below) — the label keeps the tile's width */
  .db-ctrs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .db-ctr:nth-child(3){border-left:0}.db-ctr:nth-child(n+3){border-top:1px solid var(--line)}
  .db-wy,.db-wy.is-card,.db-wy.is-tile,.db-wy.is-day{position:fixed;left:16px;right:16px;top:auto;bottom:16px;width:auto;max-width:none;max-height:70vh;overflow:auto}
  .db-wy::before{display:none}
  .wy-btns{flex-wrap:wrap}
  .db-inv{padding-left:0}}
/* the loop rows: the lead and the side on the first line, the words full width under them */
@container pg (max-width:600px){
  .db-ir,.db-nr,.db-rr{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"lead side" "body body";row-gap:8px}
  .db-in,.db-nc,.db-rv{grid-area:lead}.db-it,.db-nr>.db-nt,.db-rr>.db-nt{grid-area:body}.db-ic,.db-nk{grid-area:side}
  .db-rr .db-re{grid-area:side}.db-rd{display:none}
  .db-list{padding-left:16px;padding-right:16px}
  .db-ml{grid-template-columns:repeat(2,minmax(0,1fr))}
  .db-ctr{padding:10px 12px}
  /* a narrow chart labels every other day mark — the first and the last always */
  /* D12 (7 Oct): on a phone every chart labels the first and the last day and every third mark between — never two marks touching */
  .chart-x span:not(.first):not(.last):is(:not(:nth-child(3n+1)),:nth-last-child(2),:nth-last-child(3)){display:none}}

/* ---------- #/investigate/<id> (DB8) and #/ai/digest (DB11): the card kit — 22 padding, the rule at +15, text at +23 (DF-A D5) ---------- */
.iv-page,.dg-page{max-width:980px;gap:16px}
.iv-page > .sec.panel.pt-card,.iv-mainc > .sec.panel.pt-card{padding-left:22px;padding-right:22px;margin-top:0}
/* loop fix (visual · 1920): a change's or a finding's investigation uses the detail pages' width — the case beside a "This investigation" rail */
.iv-page.has-rail{max-width:none}
.iv-mainc{display:flex;flex-direction:column;gap:16px;min-width:0}
.iv-page .sec.panel.pt-card > .sec-hd{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}
.dgp-s{padding:0 22px 4px}
/* LF-C's case cards inside the investigate page take the same kit numbers (they drew 26 / +27 / +27 / +60) and their titles wrap at 390 */
.iv-page .iv-case .sec.panel{padding-left:22px;padding-right:22px}
.iv-page .iv-case .sec.panel > .sec-hd{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}
.iv-page .sec-hd h2{white-space:normal;min-width:0}
/* 24px targets (DF-A D4): the text buttons in the brief, the chart's change list */
.db-seen{position:relative;font:inherit;font-size:12px;color:var(--text-3);background:none;border:0;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px;padding:2px 0}
.db-b .chart-ev .ce-i,.iv-page .chart-ev .ce-i{min-height:24px}
.iv-page .annot-n::after{content:"";position:absolute;inset:-4px}
.iv-hd{margin:0 0 4px}
.iv-back{display:inline-flex;align-items:center;gap:2px;min-height:24px;font-size:12px;color:var(--text-3);margin:0 0 6px}
@media (hover:hover){.iv-back:hover{color:var(--text-1)}}
.iv-sec .db-lh{align-items:center}
.iv-bd{padding:12px 0 16px}
.iv-lead{margin:0 0 8px;font-size:13px;line-height:19px;color:var(--text-2)}
.iv-lead b{color:var(--text-1)}
.iv-m{color:var(--text-3)}
.iv-l,.iv-hl{list-style:none;margin:0;padding:0}
.iv-li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:7px 0;border-top:1px solid var(--line);font-size:13px}
.iv-li:first-child{border-top:0;padding-top:0}
.iv-when{min-width:150px;font-size:12px;color:var(--text-3);font-variant-numeric:tabular-nums}
.iv-k{font-size:12px;color:var(--text-3)}
.iv-parts{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.iv-p{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-12,12px);background:var(--well)}
.iv-p.is-rest{background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.iv-pa{font-size:17px;line-height:22px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.iv-hw{margin:2px 0 0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3)}
.iv-h{display:flex;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:13px;line-height:18px}
.iv-h:first-child{border-top:0;padding-top:0}
.iv-hm{display:grid;color:var(--text-3);margin-top:1px}
.iv-h.is-sup .iv-hm{color:var(--accent)}
.iv-hs{font-weight:600}
.iv-cases{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.iv-sub{margin:0;font-size:12px;font-weight:600;color:var(--text-3)}
.iv-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.iv-note{font-size:12px;color:var(--text-3)}
.iv-case{min-width:0}
/* the investigation's "changed" tag in the warn ink (DF-A D5: #ff8d28 on white was 2.23:1) */
.cg-blk.is-changed i{color:var(--warn-ink,var(--warn))}
.dgp-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dgp-tools .more{margin-left:auto;display:inline-flex;align-items:center;gap:2px;font-size:12px;color:var(--text-3)}
.dgp-subj{margin:4px 0 0;font-size:13px;color:var(--text-2)}
.dgp-subj b{color:var(--text-1)}
.dgp-s .dg-l{list-style:none;margin:0;padding:8px 0 12px}
.dgp-s .dg-i{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;padding:7px 0;border-top:1px solid var(--line);font-size:13px;line-height:18px}
.dgp-s .dg-i:first-child{border-top:0}
.dgp-s .dg-k{font-size:12px;color:var(--text-3);font-variant-numeric:tabular-nums}
.dgp-s .dg-i p{margin:2px 0 0;font-size:12px;color:var(--text-3)}
.dgp-s .dg-tag{margin-left:6px;font-size:var(--t-sh);font-weight:500;color:var(--text-3)}
.dgp-e,.dgp-n{margin:0;padding:8px 0 12px;font-size:12px;color:var(--text-3)}
.dgp-n{padding-top:0}

/* ---------- moved from v103-tokens.css (which now holds only tokens) — the same place in the cascade but for v102-ask.css ---------- */
/* ---------- D3: impact is Linear's neutral bars + a word (pages/dashboard.js impChip), never a red "High" ---------- */
.lbl.imp{display:inline-flex;align-items:center;gap:5px;height:auto;padding:0;background:none;box-shadow:none;border:0;color:var(--text-2);font-size:12px;line-height:16px;font-weight:500;white-space:nowrap}
.db-bars{display:inline-flex;align-items:flex-end;gap:1.5px;height:10px;flex:none}
.db-bars i{width:3px;border-radius:1px;background:var(--fill-3)}
.db-bars i:nth-child(1){height:4px}.db-bars i:nth-child(2){height:7px}.db-bars i:nth-child(3){height:10px}
.db-bars i.on{background:var(--text-2)}

/* ---------- §5.1.4: never two frames — a KPI strip inside a card loses its box and keeps its dividers (Health, SEO Search, AI Search, Mentions) ---------- */
.sec.panel .kp-strip{border:0;border-radius:0;box-shadow:none}
.sec.panel .kp-strip > .kp:first-child{padding-left:0}
/* loop fix (visual · phone): when the strip wraps to two tiles a row (v103-a11y.css), every tile that starts a row lines up with the first — the left
   edge is straight (it read 35 / 47 / 47) */
@container pg (max-width:760px){.sec.panel .kp-strip > .kp:nth-child(odd){padding-left:0}}

/* ---------- night build (Oct 8 · L3 · L4 · M4 · B1 · B2): the first-value Dashboard, the goal's state, the section states on this page ---------- */
/* the goal's number says it is the goal — a small target before its name (M4) */
.db-goal{display:inline-flex;align-items:center;color:var(--text-3)}
.db-mr.is-on .db-goal{color:var(--text-2)}
/* a chart with nothing to draw is one calm line, not a 232px frame (B1) — the card keeps its two columns, without the empty height */
.db-ov.is-wait{min-height:0;grid-template-columns:minmax(0,1fr)}   /* loop fix (L3): one row — the numbers across the top, then the one calm line */
.db-cwait{padding:10px 0 4px}
.db-cwait > .sys-ss{background:transparent;border:0;border-radius:0;padding:4px 0}
/* a section state inside a card is never a box in a box (design-system §5.1.4) */
.db-empty > .sys-ss.is-compact{padding:0}
.db-rail .sys-ss{flex-wrap:wrap;row-gap:8px}
.db-rail .sys-ss-t{flex-basis:calc(100% - 40px)}
.db-rail .sys-ss-a{margin-left:40px}

/* Your first findings */
.db-fv-hd h2{white-space:normal}
.db-fv-hd .more{margin-left:auto}
.db-fv-demo{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:var(--r-full);background:var(--st-gray-bg);color:var(--st-gray-fg);font-size:var(--t-sh);line-height:var(--lh-sh);font-weight:var(--w-medium);white-space:nowrap;cursor:default}
.db-fv-scope{display:flex;align-items:flex-start;gap:6px;margin:0;padding:10px 0 12px;font-size:var(--t-meta);line-height:var(--lh-meta);color:var(--text-3);text-wrap:pretty}
.db-fv-scope svg{flex:none;margin-top:3px}
.db-fv-goal{padding:12px 0;border-top:1px solid var(--line)}
.db-fv-gh{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:var(--t-body);line-height:var(--lh-body)}
.db-fv-gh > b{font-weight:var(--w-semibold);color:var(--text-1)}
.db-fv-k{display:inline-flex;align-items:center;gap:5px;font-size:var(--t-meta);line-height:var(--lh-meta);font-weight:var(--w-medium);color:var(--text-3)}
.db-fv-gv{font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3);font-variant-numeric:tabular-nums}
.db-fv-gv b{color:var(--text-1);font-weight:var(--w-semibold)}
.db-fv-goal > .sys-ss.is-compact{padding:8px 0 0}
.db-fv-main{padding-top:14px;padding-bottom:16px;border-top:1px solid var(--line)}
.db-fv-mh{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 8px}
.db-fv-area{font-size:var(--t-meta);line-height:var(--lh-meta);color:var(--text-3)}
.db-fv-mh .grow{flex:1 1 0}
.db-fv-t{margin:0 0 8px;font-size:var(--t-t2);line-height:var(--lh-t2);font-weight:var(--w-semibold);letter-spacing:-.01em;text-wrap:pretty;max-width:880px}
.db-fv-t a{color:var(--text-1);text-decoration:none}
@media (hover:hover){.db-fv-t a:hover{text-decoration:underline;text-underline-offset:3px}}
.db-fv-l{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:12px;margin:4px 0 0;max-width:880px;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-2);text-wrap:pretty}
.db-fv-l b{color:var(--text-1);font-weight:var(--w-semibold)}
.db-fv-lk{color:var(--text-3)}
.db-fv-step{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k go" "l go";column-gap:16px;row-gap:2px;align-items:center;margin-top:14px;padding:12px 14px;border-radius:var(--r-12);background:var(--well)}   /* loop fix (L3): fills the card — the sentence keeps its own measure */
.db-fv-sk{grid-area:k;font-size:var(--t-meta);line-height:var(--lh-meta);font-weight:var(--w-medium);color:var(--text-3)}
.db-fv-sl{grid-area:l;margin:0;font-size:var(--t-body);line-height:var(--lh-body);color:var(--text-1);text-wrap:pretty;max-width:80ch}
.db-fv-go{grid-area:go;white-space:nowrap}
.db-fv-more{padding:4px 0 6px;border-top:1px solid var(--line)}
.db-fv-mk{margin:10px 0 2px;font-size:var(--t-meta);line-height:var(--lh-meta);font-weight:var(--w-medium);color:var(--text-3)}
.db-fv-r{display:flex;align-items:center;gap:12px;margin:0 -8px;padding:8px;border-radius:var(--r-8);color:inherit;text-decoration:none}
@media (hover:hover){.db-fv-r:hover{background:var(--hover)}}
.db-fv-rb{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.db-fv-r > .lbl,.db-fv-mh > .lbl{flex:none;white-space:nowrap}
.db-fv-rt{font-size:var(--t-body);line-height:var(--lh-body);color:var(--text-1);text-wrap:pretty}
.db-fv-rs{font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3)}
.db-fv-none{padding:12px 0 14px;border-top:1px solid var(--line)}
.db-fv-none > .sys-ss.is-compact{padding:0}
/* setup · first findings · first result — three moments, kept apart (B2) */
.db-fv-ms{display:flex;flex-wrap:wrap;gap:6px 20px;list-style:none;margin:0 -8px;padding:10px 8px 12px;border-top:1px solid var(--line);font-size:var(--t-meta);line-height:var(--lh-meta);color:var(--text-3)}
.db-fv-ms li{display:inline-flex;align-items:center;gap:6px;min-width:0}
.db-fv-ms svg{flex:none}
.db-fv-ms li.is-done{color:var(--text-2)}
.db-fv-ms li.is-done svg{color:var(--st-green-fg)}
.db-fv-ms li.is-part svg{color:var(--st-blue-fg)}

/* What we're checking next — the rail's 36px leading slot, the job's state as a status chip */
.db-nx{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:12px;align-items:start;padding-top:10px;padding-bottom:10px;color:inherit;text-decoration:none}
@media (hover:hover){.db-nx:hover{background:var(--hover)}}
.db-nx > .db-ce{grid-column:2}
.db-nx-ic{height:36px;border-radius:var(--r-8);background:var(--fill-1);color:var(--text-3)}
.db-nx-ic.is-blue{background:var(--st-blue-bg);color:var(--st-blue-fg)}
.db-nx-ic.is-orange{background:var(--st-orange-bg);color:var(--st-orange-fg)}
.db-nx-c{grid-column:3;align-self:center;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.db-nx-ready{display:flex;align-items:flex-start;gap:6px;margin:0 -8px;padding:10px 8px;border-top:1px solid var(--line);font-size:var(--t-meta);line-height:var(--lh-meta);color:var(--text-3);text-wrap:pretty}
.db-nx-ready svg{flex:none;margin-top:3px;color:var(--st-green-fg)}
.db-nx-ready b{font-weight:var(--w-medium);color:var(--text-2)}
.db-nx-tail{text-wrap:pretty}
.db-nx-ready.is-na svg{color:var(--text-3)}
.db-nx-ready + .db-nx-ready{border-top:0;padding-top:0}
.db-fv-gw{margin:6px 0 0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3);text-wrap:pretty}
/* phones: the evidence lines stack, the step's button goes under its words (one tap target of 40px) */
@container pg (max-width:600px){
  .db-fv-l{grid-template-columns:minmax(0,1fr)}
  .db-fv-step{grid-template-columns:minmax(0,1fr);grid-template-areas:"k" "l" "go";row-gap:6px}
  .db-fv-go{justify-self:start;min-height:40px;margin-top:4px}
  .db-fv-r{align-items:flex-start}}

/* night C2 (Oct 8): a site made here shows the prototype's sample numbers only beside the word "Simulated" — on the tile's note and by the chart's title */
.db-sim{color:var(--st-gray-fg);font-weight:var(--w-medium)}
.db-ch-sim{flex:none}

/* loop fix (D5 · I5 · UX2-07): the Dashboard skeleton (pages/dashboard.js dashboardSkeleton) — the real blocks' spacing, so nothing jumps on load */
.db-sk .db-sk-brief{margin-top:10px;max-width:560px}
.db-sk-lines{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}
.db-sk-ctr{display:flex;flex-direction:column;gap:8px;padding:12px 14px;min-width:0}
.db-sk-ctr + .db-sk-ctr{border-left:1px solid var(--line)}
.db-sk-mr{display:flex;flex-direction:column;gap:7px;min-height:67px;padding:10px;box-sizing:border-box}
.db-sk-cp{gap:16px}
.db-sk-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0 12px;border-bottom:1px solid var(--line)}
.db-sk-hd.is-bare{padding-top:0;border-bottom:0}
.db-sk-card{display:flex;flex-direction:column;padding:0 22px 8px}
.db-sk-row{display:flex;align-items:center;gap:14px;min-height:72px;padding:12px 0;box-sizing:border-box}
.db-sk-row + .db-sk-row{border-top:1px solid var(--line)}
.db-sk .sk.db-sk-lead{flex:none;border-radius:var(--r-ctl)}
.db-sk .sk.db-sk-chip{flex:none;border-radius:var(--r-full)}
.db-sk .sk.db-sk-chart{border-radius:var(--r-12)}
@container pg (max-width:640px){.db-sk-card{padding:0 16px 8px}.db-sk .sk.db-sk-chip{display:none}.db-sk-ctr:nth-child(3){border-left:0}.db-sk-ctr:nth-child(n+3){border-top:1px solid var(--line)}}

/* loop fix (C6 · phone): the always-visible "Why?" pill sits beside the sparkline, at the tile's bottom right — it covered the top of the change
   ("+18%", "−14%") and squeezed labels like "Named in AI answers" onto two lines */
@container pg (max-width:760px){
  .db-mr .db-spk{width:calc(100% - 58px)}
  .db-mr .db-why{top:auto;bottom:10px;right:10px;transform:none}
  .db-mr .db-mb{height:100%;grid-template-rows:auto auto 1fr 32px}   /* loop fix (round 1): the selected tile's highlight fills its cell — the Why? pill sits inside it */
}
/* loop fix (visual · phone): a digest section's title wraps — "The numbers, last 28 days against the 28 before" ran through the card's padding at 390 */
.dgp-s h2,.dgp-s .sec-hd h2,.dg-page .db-lh h2{white-space:normal;text-wrap:balance;min-width:0}

/* loop fix (L3 · UX5-01): the first-value Dashboard has no holes — the first-findings card is as tall as "What we're checking next" beside it (its
   three moments at the foot), the next-step box fills the card (its sentence keeps a reading measure), and a chart that can't draw yet is one row:
   the numbers across the top and its one calm line, never a 330px frame under a toolbar */
.db-fvg{align-items:stretch}
.db-fvg > .db-main{display:flex;flex-direction:column}
.db-fvg > .db-main > .db-fv{flex:1 1 auto;display:flex;flex-direction:column}
.db-fvg .db-fv > .db-fv-ms{margin-top:auto}
.db-ov.is-wait .db-ml{border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:2px}   /* loop fix (round 1): the tiles fill the row (no empty 7th track) and stay 2 across on a phone */
.db-ov.is-wait .db-tools{display:none}
/* the rail's rows: the job's words keep the width, the chip stays one line */
.db-nx .db-ce{min-width:0}
/* loop fix (M4): the goal a SaaS chose to improve, first under the greeting — its state chip and one action */
.db-goalln{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:6px 0 4px;font-size:var(--t-body);line-height:var(--lh-body);color:var(--text-2)}
.db-goalln > svg{flex:none;color:var(--text-3)}
.db-goalln > b{color:var(--text-1);font-weight:var(--w-semibold)}
.db-goalw{color:var(--text-3)}
/* loop fix (UX5-02): a long metric scope sits on the finding's title line, quiet, instead of filling the narrow number column */
.db-iscope{flex-basis:100%;font-size:var(--t-co);line-height:var(--lh-co);color:var(--text-3)}
/* P6 L14: the Needs-you row's stake line, under the title (pages/dashboard.js fixRow) */
.db-nt > .db-nst{margin-top:2px}
/* P6 L14: the priority bars sit on the title's line (Linear's list), not in the middle of a three-line row */
.db-nr > .db-nc{align-self:start;padding-top:5px}
@container pg (max-width:600px){.db-nr > .db-nc{align-self:center;padding-top:0}}
/* P6 L10: a result's next step on the Dashboard — a quiet link to the fix's result, where the choice prepares work for approval */
.db-rnext{display:inline-flex;align-items:center;gap:2px;align-self:flex-start;margin-top:4px;font-size:var(--t-co);line-height:var(--lh-co);font-weight:var(--w-medium);color:var(--fg-2);text-decoration:none;border-radius:var(--r-4)}
.db-rnext svg{flex:none;color:var(--fg-4)}
@media (hover:hover){.db-rnext:hover{color:var(--fg)}}
/* P6 L14: the priority word sits in the bars' tooltip on a wide screen; at phone width the lead slot has room, so the word shows beside them */
.db-imp > .db-imp-w{display:none}
@container pg (max-width:600px){.db-imp > .db-imp-w{display:inline}}
/* loop fix (round 1 · UX5-12): Running for you — the watches it counts, on one muted line under the rules */
p.db-tail.db-watchl{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:6px}
.db-watchl > span{min-width:0}
.db-watchl > svg{flex:none;margin-top:2px;color:var(--text-3)}
/* loop fix (round 1): a chart's change list inside an answer keeps its own circled markers — never "1. ①" (an answer's ol is numbered) */
.ai-text ol.chart-ev,.md ol.chart-ev,.an-claims ol.chart-ev,.ai-plain-t ol.chart-ev{list-style:none;padding-left:0}
/* loop fix (round 1): the empty investigation uses the page's width (its message centred on the content, an h1 above it); a case with a rail (line
   376) is as wide as the change page it mirrors */
.iv-page.is-empty{max-width:none}
.iv-more{display:inline-flex;align-items:center;gap:2px;margin-top:10px}
