/* The three typefaces, served from selffyi.com itself so no page load reaches a font
   provider (2026-11-16): the same files and unicode-range subsets Google Fonts served,
   one face per variable file and subset; OFL licences beside them in fonts/. */
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/ibm-plex-mono-cyrillic-ext.f572f7b57d27.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/ibm-plex-mono-cyrillic.116c7af36cea.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/ibm-plex-mono-vietnamese.a3aae6738c21.woff2") format("woff2");unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/ibm-plex-mono-latin-ext.122553c31295.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/ibm-plex-mono-latin.ce5d303b9bab.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:400 800;font-display:swap;src:url("fonts/plus-jakarta-sans-cyrillic-ext.2591db816b61.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:400 800;font-display:swap;src:url("fonts/plus-jakarta-sans-vietnamese.196acbb650c7.woff2") format("woff2");unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:400 800;font-display:swap;src:url("fonts/plus-jakarta-sans-latin-ext.5ffe46eeb00d.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:400 800;font-display:swap;src:url("fonts/plus-jakarta-sans-latin.52d04440a9fa.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500 600;font-display:swap;src:url("fonts/space-grotesk-vietnamese.207f8e9f3761.woff2") format("woff2");unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500 600;font-display:swap;src:url("fonts/space-grotesk-latin-ext.dea099b7d5a5.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500 600;font-display:swap;src:url("fonts/space-grotesk-latin.25ea4a783c12.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root{--bg:#08090A;--bg2:#0B0C0D;--card:#141619;--line:#1E2126;--ink:#F4F4F5;--soft:#C9CCD3;--mute:#9EA1AD;--green:#00E37A;--red:#FF5C5C;--sleep:#5B6BC0;--sleep-bg:#141933;--sleep-line:#2E3870;--sleep-ink:#8D99E8;--eating:#43B6CE;--eating-bg:#102125;--eating-line:#21525C;--bathroom:#0D9488;--bathroom-bg:#091C1C;--bathroom-line:#0A433F;--amber:#F0B23C;
--font-body:"Plus Jakarta Sans",system-ui,-apple-system,sans-serif;--font-display:"Space Grotesk",system-ui,sans-serif;--font-mono:"IBM Plex Mono",monospace;
--space-8:8px;--space-12:12px;--space-16:16px;--space-20:20px;--space-24:24px;--space-32:32px;--space-40:40px;
--radius-card:18px;--radius-input:16px;--radius-sheet:32px;--radius-pill:999px}
*{box-sizing:border-box}html{background:var(--bg);color:var(--ink);font:16px/1.4 var(--font-body)}
body{margin:0;padding:0 var(--space-16) var(--space-40)}
main{max-width:520px;margin-inline:auto}
/* One-time messages (base.html, above <main>): a full-width banner that is
   never a child of a page's own layout -- on desktop body.dashboard main is
   a two-column grid, and a message rendered inside it became a grid item in
   column 1, displacing the ring. Matches main's own widths so it lines up
   with the content under it at every breakpoint. */
.messages,#today-moments{max-width:520px;margin:0 auto var(--space-16)}
#today-moments:empty{margin:0}
.messages p{margin:0 0 var(--space-8)}
.top{max-width:520px;margin-inline:auto;padding:var(--space-16) 0}
/* The name (prompt 16): wordmark.svg is cropped to the letters, so the s's own left
   edge is the header's, and .top's width follows the page content's at every width
   (main; Today's wider grid; the login and welcome pages' narrower sections). */
.wordmark{height:48px;width:auto}
/* The footer on every page: Privacy, Terms, Support (2026-11-16). */
footer.site-footer{max-width:520px;margin:var(--space-32) auto 0;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-8) var(--space-24);font-size:13px}
footer.site-footer a{color:var(--mute);text-decoration:none}
footer.site-footer a:hover,footer.site-footer a:focus-visible{text-decoration:underline}
.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.big{font-family:var(--font-display);font-weight:600;font-size:44px;letter-spacing:-.03em}
.mono{font-family:var(--font-mono);font-size:13px}
.muted{color:var(--mute)}.drift{color:var(--red)}
.row{display:flex;justify-content:space-between;align-items:baseline}
.bar{height:6px;background:var(--line);border-radius:var(--radius-pill);margin-top:var(--space-8)}.bar span{display:block;height:100%;background:var(--green);border-radius:var(--radius-pill)}
/* The ring scales up to fill its column (Y1) instead of stopping dead at
   320px, which left the wider desktop column half empty -- the SVG scales
   freely, so this changes only its rendered size, never its markup. Its
   existing maximum, the 80vw phone guard, is kept: at 393px that clamp
   still wins exactly as before (314px), so phone width is unchanged. The
   480px cap was picked by measuring the real page at 1440px: a bare
   width:100% renders it at the column's full 670px, which swamps the page
   and pushes the stats/goal lines below the fold. */
.ringwrap{--ring-size:min(100%,480px,80vw);position:relative;display:flex;justify-content:center;padding:var(--space-16) 0}.ringwrap svg{width:var(--ring-size);height:auto}
/* Today's score as a button (2026-11-05): a real <button> over the ring's
   empty centre, sized as the score-tap circle under it (--score-btn, the
   circle's diameter as a share of the ring, set from core/ring.py by the
   view), so it never covers the band. Invisible until focused. */
.score-btn{position:absolute;left:50%;top:50%;width:calc(var(--ring-size) * var(--score-btn) / 100);aspect-ratio:1/1;transform:translate(-50%,-50%);
  margin:0;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.now{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-12);padding:var(--space-12) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.now.idle,.now.running{display:block}
/* The NOW row (2026-11-05): identical pills at every width, an icon beside
   each label (_now_icon.html) -- Declare | Focus | Mark idle, the first two
   with their helper line under them; switch | Stop | Focus | Mark while a
   block runs; switch | View timer for a live focus session. One row of
   equal pills while the row holds them (--fit: what the widest pill needs,
   four or three times over, measured); below that, two to a row. A larger
   text size (page zoom: the page gets narrower in CSS pixels) or a narrow
   phone crosses it. The trick is the flex basis: (--fit - 100%) is negative
   while the row is wide enough (basis 0, equal shares) and huge once it is
   not (each pill capped at half the row). Every flex item is a bare slot
   (a <details>, a .now-action or .now-slot <div>, the Mark <form>) with the
   pill at its full width inside, so equal shares make equal pills. The open
   Declare sheet is a fixed overlay, so the row never reflows around it. */
.now-actions,.actions.now-running{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;margin-top:var(--space-12)}
.now-actions{--fit:18.75rem}
.actions.now-running{--fit:21.875rem}
.now-actions>*,.actions.now-running>*{flex:1 1 calc((var(--fit) - 100%) * 999);min-width:0;max-width:calc(50% - 3px)}
.now-action .now-help{margin:var(--space-8) 0 0}
.now-mark{margin:0}
.btn.nowbtn{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-width:0;margin:0;padding:var(--space-12) 6px;
  box-sizing:border-box;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-pill);
  font:inherit;font-size:15px;font-weight:600;line-height:1.2;white-space:nowrap;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.nowbtn>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.nowbtn .nowicon{width:16px;height:16px;flex:none}
/* A period box gap's Fill (_period_info_sheets.html): a NOW-row pill, at
   least one NOW pill wide. The box is as wide as the NOW row (W) less its
   16px padding and 1px border a side, so the row here is W - 34px; a NOW
   pill is (W - 12px) / 3 while the row holds three (W >= --fit, 18.75rem)
   and (W - 6px) / 2 below it, so in the box's own 100% that is
   (100% + 22px) / 3 and (100% + 28px) / 2, the second chosen by the same
   999 trick. The row
   wraps, so a tight phone row puts the pill under the gap's times. */
.gap-fill-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-8)}
.btn.nowbtn.gap-fill{width:auto;flex:none;min-width:max(calc((100% + 22px) / 3), min(calc((100% + 28px) / 2), calc((18.75rem - 34px - 100%) * 999)))}
.btn.nowbtn:hover{background:#1A1D21}
.btn.nowbtn:active{background:#20242A}
/* The sheets' "+" / "x" markers: the icon says it now. */
.now details>summary.nowbtn::after{content:none;display:none}
/* Stop's inline confirmation, once open, takes a full line under the row;
   its pill keeps its own width there. */
.now-running details.confirm[open]{flex-basis:100%;max-width:none;order:1}
.now-running details.confirm[open]>summary.btn.nowbtn{display:inline-flex;width:auto;padding-inline:var(--space-16)}
.mark-help{margin:var(--space-8) 0 0}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-inline-end:var(--space-8)}
.nowlabel{font-weight:700;font-size:22px}
.btn{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-pill);padding:var(--space-12) var(--space-16);font:inherit;cursor:pointer;list-style:none}
.btn.primary{background:var(--green);color:var(--bg);border-color:var(--green);font-weight:700}
.btn.ghost{background:transparent}
.btn.linklike{background:transparent;border-color:transparent;text-decoration:underline;color:var(--mute);padding:var(--space-8) var(--space-16)}
/* Anchors styled as buttons (View timer, Focus, Start another, the note
   link...) must not keep the browser's default underline -- .linklike
   above is the one deliberate exception and restores its own. */
a.btn{text-decoration:none;color:var(--ink)}
/* .wide is width:100%, which does nothing to an inline element -- so an
   anchor styled as a full-width button stayed content-sized and overlapped
   whatever sat above it. Every existing call site worked around this with
   the identical inline display/text-align/box-sizing patch; this is that
   patch as a rule. The two call sites that deliberately want inline-block
   still say so inline, and an inline style wins, so nothing moves. */
a.btn.wide{display:block;text-align:center;box-sizing:border-box}
a.link-mute{color:var(--mute);text-decoration:none}
a.link-mute:hover,a.link-mute:focus-visible{text-decoration:underline}
/* The "Today accounted for" block (label/percentage/bar) is a single link
   to Sweep -- same "plain-looking text that's actually a link" convention
   as .link-mute just below it on this page, not new button chrome: no
   colour/underline of its own (color:inherit leaves .eyebrow/.big/.drift's
   real colours untouched), only a subtle hover/focus affordance, mirroring
   .link-mute's own hover/focus underline reveal. block display so the
   label/row/bar stack exactly as they did as bare section children.

   All three texts -- the label, the percentage, and the unaccounted-minutes
   count -- underline together, so the whole block reads as the one link it
   has always actually been (they were already inside the single <a>; only
   the label gave any hover feedback, which made the other two look inert).
   The bar is deliberately left out: underlining a progress bar reads as a
   rendering glitch, not an affordance. */
summary{list-style:none}summary::-webkit-details-marker{display:none}summary::marker{display:none}
.switch>summary::after,.splitblock>summary::after,.fillparts>summary::after,.confirm>summary::after,.reclassify>summary::after{content:'+';margin-inline-start:var(--space-8);font-weight:700;display:inline-block}
.switch[open]>summary::after,.splitblock[open]>summary::after,.fillparts[open]>summary::after,.confirm[open]>summary::after,.reclassify[open]>summary::after{content:'\2715'}
.switch{position:relative}
/* Once open, the sheet has its own header+close (see _sheet_header.html) --
   the trigger that opened it is no longer needed for anything and used to
   sit awkwardly inside the fixed-position sheet, visually overlapping real
   tile options. visibility (not display) so .actions' flex layout doesn't
   reflow when it disappears. */
.switch[open]>summary{visibility:hidden}
.switch:not([open]) .grid{display:none}
/* The open sheet sits ABOVE the phone tab bar (nav.tabs, z-index 40; the
   profile overlay is 60): under it, the last row of a long grid scrolled
   behind the bar and could never be reached. Its bottom padding clears the
   home indicator, and its height follows the visible viewport (dvh, with
   vh for older browsers) so Safari's own toolbar never hides an edge. */
.switch[open] .grid{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-width:520px;margin-inline:auto;margin-top:0;z-index:50;
  background:var(--bg2);padding:var(--space-24) var(--space-16) calc(var(--space-32) + env(safe-area-inset-bottom));border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;
  border:1px solid var(--line);border-bottom:none;box-shadow:0 -8px 32px rgba(0,0,0,.5);max-height:70vh;max-height:70dvh;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}
/* As many columns as fit at 108px (the widest stock name, "Relationships",
   needs ~101): 4 on desktop, 3 at 375-393, 2 at 320. Four fixed 1fr
   columns grew past the screen on every phone and clipped the right edge. */
.switch[open] .grid{grid-template-columns:repeat(auto-fill,minmax(108px,1fr))}
.switch[open] .grid::before{content:'';position:absolute;top:10px;left:50%;transform:translateX(-50%);width:36px;height:4px;border-radius:var(--radius-pill);background:var(--line)}
/* Reusable sheet header (see _sheet_header.html): a label plus an explicit
   close control fixed to the sheet's own top-right corner, independent of
   wherever the trigger that opened it happens to sit -- the trigger used
   to double as the only way to dismiss, which put it awkwardly inside the
   opened grid alongside real options. */
/* align-items:flex-start so a heading that wraps (a long range plus its
   duration on a phone) keeps the close button on the first line's own
   right edge instead of letting it ride down into the text. */
.sheet-header{position:relative;display:flex;align-items:flex-start;min-height:24px;margin-bottom:var(--space-16);padding-right:var(--space-24)}
.grid>.sheet-header{grid-column:1/-1}
/* The row of times on Declare and Switch to (prompt 16, _when_row.html). Seven
   columns, the middle one Now: the earlier side fills the three before it and the
   later side (planned starts) will fill the three after, so nothing moves when it
   arrives. Under 388 px of screen seven pills of 44 px no longer fit the sheet: four
   columns (the later side will take a row of its own). The radios sit before the
   row so CSS alone shows the chosen pill, its sentence and the Other fields. */
.grid>.when{grid-column:1/-1}
.when{border:0;margin:0 0 var(--space-8);padding:0;min-width:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.when-r{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.when-row{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:var(--space-8);align-items:end}
.when-head{grid-column:1/span 3;grid-row:1;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);text-align:center}
.when-b{grid-row:2;min-height:44px;min-width:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:var(--radius-pill);font-family:"Space Grotesk",sans-serif;font-weight:600;font-size:15px;
  color:var(--ink);cursor:pointer;user-select:none}
.when-b.b20{grid-column:1}.when-b.b10{grid-column:2}.when-b.b5{grid-column:3}.when-b.b0{grid-column:4;text-transform:uppercase}
.when-r.w20:checked~.when-row .b20,.when-r.w10:checked~.when-row .b10,.when-r.w5:checked~.when-row .b5,
.when-r.w0:checked~.when-row .b0{background:var(--ink);color:var(--bg);border-color:var(--ink)}
/* The later side (build B4, design 7.1): "Later" over +5 +10 +20 in the three
   columns kept for them. The earlier pills are filled, the later ones drawn
   as outlines -- with the two heads and the sentence, the three guards that
   keep -5 and +5 apart; a chosen later pill gets a brighter border, never a fill. */
.when-b:not(.later){background:var(--card)}
.when-head-later{grid-column:5/span 3}
.when-b.later{background:transparent;border-color:rgba(244,244,245,.28)}
.when-b.bi5{grid-column:5}.when-b.bi10{grid-column:6}.when-b.bi20{grid-column:7}
.when-r.wi5:checked~.when-row .bi5,.when-r.wi10:checked~.when-row .bi10,
.when-r.wi20:checked~.when-row .bi20{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.when-r.wi5:focus-visible~.when-row .bi5,.when-r.wi10:focus-visible~.when-row .bi10,
.when-r.wi20:focus-visible~.when-row .bi20{outline:2px solid var(--green);outline-offset:2px}
.when-r.w20:focus-visible~.when-row .b20,.when-r.w10:focus-visible~.when-row .b10,.when-r.w5:focus-visible~.when-row .b5,
.when-r.w0:focus-visible~.when-row .b0,.when-r.wo:focus-visible~.when-other-link{outline:2px solid var(--green);outline-offset:2px}
.when-other-link{display:inline-flex;align-items:center;min-height:44px;color:var(--mute);font-size:13px;text-decoration:underline;cursor:pointer}
.when-r.wo:checked~.when-other-link{color:var(--ink)}
.when-other{display:none;grid-template-columns:1fr 1fr 1fr;gap:var(--space-8)}
.when-r.wo:checked~.when-other{display:grid}
.when-field{display:flex;flex-direction:column;gap:var(--space-8)}
.when-field input{min-height:44px;box-sizing:border-box;width:100%}
.when-say{margin:var(--space-8) 0 0}
.when-say .say{display:none}
.when-r.w0:checked~.when-say .say0,.when-r.w5:checked~.when-say .say5,.when-r.w10:checked~.when-say .say10,
.when-r.w20:checked~.when-say .say20,.when-r.wo:checked~.when-say .sayo,
.when-r.wi5:checked~.when-say .sayi5,.when-r.wi10:checked~.when-say .sayi10,.when-r.wi20:checked~.when-say .sayi20{display:inline}
.when-refused{margin:0 0 var(--space-12);padding:var(--space-8) var(--space-12);border:1px solid #4D3B14;border-radius:var(--radius-card);
  background:#2A1F0A;color:var(--amber);font-size:13px}
@media (max-width:387px){.when-row{grid-template-columns:repeat(4,minmax(44px,1fr))}
  .when-head-later{grid-column:1/span 3;grid-row:3}.when-b.later{grid-row:4}
  .when-b.bi5{grid-column:1}.when-b.bi10{grid-column:2}.when-b.bi20{grid-column:3}}
.sheet-sub{margin-left:var(--space-8);color:var(--mute);font-size:13px}
.sheet-close{position:absolute;top:-8px;right:-8px;background:transparent;border:none;color:var(--mute);font-size:22px;line-height:1;cursor:pointer;padding:var(--space-8)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-8);margin-top:var(--space-12)}
/* The hidden attribute's UA display:none loses to the author display:grid
   above, so a script setting .hidden on a grid (focus_new's Edit toggle)
   silently did nothing. */
.grid[hidden]{display:none}
/* Activity grids INSIDE a card (Edit, Fill, Split, Fill in parts) get three
   columns, not four. A card sits behind the timeline's own 44px time gutter,
   so it has ~271px to work with at phone width -- and a grid item defaults to
   min-width:auto, meaning a tile refuses to shrink below its longest word.
   Four columns of "Relationships" (~101px) therefore blew the track sizes out
   to 97/100/101/75 and the right-hand tiles were clipped off the card
   (measured: page scrollWidth 487-496 against a 393 viewport).
   min-width:0 lets a tile take its real 1fr share, and the wrap rules let a
   long single word use two lines instead of forcing the column wide. Scoped
   to `.card .grid`: Today's own Declare sheet is NOT inside a card and is
   deliberately untouched here (it has the same underlying bug -- reported
   rather than changed, since it is a different surface). */
.card .grid{grid-template-columns:repeat(3,1fr)}
.card .grid>.tile{min-width:0;overflow-wrap:break-word;hyphens:auto}
.tile{border-radius:var(--radius-card);padding:var(--space-16) var(--space-8);font:inherit;font-size:13px;cursor:pointer;background:#0F1A14;color:var(--green);border:1px solid #1E4D35}
.tile.drift{background:#1A1012;color:var(--red);border-color:#4D2121}
/* The built-in Sleep's tile (items 8/8b, web batch 1): night blue, like its card. */
.tile.sleep{background:var(--sleep-bg);color:var(--sleep-ink);border-color:var(--sleep-line)}
.timeline{margin-top:var(--space-16)}.slot{display:flex;gap:var(--space-12);margin-bottom:var(--space-8)}.slot .t{color:var(--mute);width:44px;padding-top:var(--space-16);flex:none}
/* min-width:0 because a flex item defaults to min-width:auto, which refuses
   to shrink below its content's intrinsic width -- so a card whose content
   has a hard minimum (the 24-segment duration tally below, 256px of fixed
   8px segments that must not wrap) pushed the whole PAGE wider than the
   viewport at 320px instead of being constrained by its own row. Measured in
   WebKit at 320px: the card rendered 290px wide starting at x=72 (after the
   44px time gutter + gap), taking document.scrollWidth to 362 against a 320
   viewport. Shrinking is now allowed; .seg-tally scrolls its own overflow. */
.card{flex:1;min-width:0;border-radius:var(--radius-card);padding:var(--space-16);border:1px solid var(--line);background:var(--card);position:relative}
/* Proportional duration bar (annotate_bar_widths() in services.py sets the
   width): lives inside <summary>, not as a direct <details> child, since a
   closed (collapsed) <details> hides every child except its own <summary>
   -- this is meant to be visible on the normal, collapsed card. Positioned
   absolute against .card itself (not <summary>), so it ignores <summary>'s
   own padding and sits flush along the card's real bottom edge; width is
   proportional (not left+right:0), scale is one shared "biggest block of
   the day" baseline across every card on the page, see that function's own
   docstring. transition:width lets the open block's own bar grow smoothly
   as _today_live_script.html's poll updates it, the same live-minutes span
   already does for the text next to it. */
/* Fixed-scale duration tally (Settings' "Duration bars" switch;
   services.annotate_segment_tally()): one filled segment per 15 minutes,
   the same absolute scale on every card every day -- replacing the old
   day-relative proportional bar and its ruler ticks entirely. Only
   filled segments are ever drawn (no empty cells, so nothing reads as
   "remaining"); a partial final segment is proportionally narrower via
   --f set inline by the template. Rows wrap at 24 segments (6 hours,
   services.SEGMENTS_PER_ROW); within a row, every 4th segment gets a
   wider trailing gap so segments group into hours at a glance. 8px
   segments keep a full 24-segment row at ~253px -- comfortably inside a
   phone card's ~329px content width. */
/* The tally's scale is absolute and must stay that way: one segment is
   always 15 minutes, 24 to a row. So on a viewport too narrow for a full
   row it scrolls sideways within its own card rather than wrapping (which
   would break the 24-per-row = 6-hours reading) or shrinking its segments
   (which would break the fixed scale outright). Same fallback, and the same
   reasoning, as nav.tabs' own overflow-x at narrow widths. */
.seg-tally{display:block;margin-top:var(--space-8);overflow-x:auto}
.seg-row{display:flex;gap:2px;margin-top:2px}
.seg{--f:1;flex:none;width:calc(8px*var(--f));height:4px;border-radius:1px;background:var(--mute);opacity:.75}
.seg:nth-child(4n){margin-right:3px}
.card.chosen .seg{background:var(--green)}
.card.drift .seg{background:var(--red)}
.card.sleep .seg{background:var(--sleep)}   /* the Sleep card wears its kind and its intent: the tally follows the card (item 8) */
.seg-legend{margin:0 0 var(--space-8)}
/* Ring info sheets (Period view's .period-info, Phase 3; Detail view's
   .entry-info/.start-info popovers, Phase 4): no visible trigger of their
   own (the ring itself is the trigger, see today.html's inline scripts) --
   closed is fully invisible, not just collapsed, since there's nothing to
   show until a tap opens one. Reuses .card's own look once open rather
   than new styling. */
.period-info:not([open]),.entry-info:not([open]),.start-info:not([open]),.mark-info:not([open]){display:none}
.period-info[open],.entry-info[open],.start-info[open],.mark-info[open]{border-radius:var(--radius-card);padding:var(--space-16);border:1px solid var(--line);background:var(--card);margin-top:var(--space-12)}
/* Ring selection (Phase 5): the ring's own visual echo of whichever info
   sheet/popover is open (see today.html's toggle listeners) -- a spatial/
   opacity change only, never a fill-colour change, since fill colour is
   load-bearing (the chosen/drift intent ramp) and recolouring it for
   selection would risk misreading as a different ratio than reality.
   [data-period]/[data-entry] pop outward via a per-element --dx/--dy
   (embedded by ring.py from that element's own real angle -- a generic
   CSS rule can't know which direction "outward" is on its own).
   [data-start] (a tick, not a wedge) instead scales longer, anchored at
   its own inner point (transform-origin, also embedded by ring.py) rather
   than the default bounding-box centre, so it grows outward away from the
   ring instead of also eating into the ring band -- scaling doubles as
   "thicker" too, since CSS transform scales the whole rendered stroke. */
[data-period],[data-entry],[data-start]{transition:opacity .15s ease,transform .15s ease}
[data-period].dimmed,[data-entry].dimmed,[data-start].dimmed,[data-mark].dimmed{opacity:.3}
[data-period].selected,[data-entry].selected{transform:translate(var(--dx,0px),var(--dy,0px))}
[data-start].selected,[data-mark].selected{transform:scale(1.4)}
.card summary{cursor:pointer}.card b{display:block;font-weight:700}.card small{color:var(--mute)}
.card.chosen{background:#0C1A12;border-color:#1E4D35}.card.chosen b{color:var(--green)}
.card.drift{background:#1C0F10;border-color:#4D2121}.card.drift b{color:var(--red)}
.card.sleep{background:var(--sleep-bg);border-color:var(--sleep-line)}.card.sleep b{color:var(--sleep-ink)}
/* Unaccounted blocks are HOLLOW now (mark follow-up): same size, gray
   border, interior the page background -- "nothing known here". The old
   filled-gray (#1A1C20 = ring.py's TRACK) moved to .card.precut: a marked
   pre-cut stretch, which carries more knowledge (the user marked its
   edges) and keeps the fuller look. */
/* The dashed edge is the whole signal on a hollow block (there's no fill to
   carry it), so it's drawn brighter and in a longer dash than --line's
   hairline -- legible at a glance without becoming a solid border, which
   would read as a filled block's edge. Interior stays transparent. */
.card.gap{background:transparent;border:2px dashed #3A3E46}.card.gap b{color:var(--mute)}
.card.precut{background:#1A1C20;border:1px dashed var(--line)}.card.precut b{color:var(--mute)}
/* A mark in the time-blocks view, behind the "Show marks in time blocks"
   setting: the same filled gray and corner radius as a pre-cut block, about
   a quarter of a collapsed block's height, and no hairline through it -- a
   mark is a point, not a stretch, so it gets no rule suggesting extent. The
   bar is 18px but its <summary> is padded out to a 44px tap target, the
   usual mobile minimum; the padding is invisible. Opening it reveals the
   same sheet body the ring tick's own sheet uses. */
.markbar{flex:1;min-width:0}
.markbar>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;list-style:none}
.markbar>summary::-webkit-details-marker{display:none}
.markbar-bar{flex:1;height:18px;border-radius:var(--radius-card);background:#1A1C20;display:flex;align-items:center;gap:var(--space-8);padding:0 calc(var(--space-16) + 1px);box-sizing:border-box;overflow:hidden;white-space:nowrap}
/* +1px: cards indent their text by border(1px)+padding; the bar has no
   border, so without it the label sat a pixel left of every card's text. */
/* The bar's own label ("MARK 16:39") reuses the sheet heading's exact
   eyebrow/mono pair, sized down a step so it sits inside the 18px bar;
   padding matches .card's own, so it left-aligns with card text. */
.markbar-bar .eyebrow{font-size:10px}
.markbar-bar .sheet-sub{margin-left:0;font-size:11px;line-height:1}
.markbar[open]>summary{margin-bottom:var(--space-8)}
.markbar[open]{border-radius:var(--radius-card);padding:0 var(--space-16) var(--space-16);border:1px solid var(--line);background:var(--card)}
/* Likely-duplicate marker + its one-tap removal, rendered inside the
   collapsed card's own <summary> (see _timeline_card.html). Amber, the
   app's established attention-not-intent colour (row1-badge, long-open):
   a flagged card isn't being judged chosen or drifted, just surfaced. */
.dup-flag{display:block;color:var(--amber);font-size:12px;margin-top:var(--space-8)}
summary .dup-remove{display:inline-block;margin-top:var(--space-8)}
.dup-remove-btn{background:#2A1F0A;color:var(--amber);border-color:#4D3B14}
/* flex-wrap:wrap, not nowrap: a timeline card's own actions row (toggle
   intent, note, remove, and conditionally a Merge button) can genuinely
   need more than one phone-width's worth of buttons -- found overflowing
   the card (and inflating the whole page's scrollWidth) during the same
   phone-width pass that found the nav bug above. Wrapping onto a second
   line is the natural fix for a block-level card that can simply grow
   taller, unlike nav.tabs's own pills, which need to stay a single row. */
.actions{display:flex;gap:var(--space-8);margin-top:var(--space-12);flex-wrap:wrap}
.login{padding:var(--space-40) 0}.login h1{font-weight:700;font-size:32px;letter-spacing:-.03em}
.login input{width:100%;padding:var(--space-12);border-radius:var(--radius-input);border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;margin:var(--space-12) 0}
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.bar span{transition:width .4s}}
.h1{font-weight:700;font-size:30px;letter-spacing:-.03em;margin:var(--space-8) 0 var(--space-8)}
.h2{display:block;font-weight:700;font-size:22px;margin:var(--space-8) 0 var(--space-8)}
.green{color:var(--green)}.small{font-size:13px}.wide{width:100%;margin-top:var(--space-12);padding:var(--space-16);border-radius:var(--radius-pill)}
.tile.sel{position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--space-8);background:var(--card);color:var(--mute);border-color:var(--line)}
.tile.sel input{position:absolute;opacity:0;inset:0}.tile.sel:has(input:checked){background:#0F1A14;color:var(--green);border-color:var(--green)}
.tile.sel b{font-family:var(--font-display);font-size:22px;color:var(--ink)}.tile.sel:has(input:checked) b{color:var(--green)}
/* Intent-aware selectable tiles (the rows form, split's segment picker):
   the base .tile intent color applies whether or not selected -- selection
   highlights with a bolder border in that SAME color, never an override to
   green regardless of intent. Plain .tile.sel above (duration picker,
   focus's activity picker) has no intent to preserve and keeps its old
   behavior; its selected rule outranks the intent's own colours, so the
   selected state restates them here (2026-11-05: a selected drift tile in
   the rows form had turned green). */
.tile.chosen.sel{background:#0F1A14;color:var(--green);border-color:#1E4D35}
.tile.drift.sel{background:#1A1012;color:var(--red);border-color:#4D2121}
.tile.chosen.sel:has(input:checked){background:#0F1A14;color:var(--green);border-color:var(--green);border-width:2px}
.tile.drift.sel:has(input:checked){background:#1A1012;color:var(--red);border-color:var(--red);border-width:2px}
.tile.sleep.sel{background:var(--sleep-bg);color:var(--sleep-ink);border-color:var(--sleep-line)}
.tile.sleep.sel:has(input:checked){background:var(--sleep-bg);color:var(--sleep-ink);border-color:var(--sleep-ink);border-width:2px}
.insight{background:#0C1A12;border:1px solid #1E4D35;border-radius:var(--radius-card);padding:var(--space-16);margin:var(--space-16) 0}
.center{text-align:center}.pill{display:inline-block;padding:var(--space-8) var(--space-20);border-radius:var(--radius-pill);background:#0F1A14;color:var(--green);border:1px solid #1E4D35;font-weight:700}
.timer{position:relative;display:inline-block;margin:var(--space-24) 0 var(--space-8)}.timerlabel{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center}
.actions.center{justify-content:center}.btn.danger{background:#1C0F10;color:var(--red);border-color:#4D2121}
.stack{display:flex;flex-direction:column;gap:var(--space-12)}
.row-btn{text-align:start;padding:var(--space-16);padding-inline-end:var(--space-32);border-radius:var(--radius-card);position:relative}
.row-btn::after{content:'\203A';position:absolute;inset-inline-end:var(--space-16);top:50%;transform:translateY(-50%);color:var(--mute);font-size:20px}
.gapcard{margin-bottom:var(--space-12)}.gapcard b{font-size:18px}.chosen-ink{color:var(--green)}.drift-ink{color:var(--red)}
.in{flex:1;padding:var(--space-12);border-radius:var(--radius-input);border:1px solid var(--line);background:var(--bg2);color:var(--ink);font:inherit}
textarea.in{width:100%;min-height:120px;resize:vertical;display:block;margin-top:var(--space-12)}
.chips{display:flex;gap:var(--space-8);flex-wrap:wrap;margin-top:var(--space-12)}
.chip{position:relative;display:inline-flex;cursor:pointer}
.chip input{position:absolute;opacity:0;inset:0;margin:0}
.chip span{padding:var(--space-8) var(--space-16);border-radius:var(--radius-pill);background:var(--card);color:var(--mute);border:1px solid var(--line)}
.chip:has(input:checked) span{background:#0F1A14;color:var(--green);border-color:var(--green)}
.actions.split>*{flex:1;text-align:center}
.cutrow{display:flex;gap:var(--space-8);align-items:center}
.cutrow .remove-cut{flex:none;padding:var(--space-8) var(--space-12);font-size:18px;line-height:1}
/* The block's own start, shown for context above the first segment (see
   _split_editor.html). Same cutrow shape so the boundaries read as one
   column, but unmistakably not yours to change: muted text on the page
   background rather than an input surface, and a plain "start" label
   where an editable row has its remove control. `disabled` is what
   actually makes it unfocusable and unsubmitted; this is only the look. */
.cutrow.startrow .in{background:transparent;color:var(--mute);border-color:var(--line);opacity:1;-webkit-text-fill-color:var(--mute);cursor:default}
.startrow-note{flex:none;color:var(--mute);font-size:13px;padding:0 var(--space-12)}
/* The browser's own clock button inside <input type=time> renders as a dark
   glyph, invisible against this app's dark input surface. invert(1) is the
   one control we have over a UA-drawn widget's colour. */
input[type=time]::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.75;cursor:pointer}
input[type=time]::-webkit-calendar-picker-indicator:hover{opacity:1}
.unaccounted-toggle{grid-column:1/-1;display:flex;align-items:center;gap:var(--space-8);color:var(--mute);font-size:13px}
.split-segment.unaccounted .tile{opacity:.35;pointer-events:none}
.notif{background:#1A1C20;border-radius:22px;padding:var(--space-16);margin-top:var(--space-24)}.grid.three{grid-template-columns:repeat(3,1fr)}
/* The inbox's Missed rows (web batch 1, item 6): a nudge's window and its History
   link side by side, the link wrapping under it on a phone, never split. */
.missed-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-8) var(--space-12)}
/* Earlier (build B4): every row stacks -- date, what it was, how it ended -- a missed one with its History link under. */
.earlier-row.missed-row{display:block}
.earlier-row .history-link{display:inline-flex;margin-top:var(--space-8)}
.mono-num{font-variant-numeric:tabular-nums}
/* Never wraps, even if the row runs out of room: real phone-width testing
   found seven pills overflowing the viewport, "Log out" wrapping its own
   text onto two lines, and (align-items' own default of stretch) every
   other pill stretching to match that one's now-taller box with its text
   stuck at the top -- the exact same mechanism the desktop nav-width bug
   documented in docs/history/2026-09.md (2026-09-21) already fixed once,
   just never hit on mobile
   before now. flex-shrink:0 keeps each pill at its own natural size
   (never squeezed, which is what let text wrap in the first place);
   overflow-x:auto on the row itself means any remaining overflow scrolls
   sideways *inside* nav.tabs's own box, instead of inflating the whole
   page's scrollWidth the way an unconstrained overflow does. */
/* Padding/gap/font-size here are deliberately smaller than this file's own
   8px spacing scale and body font-size -- tuned by measuring the five
   items' real natural content width against real iPhone viewport widths
   (checked at 320/375/390/393/430px) after a real-device report that the
   overflow-x:auto fallback below was still needed even at 100% text zoom
   (a new user's default, no zoom adjustment) on a 393px phone: the
   previous padding/gap/font-size needed 499px for five items against
   as little as 343px of real available width, so the Settings pill was
   partially cut off rather than cleanly scrollable. These values fit all
   five comfortably (with real margin, not flush against the edge) from
   375px up; overflow-x:auto stays as the fallback for anything narrower
   (e.g. a 320px first-generation SE) or any future sixth item, matching
   .filterrow a's own existing 13px precedent rather than inventing a new
   font-size for pills. */
nav.tabs{display:flex;gap:4px;margin-top:var(--space-8);flex-wrap:nowrap;overflow-x:auto}
nav.tabs a{color:var(--mute);text-decoration:none;padding:7px 8px;font-size:13px;border-radius:var(--radius-pill);border:1px solid var(--ink);white-space:nowrap;flex:0 0 auto}
nav.tabs a.on{color:var(--bg);background:var(--ink);font-weight:700}
/* Desktop pills hide the tab-bar glyphs (R4). */
nav.tabs a svg{display:none}
/* The phone ICON TAB BAR (R4): six items no longer fit as text pills at
   phone widths (measured: six pills need ~390px of content against 343
   at 375px), so up to 760px the nav becomes a bottom-fixed icon bar --
   glyph over a short label, evenly divided, no wrap, no sideways scroll.
   Five items since 2026-11-22 (Insights holds History and Journal); the
   division is flex:1 1 0, so nothing here counts them.
   The page footer, the last thing on every page, gets the bottom padding so
   neither it nor the content above it ever hides behind the fixed bar. */
@media (max-width:760px){
  nav.tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;margin:0;gap:0;
    background:var(--bg2);border-top:1px solid var(--line);overflow:visible;
    padding:6px 0 calc(6px + env(safe-area-inset-bottom))}
  nav.tabs a{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;
    border:none;border-radius:0;padding:2px 0;font-size:10px;background:transparent}
  nav.tabs a svg{display:block;width:22px;height:22px}
  nav.tabs a.on{background:transparent;color:var(--green);font-weight:600}
  footer.site-footer{padding-bottom:76px}
}
/* Today on a phone. On a 393x852 iPhone with Safari's toolbars shown (a
   393x659 page) the NOW tile's Declare button sits fully on screen without
   scrolling, above the tab bar (2026-11-04): the wordmark goes at phone
   width, where the tab bar is the page's chrome, and staging's badge leaves
   the flow. Since 2026-11-05 Today's own layout there is the date row with
   its Period | Detail pill, the ring at full size, exactly one line, the
   thin coverage bar, the NOW tile, the blocks (docs/logging-game-design.md
   "Today's one line"); what a phone drops is .wide-only, what only a phone
   shows .phone-only. The desktop is unchanged. e2e/tests/25-phone-layout
   and 27-one-line measure it. */
@media (max-width:760px){
  header.top{padding:var(--space-8) 0 0}
  header.top .wordmark{display:none}
  /* Staging's badge takes its own small line at the top (2026-11-05): pinned
     top-right it sat over Today's date row and its Period | Detail pill. */
  header.top .envbadge{display:block;width:max-content;margin:0 auto var(--space-8);pointer-events:none}
  body.dashboard .wide-only{display:none}
  body.dashboard .ringwrap{padding:0;margin-top:var(--space-8)}
  body.dashboard .now{padding-top:var(--space-12);margin-top:var(--space-12)}
  body.dashboard .now-actions{margin-top:var(--space-8)}
  /* "● NOW" and "What now?" (or the running label) are one heading line. */
  body.dashboard .now-head{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--space-12)}
  body.dashboard .now-help.used{display:none}
}
@media (min-width:761px){body.dashboard .phone-only{display:none}}
.today-date{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);margin-top:var(--space-8)}
.today-date-text{font-weight:700;font-size:17px;min-width:0}
/* The top of History's and Journal's lists (prompt 8, 2026-11-22): the
   heading "Insights" with the History | Journal switch beside it, Today's
   own pill. It wraps under the heading only when the two can't share a line. */
.insights-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-8) var(--space-12)}
.viewpill{display:inline-flex;flex:none;padding:2px;border:1px solid var(--line);border-radius:var(--radius-pill)}
.viewpill a{padding:4px var(--space-12);border-radius:var(--radius-pill);font-size:13px;color:var(--mute);text-decoration:none}
.viewpill a.on{background:var(--ink);color:var(--bg);font-weight:700}
.viewpill .viewpill-b{padding:4px var(--space-12);border:0;border-radius:var(--radius-pill);background:none;font:inherit;font-size:13px;color:var(--mute);cursor:pointer}
.viewpill .viewpill-b.on{background:var(--ink);color:var(--bg);font-weight:700}
/* The one line (web batch 1, item 3, 2026-11-10): light gray (--soft) at
   15 px, wrapping onto a second line at large text sizes or in Arabic,
   never truncated; a moment stays in ink and a closed day in green, as the
   desktop's own finish line. A tap opens Sweep (Profile for a badge or a
   level). */
.one-line{margin:var(--space-8) 0 0;text-align:center;font-size:15px;overflow-wrap:break-word}
.one-line a{color:var(--soft);text-decoration:none}
.one-line a[data-line=moment]{color:var(--ink)}
.one-line a[data-line=closed]{color:var(--green)}
.one-line a:hover,.one-line a:focus-visible{text-decoration:underline}
.day-line{margin:var(--space-8) 0 0;text-align:center;font-size:15px;overflow-wrap:break-word}
.day-line a{color:var(--soft);text-decoration:none}
.day-line a[data-line=closed]{color:var(--green)}
.day-line a:hover,.day-line a:focus-visible{text-decoration:underline}
/* The symbol before the line (prompt 25 part 2, item 1): a badge's glyph or
   the trophy, in the line's own colour. */
/* An icon drawn from a vendored SVG file by a CSS mask, in currentColor
   (no <svg> in the page; --icon: url(...) on the element). */
.aicon{display:inline-block;width:1em;height:1em;background:currentColor;
  -webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.line-glyph{display:inline-block;vertical-align:-3px;margin-inline-end:6px;line-height:0}
.line-glyph.aicon{width:18px;height:18px}
/* Today's coverage bar (_coverage_bar.html; the iPhone's CoverageBar): the
   line as drawn is the scale (0% at its start, 100% at its end, the finish
   tick at --f of it); the widest figure's chip ("100.0%", 6ch + its padding)
   is reserved past the line's end. The chip rides 4px past the fill's end;
   where that would cover the finish mark it sits 4px past the mark (round
   2c, the iPhone's round 8c: "72.2%" sat over the mark), and where it would
   then cover the line's end, 4px past that end, as at 100%. Each is a step
   with no script: --x1 adds the move past the mark only while the chip and
   the mark would meet (--d, the move, between 0 and --t, the chip's reach),
   then the last clamp() is 0 while the chip fits before the line's end and
   the rest of the line once it doesn't. The mark is drawn over the chip.
   Nothing trails the figure (Rusel, 2 Dec: at 70% on a phone a few pixels of
   line showed after it): where less than --stub of line would be left after
   the chip (--s), the chip's background reaches the line's end, so the line
   ends at the figure; a longer stretch shows, as the line beyond the figure. */
.covbar{position:relative;display:block;height:22px;margin:var(--space-8) 0 var(--space-16);font:13px/18px var(--font-mono);
  --gap:4px;--reserve:calc(6ch + 12px);--L:calc(100% - var(--reserve) - var(--gap));text-decoration:none}
.covbar-line{position:absolute;inset-inline-start:0;top:50%;height:3px;margin-top:-1.5px;width:var(--L);
  background:var(--line);border-radius:var(--radius-pill);overflow:hidden}
.covbar-fill{display:block;height:100%;width:calc(var(--p) * 100%);background:var(--green);border-radius:inherit}
.covbar-tick{position:absolute;top:0;bottom:0;width:2px;background:var(--mute);z-index:1;
  inset-inline-start:calc(var(--L) * var(--f) - 1px)}
.covbar-fig{position:absolute;top:2px;padding:0 6px;background:var(--bg);color:var(--mute);white-space:nowrap;
  --w:calc(var(--n) * 1ch + 12px);--d:calc(var(--L) * (var(--f) - var(--p)) + 1px);--t:calc(var(--w) + var(--gap) + 2px);
  --x1:calc(var(--L) * var(--p) + var(--gap)
    + min(clamp(0px, var(--d), var(--t)), clamp(0px, (var(--t) - var(--d)) * 100000, var(--t))));
  --x:calc(var(--x1) + clamp(0px, (var(--x1) + var(--w) - var(--L)) * 100000, var(--L) + var(--gap) - var(--x1)));
  --stub:var(--space-24);--s:calc(var(--L) + 1px - var(--x) - var(--w));inset-inline-start:var(--x);
  padding-inline-end:calc(6px + min(clamp(0px, var(--s), var(--stub)), clamp(0px, (var(--stub) - var(--s)) * 100000, var(--stub))))}
.covbar-fig.reached{color:var(--green)}
.covbar:hover .covbar-fig,.covbar:focus-visible .covbar-fig{text-decoration:underline}
.bd-starts{margin:0 0 var(--space-8)}
.filterrow{display:flex;gap:var(--space-8);flex-wrap:wrap;margin:var(--space-16) 0}
.filterrow a{padding:var(--space-8) var(--space-16);border-radius:var(--radius-pill);background:var(--card);color:var(--mute);border:1px solid var(--line);text-decoration:none;font-size:13px}
.filterrow a.on{background:var(--ink);color:var(--bg);font-weight:700;border-color:var(--ink)}
.journal-day{display:flex;align-items:center;gap:var(--space-12);margin:var(--space-24) 0 var(--space-12)}
.journal-ring{flex:none;width:42px;height:42px}.journal-ring svg{width:42px;height:42px}
.journal-thread-note{margin-top:var(--space-12);padding-top:var(--space-12);border-top:1px solid var(--line)}
.history-cards{display:grid;gap:var(--space-16);margin-top:var(--space-20);justify-items:center}
.history-card{display:flex;flex-direction:column;align-items:center;gap:var(--space-8);text-decoration:none;color:var(--ink);position:relative}
.history-ring{display:block;position:relative}.history-ring svg{width:100%;height:100%}
.history-date{font-size:12px;color:var(--mute)}
.history-notedot{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--mute);position:absolute;top:-2px;right:-2px}
.history-notedot .dot{width:6px;height:6px;margin-inline-end:0;background:var(--green)}
.history-chipgrid{display:flex;gap:3px;overflow-x:auto;padding:var(--space-16) 0;margin-top:var(--space-8);--chip:12px}
.chipcol{display:flex;flex-direction:column;gap:3px;flex:none}
.chip-month{display:none}
.history-chip{width:var(--chip);height:var(--chip);border-radius:3px;display:block;position:relative;flex:none}
/* A phone (prompt 25 part 2, item 10): the iPhone's squares, 14 columns to
   the width less the 3px gap, never under 20px; the month names over their
   columns. A computer screen keeps 12px. */
@media (max-width:760px){
  .history-chipgrid{--chip:max(20px,calc(min(520px,100vw - 32px) / 14 - 3px));padding-top:var(--space-8)}
  .history-chip{border-radius:calc(var(--chip) / 4)}
  .chip-month{display:block;height:16px;width:var(--chip);overflow:visible;white-space:nowrap;font-size:11px;
    line-height:16px;color:var(--mute);padding-inline-start:1px}
}
.history-chip.empty{background:transparent}
.chip-dot{position:absolute;top:-2px;right:-2px;width:5px;height:5px;border-radius:50%;background:var(--ink)}
.day-strip{display:flex;gap:var(--space-8);flex-wrap:wrap;margin:var(--space-16) 0}
.day-chip{position:relative;padding:var(--space-8) var(--space-16);border-radius:var(--radius-pill);background:var(--card);color:var(--mute);border:1px solid var(--line);font:inherit;cursor:pointer}
.day-chip.on{background:var(--ink);color:var(--bg);font-weight:700;border-color:var(--ink)}
.day-chip.dirty::after{content:'';position:absolute;top:-2px;right:-2px;width:6px;height:6px;border-radius:50%;background:var(--amber)}
.day-editor{margin-bottom:var(--space-16)}
.copy-target.copied{background:#0F1A14;color:var(--green);border-color:var(--green)}

.period-row{display:flex;flex-direction:column;gap:var(--space-8)}
.period-row .actions{margin-top:0}
.period-row .row1-badge{display:none}
/* Row 1's resolver defines where the whole day starts (day_boundaries()
   treats parts[0] specially) -- this already caused one real, shipped bug
   (4 Part Day's original ordering), so whichever row is physically first
   gets a persistent, hard-to-miss badge and border, kept in sync by JS on
   every add/remove/reorder, not a one-time instructions paragraph. */
.period-row.is-first{border-color:var(--amber);border-width:2px}
.period-row.is-first .row1-badge{display:inline-block;width:max-content}
.pill.row1-badge{background:#2A1F0A;color:var(--amber);border-color:#4D3B14;font-size:12px;padding:var(--space-8) var(--space-12)}
.field-clock,.field-solar,.field-prayer{display:flex;gap:var(--space-8)}
/* An open block past a flat 3-hour threshold (see today() /
   LONG_OPEN_THRESHOLD_MIN) -- amber like row1-badge above (attention, not
   the red/green chosen-vs-drift intent colors, since this doesn't know or
   claim which one applies), but block-level and wider since this needs to
   be genuinely hard to miss, not a small inline tag. */
.pill.long-open{display:block;width:100%;text-align:center;box-sizing:border-box;background:#2A1F0A;color:var(--amber);border-color:#4D3B14;font-size:13px;margin-top:var(--space-12)}

@media (min-width:768px){
  main,.top,.messages,#today-moments{max-width:680px}
  body.loginpage .top{max-width:400px}
  body.welcomepage .top{max-width:520px}
  body{padding-inline:var(--space-24)}
  .login{max-width:400px;margin-inline:auto}
}
@media (min-width:1200px){
  body{padding:var(--space-32)}
  body.dashboard .top{max-width:1200px}
  /* Y1: the ring column takes roughly half the width (was 430px against a
     750px time-blocks column); the time-blocks column is about a third
     narrower at 510px, and the ring column flexes into the rest (~670px at
     the 1200px cap). Only this breakpoint changes -- phone width is
     single-column and untouched. */
  body.dashboard main{max-width:1200px;display:grid;grid-template-columns:1fr 510px;gap:var(--space-20);align-items:start}
  body.dashboard .messages,body.dashboard #today-moments{max-width:1200px}
}

/* "How this score was calculated" (see _score_breakdown.html). The
   summary is the "How this was calculated" link under the starts/held
   line; opening it reveals the sheet, which reuses .card's own look the
   same way .period-info does rather than inventing a second style. */
.score-breakdown{margin-top:var(--space-8)}
.score-breakdown>summary{cursor:pointer;list-style:none;text-align:center}
.score-breakdown>summary::-webkit-details-marker{display:none}
.score-breakdown>summary:hover,.score-breakdown>summary:focus-visible{text-decoration:underline}
.score-breakdown[open]>.stack{background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:var(--space-16);margin-top:var(--space-12);text-align:left}
.score-breakdown .bd-group{margin-top:var(--space-12)}
.score-breakdown .bd-group .row{justify-content:space-between;gap:var(--space-12);margin-top:4px}
.score-breakdown .bd-group .row span,.score-breakdown .bd-group .row b{min-width:0}

/* Sub-activity chips on the note page (see note_new.html). Checkbox-driven
   so selection needs no JS; the label IS the chip. "+ New" is a <details>
   holding a text input, so creating one stays part of the same single save. */
.subchips{display:flex;flex-wrap:wrap;gap:var(--space-8);margin-top:var(--space-8)}
.subchips .chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid var(--line);
  border-radius:999px;font-size:13px;color:var(--mute);cursor:pointer;background:transparent}
.subchips .chip input{accent-color:var(--green);margin:0}
.subchips .chip:has(input:checked){border-color:var(--green);color:var(--ink)}
.subchips .newsub{padding:0;border:none}
.subchips .newsub>summary{list-style:none;padding:7px 12px;border:1px dashed var(--line);border-radius:999px}
.subchips .newsub>summary::-webkit-details-marker{display:none}
.subchips .newsub[open]>summary{border-style:solid;border-color:var(--ink);color:var(--ink)}
/* The generic .chip input rule above hides chip checkboxes
   (position:absolute;opacity:0;inset:0 -- the label IS the chip). The
   newsub <details> carries class "chip" too, so WITHOUT these overrides its
   text field inherits that rule: tapping "+ New" opened the details but
   revealed an invisible, absolutely-positioned input sitting over the
   summary -- "+ New does nothing". position/opacity/inset must stay
   explicitly restored here. */
.subchips .newsub .in{position:static;opacity:1;inset:auto;margin-top:6px;min-width:180px}

/* Settings' sub-activity editor: one <details> per activity, rows of
   name + reorder/remove controls (see settings.html's renumber script). */
.subedit>summary{cursor:pointer;padding:var(--space-8) 0}
.subrow{display:flex;gap:6px;align-items:center;margin-top:6px}
.subrow .in{flex:1 1 auto;margin:0}
.subrow .btn{margin:0;padding:6px 10px;flex:0 0 auto}
.subedit .sub-add{margin-top:var(--space-8)}

/* Staging badge (base.html, shown only when ENVIRONMENT=staging). Amber --
   the same "attention, not intent" colour the long-open and validation
   pills use -- so it never reads as a chosen/drift signal. */
.envbadge{display:inline-block;margin-inline-start:var(--space-8);padding:2px 8px;border-radius:999px;
  background:var(--amber);color:#08090A;font-size:11px;font-weight:700;letter-spacing:.08em;vertical-align:middle}

/* --- Profile (logging game R2) --------------------------------------- */
/* Single comfortable column -- never the two-column dashboard grid. */
body.profilepage main{max-width:680px}
.shield{width:14px;height:14px;border-radius:50%;border:2px solid var(--green);display:inline-block}
.shield.full{background:var(--green)}
/* The closed-days grid (F1): the fill IS the day's coverage -- rgba alpha
   from --cov (.08 at 0% rising to ~.9 at 79) -- closed solid, late
   solid+dot, today pulsing, pre-account dashed, no-data empty. Squares are
   size-capped so the grid stays compact at every width. */
.daygrid{display:flex;flex-direction:column;gap:3px}
.daygrid-row{display:flex;gap:3px;align-items:center}
.weeklabel{width:44px;flex:none;font-size:9px;color:var(--mute);text-align:right;padding-right:4px}
.dayletter{flex:1 1 0;text-align:center;font-size:10px;color:var(--mute)}
/* M0: squares GROW to fill the card width (7 columns + the date label),
   capped at 36px; the inline background carries the coverage spectrum. */
.daysq{flex:1 1 0;aspect-ratio:1;height:auto;border-radius:4px;display:block;background:#15171B;border:none;padding:0;position:relative}
.daysq.closed{background:var(--green)}
.daysq.late{background:var(--green)}
.daysq.late::after{content:'';position:absolute;inset:0;margin:auto;width:4px;height:4px;border-radius:50%;background:var(--bg)}
.daysq.pending{animation:covpulse 2.4s ease-in-out infinite}
@keyframes covpulse{0%,100%{opacity:1}50%{opacity:.45}}
.daysq.pre{background:transparent;border:1px dashed #3A3E46}
.daysq.empty{background:#15171B}
.daysq.blank{background:transparent}
.daysq.inline{display:inline-block;width:10px;height:10px;flex:none;vertical-align:middle;margin:0 2px 0 10px}
.daygrid-legend{margin-top:var(--space-8)}
.daygrid-row a.daysq,.daysq-free{cursor:pointer}
.badgerow{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:var(--space-12)}
.badgeslot{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px;background:none;border:none;padding:0;font:inherit;color:inherit;cursor:pointer}
.badgeslot.inert{cursor:default}
.badgename{font-size:10px;line-height:1.2;display:block;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tierline{font-size:9px}
/* F2: the ONE sheet -- a bottom sheet over a dimmed backdrop, at every
   width. Closes on the X, the backdrop, and Escape; another slot swaps the
   content in place. Sits above the phone tab bar. */
#pf-overlay{position:fixed;inset:0;z-index:60}
#pf-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
#pf-sheet{position:absolute;left:var(--space-16);right:var(--space-16);bottom:calc(84px + env(safe-area-inset-bottom));max-width:420px;margin:0 auto;text-align:left;box-shadow:0 -8px 32px rgba(0,0,0,.5)}
@media (min-width:761px){#pf-sheet{bottom:var(--space-24)}}
#pf-x{position:absolute;top:var(--space-8);right:var(--space-8);background:transparent;border:none;color:var(--mute);font-size:22px;line-height:1;cursor:pointer;padding:var(--space-8)}
#pf-meta{white-space:pre-line}
.lifetime-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:var(--space-12);margin-top:var(--space-12)}
.lifetime-grid .big{display:block;font-size:22px}

/* F3: coverage under each History ring. HTML under the ring (never in the
   SVG); the check marks >= 80% -- a closed day. Sized not to widen the
   66/52px card columns at 393px. */
.history-cov{display:block;font-size:10px;color:var(--mute);line-height:1.3}
.history-cov.ok{color:var(--green)}
.history-cov svg{vertical-align:-1px}

/* M2: the finish line -- a mark at the closure threshold on Today's
   coverage bar, and the distance line under it. */
.bar{position:relative}
.finish-mark{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--ink);opacity:.7;border-radius:1px}
.finish-line{display:block;margin-top:4px;font-size:11px;color:var(--mute)}
.finish-line.closed{color:var(--green)}
.finish-line.on-pace{color:var(--green)}
/* M1: moment banners -- one line, no animation beyond existing styles */
.moment{display:block;margin:0 0 var(--space-8);padding:var(--space-12) var(--space-16);border-radius:var(--radius-card);background:#0C1A12;border:1px solid #1E4D35;color:var(--ink);font-size:14px}
.moment a{color:var(--green)}
/* M2: the nearest goal under the ring */
.nextgoal{display:block;text-decoration:none;color:inherit;margin-top:var(--space-12)}
/* M3: the first quest */
.quest-step{display:flex;gap:var(--space-8);align-items:center;margin-top:var(--space-8);font-size:14px}
.quest-step .tick{width:18px;height:18px;border-radius:50%;border:2px solid var(--mute);flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:11px}
.quest-step.done .tick{border-color:var(--green);background:var(--green);color:var(--bg)}
.quest-step.done{color:var(--mute);text-decoration:line-through}

/* ----- the welcome / fill-in-today step (game M4) ----- */
.welcome{max-width:520px}
.welcome-block{display:flex;align-items:center;gap:var(--space-12);padding:var(--space-12) var(--space-16)}
.welcome-keep{display:flex;align-items:center;gap:var(--space-8);flex:0 0 auto}
.welcome-when{font-family:"Space Grotesk",sans-serif;font-weight:600}
.welcome-what{color:var(--ink)}
/* Proposed blocks (welcome.html): the activity's own colour, dashed edge,
   a "Proposed" label. The <select>'s chosen option recolours the card.
   Unticked = would stay unaccounted = the gap card's hollow gray. */
.welcome-block.proposed{flex-wrap:wrap;border:2px dashed;border-radius:var(--radius-card);margin-bottom:var(--space-8)}
.welcome-block.proposed.chosen,.welcome-block.proposed:has(option[data-intent="chosen"]:checked){background:#0C1A12;border-color:#1E7A4D;color:var(--green)}
.welcome-block.proposed.drift,.welcome-block.proposed:has(option[data-intent="drift"]:checked){background:#1C0F10;border-color:#7A3333;color:var(--red)}
.welcome-block.proposed.sleep,.welcome-block.proposed:has(option[data-intent="sleep"]:checked){background:var(--sleep-bg);border-color:var(--sleep-line);color:var(--sleep-ink)}
.welcome-block.proposed .welcome-when{color:inherit}
.welcome-state{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:inherit;flex:0 0 auto}
.welcome-state .is-skipped{display:none}
.welcome-block.proposed:has(.welcome-keep input:not(:checked)){background:transparent;border-color:#3A3E46;color:var(--mute)}
.welcome-block.proposed:has(.welcome-keep input:not(:checked)) .is-proposed{display:none}
.welcome-block.proposed:has(.welcome-keep input:not(:checked)) .is-skipped{display:inline}
.welcome-block select{flex:1 1 auto;min-width:0;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:6px 8px}
.welcome-actions{margin-top:var(--space-16)}
.welcome-score{margin-top:var(--space-24)}.welcome-score p{margin:var(--space-8) 0 0}
.welcome-skip{margin-top:var(--space-12)}

/* ----- the weekly recap card (game M7) ----- */
.recap-card .recap-range{margin:var(--space-8) 0}
.recap-card .recap-head{font-family:"Space Grotesk",sans-serif;font-weight:600;font-size:28px;margin:var(--space-8) 0 var(--space-4)}
.recap-card .eyebrow{margin-top:var(--space-16)}
.recap-acts{list-style:none;margin:var(--space-8) 0 0;padding:0}
.recap-acts li{display:flex;justify-content:space-between;padding:2px 0}
.recap-share{display:flex;align-items:center;gap:var(--space-16);margin-top:var(--space-20);flex-wrap:wrap}
.recap-toggle{display:flex;align-items:center;gap:var(--space-8);color:var(--mute);font-size:14px}

/* ----- readable goal rows (X3) ----- */
.nextup-row{display:block;width:100%;text-align:left;background:none;border:0;padding:0;margin-top:var(--space-12);color:inherit;cursor:pointer;font:inherit}
/* Y3: the goal line keeps its glyph and text together at the left --
   .row's own justify-content:space-between pushed them to opposite edges
   of the card. The bar sits under them, unchanged. */
.goalline{display:flex;align-items:center;gap:var(--space-8);justify-content:flex-start}
.goalline svg{flex:0 0 auto}
/* Y2: the thin divider between the score area and the Next badge line. */
.recap-variants{display:flex;gap:var(--space-16)}

/* A past day's own coverage block (D1): the same shape as Today's, minus
   the Sweep link and the finish line -- neither applies to a concluded
   day. `.big` is sized down because this one carries a whole phrase
   ("72% accounted for"), not a bare percentage. */
.daycoverage{margin-bottom:var(--space-16)}
.daycoverage .big{font-size:24px}
/* At phone width the phrase and the unaccounted figure don't fit side by
   side: the figure takes the next line rather than "91% accounted for"
   wrapping beside it (2026-11-04). */
.daycoverage .row{flex-wrap:wrap;column-gap:var(--space-12)}

/* The gap sheet's time row (D3): start read-only, end editable -- the same
   .cutrow shape the Split editor uses, so the two sheets read alike. */
.gaptimes{display:flex;gap:var(--space-8);flex-wrap:wrap;margin-bottom:var(--space-8)}
.gaptimes .cutrow{flex:1 1 140px;margin:0}

/* ----- the gap form's rows (E1) ----- */
.gap-row{position:relative;border:1px solid var(--line);border-radius:var(--radius-card);padding:var(--space-12);margin-bottom:var(--space-8)}
.gap-row.is-unaccounted .row-tiles{opacity:.35;pointer-events:none}
.gap-row .remove-part{position:absolute;top:4px;right:4px;padding:2px 8px}
.gap-rows{grid-column:1/-1}
.gapform>.add-part,.gapform>.gap-summary,.gapform>button[type=submit]{grid-column:1/-1}
.gap-summary{margin:var(--space-8) 0 0}
.unaccounted-toggle{display:flex;align-items:center;gap:var(--space-8);color:var(--mute);font-size:13px;margin:var(--space-8) 0}
.grid-caption{margin:var(--space-8) 0 0}
/* A locked (disabled) time field keeps the viewer's own clock format but
   loses the picker icon -- nothing about it is editable. */
input[type=time]:disabled::-webkit-calendar-picker-indicator{display:none}
/* Settings' now marker under orbit (web batch 1, item 7): disabled, and it looks it. */
#now-marker:disabled{opacity:.5}
/* A rejected gap form's own message, at the top of the sheet (G3). */
.gap-error{grid-column:1/-1;margin:0 0 var(--space-8);color:var(--red);font-size:13px}
/* The rows rule (docs/ios-design.md §5.2): an empty time field shows its
   faint hint over itself; one tap fills the field with it. The line under
   a row says what keeps it from saving. */
.time-field{position:relative;display:flex;flex:1;min-width:0}
.time-field .in{min-width:0;width:100%}
.time-hint{position:absolute;inset:1px;display:flex;align-items:center;padding:0 var(--space-12);border:0;border-radius:var(--radius-input);background:var(--bg2);color:rgba(158,161,173,.6);font:inherit;text-align:left;cursor:pointer}
.time-hint[hidden]{display:none}
.row-msg{margin:0 0 var(--space-8);color:var(--red);font-size:13px}
.row-msg[hidden]{display:none}
/* The rows form's activity grid: three tiles a row where every name's
   longest word fits a third of the form, else two, else one; a name is never
   split mid-word (the Web Lead, 3 Dec, after 2c: at 393 px ten starter names
   broke, "Meeting/s", and at 320 nearly all; three a row with hyphenation
   since 2026-11-05). _gapform_script.html measures the longest word in the
   tiles' own font into --word on the form; a track is at least that plus
   the tile's padding and a checked tile's border (22px) and at least a third
   of the row, and auto-fill makes as many as fit: three, two or one. Without
   the script, --word is 0 and the row keeps three. Hyphenation is off, so a
   word that fits its tile is never broken; overflow-wrap is left only for a
   word wider than a whole row. The tile sets its name in a one-column grid,
   not .tile.sel's flex column, which will not shrink below its longest word. */
.gap-row .row-tiles{grid-template-columns:repeat(auto-fill,
  minmax(max(calc(var(--word, 0px) + 22px), calc((100% - 2 * var(--space-8)) / 3 - .05px)), 1fr))}
.gap-row .row-tiles>.tile{display:grid;grid-template-columns:minmax(0,1fr);align-content:center;text-align:center;
  overflow-wrap:break-word;-webkit-hyphens:manual;hyphens:manual}
/* On a phone an open rows form takes the slot's whole width: beside the time
   gutter it is 150px at 320 and 223px at 393, too narrow even for two of
   "Daydreaming" (83px); across it, 226px and 299px. The gutter's time steps
   aside while the form is open (its heading names the same times). */
@media (max-width:760px){
  .slot:has(>details[open] form.gapform)>.t{display:none}
}
/* A message carries its level: "Saved" is good news, a refused save is
   not, and both used to render in the same green pill. */
.pill-error{background:#2A1416;border-color:#4D2121;color:var(--red)}

/* Q3: the picked city in the location search stays visibly selected. */
.row-btn.sel-city{border-color:var(--green);color:var(--green)}
/* "Change how it ended" (round 3, build 3): the app's own choice tiles, two a row. */
.ending-grid{grid-template-columns:repeat(2,1fr);margin-top:0}
.tile.sel.disabled{opacity:.45;cursor:default}
/* delete_account.html: the line under "Email me my data first" says what
   the box's current state will do. */
.export-choice .if-export{display:block}.export-choice .if-no-export{display:none}
.export-choice:has(#email-export:not(:checked)) .if-export{display:none}
.export-choice:has(#email-export:not(:checked)) .if-no-export{display:block}
/* The privacy policy, the terms and the support page (core/templates/core/legal/,
   2026-11-16): long-form reading text in the app's own column. */
.legal-page h1{font-size:28px;line-height:1.2;margin:var(--space-8) 0}
.legal-page h2{font-size:18px;margin:var(--space-32) 0 var(--space-8)}
.legal-page h3{font-size:16px;margin:var(--space-20) 0 var(--space-8)}
.legal-page p,.legal-page li{line-height:1.55;color:var(--soft)}
.legal-page p{margin:0 0 var(--space-12)}
.legal-page ul,.legal-page ol{margin:0 0 var(--space-12);padding-inline-start:var(--space-20)}
.legal-page li{margin-bottom:var(--space-8)}
.legal-page b{color:var(--ink)}
.legal-page a{color:var(--green);overflow-wrap:anywhere}
.legal-page .legal-updated{color:var(--mute);font-size:13px;margin-bottom:var(--space-24)}
.legal-table{width:100%;border-collapse:collapse;margin-bottom:var(--space-12);font-size:14px;line-height:1.45}
.legal-table td{padding:var(--space-8) 0;border-bottom:1px solid var(--line);vertical-align:top;text-align:start;color:var(--soft)}
.legal-table td:first-child{padding-inline-end:var(--space-16);width:55%}
.login-agree a{color:var(--soft);text-decoration:underline}

/* The step before prayer-time periods (round 3, build 4): the one sheet's
   look (#pf-*), two buttons equal in style and size, neither preselected.
   The sheet scrolls on a short screen; on a computer it sits mid-screen. */
.pc-overlay{position:fixed;inset:0;z-index:70}
.pc-overlay[hidden]{display:none}
.pc-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.pc-sheet{position:absolute;left:var(--space-16);right:var(--space-16);bottom:calc(84px + env(safe-area-inset-bottom));max-width:480px;margin:0 auto;max-height:calc(100vh - 112px);overflow-y:auto;box-shadow:0 -8px 32px rgba(0,0,0,.5)}
@media (min-width:761px){.pc-sheet{bottom:auto;top:50%;transform:translateY(-50%)}}
.consent-q{font-size:20px;line-height:1.3;margin:0 0 var(--space-12);outline:none}
.consent-line{margin:0 0 var(--space-12);line-height:1.45}
.consent-buttons{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-8);margin-top:var(--space-16)}
.consent-btn{margin:0;width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;color:var(--ink)}
.consent-page{max-width:560px;margin-top:var(--space-16)}
.consent-changed{color:var(--amber);margin:0 0 var(--space-12)}
/* Taking the yes back, under Settings' Day periods; and Today's question
   for an account already on prayer-time periods (round 3, build 4). */
.take-back{margin-top:var(--space-16)}
.take-back-step>summary{display:inline-block}
.take-back-body{margin-top:var(--space-12)}
.take-back-choose{margin:0 0 var(--space-8)}
.take-back-choose.refused{color:var(--amber)}
.take-back-presets{display:flex;flex-wrap:wrap;gap:var(--space-8);margin-bottom:var(--space-12)}
.consent-keep{margin-bottom:var(--space-16)}
.consent-keep .consent-q{font-size:18px}
/* "Use my location": the nearest city found (round 3, build 4; 13 A). */
.loc-found{margin:var(--space-8) 0 0}
/* The note between the two midnights (round 3, build 4): two lines and a
   close button, between the date row and the ring on a phone, above the
   ring on a computer. */
.day-note{display:flex;align-items:flex-start;gap:var(--space-8);margin:var(--space-12) 0;padding:var(--space-12) var(--space-16);border:1px solid var(--line);border-radius:var(--radius-card);background:var(--card)}
.day-note p{margin:0;flex:1;font-size:14px;line-height:1.4;color:var(--soft)}
.day-note form{margin:0}
.day-note-close{background:transparent;border:none;color:var(--mute);font-size:20px;line-height:1;cursor:pointer;padding:0 var(--space-8);min-width:44px;min-height:44px;margin:-12px -12px -12px 0}

/* Today's plan row (build B4, design 7.4): under the NOW tile at both widths. */
.plan-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8) var(--space-12);margin-top:var(--space-12);padding:var(--space-12) var(--space-16)}
.plan-row-text{color:var(--ink);text-decoration:none;font-weight:600;flex:1 1 auto;min-width:0}
.plan-row-text:hover{text-decoration:underline}
.plan-row-actions{display:flex;flex-wrap:wrap;gap:var(--space-8)}
.plan-row-actions form{margin:0}
.plan-row-more{text-decoration:none}
/* A plan's Wait… (Rusel's word 72 A; the iPhone's PlanWaitChoices, round 8b):
   one control on Today's row, the plan's page and the Nudges list. Closed,
   the plan's ordinary pill; open, it takes a line of its own: +5 +10 +20 (the
   later side's outlines, each a Wait at once) over the Minutes field and Wait. */
.plan-wait>summary.btn:not(.wide){display:inline-block}
.plan-wait-choices{display:flex;flex-direction:column;gap:var(--space-8);margin-top:var(--space-8);max-width:420px}
.plan-wait-in,.plan-wait-typed{display:flex;gap:var(--space-8);margin:0}
.plan-wait-in .when-b{flex:1 1 0}
.plan-wait-typed .in{flex:1 1 auto;min-width:0;min-height:44px;box-sizing:border-box;margin:0}
:is(.plan-row-actions,.actions)>.plan-wait[open],.plan-row-actions:has(>.plan-wait[open]){flex-basis:100%}
/* Activity icons (prompt 25 part 2, items 3 and 4; the iPhone's
   ActivityIcons.swift): {% act_icon %} puts one .act-icon on every activity
   button (.ai-button) and block (.ai-block). The style is the browser's
   (Settings, Look, kept in localStorage as the iPhone keeps its own): base.html
   sets <html data-icons-buttons / data-icons-blocks>, Watermark by default;
   Look's samples fix theirs (.ai-s-<style>). Watermark: large and faint in the
   tile's or card's own colour at its trailing edge, a quarter of it past
   the edge and cut off there, behind the words, which keep a 1.5px outline
   of the background so it never touches a letter. Outline tile: a rounded
   square edged in the colour, above a button's name or in a column before a
   block's words. Tinted circle: a circle lightly filled with the colour.
   None: nothing. A name the website doesn't know shows its first letter. */
.act-icon{display:flex;align-items:center;justify-content:center;flex:none;pointer-events:none}
.act-icon>.aicon{display:block;width:100%;height:100%}
.act-icon[data-letter]::before{content:attr(data-letter);font:600 1em/1 var(--font-display)}
.tile{--tile-bg:#0F1A14}.tile.drift{--tile-bg:#1A1012}.tile.sleep{--tile-bg:var(--sleep-bg)}
.tile.sel:not(.chosen):not(.drift):not(.sleep):not(.eating):not(.bathroom){--tile-bg:var(--card)}
.card{--card-bg:var(--card)}.card.chosen{--card-bg:#0C1A12}.card.drift{--card-bg:#1C0F10}.card.sleep{--card-bg:var(--sleep-bg)}
.tile:has(>:is(.ai-s-watermark,[data-icons-buttons=watermark] .ai-button)){position:relative;overflow:hidden;isolation:isolate;
  text-shadow:1.5px 0 var(--tile-bg),-1.5px 0 var(--tile-bg),0 1.5px var(--tile-bg),0 -1.5px var(--tile-bg)}
.tile>:is(.ai-s-watermark,[data-icons-buttons=watermark] .ai-button){position:absolute;z-index:-1;top:50%;margin-top:-28px;inset-inline-end:-14px;width:56px;height:56px;
  font-size:48px;opacity:.16}
.tile>:is(.ai-s-outline,[data-icons-buttons=outline] .ai-button),.tile>:is(.ai-s-tinted,[data-icons-buttons=tinted] .ai-button){width:28px;height:28px;margin:0 auto 6px;font-size:16px}
.tile.sel>:is(.ai-s-outline,[data-icons-buttons=outline] .ai-button),.tile.sel>:is(.ai-s-tinted,[data-icons-buttons=tinted] .ai-button){margin-bottom:-2px}
.tile>:is(.ai-s-outline,[data-icons-buttons=outline] .ai-button){border:1.5px solid currentColor;border-radius:8px}
.tile>:is(.ai-s-tinted,[data-icons-buttons=tinted] .ai-button){border-radius:50%;background:color-mix(in srgb,currentColor 16%,transparent)}
.tile.sleep>:is(.ai-s-tinted,[data-icons-buttons=tinted] .ai-button){background:color-mix(in srgb,currentColor 26%,transparent)}
.tile>:is(.ai-s-outline,[data-icons-buttons=outline] .ai-button)>.aicon,.tile>:is(.ai-s-tinted,[data-icons-buttons=tinted] .ai-button)>.aicon{width:16px;height:16px}
details.card:has(>summary>:is(.ai-s-watermark,[data-icons-blocks=watermark] .ai-block)){overflow:hidden;isolation:isolate}
details.card>summary:has(>:is(.ai-s-watermark,[data-icons-blocks=watermark] .ai-block))>:is(b,small){text-shadow:1.5px 0 var(--card-bg),-1.5px 0 var(--card-bg),0 1.5px var(--card-bg),0 -1.5px var(--card-bg)}
.card>summary>:is(.ai-s-watermark,[data-icons-blocks=watermark] .ai-block){position:absolute;z-index:-1;top:-8px;inset-inline-end:-22px;width:88px;height:88px;
  font-size:72px;opacity:.16}
.card>summary:has(>:is(.ai-s-outline,[data-icons-blocks=outline] .ai-block)),.card>summary:has(>:is(.ai-s-tinted,[data-icons-blocks=tinted] .ai-block)){display:grid;grid-template-columns:auto minmax(0,1fr);
  column-gap:var(--space-12);align-items:start}
.card>summary:has(>:is(.ai-s-outline,[data-icons-blocks=outline] .ai-block))>*,.card>summary:has(>:is(.ai-s-tinted,[data-icons-blocks=tinted] .ai-block))>*{grid-column:2}
.card>summary>:is(.ai-s-outline,[data-icons-blocks=outline] .ai-block),.card>summary>:is(.ai-s-tinted,[data-icons-blocks=tinted] .ai-block){grid-column:1;grid-row:1 / span 6;font-size:20px}
.card>summary>:is(.ai-s-outline,[data-icons-blocks=outline] .ai-block){width:40px;height:40px;border:1.5px solid currentColor;border-radius:12px}
.card>summary>:is(.ai-s-tinted,[data-icons-blocks=tinted] .ai-block){width:36px;height:36px;border-radius:50%;background:color-mix(in srgb,currentColor 16%,transparent)}
.card.sleep>summary>:is(.ai-s-tinted,[data-icons-blocks=tinted] .ai-block){background:color-mix(in srgb,currentColor 26%,transparent)}
.card>summary>:is(.ai-s-outline,[data-icons-blocks=outline] .ai-block)>.aicon{width:22px;height:22px}
.card>summary>:is(.ai-s-tinted,[data-icons-blocks=tinted] .ai-block)>.aicon{width:20px;height:20px}
.card.chosen>summary>.act-icon{color:var(--green)}.card.drift>summary>.act-icon{color:var(--red)}
.card.sleep>summary>.act-icon{color:var(--sleep-ink)}
[data-icons-buttons=none] .ai-button,[data-icons-blocks=none] .ai-block{display:none}
.act-icon.ai-plain{width:28px;height:28px;font-size:18px}.act-icon.ai-plain>.aicon{width:20px;height:20px}
/* Settings in four pages (prompt 25 part 2, item 4): the switch at the top,
   then the page's title, as on the iPhone. */
.settings-switch{margin-top:var(--space-16)}
.settings-switch a{white-space:nowrap}
.settings-title{margin-top:var(--space-16)}
.icon-styles{border:0;margin:var(--space-16) 0 0;padding:0;min-width:0}
.icon-styles legend{padding:0;margin-bottom:var(--space-8)}
.icon-style{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:var(--space-12);row-gap:var(--space-8);
  padding:var(--space-12) 0;border-top:1px solid var(--line);cursor:pointer}
.icon-style input{margin:0;accent-color:var(--green)}
.icon-sample{grid-column:1 / -1;display:block;pointer-events:none}
.icon-sample .card{display:block;margin:0}
.icon-sample-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-8)}
.icon-sample-tiles .tile{display:block;text-align:center}
/* Your activities (the Logging page) and an activity's own page (item 5). */
ul.plain{list-style:none;margin:var(--space-12) 0 0;padding:0}
.activity-row{display:flex;align-items:center;gap:var(--space-12);padding:var(--space-8) 0;color:var(--ink);text-decoration:none;
  border-top:1px solid var(--line)}
.activity-row small{display:block}
a.activity-row:hover .activity-row-name,a.activity-row:focus-visible .activity-row-name{text-decoration:underline}
.activity-row.chosen>.act-icon{color:var(--green)}.activity-row.drift>.act-icon{color:var(--red)}
.activity-row.sleep>.act-icon{color:var(--sleep-ink)}.activity-row.archived{color:var(--mute)}
.activity-row.archived form{margin-inline-start:auto}
.activity-list>small{display:block;margin-top:var(--space-8)}
.activity-title{display:flex;align-items:center;gap:var(--space-8)}
.activity-name-row{gap:var(--space-8);margin-top:var(--space-8);align-items:center}
.activity-name-row .in{flex:1;min-width:0;margin:0}
.activity-name-row .btn{margin:0;flex:none}
.refusal-line{color:var(--amber);margin:var(--space-8) 0 0}
.icon-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:var(--space-8);margin-top:var(--space-12)}
.icon-choice{display:flex;align-items:center;justify-content:center;height:44px;border-radius:12px;border:1px solid var(--line);
  background:var(--card);color:var(--soft);cursor:pointer;padding:0}
.icon-choice .aicon{width:22px;height:22px}
.icon-choice.on{border:2px solid currentColor}.icon-choice.on.chosen{color:var(--green)}.icon-choice.on.drift{color:var(--red)}
.icon-choice.on.sleep{color:var(--sleep-ink)}
/* Settings cards: a select keeps to its card (the timezone list's longest name made the page wider than a phone) and starts its own line. */
#settings-form .card select.in{display:block;max-width:100%}
/* The time gutter in 12-hour form ("10:50 AM", prompt 25 part 2, item 6). */
.slot .t.t12{width:64px;white-space:nowrap}
/* The Still going banner's three buttons (prompt 25 part 2, item 11): beside
   the words where they fit, under them on a phone. */
.pill.long-open{flex-wrap:wrap}
.long-open-buttons{display:flex;flex-wrap:wrap;gap:var(--space-8)}
.long-open-buttons form{margin:0}.long-open-buttons .btn{margin:0;text-decoration:none}
/* A mark's card (prompt 25 part 2, item 11): its actions as pills that wrap,
   each panel opening under the row. */
.mark-actions{display:flex;flex-wrap:wrap;gap:var(--space-8);margin-top:var(--space-12);align-items:flex-start}
.mark-actions>form{margin:0}
.mark-actions .btn{margin:0}
.mark-actions>.mark-panel[open],.mark-actions>.mark-remove[open]{flex-basis:100%}
.mark-actions .mark-panel form{margin-top:var(--space-8);display:flex;flex-direction:column;gap:var(--space-8)}
.mark-actions .mark-panel form.grid{display:grid}
.mark-actions textarea.in{min-height:80px;margin-top:0}
.mark-times{gap:var(--space-12)}.mark-times label{flex:1;display:flex;flex-direction:column;gap:6px}
.mark-detail{color:var(--soft)}.mark-note-text{white-space:pre-wrap;color:var(--ink)}
a.mark-fill{text-decoration:none}
.period-score{margin:4px 0 0;color:var(--soft)}
.mark-actions .confirm>summary::after{content:none;display:none}
/* Eating and Bathroom in their own colours (round 2c; the iPhone's BlockTone, Rusel 20-21 Nov), as Sleep has its
   night blue: by built-in key, never name (|tile_intent on a tile, |tone_class on a block's card, ring.BUILTIN_TINTS
   on the Detail band), while chosen; a drifted block stays red and the Period view keeps its spectrum. The title
   and the tally take the colour. Placed last: each overrides the chosen green at the same specificity. */
.tile.eating,.tile.eating.sel{background:var(--eating-bg);color:var(--eating);border-color:var(--eating-line);--tile-bg:var(--eating-bg)}
.tile.bathroom,.tile.bathroom.sel{background:var(--bathroom-bg);color:var(--bathroom);border-color:var(--bathroom-line);--tile-bg:var(--bathroom-bg)}
.tile.eating.sel:has(input:checked){border-color:var(--eating);border-width:2px}
.tile.bathroom.sel:has(input:checked){border-color:var(--bathroom);border-width:2px}
.card.eating{background:var(--eating-bg);border-color:var(--eating-line);--card-bg:var(--eating-bg)}.card.eating b{color:var(--eating)}
.card.bathroom{background:var(--bathroom-bg);border-color:var(--bathroom-line);--card-bg:var(--bathroom-bg)}.card.bathroom b{color:var(--bathroom)}
.card.eating .seg{background:var(--eating)}.card.bathroom .seg{background:var(--bathroom)}
.card.eating>summary>.act-icon{color:var(--eating)}.card.bathroom>summary>.act-icon{color:var(--bathroom)}
.activity-row.eating>.act-icon{color:var(--eating)}.activity-row.bathroom>.act-icon{color:var(--bathroom)}
.icon-choice.on.eating{color:var(--eating)}.icon-choice.on.bathroom{color:var(--bathroom)}
/* The "ended automatically ... still on it?" notice's × (round 2c, iOS #229): the day note's own button, in the
   notice's top corner as on the day note; the words keep clear of it. Compact (Rusel, 2 Dec: Extend sat alone at the
   bottom of a tall pill): the sentence and Extend share one row where both fit; where they don't, the row wraps and
   Extend sits under the sentence at the end. The cards' corners, not a pill's, since it can be three lines tall. */
.pill.long-open.auto-closed{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8) var(--space-12);
  text-align:start;border-radius:var(--radius-card);padding-block:var(--space-12);padding-inline:var(--space-16) 44px}
.auto-closed>span{flex:1 1 auto;min-width:0}
.auto-closed>form{margin:0;margin-inline-start:auto}.auto-closed>form .btn{margin:0}
.auto-closed .auto-closed-close{position:absolute;top:0;inset-inline-end:0;margin:0}
