/* Today's page (Sophia 2026-11-18): the console, readiness rings, goals sheet, Food and Workouts tiles and the drawn tile
   icons. Moved out of health.css so Fitagotchi's Health page loads the same file and both look the same. */
/* Food and Workouts tiles on Today (today.js, 2026-11-11): the day's list inside the open tile, like Body's rows. */
.td-list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}
.td-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--mu-groove,#0000000a);font-size:13px}
.td-list li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.td-list li small{display:block;margin:2px 0 0;font-size:11px;font-weight:500;opacity:.7;white-space:nowrap}
.td-list li b{flex:none;font-size:13px}
.td-list .td-empty,.td-list .td-more{justify-content:center;font-weight:500;opacity:.75}
.metric .td-go{margin-top:12px;text-decoration:none;color:inherit}
/* With Food and Workouts there are eight faders; keep them on one row. */
html .wb-faders{grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}
/* The "opens" arrow on Today's tiles: a thin drawn arrow in the tile's colour, not the ↗ emoji iOS shows. */
.metric-name .mn-go{display:inline-grid;place-items:center;vertical-align:-1px}
.mn-go svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
/* Training readiness as one circle of rings (Sophia 2026-11-11), like Activity rings: one ring per part, the
   outermost counts most, each filled by how well that part scored, the score in the middle. Rows below are its key. */
.wb-ready-rings{position:relative;width:min(240px,100%);aspect-ratio:1;justify-self:center}
.wb-ready-rings svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.wb-ring-part{cursor:pointer;transition:opacity .3s}
.wb-ring-part.dim{opacity:.35}
.wb-ring-track,.wb-ring-fill{fill:none;stroke-width:13}
.wb-ring-track{stroke:color-mix(in srgb,var(--c) 22%,var(--mu-groove))}
.wb-ring-fill{stroke:var(--c);stroke-linecap:round;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--c) 55%,transparent));transition:stroke-dasharray .8s ease}
.wb-ring-part.on .wb-ring-fill{filter:drop-shadow(0 0 8px var(--c))}
.wb-ready-rings .wb-ready-read{position:absolute;inset:0;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;pointer-events:none}
.wb-ready-rings .wb-ready-score{font-size:32px}
.wb-ready-rings .wb-ready-zone{font-size:8px;letter-spacing:.16em}
.wb-ready.empty .wb-ready-rings svg{opacity:.35}
.wb-part{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:8px 10px}
.wb-part:hover,.wb-part[aria-expanded="true"]{background:color-mix(in srgb,var(--c) 14%,transparent)}
.wb-part-name{display:flex;align-items:center;gap:8px;white-space:nowrap}
.wb-part-name em{margin-left:0}
.wb-part-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--c);box-shadow:0 0 6px color-mix(in srgb,var(--c) 70%,transparent)}
.wb-part-pct{font-size:11px;font-weight:900;text-align:right;color:var(--c)}
html:not([data-mode="dark"]) .wb-part-pct{color:color-mix(in srgb,var(--c) 65%,var(--mu-ink))}
@media(max-width:560px){.wb-ready-rings{width:min(240px,78%)}}

/* More info: the rows and the why fold away under the tip. */
.wb-ready-more{justify-self:start;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:0;border-radius:999px;background:var(--mu-knob);box-shadow:var(--mu-knob-shadow);color:var(--mu-ink);font-size:11px;font-weight:900}
.wb-ready-more svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s}
.wb-ready-more[aria-expanded="true"] svg{transform:rotate(180deg)}
.wb-ready-more:focus-visible{outline:2px solid var(--zone);outline-offset:2px}
.wb-ready-fold{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease}
.wb-ready-fold>div{min-height:0;overflow:hidden;display:grid;gap:8px}
.wb-ready.wb-ready-open .wb-ready-fold{grid-template-rows:1fr}
.wb-ready:not(.wb-ready-open) .wb-ready-fold>div{visibility:hidden;transition:visibility 0s .4s}

/* The rings run round: from empty, one after another, outermost first. */
.wb-ring-fill{transition:stroke-dasharray 1.1s cubic-bezier(.3,.9,.3,1) calc(var(--i,0) * .14s)}
.wb-sweep-from .wb-ring-fill{stroke-dasharray:0 100!important;transition:none}
.wb-report-waiting{visibility:hidden}

/* Morning report pop-up, in the console's hardware look. */
.wb-report{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:24px 16px;background:color-mix(in srgb,var(--mu-deep) 55%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);animation:wbreportin .35s ease both}
.wb-report-card{width:min(360px,100%);display:grid;justify-items:center;gap:10px;padding:22px 20px 20px;border-radius:26px;background:var(--mu-panel);box-shadow:var(--mu-lift),0 0 0 1px var(--mu-rim),0 24px 60px #00000040;color:var(--mu-ink);text-align:center;animation:wbreportcard .5s cubic-bezier(.3,1.3,.5,1) both}
.wb-report-eyebrow{font-size:9px;font-weight:900;letter-spacing:.22em;color:var(--mu-dim)}
.wb-report-card h2{margin:0;font:900 22px/1.15 Nunito,'DM Sans',sans-serif;color:var(--mu-ink)}
.wb-report-rings{position:relative;width:min(230px,70vw);aspect-ratio:1;margin:6px 0 2px}
.wb-report-rings svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.wb-report-rings .wb-ready-read{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.wb-report-rings .wb-ready-score{font-size:34px}
.wb-report-rings .wb-ready-zone{font-size:8px;letter-spacing:.16em}
.wb-report-tip{margin:0;font-size:14px;font-weight:800;line-height:1.35}
.wb-report-key{list-style:none;margin:2px 0 4px;padding:0;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.wb-report-key li{display:flex;align-items:center;gap:7px;min-width:0;padding:8px 10px;border-radius:12px;background:var(--mu-deep);box-shadow:var(--mu-groove-in);font-size:11px;text-align:left}
.wb-report-key i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--c);box-shadow:0 0 6px var(--c)}
.wb-report-key span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:var(--mu-dim)}
.wb-report-key b{font-weight:900;white-space:nowrap}
.wb-report-go{width:100%;margin-top:4px;padding:13px 18px;border:0;border-radius:999px;background:var(--mu-ink);color:var(--mu-deep);font-size:14px;font-weight:900;box-shadow:0 6px 16px #00000030}
.wb-report-go:active{transform:scale(.98)}
.wb-report-leaving{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;transition:background .5s,backdrop-filter .5s}
.wb-report-leaving .wb-report-card{background:transparent;box-shadow:none;transition:background .3s,box-shadow .3s}
.wb-report-leaving .wb-report-card>:not(.wb-report-rings){opacity:0;transition:opacity .2s}
.wb-report-leaving .wb-report-rings .wb-ready-read{opacity:0;transition:opacity .3s .2s}
@keyframes wbreportin{from{opacity:0}}
@keyframes wbreportcard{from{opacity:0;transform:translateY(24px) scale(.94)}}
@media(prefers-reduced-motion:reduce){.wb-report,.wb-report-card{animation:none}.wb-ring-fill{transition:none}}
.wb-report{padding-top:max(70px,calc(env(safe-area-inset-top) + 56px));overflow-y:auto}
.wb-report-rings{width:min(230px,70vw,36vh)}
@media(max-width:360px){.wb-report-key{grid-template-columns:1fr;gap:4px}.wb-report-key li{padding:6px 10px}.wb-report-card{padding:18px 16px 16px;gap:8px}.wb-report-card h2{font-size:19px}}
@media(max-height:620px){.wb-report{padding-top:58px}.wb-report-rings{width:min(230px,70vw,30vh)}.wb-report-tip{font-size:13px}.wb-report-go{padding:11px 18px}}
/* Tap a ring: the middle shows that part (Sophia 2026-11-11). */
.wb-ready-rings .wb-read-part{gap:3px}
.wb-read-name{font-size:8px;font-weight:900;letter-spacing:.16em;color:var(--c)}
html:not([data-mode="dark"]) .wb-read-name{color:color-mix(in srgb,var(--c) 60%,var(--mu-ink))}
.wb-ready-rings .wb-read-part .wb-ready-score{font-size:clamp(17px,5.4vw,22px);white-space:nowrap}
.wb-read-usual{font-size:9px;font-weight:700;color:var(--mu-dim);white-space:nowrap}
.wb-ready-rings .wb-ready-read>*{animation:wbreadin .3s ease both}
@keyframes wbreadin{from{opacity:0;transform:scale(.9)}}

/* More info: the morning report's sunken boxes, two by two. */
.wb-ready-parts{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.wb-part.wb-chip{display:grid;grid-template-columns:none;gap:4px;padding:9px 11px;border-radius:12px;background:var(--mu-deep);box-shadow:var(--mu-groove-in);text-align:left}
.wb-part.wb-chip:hover{background:var(--mu-deep)}
.wb-part.wb-chip[aria-expanded="true"]{background:color-mix(in srgb,var(--c) 16%,var(--mu-deep));box-shadow:var(--mu-groove-in),0 0 0 1.5px color-mix(in srgb,var(--c) 70%,transparent)}
.wb-chip-top{display:flex;align-items:center;gap:7px;min-width:0}
.wb-chip-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700;color:var(--mu-dim)}
.wb-chip-top b{font-size:11px;font-weight:900;white-space:nowrap;color:var(--mu-ink)}
.wb-chip>small{font-size:9px;font-weight:600;color:var(--mu-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-chip .wb-part-dot{width:8px;height:8px}
@media(max-width:360px){.wb-ready-parts{grid-template-columns:1fr}}
@media(min-width:700px){.wb-ready-parts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.wb-chip-top em{font-style:normal;font-size:9px;font-weight:800;color:var(--mu-dim)}
.wb-chip-value{font:900 17px/1.1 Nunito,'DM Sans',sans-serif;color:var(--mu-ink);white-space:nowrap}
.wb-part.wb-chip{gap:3px;padding:10px 12px}
@media(max-width:360px){.wb-ready-parts{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-chip-value{font-size:15px}}
.wb-chip-w{display:none}@media(max-width:360px){.wb-chip-top em{display:none}.wb-chip-w{display:inline}}
@media(max-width:360px){.wb-chip-w{display:block}.wb-chip>small{white-space:normal}}
/* The fold hides what overflows while it slides; give the boxes' glow and outline room so a picked box isn't clipped. */
.wb-ready-fold>div{padding:3px;margin:-3px}
/* READY slider (2026-11-11): nine across now, coloured by readiness, with a thin drawn arrow for the change since yesterday. */
html .wb-faders{grid-template-columns:repeat(9,minmax(0,1fr))}
.wb-fader-ready{position:relative}
.wb-fader-ready::before{content:"";position:absolute;left:-1px;top:10%;bottom:10%;width:1px;background:var(--mu-tick);opacity:.6}
.wb-fader-ready small{color:var(--acc)}
html:not([data-mode="dark"]) .wb-fader-ready small{color:color-mix(in srgb,var(--acc) 55%,var(--mu-ink))}
.wb-fader-arrow{width:10px;height:10px;fill:none;stroke:var(--acc);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px var(--acc));transition:transform .4s}
.wb-fader-ready[data-dir="down"] .wb-fader-arrow{transform:rotate(180deg)}
.wb-fader-ready[data-dir="flat"] .wb-fader-arrow{transform:rotate(90deg)}
.wb-fader-ready[data-dir="none"] .wb-fader-arrow,.wb-fader-ready.empty .wb-fader-arrow{opacity:.25;filter:none;transform:rotate(90deg)}
.wb-fader-ready .wb-groove b{box-shadow:0 2px 5px #00000044,0 0 0 1.5px color-mix(in srgb,var(--acc) 70%,transparent)}
.wb-ready.wb-flash{animation:wbflash 1.1s ease}
/* The readiness bar in the morning report. */
.wb-report-bar{width:100%;display:grid;gap:8px;justify-items:center}
.wb-report-zones{position:relative;width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;height:8px}
.wb-report-zones i{border-radius:4px;opacity:.35}
.wb-report-zones i:nth-child(1){background:#ff6f6f}.wb-report-zones i:nth-child(2){background:#ffb44d}.wb-report-zones i:nth-child(3){background:#c6dc5a}.wb-report-zones i:nth-child(4){background:#5fd88f}
.wb-report-zones b{position:absolute;top:50%;left:calc(var(--ready) * 1%);width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:var(--zone);box-shadow:0 0 0 3px var(--mu-panel-solid,#fff),0 0 10px var(--zone);animation:wbbarin 1.1s cubic-bezier(.3,.9,.3,1) both}
html[data-mode="dark"] .wb-report-zones b{box-shadow:0 0 0 3px #1f2123,0 0 10px var(--zone)}
@keyframes wbbarin{from{left:0}}
.wb-report-change{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:var(--mu-deep);box-shadow:var(--mu-groove-in);font-size:11px;font-weight:800;color:var(--mu-ink)}
.wb-report-change svg{width:11px;height:11px;fill:none;stroke:var(--zone);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wb-report-change[data-dir="down"] svg{transform:rotate(180deg)}
.wb-report-change:is([data-dir="flat"],[data-dir="none"]) svg{transform:rotate(90deg)}
.wb-report-change[data-dir="none"] svg{opacity:.4}

/* The readiness zones as the outer ring, with a marker that runs round to today's score (Sophia 2026-11-11). */
.wb-zone-arc{fill:none;stroke-width:10;stroke-linecap:round;opacity:.3;transition:opacity .4s}
.wb-zone-arc.on{opacity:1;filter:drop-shadow(0 0 5px currentColor)}
.wb-zone-marker{transform-box:view-box;transform-origin:100px 100px;transform:rotate(calc(var(--ready) * 3.6deg));transition:transform 1.3s cubic-bezier(.3,.9,.3,1)}
.wb-zone-marker circle{fill:var(--mu-knob);stroke:var(--zone);stroke-width:4;filter:drop-shadow(0 1px 3px #00000055) drop-shadow(0 0 6px var(--zone))}
.wb-zone-ring.empty .wb-zone-marker{opacity:0}
.wb-zone-ring.dim{opacity:.4;transition:opacity .3s}
.wb-sweep-from .wb-zone-marker{transform:rotate(0deg)!important;transition:none}
.wb-ring-fill,.wb-ring-track{stroke-width:14}
.wb-ready-rings .wb-ready-score{font-size:36px}
.wb-report-rings .wb-ready-score{font-size:38px}
.wb-report-bar{margin-top:-2px}

/* Customise Today (2026-11-11): the icon grid and filter button styles are in body.css, shared with Body's filter and Fitagotchi. */
html .wb-faders{grid-template-columns:repeat(var(--n,9),minmax(0,1fr))}
/* Today's dial bar: filled from JS as a plain number so it goes round to the real percentage. */
.wb-arc{transition:stroke-dasharray .9s cubic-bezier(.3,.9,.3,1),stroke .4s}
.wb-dial-face small{font-weight:900;letter-spacing:.04em}
/* Hold the dial for the goals sheet. */
.wb-dial{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:transform .45s ease}
/* Press-down feel: the whole dial sinks over the hold, the face presses in, then it clicks and springs back. */
.wb-dial .wb-dial-face{transition:transform .45s cubic-bezier(.2,.7,.3,1),box-shadow .45s}
.wb-dial.wb-holding{transform:scale(.95);transition:transform .45s cubic-bezier(.2,.7,.3,1)}
.wb-dial.wb-holding .wb-dial-face{transform:scale(.93);box-shadow:inset 0 3px 10px #0000002e,inset 0 -1px 0 #ffffff40}
.wb-dial.wb-clicked{animation:wbclick .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes wbclick{0%{transform:scale(.92)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.wb-dial.wb-holding,.wb-dial.wb-holding .wb-dial-face{transform:none}.wb-dial.wb-clicked{animation:none}}
.wb-goals-list li{gap:10px;justify-content:flex-start}
.wb-goals-list li>div{flex:1;min-width:0}
.wb-goals-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--acc)}
.wb-goals-level{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:900;min-width:78px;justify-content:flex-end}
.wb-goals-level em{display:block;width:36px;height:5px;border-radius:3px;background:#0000001a;overflow:hidden}
html[data-mode="dark"] .wb-goals-level em{background:#ffffff1f}
.wb-goals-level em i{display:block;height:100%;background:var(--acc);border-radius:3px}
.wb-goals-ok{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:2px solid #0000001f}
html[data-mode="dark"] .wb-goals-ok{border-color:#ffffff26}
.wb-goals-ok.on{border:0;background:#34c759}
.wb-goals-ok svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wb-goals-sheet h2{margin-bottom:6px}
/* All goals met: a full rainbow bar in every stat's colour. */
.wb-dial.wb-all-met .wb-arc{stroke:url(#wb-arc-all);filter:drop-shadow(0 0 6px #ffffff55)}
.wb-dial.wb-all-met .wb-ticks line.lit{stroke:var(--mu-tick);filter:none}
.wb-dial.wb-all-met .wb-dial-face small{background:linear-gradient(90deg,#ff9f5a,#a88bff,#5fd3e0,#6fd49a);-webkit-background-clip:text;background-clip:text;color:transparent!important}
/* SELECT knob: a tiny nudge with each notch, felt as a tick on the phone. */
.wb-knob.wb-notch .wb-knob-cap{animation:wbnotch .12s ease-out}
@keyframes wbnotch{50%{scale:.965}}
@media (prefers-reduced-motion:reduce){.wb-knob.wb-notch .wb-knob-cap{animation:none}}

/* Drawn tile icons (dashboard.js, Sophia 2026-11-18): a line drawing in the tile's colour with a soft fill, sat in the
   middle of the tile's ring. Also the big heart on Stress and the small signs on Recovery's rows. */
svg.hi{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
svg.hi .t{fill:currentColor;fill-opacity:.22}
svg.hi .f{fill:currentColor;stroke:none}
html .metrics.wb-on .metric-grid>.metric>.metric-icon:not(#wb){font-size:0}
html .metrics.wb-on .metric-grid>.metric>.metric-icon svg.hi{width:25px;height:25px;filter:drop-shadow(0 0 3px color-mix(in srgb,var(--acc) 45%,transparent))}
.stress-heart svg.hi{width:44px;height:44px;margin:auto;stroke-width:1.5}
.recovery-signals span svg.hi{display:inline-block;width:14px;height:14px;margin:0 5px -2px 0;stroke-width:2}
@media(max-width:560px){html .metrics.wb-on .metric-grid>.metric>.metric-icon svg.hi{width:22px;height:22px}}
/* Day mode: the pale colours (water, food) need a deeper shade to read on the light rings. */
html:not([data-mode="dark"]) .metrics.wb-on .metric-icon svg.hi{color:color-mix(in srgb,var(--acc) 78%,#3b2c22)}
