/* /app/welcome (welcome.html + welcome.js): Set up your day. The steps (the first time, or "Walk me through it") and the
   overview (every later visit) share one set of controls: tiles, their details, time sliders (flowtime.js), length chips.
   This file carries its own tokens (lime you, silver sidekick), the page background and the .who bar; app-light.css
   (body.light) redefines the tokens for light mode, body.light.paper below for Paper. Every class carries wl-. */
:root { --bg: #05060a; --ink: #eef0f4; --ink2: #9ba1ad; --ink3: #5c626e; --ln: rgba(255,255,255,.06); --ln2: rgba(255,255,255,.11);
  --warm: #c6ff3d; --cold: #c9d2dc; --lime: #c6ff3d; --card: rgba(255,255,255,.025);
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; --hud: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22,1,.36,1); --navh: 60px; }
body.light { --card: #fff; }
body.light.paper { --bg: #f4f1ea; --ink: #2a2620; --ink2: #57514a; --ink3: #6a6359; --ln: rgba(72,60,42,.12); --ln2: rgba(72,60,42,.22); --warm: #4a7600; --lime: #c5ec5a; --cold: #6b6358; --card: #fbf9f4; }
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; padding-bottom: 96px; }
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before { background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--warm) 14%, transparent) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) 40%, rgba(0,0,0,.15) 100%); mask: linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) 40%, rgba(0,0,0,.15) 100%); }
body::after { background: radial-gradient(700px 420px at 22% 18%, color-mix(in srgb, var(--warm) 6%, transparent), transparent 70%), radial-gradient(700px 420px at 78% 18%, color-mix(in srgb, var(--cold) 5%, transparent), transparent 70%); }
body.paper::before { background: radial-gradient(circle at 1px 1px, rgba(110,92,64,.2) 1px, transparent 1.6px) 0 0 / 22px 22px; }
body.paper::after { background: radial-gradient(900px 600px at 85% -10%, rgba(200,222,120,.16), transparent 60%), radial-gradient(800px 600px at -10% 110%, rgba(214,188,146,.2), transparent 60%); }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 500; }
kbd { white-space: nowrap; }
.hd-brand { font-size: 15px; font-weight: 600; letter-spacing: .01em; } .hd-brand b { color: var(--warm); display: inline-block; width: .13em; height: .7em; margin: 0 .07em 0 .1em; background: currentColor; transform: skewX(-19deg); vertical-align: baseline; border-radius: .012em; } /* SI/KICK slash: cap-height bar on the baseline */
.hd-whobox { margin-left: auto; flex: none; }
.who { display: flex; align-items: center; gap: 10px; color: var(--ink2); font-size: 13px; }
.who i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--hud); font-size: 11px; color: #05060a; background: var(--warm); }
.who a { font-family: var(--hud); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 9px 14px; border: 1px solid var(--ln2); border-radius: 999px; transition: background .2s ease, color .2s ease; }
.who a:hover { background: var(--ink); color: var(--bg); }
.who a.mode { border-color: transparent; color: var(--ink2); padding: 9px 10px; } .who a.mode:hover { background: rgba(127,127,127,.12); color: var(--ink); }
.wl-top { position: sticky; top: 0; z-index: 20; height: var(--navh); display: flex; align-items: center; gap: 16px; padding: 0 28px;   /* the flow's .fl-top gutter: the nav (sknav.css) sits at the same spot on every page */
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--ln); }
.wl-top .hd-brand { flex: none; } .wl-top .hd-whobox { min-width: 0; }
.wl-tag { white-space: nowrap; font-family: var(--hud); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); }
.wl-tag::before { content: '/'; margin-right: 14px; color: var(--ln2); }

/* the page: one column */
.wl { position: relative; z-index: 1; width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 40px; }
.wl-stage { min-width: 0; }
.wl-eye { margin: 0; font-family: var(--hud); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); }
.wl-h { margin: 14px 0 12px; font-size: clamp(32px, 4vw, 48px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; outline: none; }
.wl-h i { font-style: normal; color: var(--warm); }
.wl-q { font-size: clamp(30px, 3.6vw, 42px); max-width: 20ch; }
.wl-lead { margin: 0 0 26px; max-width: 60ch; font-size: 16px; line-height: 1.55; color: var(--ink2); }
.wl-lead b { color: var(--ink); }
.wl-y { color: var(--warm); font-weight: 500; }
.wl-k { margin: 30px 0 12px; font-family: var(--hud); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.wl-note { margin: 28px 0 0; max-width: 70ch; font-size: 13px; color: var(--ink3); }
.wl-sm { font-size: 12.5px; color: var(--ink3); }
.wl-lnk { color: var(--ink); border-bottom: 1px solid var(--ln2); white-space: nowrap; } .wl-lnk:hover { border-color: var(--warm); }

/* chips, segments, buttons (btn.css maps .wl-btn / .wl-chips / .wl-seg onto the site's buttons) */
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-chips button, .wl-seg button, .wl-cb button { cursor: pointer; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--ln2); background: none; color: var(--ink2); font: 400 12.5px/1 var(--sans); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.wl-chips button:hover, .wl-seg button:hover, .wl-cb button:hover { color: var(--ink); border-color: var(--ink3); }
.wl-chips button[aria-pressed="true"], .wl-seg button[aria-pressed="true"] { background: var(--warm); border-color: var(--warm); color: #0b0d07; }
.wl-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.wl-seg button { min-width: 40px; padding: 8px 11px; font-family: var(--hud); font-size: 11.5px; }
.wl-btn { cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--ln2); background: none; color: var(--ink);
  font: 500 10.5px/1 var(--hud); letter-spacing: .14em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
.wl-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.wl-btn:disabled { opacity: .35; cursor: default; background: none; } .wl-btn[hidden] { display: none; }
.wl-btn.is-go { background: var(--warm); border-color: var(--warm); color: #0b0d07; } .wl-btn.is-go:hover { filter: brightness(1.06); }
.wl-btn.is-big { padding: 16px 26px; font-size: 11.5px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }

/* footer: Back / Close · status · Undo · Skip · Next / Save */
.wl-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; border-top: 1px solid var(--ln); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.wl-fin { width: min(820px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.wl-saved { min-width: 0; font-family: var(--hud); font-size: 10.5px; letter-spacing: .06em; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-act { padding: 9px 14px; } .wl-act[hidden] { display: none; }
.wl-skip { margin-left: auto; white-space: nowrap; font-size: 13px; color: var(--ink3); border-bottom: 1px solid var(--ln2); transition: color .2s ease; } .wl-skip:hover { color: var(--ink); }
.wl-skip[hidden] { display: none; }
#wl-next { margin-left: auto; }
.wl-skip:not([hidden]) + #wl-next { margin-left: 0; }

/* the top of a view: an eyebrow, and the small links (Walk me through it · Back to overview · Set up later) */
.wl-ovh { display: flex; align-items: center; gap: 12px; }
.wl-walk { margin-left: auto; padding: 6px 0; border: 0; border-bottom: 1px solid var(--ln2); background: none; color: var(--ink2); font: 400 13px var(--sans); cursor: pointer; transition: color .2s ease, border-color .2s ease; white-space: nowrap; }
.wl-walk:hover { color: var(--ink); border-color: var(--warm); }

/* the day bar's box (daybar.js draws inside #wl-bar); in the steps it folds away on Connect and Go */
.wl-barw { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; transition: grid-template-rows .24s var(--ease), opacity .2s ease, margin .24s var(--ease); margin: 18px 0 28px; }
.wl-barwi { min-height: 0; min-width: 0; overflow: hidden; }
.wl-barw > * { min-width: 0; }
.wl-ov .wl-barw { margin: 6px 0 10px; }
.wl-sv.is-nobar .wl-barw { grid-template-rows: 0fr; opacity: 0; margin: 0; }
.wl-bar { min-height: 64px; padding: 14px 16px 12px; border-radius: 16px; border: 1px solid var(--ln); background: color-mix(in srgb, var(--ink) 2%, transparent); }
.light .wl-bar { background: var(--card); box-shadow: 0 1px 2px rgba(16,19,23,.04), 0 14px 34px -24px rgba(16,19,23,.22); }
.wl-bar.is-big { min-height: 96px; padding: 18px 18px 14px; }
.wl-hc { margin: 0 0 26px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
/* the stand-in while daybar.js has not loaded: hours in lime, blocks on them, ticks every 3 h */
.wl-sb { position: relative; }
.wl-sbt { position: relative; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); overflow: hidden; }
.wl-sbw { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--lime) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warm) 45%, transparent); border-radius: 10px; transition: left .24s var(--ease), width .24s var(--ease); }
.wl-sbb { position: absolute; top: 5px; bottom: 5px; display: flex; align-items: center; padding: 0 6px; border-radius: 7px; background: color-mix(in srgb, var(--cold) 30%, var(--bg)); border: 1px solid color-mix(in srgb, var(--cold) 55%, transparent); overflow: hidden; transition: left .24s var(--ease), width .24s var(--ease); }
.wl-sbb b { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.wl-sbb.is-hl { border-color: var(--warm); }
.wl-sba { position: relative; height: 16px; margin-top: 4px; font: 400 9.5px var(--hud); color: var(--ink3); }
.wl-sba span { position: absolute; transform: translateX(-50%); }

/* the steps: progress (four segments), the bar, one question */
.wl-prog { display: flex; align-items: center; gap: 14px; }
.wl-dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wl-dots button { display: block; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.wl-dots i { display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--ln2); transition: background .24s var(--ease), width .24s var(--ease); }
.wl-dots .is-done i { background: color-mix(in srgb, var(--warm) 55%, transparent); }
.wl-dots .is-cur i { width: 52px; background: var(--warm); }
.wl-dots button:hover i { background: var(--ink3); } .wl-dots .is-cur button:hover i { background: var(--warm); }
.wl-pn { font-family: var(--hud); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.wl-sx { position: relative; }
.wl-step.is-out { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.wl-ctl { display: grid; gap: 16px; }

/* tiles: a meal, the workout, breaks, wrap-up. Tap = on / off; on opens its details below */
.wl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wl-tile { position: relative; display: grid; justify-items: start; align-content: start; gap: 4px; min-height: 92px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--ln2); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease); }
.wl-tile:hover { border-color: var(--ink3); }
.wl-tile:active { transform: scale(.985); }
.wl-tile b { font-size: 16px; letter-spacing: -.01em; }
.wl-tile em { font-style: normal; font: 400 12px var(--hud); font-variant-numeric: tabular-nums; color: var(--ink3); }
.wl-ti { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; margin-bottom: 4px; border-radius: 10px; color: var(--ink2); background: color-mix(in srgb, var(--ink) 6%, transparent); transition: background .2s ease, color .2s ease; }
.wl-tck { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ln2); transition: background .2s ease, border-color .2s ease; }
.wl-tck::after { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #0b0d07; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.wl-tile[aria-pressed="true"] { border-color: color-mix(in srgb, var(--warm) 70%, transparent); background: color-mix(in srgb, var(--warm) 7%, var(--card)); }
.wl-tile[aria-pressed="true"] em { color: var(--ink2); }
.wl-tile[aria-pressed="true"] .wl-ti { color: var(--ink); background: color-mix(in srgb, var(--warm) 18%, transparent); }
.wl-tile[aria-pressed="true"] .wl-tck { background: var(--warm); border-color: var(--warm); }
.wl-tile[aria-pressed="true"] .wl-tck::after { transform: rotate(45deg) scale(1); }
.wl-ctl .wl-tile { min-height: 128px; padding: 18px 20px; gap: 6px; } .wl-ctl .wl-tile b { font-size: 19px; } .wl-ctl .wl-tile em { font-size: 13px; }
.wl-ctl .wl-ti { width: 42px; height: 42px; border-radius: 12px; }
/* the details of an on tile: they open smoothly (grid rows 0fr → 1fr) */
.wl-dets { display: grid; }
.wl-det { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .24s var(--ease), opacity .2s ease; }
.wl-det.is-closed { grid-template-rows: 0fr; opacity: 0; }
.wl-deti { min-height: 0; overflow: hidden; }
.wl-detc { display: grid; gap: 10px; margin-top: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--ln); background: color-mix(in srgb, var(--ink) 2%, transparent); }
.light .wl-detc { background: var(--card); }
.wl-dh { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.wl-dh i { display: inline-flex; color: var(--ink2); }
.wl-dh span { margin-left: auto; font: 400 12.5px var(--hud); font-variant-numeric: tabular-nums; color: var(--ink2); text-align: right; }
.wl-dln { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wl-to { font-family: var(--hud); font-size: 11px; color: var(--ink3); }
.wl-ru { font: 400 11px var(--hud); font-style: normal; color: var(--ink3); }
.wl-dsl { min-width: 0; }
.wl-ctl .wl-seg button { min-width: 48px; padding: 11px 14px; font-size: 13px; }
.wl-ctl .wl-detc { padding: 16px 18px; gap: 12px; }

/* free fields: a length (1 h 30 m); arrows step them, a typo is marked, never blocked */
.wl-f { width: 76px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ln2); background: color-mix(in srgb, var(--ink) 3%, transparent); color: var(--ink);
  font: 400 13px/1 var(--hud); font-variant-numeric: tabular-nums; text-align: center; outline: none; transition: border-color .2s ease, background .2s ease; }
.wl-df { width: 92px; }
.wl-f:hover { border-color: var(--ink3); } .wl-f:focus { border-color: color-mix(in srgb, var(--warm) 65%, transparent); background: color-mix(in srgb, var(--warm) 5%, transparent); }
.wl-f.is-bad { border-color: #ffb020; } .light .wl-f.is-bad { border-color: #b06a00; }
.wl-cust { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; } .wl-cust[hidden] { display: none; }
/* notes under a block: calm (personal time, an overlap, a short day), never a warning */
.wl-hint { position: relative; margin: 0; padding-left: 14px; font-size: 12.5px; line-height: 1.45; color: var(--ink3); } .wl-hint:empty { display: none; }
.wl-hint::before { content: ''; position: absolute; left: 1px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--cold); opacity: .6; }
.wl-sw { cursor: pointer; position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; border: 1px solid var(--ln2); background: none; padding: 0; transition: background .2s ease, border-color .2s ease; }
.wl-sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink3); transition: transform .2s ease, background .2s ease; }
.wl-sw[aria-checked="true"] { background: color-mix(in srgb, var(--warm) 22%, transparent); border-color: color-mix(in srgb, var(--warm) 60%, transparent); }
.wl-sw[aria-checked="true"] i { transform: translateX(18px); background: var(--warm); }

/* your hours: the two-handle slider, then "Different on some days?" (a compact bar per weekday) */
.wl-tms { padding: 16px 16px 12px; border-radius: 16px; border: 1px solid var(--ln); background: color-mix(in srgb, var(--ink) 2%, transparent); }
.light .wl-tms { background: var(--card); }
.wl-row { display: grid; gap: 10px; padding: 14px 0 0; }
.wl-row > p { margin: 0; display: flex; align-items: baseline; gap: 12px; font-size: 14.5px; font-weight: 500; }
.wl-row > p em { margin-left: auto; font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink3); text-align: right; }
.wl-week { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.wl-week > div { display: flex; }
.wl-wk { grid-column: 1 / -1; list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.wl-wk[hidden] { display: none; }
.wl-wk li { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 2px; }
.wl-wks { flex: 1 1 auto; min-width: 0; }
.wl-wkd { margin-right: 4px; font-family: var(--hud); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.wl-wk li.is-own .wl-wkd { color: var(--warm); }
.wl-wk li.is-off .wl-wks { opacity: .3; pointer-events: none; }
.wl-wkoff { margin: 0 0 1px 4px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ln2); background: none; color: var(--ink3); font: 500 11px/1 var(--hud); cursor: pointer; }
.wl-wkoff:hover { color: var(--ink); border-color: var(--ink3); }
.wl-wkoff[aria-pressed="true"] { background: color-mix(in srgb, var(--cold) 18%, transparent); border-color: var(--cold); color: var(--ink); }

/* your own time: a card per block (name, ×, its time, its length, its days), suggestions and + Add below */
.wl-own { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .wl-own:empty { display: none; }
.wl-oc { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--ln2); background: var(--card); }
.wl-och { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wl-och .wl-ti { width: 30px; height: 30px; margin: 0; flex: none; }
.wl-bl { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 10px; margin-left: -4px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--ink); font: 500 16px/1 var(--sans); outline: none; }
.wl-bl:hover { border-color: var(--ln2); } .wl-bl:focus { border-color: color-mix(in srgb, var(--warm) 65%, transparent); } .wl-bl::placeholder { color: var(--ink3); font-weight: 400; }
.wl-orng { flex: none; font: 400 12.5px var(--hud); font-variant-numeric: tabular-nums; color: var(--ink2); white-space: nowrap; }
.wl-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ink3); font-size: 18px; line-height: 1; cursor: pointer; }
.wl-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.wl-bm { width: 80px; }
.wl-bm.is-on { border-color: var(--warm); }
.wl-days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wl-dd { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; }
.wl-days button { cursor: pointer; border: 1px solid var(--ln2); background: none; color: var(--ink2); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.wl-days button:hover { color: var(--ink); border-color: var(--ink3); }
.wl-days button[aria-pressed="true"] { background: color-mix(in srgb, var(--cold) 18%, transparent); border-color: var(--cold); color: var(--ink); }
.wl-dp { height: 30px; padding: 0 12px; border-radius: 999px; font: 400 12px var(--sans); white-space: nowrap; }
.wl-dd button { width: 30px; height: 30px; padding: 0; border-radius: 50%; font: 500 10.5px/1 var(--hud); }
.wl-qt { margin: 0; gap: 6px; } .wl-qt button { padding: 7px 12px; font-size: 12px; } .wl-qt:empty { display: none; }
.wl-oadd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.wl-oadd .wl-btn { padding: 10px 16px; }
.wl-ctl .wl-oc { padding: 16px 18px; } .wl-ctl .wl-chips button { padding: 11px 15px; font-size: 13px; }

/* the overview: four groups, one open at a time; closed = its one-line summary */
.wl-groups { display: grid; gap: 8px; }
.wl-grp { border-radius: 16px; border: 1px solid var(--ln); background: color-mix(in srgb, var(--ink) 1.5%, transparent); transition: border-color .2s ease, background .2s ease; }
.light .wl-grp { background: var(--card); }
.wl-grp.is-open { border-color: var(--ln2); }
.wl-gt { margin: 0; font: inherit; }
.wl-gh { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 16px; border: 0; border-radius: 16px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.wl-gh:hover .wl-gs { color: var(--ink2); }
.wl-gh:focus-visible { outline: 2px solid var(--warm); outline-offset: -2px; }
.wl-gi { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; color: var(--ink2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.wl-gh b { font-size: 15.5px; white-space: nowrap; }
.wl-gs { min-width: 0; font: 400 12.5px var(--hud); font-variant-numeric: tabular-nums; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .2s ease, color .2s ease; }
.wl-grp.is-open .wl-gs { opacity: 0; }
.wl-gc { width: 20px; height: 20px; position: relative; }
.wl-gc::before { content: ''; position: absolute; left: 6px; top: 4px; width: 7px; height: 7px; border: solid var(--ink3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .24s var(--ease), top .24s var(--ease); }
.wl-grp.is-open .wl-gc::before { transform: rotate(225deg); top: 8px; }
.wl-gb { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .26s var(--ease), opacity .2s ease; }
.wl-gb.is-closed { grid-template-rows: 0fr; opacity: 0; }
.wl-gb.no-anim { transition: none; }
.wl-gbi { min-height: 0; overflow: hidden; }
.wl-gbc { display: grid; gap: 12px; padding: 2px 16px 18px; }
.wl-gbc .wl-detc { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.light .wl-gbc .wl-detc, .light .wl-gbc .wl-oc, .light .wl-gbc .wl-tms { background: color-mix(in srgb, var(--ink) 2%, transparent); }
.light .wl-gbc .wl-tile { background: color-mix(in srgb, var(--ink) 1.5%, transparent); }
.light .wl-gbc .wl-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--lime) 18%, transparent); }

/* connect */
.wl-cn { display: grid; gap: 12px; }
.wl-ci { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 20px; border-radius: 16px; border: 1px solid var(--ln2); transition: border-color .2s ease; }
.light .wl-ci { background: var(--card); }
.wl-ci.is-done { border-color: color-mix(in srgb, var(--warm) 50%, transparent); }
.wl-cm h2 { margin: 0 0 6px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.wl-ci.is-done .wl-cm h2::after { content: ' ✓'; color: var(--warm); }
.wl-cm p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.wl-keys { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px !important; font-size: 12.5px !important; color: var(--ink3) !important; }
.wl-keys span { display: inline-flex; align-items: baseline; gap: 8px; } .wl-keys kbd { color: var(--warm); }
.wl-keys a, .wl-how a { color: var(--ink); border-bottom: 1px solid var(--ln2); } .wl-keys a:hover, .wl-how a:hover { border-color: var(--warm); }
.wl-how { margin-top: 10px !important; font-size: 13px !important; color: var(--ink3) !important; } .wl-how b { color: var(--ink2); }
.wl-cb { display: flex; gap: 6px; }
.wl-cb button[aria-pressed="true"][data-v="1"] { background: var(--warm); border-color: var(--warm); color: #0b0d07; }
.wl-cb button[aria-pressed="true"][data-v="0"] { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.wl-later { margin-top: 14px; }
.wl-later > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; color: var(--ink3); font: 400 12px var(--hud); letter-spacing: .04em; }
.wl-later > summary::-webkit-details-marker { display: none; }
.wl-later > summary::before { content: '▸'; transition: transform .15s ease; }
.wl-later[open] > summary::before { transform: rotate(90deg); }
.wl-later .wl-ci { margin-top: 10px; grid-template-columns: minmax(0, 1fr); opacity: .55; border-style: dashed; }
.wl-later .wl-ci:hover { opacity: .8; }
.wl-soon { margin-left: 8px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--ln2); color: var(--ink3); font: 400 10.5px var(--hud); vertical-align: middle; }

/* go */
.wl-sum { margin: 0; display: grid; }
.wl-sum div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--ln); }
.wl-sum dt { font-family: var(--hud); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); padding-top: 2px; }
.wl-sum dd { margin: 0; font-size: 14px; color: var(--ink2); }
.wl-moves { list-style: none; margin: 0; padding: 0; }
.wl-moves li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--ln); }
.wl-moves i { font-style: normal; font-family: var(--hud); font-size: 12px; color: var(--warm); }
.wl-moves span { display: grid; gap: 3px; } .wl-moves b { font-size: 17px; letter-spacing: -.015em; } .wl-moves em { font-style: normal; font-size: 13px; color: var(--ink3); }
.wl-moves a { font-family: var(--hud); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); padding: 8px 12px; border: 1px solid var(--ln2); border-radius: 999px; white-space: nowrap; }
.wl-moves a:hover { color: var(--ink); border-color: var(--ink3); }
.wl-go { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 32px 0 0; }

/* light mode (app-light.css sets the tokens): lime stays a fill with dark text */
.light .wl-top, .light .wl-foot { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.light .wl-chips button[aria-pressed="true"], .light .wl-seg button[aria-pressed="true"], .light .wl-btn.is-go, .light .wl-cb button[aria-pressed="true"][data-v="1"] { background: var(--lime); border-color: color-mix(in srgb, var(--warm) 45%, var(--lime)); }
.light .wl-sw[aria-checked="true"] { background: color-mix(in srgb, var(--lime) 55%, transparent); border-color: var(--warm); } .light .wl-sw[aria-checked="true"] i { background: var(--warm); }
.light .wl-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--lime) 16%, var(--card)); border-color: color-mix(in srgb, var(--warm) 55%, transparent); }
.light .wl-tile[aria-pressed="true"] .wl-ti { background: color-mix(in srgb, var(--lime) 45%, transparent); }
.light .wl-tile[aria-pressed="true"] .wl-tck { background: var(--lime); border-color: color-mix(in srgb, var(--warm) 55%, var(--lime)); }
.light .wl-dots .is-cur i { background: var(--warm); } .light .wl-dots .is-done i { background: color-mix(in srgb, var(--warm) 45%, transparent); }
.light .wl-sbb { background: color-mix(in srgb, var(--cold) 16%, #fff); }

/* tablet and phone */
@media (max-width: 860px) {
  :root { --navh: 54px; }
  .who { gap: 4px; } .who span { display: none; } .who i { width: 28px; height: 28px; font-size: 10px; }
  .who a { padding: 8px 11px; font-size: 10px; } .who a.mode { padding: 8px 6px; }
  .wl-tag { display: none; }
  .wl-top { gap: 10px; } .wl-top .hd-whobox .who a[href="/app/welcome"] { display: none; }   /* you are on it */
  .wl { padding-top: 20px; }
  .wl-ci { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .wl-sum div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wl-moves li { grid-template-columns: 26px minmax(0, 1fr); } .wl-moves a { grid-column: 2; justify-self: start; }
  .wl-fin { gap: 10px; } .wl-skip { font-size: 12.5px; } .wl-btn { padding: 11px 14px; }
}
@media (max-width: 620px) {
  .wl-tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wl-tile, .wl-ctl .wl-tile { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 0; min-height: 0; padding: 12px 52px 12px 14px; }
  .wl-ti, .wl-ctl .wl-ti { grid-row: 1 / span 2; margin: 0; width: 38px; height: 38px; }
  .wl-tile b, .wl-ctl .wl-tile b { font-size: 16px; } .wl-tile em, .wl-ctl .wl-tile em { font-size: 12px; }
  .wl-tck { top: 50%; margin-top: -10px; right: 16px; }
  .wl-ctl .wl-tile { min-height: 68px; }
  .wl-gh { grid-template-columns: 30px minmax(0, 1fr) 20px; row-gap: 2px; padding: 12px 14px; }
  .wl-gh b { grid-column: 2; } .wl-gs { grid-column: 2; grid-row: 2; } .wl-gi { grid-row: 1 / span 2; } .wl-gc { grid-column: 3; grid-row: 1 / span 2; }
  .wl-gbc { padding: 2px 12px 16px; }
  .wl-q { font-size: 30px; } .wl-lead { font-size: 15px; margin-bottom: 20px; }
  .wl-barw { margin: 14px 0 22px; }
  .wl-bar, .wl-bar.is-big { padding: 12px 10px 10px; }
  .wl-tms { padding: 14px 10px 10px; }
  .wl-detc, .wl-ctl .wl-detc, .wl-oc, .wl-ctl .wl-oc { padding: 12px; }
  .wl-dd { margin-left: 0; }
  .wl-och { flex-wrap: wrap; row-gap: 2px; } .wl-och .wl-x { order: 2; margin-left: auto; } .wl-orng { order: 3; flex-basis: 100%; padding-left: 40px; }
  .wl-dots i { width: 26px; } .wl-dots .is-cur i { width: 40px; }
  .wl-pn { display: none; }
}
@media (max-width: 400px) {
  .wl-long { display: none; }
  .wl-row > p { flex-wrap: wrap; } .wl-row > p em { margin-left: 0; text-align: left; flex-basis: 100%; }
  .wl-seg button, .wl-ctl .wl-seg button { min-width: 40px; padding: 10px 10px; }
  .wl-orng { font-size: 11.5px; }
}
@media (max-width: 350px) { .wl-top .who i { display: none; } .wl-top .who a { padding: 8px 9px; } }
/* touch: targets ≥ 40px (the switch keeps its look, its tap area grows) */
@media (max-width: 760px) and (pointer: coarse) {
  .wl-sw::after { content: ""; position: absolute; inset: -9px -4px; }
  .wl-seg button, .wl-chips button, .wl-dp { min-height: 40px; }
  .wl-dd button { width: 36px; height: 36px; }
  .wl-btn { min-height: 44px; }
  .tms-ck button { height: 36px; }
  .hd-whobox .who a.mode { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-det, .wl-gb, .wl-barw, .wl-tile, .wl-tck::after, .wl-dots i, .wl-gc::before, .wl-sw i, .wl-sbw, .wl-sbb, .wl-later > summary::before { transition: none !important; }
}

/* "✓ Your day is saved" (welcome.js savedSheet): a calm card over a soft scrim, fade + rise; a bottom sheet on a phone */
.wl-sv { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5,6,10,.42); opacity: 0; transition: opacity .22s ease; }
.light .wl-sv { background: rgba(16,19,23,.22); } .light.paper .wl-sv { background: rgba(42,38,32,.2); }
.wl-svc { position: relative; width: min(440px, 100%); padding: 24px 24px 22px; border-radius: 18px; border: 1px solid var(--ln2); background: color-mix(in srgb, var(--ink) 4%, var(--bg));
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.6); transform: translateY(10px); transition: transform .22s var(--ease); }
.light .wl-svc { background: var(--card); box-shadow: 0 1px 2px rgba(16,19,23,.05), 0 24px 60px -30px rgba(16,19,23,.35); }
.wl-sv.is-on { opacity: 1; } .wl-sv.is-on .wl-svc { transform: none; }
.wl-svx { position: absolute; top: 12px; right: 12px; }
.wl-svh { margin: 0 32px 6px 0; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.wl-svh i { font-style: normal; color: var(--warm); margin-right: 2px; }
.wl-svs { margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.wl-sva { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wl-svu { margin-left: auto; }
.wl-svk { margin: 20px 0 8px; font-family: var(--hud); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); }
.wl-svb { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 600px) {
  .wl-sv { place-items: end stretch; padding: 0; }
  .wl-svc { width: 100%; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(24px); }
  .wl-sva .skb-p { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .wl-sv, .wl-svc { transition: none !important; } }
/* the top bar's gutter follows the flow's .fl-top (28 / 18 / 16 px), so the nav (sknav.css) sits at the same spot on every page */
@media (max-width: 1023px) { .wl-top { padding: 0 18px; } }
@media (max-width: 760px) { .wl-top { padding: 0 16px; } }

/* Meals (2026-11-03): "+ Add a meal" next to Breakfast / Lunch / Dinner, your own meals as cards under them, and
   "Can overlap work" on each meal (a switch row, calm) */
.wl-tiles:has(> .wl-tadd) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wl-tadd { border-style: dashed; background: none; color: var(--ink2); }
.wl-tadd .wl-ti { display: grid; place-items: center; font: 300 22px/1 var(--hud, inherit); color: var(--ink3); }
.wl-tadd:hover { color: var(--ink); } .wl-tadd:hover .wl-ti { color: var(--warm); }
.wl-meals { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; } .wl-meals:empty { display: none; }
.wl-ovr { padding-top: 6px; } .wl-ovr > p { font-size: 13.5px; } .wl-ovr > p em { font-size: 11.5px; }
.wl-mc .wl-ovr { padding-top: 0; }
@media (max-width: 860px) { .wl-tiles:has(> .wl-tadd) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .wl-tiles:has(> .wl-tadd) { grid-template-columns: minmax(0, 1fr); } .wl-tadd { min-height: 0; } }
.wl-chips[hidden] { display: none; }
