/* Panora Life — the home grid (js/home.js).
 *
 * Phone: two columns. Food and Exercise are wide (both columns), the rest are
 * squares, two to a row. Wide screen (a PC browser, a tablet): four columns,
 * so the two wide tiles sit side by side and the squares make one row under
 * them - the same grid, more room, nothing to maintain twice.
 *
 * Draws only with family tokens, so it follows the accent and dark mode.
 */
.dom-wins .home-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px;
  margin:6px 0 18px;
}
/* ---------- the tiles: the app icons, grown up ----------
   Craig, 2026-10-07: "keep the style we used for the app icons - rounded
   corners - shadow - 3d look/feel - colorful". The icons are a diagonal
   gradient square with a soft light in the top corner and a cream mark; each
   tile is that, in its own colour, so the grid reads at a glance. The colours
   are FIXED per part of the app (not the accent), which is what lets a tile be
   found by colour. Cream text on every one of them clears 4.5:1. */
.dom-wins .tile{
  --c1:#f07a35; --c2:#c4420c;                     /* ember, the family's own */
  position:relative; overflow:hidden; isolation:isolate;
  display:flex; flex-direction:column; align-items:flex-start; gap:3px;
  min-height:132px; padding:14px 15px; text-align:left;
  border:0; border-radius:22px;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255,255,255,.26), rgba(255,255,255,0) 55%),
    linear-gradient(150deg, var(--c1), var(--c2));
  color:#fbf6ee; font:inherit; cursor:pointer;
  /* The 3D: a lit top edge, a darker lower edge, and a shadow that lifts it. */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -3px 0 rgba(0,0,0,.14),
    0 8px 18px -6px color-mix(in srgb, var(--c2) 70%, transparent),
    0 2px 4px rgba(0,0,0,.12);
  -webkit-tap-highlight-color:transparent;
  transition:transform .12s ease, box-shadow .12s ease;
}
.dom-wins .tile[data-tile="exercise"]{ --c1:#ef4f5f; --c2:#a81d35; }
.dom-wins .tile[data-tile="sleep"]{    --c1:#5a6fe0; --c2:#2b2f8f; }
.dom-wins .tile[data-tile="still"]{    --c1:#25b3a5; --c2:#0b6f68; }
.dom-wins .tile[data-tile="focus"]{    --c1:#b35ec0; --c2:#6c2a86; }
.dom-wins .tile[data-tile="know"]{     --c1:#e2a63a; --c2:#9a5d0a; }

.dom-wins .tile.wide{ grid-column:span 2; min-height:116px; }
.dom-wins .tile:active{
  transform:translateY(2px) scale(.985);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.14), 0 3px 8px -4px rgba(0,0,0,.3);
}
.dom-wins .tile:focus-visible{ outline:3px solid var(--ink); outline-offset:3px; }

.dom-wins .tile-head{ display:flex; align-items:center; gap:9px; margin-bottom:5px; }
.dom-wins .tile-ico{
  width:34px; height:34px; flex:none; padding:5px; border-radius:11px;
  background:rgba(255,255,255,.16); box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
  fill:none; stroke:#fbf6ee; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round;
}
.dom-wins .tile-ico .fill{ fill:#fbf6ee; }
.dom-wins .tile-ico .thin{ stroke-width:1.4; }
.dom-wins .tile-ico .faint{ opacity:.6; }
.dom-wins .tile-ico .fainter{ opacity:.35; }
.dom-wins .tile-label{ font-weight:700; font-size:15.5px; letter-spacing:.01em; }
.dom-wins .tile-value{
  font-weight:800; font-size:22px; line-height:1.15; letter-spacing:-.01em;
  font-variant-numeric:tabular-nums; text-shadow:0 1px 2px rgba(0,0,0,.15);
}
.dom-wins .tile.wide .tile-value{ font-size:25px; }
.dom-wins .tile-sub{ font-size:13px; color:rgba(251,246,238,.86); line-height:1.3; }

/* Today's calories against the reference, when one is set. */
.dom-wins .tile-bar{
  display:block; width:100%; height:7px; margin-top:5px; border-radius:4px;
  background:rgba(0,0,0,.18); overflow:hidden;
}
.dom-wins .tile-bar > span{ display:block; height:100%; background:#fbf6ee; border-radius:4px; }

/* Logged today: a tick, plus the words for anyone not reading the mark. */
.dom-wins .tile-state{
  margin-top:auto; padding-top:7px; display:flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:600; color:rgba(251,246,238,.82);
}
.dom-wins .tile-state .wins-tick{
  width:18px; height:18px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800; border:1.5px solid rgba(251,246,238,.7); color:transparent;
}
.dom-wins .tile-state.on .wins-tick{ background:#fbf6ee; border-color:#fbf6ee; color:var(--c2); }
.dom-wins .tile-state.on{ color:#fbf6ee; }

/* Not moved in yet: still its colour, so the grid is the shape and palette it
   will be, but flatter and quieter. */
.dom-wins .tile.soon{ filter:saturate(.55); opacity:.62; box-shadow:inset 0 1px 0 rgba(255,255,255,.25); }

@media (min-width: 720px){
  .dom-wins .home-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; }
}
@media (prefers-reduced-motion: reduce){ .dom-wins .tile{ transition:none; } .dom-wins .tile:active{ transform:none; } }

/* Wins sits above the grid on the same screen, so its card is tightened to keep
   the tiles near the top of a phone. */
.dom-wins .wins-hero{ padding:14px 16px 12px; }
.dom-wins .wins-total .num{ font-size:42px; }
.dom-wins .wins-sub{ margin-top:2px; }
.dom-wins .wins-day .dot{ width:24px; height:24px; }
.dom-wins .wins-nudge{ margin:4px 0 12px; font-size:14px; }

/* A wide screen: the home page gets a sensible reading width instead of
   stretching four tiles across a whole monitor. */
@media (min-width: 720px){
  .screen.dom-wins{ max-width:980px; margin-left:auto; margin-right:auto; }
}

/* ---------- today at a glance: the Panora Score (2026-10-15) ----------
   js/score.js. The wheel sits on a sky that follows the time of day, frosted
   tracks, 1.5 px even gaps, a bezel of ticks (Craig's settings). */
.dom-wins .today-card{ margin:0 0 14px; }
.dom-wins .score-card{
  border-radius:28px; padding:16px 14px 14px; color:#fff; display:grid; justify-items:center; gap:12px;
  box-shadow:0 22px 44px -30px rgba(40,20,80,.6);
}
.dom-wins .score-card.sky-morning{ background:radial-gradient(120% 85% at 50% 0%, #f6a46e 0%, #e17b80 44%, #7a6fd0 100%); }
.dom-wins .score-card.sky-afternoon{ background:radial-gradient(120% 85% at 50% 0%, #6aaeea 0%, #6e9fe0 45%, #e8a575 100%); }
.dom-wins .score-card.sky-evening{ background:radial-gradient(120% 85% at 50% 0%, #e9846a 0%, #a5568f 48%, #3c3a8f 100%); }
.dom-wins .score-card.sky-night{ background:radial-gradient(120% 85% at 50% 0%, #3a3f9a 0%, #2b2468 50%, #15122e 100%); }
/* The number, its word, and one bar per part (Craig, 2026-11-18: "we can keep the score but
   lets kill the wheel"). */
.dom-wins .score-board{ width:min(380px, 100%); display:grid; justify-items:center; gap:12px; }
.dom-wins .score-hubbtn{ border:0; background:none; color:inherit; font:inherit; display:grid; justify-items:center; gap:4px; padding:4px 18px; border-radius:16px; cursor:pointer; }
.dom-wins .score-hubbtn:focus-visible{ outline:2px solid currentColor; outline-offset:2px; }
.dom-wins .score-num{ font:800 64px/1 var(--font-ui); letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
/* 8.6 drew at about 7px on a phone; too small to read (review 2026-11-09, decision 0136). */
.dom-wins .score-band{ font:700 12.5px var(--font-ui); letter-spacing:.1em; text-transform:uppercase; opacity:.85; }
.dom-wins .score-rows{ width:100%; display:grid; gap:8px; }
.dom-wins .score-row{
  width:100%; box-sizing:border-box; display:grid; grid-template-columns:30px minmax(0,1fr) auto; grid-template-rows:auto 8px;
  gap:5px 10px; align-items:center; padding:9px 12px; border-radius:16px; text-align:left; cursor:pointer;
  border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.13); color:inherit; font:inherit;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
}
.dom-wins .score-row:active{ background:rgba(255,255,255,.22); }
.dom-wins .score-row:focus-visible{ outline:2px solid currentColor; outline-offset:2px; }
.dom-wins .sr-ic{ grid-row:1 / span 2; width:30px; height:30px; border-radius:9px; display:grid; place-items:center; }
.dom-wins .sr-ic svg{ width:17px; height:17px; fill:none; stroke:#fff; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.dom-wins .sr-name{ font-weight:700; font-size:15px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dom-wins .sr-pts{ font-weight:700; font-size:13px; font-variant-numeric:tabular-nums; opacity:.9; white-space:nowrap; }
.dom-wins .sr-pts.sr-open{ opacity:.72; font-weight:600; }
.dom-wins .sr-bar{ grid-column:2 / -1; height:8px; border-radius:99px; background:rgba(255,255,255,.2); overflow:hidden; }
.dom-wins .sr-bar i{ display:block; height:100%; border-radius:99px; }
.dom-wins .sr-bar i.enter{ transform-origin:left center; animation:score-grow .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes score-grow{ from{ transform:scaleX(0); } to{ transform:none; } }
.dom-wins .score-detail{
  width:100%; box-sizing:border-box; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.24); border-radius:20px;
  padding:11px 13px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:2px 12px; align-items:center;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
}
.dom-wins .sd-ic{ grid-row:1 / span 2; width:36px; height:36px; border-radius:11px; display:grid; place-items:center; }
.dom-wins .sd-ic.sd-day{ background:rgba(255,255,255,.22); }
.dom-wins .sd-ic svg{ width:19px; height:19px; fill:none; stroke:#fff; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.dom-wins .sd-t{ font-weight:700; font-size:15px; }
.dom-wins .sd-s{ grid-column:2; font-size:12.5px; opacity:.92; }
.dom-wins .sd-pts{ grid-row:1 / span 2; grid-column:3; font:800 22px/1 var(--font-ui); letter-spacing:-.02em; text-align:right; font-variant-numeric:tabular-nums; }
.dom-wins .sd-pts small{ display:block; font-size:10px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; opacity:.85; margin-top:3px; }
.dom-wins .score-detail[data-go]{ cursor:pointer; }
.dom-wins .sd-go{ grid-column:1 / -1; justify-self:start; margin-top:6px; border:0; background:#fff; color:#2c2546; border-radius:99px; padding:7px 13px; font:700 13px var(--font-ui); cursor:pointer; }
.dom-wins .sd-go:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ .dom-wins .sr-bar i.enter{ animation:none; } }
.dom-wins .today-next{
  width:100%; display:flex; justify-content:space-between; align-items:center; gap:10px;
  margin:12px 0 0; padding:12px 14px; border-radius:12px; border:0; text-align:left;
  background:var(--accent-wash, rgba(196,63,11,.1)); color:var(--accent-text, var(--accent));
  font:600 15px var(--font-ui); cursor:pointer;
}
.dom-wins p.today-next.done{ cursor:default; color:var(--ink-muted); background:var(--surface-quiet); }

/* ---------- the one welcome (js/welcome.js, audit p-onboard) ----------
   A card first on Home, then a sheet of three short steps. */
.dom-wins .welcome-card{
  background:linear-gradient(135deg, var(--accent-hi, var(--accent)), var(--accent-lo, var(--accent)));
  color:var(--accent-ink, #fff); border-radius:20px; padding:18px 18px 14px; margin:0 0 14px;
  box-shadow:var(--shadow-card);
}
.dom-wins .welcome-eyebrow{ margin:0; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; opacity:.85; }
.dom-wins .welcome-title{ margin:4px 0 4px; font-size:21px; font-weight:700; }
.dom-wins .welcome-sub{ margin:0 0 12px; font-size:14px; line-height:1.4; opacity:.92; }
.dom-wins .welcome-card .welcome-btns{ display:flex; gap:8px; }
.dom-wins .welcome-card .btn{ flex:1; }
.dom-wins .welcome-card .welcome-go{ background:#fff; color:var(--accent-text, var(--accent)); border-color:#fff; }
.dom-wins .welcome-card .btn-quiet{ background:transparent; color:inherit; border-color:rgba(255,255,255,.6); }

.welcome-sheet{
  position:fixed; inset:0; z-index:96; background:rgba(0,0,0,.45);
  display:flex; align-items:flex-end; justify-content:center;
}
/* A new step takes the focus for screen readers (expert round 4); the buttons keep their ring. */
.welcome-card-big:focus{ outline:none; }
.welcome-card-big{
  width:100%; max-width:520px; max-height:calc(92vh / var(--tz, 1)); overflow:auto; background:var(--surface); color:var(--ink);
  border-radius:20px 20px 0 0; padding:18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -6px 24px rgba(0,0,0,.25);
}
.welcome-card-big h2{ font-size:22px; margin:6px 0 6px; }
.welcome-card-big .muted{ margin:0 0 14px; font-size:14px; line-height:1.45; color:var(--ink-muted); }
.welcome-dots{ display:flex; gap:6px; justify-content:center; }
.welcome-dots span{ width:7px; height:7px; border-radius:50%; background:var(--edge-strong, #ccc); }
.welcome-dots span.on{ background:var(--accent); width:20px; border-radius:4px; }
.welcome-parts{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
/* "What do you want help with?" (js/welcome.js, 2026-10-16): ticked rows, one line each. */
.welcome-wants{ display:flex; flex-direction:column; gap:8px; margin:0 0 16px; }
.welcome-want{ display:flex; align-items:flex-start; gap:12px; width:100%; text-align:left; padding:11px 12px; min-height:56px; border-radius:14px;
  border:1.5px solid var(--edge-strong, #ccc); background:transparent; color:var(--ink); font:inherit; cursor:pointer; }
.welcome-want.on{ border-color:var(--accent); background:var(--accent-wash, rgba(46,125,70,.08)); }
.ww-box{ flex:none; width:24px; height:24px; margin-top:1px; border-radius:7px; border:2px solid var(--edge-strong, #bbb); display:grid; place-items:center;
  font-size:15px; font-weight:800; line-height:1; color:var(--accent-ink, #fff); }
.welcome-want.on .ww-box{ background:var(--accent); border-color:var(--accent); }
.ww-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ww-text b{ font-size:16px; }
.ww-text span{ font-size:13.5px; color:var(--ink-muted); line-height:1.35; }
.welcome-lang{ display:inline-flex; gap:4px; margin:0 0 6px; flex-wrap:wrap; }
.welcome-lang button{ border:0; background:transparent; color:var(--ink-muted); padding:6px 10px; border-radius:999px; font:600 13px var(--font-ui, inherit); cursor:pointer; }
.welcome-lang button.on{ background:var(--accent-wash, rgba(46,125,70,.1)); color:var(--accent-text, var(--accent)); }
.welcome-health{ width:100%; margin:0 0 6px; }
.welcome-btns .btn[disabled]{ opacity:.55; cursor:default; }
.welcome-card-big{ max-height:calc(calc(100dvh / var(--tz, 1)) - 24px); overflow-y:auto; }
/* The buttons stay in reach while the list scrolls. */
.welcome-card-big .welcome-btns{ position:sticky; bottom:calc(-18px - env(safe-area-inset-bottom, 0px)); background:var(--surface); padding:10px 0 calc(18px + env(safe-area-inset-bottom, 0px)); margin-bottom:calc(-18px - env(safe-area-inset-bottom, 0px)); }
.welcome-part{
  min-height:44px; padding:8px 16px; border-radius:999px; border:1.5px solid var(--edge-strong, #ccc);
  background:transparent; color:var(--ink-muted); font:600 15px var(--font-ui, inherit); cursor:pointer;
}
.welcome-part.on{ border-color:var(--accent); background:var(--accent-wash, rgba(196,63,11,.1)); color:var(--accent-text, var(--accent)); }
.welcome-units{ display:inline-flex; border:1px solid var(--edge-strong, #ccc); border-radius:10px; overflow:hidden; margin:0 0 12px; }
.welcome-units button{ border:0; background:transparent; color:var(--ink-muted); padding:8px 14px; font:600 14px var(--font-ui, inherit); cursor:pointer; }
.welcome-units button.on{ background:var(--accent); color:var(--accent-ink, #fff); }
.welcome-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.welcome-grid label, .welcome-wide{ display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:600; color:var(--ink-muted); }
.welcome-wide{ margin-top:10px; }
.welcome-card-big input, .welcome-card-big select{
  font:inherit; font-size:16px; font-weight:400; color:var(--ink); padding:10px 12px; min-height:44px;
  border-radius:10px; border:1px solid var(--edge-strong, #ccc); background:var(--canvas, transparent); width:100%; box-sizing:border-box;
}
.welcome-preview{ margin:12px 0 14px; font-weight:700; color:var(--accent-text, var(--accent)); }
.welcome-summary{ margin:0 0 12px; padding-left:18px; line-height:1.7; }
.welcome-card-big .welcome-btns{ display:flex; justify-content:space-between; gap:10px; margin-top:6px; }
.welcome-card-big .welcome-btns .btn{ flex:1; }
/* More below: a fade over the list's last line and a "More ↓" (welcome.js cue). */
.welcome-card-big.has-more .welcome-btns::before{
  content:''; position:absolute; left:0; right:0; bottom:100%; height:40px; pointer-events:none;
  background:linear-gradient(to bottom, transparent, var(--surface));
}
.welcome-more{
  position:absolute; left:50%; bottom:calc(100% + 2px); transform:translateX(-50%); z-index:1;
  min-height:44px; padding:8px 16px; border-radius:999px; border:1px solid var(--edge-strong, #ccc);
  background:var(--surface); color:var(--ink); font:600 13px var(--font-ui, inherit); cursor:pointer;
}
.welcome-more[hidden]{ display:none; }
@media (min-width: 720px){ .welcome-sheet{ align-items:center; } .welcome-card-big{ border-radius:20px; } }
.welcome-card-big .welcome-go{ background:var(--accent); color:var(--accent-ink, #fff); border-color:var(--accent); }

/* ---------- reminders, in the Settings sheet (js/remind.js) ---------- */
#reminders-host .rem-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--edge); }
#reminders-host .rem-on{ display:flex; gap:10px; align-items:center; flex:1; min-width:0; font-size:15px; }
#reminders-host .rem-on input{ width:20px; height:20px; accent-color:var(--accent); flex:none; }
#reminders-host .rem-time{ font:inherit; font-size:15px; padding:6px 8px; border-radius:8px; border:1px solid var(--edge-strong, #ccc); background:transparent; color:inherit; }
#btn-rem-calendar{ margin-top:12px; }
#btn-rem-device{ margin-top:8px; }

/* Calendar address, in the Settings sheet (js/calendar.js). */
.cal-field{ display:flex; flex-direction:column; gap:6px; margin:8px 0 10px; font-size:14px; font-weight:600; }
.legal-links{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:4px 0 12px; font-size:14px; font-weight:600; }
.legal-links a{ color:var(--accent-text, var(--accent)); text-underline-offset:3px; }
.crash-row{ flex-direction:row; align-items:center; gap:10px; }
.crash-preview{ margin:4px 0 12px; }
.crash-preview summary{ cursor:pointer; font-size:14px; font-weight:600; color:var(--accent-text, var(--accent)); padding:6px 0; }
.crash-dl{ margin:6px 0 8px; padding:10px 12px; border-radius:12px; background:var(--card, rgba(127,127,127,.08)); font-size:13px; }
.crash-dl dt{ font-weight:600; opacity:.75; margin-top:6px; }
.crash-dl dt:first-child{ margin-top:0; }
.crash-dl dd{ margin:2px 0 0; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:12px; overflow-wrap:anywhere; }
.cal-field input{ font:inherit; font-weight:400; font-size:15px; padding:10px 12px; border-radius:10px; border:1px solid var(--edge-strong, #ccc); background:transparent; color:inherit; }
#btn-cal-forget{ margin-top:8px; }
.cal-help summary{ cursor:pointer; font-weight:600; }
.cal-help p{ margin:6px 0; }

/* Settings sections of a part that is switched off (js/welcome.js, Rest.parts). */
[data-part-off]{ display:none !important; }

/* ---------- With Panora's AI: the AI cards, folded until a code is set up (js/wins.js) ---------- */
.ai-fold{ margin:14px 0 4px; padding:4px 14px; }
.ai-fold > summary{ min-height:44px; display:flex; align-items:center; font-weight:700; cursor:pointer; list-style:none; }
.ai-fold > summary::-webkit-details-marker{ display:none; }
.ai-fold > summary::after{ content:'›'; margin-left:8px; transition:transform .2s ease; }
.ai-fold[open] > summary::after{ transform:rotate(90deg); }
.ai-fold-what{ margin:0 0 6px; font-size:14px; line-height:1.45; }
.ai-fold .say-card{ background:transparent; box-shadow:none; border:0; padding:4px 0 8px; margin:6px 0 0; }
.ai-fold .rv-open{ margin:6px 0 10px; }
#wins-home.sky .ai-fold{ color:var(--sky-ink, #fff); }
#wins-home.sky .ai-fold .ai-fold-what{ color:inherit; opacity:.85; }

/* ---------- Say it once (js/sayit.js) ---------- */
.say-card{ padding:12px 12px 8px; margin:14px 0 4px; }
.say-label{ display:block; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin:0 2px 8px; }
.say-row{ display:flex; gap:8px; align-items:flex-end; }
.say-row textarea{ flex:1 1 auto; min-width:0; resize:none; font:inherit; font-size:16px; line-height:1.35;
  border-radius:14px; padding:10px 12px; border:1px solid var(--hairline, rgba(0,0,0,.15));
  background:var(--surface, #fff); color:var(--ink, #111); min-height:48px; }
/* A save that has not reached the phone's storage (js/store.js, decision 0151): stays until it has. */
.save-banner{ position:fixed; left:0; right:0; top:0; z-index:9000; display:flex; gap:10px; align-items:center;
  padding:calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background:#8a1f11; color:#fff; font-size:14px; line-height:1.35; }
.save-banner span{ flex:1; }
.save-banner .btn{ flex:none; width:auto; background:#fff; color:#8a1f11; padding:8px 12px; min-height:44px; }
.say-btns{ display:flex; flex-direction:column; gap:6px; }
.say-btn{ width:44px; height:44px; border-radius:50%; border:0; display:grid; place-items:center; cursor:pointer;
  background:var(--surface-quiet, rgba(0,0,0,.06)); color:inherit; }
.say-btn.on{ background:#c0392b; color:#fff; }
/* Opened by a link: the microphone waits for a tap, and shows where to tap. */
.say-btn.say-armed{ box-shadow:0 0 0 3px var(--accent); }
.say-go{ background:linear-gradient(180deg,var(--accent-hi),var(--accent-lo)); color:var(--accent-ink, #fff); }
.say-go:disabled{ opacity:.55; cursor:default; }
.say-note{ min-height:1.2em; margin:6px 2px 2px; font-size:13px; }
.say-list{ list-style:none; margin:10px 0 6px; padding:0; display:grid; gap:8px; }
.say-item{ display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:10px; align-items:start; cursor:pointer;
  padding:10px 12px; border-radius:14px; background:var(--surface-quiet, rgba(0,0,0,.05)); }
.say-item input{ width:22px; height:22px; margin:1px 0 0; accent-color:var(--accent); }
.say-part{ font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; padding-top:3px; width:6.6em; overflow-wrap:anywhere; }
.say-what{ font-size:15px; line-height:1.35; overflow-wrap:anywhere; }
.say-extra{ display:block; font-size:12.5px; opacity:.75; margin-top:2px; }
.say-skipped{ margin-top:4px; }
/* On the sky the card is glass, so its type and field follow the sky. */
#wins-home.sky .say-card{ color:var(--sky-ink, #fff); }
#wins-home.sky .say-row textarea{ background:rgba(255,255,255,.92); color:#1d2b24; border-color:rgba(255,255,255,.5); }
#wins-home.sky .say-row textarea::placeholder{ color:#5d6b63; }
#wins-home.sky .say-btn{ background:rgba(255,255,255,.22); color:var(--sky-ink, #fff); }
#wins-home.sky .say-go{ background:#fff; color:#22453a; }
html[data-sky="sunrise"] #wins-home.sky .say-go{ color:#5b4fae; }
html[data-sky="glacier"] #wins-home.sky .say-go{ color:#2a40a6; }
#wins-home.sky .say-btn.on{ background:#c0392b; color:#fff; }


/* The morning note (js/morning.js, decision 0026). */
.morning-card{ padding:16px; margin:14px 0 4px; display:grid; gap:10px; }
.morning-card .morning-eyebrow{ margin:0 2px !important; }
.morning-note{ margin:0; font-size:17px; line-height:1.45; }
.morning-lead{ margin:0; }
.morning-go{ justify-self:start; min-height:44px; }
.morning-step{ display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%;
  min-height:48px; padding:10px 14px; border-radius:14px; border:1px solid var(--edge-strong, rgba(0,0,0,.15));
  background:var(--surface, transparent); color:inherit; font:inherit; font-weight:600; text-align:left; cursor:pointer; }
.morning-step-p{ font-weight:500; opacity:.75; white-space:nowrap; }
.morning-by{ margin:0; }
#wins-home.sky .morning-card{ color:var(--sky-ink, #fff); }

/* The evening check-in (js/sayit.js, decision 0026): the reply, and the question in the box. */
.say-reply{ font-size:17px; line-height:1.45; margin:0 0 12px; }
.say-asking .say-label{ text-transform:none; letter-spacing:0; font-size:17px; font-weight:700; }
.say-skip{ margin:2px 0 0; min-height:44px; padding:0 2px; background:none; border:0; font:inherit; font-size:15px; font-weight:600; color:var(--accent-text, var(--accent)); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }

/* A brand-new person (decision 0039): the day, the welcome and the privacy line, nothing
   else, until the welcome is done or waved off. */
html.home-new #wins-body .home-left > *:not(.sky-date):not(.sky-line):not(.welcome-card),
html.home-new #wins-body .home-right > *:not(.home-privacy){ display:none !important; }
html.home-new #wins-body .welcome-card{ margin-top:18px; }
/* On an iPad, the welcome in one centred column, not a corner (round 2, Lena). */
html.home-new #wins-home.sky #wins-body{ display:block; max-width:620px; margin:0 auto; }
/* Install day: no AI card and no Your week yet (decision 0039, round 2). */
html.home-day-one #wins-body #ai-fold,
html.home-day-one #wins-body #rv-open{ display:none !important; }
/* The welcome's one primary button, filled in every theme: in dark it was dark orange on
   near-black, quieter than "Not now" (first five minutes, Jordan). */
#wins-home .welcome-card .welcome-go{ background:var(--accent) !important; color:var(--accent-ink, #fff) !important; border-color:var(--accent) !important; }

/* Simple Home (decision 0028): the day and its score, then three big buttons; the rest
   of the right-hand column is hidden, and the score's bonus row and its explainer too. */
/* Simple Home keeps at most one card beyond its own, so it still fits one screen: Your path
   while it offers the next part, else the coach when it has something to answer or act on
   (never the daily saying). Panel run 5: Tom had Sleep alone for four weeks, Daniel no coach. */
html.simple-home #wins-body .today-card{ display:none !important; }
html.simple-home .simple-two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
html.simple-home .simple-two .simple-go{ font-size:17px; padding:0 14px; }
html.simple-home #wins-body .home-right > *:not(.simple-log):not(.home-privacy):not(.bare-pager):not(#rv-open):not(.hn-has):not(.pa-offer):not(.co-act):not(.shift-card){ display:none !important; }
html.simple-home #wins-body .home-right:has(> .pa-offer) > .co-home{ display:none !important; }
html.simple-home #wins-body .co-home .co-home-sub{ display:none; }
/* Compact there, and the dial gives up room while a card shows, so one screen still holds it. */
html.simple-home #wins-body .co-home{ padding:10px 44px 10px 14px; margin:6px 0 0; }
html.simple-home #wins-body .co-home .sg-eyebrow{ display:none; }
html.simple-home #wins-body .co-home .co-btns{ display:flex; gap:8px; margin-top:8px; }
html.simple-home #wins-body .co-home .co-btns .btn{ min-height:40px; padding:6px 14px; }
html.simple-home #wins-home.sky:has(.co-act, .pa-offer, .shift-card) .score-num{ font-size:44px; }
html.simple-home #wins-home.sky:has(.co-act, .pa-offer, .shift-card) .simple-go{ min-height:48px; }
html.simple-home #wins-home.sky:has(.co-act, .pa-offer, .shift-card) .simple-log{ gap:6px; margin:6px 0 0; }
html.simple-home #wins-body .score-bonus,
html.simple-home #wins-body .score-open,
html.simple-home #wins-body .score-rest,
html.simple-home #wins-body .score-how-wrap,
html.simple-home #wins-body .today-next{ display:none !important; }
.simple-log{ display:grid; gap:12px; margin:18px 0 8px; }
.simple-go{ display:flex; justify-content:space-between; align-items:center; width:100%; min-height:64px;
  padding:0 20px; border-radius:18px; border:1px solid var(--edge-strong, rgba(0,0,0,.15));
  background:var(--surface, #fff); color:var(--ink, inherit); font:inherit; font-size:20px; font-weight:700; cursor:pointer; }
#wins-home.sky .simple-go{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.24); color:var(--sky-ink, #fff); }
html.mono-light #wins-home.sky .simple-go{ background:#ffffff; border-color:rgba(0,0,0,.12); color:var(--sky-ink, #111); }

/* Simple Home on one screen, down to a small phone: the number alone (its buttons are the
   parts' bars), shorter buttons. */
html.simple-home #wins-body .score-rows{ display:none !important; }
html.simple-home .simple-log{ gap:10px; margin:12px 0 4px; }
html.simple-home .simple-go{ min-height:clamp(52px, calc(7.5vh / var(--tz, 1)), 64px); font-size:19px; }
html.simple-home #wins-body .home-privacy{ font-size:12px; margin-top:6px; }
/* The privacy line in the sky's own ink, not the page's muted grey: grey on the night sky was
   unreadable for three of the panel, Tom (70) among them (panel run 5). */
#wins-home.sky .home-privacy{ color:var(--sky-ink, #fff); opacity:.85; }
#wins-home.sky .home-privacy .rv-link{ color:inherit; text-decoration:underline; }

/* Bare bones in every part (js/bare.js, decision 0028): the part's screen shows only its
   panel, which fills the screen without scrolling; the sub-navigation is hidden too. A part's
   sheets (<dialog>) are left alone: hidden while open, a modal sheet froze the app (deep check
   2026-10-24). */
html.simple-home #sleep-home:not(.bare-full) > :not(.bare-panel):not(dialog),
html.simple-home #food-home:not(.bare-full) > :not(.bare-panel):not(dialog),
html.simple-home #exercise-home:not(.bare-full) > :not(.bare-panel):not(dialog),
html.simple-home #still-home:not(.bare-full) > :not(.bare-panel):not(dialog),
html.simple-home #focus-home:not(.bare-full) > :not(.bare-panel):not(dialog),
html.simple-home #unplug-home:not(.bare-full) > :not(.bare-panel):not(dialog),
html.simple-home #money-home:not(.bare-full) > :not(.bare-panel):not(dialog){ display:none !important; }
html.bare-view .subnav, html.bare-view #partbar{ display:none !important; }
html.bare-view{ --tabbar-h: 0px; }
html.bare-view .screen{ padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px)) !important; }
.bare-panel{ display:flex; flex-direction:column; justify-content:space-between; gap:18px;
  padding:12px 0 4px; box-sizing:border-box; }
.bare-main{ display:grid; gap:8px; margin-top:28px; }
/* Wraps rather than being cut: "Nenhum treino ai..." lost the word that carried the
   meaning (deep check 2026-10-24). */
.bare-value{ margin:0; font-size:clamp(34px, 9vw, 44px); font-weight:800; line-height:1.1; letter-spacing:-.01em;
  overflow-wrap:break-word; text-wrap:balance; }
.bare-sub{ margin:0; font-size:18px; opacity:.75; }
.bare-fact{ margin:6px 0 0; font-size:18px; font-weight:600; }
/* The button, its link and the pager sit at the foot of every part, at the same place. */
.bare-acts{ display:grid; gap:6px; margin-top:auto; }
.screen > .bare-panel .bare-go{ width:100%; min-height:60px; padding:0 20px; border:0; border-radius:16px;
  background:var(--accent); color:var(--accent-ink, #fff); font:700 19px var(--font-ui, system-ui); cursor:pointer; }
.screen > .bare-panel .bare-all{ justify-self:center; background:none; border:0; padding:0 8px; font:600 16px var(--font-ui, system-ui);
  min-height:44px; color:var(--accent-text, var(--accent)); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
/* Food and Exercise draw their own page edges, so the panel brings its own. */
/* Every part's screen the same: one set of page edges, and a header with only the part's
   name, its two buttons and the date (no suggestion, no day arrows, no number twice). */
html.bare-view #sleep-home, html.bare-view #food-home, html.bare-view #exercise-home, html.bare-view #still-home,
html.bare-view #focus-home, html.bare-view #unplug-home, html.bare-view #money-home{
  padding-top:0 !important; padding-left:20px !important; padding-right:20px !important; }
html.bare-view .parthead .ph-sg, html.bare-view .parthead .ph-arw, html.bare-view .parthead .ph-right{ display:none !important; }
html.bare-view #exercise-home{ background:transparent; }
.bare-pager{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.bare-pager .bare-arrow{ display:grid; place-items:center; padding:0; width:48px; height:48px; border-radius:50%; border:1px solid var(--edge-strong, rgba(0,0,0,.15));
  background:transparent; color:inherit; font:400 26px/1 var(--font-ui, system-ui); cursor:pointer; }
.bare-pager .bare-arrow:disabled{ opacity:.25; cursor:default; }
.bare-dots{ display:flex; gap:7px; align-items:center; }
.bare-dot{ width:8px; height:8px; border-radius:50%; background:currentColor; opacity:.25; }
.bare-dot.on{ opacity:.9; width:20px; border-radius:4px; }
#wins-home.sky .bare-pager{ color:var(--sky-ink, #fff); margin-top:8px; }
#wins-home.sky .bare-arrow{ border-color:rgba(255,255,255,.3); }
html.mono-light #wins-home.sky .bare-arrow{ border-color:rgba(0,0,0,.15); }
/* A short slide as a swipe lands (not with reduced motion). */
@media (prefers-reduced-motion: no-preference){
  html[data-bare-dir='next'] .bare-panel, html[data-bare-dir='next'].simple-home #wins-body{ animation:bare-in-next .22s ease-out; }
  html[data-bare-dir='prev'] .bare-panel, html[data-bare-dir='prev'].simple-home #wins-body{ animation:bare-in-prev .22s ease-out; }
  /* The whole app: the screen itself slides in. */
  html[data-bare-dir='next']:not(.bare-view):not(.simple-home) .screen.active{ animation:bare-in-next .22s ease-out; }
  html[data-bare-dir='prev']:not(.bare-view):not(.simple-home) .screen.active{ animation:bare-in-prev .22s ease-out; }
}
@keyframes bare-in-next{ from{ transform:translateX(28px); opacity:.4; } to{ transform:none; opacity:1; } }
@keyframes bare-in-prev{ from{ transform:translateX(-28px); opacity:.4; } to{ transform:none; opacity:1; } }

/* What works for you (js/works.js, decision 0030). */
.works-intro{ margin:4px 0 14px; color:var(--ink-muted); line-height:1.45; }
.works-empty{ margin:18px 0; font-weight:600; }
.works-head{ margin:20px 0 8px; font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-muted); }
.works-head.works-yours, .works-head.works-tested{ color:var(--accent-text, var(--accent)); }
.works-card{ background:var(--surface); border:1px solid var(--edge); border-radius:16px; padding:14px 16px; margin:0 0 10px; }
.works-line{ margin:0; font-size:16px; font-weight:600; line-height:1.4; }
.works-how{ margin:6px 0 0; font-size:13px; }
.works-btns{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:10px; }
.works-btns .works-test{ min-height:44px; }
.works-btns .works-no{ background:none; border:0; padding:0 4px; min-height:44px; font:600 14px var(--font-ui, system-ui);
  color:var(--ink-muted); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.works-foot{ margin:18px 0 8px; font-size:13px; line-height:1.45; }

/* One gap between Home's cards (Craig 2026-10-28, from his phone: "wider and narrower spacing").
   The cards' own margins were 2, 4, 12 and 14 px, so Your morning and Your path sat 4 px above
   Weight and 14 px above the rest. Every card now has the same 14 px above and below (siblings'
   margins overlap, so the gap is 14); a section heading keeps 20 above and 8 to what it heads,
   and the tiles sit 14 apart both ways. Simple Home keeps its own tighter gaps, so it
   still fits one phone screen. */
html:not(.simple-home) #wins-home.sky #wins-body .home-right > :is(.sky-glass, .rv-open, .sky-advice, .home-grid){ margin-top:14px; margin-bottom:14px; }
html:not(.simple-home) #wins-home.sky #wins-body .home-right > .sky-head{ margin-top:20px; margin-bottom:8px; }
html:not(.simple-home) #wins-home.sky #wins-body .home-right > .sky-head + *{ margin-top:0; }
html:not(.simple-home) #wins-home.sky #wins-body .sky-advice{ gap:14px; }

/* Issue 4 (decision 0064, js/shift.js): a shift worker's day on Home. The step for now stands out;
   done steps fade; the reason under it says where the advice comes from. Simple Home keeps only
   now and next, so Dwayne's one screen still fits. */
#wins-home.sky .shift-card{ padding:14px 16px; }
.shift-steps{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.shift-steps li{ display:grid; grid-template-columns:64px minmax(0,1fr); gap:8px; align-items:baseline; font-size:14px; line-height:1.35; }
.shift-steps li.past{ opacity:.5; }
.shift-steps li.now{ background:rgba(255,255,255,.16); border-radius:10px; padding:5px 8px; margin:0 -8px; font-weight:600; }
.shift-at{ font-size:12px; opacity:.85; font-variant-numeric:tabular-nums; }
.shift-why{ font-size:12px; opacity:.8; margin:8px 0 0; }
.shift-swap{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:10px; font-size:14px; }
.shift-swap .pill{ min-height:36px; padding:4px 14px; border-radius:999px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.08); color:inherit; font:inherit; cursor:pointer; }
.shift-swap .pill.on{ background:rgba(255,255,255,.92); color:#1b1f4a; font-weight:700; }
html.mono-light #wins-home.sky .shift-swap .pill.on{ background:#1b1f4a; color:#fff; }
html.simple-home #wins-body .shift-steps li:not(.now):not(.soon),
html.simple-home #wins-body .shift-why{ display:none; }
html.simple-home #wins-body .shift-card{ padding:8px 14px; margin:6px 0 0; }
html.simple-home #wins-body .shift-card .say-label{ margin-bottom:4px; }
html.simple-home #wins-body .shift-steps li.now{ padding:0; margin:0; background:none; }
html.simple-home #wins-body .shift-steps:has(li.now) li.soon{ display:none; }
/* Simple Home: the one step for now, in full width; the swap lives in Sleep's Tonight card. */
html.simple-home #wins-body .shift-swap,
html.simple-home #wins-body .shift-at{ display:none; }
html.simple-home #wins-body .shift-steps li{ grid-template-columns:minmax(0,1fr); }
/* Settings: the week of shifts. */
.rota-grid{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin:6px 0 10px; }
.rota-day{ display:grid; gap:2px; justify-items:center; padding:8px 0 6px; border-radius:10px; border:1px solid var(--line, rgba(0,0,0,.15)); background:transparent; color:inherit; font:inherit; cursor:pointer; min-height:48px; }
.rota-day .rd{ font-size:11px; opacity:.7; }
.rota-day .rk{ font-size:12px; font-weight:700; }
.rota-day.today{ outline:2px solid currentColor; outline-offset:1px; }
.rota-day.k-day{ background:rgba(227,167,59,.22); }
.rota-day.k-eve{ background:rgba(217,112,122,.22); }
.rota-day.k-night{ background:rgba(108,116,232,.26); }
.rota-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:8px 0; }
.rota-row.rota-times{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:4px 8px; }
.rota-times > span:first-child{ grid-column:1 / -1; font-weight:600; }
.rota-times input{ min-height:40px; width:100%; min-width:0; box-sizing:border-box; padding-left:6px; padding-right:6px; }

/* One tap to log, from the first screen (Craig, 2026-11-01). Simple Home has its own big buttons. */
.home-quick{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:8px; margin:12px 0 4px; }
.home-quick-b{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:64px; padding:8px 4px; border-radius:16px; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.08); color:var(--sky-ink,#fff); font:inherit; font-size:13px; font-weight:600; line-height:1.15; cursor:pointer; }
.home-quick-b .tile-ico{ width:24px; height:24px; }
html.simple-home #wins-body .home-quick{ display:none; }

/* Simple mode's buttons fill as the part's day does (Craig, 2026-11-01). */
.simple-go{ position:relative; overflow:hidden; isolation:isolate; }
.simple-go::before{ content:''; position:absolute; inset:0 auto 0 0; width:var(--fill,0%); background:var(--part,transparent); opacity:.62; z-index:-1; transition:width .4s ease; }
#wins-home.sky .simple-go > span{ text-shadow:0 1px 2px rgba(0,0,0,.28); }
html.mono-light #wins-home.sky .simple-go > span{ text-shadow:none; }
@media (prefers-reduced-motion: reduce){ .simple-go::before{ transition:none; } }
html.mono-light #wins-home.sky .home-quick-b{ background:#ffffff; border-color:rgba(0,0,0,.14); color:#111; }
html[data-text-size='1.6'] .home-quick, html[data-text-size='2'] .home-quick{ grid-auto-flow:row; grid-template-columns:repeat(3,minmax(0,1fr)); }
html[data-text-size='2'] .home-quick{ grid-template-columns:repeat(2,minmax(0,1fr)); }
html[data-text-size='1.6'] .simple-two, html[data-text-size='2'] .simple-two{ grid-template-columns:1fr !important; }

/* ---------- The first run (js/firstrun.js, decision 0087) ----------
   Full screen on Panora's Sunrise sky, dimmed so white text reads; the welcome's
   own sheet then opens over the same sky (.fr-under). */
.firstrun{ position:fixed; inset:0; z-index:95; overflow-y:auto; color:#fff;
  background:linear-gradient(rgba(10,8,24,.34), rgba(10,8,24,.34)), linear-gradient(180deg, #e0806a 0%, #a5568f 34%, #4a3f95 66%, #262257 100%); }
.fr-page{ min-height:100%; max-width:520px; margin:0 auto; box-sizing:border-box; display:flex; flex-direction:column; gap:14px;
  padding:calc(14px + env(safe-area-inset-top, 0px)) 22px calc(22px + env(safe-area-inset-bottom, 0px)); font-family:var(--font-ui, system-ui); }
.fr-top{ display:flex; align-items:center; justify-content:space-between; min-height:44px; }
.fr-spacer{ width:44px; }
.fr-back{ width:44px; height:44px; border-radius:22px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.22);
  background:rgba(16,12,40,.35); color:#fff; cursor:pointer; padding:0; }
.fr-back svg{ width:20px; height:20px; }
.fr-dots{ display:flex; gap:6px; }
.fr-dots span{ width:7px; height:7px; border-radius:4px; background:rgba(255,255,255,.4); }
.fr-dots span.on{ width:22px; background:#fff; }
.fr-lang{ display:flex; gap:4px; margin-left:auto; padding:3px; border-radius:999px; background:rgba(16,12,40,.35); }
.fr-lang button{ min-height:36px; padding:0 12px; border:0; border-radius:999px; background:transparent; color:#fff; font:600 14px var(--font-ui, system-ui); cursor:pointer; }
.fr-lang button.on{ background:#fff; color:#2b1f5c; }
.fr-grow{ flex:1 1 auto; min-height:8px; }
.fr-hero{ display:flex; flex-direction:column; align-items:center; gap:20px; text-align:center; }
.fr-wheel{ width:128px; height:128px; color:#fff; }
.firstrun h1{ margin:0; font:700 30px/1.15 var(--font-ui, system-ui); letter-spacing:-.02em; outline:none; }
.fr-hero h1{ font-size:40px; }
.fr-lede{ margin:0; font-size:17px; line-height:1.4; color:rgba(255,255,255,.93); }
.fr-hero .fr-lede{ font-size:19px; max-width:300px; }
.fr-card{ display:flex; flex-direction:column; gap:10px; padding:16px; border-radius:20px; background:rgba(16,12,40,.4); border:1px solid rgba(255,255,255,.18); }
.fr-card.fr-hi{ background:rgba(16,12,40,.52); border:2px solid rgba(255,255,255,.72); }
.fr-card h2{ margin:0; display:flex; align-items:center; gap:10px; font:700 20px var(--font-ui, system-ui); }
.fr-card p{ margin:0; font-size:15px; line-height:1.4; color:rgba(255,255,255,.92); }
.fr-card.fr-rows{ gap:16px; }
.fr-pill{ padding:4px 10px; border-radius:999px; background:#fff; color:#2b1f5c; font:700 12px var(--font-ui, system-ui); letter-spacing:.02em; }
.fr-pill.fr-soft{ background:rgba(255,255,255,.22); color:#fff; }
.fr-ticks{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.fr-ticks li{ display:flex; gap:8px; align-items:flex-start; font-size:15px; line-height:1.3; }
.fr-ticks li::before{ content:'\2713'; flex:none; width:18px; height:18px; border-radius:9px; background:rgba(255,255,255,.92); color:#2b1f5c;
  font:800 12px/18px var(--font-ui, system-ui); text-align:center; }
.fr-btn{ display:flex; align-items:center; justify-content:center; width:100%; min-height:54px; padding:0 18px; border-radius:16px; border:0;
  font:600 17px var(--font-ui, system-ui); cursor:pointer; }
.fr-card .fr-btn{ min-height:46px; font-size:16px; border-radius:12px; }
.fr-primary{ background:#fff; color:#2b1f5c; }
.fr-glass{ background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.4); color:#fff; }
.fr-btn[disabled]{ opacity:.5; cursor:default; }
.fr-link{ min-height:44px; border:0; background:none; color:#fff; font:600 16px var(--font-ui, system-ui); cursor:pointer; }
.fr-fine{ margin:0; text-align:center; font-size:13px; line-height:1.4; color:rgba(255,255,255,.82); }
.fr-irow{ display:flex; gap:14px; align-items:flex-start; }
.fr-ico{ flex:none; width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.16); }
.fr-ico svg{ width:22px; height:22px; }
.fr-irow h3{ margin:0 0 3px; font:700 16px/1.3 var(--font-ui, system-ui); }
.fr-irow p{ margin:0; font-size:14.5px; line-height:1.4; color:rgba(255,255,255,.92); }
.fr-irow p a, .fr-chk a{ color:#fff; text-decoration:underline; font-weight:600; }
.fr-field{ display:flex; flex-direction:column; gap:6px; font:600 14px var(--font-ui, system-ui); }
.fr-field input{ min-height:50px; padding:0 14px; border-radius:12px; border:1px solid rgba(255,255,255,.4); background:rgba(16,12,40,.45); color:#fff; font:400 17px var(--font-ui, system-ui); }
.fr-chk{ display:flex; gap:12px; align-items:flex-start; min-height:44px; font-size:15.5px; line-height:1.4; }
.fr-chk input{ flex:none; width:24px; height:24px; margin:0; accent-color:#fff; }
.firstrun.fr-under{ pointer-events:none; }
.welcome-ask{ margin:4px 0 6px; font-weight:700; font-size:15px; }
@media (prefers-reduced-motion: no-preference){ html:not(.reduce-motion) .fr-page{ animation:fr-in .28s ease-out; } }
@keyframes fr-in{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
/* The sweep (2026-11-02): last night's faces on Home were white on white in light themes. */
#wins-home.sky .sleep-quick-face{ border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.08); color:var(--sky-ink,#fff); }
#wins-home.sky .sleep-quick-face .slbl{ color:inherit; }
html.mono-light #wins-home.sky .sleep-quick-face{ background:#ffffff; border-color:rgba(0,0,0,.14); color:#111; }
/* ...and at double text the tools' names were cut ("Sle", "Foo"): one to a row. */
html[data-text-size='2'] .dom-wins .home-grid{ grid-template-columns:minmax(0, 1fr); }
/* A brand-new Home: nothing logged yet, so nothing to rest from or look back on. */
.home-new .score-rest [data-rest="ask"], .home-new #rv-open{ display:none; }

/* How did this week feel? (js/feel.js, decision 0160) */
.feel-sheet .feel-list { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 14px; }
.feel-sheet .feel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.feel-sheet .sr-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.feel-sheet .sr-ic svg { width: 15px; height: 15px; fill: none; stroke: #1f1d2b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.feel-sheet .feel-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.feel-sheet .feel-pick {
  min-height: 44px; padding: 4px 2px; border-radius: 12px; border: 1px solid var(--edge-strong, rgba(0, 0, 0, 0.15));
  background: var(--surface, #fff); color: var(--ink, inherit); font: 600 12.5px var(--font-ui); line-height: 1.15; cursor: pointer;
}
.feel-sheet .feel-pick[aria-checked='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.feel-sheet .feel-vs { display: flex; gap: 18px; margin: 0; font-size: 14.5px; }
.feel-sheet .feel-gap { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; }
.feel-sheet .feel-note { font-size: 12.5px; margin-top: 10px; }
