/* ============================================================================
   pages.css — layout for the individual page modules in js/pages/. Screen
   only; css/print.css owns the printed equivalents. Still bound by contract
   rule 4 (tokens only) and rule 8 (class inventory below).

   CLASS INVENTORY
     .cover-page .cover-title-input .cover-motif .cover-owner
     .motif-picker .motif-picker-item .motif-picker-item--active .motif-swatch .motif-swatch-name
     .cover-stage .cover-decorations .cover-sticker .cover-sticker--tape .cover-sticker--dragging
     .sticker-picker .sticker-pick-item .sticker-pick-svg .sticker-pick-svg--tape
     .month-page .month-head .month-grid .month-cell .month-cell--out .month-cell--today .month-dow
       .month-cell-dot .event-check
     .year-page .year-grid .year-month-card .year-month-card--btn .year-mini-head
       .year-mini-grid .year-mini-dow .year-mini-cell .year-mini-cell--out .year-mini-cell--today
     .week-page .week-grid .week-day-col .week-day-head .week-day-head--today
       .week-day-name .week-day-date .week-day-textarea .week-day-body--print
     .day-page .day-textarea .day-print-lines
       .day-mood-row .day-mood-btn .day-mood-btn--active .day-mood-label
     .trackers-page .tracker-list .tracker-card .tracker-head .tracker-icon-badge
       .tracker-name .tracker-streak .tracker-week .tracker-day-col .tracker-day-letter
       .tracker-day .tracker-day--checked .tracker-day--today .tracker-add-form
       .tracker-day--count .tracker-day--full .tracker-day--static .tracker-template-row
       .icon-picker .icon-picker-item
       .tracker-year-grid .tracker-year-row .tracker-year-row-label .tracker-year-cell .tracker-year-cell--on .tracker-year-cell--empty
     .mood-page .mood-ring-wrap .mood-ring .mood-ring-dot .mood-ring-dot--filled
       .mood-ring-dot--today .mood-ring-center .mood-legend .mood-legend-item .mood-legend-dot
       .mood-ring--diamond .mood-ring--hexagon .mood-ring--petal .mood-ring--tatami
     .section-h3
     .reading-page .reading-challenge .reading-challenge-head .reading-filter-tabs
       .bookshelf .bookshelf-board .book-spine .spine-title .spine-rating
       .book-row .book-row-title .book-row-author .book-row-stars .book-row-status .book-row-episode
     .selfcare-page .reflection-card .reflection-textarea .quote-card .quote-mark .quote-text .affirmation-card
       .bucket-list .bucket-row .bucket-row--done .bucket-check .bucket-text .menu-domain
     .money-page .jar-list .jar-block .jar-block--debt .jar .jar-lid .jar-body .jar-fill
       .jar-name .jar-amounts .jar-due .jar-due--overdue .jar-actions
       .quest-card .quest-board .quest-space .quest-space--past .quest-space--current
       .quest-space--double .quest-space--finish
       .expense-total .expense-row .expense-desc .expense-date .expense-cat .expense-amount
       .category-breakdown .cat-row .cat-row-name .cat-row-amount .checkbox-field
     .travel-page .trip-card .trip-head .trip-destination .japan-tips .japan-tip
     .settings-page .palette-grid .palette-swatch .palette-swatch--active .palette-dot .mode-row
     .goals-page .date-row .date-row-icon .date-row-label .date-row-when .goal-category
       .date-row--birthday .date-row--soon .date-row--today
     .visionboard-page .vision-grid .vision-card .vision-img-wrap .vision-img
       .vision-caption-input .vision-add-tile .vision-add-icon
     .ink-surface-wrap .ink-surface .ink-toolbar .ink-tool .ink-tool--active
     .bingo-page .bingo-win .bingo-grid .bingo-cell .bingo-cell--on .bingo-cell--free
       .bingo-ideas .bingo-ideas-cat
   ============================================================================ */

.cover-page { text-align: center; padding: var(--space-4) 0; }
.cover-owner { font-size: 13px; color: var(--ink-soft); font-style: italic; margin: 2px 0 var(--space-2); }
.cover-motif { width: 140px; height: 140px; margin: 0 auto var(--space-3); }
.cover-motif svg { width: 100%; height: 100%; display: block; }

/* Motif picker — 12 original SVGs (js/motifs.js), each recoloring live with
   the active palette since every path fill is a --token, never a literal. */
.motif-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--space-2); margin: var(--space-3) 0 var(--space-4); }
.motif-picker-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-2) 4px; }
.motif-picker-item--active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.motif-swatch { width: 36px; height: 36px; }
.motif-swatch svg { width: 100%; height: 100%; display: block; }
.motif-swatch-name { font-size: 9px; color: var(--ink-soft); text-align: center; line-height: 1.1; }

/* Sticker/washi decoration layer — sits over the ink canvas so a sticker and
   a pen stroke can share the same stage; empty space stays pointer-events:
   none so a tap between stickers still reaches the canvas underneath for
   drawing, only the stickers themselves are grabbable. */
.cover-stage { position: relative; }
.cover-decorations { position: absolute; inset: 0; pointer-events: none; }
.cover-sticker {
  position: absolute; width: 44px; height: 44px;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  pointer-events: auto; cursor: grab; touch-action: none;
}
.cover-sticker svg { width: 100%; height: 100%; display: block; }
.cover-sticker--tape { width: 92px; height: 19px; }
.cover-sticker--dragging { cursor: grabbing; z-index: 5; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }

.sticker-picker { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 var(--space-4); }
.sticker-pick-item { padding: var(--space-2); }
.sticker-pick-svg { display: block; width: 32px; height: 32px; }
.sticker-pick-svg--tape { width: 64px; height: 14px; }
.cover-title-input {
  font-family: var(--font-display); font-size: 24px; text-align: center;
  border: none; border-bottom: 1px dashed var(--line-strong); background: transparent;
  color: var(--ink); padding: var(--space-2); width: 100%; max-width: 360px;
}
.cover-title-input:focus { outline: none; border-color: var(--brand); }

.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
/* In-month cells are <button>s (month:open-day, see js/pages/month.js) so a
   tap opens straight into adding an event/task; out-of-month overflow cells
   stay plain <div>s. Shared reset here so both look identical regardless of
   which element the browser gives its own default styling. */
.month-cell {
  background: var(--surface); min-height: 64px; padding: var(--space-1) var(--space-2);
  font: inherit; font-size: 12px; color: var(--ink); text-align: left;
  border: none; display: block; width: 100%; position: relative;
}
button.month-cell { cursor: pointer; }
button.month-cell:hover { background: var(--surface-2); }
button.month-cell:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; z-index: 1; }
.month-cell--out { background: var(--surface-2); color: var(--ink-faint); }
.month-cell--today { outline: 2px solid var(--brand); outline-offset: -2px; }
.month-cell-dot { position: absolute; bottom: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--sakura); }
.month-dow { background: var(--surface-2); text-align: center; padding: var(--space-1); font-size: 11px; color: var(--ink-soft); }

.event-check { display: flex; align-items: center; gap: var(--space-2); flex: 1 1 auto; min-width: 0; cursor: pointer; }
.event-check span { overflow-wrap: anywhere; }

.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.year-month-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-2); background: var(--surface); }
/* display:block overrides the browser's own UA-stylesheet default for
   <button> (display:flex, row, align-items:center) — without this, the
   month title and the 7-column grid below it become side-by-side FLEX
   ITEMS instead of stacked block content, each shrinking to its own
   content width. That squeezed the whole calendar grid into a ~70px sliver
   next to the title, which is what actually made every mini-month look
   like unstructured jumbled digits instead of a calendar — not a font-size
   or spacing problem, a layout-mode bug specific to the interactive
   (<button>) variant. The static print <div> version never had this bug,
   which is why the print audit earlier this session measured it as clean. */
.year-month-card--btn { display: block; width: 100%; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.year-month-card--btn:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.year-month-card--btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.year-mini-head { font-family: var(--font-display); font-size: 15px; text-align: center; margin-bottom: var(--space-2); color: var(--ink); }
.year-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 11px; }
.year-mini-dow { text-align: center; color: var(--ink-faint); padding: 2px 0; font-size: 9px; letter-spacing: 0.02em; }
.year-mini-cell { text-align: center; padding: 3px 0; color: var(--ink); border-radius: 3px; }
.year-mini-cell--out { color: var(--ink-faint); opacity: 0.35; }
.year-mini-cell--today { background: var(--brand); color: var(--on-brand); font-weight: 700; }

/* Weekly plan — a horizontally-scrolling strip of day columns on phone width
   (each column keeps a workable minimum, per contract rule 10's screen-side
   equivalent: nothing should force a phone into a cramped 7-up grid), a real
   7-column grid from tablet width up where there is room for it. */
.week-grid { display: flex; gap: var(--space-2); overflow-x: auto; margin-top: var(--space-4); padding-bottom: var(--space-2); -webkit-overflow-scrolling: touch; }
.week-day-col { min-width: 150px; flex: 1 0 150px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
@media (min-width: 900px) {
  .week-grid { display: grid; grid-template-columns: repeat(7, 1fr); overflow-x: visible; }
  .week-day-col { min-width: 0; }
}
.week-day-head { padding: var(--space-2); border-bottom: 1px solid var(--line); text-align: center; }
/* Tinted by day-of-week (data-sec = getDay(), 0-6), not a rotating per-
   instance index — Monday reads as "Monday's color" every week, the same
   rhythm a hand-colored weekly spread uses. !important because today
   standing out matters more than the weekday color underneath it, and
   [data-sec="N"] .week-day-head (a class + attribute + descendant class)
   otherwise outranks the plain .week-day-head--today rule regardless of
   source order — same specificity trap already documented in print.css. */
.week-day-col[data-sec="0"] .week-day-head  { background: color-mix(in oklab, var(--sec-0) 16%, var(--surface)); }
.week-day-col[data-sec="1"] .week-day-head  { background: color-mix(in oklab, var(--sec-1) 16%, var(--surface)); }
.week-day-col[data-sec="2"] .week-day-head  { background: color-mix(in oklab, var(--sec-2) 16%, var(--surface)); }
.week-day-col[data-sec="3"] .week-day-head  { background: color-mix(in oklab, var(--sec-3) 16%, var(--surface)); }
.week-day-col[data-sec="4"] .week-day-head  { background: color-mix(in oklab, var(--sec-4) 16%, var(--surface)); }
.week-day-col[data-sec="5"] .week-day-head  { background: color-mix(in oklab, var(--sec-5) 16%, var(--surface)); }
.week-day-col[data-sec="6"] .week-day-head  { background: color-mix(in oklab, var(--sec-6) 16%, var(--surface)); }
.week-day-head--today { background: var(--brand-tint) !important; }
.week-day-name { display: block; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.week-day-date { display: block; font-size: 13px; font-weight: 600; }
.week-day-textarea { flex: 1; min-height: 120px; border: 0; resize: none; padding: var(--space-2); font: inherit; font-size: 13px; background: transparent; color: var(--ink); }
.week-day-textarea:focus { outline: none; background: var(--surface-2); }

/* Daily page */
.day-textarea { width: 100%; min-height: 320px; margin-top: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: var(--space-3); font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); resize: vertical; }
.day-textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.day-mood-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.day-mood-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--space-2) var(--space-2); border-radius: var(--radius-md);
  border: 1.5px dashed var(--line-strong); background: var(--surface); font-size: 20px; min-width: 56px;
}
.day-mood-btn--active { border-style: solid; border-color: var(--mood-color); background: color-mix(in oklab, var(--mood-color) 20%, var(--surface)); }
.day-mood-label { font-size: 10px; color: var(--ink-soft); }

/* Trackers — unlimited, buyer-named. This is the module the competitor's own
   bestseller sells the hardest on LOOKS, not just function: a wall of soft
   pastel radial trackers with a small illustration at the center of each
   ring. Ours is real (it fills itself in, it streaks), so it earns the same
   visual treatment rather than reading as a plain to-do checklist.

   data-sec picks the accent from the --sec-N ladder (contract rule 4: never
   a literal color here) via 11 repeated variants below — a JS inline style
   would be shorter, but would also be exactly the kind of color literal
   outside tokens.css the contract forbids. color-mix() washes that accent at
   low strength for the card's tint instead of a flat saturated fill, which
   is what keeps eleven different tracker colors from fighting each other on
   one page. */
.tracker-list { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-4) 0; }
.tracker-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in oklab, var(--sec-0) 14%, var(--surface)) 0%, var(--surface) 65%);
  border: 1px solid var(--line);
  padding: var(--space-4);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.tracker-card::before {
  content: ''; position: absolute; inset: 0 auto auto auto; top: -30%; right: -10%;
  width: 90px; height: 90px; border-radius: 50%;
  background: color-mix(in oklab, var(--sec-0) 30%, transparent);
  pointer-events: none;
}
.tracker-card[data-sec="1"]  { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-1) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="1"]::before  { background: color-mix(in oklab, var(--sec-1) 30%, transparent); }
.tracker-card[data-sec="2"]  { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-2) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="2"]::before  { background: color-mix(in oklab, var(--sec-2) 30%, transparent); }
.tracker-card[data-sec="3"]  { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-3) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="3"]::before  { background: color-mix(in oklab, var(--sec-3) 30%, transparent); }
.tracker-card[data-sec="4"]  { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-4) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="4"]::before  { background: color-mix(in oklab, var(--sec-4) 30%, transparent); }
.tracker-card[data-sec="5"]  { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-5) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="5"]::before  { background: color-mix(in oklab, var(--sec-5) 30%, transparent); }
.tracker-card[data-sec="6"]  { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-6) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="6"]::before  { background: color-mix(in oklab, var(--sec-6) 30%, transparent); }
.tracker-card[data-sec="7"]  { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-7) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="7"]::before  { background: color-mix(in oklab, var(--sec-7) 30%, transparent); }
.tracker-card[data-sec="8"]  { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-8) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="8"]::before  { background: color-mix(in oklab, var(--sec-8) 30%, transparent); }
.tracker-card[data-sec="9"]  { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-9) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="9"]::before  { background: color-mix(in oklab, var(--sec-9) 30%, transparent); }
.tracker-card[data-sec="10"] { background: linear-gradient(135deg, color-mix(in oklab, var(--sec-10) 14%, var(--surface)) 0%, var(--surface) 65%); } .tracker-card[data-sec="10"]::before { background: color-mix(in oklab, var(--sec-10) 30%, transparent); }

.tracker-head { position: relative; display: flex; align-items: center; gap: var(--space-3); }
.tracker-icon-badge {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: color-mix(in oklab, var(--sec-0) 24%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-0) 40%, transparent);
}
.tracker-card[data-sec="1"] .tracker-icon-badge  { background: color-mix(in oklab, var(--sec-1) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-1) 40%, transparent); }
.tracker-card[data-sec="2"] .tracker-icon-badge  { background: color-mix(in oklab, var(--sec-2) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-2) 40%, transparent); }
.tracker-card[data-sec="3"] .tracker-icon-badge  { background: color-mix(in oklab, var(--sec-3) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-3) 40%, transparent); }
.tracker-card[data-sec="4"] .tracker-icon-badge  { background: color-mix(in oklab, var(--sec-4) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-4) 40%, transparent); }
.tracker-card[data-sec="5"] .tracker-icon-badge  { background: color-mix(in oklab, var(--sec-5) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-5) 40%, transparent); }
.tracker-card[data-sec="6"] .tracker-icon-badge  { background: color-mix(in oklab, var(--sec-6) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-6) 40%, transparent); }
.tracker-card[data-sec="7"] .tracker-icon-badge  { background: color-mix(in oklab, var(--sec-7) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-7) 40%, transparent); }
.tracker-card[data-sec="8"] .tracker-icon-badge  { background: color-mix(in oklab, var(--sec-8) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-8) 40%, transparent); }
.tracker-card[data-sec="9"] .tracker-icon-badge  { background: color-mix(in oklab, var(--sec-9) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-9) 40%, transparent); }
.tracker-card[data-sec="10"] .tracker-icon-badge { background: color-mix(in oklab, var(--sec-10) 24%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sec-10) 40%, transparent); }

.tracker-name { font-weight: 600; font-size: 15px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tracker-streak { font-size: 12px; font-weight: 400; color: var(--ink-soft); }

/* overflow-x:auto here, not justify-content:space-between on a fixed row —
   the card's own overflow:hidden (for the decorative corner blob above) only
   clips content that exceeds the CARD's box, so a child that manages its own
   horizontal scroll is unaffected. Cramming 7 x 44px circles into a narrow
   phone-width card with space-between just clipped days off the edge
   instead of showing all seven — this scrolls them into view like the week
   page's own day strip does. */
.tracker-week { display: flex; gap: var(--space-2); margin-top: var(--space-4); overflow-x: auto; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; }
.tracker-day-col { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tracker-day-letter { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; }

/* 44px minimum touch target — same floor as every other tappable control in
   this app (topbar icon buttons, the tab bar), not a smaller one just
   because there happen to be seven of them in a row. */
.tracker-day {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px dashed var(--line-strong); background: var(--surface);
  font-size: 18px; padding: 0; display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tracker-day--checked {
  border-style: solid; border-color: color-mix(in oklab, var(--sec-0) 55%, transparent);
  background: color-mix(in oklab, var(--sec-0) 22%, var(--surface));
  transform: scale(1.04);
}
.tracker-card[data-sec="1"] .tracker-day--checked  { border-color: color-mix(in oklab, var(--sec-1) 55%, transparent); background: color-mix(in oklab, var(--sec-1) 22%, var(--surface)); }
.tracker-card[data-sec="2"] .tracker-day--checked  { border-color: color-mix(in oklab, var(--sec-2) 55%, transparent); background: color-mix(in oklab, var(--sec-2) 22%, var(--surface)); }
.tracker-card[data-sec="3"] .tracker-day--checked  { border-color: color-mix(in oklab, var(--sec-3) 55%, transparent); background: color-mix(in oklab, var(--sec-3) 22%, var(--surface)); }
.tracker-card[data-sec="4"] .tracker-day--checked  { border-color: color-mix(in oklab, var(--sec-4) 55%, transparent); background: color-mix(in oklab, var(--sec-4) 22%, var(--surface)); }
.tracker-card[data-sec="5"] .tracker-day--checked  { border-color: color-mix(in oklab, var(--sec-5) 55%, transparent); background: color-mix(in oklab, var(--sec-5) 22%, var(--surface)); }
.tracker-card[data-sec="6"] .tracker-day--checked  { border-color: color-mix(in oklab, var(--sec-6) 55%, transparent); background: color-mix(in oklab, var(--sec-6) 22%, var(--surface)); }
.tracker-card[data-sec="7"] .tracker-day--checked  { border-color: color-mix(in oklab, var(--sec-7) 55%, transparent); background: color-mix(in oklab, var(--sec-7) 22%, var(--surface)); }
.tracker-card[data-sec="8"] .tracker-day--checked  { border-color: color-mix(in oklab, var(--sec-8) 55%, transparent); background: color-mix(in oklab, var(--sec-8) 22%, var(--surface)); }
.tracker-card[data-sec="9"] .tracker-day--checked  { border-color: color-mix(in oklab, var(--sec-9) 55%, transparent); background: color-mix(in oklab, var(--sec-9) 22%, var(--surface)); }
.tracker-card[data-sec="10"] .tracker-day--checked { border-color: color-mix(in oklab, var(--sec-10) 55%, transparent); background: color-mix(in oklab, var(--sec-10) 22%, var(--surface)); }
.tracker-day--today { box-shadow: 0 0 0 2px var(--brand-soft); }
.tracker-day--count { font-size: 14px; font-weight: 700; color: var(--ink); font-family: var(--font-body); }
.tracker-day--full { box-shadow: 0 0 0 2px var(--brand); }
/* A directEntry tracker's week cells are a read-only glance (the number is
   typed in directEntryBlock's input below, not tapped here) — solid border
   instead of the dashed "tap me" affordance the button version uses. */
.tracker-day--static { border-style: solid; cursor: default; }
.tracker-template-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 var(--space-4); }

/* Year in Review heat-map (js/pages/trackers.js's yearGrid()) — 12 rows ×
   31 columns, one page per tracker on paper and a read-only modal on
   screen ("View year"). Cheap-variety idea from the design research: same
   entries data monthGrid already reads, colored with the SAME --sec-N a
   tracker's own week-strip/card already uses (see the [data-sec="N"] rules
   below) — the competitor's per-tracker full-year page, at zero extra
   illustration cost. print.css overrides the fill to plain ink for the
   ink-saver default, matching .tracker-print-cell--on's own convention. */
.tracker-year-grid { display: flex; flex-direction: column; gap: 1px; }
.tracker-year-row { display: grid; grid-template-columns: 26px repeat(31, 1fr); gap: 1px; align-items: center; }
.tracker-year-row-label { font-size: 9px; color: var(--ink-soft); }
.tracker-year-cell { aspect-ratio: 1; background: var(--surface-3); border-radius: 1px; }
.tracker-year-cell--empty { background: transparent; }
.tracker-year-cell--on { background: var(--sec-0); }
[data-sec="1"] .tracker-year-cell--on  { background: var(--sec-1); }
[data-sec="2"] .tracker-year-cell--on  { background: var(--sec-2); }
[data-sec="3"] .tracker-year-cell--on  { background: var(--sec-3); }
[data-sec="4"] .tracker-year-cell--on  { background: var(--sec-4); }
[data-sec="5"] .tracker-year-cell--on  { background: var(--sec-5); }
[data-sec="6"] .tracker-year-cell--on  { background: var(--sec-6); }
[data-sec="7"] .tracker-year-cell--on  { background: var(--sec-7); }
[data-sec="8"] .tracker-year-cell--on  { background: var(--sec-8); }
[data-sec="9"] .tracker-year-cell--on  { background: var(--sec-9); }
[data-sec="10"] .tracker-year-cell--on { background: var(--sec-10); }
.icon-picker { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-2); }
.icon-picker-item {
  width: 36px; height: 36px; font-size: 18px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.icon-picker-item:hover { background: var(--surface-2); border-color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .tracker-day { transition: none; } .tracker-day--checked { transform: none; } }

.tracker-add-form { border-top: 1px dashed var(--line-strong); padding-top: var(--space-4); margin-top: var(--space-4); }

/* Mood ring — the competitor's own signature visual, done live. Dots are
   absolutely positioned by inline style (radial trig math lives in mood.js;
   only var() REFERENCES ever land in that inline style, never a literal
   color, so contract rule 4 still holds). */
.mood-ring-wrap { display: flex; justify-content: center; margin-top: var(--space-4); }
.mood-ring { position: relative; margin: 0 auto; }
.mood-ring-dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px dashed var(--line-strong); background: var(--surface);
  font-size: 12px; padding: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
}
.mood-ring-dot--filled { border-style: solid; border-color: color-mix(in oklab, var(--dot-fill) 60%, transparent); background: color-mix(in oklab, var(--dot-fill) 30%, var(--surface)); font-size: 14px; }
.mood-ring-dot--today { box-shadow: 0 0 0 2px var(--brand-soft); }
/* Ring shape skins (Store.settings().moodRingShape, picked in mood.js's
   shapeRow) — same ringPositions() math and mood colors always, only the
   dot's own geometry changes. Deliberately rotation-free (clip-path
   polygons stay axis-aligned) so the mood glyph/day-number text inside
   never needs a counter-rotating wrapper element. 'circle' is the
   built-in default and needs no override here. */
.mood-ring--diamond .mood-ring-dot { border-radius: 0; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.mood-ring--hexagon .mood-ring-dot { border-radius: 0; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.mood-ring--petal .mood-ring-dot { border-radius: 50% 50% 50% 0%; }
.mood-ring--tatami .mood-ring-dot { border-radius: 6px; }
.mood-ring-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; pointer-events: none;
}
.mood-ring-center strong { font-family: var(--font-display); font-size: 15px; }
.mood-ring-center span { font-size: 11px; color: var(--ink-soft); }
.mood-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); font-size: 12px; color: var(--ink-soft); }
.mood-legend-item { display: inline-flex; align-items: center; gap: 4px; }
.mood-legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot-fill); display: inline-block; }

.section-h3 { font-family: var(--font-display); font-size: 16px; margin: var(--space-5) 0 var(--space-2); }

/* Reading — the shelf is the visual payoff, the log underneath is the real
   data it's derived from. data-sec on both the shelf spines and the book
   rows gives each book a consistent identity across the two views. */
.reading-challenge { background: color-mix(in oklab, var(--sec-0) 10%, var(--surface)); border-radius: var(--radius-md); padding: var(--space-3); margin-top: var(--space-3); }
.reading-challenge-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: var(--space-2); }
.reading-challenge .field { margin-top: var(--space-3); }

.bookshelf { display: flex; align-items: flex-end; gap: 6px; overflow-x: auto; padding: var(--space-4) var(--space-2) 0; position: relative; }
/* A wood-grain look built from tokens (never a literal hex, per contract
   rule 4) rather than a flat grey bar — layered repeating-linear-gradient
   "grain" stripes over a warm base tint, so it still recolors correctly
   under every palette instead of looking like real-life oak specifically. */
.bookshelf-board {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 3px,
      color-mix(in oklab, var(--ink) 12%, transparent) 3px, color-mix(in oklab, var(--ink) 12%, transparent) 4px),
    color-mix(in oklab, var(--sec-1) 35%, var(--surface-3));
  box-shadow: 0 1px 0 color-mix(in oklab, var(--ink) 20%, transparent);
}
.book-spine {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: var(--space-2) 4px; border-radius: 4px 4px 2px 2px; z-index: 1;
  background: color-mix(in oklab, var(--sec-0) var(--spine-shade, 55%), var(--surface));
  border: 1px solid color-mix(in oklab, var(--sec-0) calc(var(--spine-shade, 55%) + 15%), transparent);
  box-shadow: 1px 0 2px rgba(0,0,0,0.08);
}
.book-spine[data-sec="1"]  { background: color-mix(in oklab, var(--sec-1) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-1) calc(var(--spine-shade, 55%) + 15%), transparent); }
.book-spine[data-sec="2"]  { background: color-mix(in oklab, var(--sec-2) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-2) calc(var(--spine-shade, 55%) + 15%), transparent); }
.book-spine[data-sec="3"]  { background: color-mix(in oklab, var(--sec-3) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-3) calc(var(--spine-shade, 55%) + 15%), transparent); }
.book-spine[data-sec="4"]  { background: color-mix(in oklab, var(--sec-4) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-4) calc(var(--spine-shade, 55%) + 15%), transparent); }
.book-spine[data-sec="5"]  { background: color-mix(in oklab, var(--sec-5) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-5) calc(var(--spine-shade, 55%) + 15%), transparent); }
.book-spine[data-sec="6"]  { background: color-mix(in oklab, var(--sec-6) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-6) calc(var(--spine-shade, 55%) + 15%), transparent); }
.book-spine[data-sec="7"]  { background: color-mix(in oklab, var(--sec-7) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-7) calc(var(--spine-shade, 55%) + 15%), transparent); }
.book-spine[data-sec="8"]  { background: color-mix(in oklab, var(--sec-8) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-8) calc(var(--spine-shade, 55%) + 15%), transparent); }
.book-spine[data-sec="9"]  { background: color-mix(in oklab, var(--sec-9) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-9) calc(var(--spine-shade, 55%) + 15%), transparent); }
.book-spine[data-sec="10"] { background: color-mix(in oklab, var(--sec-10) var(--spine-shade, 55%), var(--surface)); border-color: color-mix(in oklab, var(--sec-10) calc(var(--spine-shade, 55%) + 15%), transparent); }
.spine-title { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%; }
.spine-rating { font-size: 9px; color: var(--ink-soft); margin-top: 2px; }

/* flex-wrap, with the title forced onto its own line (flex-basis:100%) —
   title + a select + 5 star buttons + a delete button add up to well over a
   phone's width as one row (measured ~460px needed at a 362px viewport, the
   5th star landing off-screen entirely). Wrapping means the controls always
   stay reachable instead of quietly extending the page. */
.book-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2); border-left: 3px solid var(--sec-0); border-bottom: 1px solid var(--line); }
.book-row[data-sec="1"]  { border-left-color: var(--sec-1); }
.book-row[data-sec="2"]  { border-left-color: var(--sec-2); }
.book-row[data-sec="3"]  { border-left-color: var(--sec-3); }
.book-row[data-sec="4"]  { border-left-color: var(--sec-4); }
.book-row[data-sec="5"]  { border-left-color: var(--sec-5); }
.book-row[data-sec="6"]  { border-left-color: var(--sec-6); }
.book-row[data-sec="7"]  { border-left-color: var(--sec-7); }
.book-row[data-sec="8"]  { border-left-color: var(--sec-8); }
.book-row[data-sec="9"]  { border-left-color: var(--sec-9); }
.book-row[data-sec="10"] { border-left-color: var(--sec-10); }
.book-row-title { flex: 1 1 100%; font-size: 14px; }
.book-row-author { color: var(--ink-soft); font-weight: 400; }
.book-row-episode { font-size: 11px; color: var(--ink-faint); margin-left: 6px; font-weight: 600; }
.book-row-status { width: auto; padding: 4px var(--space-2); font-size: 12px; }
.book-row-stars { display: flex; white-space: nowrap; }
.reading-filter-tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-2) 0 var(--space-3); }

/* Self-care */
.quote-card { position: relative; background: color-mix(in oklab, var(--sec-2) 12%, var(--surface)); border-radius: var(--radius-md); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6); margin-top: var(--space-4); }
.quote-mark { position: absolute; left: var(--space-2); top: -6px; font-family: var(--font-display); font-size: 40px; color: color-mix(in oklab, var(--sec-2) 60%, transparent); line-height: 1; }
/* Affirmation of the Day reuses .quote-card's shape with a different
   --sec-N tint so the two rotating daily lines read as related but
   distinct at a glance, not a duplicate of the same card. */
.affirmation-card { background: color-mix(in oklab, var(--sec-6) 12%, var(--surface)); }
.affirmation-card .quote-mark { font-size: 26px; color: color-mix(in oklab, var(--sec-6) 70%, transparent); }
.quote-text { font-family: var(--font-display); font-style: italic; font-size: 15px; margin: 0; }

.reflection-card { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.reflection-textarea { width: 100%; min-height: 64px; resize: vertical; }

.bucket-list { margin-top: var(--space-2); }
.bucket-row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.bucket-check { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; border: 1.5px dashed var(--line-strong); background: var(--surface); padding: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.bucket-row--done .bucket-check { border-style: solid; border-color: color-mix(in oklab, var(--brand) 60%, transparent); background: color-mix(in oklab, var(--brand) 18%, var(--surface)); }
.bucket-text { flex: 1; font-size: 14px; }
.bucket-row--done .bucket-text { color: var(--ink-faint); text-decoration: line-through; }
.menu-domain { font-weight: 600; color: var(--brand-strong); }

/* Savings jars — the competitor's own named illustration, done as a real
   fill level instead of a static picture. */
.jar-list { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); }
.jar-block { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 130px; }
.jar { position: relative; width: 84px; height: 108px; }
.jar-lid { position: absolute; top: 10px; left: -5px; right: -5px; height: 10px; border-radius: 3px; background: var(--sec-0); }
.jar-block[data-sec="1"] .jar-lid  { background: var(--sec-1); } .jar-block[data-sec="1"] .jar-fill  { background: color-mix(in oklab, var(--sec-1) 55%, transparent); }
.jar-block[data-sec="2"] .jar-lid  { background: var(--sec-2); } .jar-block[data-sec="2"] .jar-fill  { background: color-mix(in oklab, var(--sec-2) 55%, transparent); }
.jar-block[data-sec="3"] .jar-lid  { background: var(--sec-3); } .jar-block[data-sec="3"] .jar-fill  { background: color-mix(in oklab, var(--sec-3) 55%, transparent); }
.jar-block[data-sec="4"] .jar-lid  { background: var(--sec-4); } .jar-block[data-sec="4"] .jar-fill  { background: color-mix(in oklab, var(--sec-4) 55%, transparent); }
.jar-block[data-sec="5"] .jar-lid  { background: var(--sec-5); } .jar-block[data-sec="5"] .jar-fill  { background: color-mix(in oklab, var(--sec-5) 55%, transparent); }
.jar-block[data-sec="6"] .jar-lid  { background: var(--sec-6); } .jar-block[data-sec="6"] .jar-fill  { background: color-mix(in oklab, var(--sec-6) 55%, transparent); }
.jar-block[data-sec="7"] .jar-lid  { background: var(--sec-7); } .jar-block[data-sec="7"] .jar-fill  { background: color-mix(in oklab, var(--sec-7) 55%, transparent); }
.jar-block[data-sec="8"] .jar-lid  { background: var(--sec-8); } .jar-block[data-sec="8"] .jar-fill  { background: color-mix(in oklab, var(--sec-8) 55%, transparent); }
.jar-block[data-sec="9"] .jar-lid  { background: var(--sec-9); } .jar-block[data-sec="9"] .jar-fill  { background: color-mix(in oklab, var(--sec-9) 55%, transparent); }
.jar-block[data-sec="10"] .jar-lid { background: var(--sec-10); } .jar-block[data-sec="10"] .jar-fill { background: color-mix(in oklab, var(--sec-10) 55%, transparent); }
.jar-body { position: absolute; bottom: 0; left: 0; right: 0; height: 92px; border: 2px solid var(--line-strong); border-top: none; border-radius: 4px 4px 18px 18px; overflow: hidden; background: var(--surface-2); }
/* Debt jars reuse the same fill math (see money.js's jar()) but need to
   read as "shrinking a balance", not "growing savings", at a glance — a
   dashed outline (same visual cue Bucket List's undone dashed circle
   already uses for "not real/complete yet") does that without a second
   color system fighting the per-goal --sec-N variety above. */
.jar-block--debt .jar-body { border-style: dashed; }
.jar-fill { position: absolute; bottom: 0; left: 0; right: 0; background: color-mix(in oklab, var(--sec-0) 55%, transparent); transition: height var(--dur) var(--ease); }
@media (prefers-reduced-motion: reduce) { .jar-fill { transition: none; } }
.jar-name { font-weight: 600; font-size: 13px; text-align: center; }
.jar-amounts { font-size: 11px; color: var(--ink-soft); }
.jar-due { font-size: 10px; color: var(--ink-faint); text-align: center; margin: 0; line-height: 1.3; }
.jar-due--overdue { color: var(--danger); }
/* flex-wrap, not a fixed row — three buttons (+$10 / +$50 / remove) next to
   each other is the exact width class that overflowed in reading.js's
   book-row and self-care's earlier draft; wrapping here from the start. */
.jar-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 2px; }

/* Savings Quest — the dice-path game (money.js). One uniform --brand
   accent rather than a per-instance --sec-N ladder like jars/trackers:
   most buyers will only ever run one or two quests at a time, so per-
   instance hue variety matters less than it does for a list of 5-10
   trackers, and this stays simpler for it. */
.quest-card { background: color-mix(in oklab, var(--brand) 6%, var(--surface)); border-radius: var(--radius-md); padding: var(--space-3); margin-top: var(--space-3); }
.quest-board { display: flex; flex-wrap: wrap; gap: 3px; margin: var(--space-2) 0; }
.quest-space {
  width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 10px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
}
.quest-space--past { background: color-mix(in oklab, var(--brand) 35%, var(--surface)); border-color: var(--brand); color: var(--ink); }
.quest-space--current { box-shadow: 0 0 0 2px var(--brand); font-weight: 700; }
.quest-space--double { background: color-mix(in oklab, var(--sakura) 25%, var(--surface)); font-weight: 700; color: var(--ink); }
.quest-space--double.quest-space--past { background: color-mix(in oklab, var(--brand) 35%, color-mix(in oklab, var(--sakura) 25%, var(--surface))); }
.quest-space--finish { background: color-mix(in oklab, var(--brand) 45%, var(--surface)); font-weight: 700; color: var(--ink); }

/* Spending log */
.expense-total { font-weight: 600; margin: var(--space-3) 0; }
.checkbox-field { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--ink-soft); margin: var(--space-2) 0; }
.expense-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2); border-bottom: 1px solid var(--line); }
.expense-desc { flex: 1 1 100%; font-size: 14px; }
.expense-date { font-size: 11px; color: var(--ink-faint); }
.expense-cat { font-size: 11px; color: var(--ink-soft); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; }
.expense-amount { font-weight: 600; margin-left: auto; }

/* Category breakdown (money.js) — reuses the generic .progress-track/-fill
   already built for the reading challenge and storage meter, same reasoning
   as always: one bar component, not a new one per feature. */
.category-breakdown { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0; }
.cat-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: var(--space-2); font-size: 12px; }
.cat-row-name { color: var(--ink-soft); }
.cat-row-amount { color: var(--ink-soft); white-space: nowrap; }

/* Travel */
.trip-card { border-left: 4px solid var(--sec-0); border-radius: var(--radius-md); background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--space-3); margin-top: var(--space-3); }
.trip-card[data-sec="1"]  { border-left-color: var(--sec-1); }
.trip-card[data-sec="2"]  { border-left-color: var(--sec-2); }
.trip-card[data-sec="3"]  { border-left-color: var(--sec-3); }
.trip-card[data-sec="4"]  { border-left-color: var(--sec-4); }
.trip-card[data-sec="5"]  { border-left-color: var(--sec-5); }
.trip-card[data-sec="6"]  { border-left-color: var(--sec-6); }
.trip-card[data-sec="7"]  { border-left-color: var(--sec-7); }
.trip-card[data-sec="8"]  { border-left-color: var(--sec-8); }
.trip-card[data-sec="9"]  { border-left-color: var(--sec-9); }
.trip-card[data-sec="10"] { border-left-color: var(--sec-10); }
.trip-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.trip-destination { font-weight: 600; font-size: 15px; }

.japan-tips { background: color-mix(in oklab, var(--sec-8) 10%, var(--surface)); border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-5); }
.japan-tip { font-size: 13px; margin-top: var(--space-2); }

/* Settings — the theme picker is the whole point: "designs CAN be changed"
   as a real, clickable answer to the competitor's "cannot be edited". */
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.palette-swatch { display: flex; align-items: center; gap: var(--space-2); justify-content: flex-start; text-align: left; }
.palette-swatch--active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.palette-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); flex: none; }
.mode-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* Goals & Dates */
.date-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.date-row-icon {
  font-size: 15px; width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; background: var(--surface-2);
}
.date-row-label { flex: 1 1 auto; font-size: 14px; }
.date-row-when { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
/* A birthday gets the sakura tint always (it's a fixed, warm identity);
   "soon"/"today" are urgency states layered on top of either icon type,
   so a one-time date close by pops exactly the same way a birthday does. */
.date-row--birthday .date-row-icon { background: color-mix(in oklab, var(--sakura) 22%, var(--surface)); }
.date-row--soon .date-row-when { color: var(--brand); font-weight: 600; }
.date-row--today .date-row-icon { background: color-mix(in oklab, var(--brand) 28%, var(--surface)); }
.date-row--today .date-row-when { color: var(--brand); font-weight: 700; }

.goal-category {
  display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 500;
  padding: 1px 8px; border-radius: 999px; color: var(--ink-soft); background: var(--surface-3);
}
.bucket-row[data-sec="0"] .goal-category  { background: color-mix(in oklab, var(--sec-0) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-0) 70%, var(--ink)); }
.bucket-row[data-sec="1"] .goal-category  { background: color-mix(in oklab, var(--sec-1) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-1) 70%, var(--ink)); }
.bucket-row[data-sec="2"] .goal-category  { background: color-mix(in oklab, var(--sec-2) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-2) 70%, var(--ink)); }
.bucket-row[data-sec="3"] .goal-category  { background: color-mix(in oklab, var(--sec-3) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-3) 70%, var(--ink)); }
.bucket-row[data-sec="4"] .goal-category  { background: color-mix(in oklab, var(--sec-4) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-4) 70%, var(--ink)); }
.bucket-row[data-sec="5"] .goal-category  { background: color-mix(in oklab, var(--sec-5) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-5) 70%, var(--ink)); }
.bucket-row[data-sec="6"] .goal-category  { background: color-mix(in oklab, var(--sec-6) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-6) 70%, var(--ink)); }
.bucket-row[data-sec="7"] .goal-category  { background: color-mix(in oklab, var(--sec-7) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-7) 70%, var(--ink)); }
.bucket-row[data-sec="8"] .goal-category  { background: color-mix(in oklab, var(--sec-8) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-8) 70%, var(--ink)); }
.bucket-row[data-sec="9"] .goal-category  { background: color-mix(in oklab, var(--sec-9) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-9) 70%, var(--ink)); }
.bucket-row[data-sec="10"] .goal-category { background: color-mix(in oklab, var(--sec-10) 22%, var(--surface)); color: color-mix(in oklab, var(--sec-10) 70%, var(--ink)); }

/* Vision board — real uploaded photos, not a printable blank rectangle. */
.vision-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; }
.vision-card { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.vision-img-wrap { aspect-ratio: 1; background: var(--surface-3); }
.vision-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vision-caption-input { width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 12px; padding: var(--space-1) var(--space-2); }
.vision-add-tile {
  aspect-ratio: 1; border-radius: var(--radius-md); border: 1.5px dashed var(--line-strong);
  background: var(--surface-2); color: var(--ink-soft); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.vision-add-tile:hover { border-color: var(--brand); color: var(--brand); }
.vision-add-icon { font-size: 28px; line-height: 1; }
.vision-remove { position: absolute; top: 4px; right: 4px; background: color-mix(in oklab, var(--surface) 80%, transparent); }
.vision-upload-label { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* The ink surface sits absolutely over its host page, at a fixed aspect ratio
   so its normalized 0..1 stroke coordinates always mean the same thing on
   reload regardless of viewport width. */
.ink-surface-wrap { position: relative; width: 100%; aspect-ratio: 3 / 4; margin-top: var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface); }
.ink-surface { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.ink-toolbar { display: flex; gap: var(--space-2); margin-top: var(--space-2); flex-wrap: wrap; }
.ink-tool { padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 12px; }
.ink-tool--active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }

/* Monthly Bingo — a self-generated 5x5 board (js/pages/bingo.js), the free
   center square always checked. Cells size via 1fr + aspect-ratio so the
   same grid scales cleanly from a phone screen down to A5 print width with
   no separate print rule needed. */
.bingo-win { text-align: center; font-weight: 600; color: var(--brand); background: var(--brand-tint); border-radius: var(--radius-md); padding: var(--space-2); margin: var(--space-3) 0; }
.bingo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: var(--space-3) 0; }
.bingo-cell {
  aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 10px; padding: 4px; text-align: center; line-height: 1.15;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.bingo-cell--on { background: color-mix(in oklab, var(--brand) 25%, var(--surface)); border-color: var(--brand); font-weight: 600; }
.bingo-cell--free { background: color-mix(in oklab, var(--sakura) 25%, var(--surface)); border-color: var(--sakura); font-weight: 700; }
.bingo-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-3); margin-top: var(--space-2); }
.bingo-ideas-cat h4 { font-family: var(--font-display); font-size: 13px; margin: 0 0 4px; }
.bingo-ideas-cat ul { margin: 0; padding-left: 18px; font-size: 12px; color: var(--ink-soft); }
