/* Progress goal board (spec 2026-10-11). Standard: the page's dark glass; cozy: paper + ink under
   [data-ux-mode="cozy"]. Every text pair here is >= 4.5:1 in both modes (measured by scripts/qa/progress-board-check.py). */
.needs-you { margin: 18px 0 24px; padding: 18px 20px; border-radius: 18px; background: rgba(5, 10, 20, 0.65); border: 1px solid rgba(148, 121, 255, 0.22); }
.needs-you__title { margin: 0 0 10px; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: #cdd6ff; }
.needs-you__empty { margin: 0; color: #aab4d4; }
.needs-you__list { display: flex; flex-direction: column; gap: 6px; }
.ny-row { display: grid; grid-template-columns: minmax(120px, 0.6fr) 2fr auto auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.04); color: #e6edf3; cursor: pointer; font: inherit; }
.ny-row:hover { border-color: rgba(148, 121, 255, 0.5); }
/* §613.1: keyboard focus has its own ring (was hover's 1 px half-violet border, ~2.4:1, outline removed). */
.ny-row:focus-visible { border-color: rgba(148, 121, 255, 0.5); outline: 2px solid #cdd6ff; outline-offset: -2px; }
.ny-row--extra { display: none; }
.needs-you--all .ny-row--extra { display: grid; }
.ny-row__goal { font-size: 0.78rem; color: #aab4d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ny-row__title { font-weight: 600; }
.ny-row__needs { font-size: 0.8rem; color: #ffd98a; white-space: nowrap; }
.ny-row__due { font-size: 0.8rem; color: #aab4d4; white-space: nowrap; }
/* §619 re-test 7 (Liam): a late step reads as a fact ("due yesterday") in the row's own muted colour — no alarm red (§4.9). */
.ny-row__due.is-overdue, .gb-row__when.is-overdue { color: var(--fg-muted, #b9b9c7); }
.needs-you__more { margin-top: 10px; }

.goal-board { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.gb-card { border-radius: 18px; background: rgba(5, 10, 20, 0.65); border: 1px solid rgba(79, 172, 254, 0.18); padding: 16px 18px; }
.gb-head { display: flex; gap: 14px; align-items: flex-start; }
.gb-receipt-hold { margin: 12px 0 0; }   /* a decided step's receipt whose row the week view hides (§619 nc2) */
.gb-row__reworded-undo { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }   /* §619 batch 36 */
.gb-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.gb-titles { flex: 1 1 auto; min-width: 0; }
.gb-title { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; color: #e6edf3; }
.gb-role { margin-left: 8px; font-size: 0.72rem; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); color: #cdd6ff; vertical-align: middle; }
.gb-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.82rem; color: #aab4d4; }
.gb-bar { width: 140px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.gb-bar__fill { display: block; height: 100%; background: var(--gradient-brand); }
.gb-meta__pill { padding: 2px 10px; border-radius: 99px; background: rgba(255, 217, 138, 0.14); color: #ffd98a; }
.gb-head__actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.gb-toggle { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: transparent; color: #cdd6ff; display: grid; place-items: center; cursor: pointer; }
.gb-toggle .icon { transform: rotate(90deg); transition: transform 0.18s; }
.gb-card[data-open="1"] .gb-toggle .icon { transform: rotate(-90deg); }
.gb-row__line > .icon:last-child { transform: rotate(90deg); transition: transform 0.18s; color: #aab4d4; }
.gb-row[aria-expanded="true"] .gb-row__line > .icon:last-child { transform: rotate(-90deg); }
.gb-card[data-open="0"] .gb-rows, .gb-card[data-open="0"] .gb-plan { display: none; }

.gb-rail { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: thin; }
.gb-ms { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 150px; max-width: 220px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: #e6edf3; text-align: left; cursor: pointer; font: inherit; }
.gb-ms__date { font-size: 0.74rem; color: #aab4d4; }
.gb-ms__title { font-size: 0.82rem; line-height: 1.25; max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }   /* full title in the DOM + tooltip; two lines then an ellipsis (§597.1) */
.gb-ms[data-state="done"] .gb-ms__title { color: #cdd6ff; }
/* Full titles (owner 2026-10-14): a tap filters the list by this milestone AND shows its whole name — the tooltip
   was the only way to read it, and there is no hover on a phone. */
.gb-ms[aria-pressed="true"] .gb-ms__title { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.gb-ms[data-state="next"] { border-color: #9479ff; box-shadow: 0 0 0 1px rgba(148, 121, 255, 0.45) inset; }
.gb-ms[data-state="slipped"] { border-color: rgba(255, 138, 138, 0.6); }
.gb-ms[data-state="slipped"] .gb-ms__date, .gb-ms[data-slipped="1"] .gb-ms__date { color: #ff8a8a; }
.gb-ms[aria-pressed="true"] { background: rgba(148, 121, 255, 0.2); }

.gb-rows { margin-top: 10px; }
.gb-group { margin-top: 12px; }
.gb-group__title { margin: 0 0 6px; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #cdd6ff; }
.gb-group__count { margin-left: 6px; color: #aab4d4; font-weight: 500; }
.gb-group--collapsed .gb-list { display: none; }
.gb-group[data-bucket="done"] .gb-group__title, .gb-group[data-bucket="upcoming"] .gb-group__title { cursor: pointer; }
.gb-list { display: flex; flex-direction: column; gap: 4px; }
/* Round nd6: a tapped row is revealed with scrollIntoView 'nearest' — these margins keep it clear of the fixed top bar and
   the phone's bottom nav (body reserves 80 px + the safe area for it). */
.gb-row { border-radius: 12px; border: 1px solid transparent; scroll-margin-top: 84px; scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.gb-row[aria-expanded="true"] { border-color: rgba(148, 121, 255, 0.35); background: rgba(255, 255, 255, 0.03); }
.gb-row__line { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; background: transparent; border: 0; color: #e6edf3; text-align: left; cursor: pointer; border-radius: 12px; font: inherit; }
.gb-row__line:hover { background: rgba(255, 255, 255, 0.05); }
/* §613.1: keyboard focus has its own ring (was hover's 5 % white tint, ~1.1:1, outline removed). */
.gb-row__line:focus-visible { background: rgba(255, 255, 255, 0.05); outline: 2px solid #cdd6ff; outline-offset: -2px; }
.gb-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.gb-dot--needs_you { background: #ffd98a; }
.gb-dot--running { background: #4facfe; }
.gb-dot--upcoming { background: #8c9ac0; }
.gb-dot--done { background: #7ee2a8; }
.gb-chip { font-size: 0.7rem; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); color: #cdd6ff; flex: 0 0 auto; }
/* Full titles (owner 2026-10-14): the task title gets at least 40 % of the line and two lines before an ellipsis; the
   "after: …" note yields (it grew to ~1,000 px and left titles 0 px wide — Priya's "L", "C"). Opened → whole title. */
.gb-row__title { flex: 1 1 auto; min-width: 40%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
.gb-row[aria-expanded="true"] .gb-row__title { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.gb-row__when, .gb-row__note { font-size: 0.78rem; color: #aab4d4; white-space: nowrap; }
.gb-row__note { flex: 0 1 auto; min-width: 0; max-width: 35%; overflow: hidden; text-overflow: ellipsis; }
.gb-row__body { padding: 4px 10px 12px; }
/* §612.5: the missed-day rule on every card, and a pushed step's slip note under its line. */
.gb-missed { margin: 6px 0 0; max-width: 72ch; font-size: 0.78rem; line-height: 1.4; color: #aab4d4; }
.gb-row__late { margin: -4px 10px 6px 28px; font-size: 0.78rem; line-height: 1.35; color: var(--fg-muted, #b9b9c7); }   /* §619 batch 18: a fact, not an alarm */
.gb-row__moved, .gb-row__ref, .gb-row__reworded { margin: -4px 10px 6px 28px; font-size: 0.78rem; line-height: 1.35; color: var(--fg-muted, #b9b9c7); }
/* §720.8 (owner 2026-10-24): the 3-week check — a quiet question under an old ask, three small answers (a fact, not an alarm). */
.gb-row__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -2px 10px 8px 28px; font-size: 0.8rem; line-height: 1.35; color: var(--fg-muted, #b9b9c7); }
.gb-row__ask-btn { min-height: 36px; padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(148, 121, 255, 0.45); background: rgba(148, 121, 255, 0.10); color: #e6edf3; font: inherit; cursor: pointer; }
.gb-row__ask-btn:hover { border-color: #cdd6ff; }
.gb-row__ask-btn:focus-visible { outline: 2px solid #cdd6ff; outline-offset: 1px; }
.gb-row__ask-btn:disabled { opacity: 0.6; cursor: default; }
.gb-row__ask-msg:empty { display: none; }
/* §720.13 (owner 2026-10-24): hand an account step to the person's own agent — one button (the ask button's look), then
   the brief they paste, on screen so they see exactly what they hand over. */
.gb-handoff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 4px; font-size: 0.8rem; line-height: 1.4; color: var(--fg-muted, #b9b9c7); }
.gb-handoff__say { flex-basis: 100%; margin: 0; }
.gb-handoff__say:empty { display: none; }
.gb-handoff__text { flex-basis: 100%; max-width: 72ch; margin: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(148, 121, 255, 0.25); background: rgba(148, 121, 255, 0.08); color: #e6edf3; white-space: pre-wrap; user-select: all; }
.gb-row[aria-expanded="false"] > .gb-row__body, .gb-row__body[hidden] { display: none; }   /* a collapsed row hides its form (review 2026-10-11 C1) */
.page-head-actions .run-nightly-status:empty { display: none; }
.gb-row__body .today-card { margin: 0; }
.gb-row__err { color: #ff8a8a; }
.gb-row__plain { color: #aab4d4; }
.gb-plan { margin-top: 12px; }
.gb-fail { padding: 24px; text-align: center; color: #aab4d4; }
.gb-empty { padding: 28px 20px; text-align: center; border-radius: 18px; background: rgba(5, 10, 20, 0.65); border: 1px solid rgba(79, 172, 254, 0.18); }
.gb-empty__text { margin: 0 0 14px; color: #e6edf3; }

@media (max-width: 700px) {
    .ny-row { grid-template-columns: 1fr auto; }
    .ny-row__goal { grid-column: 1 / -1; }
    .ny-row__needs { grid-column: 1; }
    .gb-head { flex-wrap: wrap; }
    .gb-bar { width: 100px; }
    .gb-chip { display: none; }
    .gb-row[aria-expanded="true"] .gb-chip { display: inline-block; }
    /* Round nd6 (lucia, 390 px): opened, the line gained that chip while its date stayed nowrap, so the chevron — the
       control that closes the step — was pushed off the card. Opened: title beside the chevron, the date under it. */
    .gb-row[aria-expanded="true"] .gb-row__line { flex-wrap: wrap; row-gap: 2px; }
    .gb-row[aria-expanded="true"] .gb-row__title { flex: 1 1 0; min-width: 0; }
    .gb-row[aria-expanded="true"] .gb-row__line > .icon:last-child { order: 1; }
    .gb-row[aria-expanded="true"] .gb-row__when { order: 2; flex-basis: 100%; padding-left: 18px; white-space: normal; }
    .gb-row__note { display: none; }
    .gb-row__ask { margin-left: 10px; }
    .gb-row__ask-btn { min-height: 44px; }
}

/* Cozy: paper + ink, never dark glass. */
[data-ux-mode="cozy"] .needs-you, [data-ux-mode="cozy"] .gb-card, [data-ux-mode="cozy"] .gb-empty { background: var(--cozy-paper-elevated, #fffbf2) !important; border-color: var(--cozy-gold-soft, rgba(182, 151, 99, 0.32)) !important; box-shadow: 0 6px 18px var(--cozy-warm-shadow, rgba(182, 151, 99, 0.18)); }
[data-ux-mode="cozy"] .gb-empty__text, [data-ux-mode="cozy"] .needs-you__title, [data-ux-mode="cozy"] .gb-group__title, [data-ux-mode="cozy"] .gb-title, [data-ux-mode="cozy"] .gb-row__line, [data-ux-mode="cozy"] .ny-row, [data-ux-mode="cozy"] .gb-ms, [data-ux-mode="cozy"] .gb-ms__title, [data-ux-mode="cozy"] .gb-ms[data-state="done"] .gb-ms__title { color: var(--cozy-ink, #2c2418) !important; }
[data-ux-mode="cozy"] .needs-you__empty, [data-ux-mode="cozy"] .gb-meta, [data-ux-mode="cozy"] .ny-row__goal, [data-ux-mode="cozy"] .ny-row__due, [data-ux-mode="cozy"] .gb-row__when, [data-ux-mode="cozy"] .gb-row__note, [data-ux-mode="cozy"] .gb-ms__date, [data-ux-mode="cozy"] .gb-group__count, [data-ux-mode="cozy"] .gb-fail, [data-ux-mode="cozy"] .gb-row__plain { color: var(--cozy-ink-muted, #5b4f3a) !important; }
[data-ux-mode="cozy"] .ny-row, [data-ux-mode="cozy"] .gb-ms, [data-ux-mode="cozy"] .gb-row[aria-expanded="true"], [data-ux-mode="cozy"] .gb-row__line:hover { background: var(--cozy-paper, #fdf6e3) !important; border-color: var(--cozy-gold-soft, rgba(182, 151, 99, 0.32)); }
[data-ux-mode="cozy"] .ny-row__needs, [data-ux-mode="cozy"] .gb-meta__pill { color: #7a4b00 !important; background: rgba(182, 151, 99, 0.18); }
[data-ux-mode="cozy"] .gb-ms[data-state="slipped"] .gb-ms__date, [data-ux-mode="cozy"] .gb-ms[data-slipped="1"] .gb-ms__date { color: #b3261e !important; }
[data-ux-mode="cozy"] .gb-chip, [data-ux-mode="cozy"] .gb-role { background: rgba(182, 151, 99, 0.18); color: var(--cozy-ink, #2c2418) !important; }
/* §613.1: on paper the light ring would vanish — ink instead. */
[data-ux-mode="cozy"] .ny-row:focus-visible, [data-ux-mode="cozy"] .gb-row__line:focus-visible { outline: 2px solid var(--cozy-ink, #2c2418); outline-offset: -2px; }
[data-ux-mode="cozy"] .gb-missed { color: var(--cozy-ink-muted, #5b4f3a) !important; }
[data-ux-mode="cozy"] .gb-row__late { color: var(--cozy-ink-muted, #5b4f3a) !important; }
[data-ux-mode="cozy"] .gb-row__moved, [data-ux-mode="cozy"] .gb-row__ref, [data-ux-mode="cozy"] .gb-row__reworded { color: #5b5346 !important; }
[data-ux-mode="cozy"] .gb-row__ask { color: #5b5346 !important; }
[data-ux-mode="cozy"] .gb-row__ask-btn { color: #3b2f1e; background: rgba(182, 151, 99, 0.14); border-color: rgba(122, 75, 0, 0.45); }
[data-ux-mode="cozy"] .gb-row__ask-btn:focus-visible { outline-color: #7a4b00; }
[data-ux-mode="cozy"] .gb-handoff { color: #5b5346 !important; }
[data-ux-mode="cozy"] .gb-handoff__text { color: #3b2f1e; background: rgba(182, 151, 99, 0.10); border-color: rgba(122, 75, 0, 0.30); }
[data-ux-mode="cozy"] .gb-toggle { color: var(--cozy-ink, #2c2418); border-color: var(--cozy-gold-soft, rgba(182, 151, 99, 0.32)); }
[data-ux-mode="cozy"] .gb-ms[data-state="next"] { border-color: #8a5a00; box-shadow: 0 0 0 1px rgba(138, 90, 0, 0.35) inset; }
[data-ux-mode="cozy"] .gb-ms[aria-pressed="true"] { background: rgba(182, 151, 99, 0.28) !important; }

/* §612.1 (persona round 1, 2026-10-14): while the first plan builds, plan-building.js sets body.plan-building and
   shows "Your plan is being built" — the board's "No goals yet … Start in Chat" under it contradicted the card and
   invited a second goal. The plan's goal appears here when it lands (plan-building.js reloads the board). */
/* Round nf1 (Haruto, Carolina): hiding the whole empty card left a blank gap where the first plan would land. While it
   builds, the card says where the plan will appear instead of "No goals yet". */
.gb-empty__building { display: none; margin: 0; color: #e6edf3; }
body.plan-building .gb-empty__building { display: block; }
body.plan-building .gb-empty__text, body.plan-building .gb-empty__cta { display: none; }
[data-ux-mode="cozy"] .gb-empty__building { color: var(--cozy-ink, #2c2418) !important; }
.gb-toolbar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.gb-week-toggle[aria-pressed="true"] { border-color: var(--accent-purple, #9479ff); }
.gb-week-empty { margin: 6px 0 4px; font-size: 0.85rem; color: var(--fg-muted, #b9b9c7); }
/* Milestone check (owner 2026-10-15; Kwame): the pace the money milestones encode, each sum, and — when the transfer
   step names another amount — what each milestone comes to at it. Text pairs follow the card's own (>= 4.5:1). */
.gb-pace { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid rgba(148, 121, 255, 0.28); border-radius: 10px; font-size: 0.86rem; line-height: 1.45; }
.gb-pace p { margin: 0 0 6px; }
.gb-pace__line, .gb-pace__ok { color: var(--fg-muted, #b9b9c7); }
.gb-pace[data-status="mismatch"] { border-color: rgba(245, 180, 80, 0.55); }
.gb-pace__warn { color: var(--text-primary, #f2f2f7); font-weight: 600; }
.gb-pace__replan { display: inline-block; margin: 2px 0 6px; font-size: 0.85rem; }
.gb-pace__sums summary { cursor: pointer; color: var(--fg-muted, #b9b9c7); }
.gb-pace__sums ul { margin: 6px 0 0; padding-left: 18px; }
.gb-pace__sums li { margin-bottom: 3px; overflow-wrap: anywhere; }
[data-ux-mode="cozy"] .gb-pace { border-color: var(--cozy-gold-soft, rgba(182, 151, 99, 0.32)); }
[data-ux-mode="cozy"] .gb-pace[data-status="mismatch"] { border-color: rgba(176, 108, 20, 0.6); }
[data-ux-mode="cozy"] .gb-pace__line, [data-ux-mode="cozy"] .gb-pace__ok, [data-ux-mode="cozy"] .gb-pace__sums summary, [data-ux-mode="cozy"] .gb-pace__sums li { color: var(--cozy-ink-muted, #5b4f3a) !important; }
[data-ux-mode="cozy"] .gb-pace__warn { color: var(--cozy-ink, #2c2418) !important; }
/* Change a date on Progress (owner 2026-10-15; Priya) — the same edit service as chat, preview then "Move it". */
.gb-date { margin: 8px 0 4px; }
.gb-date__form { display: grid; gap: 6px; justify-items: start; padding: 8px 10px; border: 1px solid rgba(148, 121, 255, 0.28); border-radius: 10px; }
.gb-date__label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.gb-date__input { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border, rgba(127, 127, 127, 0.4)); background: transparent; color: inherit; min-height: 40px; }
.gb-date__say { margin: 0; font-size: 0.88rem; }
.gb-date__conflicts { margin: 0; padding-left: 18px; font-size: 0.84rem; color: var(--fg-muted, #b9b9c7); }
.gb-date__done { margin-top: 6px; }
.gb-date__form[hidden], .gb-date__open[hidden], .gb-date__apply[hidden], .gb-date__cancel[hidden] { display: none; }   /* the display rules above (and .btn) beat the UA [hidden] rule (§622.1) */
[data-ux-mode="cozy"] .gb-date__form { border-color: var(--cozy-gold-soft, rgba(182, 151, 99, 0.32)); }
[data-ux-mode="cozy"] .gb-date__say, [data-ux-mode="cozy"] .gb-date__label { color: var(--cozy-ink, #2c2418) !important; }
[data-ux-mode="cozy"] .gb-date__conflicts { color: var(--cozy-ink-muted, #5b4f3a) !important; }
[data-ux-mode="cozy"] .ny-row__due.is-overdue, [data-ux-mode="cozy"] .gb-row__when.is-overdue { color: var(--cozy-ink-muted, #5b4f3a) !important; }
.gb-money { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; line-height: 1.45;
  border: 1px solid rgba(148, 121, 255, 0.28); }
[data-ux-mode="cozy"] .gb-money { color: var(--cozy-ink, #2c2418) !important; border-color: var(--cozy-gold-soft, rgba(182, 151, 99, 0.32)); }
/* A goal's own numbers (§619 batch 14; Liam) — the money check's box, a line drawn in the accent colour. */
.gb-numbers { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid rgba(148, 121, 255, 0.28); border-radius: 10px; font-size: 0.86rem; line-height: 1.45; }
.gb-numbers p { margin: 0 0 6px; }
.gb-numbers__title { font-weight: 600; }
.gb-numbers__line { display: block; width: 100%; max-width: 280px; height: auto; margin: 2px 0 6px; overflow: visible; }
.gb-numbers__line polyline { fill: none; stroke: var(--accent-purple, #9479ff); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gb-numbers__line circle { fill: var(--accent-purple, #9479ff); }
.gb-numbers__line circle.gb-numbers__day { fill: var(--fg-muted, #b9b9c7); opacity: 0.7; }   /* the days under the weekly line */
.gb-numbers__week { font-weight: 600; }
.gb-numbers__latest { font-weight: 600; }
.gb-numbers__empty, .gb-numbers__finish, .gb-numbers__next { color: var(--fg-muted, #b9b9c7); }
.gb-numbers__private { font-size: 0.78rem; color: var(--fg-muted, #b9b9c7); }
.gb-numbers__form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0; }
.gb-numbers__label { font-size: 0.85rem; font-weight: 600; }
.gb-numbers__input { font: inherit; width: 7rem; padding: 6px 8px; min-height: 40px; border-radius: 8px; border: 1px solid var(--border, rgba(127, 127, 127, 0.4)); background: transparent; color: inherit; }
.gb-numbers__status { flex-basis: 100%; font-size: 0.8rem; }
[data-ux-mode="cozy"] .gb-numbers { border-color: var(--cozy-gold-soft, rgba(182, 151, 99, 0.32)); }
[data-ux-mode="cozy"] .gb-numbers__title, [data-ux-mode="cozy"] .gb-numbers__latest, [data-ux-mode="cozy"] .gb-numbers__week, [data-ux-mode="cozy"] .gb-numbers__label { color: var(--cozy-ink, #2c2418) !important; }
[data-ux-mode="cozy"] .gb-numbers__empty, [data-ux-mode="cozy"] .gb-numbers__next, [data-ux-mode="cozy"] .gb-numbers__finish, [data-ux-mode="cozy"] .gb-numbers__private, [data-ux-mode="cozy"] .gb-numbers__status { color: var(--cozy-ink-muted, #5b4f3a) !important; }
/* §738.3 (level-up Phase 1): "How you'll grow" — choose the abilities on the goal card. Same frame as the numbers box. */
.gb-growth { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid rgba(148, 121, 255, 0.28); border-radius: 10px; font-size: 0.86rem; line-height: 1.45; }
.gb-growth p { margin: 0; }
.gb-growth__title { font-weight: 600; margin-bottom: 6px !important; }
.gb-growth__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--border, rgba(127, 127, 127, 0.2)); }
.gb-growth__row:first-of-type { border-top: 0; }
.gb-growth__main { flex: 1 1 220px; min-width: 0; }
.gb-growth__name { font-weight: 600; }
.gb-growth__why { color: var(--fg-muted, #b9b9c7); }
.gb-growth__source { display: inline-block; margin-top: 2px; font-size: 0.76rem; color: var(--fg-muted, #b9b9c7); }
.gb-growth__side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gb-growth__state { font-size: 0.8rem; font-weight: 600; }
.gb-growth__status { flex-basis: 100%; font-size: 0.8rem; }
.gb-growth__fold { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.gb-growth__summary { flex: 1 1 220px; }
@media (max-width: 768px) {
  .gb-growth button { min-height: 44px; }              /* the touch floor (frontend pitfall 25) */
  .gb-date__undo { min-height: 44px; }                 /* the move receipt's Undo — same floor (owner 2026-11-07) */
}
[data-ux-mode="cozy"] .gb-growth { border-color: var(--cozy-gold-soft, rgba(182, 151, 99, 0.32)); }
[data-ux-mode="cozy"] .gb-growth__title, [data-ux-mode="cozy"] .gb-growth__name, [data-ux-mode="cozy"] .gb-growth__state, [data-ux-mode="cozy"] .gb-growth__summary { color: var(--cozy-ink, #2c2418) !important; }
[data-ux-mode="cozy"] .gb-growth__why, [data-ux-mode="cozy"] .gb-growth__source, [data-ux-mode="cozy"] .gb-growth__status { color: var(--cozy-ink-muted, #5b4f3a) !important; }
.gb-balance { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0; }
.gb-balance__label { font-size: 0.85rem; font-weight: 600; }
.gb-balance__input { font: inherit; width: 9rem; padding: 6px 8px; min-height: 40px; border-radius: 8px; border: 1px solid var(--border, rgba(127, 127, 127, 0.4)); background: transparent; color: inherit; }
.gb-balance__latest { font-weight: 600; }
[data-ux-mode="cozy"] .gb-balance__label, [data-ux-mode="cozy"] .gb-balance__latest { color: var(--cozy-ink, #2c2418) !important; }
/* What you handed in (§619 batch 20) — the person's own result on a finished action step. */
.gb-result { margin: 6px 0 10px; padding: 8px 10px; border-left: 3px solid var(--accent-purple, #9479ff); border-radius: 6px; background: color-mix(in srgb, var(--accent-purple, #9479ff) 8%, transparent); }
.gb-result__label { margin: 0 0 4px; font-size: 0.78rem; font-weight: 600; color: var(--fg-muted, #b9b9c7); }
.gb-result__note { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
[data-ux-mode="cozy"] .gb-result { border-left-color: var(--cozy-gold, #b69763); background: rgba(182, 151, 99, 0.12); }
[data-ux-mode="cozy"] .gb-result__label { color: var(--cozy-ink-muted, #5b4f3a) !important; }
[data-ux-mode="cozy"] .gb-result__note { color: var(--cozy-ink, #2c2418) !important; }


/* §619 batch 22: "Your deadlines" — the goal's open deadline steps, soonest first (goal-board.js deadlinesBox).
   The buttons restate every property styles.css's bare-button gradient sets. */
.gb-deadlines { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid rgba(148, 121, 255, 0.28); border-radius: 10px; font-size: 0.86rem; }
.gb-deadlines__title { margin: 0 0 6px; font-size: 0.86rem; font-weight: 600; }
.gb-deadlines__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gb-deadlines .gb-deadlines__item { display: flex; gap: 10px; align-items: baseline; width: 100%; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gb-deadlines .gb-deadlines__item:hover, .gb-deadlines .gb-deadlines__item:focus-visible { background: color-mix(in srgb, var(--accent-purple, #9479ff) 14%, transparent); }
.gb-deadlines__date { flex: 0 0 auto; min-width: 6.5em; font-weight: 600; white-space: nowrap; }
.gb-deadlines__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.gb-deadlines__more { margin: 4px 0 0; color: var(--fg-muted, #b9b9c7); font-size: 0.8rem; }
/* §619 batch 22b: a deadline after the plan's finish — said plainly, with a drafted re-plan in chat. */
.gb-deadlines__gap { margin: 8px 0 6px; color: var(--fg-muted, #b9b9c7); font-size: 0.82rem; line-height: 1.4; }
.gb-deadlines__replan { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; font-size: 0.82rem; }

/* §619 re-test 23 / nu4 (Priya, Mateus): the board says it is loading from the first paint, instead of a blank gap
   that read as a broken page. The board (or the failure card) replaces it. */
.gb-loading { margin: 18px 4px; font-size: 0.95rem; color: var(--text-muted, #94a3b8); }

/* §619 batch 39: the scorekeeping off switch hides each goal's bar, its "N of M" and its "N done" */
html[data-scores="off"] .gb-bar, html[data-scores="off"] .gb-meta__of, html[data-scores="off"] .gb-meta__done { display: none !important; }
