/* ============ my.adhd focus ============
   A full-screen scene with four corners of chrome and one thing in the
   middle. Tokens come from /theme.css and /bento.css; the page's
   data-theme follows the scene's tone (set before paint in index.html),
   so every rule here reads a token and the light and dark scenes need no
   second stylesheet.

   Bento Brutal (2026-11-03): the scene is the ground, and everything you
   touch is a piece on it: a flat white (or pale) fill, an ink outline and
   a hard shadow, ink over a pale scene and blue over a deep one
   (bento.css flips --b-shadow with data-theme). Pieces keep their day
   colours over a dark scene, so each one puts the text tokens back to
   their day values (see "a piece's own day" below).

   Type: Baloo 2 for everything you read, Baloo caps for small lead-ins,
   DM Mono for the digits of the clock and the timer. Orange is the mark
   and the one press on screen: play. */

:root{
  --gutter:28px;
  --clock-scale:1;
  --scene-ink:#FFFFFF;
  --scene-soft:rgba(255,255,255,.78);
  --scene-faint:rgba(255,255,255,.6);
  --btn:50px;            /* a corner button */
}
:root[data-theme="light"]{
  --scene-ink:var(--black);
  --scene-soft:rgba(16,16,24,.74);
  --scene-faint:rgba(16,16,24,.6);
}
:root[data-size="s"]{--clock-scale:.68}
:root[data-size="l"]{--clock-scale:1.4}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; overflow:hidden;
  background:var(--black); color:var(--scene-ink);
  font-family:var(--display);
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}
:root[data-theme="light"] body{background:var(--backdrop)}
button{font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer}
input,textarea{font:inherit; color:inherit}
[hidden]{display:none !important}
.ic{width:20px; height:20px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; flex:none}
/* Solid parts of an icon carry fill="currentColor" on the shape itself, in the
   sprite. A class would not do: the shape is cloned into <use>'s shadow tree,
   where a selector like .ic .fill never matches, and they drew hollow. */
/* The hard shadow lives in box-shadow, so the ring cannot: an outline,
   outside the piece, in a blue that clears 3:1 on the scene (bento.css
   lifts it to the pale blue over a dark one). */
:focus-visible{outline:3px solid var(--b-focus); outline-offset:3px}

/* ============ scenes ============
   Each scene is a handful of custom properties on [data-scene]: the mesh,
   three light colours, whether the lights move, and the colour of the
   active mode. The same selectors paint the thumbnails in settings, so a scene
   is defined exactly once.

   Eight that do not look alike — three families of colour, four kinds of
   surface:
     violet   Indigo (mesh) · Aurora (moving light) · Lilac (moving, pale)
     orange   Ember (glow from below) · Apricot (pale) · Horizon (a line of it)
     neutral  Charcoal (dot grid) · Paper (graph paper)
   Orange in a scene is the user's call (2026-10-04), against this site's
   rule that orange means act now. It is held to the two orange scenes and
   Horizon's one line, and the active mode turns orange with them rather
   than sitting blue on an orange field. */
/* Every scene starts from nothing. Without this a thumbnail inherited
   whatever the page was wearing: on Aurora, Paper and Apricot came out
   violet, because they set no lights of their own and took Aurora's. */
[data-scene]{
  --l1:transparent; --l2:transparent; --l3:transparent; --lights:0;
}
[data-scene="indigo"]{
  --mesh:
    radial-gradient(55% 75% at 8% 35%, rgba(123,63,228,.95) 0%, rgba(123,63,228,0) 62%),
    radial-gradient(60% 65% at 92% 92%, #ACA5FF 0%, rgba(71,55,255,.55) 38%, rgba(71,55,255,0) 72%),
    radial-gradient(45% 55% at 58% 62%, rgba(53,41,191,.9) 0%, rgba(53,41,191,0) 70%),
    linear-gradient(165deg, #3A1C86 0%, #101018 42%, #15122E 100%);
}
[data-scene="aurora"]{
  --mesh:linear-gradient(180deg, #0A0A12 0%, #08080C 100%);
  --l1:#4737FF; --l2:#7B3FE4; --l3:#ACA5FF; --lights:.62;
}
[data-scene="ember"]{
  --mesh:
    radial-gradient(75% 55% at 50% 112%, #F75C03 0%, rgba(247,92,3,.7) 28%, rgba(247,92,3,0) 68%),
    radial-gradient(35% 30% at 12% 104%, rgba(255,150,80,.8) 0%, rgba(255,150,80,0) 70%),
    radial-gradient(45% 40% at 88% -5%, rgba(123,63,228,.28) 0%, rgba(123,63,228,0) 70%),
    linear-gradient(180deg, #0E0806 0%, #1A0C06 60%, #2A1206 100%);
}
[data-scene="horizon"]{
  --mesh:
    radial-gradient(70% 9% at 50% 62%, rgba(255,138,61,.95) 0%, rgba(247,92,3,.45) 40%, rgba(247,92,3,0) 75%),
    linear-gradient(180deg, #0B0B1A 0%, #17143A 35%, #2D2470 61.4%, #FF9A55 61.8%, #F75C03 62.1%, #3A1C86 62.5%, #1A0F3A 78%, #0B0818 100%);
}
[data-scene="charcoal"]{
  --mesh:
    radial-gradient(circle, rgba(255,255,255,.085) 1.1px, rgba(255,255,255,0) 1.7px) 0 0 / 22px 22px,
    radial-gradient(70% 60% at 50% 45%, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #2E3138 0%, #24272D 100%);
}
[data-scene="apricot"]{
  /* solid stops only: a fade to transparent dithered into black specks in
     WebKit at thumbnail size */
  --mesh:radial-gradient(95% 105% at 12% 112%, #FFAE78 0%, #FFCDAA 32%, #FFE8D9 62%, #FFF8F3 100%);
}
[data-scene="lilac"]{
  --mesh:
    radial-gradient(55% 70% at 5% 15%, #DCC9FF 0%, rgba(220,201,255,0) 70%),
    radial-gradient(50% 50% at 55% 50%, #FFFFFF 0%, rgba(255,255,255,0) 70%),
    linear-gradient(160deg, #EFEDFA 0%, #E2DEF8 100%);
  --l1:#ACA5FF; --l2:#DCC9FF; --l3:#8B7DFF; --lights:.5;
}
[data-scene="paper"]{
  --mesh:
    linear-gradient(rgba(71,55,255,.075) 1px, rgba(71,55,255,0) 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(71,55,255,.075) 1px, rgba(71,55,255,0) 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #FCFBF8 0%, #F6F4EE 100%);
}
:root[data-scene="charcoal"] .scene-grain, :root[data-scene="paper"] .scene-grain{opacity:.08}

.scene{position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none}
.scene-mesh{position:absolute; inset:0; background:var(--mesh); transition:opacity .6s var(--ease)}
.scene-light{
  position:absolute; width:62vmax; height:62vmax; border-radius:50%;
  filter:blur(90px); opacity:var(--lights, 0); will-change:transform;
}
.scene-light.l1{background:var(--l1, transparent); left:-18vmax; top:-14vmax; animation:drift1 38s ease-in-out infinite alternate}
.scene-light.l2{background:var(--l2, transparent); right:-20vmax; top:18vh; animation:drift2 46s ease-in-out infinite alternate}
.scene-light.l3{background:var(--l3, transparent); left:20vw; bottom:-30vmax; width:50vmax; height:50vmax; animation:drift3 52s ease-in-out infinite alternate}
@keyframes drift1{to{transform:translate(28vw, 22vh) scale(1.15)}}
@keyframes drift2{to{transform:translate(-30vw, -12vh) scale(.9)}}
@keyframes drift3{to{transform:translate(18vw, -26vh) scale(1.2)}}
.still .scene-light{animation:none}
@media (prefers-reduced-motion:reduce){ .scene-light{animation:none} }

/* grain: a tile of fractal noise, laid over everything at low strength.
   It is what turns a CSS gradient from flat plastic into something that
   reads as light. */
.scene-grain{
  position:absolute; inset:-50%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.16; mix-blend-mode:overlay;
}
:root[data-theme="light"] .scene-grain{opacity:.22; mix-blend-mode:soft-light}
.scene-veil{position:absolute; inset:0; background:radial-gradient(60% 50% at 50% 50%, rgba(0,0,0,.18), rgba(0,0,0,0) 70%)}
:root[data-theme="light"] .scene-veil{background:radial-gradient(60% 50% at 50% 50%, rgba(255,255,255,.35), rgba(255,255,255,0) 70%)}
:root[data-mode="ambient"] .scene-veil{background:none}

/* ============ a piece's own day ============
   A piece keeps its day colours over a dark scene, so the type inside
   it has to as well: every token a piece's children read goes back to its
   day value here, or a white panel on a dark scene would draw white text.
   Inside the bigger pieces the focus ring goes back to the day blue too:
   the pale night blue is 1.6:1 on white. */
.corner-tl, .quote, .mini, .intent-edit, .segs, .controls .icon-btn, .dock .icon-btn,
.corner-br, .pop, .settings, .toast{
  --ink:var(--black); --ink-soft:var(--navy); --muted:var(--stone); --faint:#6B6B7A;
  --line:#E4E2F5; --line-strong:#CFCBE9; --accent:var(--blue); --on-accent:#FFFFFF;
  --violet-ink:var(--violet); --surface:#FFFFFF; --wash:#F4F3FE; --wash-2:#E9E7FD;
  --danger-ink:var(--danger);
  --scene-ink:var(--black); --scene-soft:var(--navy); --scene-faint:var(--stone);
  color:var(--ink);
}
.corner-tl, .mini, .intent-edit, .segs, .modes, .pop, .settings{--b-focus:var(--blue)}
.brand-lockup:focus-visible{outline-offset:0}


/* ============ buttons ============
   A corner button is a white square piece with a 16px curve. --l and
   --sh are read by the press rules at the end. */
.icon-btn{
  --l:var(--b-lift-sm); --sh:var(--b-shadow);
  position:relative; display:inline-grid; place-items:center; flex:none;
  width:var(--btn); height:var(--btn); border-radius:var(--b-radius);
  background:var(--p-white); color:var(--p-text);
  border:var(--b-stroke) solid var(--b-line);
  box-shadow:var(--l) var(--l) 0 var(--sh);
  transition:transform var(--b-release) var(--ease), box-shadow var(--b-release) var(--ease), background-color .16s var(--ease), opacity .2s;
}
@media (hover:hover){ .icon-btn:hover{background:var(--p-wash)} }
.icon-btn[aria-expanded="true"]{--sh:var(--b-shadow-ink); background:var(--p-ink); color:var(--p-on-dark)}
/* Small ones live inside a piece: outlined, no shadow of their own. */
.icon-btn.sm{--l:0px; width:44px; height:44px; border-width:var(--b-stroke-thin)}
.icon-btn.sm .ic{width:18px; height:18px}
.icon-btn.ghost{--l:0px; background:none; border-color:transparent}
@media (hover:hover){ .icon-btn.ghost:hover{background:var(--p-wash)} }
.icon-btn:disabled{cursor:default}

/* The timer's controls: play is the one orange circle on the screen and
   the biggest thing in the row; skip, reset and float are white circles,
   outlined, with no shadow. */
.controls .icon-btn{
  --l:0px; width:56px; height:56px; border-radius:var(--b-pill);
}
.controls .icon-btn .ic{width:24px; height:24px}
.controls .icon-btn[data-act="toggle"]{
  --l:var(--b-lift); width:76px; height:76px;
  background:var(--orange); color:var(--black);
}
.controls .icon-btn[data-act="toggle"] .ic{width:30px; height:30px}
@media (hover:hover){ .controls .icon-btn[data-act="toggle"]:hover{background:var(--orange)} }

/* ============ corners ============ */
.corner{position:fixed; z-index:5; display:flex; align-items:center; gap:10px}
.corner-tl{top:calc(var(--gutter) + env(safe-area-inset-top)); left:calc(var(--gutter) + env(safe-area-inset-left))}
.corner-tr{top:calc(var(--gutter) + env(safe-area-inset-top)); right:calc(var(--gutter) + env(safe-area-inset-right)); flex-direction:column; align-items:flex-end}
.corner-bl{z-index:6; bottom:calc(var(--gutter) + env(safe-area-inset-bottom)); left:calc(var(--gutter) + env(safe-area-inset-left)); align-items:flex-end}
.corner-br{bottom:calc(var(--gutter) + env(safe-area-inset-bottom)); right:calc(var(--gutter) + env(safe-area-inset-right))}
.chrome, .corner-tr .quote, .mini{transition:opacity .5s var(--ease), transform var(--b-release) var(--ease), box-shadow var(--b-release) var(--ease)}
.idle .chrome, .idle .corner-tr .quote{opacity:0; pointer-events:none}
.idle body{cursor:none}

/* top left: the lockup on a white capsule */
.corner-tl{
  height:52px; padding:0 8px 0 14px;
  background:var(--p-white);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-pill);
  box-shadow:var(--b-lift) var(--b-lift) 0 var(--b-shadow);
}
.brand-lockup{--logo-size:28px; display:inline-flex; align-items:center; min-height:44px; text-decoration:none; border-radius:var(--b-pill)}
.brand-lockup .wordmark{color:var(--p-text); font-size:21px; font-weight:800}
.brand-tag{
  display:inline-flex; align-items:center; height:30px; padding:0 11px;
  font-family:var(--display); font-weight:700; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; line-height:1;
  color:var(--p-text); background:var(--p-pale);
  border:var(--b-stroke-thin) solid var(--b-line); border-radius:var(--b-pill);
}

/* top right: the quote, a violet-pale piece you can press for another */
.quote{
  --l:var(--b-lift); --sh:var(--b-shadow);
  max-width:min(440px, 46vw); min-height:52px; padding:12px 20px; text-align:right;
  font-weight:700; font-size:17px; line-height:1.25; letter-spacing:-.01em;
  color:var(--p-text); text-wrap:balance;
  background:var(--p-violet-pale);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
  box-shadow:var(--l) var(--l) 0 var(--sh);
}
.quote::before{content:"\201C"} .quote::after{content:"\201D"}
.quote:empty{display:none}
:root[data-mode="ambient"] .quote{display:none}

/* ============ the stage ============ */
.stage{position:fixed; inset:0; z-index:2; display:grid; place-items:center; padding:108px var(--gutter)}
.view{display:none; flex-direction:column; align-items:center; text-align:center; animation:arrive .5s var(--ease)}
:root[data-mode="home"] .view-home, :root[data-mode="focus"] .view-focus{display:flex}
@keyframes arrive{from{opacity:0; transform:translateY(10px)}}

.greeting{margin:0 0 10px; font-weight:800; font-size:calc(28px * min(var(--clock-scale), 1.15)); line-height:1.1; letter-spacing:-.02em; color:var(--scene-ink); text-wrap:balance}
.greeting:empty{display:none}
/* The digits are DM Mono, the board's face for a clock: every digit the
   same width, so the time never shuffles sideways as it counts. */
.clock, .timer{
  margin:0; font-family:var(--mono); font-weight:500; line-height:.92; letter-spacing:-.06em;
  font-variant-numeric:tabular-nums;
  font-size:calc(clamp(88px, 15vw, 200px) * var(--clock-scale));
  color:var(--scene-ink);
  /* The glyph box spills over whatever sits on top (the segment tabs)
     with a line-height under 1, and once swallowed every click on them.
     Nothing here is meant to be clicked. */
  pointer-events:none;
}
.clock-ampm{font-family:var(--display); font-size:.22em; letter-spacing:0; margin-left:.2em; font-weight:800; color:var(--scene-ink)}
.clock-ampm:empty{display:none}

/* focus: the one thing, asked for in a dashed capsule */
.intent{position:relative; min-height:48px; margin-bottom:18px; display:flex; justify-content:center}
.intent-ask{
  display:inline-flex; align-items:center; min-height:48px; padding:0 22px;
  font-weight:700; font-size:20px; letter-spacing:-.01em; color:var(--scene-ink);
  border:var(--b-stroke) dashed var(--scene-ink); border-radius:var(--b-pill);
  transition:background-color .16s var(--ease);
}
@media (hover:hover){ .intent-ask:hover{background:color-mix(in srgb, var(--scene-ink) 10%, transparent)} }
.intent.editing .intent-ask, .intent.editing .intent-set{visibility:hidden}
.intent-set{display:flex; align-items:center; gap:12px; max-width:min(640px, 86vw)}
.intent-title{min-height:44px; font-weight:800; font-size:24px; letter-spacing:-.015em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.intent-done{
  width:44px; height:44px; border-radius:var(--b-pill); flex:none;
  border:var(--b-stroke) solid var(--scene-ink); display:grid; place-items:center;
  color:transparent; transition:background-color .16s var(--ease), color .16s var(--ease);
}
.intent-done .ic{width:18px; height:18px}
@media (hover:hover){ .intent-done:hover{color:var(--scene-ink)} }
.intent-edit{
  position:absolute; top:-6px; z-index:3; width:min(460px, 86vw); padding:8px; text-align:left;
  background:var(--p-white);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
  box-shadow:var(--b-lift) var(--b-lift) 0 var(--b-shadow);
}
.intent-edit input{width:100%; min-height:48px; border:0; outline:0; background:transparent; font-size:19px; font-weight:700; padding:10px 12px}
.intent-edit input::placeholder{color:var(--muted)}
.intent-picks{list-style:none; margin:0; padding:0; max-height:220px; overflow:auto}
.intent-picks:empty{display:none}
.intent-picks button{display:flex; gap:10px; align-items:center; width:100%; min-height:44px; text-align:left; padding:9px 12px; border-radius:var(--b-radius); font-weight:600; color:var(--ink)}
.intent-picks button .ic{width:16px; height:16px; color:var(--ink)}
@media (hover:hover){ .intent-picks button:hover{background:var(--p-wash)} }
.intent-picks small{margin:8px 12px 2px; display:block; font-family:var(--display); font-weight:700; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink)}

/* the segment: a white capsule, the one picked is ink */
.segs{
  position:relative; z-index:1; display:inline-flex; gap:2px; justify-content:center; padding:3px;
  background:var(--p-white);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-pill);
}
.segs button{
  min-height:40px; padding:0 16px; border-radius:var(--b-pill);
  font-weight:700; font-size:15px; color:var(--p-text);
  transition:background-color .16s var(--ease), color .16s var(--ease);
}
@media (hover:hover){ .segs button:hover{background:var(--p-wash)} }
.segs button[aria-selected="true"]{background:var(--p-ink); color:var(--p-on-dark)}
.segs-alt{
  margin:0; font-family:var(--display); font-weight:700; font-size:15px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--scene-ink);
}
/* the rounds: done ones are full, this one is a capsule, the rest rings */
.dots{display:flex; gap:8px; align-items:center; justify-content:center; margin:16px 0 10px; min-height:12px}
.dots i{width:12px; height:12px; border-radius:var(--b-pill); border:var(--b-stroke-thin) solid var(--scene-ink); transition:width .3s var(--ease), background-color .3s var(--ease)}
.dots i.done{background:var(--scene-ink)}
.dots i.now{width:28px; background:var(--scene-ink)}

.timer-wrap{position:relative; display:grid; place-items:center}
.ring{display:none}
:root[data-tstyle="ring"] .timer-wrap{width:calc(clamp(250px, 40vh, 420px) * var(--clock-scale)); aspect-ratio:1; margin:6px 0}
:root[data-tstyle="ring"] .ring{display:block; position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg)}
:root[data-tstyle="ring"] .timer{font-size:calc(clamp(56px, 8.6vh, 100px) * var(--clock-scale))}
.ring circle{fill:none; stroke-width:3.4}
.ring-track{stroke:var(--scene-ink); opacity:.22}
.ring-fill{stroke:var(--scene-ink); stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:100; transition:stroke-dashoffset .9s linear}
/* the progress bar: a capsule track with an ink edge */
.bar{
  width:min(380px, 70vw); height:14px; margin:18px 0 0; padding:2px; overflow:hidden; display:none;
  background:var(--p-white);
  border:var(--b-stroke-thin) solid var(--b-line); border-radius:var(--b-pill);
}
:root[data-bar="1"] .bar{display:block}
.bar span{display:block; height:100%; width:0; background:var(--p-ink); border-radius:inherit; transition:width .9s linear}
.controls{display:flex; gap:16px; align-items:center; margin-top:28px}

/* ambient: the mini timer in the corner, a white piece */
.mini{
  display:none; align-items:center; gap:14px; padding:8px 8px 8px 18px;
  background:var(--p-white);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
  box-shadow:var(--b-lift) var(--b-lift) 0 var(--b-shadow);
}
:root[data-mode="ambient"] .mini{display:flex}
.mini-seg{font-family:var(--display); font-weight:700; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink)}
.mini-time{font-family:var(--mono); font-weight:500; font-size:30px; letter-spacing:-.05em; line-height:1}
/* In ambient the mini's play is the only press on screen: it is orange. */
.mini .icon-btn{background:var(--orange); color:var(--black); border-radius:var(--b-pill)}
@media (hover:hover){ .mini .icon-btn:hover{background:var(--orange)} }

/* ============ dock + popovers ============ */
.dock{display:flex; gap:10px}
.live-dot{position:absolute; top:5px; right:5px; width:9px; height:9px; border-radius:var(--b-pill); background:var(--p-blue); box-shadow:0 0 0 2px var(--p-white)}
.icon-btn[aria-expanded="true"] .live-dot{background:var(--p-white); box-shadow:none}
.pop{
  position:absolute; left:0; bottom:calc(var(--btn) + 18px); width:380px; max-height:min(66vh, 560px);
  display:flex; flex-direction:column;
  background:var(--p-white); color:var(--ink);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
  box-shadow:var(--b-lift) var(--b-lift) 0 var(--b-shadow);
  overflow:hidden; animation:pop .22s var(--ease);
}
.pop-wide{width:540px}
#pop-sounds{background:var(--p-pale); --muted:var(--navy)}
@keyframes pop{from{opacity:0; transform:translateY(8px)}}
.pop-head{display:flex; align-items:center; gap:8px; padding:14px 10px 10px 20px}
.pop-head h2{margin:0; font-size:24px; font-weight:800; line-height:1.1; letter-spacing:-.02em}
.pop-meta{flex:1; font-family:var(--sans); font-size:13.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pop-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 20px 14px; font-family:var(--sans); font-size:14px; color:var(--muted)}
.link{display:inline-flex; align-items:center; min-height:36px; font-family:var(--sans); font-size:14px; font-weight:700; color:var(--ink); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px}
.link.danger{color:var(--danger)}
.link.quiet{color:var(--ink)}
.link.armed{min-height:32px; color:#FFFFFF; background:var(--danger); padding:0 12px; border-radius:var(--b-pill); text-decoration:none}

/* tasks: rows in the piece; the top three sit on a wash with an edge */
.tasks{list-style:none; margin:0; padding:0 10px; overflow:auto; flex:1}
.task{display:flex; align-items:center; gap:10px; min-height:52px; padding:6px 8px 6px 12px; border-radius:var(--b-radius); border:var(--b-stroke-thin) solid transparent; transition:background-color .15s}
.task.spot{background:var(--p-wash); border-color:var(--b-line)}
.task + .task{margin-top:6px}
.task.drag{opacity:.4}
.task.over{box-shadow:inset 0 3px 0 var(--accent)}
.task-check{width:26px; height:26px; border-radius:var(--b-pill); border:var(--b-stroke) solid var(--b-line); background:var(--p-white); display:grid; place-items:center; flex:none; color:transparent; transition:background-color .18s var(--ease)}
.task-check .ic{width:14px; height:14px}
.task.done .task-check{background:var(--p-ink); color:var(--p-on-dark)}
.task-title{flex:1; min-width:0; font-size:16px; font-weight:700; line-height:1.3; overflow-wrap:anywhere; cursor:grab}
.task:not(.spot) .task-title{font-weight:600; color:var(--ink-soft)}
.task-edit{flex:1; min-width:0; border:0; outline:0; background:transparent; padding:0; font-size:16px; font-weight:700; line-height:1.3; color:var(--ink)}
.task.done .task-title{text-decoration:line-through; text-decoration-thickness:2px; color:var(--muted); font-weight:600}
.task.current .task-title{color:var(--accent)}
.task-act{display:flex; gap:2px; opacity:0; transition:opacity .15s}
.task:hover .task-act, .task:focus-within .task-act{opacity:1}
@media (hover:none){ .task-act{opacity:1} }
.task-act button{width:36px; height:36px; border-radius:var(--b-pill); display:grid; place-items:center; color:var(--ink)}
.task-act button .ic{width:17px; height:17px}
@media (hover:hover){ .task-act button:hover{background:var(--p-white); box-shadow:inset 0 0 0 var(--b-stroke-thin) var(--b-line)} }
.tasks-empty{padding:18px 12px; font-family:var(--sans); font-size:15px; color:var(--muted); text-align:center}
.task-add{display:flex; align-items:center; gap:10px; margin:10px 10px 0; padding:2px 14px; border-radius:var(--b-radius); border:var(--b-stroke-thin) dashed var(--b-line); color:var(--ink)}
.task-add .ic{width:17px; height:17px}
.task-add input{flex:1; min-height:44px; border:0; outline:0; background:transparent; font-size:16px; font-weight:600; padding:8px 0; color:var(--ink)}
.task-add input::placeholder{color:var(--muted)}
.task-add:focus-within{border-style:solid; outline:3px solid var(--b-focus); outline-offset:2px}

/* sounds: a pale piece of white tiles; a sound that is on turns blue */
.chips{display:flex; gap:6px; padding:0 20px 12px; flex-wrap:wrap}
.chips button{
  min-height:36px; padding:0 14px; border-radius:var(--b-pill);
  font-size:14px; font-weight:700; color:var(--ink);
  background:var(--p-white); border:var(--b-stroke-thin) solid var(--b-line);
  transition:background-color .15s;
}
@media (hover:hover){ .chips button:hover{background:var(--p-wash)} }
.chips button[aria-selected="true"]{background:var(--p-ink); color:var(--p-on-dark)}
.sounds{display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; padding:2px 16px 18px; overflow:auto}
.sound{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:14px 6px 10px; border-radius:var(--b-radius); text-align:center;
  background:var(--p-white); color:var(--ink);
  border:var(--b-stroke) solid var(--b-line);
  transition:background-color .18s var(--ease);
}
.sound .ic{width:26px; height:26px; color:var(--ink)}
.sound b{font-size:14px; font-weight:700; line-height:1.15}
.sound.on{background:var(--p-blue); color:var(--p-on-dark)}
.sound.on .ic{color:var(--p-on-dark)}
.sound button{border-radius:var(--b-radius)}
.sound input[type="range"]{width:86%; height:18px; accent-color:var(--p-white); margin:0; visibility:hidden}
.sound.on input[type="range"]{visibility:visible}
.sound.on :focus-visible{outline-color:var(--p-white)}

/* notes */
#notes{
  flex:1; min-height:280px; margin:0 16px 16px; padding:14px 16px; resize:none; outline:0;
  font-family:var(--sans); font-size:16px; line-height:1.55; color:var(--ink);
  background:var(--p-white); border:var(--b-stroke-thin) solid var(--b-line); border-radius:var(--b-radius);
}
#notes::placeholder{color:var(--muted)}
#notes:focus-visible{outline:3px solid var(--b-focus); outline-offset:2px}

/* ============ bottom right ============
   The streak, the three modes and the two buttons: each one a piece. */
.corner-br{gap:10px}
.streak{
  display:none; align-items:center; gap:6px; height:var(--btn); padding:0 16px;
  font-weight:800; font-size:18px; color:var(--p-text);
  background:var(--p-white);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-pill);
  box-shadow:var(--b-lift-sm) var(--b-lift-sm) 0 var(--b-shadow);
}
.streak .ic{width:18px; height:18px; color:var(--violet)}
:root[data-mode="focus"][data-streak="1"] .streak{display:inline-flex}
.modes{
  display:flex; gap:2px; padding:2px;
  background:var(--p-white);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-pill);
  box-shadow:var(--b-lift-sm) var(--b-lift-sm) 0 var(--b-shadow);
}
.modes button{
  position:relative; width:48px; height:calc(var(--btn) - 4px - 2 * var(--b-stroke)); border-radius:var(--b-pill);
  display:grid; place-items:center; color:var(--p-text);
  transition:background-color .16s var(--ease), color .16s var(--ease);
}
/* The capsule's edge is not the button's: stretch the hit area over it. */
.modes button::after{content:""; position:absolute; inset:-5px 0}
.modes button .ic{width:20px; height:20px}
@media (hover:hover){ .modes button:hover{background:var(--p-wash)} }
.modes button[aria-selected="true"]{background:var(--p-ink); color:var(--p-on-dark)}
/* the label: a small ink capsule above the button */
.tip{
  position:absolute; bottom:calc(100% + 14px); left:50%; transform:translate(-50%, 4px);
  padding:5px 11px; border-radius:var(--b-pill);
  background:var(--p-ink); color:var(--p-on-dark);
  font-size:13px; font-weight:700; line-height:1.2; white-space:nowrap;
  opacity:0; pointer-events:none; transition:opacity .18s var(--ease), transform .18s var(--ease);
}
.modes button:hover .tip, .modes button:focus-visible .tip{opacity:1; transform:translate(-50%, 0)}

/* ============ settings ============
   A violet-pale piece standing in from the right, a white list of
   sections down its side, and every setting a white row. */
.shade{position:fixed; inset:0; z-index:20; background:rgba(8,8,12,.4); animation:fade .25s var(--ease)}
@keyframes fade{from{opacity:0}}
.settings{
  --muted:var(--navy);
  position:fixed; z-index:21; top:16px; right:16px; bottom:16px; width:min(800px, calc(100% - 32px));
  display:grid; grid-template-columns:210px 1fr; overflow:hidden;
  background:var(--p-violet-pale); color:var(--ink);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
  box-shadow:var(--b-lift-lg) var(--b-lift-lg) 0 var(--b-shadow);
  animation:slide .32s var(--ease);
}
@keyframes slide{from{transform:translateX(40px); opacity:0}}
.set-nav{
  display:flex; flex-direction:column; gap:4px; align-self:start;
  margin:14px 0 14px 14px; padding:8px;
  background:var(--p-white);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
}
.set-close{margin:0 0 8px 2px}
.set-nav button[data-sec]{
  display:flex; align-items:center; min-height:46px; padding:0 16px; text-align:left;
  border-radius:var(--b-pill); font-weight:700; font-size:16px; color:var(--ink);
  transition:background-color .16s var(--ease);
}
@media (hover:hover){ .set-nav button[data-sec]:hover{background:var(--p-wash)} }
.set-nav button[aria-current="true"]{background:var(--p-ink); color:var(--p-on-dark)}
.set-body{overflow:auto; padding:28px 30px 60px}
.set-sec h2{margin:0; font-size:36px; font-weight:800; line-height:1; letter-spacing:-.025em}
.set-sec h3{margin:28px 0 12px; font-size:14px; font-weight:700; letter-spacing:.08em; text-transform:uppercase}
.set-lede{margin:8px 0 20px; font-family:var(--sans); color:var(--ink); font-size:16px}
.set-foot{margin-top:28px; font-family:var(--sans); font-size:14px; color:var(--ink)}
.set-foot a{color:var(--ink); font-weight:700; text-decoration-thickness:2px; text-underline-offset:3px}
.row{
  --muted:var(--stone);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  min-height:60px; padding:12px 16px; margin-top:8px;
  background:var(--p-white);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
}
.row.col{flex-direction:column; align-items:flex-start}
.row > span:first-child{display:flex; flex-direction:column; gap:2px; min-width:0}
.row b{font-weight:700; font-size:16px}
.row small{font-family:var(--sans); color:var(--muted); font-size:14px; line-height:1.35}
.row-btns{display:flex; gap:8px; flex-wrap:wrap}
/* the lengths: four small white pieces, the minutes in the clock's digits */
.row.lengths, #len-count{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; padding:0; background:none; border:0}
.lengths label{
  display:flex; flex-direction:column; gap:6px; padding:12px 14px;
  background:var(--p-white); border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
}
.lengths small{font-weight:700; font-size:14px; color:var(--ink); font-family:var(--display)}
.num{display:flex; align-items:baseline; gap:6px; font-family:var(--mono); font-size:13px; color:var(--ink)}
.field{
  min-height:44px; min-width:0; padding:8px 12px; outline:0;
  font-size:16px; font-weight:700; color:var(--ink);
  background:var(--p-wash); border:var(--b-stroke-thin) solid var(--b-line); border-radius:var(--b-radius);
}
.field:focus-visible{outline:3px solid var(--b-focus); outline-offset:2px}
.num .field{width:76px; font-family:var(--mono); font-weight:500; font-size:22px; padding:4px 10px}
input[type="text"].field{width:190px}
/* a choice: a white capsule, the one picked is ink */
.seg-ctl{
  display:inline-flex; flex-wrap:nowrap; max-width:100%; gap:2px; padding:3px;
  background:var(--p-white); border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-pill);
}
.seg-ctl button{
  min-height:40px; padding:0 16px; border-radius:var(--b-pill);
  font-size:15px; font-weight:700; color:var(--ink);
  transition:background-color .15s;
}
@media (hover:hover){ .seg-ctl button:hover{background:var(--p-wash)} }
.seg-ctl button[aria-pressed="true"], .seg-ctl button[aria-selected="true"]{background:var(--p-ink); color:var(--p-on-dark)}
/* a switch: a white capsule with an ink knob; on, it turns ink */
.switch{
  appearance:none; -webkit-appearance:none; flex:none; position:relative; margin:0; cursor:pointer;
  width:54px; height:32px; border-radius:var(--b-pill);
  background:var(--p-white); border:var(--b-stroke) solid var(--b-line);
  transition:background-color .2s var(--ease);
}
.switch::after{content:""; position:absolute; top:3px; left:3px; width:21px; height:21px; border-radius:var(--b-pill); background:var(--p-ink); transition:transform .2s var(--ease), background-color .2s var(--ease)}
.switch:checked{background:var(--p-ink)}
.switch:checked::after{transform:translateX(22px); background:var(--p-white)}
.btn{
  display:inline-flex; align-items:center; gap:8px; min-height:44px; margin-top:14px; padding:0 18px;
  font-weight:700; font-size:15px; color:var(--ink);
  background:var(--p-white); border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-pill);
  transition:background-color .16s var(--ease);
}
.row-btns .btn{margin-top:0}
.btn .ic{width:17px; height:17px}
@media (hover:hover){ .btn:hover{background:var(--p-wash)} }
.btn.danger{color:var(--danger)}
.btn.danger.armed{background:var(--danger); color:#FFFFFF}

.scene-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin:18px 0 6px}
.thumb{display:flex; flex-direction:column; gap:8px; text-align:left; border-radius:var(--b-radius)}
.thumb-art{position:relative; aspect-ratio:16/10; border-radius:var(--b-radius); overflow:hidden; background:var(--mesh); border:var(--b-stroke) solid var(--b-line)}
.thumb-art::before, .thumb-art::after{content:""; position:absolute; border-radius:50%; filter:blur(18px); opacity:var(--lights, 0)}
.thumb-art::before{width:70%; height:90%; left:-15%; top:-20%; background:var(--l1, transparent)}
.thumb-art::after{width:60%; height:80%; right:-10%; bottom:-25%; background:var(--l2, transparent)}
.thumb-art span{position:absolute; inset:0; display:grid; place-items:center; font-weight:800; font-size:22px; letter-spacing:-.03em; color:#FFFFFF; z-index:1}
.thumb[data-tone="light"] .thumb-art span{color:var(--black)}
/* the picked scene stands up off the page */
.thumb[aria-pressed="true"] .thumb-art{box-shadow:var(--b-lift) var(--b-lift) 0 var(--b-shadow)}
.thumb[aria-pressed="true"] b{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px}
.thumb b{font-size:15px; font-weight:700}
.thumb b small{font-family:var(--display); font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink); margin-left:6px}

.tiles{display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-top:16px}
.tile{
  padding:14px 16px;
  background:var(--p-white); border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
}
.tile:nth-child(4n+2){background:var(--p-pale)}
.tile:nth-child(4n+4){background:var(--p-blue-pale)}
.tile small{display:block; font-family:var(--display); font-weight:700; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink)}
.tile b{display:block; margin-top:6px; font-size:28px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums}
.tile em{display:block; font-style:normal; font-family:var(--sans); font-size:13px; color:var(--ink)}
.heat{
  display:grid; grid-template-rows:repeat(7, 1fr); grid-auto-flow:column; grid-auto-columns:1fr; gap:4px; max-width:540px; padding:12px;
  background:var(--p-white); border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-radius);
}
.heat i, .heat-key i{aspect-ratio:1; border-radius:var(--b-pill); background:var(--p-wash); box-shadow:inset 0 0 0 1px var(--line-strong)}
.heat i[data-l="1"], .heat-key i[data-l="1"]{background:var(--p-blue-pale); box-shadow:none}
.heat i[data-l="2"], .heat-key i[data-l="2"]{background:color-mix(in srgb, var(--p-blue) 55%, var(--p-blue-pale)); box-shadow:none}
.heat i[data-l="3"], .heat-key i[data-l="3"]{background:var(--p-blue); box-shadow:none}
.heat i[data-l="4"], .heat-key i[data-l="4"]{background:var(--p-ink); box-shadow:none}
.heat i.future{visibility:hidden}
.heat-key{display:flex; align-items:center; gap:4px; margin-top:10px; font-family:var(--sans); font-size:13px; color:var(--ink)}
.heat-key i{width:12px}
.heat-key span{margin:0 4px}
.keys{display:grid; grid-template-columns:auto 1fr; gap:6px 12px; margin:0; font-size:14px}
.keys dt{font-family:var(--mono); font-size:12.5px; padding:2px 9px; border-radius:var(--b-pill); background:var(--p-white); border:var(--b-stroke-thin) solid var(--b-line); justify-self:end}
.keys dd{margin:0; font-family:var(--sans); color:var(--ink)}

/* ============ toast ============ */
.toast{
  position:fixed; z-index:30; left:50%; bottom:calc(var(--gutter) + var(--btn) + 22px); transform:translate(-50%, 10px);
  margin:0; padding:12px 20px; max-width:calc(100% - 32px); text-align:center;
  background:var(--p-ink); color:var(--p-on-dark);
  border:var(--b-stroke) solid var(--b-line); border-radius:var(--b-pill);
  box-shadow:var(--b-lift-sm) var(--b-lift-sm) 0 var(--b-shadow-ink);
  font-weight:700; font-size:15px; opacity:0; pointer-events:none; transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.show{opacity:1; transform:translate(-50%, 0)}

/* ============ pressing ============
   A piece rises 2px under the pointer and sinks onto its shadow when
   pressed. Under reduced motion nothing moves; it dims. */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .icon-btn:not(.sm):not(.ghost):not(:disabled):hover, .quote:hover{
    transform:translate(-2px,-2px);
    box-shadow:calc(var(--l) + 2px) calc(var(--l) + 2px) 0 var(--sh);
  }
}
@media (prefers-reduced-motion:no-preference){
  .icon-btn:not(:disabled):active, .quote:active{
    transform:translate(var(--l),var(--l));
    box-shadow:0 0 0 var(--sh);
    transition-duration:0s;
  }
}
@media (prefers-reduced-motion:reduce){
  .icon-btn:active, .quote:active, .modes button:active, .segs button:active, .seg-ctl button:active,
  .chips button:active, .btn:active, .sound button:active, .thumb:active{opacity:.7}
}

/* ============ phone ============ */
@media (max-width:720px){
  :root{--gutter:16px; --btn:44px}
  .corner-tl{height:46px; padding:0 6px 0 12px}
  .brand-lockup .wordmark{font-size:18px}
  .brand-lockup{--logo-size:24px}
  .quote{font-size:14.5px; min-height:46px; padding:10px 14px; max-width:52vw}
  .stage{padding:92px 16px 92px}
  .intent-ask{font-size:17px; padding:0 18px}
  .intent-title{font-size:19px}
  .segs button{min-height:44px; padding:0 13px; font-size:14.5px}
  .controls{gap:12px}
  .controls .icon-btn{width:52px; height:52px}
  .controls .icon-btn[data-act="toggle"]{width:68px; height:68px}
  .pop, .pop-wide{position:fixed; left:8px; right:8px; width:auto; bottom:calc(var(--gutter) + var(--btn) + 16px + env(safe-area-inset-bottom)); max-height:68vh}
  .sounds{grid-template-columns:repeat(3, 1fr)}
  .chips button{min-height:44px}
  .task-act button{width:44px; height:44px}
  .link{min-height:44px}
  .dock, .corner-br{gap:6px}
  .modes{padding:0}
  .modes button{width:44px; height:calc(var(--btn) - 2 * var(--b-stroke))}
  .modes button::after{inset:calc(-1 * var(--b-stroke)) 0}
  .modes .tip{display:none}
  .settings{top:8px; right:8px; bottom:8px; width:calc(100% - 16px); grid-template-columns:1fr; grid-template-rows:auto 1fr}
  .set-nav{flex-direction:row; align-items:center; min-width:0; margin:10px 10px 0; padding:6px}   /* its tabs scroll, so it may be narrower than they are */
  .set-close{margin:0 4px 0 0}
  .set-nav button[data-sec]{white-space:nowrap; min-height:44px; padding:0 14px; font-size:15px}
  .set-body{padding:20px 12px 60px}
  .set-sec h2{font-size:32px}
  .seg-ctl button{flex:1 1 auto; min-width:0; min-height:44px; padding:0 10px; font-size:14.5px}
  .row.col{padding:12px}
  .row.col .seg-ctl{align-self:stretch}
  .scene-grid{grid-template-columns:repeat(2, 1fr)}
  .tiles{grid-template-columns:repeat(2, 1fr)}
  .row{flex-wrap:wrap}
  .row:has(> .switch){flex-wrap:nowrap}
  .mini{gap:10px; padding:6px 6px 6px 12px}
  .mini-seg{font-size:12px}
  .mini-time{font-size:26px}
  /* the bottom row is two corners on one line; the streak steps up out of it */
  .streak{position:absolute; right:0; bottom:calc(100% + 12px); height:40px; padding:0 14px}
  :root:has(.pop:not([hidden])) .streak{visibility:hidden}   /* it sat on "Clear done" */
  .brand-tag{display:none}
  .quote{max-width:calc(100vw - 32px - 160px)}
}
/* Where the full-screen button shows (Android, not iOS), or the screen is
   very narrow, the two corners no longer fit on one line at 44px a
   target: the right-hand one moves up a row, above its own corner. */
@media (max-width:720px){
  :root:has(#btn-full:not([hidden])) .corner-br{bottom:calc(var(--gutter) + var(--btn) + 14px + env(safe-area-inset-bottom))}
  :root:has(#btn-full:not([hidden])) .stage{padding-bottom:140px}
}
@media (max-width:370px){
  .corner-br{bottom:calc(var(--gutter) + var(--btn) + 14px + env(safe-area-inset-bottom))}
  .stage{padding-bottom:140px}
}
/* ============ phone keyboard ============
   iOS slides the keyboard over the page without resizing it, so a fixed
   bottom sheet ends up underneath, two lines of it showing. While a field
   has the keyboard up (html.kb, set from visualViewport in focus.js) the
   open panel is pinned to exactly the part of the screen still visible,
   and everything else gets out of its way. */
@media (max-width:720px){
  #notes, .task-add input, .intent-edit input, .task-edit, .field{font-size:16px}   /* under 16px, Safari zooms in on focus */
  .num .field{font-size:20px}
  .kb .pop:not([hidden]){
    position:fixed; left:8px; right:8px; bottom:auto;
    top:calc(var(--vv-top, 0px) + 8px); height:calc(var(--vv-h, 100dvh) - 16px); max-height:none;
    animation:none;
  }
  .kb:has(.pop:not([hidden])) .stage{visibility:hidden}
  .kb #pop-notes #notes{min-height:0; margin-bottom:10px}
  .kb .intent-edit{position:fixed; left:8px; right:8px; width:auto; top:calc(var(--vv-top, 0px) + 8px); max-height:calc(var(--vv-h, 100dvh) - 16px); display:flex; flex-direction:column}
  .kb .intent-picks{max-height:none; flex:1}
  .kb .dock, .kb .corner-br, .kb .corner-tl, .kb .corner-tr, .kb .stage .view > :not(.intent){visibility:hidden}
}

/* ============ the floating timer (Document Picture-in-Picture) ============
   focus.js gives this window theme.css and focus.css but not bento.css,
   so the few piece tokens its one button reads are set here. */
body.pip{
  --p-white:#FFFFFF; --p-wash:#F4F3FE; --p-text:var(--black); --b-line:var(--black);
  --b-stroke:2.5px; --b-stroke-thin:2px; --b-radius:16px; --b-pill:999px;
  --b-release:.16s; --b-focus:var(--blue);
  display:grid; place-items:center; align-content:center; gap:4px; height:100vh; height:100dvh; margin:0; padding:12px;
  background:var(--mesh); color:var(--scene-ink); text-align:center; overflow:hidden;
}
.pip-seg{font-family:var(--display); font-weight:700; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--scene-ink)}
.pip-time{font-family:var(--mono); font-weight:500; font-size:clamp(40px, 24vw, 80px); line-height:.95; letter-spacing:-.06em}
.pip-task{font-weight:700; font-size:13px; max-width:92vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--scene-ink)}
.pip-task:empty{display:none}
body.pip .icon-btn{margin-top:6px; background:var(--orange); color:var(--black); border-radius:var(--b-pill)}

/* ============ NESTED CORNERS ============
   BRAND.md §5: a shape that sits in a piece's corner takes the piece's
   radius minus the gap between their edges (the piece's outline plus its
   padding), down to square, so the two curves run parallel. Each gap below
   repeats the padding of the rule it names; change one, change both.
   Where the gaps differ, the larger one counts. Free-standing capsules and
   circles (chips, small buttons, icon discs) keep their own shape. */
/* The picks sit 8px in from the intent box (.intent-edit padding:8px);
   the tasks 10px in from their panel (.tasks padding:0 10px, .task-add
   margin 10px); the sounds and the notes 16px (#notes margin 16px). */
.intent-picks button{border-radius:max(0px, calc(var(--b-radius) - var(--b-stroke) - 8px))}
.pop .task, .task-add{border-radius:max(0px, calc(var(--b-radius) - var(--b-stroke) - 10px))}
.sound, #notes{border-radius:max(0px, calc(var(--b-radius) - var(--b-stroke) - 16px))}
/* Settings: the nav sits 14px in from the panel (10px on a phone), the
   rows at least 20px; a field or a length in a square row is square, and
   so is a nav button in the nav (padding:8px). On a phone the nav's
   buttons are a strip of capsules, free-standing, and keep their shape. */
.set-nav{border-radius:max(0px, calc(var(--b-radius) - var(--b-stroke) - 14px))}
.set-body .row, .row .field, .lengths label{border-radius:max(0px, calc(var(--b-radius) - var(--b-stroke) - 20px))}
.set-nav button[data-sec]{border-radius:max(0px, calc(var(--b-radius) - var(--b-stroke) - 14px - 8px))}
@media (max-width:720px){
  .set-nav{border-radius:max(0px, calc(var(--b-radius) - var(--b-stroke) - 10px))}
  .set-nav button[data-sec]{border-radius:var(--b-pill)}
}

/* ============ ICON STROKES ============
   BRAND.md §4.3: an icon's stroke is the stem of the text it sits with.
   It is drawn in screen pixels (vector-effect) and sized in em, so an
   icon inside its label follows the label's size, and the --stem-* token
   names the label's face and weight. Focus's buttons have no words in them:
   they read as its button label, Baloo 2 700 at 15px. Where words sit
   beside one, it takes theirs. The timer's ring is a figure, not an icon. */
[id^="i-"] *{vector-effect:non-scaling-stroke}
.ic{font-size:15px; stroke-width:var(--stem-baloo-700)}
.streak .ic{font-size:18px; stroke-width:var(--stem-baloo-800)}        /* the count, Baloo 2 800 */
.intent-done .ic{font-size:24px; stroke-width:var(--stem-baloo-800)}  /* .intent-title */
.task-check .ic{font-size:16px; stroke-width:var(--stem-baloo-700)}   /* .task-title */

/* ============ THE SETTINGS TABS' EDGES ============
   The tabs are a column on a desktop. On a phone they are a row that
   scrolls inside the nav's piece, so the fade (theme.css, "a strip's
   faded edges") sits on .set-tabs: the close button and the piece's
   outline stay whole. */
.set-tabs{display:flex; flex-direction:column; gap:4px}
@media (max-width:720px){
  .set-tabs{
    flex-direction:row; flex:1; min-width:0; overflow-x:auto;
    -webkit-mask-image:linear-gradient(90deg, transparent, black var(--edge-in) var(--edge-out), transparent);
            mask-image:linear-gradient(90deg, transparent, black var(--edge-in) var(--edge-out), transparent);
  }
  @supports (animation-timeline:scroll()){
    .set-tabs{
      --edge-out:100%;   /* no overflow, no timeline: nothing to fade */
      animation:edge-in linear both, edge-out linear both;
      animation-timeline:scroll(self x), scroll(self x);
      animation-range:0px 48px, calc(100% - 48px) 100%;
    }
  }
}
