/* ─────────────────────────────────────────────────────────────────────────────
   Daily Coach — the whole stylesheet.

   Lifted from prototype/index.html deliberately, so the app Layla signs into
   looks like the prototype she was shown. The eight colour values on :root are
   hers to change (docs/DECISIONS_FOR_LAYLA.md item 2); changing them changes
   the whole app, and nothing else needs touching.
   ───────────────────────────────────────────────────────────────────────── */

:root{
  --bg:#f2f4f1; --surface:#ffffff; --ink:#1c2620; --quiet:#6b7a72;
  --line:#dce3dd; --accent:#2f6f4e; --loud:#f3c53f; --late:#a8601f;
  --onloud:#463c16; --onaccent:#ffffff;
  --display:"Fraunces","Iowan Old Style",Georgia,serif;
  --ui:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --r:10px;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:env(safe-area-inset-top,0px);background:var(--bg)}
body{
  margin:0;background:var(--bg);color:var(--ink);font-family:var(--ui);
  font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%;
  padding-bottom:calc(5.2rem + env(safe-area-inset-bottom,0px));
}
.wrap{max-width:33rem;margin:0 auto;padding:0 1.1rem}

/* the one loud thing */
.daybreak{background:var(--loud);padding:2.1rem 1.1rem 1.5rem;margin-bottom:1.4rem}
.daybreak__in{max-width:33rem;margin:0 auto}
.daybreak h1{font-family:var(--display);font-size:1.85rem;font-weight:400;line-height:1.12;margin:0 0 .25rem;color:var(--onloud)}
.daybreak p{margin:0;font-size:.92rem;color:var(--onloud);opacity:.82}

h2{font-family:var(--display);font-weight:400;font-size:1.12rem;margin:1.9rem 0 .4rem}
h2:first-child{margin-top:0}

.rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.row{display:flex;gap:.8rem;align-items:flex-start;padding:.82rem .15rem;border-bottom:1px solid var(--line)}
.row__b{flex:1;min-width:0}
.row__t{display:block;overflow-wrap:anywhere}
.row__m{display:block;font-size:.81rem;color:var(--quiet);margin-top:.12rem}
.row__m.late{color:var(--late)}
.row.done .row__t{text-decoration:line-through;color:var(--quiet)}

.tick{flex:0 0 auto;width:1.35rem;height:1.35rem;margin-top:.14rem;border:1.5px solid var(--accent);
  border-radius:50%;background:transparent;cursor:pointer;padding:0}
.tick.on{background:var(--accent)}
.x{border:0;background:none;color:var(--quiet);cursor:pointer;font-size:1.1rem;line-height:1;padding:.15rem .3rem}

.empty{color:var(--quiet);padding:1.1rem .15rem;border-bottom:1px solid var(--line);font-size:.93rem}

/* the confirmation card: the one element that reads as an object, because it is a decision */
.card{background:var(--surface);border:1.5px solid var(--accent);border-radius:var(--r);padding:.95rem 1rem;margin:.55rem 0 .2rem}
.card__t{font-family:var(--display);font-size:1.08rem;margin:0 0 .35rem;overflow-wrap:anywhere}
.card__d{font-size:.87rem;color:var(--quiet);margin:0 0 .8rem}
.card__acts{display:flex;gap:.45rem;flex-wrap:wrap}
.card__note{font-size:.77rem;color:var(--quiet);margin:.65rem 0 0}
.card ul{margin:0 0 .8rem;padding-left:1.1rem;font-size:.87rem;color:var(--quiet)}

.btn{font:inherit;font-size:.89rem;padding:.44rem .88rem;border-radius:var(--r);
  border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer}
.btn--go{background:var(--accent);border-color:var(--accent);color:var(--onaccent)}
.btn--plain{border-color:transparent;background:transparent;color:var(--quiet)}
.btn[disabled]{opacity:.5;cursor:default}
.btn:focus-visible,.tick:focus-visible,.x:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible
  {outline:2px solid var(--accent);outline-offset:2px}

.turn{margin:.95rem 0}
.turn__w{font-size:.75rem;color:var(--quiet);margin-bottom:.18rem}
.turn--user .turn__b{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:.55rem .78rem;overflow-wrap:anywhere}
.turn--bot .turn__b{padding:0 .1rem;overflow-wrap:anywhere}

.composer{display:flex;gap:.45rem;margin-top:1.2rem;align-items:flex-start}
.composer textarea{flex:1;font:inherit;padding:.58rem .72rem;border:1px solid var(--line);
  border-radius:var(--r);background:var(--surface);color:var(--ink);resize:vertical;min-height:2.9rem}

.field{display:block;margin-bottom:.55rem}
.field span{display:block;font-size:.79rem;color:var(--quiet);margin-bottom:.18rem}
.field input,.field select{width:100%;font:inherit;padding:.48rem .58rem;border:1px solid var(--line);
  border-radius:var(--r);background:var(--bg);color:var(--ink)}

.swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.2rem,1fr));gap:.55rem;margin:.3rem 0 0}
.sw{border:1.5px solid var(--line);border-radius:var(--r);padding:.55rem .6rem;background:var(--surface);
  cursor:pointer;text-align:left;font:inherit;font-size:.85rem;color:var(--ink)}
.sw.on{border-color:var(--accent)}
.sw__dots{display:flex;gap:.28rem;margin-bottom:.38rem}
.sw__dots i{width:.85rem;height:.85rem;border-radius:50%;display:block;border:1px solid rgba(0,0,0,.08)}

.note{font-size:.8rem;color:var(--quiet);line-height:1.5;margin:1.6rem 0 0}
.chips{display:flex;gap:.4rem;flex-wrap:wrap;margin:.5rem 0 0}
.chip{font:inherit;font-size:.82rem;padding:.34rem .7rem;border-radius:999px;border:1px solid var(--line);
  background:var(--surface);color:var(--quiet);cursor:pointer}

.tabs{position:fixed;inset:auto 0 0 0;display:flex;justify-content:center;gap:.25rem;
  background:var(--surface);border-top:1px solid var(--line);
  padding:.45rem .5rem calc(.45rem + env(safe-area-inset-bottom,0px))}
.tabs button{font:inherit;font-size:.87rem;padding:.48rem 1rem;border-radius:var(--r);border:0;
  background:transparent;color:var(--quiet);cursor:pointer}
.tabs button.on{background:var(--bg);color:var(--ink)}

.q{list-style:none;margin:.4rem 0 0;padding:0}
.q li{border-bottom:1px solid var(--line);padding:.7rem .15rem;font-size:.92rem}
.q b{font-weight:600}
.q span{display:block;color:var(--quiet);font-size:.85rem;margin-top:.12rem}

.err{color:var(--late);font-size:.84rem;margin:.4rem 0 0}
[hidden]{display:none !important}
@media (prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* ── themes ───────────────────────────────────────────────────────────────────
   users.theme holds one of these names. The page sets data-theme on <html>, so
   a theme is six lines of CSS and no JavaScript at all. */
[data-theme="dusk"]{--bg:#14181c;--surface:#1d242b;--ink:#e9eff1;--quiet:#8d9ba4;--line:#2b343d;--accent:#5fb3a1;--loud:#ef7a58;--late:#e8a06a;--onloud:#2a1108;--onaccent:#08211c;color-scheme:dark}
[data-theme="lilac"]{--bg:#f5f3fb;--surface:#ffffff;--ink:#241d3a;--quiet:#6f6690;--line:#e2ddf2;--accent:#5b3fd4;--loud:#cbbcff;--late:#9d3f6a;--onloud:#241d3a;--onaccent:#ffffff}
[data-theme="sea"]{--bg:#eef6f7;--surface:#ffffff;--ink:#10282e;--quiet:#5c7c84;--line:#d3e6e9;--accent:#12666f;--loud:#82dcc6;--late:#b1563a;--onloud:#0c3029;--onaccent:#ffffff}
[data-theme="peach"]{--bg:#fff5ef;--surface:#ffffff;--ink:#3b2622;--quiet:#8a6a61;--line:#f5ded3;--accent:#c2492d;--loud:#ffc48a;--late:#a8331a;--onloud:#4a2712;--onaccent:#ffffff}
[data-theme="marker"]{--bg:#fafafa;--surface:#ffffff;--ink:#171717;--quiet:#737373;--line:#e5e5e5;--accent:#171717;--loud:#dcf24a;--late:#b91c1c;--onloud:#22260a;--onaccent:#ffffff}

/* ── things the server-rendered pages add that the prototype did not need ──── */

/* Some buttons are links — "Start", "Change it" — because they go somewhere.
   They should not look like links inside a button. */
a.btn{text-decoration:none;display:inline-block;text-align:center}

/* The tab bar is links now, not buttons. */
.tabs a{font:inherit;font-size:.87rem;padding:.48rem 1rem;border-radius:var(--r);
  background:transparent;color:var(--quiet);text-decoration:none;display:block}
.tabs a.on{background:var(--bg);color:var(--ink)}

/* A form posts and the page reloads, so a one-line result has to survive the
   redirect. Held in the session for exactly one render. */
.flash{background:var(--surface);border:1px solid var(--accent);border-left-width:4px;
  border-radius:var(--r);padding:.6rem .8rem;margin:0 0 1rem;font-size:.9rem}
.flash--bad{border-color:var(--late)}

/* "The AI filled this in" has to be visible, not implied. A field nobody is
   told about is a field nobody checks. */
.readmark{display:inline-block;font-size:.72rem;color:var(--quiet);
  border:1px solid var(--line);border-radius:999px;padding:.05rem .45rem;margin-left:.3rem;
  vertical-align:.08em;white-space:nowrap}

/* Sign-in is the only page with no tab bar, so it centres instead. */
.signin{max-width:22rem;margin:3.2rem auto 0;padding:0 1.1rem}
.signin h1{font-family:var(--display);font-weight:400;font-size:1.5rem;margin:0 0 .2rem}
.signin p.sub{color:var(--quiet);font-size:.9rem;margin:0 0 1.4rem}
.signin .btn{width:100%;padding:.6rem;margin-top:.5rem}

/* Quick Add: open by default on a big screen, a details toggle on a phone. */
.quick{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);
  padding:.85rem .9rem;margin:.2rem 0 .4rem}
.quick summary{cursor:pointer;font-size:.92rem;color:var(--ink);list-style:none}
.quick summary::-webkit-details-marker{display:none}
.quick summary::before{content:"+ ";color:var(--accent)}
.quick[open] summary::before{content:"– ";color:var(--accent)}
.quick[open] summary{margin-bottom:.7rem}
.quick .row2{display:flex;gap:.5rem}
.quick .row2 .field{flex:1;min-width:0}

/* The composer is a real <form> now, so the button sits beside the textarea. */
.composer .btn{align-self:stretch}
/* rows="2" is not enough on its own once a placeholder wraps: the text was
   being clipped mid-word. */
.composer textarea{min-height:3.4rem}

/* Long activity trails get a lighter weight than tasks: it is a record, not a
   list of things to do. */
.trail{list-style:none;margin:.4rem 0 0;padding:0;border-top:1px solid var(--line)}
.trail li{border-bottom:1px solid var(--line);padding:.62rem .15rem;font-size:.88rem}
.trail time{display:block;color:var(--quiet);font-size:.78rem;margin-top:.1rem}

/* ── Now: one step ──────────────────────────────────────────────────────────
   The single loud-ish element below the band. Everything under it is quiet,
   because the point of this screen is that one thing is obviously next. */
.move{background:var(--surface);border-radius:18px;padding:1.3rem 1.15rem 1.15rem;
  margin:1.15rem 0 0;box-shadow:0 1px 2px rgba(28,38,32,.04),0 4px 14px rgba(28,38,32,.05)}
.move__of{font-size:.84rem;color:var(--quiet);margin:0 0 .4rem;overflow-wrap:anywhere}
.move__of .soon{color:var(--late)}
/* The step text, and the largest thing on the page. It is the answer to the
   question the screen exists to answer, so nothing competes with it. */
.move__do{font-family:var(--display);font-size:1.48rem;line-height:1.22;
  margin:0 0 .45rem;overflow-wrap:anywhere}
.move__mins{font-size:.84rem;color:var(--quiet);margin:0 0 1.05rem}
.move__acts{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.move__acts form{margin:0}

/* ── the completion line (item 4 replaces this with the moment) ───────────── */
.card--done{border:1.5px solid var(--accent);background:var(--surface);
  border-radius:16px;padding:1rem;margin:0 0 1rem}
.card--done .lbl{font-family:var(--display);font-size:1.18rem;margin:0 0 .2rem}
.struck{text-decoration:line-through;color:var(--quiet);margin:0}
.allclear{color:var(--accent);font-weight:600;font-size:.9rem;margin:.5rem 0 0}

/* ── the list, which is never collapsed ─────────────────────────────────────
   Out of sight is genuinely gone for the person using this. Whole card is the
   link, not just the title — a small tap target is a tax on every use. */
.thing{display:block;background:var(--surface);border-radius:15px;
  padding:.8rem .9rem;margin:0 0 .55rem;color:inherit;text-decoration:none;
  box-shadow:0 1px 2px rgba(28,38,32,.04),0 4px 14px rgba(28,38,32,.05)}
.thing:hover,.thing:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.thing__row{display:flex;gap:.7rem;align-items:flex-start}
.thing__txt{flex:1;min-width:0}
.thing__name{display:block;font-weight:600;overflow-wrap:anywhere}
.thing__sub{display:block;font-size:.79rem;color:var(--quiet);margin:.03rem 0 0}
.when{flex:0 0 auto;font-size:.78rem;padding:.2rem .55rem;border-radius:999px;
  background:#eaefea;color:var(--quiet);white-space:nowrap}
.when--soon{background:#fbeee2;color:var(--late)}
.bar{display:block;height:4px;border-radius:99px;background:var(--line);
  margin:.6rem 0 0;overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent);border-radius:99px}
/* Recognisable at a glance, without reading it. */
.thing--done{background:#eef5ef}
.thing--done .thing__name{color:var(--quiet)}
.thing--done .thing__sub{color:var(--accent);font-weight:600}

.calm{text-align:center;padding:2.4rem 1rem;color:var(--quiet)}
.calm p:first-child{font-family:var(--display);font-size:1.32rem;color:var(--ink);margin:0 0 .25rem}
.hint{font-size:.82rem;color:var(--quiet);margin:.55rem 0 0}

/* ── icons and subject badges ───────────────────────────────────────────────
   Inline SVG inheriting currentColor, so one definition works on a white card
   and on a dark button alike. The badge is what makes a list scannable without
   reading it: the colour and glyph are recognised before the words are. */
.ic{width:1.05rem;height:1.05rem;flex:0 0 auto;vertical-align:-.15em}
.sb{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:2.1rem;height:2.1rem;border-radius:11px;color:#fff}
.sb .ic{width:1.15rem;height:1.15rem}
.sb--lg{width:2.7rem;height:2.7rem;border-radius:14px}
.sb--lg .ic{width:1.45rem;height:1.45rem}

/* The one loud thing on the screen keeps its own icon, quieter than the text. */
.daybreak__in{display:flex;align-items:center;gap:.8rem}
.daybreak__in > div:first-child{flex:1;min-width:0}
.daybreak .sun{width:2.5rem;height:2.5rem;color:var(--onloud);opacity:.55;flex:0 0 auto}
.daybreak a.sun:hover,.daybreak a.sun:focus-visible{opacity:.85}

/* Anything that pairs a small icon with a line of text. */
.withic{display:inline-flex;align-items:center;gap:.32rem}
h2{display:flex;align-items:center;gap:.4rem;color:var(--quiet)}
h2 .ic{opacity:.8}

.move__head{display:flex;align-items:center;gap:.6rem;margin:0 0 .7rem}
.move__head .move__of{margin:0}
.btn .ic{width:1rem;height:1rem}

/* ── finished today ─────────────────────────────────────────────────────────
   The end-of-day sense of "did I actually do anything?" is corrosive, and the
   honest answer is usually yes. This is that answer, in her own words back. */
.fin{display:flex;align-items:center;gap:.6rem;background:var(--surface);
  border-radius:13px;padding:.65rem .8rem;margin:0 0 .45rem;
  box-shadow:0 1px 2px rgba(28,38,32,.04),0 4px 14px rgba(28,38,32,.05)}
.fin__tick{flex:0 0 auto;width:1.45rem;height:1.45rem;border-radius:50%;
  background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;
  border:0;padding:0;cursor:pointer}
.fin__tick .ic{width:.85rem;height:.85rem}
.fin__t{flex:1;min-width:0;text-decoration:line-through;color:var(--quiet);overflow-wrap:anywhere}
.fin__m{flex:0 0 auto;color:var(--quiet);font-size:.82rem}
.fin__sum{display:flex;align-items:center;gap:.4rem;color:var(--accent);
  font-weight:600;margin:.7rem 0 0}

/* ── steps inside a thing, on Everything ────────────────────────────────── */
.moves{list-style:none;margin:.6rem 0 0;padding:.55rem 0 0;border-top:1px solid var(--line)}
.moves li{display:flex;align-items:center;gap:.6rem;padding:.4rem 0}
.tick{flex:0 0 auto;width:1.45rem;height:1.45rem;border:1.6px solid var(--accent);
  border-radius:50%;background:none;color:transparent;cursor:pointer;padding:0;
  display:inline-flex;align-items:center;justify-content:center}
.tick .ic{width:.85rem;height:.85rem}
.tick:hover,.tick:focus-visible{background:var(--go-soft,#e8f1ea)}
.tick.on{background:var(--accent);border-color:var(--accent);color:#fff}
.mv{flex:1;min-width:0;overflow-wrap:anywhere}
.mv.done{text-decoration:line-through;color:var(--quiet)}
.mv small{display:inline-flex;align-items:center;gap:.25rem;color:var(--quiet);
  font-size:.78rem;margin-left:.4rem;white-space:nowrap}
.thing--open{cursor:default}

/* ── the confirmation card on Add ───────────────────────────────────────────
   The green outline means "this will write something if you tap it", and it is
   spent here and nowhere else. */
.card__head{display:flex;align-items:center;gap:.6rem}
.card__head h3{font-family:var(--display);font-weight:400;font-size:1.18rem;
  margin:0;flex:1;overflow-wrap:anywhere}
.lbl{font-size:.82rem;color:var(--quiet);margin:0 0 .3rem;display:flex;
  align-items:center;gap:.35rem}
.plan{list-style:none;margin:.7rem 0 .2rem;padding:0}
.plan li{display:flex;gap:.55rem;align-items:center;padding:.42rem 0;
  border-bottom:1px solid var(--line);font-size:.88rem}
.plan li:last-child{border-bottom:0}
.plan .n{flex:0 0 auto;width:1.4rem;height:1.4rem;border-radius:50%;
  background:#e8f1ea;color:var(--accent);font-size:.75rem;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center}
.plan .d{flex:0 0 auto;color:var(--quiet);font-size:.78rem;white-space:nowrap}
.chips{display:flex;flex-wrap:wrap;gap:.4rem}
.chips form{margin:0}
.chip{font:inherit;font-size:.82rem;padding:.35rem .7rem;border-radius:999px;
  border:1px solid var(--line);background:var(--surface);color:var(--quiet);
  cursor:pointer;display:inline-flex;align-items:center;gap:.3rem}
.chip:hover,.chip:focus-visible{border-color:var(--accent);color:var(--accent)}
.chip .ic{width:.9rem;height:.9rem}

/* ── fixes found by rendering at 390px ──────────────────────────────────────
   The buttons gained icons and had no gap, so they read "✓Already did it".
   The tab bar is fixed, so the page needs room underneath or the last thing on
   it sits behind the bar. */
.btn{display:inline-flex;align-items:center;gap:.42rem}
.wrap{padding-bottom:5.5rem}

/* ── the completion moment ──────────────────────────────────────────────────
   Finishing something used to swap in the next card silently, which reads as
   nothing having happened. This is the only reward the app gives, so it lands.

   Both cards are rendered; CSS shows one and then the other. No JavaScript, so
   it still works with JS off, and prefers-reduced-motion is a media query
   rather than a branch in code. */
.moment{text-align:center;padding:1.6rem 1.15rem 1.5rem}
.moment__disc{width:4.2rem;height:4.2rem;border-radius:50%;background:var(--accent);
  color:#fff;margin:0 auto .9rem;display:flex;align-items:center;justify-content:center;
  animation:disc .34s cubic-bezier(.34,1.3,.64,1) both}
.moment__disc svg{width:2.1rem;height:2.1rem}
/* The tick draws itself: the line is dashed to its own length and the gap is
   pulled back to zero.
   20 because that is what the path actually measures — getTotalLength() says
   19.8. It was 26, a guess, and the first quarter of the animation then drew
   nothing at all: the disc sat empty for 100ms before the tick appeared to
   start. Measured, not estimated. */
.moment__disc path{stroke-dasharray:20;stroke-dashoffset:20;stroke-width:2.2;
  animation:draw .4s .12s ease-out forwards}
@keyframes disc{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes draw{to{stroke-dashoffset:0}}

.moment__say{font-family:var(--display);font-size:1.5rem;margin:0 0 .35rem}
.moment__what{text-decoration:line-through;color:var(--quiet);margin:0;overflow-wrap:anywhere}
.moment__mins{color:var(--quiet);font-size:.86rem;margin:.5rem 0 0;
  display:flex;align-items:center;justify-content:center;gap:.32rem}
/* Centred text with the icon on the first line. A flex row put the tick
   beside a two-line block and left it stranded against the card edge. */
.moment__all{color:var(--accent);font-weight:600;margin:.8rem 0 0;
  text-align:center;line-height:1.35}
.moment__all .ic{vertical-align:-.18em;margin-right:.3rem}
.moment__undo{margin:.9rem 0 0}

/* The swap. The moment holds, fades, and the next thing takes its place. */
.moment{animation:hold 2.3s forwards}
.after-moment{animation:arrive .35s 2.3s backwards;opacity:0;animation-fill-mode:forwards}
@keyframes hold{0%,82%{opacity:1;transform:none}100%{opacity:0;transform:scale(.97);
  height:0;padding:0;margin:0;overflow:hidden}}
@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Nothing here is load-bearing, so under reduced motion the tick is simply
   present and the pause is shorter. Handled here, not with a branch in PHP. */
@media (prefers-reduced-motion:reduce){
  .moment__disc{animation:none}
  .moment__disc path{stroke-dashoffset:0;animation:none}
  .moment{animation:hold 1.1s forwards}
  .after-moment{animation:arrive .01s 1.1s backwards;animation-fill-mode:forwards}
}

/* ── the timer ──────────────────────────────────────────────────────────────
   A full-screen surface with nothing else on it. Time blindness is the part
   people underestimate: a due date is abstract, a ring closing in front of you
   is not, and ten minutes is short enough to agree to when starting feels
   impossible. */
.timer{position:fixed;inset:0;background:var(--bg);display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;padding:2rem 1.2rem;z-index:50;
  overflow-y:auto}
.timer__badge{margin-bottom:.4rem}
.timer__what{font-family:var(--display);font-size:1.4rem;line-height:1.25;
  margin:0 0 1.4rem;max-width:20rem;overflow-wrap:anywhere}
.ring{position:relative;width:14rem;height:14rem;margin-bottom:1rem;max-width:72vw;max-height:72vw}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .track{stroke:var(--line)}
/* One second per step, linear, so it moves the way a clock does rather than
   easing — an eased second looks like it is hesitating. */
.ring .fill{stroke:var(--accent);transition:stroke-dashoffset 1s linear}
.ring__t{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center}
.ring__t b{font-family:var(--display);font-size:3.1rem;font-weight:400;
  font-variant-numeric:tabular-nums;line-height:1}
.ring__t span{font-size:.8rem;color:var(--quiet);margin-top:.15rem}
.timer__note{color:var(--quiet);font-size:.86rem;margin:0 0 1.5rem;max-width:17rem}
.timer__acts{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center;align-items:center}
.timer__acts form{margin:0}

/* ── the rest of the reference's feel ───────────────────────────────────── */
.daybreak{border-radius:0 0 20px 20px}

/* Three tiers, not two. But overdue is amber and never red: the brief is
   explicit that the app does not warn her about a day she has already had,
   and the reference colours overdue the same as today, which reads as a
   warning. The brief wins over the prototype here, deliberately. */
.when--soon{background:#fbeccd;color:#7d5610}
.when--now{background:#f7ddcd;color:#8e3f18}
.when--late{background:#f4ece2;color:var(--late)}

.calm .ic{width:4.5rem;height:4.5rem;color:var(--accent);opacity:.3;margin-bottom:.5rem}

/* A pill that says what just happened and then goes away. A permanent banner
   for a transient fact is clutter she has to dismiss. */
.pop{position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(5.9rem + env(safe-area-inset-bottom,0px));
  background:var(--ink);color:#fff;padding:.55rem 1rem;border-radius:999px;
  font-size:.87rem;display:flex;align-items:center;gap:.4rem;z-index:40;
  box-shadow:0 1px 2px rgba(28,38,32,.04),0 4px 14px rgba(28,38,32,.05);
  animation:pop-in .25s ease-out, pop-out .4s 2.2s forwards}
@keyframes pop-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes pop-out{to{opacity:0;transform:translate(-50%,6px);visibility:hidden}}

/* Tabs: icon above label, as the reference has them. */
.tabs a{display:flex;flex-direction:column;align-items:center;gap:.14rem;
  font-size:.71rem;padding:.4rem .95rem .3rem;border-radius:12px;
  color:var(--quiet);text-decoration:none}
.tabs a .ic{width:1.35rem;height:1.35rem}
.tabs a.on{background:#e8f1ea;color:var(--accent);font-weight:600}
