/* Doctorpedia One, in the Doctorpedia look (10 November 2026): the same hand as Ask, BiteSized, Dose and the console
   (~/doctorpedia-design, Ask's find.css and auth.css, the console's admin-look.css). Hedvig Letters: the sans runs the app, the serif
   sets the titles; both have one weight, so hierarchy is size and colour. Ink on white over a warm page, hairlines, one ink pill for
   the main action, outlined pills for the rest, the lilac for focus. No gradients, no glass, no glow, no decorative imagery: the
   ground canvases and the tiles' hover glimpses stay in the page for app.js but are not drawn. The one exception is the sign-in's
   dark panel with its moving field of dots (17 November 2026), the family's own, as Dose's and Ask's.
   Readability (10 Nov): words at ink or close; secondary words 7:1 or more on the light page; nothing read under 14 px on a desktop,
   15 px on a phone (the --t-* sizes grow under 760 px). */

@font-face { font-family:"Hedvig Letters Sans"; src:url("fonts/hedvig-letters-sans-latin-ext.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; 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:"Hedvig Letters Sans"; src:url("fonts/hedvig-letters-sans-latin.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; 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:"Hedvig Letters Serif"; src:url("fonts/hedvig-letters-serif-latin-ext.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; 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:"Hedvig Letters Serif"; src:url("fonts/hedvig-letters-serif-latin.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; 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; }

/* ── tokens: light, then dark (the system's, or Preferences' choice through data-theme) ── */
:root {
  color-scheme:light;
  --sans:"Hedvig Letters Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif:"Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  --page:var(--L-page, #F7F7F5); --surface:var(--L-surface, #FFFFFF); --surface-2:var(--L-surface-2, #F2F2F0);
  --ink:var(--L-ink, #1A1A1A); --ink-2:var(--L-ink-2, #333333); --ink-3:var(--L-ink-3, #4A4A4A); --ink-4:var(--L-ink-4, #545454);
  --line:var(--L-line, rgba(26,26,26,.08)); --line-2:var(--L-line-2, rgba(26,26,26,.12)); --line-3:var(--L-line-3, rgba(26,26,26,.22));
  --hover:var(--L-hover, rgba(26,26,26,.05)); --press:var(--L-press, rgba(26,26,26,.09)); --track:var(--L-track, rgba(26,26,26,.06)); --switch-off:rgba(26,26,26,.2);
  --lilac:var(--L-accent, #8B7CFF); --lilac-soft:var(--L-accent-soft, #E6E2FF);
  --on-ink:var(--L-on-ink, #FFFFFF); --ink-hover:#3A3A3A; --seg-on:var(--L-surface, #FFFFFF); --knob-on:var(--L-surface, #FFFFFF);
  --ok:#3E9C78; --warn:#D08A2E; --bad:#C8403A; --bad-ink:var(--L-bad-ink, #9B2C24); --ok-ink:var(--L-ok-ink, #2F7D61); --warn-ink:var(--L-warn-ink, #9A5F17);
  --veil:rgba(26,26,26,.32); --toast:#1A1A1A; --on-toast:#F2F2F0; --toast-ic:#A89DFF;
  --shadow-1:0 1px 2px rgba(26,26,26,.04);
  --shadow-2:0 1px 2px rgba(26,26,26,.04), 0 16px 40px -16px rgba(26,26,26,.12);
  --shadow-3:0 1px 2px rgba(26,26,26,.04), 0 22px 48px -20px rgba(26,26,26,.18);
  --out:cubic-bezier(.22,.61,.36,1); --spring:cubic-bezier(.16,1,.3,1);
  --t-s:14px; --t-m:15px; --t-b:16px;
  --rail:92px;
  /* the names app.js and the page still read */
  --bg:var(--page); --bg-2:var(--surface); --fg:var(--ink); --fg-2:var(--ink-2); --fg-3:var(--ink-3); --fg-4:var(--ink-4);
  --violet:var(--lilac); --accent:var(--ink); --on-accent:var(--on-ink); --font:var(--sans); --ease:var(--spring);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme:dark;
  --page:var(--D-page, #141414); --surface:var(--D-surface, #1F1F1F); --surface-2:var(--D-surface-2, #2A2A2A);
  --ink:var(--D-ink, #F2F2F0); --ink-2:var(--D-ink-2, #D2D2CF); --ink-3:var(--D-ink-3, #B5B5B2); --ink-4:var(--D-ink-4, #A6A6A3);
  --line:var(--D-line, rgba(255,255,255,.08)); --line-2:var(--D-line-2, rgba(255,255,255,.13)); --line-3:var(--D-line-3, rgba(255,255,255,.24));
  --hover:rgba(255,255,255,.05); --press:rgba(255,255,255,.09); --track:rgba(255,255,255,.06); --switch-off:rgba(255,255,255,.2);
  --lilac:var(--D-accent, #A89DFF); --lilac-soft:var(--D-accent-soft, #2B2742);
  --on-ink:var(--D-on-ink, #1A1A1A); --ink-hover:#FFFFFF; --seg-on:var(--D-seg-on, #333333); --knob-on:var(--D-on-ink, #1A1A1A);
  --ok:#6FC2A3; --warn:#E8B06C; --bad:#F26A8A; --bad-ink:#FF9AAE; --ok-ink:#6FC2A3; --warn-ink:#E8B06C;
  --veil:rgba(0,0,0,.55); --toast:#2A2A2A; --on-toast:#F2F2F0; --toast-ic:#A89DFF;
  --shadow-1:0 1px 2px rgba(0,0,0,.3);
  --shadow-2:0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.5);
  --shadow-3:0 1px 2px rgba(0,0,0,.3), 0 22px 48px -20px rgba(0,0,0,.6);
} }
:root[data-theme="dark"] {
  color-scheme:dark;
  --page:var(--D-page, #141414); --surface:var(--D-surface, #1F1F1F); --surface-2:var(--D-surface-2, #2A2A2A);
  --ink:var(--D-ink, #F2F2F0); --ink-2:var(--D-ink-2, #D2D2CF); --ink-3:var(--D-ink-3, #B5B5B2); --ink-4:var(--D-ink-4, #A6A6A3);
  --line:var(--D-line, rgba(255,255,255,.08)); --line-2:var(--D-line-2, rgba(255,255,255,.13)); --line-3:var(--D-line-3, rgba(255,255,255,.24));
  --hover:rgba(255,255,255,.05); --press:rgba(255,255,255,.09); --track:rgba(255,255,255,.06); --switch-off:rgba(255,255,255,.2);
  --lilac:var(--D-accent, #A89DFF); --lilac-soft:var(--D-accent-soft, #2B2742);
  --on-ink:var(--D-on-ink, #1A1A1A); --ink-hover:#FFFFFF; --seg-on:var(--D-seg-on, #333333); --knob-on:var(--D-on-ink, #1A1A1A);
  --ok:#6FC2A3; --warn:#E8B06C; --bad:#F26A8A; --bad-ink:#FF9AAE; --ok-ink:#6FC2A3; --warn-ink:#E8B06C;
  --veil:rgba(0,0,0,.55); --toast:#2A2A2A; --on-toast:#F2F2F0; --toast-ic:#A89DFF;
  --shadow-1:0 1px 2px rgba(0,0,0,.3);
  --shadow-2:0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.5);
  --shadow-3:0 1px 2px rgba(0,0,0,.3), 0 22px 48px -20px rgba(0,0,0,.6);
}
/* a phone: every small word one step larger */
@media (max-width:760px) { :root { --t-s:15px; --t-m:15.5px; --t-b:16px; } }

/* ── One's look (19 November 2026: Account > Preferences, One's own, kept in this browser; app.js and the script at the top of the
   page write it on <html>) ── */
/* page tones: the system's four (ds/tokens.css, as BiteSized and Ask have them). data-tone-light (white | paper) and data-tone-dark
   (grey | black) fill the --L-* and --D-* names the light and dark blocks above read, so the tone of the look in view is the one seen.
   Without them (the sign-in, before any choice) One's own greys stay. Each tone brings its quiet grey accent where One had the lilac */
:root[data-tone-light="white"] { --L-page:#F4F5F6; --L-surface:#FFFFFF; --L-surface-2:#EEF0F2; --L-ink:#16181B; --L-ink-2:#272A2E; --L-ink-3:#44484E; --L-ink-4:#4E535A; --L-line:rgba(22,24,27,.08); --L-line-2:rgba(22,24,27,.12); --L-line-3:rgba(22,24,27,.22); --L-hover:rgba(22,24,27,.05); --L-press:rgba(22,24,27,.09); --L-accent:#6E737A; --L-accent-soft:#E9ECEF; --L-on-ink:#FFFFFF; }
:root[data-tone-light="paper"] { --L-page:#F4EEE2; --L-surface:#FBF7EF; --L-surface-2:#EFE7D8; --L-ink:#2B2620; --L-ink-2:#3A332A; --L-ink-3:#574E42; --L-ink-4:#61574A; --L-line:rgba(70,52,28,.10); --L-line-2:rgba(70,52,28,.15); --L-line-3:rgba(70,52,28,.26); --L-hover:rgba(70,52,28,.05); --L-press:rgba(70,52,28,.09); --L-track:rgba(70,52,28,.07); --L-accent:#857865; --L-accent-soft:#EAE0CE; --L-on-ink:#FBF7EF; --L-bad-ink:#A8342E; --L-ok-ink:#276A52; --L-warn-ink:#85510F; }
:root[data-tone-dark="grey"] { --D-page:#1C1C1E; --D-surface:#262628; --D-surface-2:#313134; --D-ink:#F2F2F3; --D-ink-2:#DADADC; --D-ink-3:#B3B3B7; --D-ink-4:#A9A9AD; --D-line:rgba(255,255,255,.09); --D-line-2:rgba(255,255,255,.14); --D-line-3:rgba(255,255,255,.25); --D-accent:#A4A6AB; --D-accent-soft:#303033; --D-on-ink:#1C1C1E; --D-seg-on:#3A3A3D; }
:root[data-tone-dark="black"] { --D-page:#000000; --D-surface:#121213; --D-surface-2:#1C1C1E; --D-ink:#EDEDED; --D-ink-2:#D4D4D4; --D-ink-3:#ABABAB; --D-ink-4:#A0A0A0; --D-line:rgba(255,255,255,.08); --D-line-2:rgba(255,255,255,.13); --D-line-3:rgba(255,255,255,.22); --D-accent:#9A9A9A; --D-accent-soft:#232325; --D-on-ink:#000000; --D-seg-on:#2A2A2C; }
/* higher contrast (One's switch, or the device's own setting): firmer lines and darker greys, in every tone (the system's values) */
:root.more-contrast:not([data-theme="dark"]) { --line:rgba(26,26,26,.2); --line-2:rgba(26,26,26,.32); --line-3:rgba(26,26,26,.5); --ink-4:#404040; --ink-3:#383838; --ink-2:#222222; --switch-off:rgba(26,26,26,.38); --track:rgba(26,26,26,.1); }
@media (prefers-color-scheme: dark) { :root.more-contrast:not([data-theme="light"]) { --line:rgba(255,255,255,.2); --line-2:rgba(255,255,255,.3); --line-3:rgba(255,255,255,.5); --ink-4:#B5B5B2; --ink-3:#C8C8C5; --ink-2:#E6E6E3; --switch-off:rgba(255,255,255,.36); --track:rgba(255,255,255,.1); } }
:root.more-contrast[data-theme="dark"] { --line:rgba(255,255,255,.2); --line-2:rgba(255,255,255,.3); --line-3:rgba(255,255,255,.5); --ink-4:#B5B5B2; --ink-3:#C8C8C5; --ink-2:#E6E6E3; --switch-off:rgba(255,255,255,.36); --track:rgba(255,255,255,.1); }
/* larger text: every word a step up, the titles with them */
:root[data-text="large"] { --t-s:16px; --t-m:17px; --t-b:18px; }
@media (max-width:760px) { :root[data-text="large"] { --t-s:17px; --t-m:17.5px; --t-b:18px; } }
:root[data-text="large"] .lead { font-size:19px; }
:root[data-text="large"] :is(.card h3, .section > h2) { font-size:25px; }
/* reduce motion: nothing moves, as when the device asks for it (the last line of this file) */
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
/* always underline links: every link read in words; the pills, the menu and the rail keep their shape */
html.a11y-underline a:not(.btn, .backpill, .brand, .mi, [data-go]) { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }

/* ── base ── */
* { box-sizing:border-box; }
html { font-synthesis:none; -webkit-text-size-adjust:100%; }
html, body { height:100%; }
body { margin:0; background:var(--page); color:var(--ink); font-family:var(--sans); font-size:var(--t-b); line-height:1.5; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
button, input, select { font:inherit; color:inherit; }
button { cursor:pointer; border:0; background:none; padding:0; }
a { color:inherit; text-decoration:none; }
h1, h2, h3, b, strong { font-weight:400; }
h1, h2, h3 { margin:0; text-wrap:balance; letter-spacing:-.01em; }
p { margin:0; }
img { max-width:100%; display:block; }
::selection { background:var(--lilac-soft); }
:focus-visible { outline:2px solid var(--lilac); outline-offset:2px; }
[hidden] { display:none !important; }

/* what is not drawn in this look: the ground's shader, lights and dots, the light on every edge, the tiles' glow and hover glimpses
   (the elements stay: app.js finds them, and each loop stops or idles on its own) */
.silk, .aurora, .ground, .app .glow, .peek { display:none !important; }
.edge::before { content:none; }

/* ── the rail: a white menu on the warm page ── */
.rail { position:fixed; left:12px; top:12px; bottom:12px; width:var(--rail); z-index:20; display:flex; flex-direction:column; align-items:center; padding:16px 0 14px; border-radius:16px; background:var(--surface); border:1px solid var(--line); view-transition-name:rail; }
.rail .brand { width:40px; height:40px; border-radius:11px; display:grid; place-items:center; background:var(--ink); color:var(--surface); margin-bottom:22px; }
.rail .brand svg { width:22px; height:22px; }
.rail nav { position:relative; display:flex; flex-direction:column; gap:4px; width:100%; padding:0 10px; }
.rail nav .glide { position:absolute; left:10px; top:0; width:calc(100% - 20px); height:64px; border-radius:12px; background:var(--surface-2); opacity:0; transition:transform .32s var(--out), width .32s var(--out), height .32s var(--out), opacity .2s; }
.rail nav .glide.on { opacity:1; }
.rail nav a { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 0 10px; border-radius:12px; color:var(--ink-3); font-size:var(--t-s); line-height:1.2; transition:color .18s var(--out), background-color .18s var(--out); }
.rail nav a svg { width:22px; height:22px; }
.rail nav a:hover { color:var(--ink); background:var(--hover); }
.rail nav a[aria-current="page"] { color:var(--ink); background:none; }
.rail nav a:focus-visible { outline-offset:-2px; }
.rail .foot { margin-top:auto; display:flex; flex-direction:column; align-items:center; gap:8px; }
.rail .foot .ic { display:none; }
.rail .foot .me { border-radius:12px; }
.rail .foot .me img { width:40px; height:40px; border-radius:12px; object-fit:cover; box-shadow:0 0 0 1px var(--line-2); transition:box-shadow .18s var(--out); }
.rail .foot .me:hover img { box-shadow:0 0 0 2px var(--line-3); }

/* ── the page ── */
.shell { position:relative; z-index:1; min-height:100%; }
main { margin-left:calc(var(--rail) + 24px); padding:56px 56px 64px; max-width:1180px; }
.view { animation:viewIn .42s var(--spring) both; }
@keyframes viewIn { from { opacity:0; transform:translateY(8px); } }
.eyebrow { font-size:var(--t-m); color:var(--ink-3); letter-spacing:0; text-transform:none; }
.h1 { font-family:var(--serif); font-size:clamp(34px, 3.4vw, 46px); line-height:1.1; letter-spacing:-.02em; margin-top:6px; }
.lead { max-width:52ch; margin-top:12px; color:var(--ink-2); font-size:17px; }
.head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.section { margin-top:48px; }
.section > h2 { font-family:var(--serif); font-size:22px; letter-spacing:-.01em; color:var(--ink); margin-bottom:16px; }
.stagger > * { animation:riseIn .45s var(--spring) both; }
.stagger > *:nth-child(2) { animation-delay:.04s; } .stagger > *:nth-child(3) { animation-delay:.08s; } .stagger > *:nth-child(4) { animation-delay:.12s; } .stagger > *:nth-child(5) { animation-delay:.16s; }
@keyframes riseIn { from { opacity:0; transform:translateY(8px); } }

.card { position:relative; padding:32px; border-radius:20px; background:var(--surface); border:1px solid var(--line); min-width:0; }
.card h3 { font-family:var(--serif); font-size:22px; letter-spacing:-.01em; color:var(--ink); }
.sub { color:var(--ink-3); font-size:var(--t-m); }
/* the Account's sections carry the class too: they keep the page's own ink and size */
div.sub[data-sub] { color:var(--ink); font-size:var(--t-b); }

/* ── buttons: the main action an ink pill, the others outlined pills; every one keeps its words ── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 20px; border-radius:999px; font-size:var(--t-m); font-weight:400; line-height:1; white-space:nowrap; background:var(--surface); color:var(--ink); box-shadow:inset 0 0 0 1px var(--line-2); transition:background-color .18s var(--out), box-shadow .18s var(--out), color .18s var(--out), scale .12s var(--out); }
.btn svg { width:16px; height:16px; flex:none; }
.btn:hover { box-shadow:inset 0 0 0 1px var(--line-3); }
.btn.one { background:var(--ink); color:var(--on-ink); box-shadow:none; }
.btn.one:hover { background:var(--ink-hover); }
.btn.soft, .btn.ghost, .btn.outline { background:var(--surface); color:var(--ink); }
.btn.sm { height:36px; padding:0 14px; font-size:var(--t-s); }
.btn:active { scale:.98; }
.btn[disabled] { background:var(--surface-2); color:var(--ink-3); box-shadow:none; cursor:default; scale:1; }
.btn[data-busy="1"] { pointer-events:none; opacity:.85; }

/* product marks: the apps' own pictures on white, Ask's an ink square */
.pm { display:grid; place-items:center; overflow:hidden; border-radius:12px; background:#fff; box-shadow:0 0 0 1px var(--line-2); flex:none; }
.pm img { width:100%; height:100%; object-fit:cover; }
.pm.one-mk { background:var(--ink); color:var(--surface); box-shadow:none; }
.pm.one-mk svg { width:46%; height:46%; }
.marks { display:flex; gap:8px; }
.marks .pm { width:28px; height:28px; border-radius:8px; }

/* ── home ── */
.hello .w { display:inline; }
.hello .w.soft { color:var(--ink-3); }
.apps { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; margin-top:36px; }
.app { position:relative; display:grid; grid-template-columns:auto minmax(0, 1fr); grid-template-rows:auto 1fr auto auto auto; grid-template-areas:"pm acc" "gap gap" "name name" "sub sub" "last open"; align-items:start; width:100%; min-height:244px; padding:24px; border-radius:20px; background:var(--surface); border:1px solid var(--line); text-align:left; cursor:pointer; transition:border-color .2s var(--out); }
.app:hover { border-color:var(--line-3); }
.app .pm { grid-area:pm; width:56px; height:56px; border-radius:14px; }
.app .acc { grid-area:acc; justify-self:end; }
.app b { grid-area:name; display:block; margin-top:24px; font-family:var(--serif); font-size:24px; line-height:1.15; letter-spacing:-.01em; color:var(--ink); }
.app small { grid-area:sub; display:block; margin-top:4px; font-size:var(--t-m); line-height:1.4; color:var(--ink-2); }
.app .last { grid-area:last; align-self:center; margin-top:20px; font-size:var(--t-s); color:var(--ink-3); }
.app .open { grid-area:open; justify-self:end; align-self:center; display:inline-flex; align-items:center; gap:6px; height:36px; margin-top:20px; padding:0 14px; border-radius:999px; font-size:var(--t-s); color:var(--ink); background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-2); transition:box-shadow .18s var(--out), background-color .18s var(--out); }
.app .open svg { width:15px; height:15px; }
.app:hover .open { box-shadow:inset 0 0 0 1px var(--line-3); background:var(--surface-2); }
.app:focus-visible { outline-offset:3px; }
/* what the plan says of each app: a quiet pill, the state as a dot */
.app .acc { display:inline-flex; align-items:center; gap:7px; height:28px; padding:0 11px; border-radius:999px; font-size:var(--t-s); white-space:nowrap; color:var(--ink-2); background:var(--surface-2); }
.app .acc::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--ok); flex:none; }
.app .acc[data-acc="read"]::before { background:var(--ink-4); }
.app .acc[data-acc="out"]::before { background:var(--warn); }
.app[data-acc="out"] .pm { filter:saturate(.35); opacity:.7; }

.planline { display:flex; align-items:center; gap:12px; margin-top:28px; color:var(--ink-2); font-size:var(--t-m); flex-wrap:wrap; }
.planline .pill { display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 12px; border-radius:999px; color:var(--ink); background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-2); font-size:var(--t-s); }
.planline a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-3); text-underline-offset:4px; transition:text-decoration-color .18s var(--out); }
.planline a:hover { text-decoration-color:var(--ink); }
.ring { width:24px; height:24px; transform:rotate(-90deg); flex:none; }
.ring circle { fill:none; stroke-width:3.5; stroke-linecap:round; }
.ring .bg { stroke:var(--line-2); } .ring .fg { stroke:var(--ink); }

/* ── segmented control: a quiet track, the chosen one a white pill ── */
.seg { position:relative; display:inline-flex; padding:4px; border-radius:999px; background:var(--track); }
.seg button { position:relative; z-index:1; height:38px; padding:0 16px; border-radius:999px; font-size:var(--t-m); color:var(--ink-3); transition:color .18s var(--out); }
.seg button:hover { color:var(--ink); }
.seg button[aria-pressed="true"] { color:var(--ink); }
.seg .glide { position:absolute; top:4px; left:4px; height:38px; width:80px; border-radius:999px; background:var(--seg-on); box-shadow:0 0 0 1px var(--line-2), var(--shadow-1); transition:transform .32s var(--out), width .32s var(--out); }
.seg .save { align-self:center; margin:0 12px 0 6px; font-size:var(--t-s); color:var(--ink-2); }
.seg.sm button { height:32px; padding:0 12px; font-size:var(--t-s); }
.seg.sm .glide { height:32px; }

/* the page tone: each word with a small dot of its tone, ringed so White shows on a white page; two by two on a phone (the system's seg-tone) */
.seg.tone button { display:inline-flex; align-items:center; gap:7px; }
.seg .dot { flex:none; width:10px; height:10px; border-radius:50%; box-shadow:inset 0 0 0 1px var(--line-3); }
.dot.is-white { background:#FFFFFF; } .dot.is-paper { background:#EDE3CF; } .dot.is-grey { background:#3A3A3D; } .dot.is-black { background:#000000; }

/* ── account ── */
/* Preferences: the look's card says once, quietly, where it is kept */
.look-said { margin-top:6px; }
.look-rows { margin-top:12px; }
/* a part of the account edited in another app (the practice, in BiteSized): one line and a quiet pill that opens it */
.elsewhere { display:flex; align-items:center; justify-content:space-between; gap:12px 16px; flex-wrap:wrap; margin-top:22px; }
.elsewhere .btn svg { width:15px; height:15px; }
.profile-top { display:flex; align-items:center; gap:24px; }
.profile-top > div { min-width:0; }
.profile-top h3 { font-size:30px; line-height:1.15; letter-spacing:-.015em; overflow-wrap:anywhere; }
.profile-top .sub { margin-top:2px; }
.profile-top .uses { display:flex; align-items:center; gap:10px; margin-top:12px; color:var(--ink-3); font-size:var(--t-s); }
.fields { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px 24px; margin-top:32px; }
/* the practice's name opens its card: no gap above it */
.sub[data-sub="practice"] .card > .fields { margin-top:0; }
.field { display:grid; gap:6px; align-content:start; }
.field label, .field > span:not(.strength) { font-size:var(--t-s); line-height:1.4; color:var(--ink-2); letter-spacing:0; }
.field input, .field select, .invite input, .sel-f { width:100%; min-width:0; height:48px; padding:0 14px; border:0; border-radius:12px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-2); color:var(--ink); font-size:var(--t-b); outline:none; transition:box-shadow .2s var(--out); }
.field input::placeholder, .invite input::placeholder { color:var(--ink-4); opacity:1; }
.field input:hover, .invite input:hover { box-shadow:inset 0 0 0 1px var(--line-3); }
.field input:focus, .field select:focus, .invite input:focus, .sel-f:focus { box-shadow:inset 0 0 0 1px var(--lilac), 0 0 0 4px color-mix(in srgb, var(--lilac) 16%, transparent); }
.field > .btn { justify-self:start; height:48px; }
.field input[readonly] { background:var(--surface-2); box-shadow:none; color:var(--ink-2); }
.field[data-bad] input { box-shadow:inset 0 0 0 1px var(--bad), 0 0 0 4px color-mix(in srgb, var(--bad) 12%, transparent); }
.field .err { font-size:var(--t-s); line-height:1.4; color:var(--bad-ink); }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 16px; border-radius:999px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-2); font-size:var(--t-m); color:var(--ink); transition:box-shadow .18s var(--out), background-color .18s var(--out), color .18s var(--out); }
.chip:hover { box-shadow:inset 0 0 0 1px var(--line-3); }
.chip svg { width:14px; height:14px; flex:none; }
.chip[aria-pressed="false"] svg { display:none; }
.chip[aria-pressed="true"] { background:var(--ink); color:var(--on-ink); box-shadow:none; }
.rows { display:grid; }
.row { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:16px; align-items:center; padding:16px 0; border-top:1px solid var(--line); }
.row:first-child { border-top:0; }
.row .ri { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; color:var(--ink-2); background:var(--surface-2); }
.row .ri svg { width:20px; height:20px; }
.row .ri.img { background:none; overflow:hidden; box-shadow:0 0 0 1px var(--line); }
.row .ri.img img { width:100%; height:100%; object-fit:cover; }
.row .ri.ini { color:var(--ink); background:var(--surface-2); font-size:var(--t-m); }
.row b { display:block; font-size:var(--t-b); line-height:1.35; color:var(--ink); }
.row small { display:block; margin-top:2px; font-size:var(--t-s); line-height:1.45; color:var(--ink-3); }
.row .num { font-variant-numeric:tabular-nums; font-size:var(--t-m); color:var(--ink-2); }
/* a state in words, its colour on a dot */
.ok, .tag { display:inline-flex; align-items:center; gap:8px; font-size:var(--t-s); color:var(--ink-2); white-space:nowrap; }
.ok::before, .tag::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--ok); flex:none; }
.tag { height:28px; padding:0 11px; border-radius:999px; background:var(--surface-2); letter-spacing:0; text-transform:none; }
.tag.build::before { background:var(--warn); }
.tag.off::before { background:var(--ink-4); }
/* the switch: a quiet track, ink when on, the knob slides */
.switch { position:relative; width:44px; height:26px; border-radius:999px; background:var(--switch-off); transition:background-color .22s var(--out); flex:none; }
.switch::after { content:none; }
.switch[aria-checked="true"] { background:var(--ink); }
.switch .goo { position:absolute; inset:0; filter:none; }
.switch .k { position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.22); transition:transform .26s var(--out), background-color .22s var(--out); }
.switch .b { display:none; }
.switch[aria-checked="true"] .k { transform:translateX(18px); background:var(--knob-on); }

.cc { width:52px; height:34px; border-radius:8px; background:var(--ink); display:grid; place-items:center; color:var(--on-ink); font-size:var(--t-s); letter-spacing:.02em; }
.quiet { margin-top:24px; display:flex; gap:8px 22px; flex-wrap:wrap; font-size:var(--t-m); color:var(--ink-3); }
.quiet a, .row-acts a { color:var(--ink-2); text-decoration:underline; text-decoration-color:var(--line-3); text-underline-offset:4px; transition:color .18s var(--out), text-decoration-color .18s var(--out); }
.quiet a:hover, .row-acts a:hover { color:var(--ink); text-decoration-color:var(--ink); }
.quiet a.danger:hover, .row-acts a.danger:hover { color:var(--bad-ink); text-decoration-color:var(--bad-ink); }
.invite { display:flex; gap:10px; margin-top:20px; }
.invite input { flex:1; }
.row-acts { display:flex; gap:14px; align-items:center; font-size:var(--t-s); }
/* 16 Nov: the real plan, payments and team are made of the pieces above; these are the few they add. A sentence that says why
   something did not go through; the role beside the address to invite; a link inside a quiet line */
.say { margin-top:12px; font-size:var(--t-s); line-height:1.45; color:var(--bad-ink); }
.invite .dd { flex:none; width:140px; }
.invite .btn { height:48px; flex:none; }
.plans-note a, .say a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-3); text-underline-offset:4px; transition:text-decoration-color .18s var(--out); }
.plans-note a:hover, .say a:hover { text-decoration-color:var(--ink); }
.singles + .quiet { margin-top:20px; }
.sheet .field input[readonly] { font-size:var(--t-s); }
button.row { width:calc(100% + 24px); margin:0 -12px; padding:16px 12px; text-align:left; cursor:pointer; border-radius:12px; transition:background-color .18s var(--out); }
button.row:hover { background:var(--hover); }
button.row:focus-visible { outline-offset:-2px; }
.card > .head h3 { line-height:1.2; }

/* the photo on the profile: a real picker */
.photo { position:relative; width:96px; height:96px; border-radius:20px; overflow:hidden; flex:none; }
.photo img { width:100%; height:100%; object-fit:cover; }
.photo::after { content:''; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px var(--line); pointer-events:none; }
.photo span { position:absolute; inset:auto 0 0; padding:5px 0 7px; font-size:var(--t-s); color:#fff; text-align:center; background:rgba(20,20,20,.62); opacity:0; transition:opacity .18s var(--out); }
.photo:hover span, .photo:focus-visible span { opacity:1; }

/* ── the practice tab: the week as rows with our own time lists ── */
.hrs { display:grid; gap:2px; margin-top:14px; }
.hrs-r { display:grid; grid-template-columns:44px auto 1fr; align-items:center; gap:14px; min-height:44px; }
.hrs-r b { font-size:var(--t-m); color:var(--ink); }
.hrs-t { display:flex; align-items:center; gap:8px; font-size:var(--t-s); color:var(--ink-3); }
.hrs-t .dd.sm { width:120px; }
.hrs-r small { display:none; font-size:var(--t-s); color:var(--ink-3); }
.hrs-r.off .hrs-t { display:none; } .hrs-r.off small { display:block; } .hrs-r.off b { color:var(--ink-3); }
.hrs-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.hrs-line { font-size:var(--t-s); color:var(--ink-2); text-align:right; }

/* ── our own controls: the list under its button, the month picker ── */
.dd { position:relative; display:inline-flex; align-items:center; justify-content:space-between; gap:10px; width:100%; height:48px; padding:0 12px 0 14px; border-radius:12px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-2); color:var(--ink); font-size:var(--t-b); text-align:left; transition:box-shadow .2s var(--out); }
.dd:hover { box-shadow:inset 0 0 0 1px var(--line-3); }
.dd[aria-expanded="true"], .dd:focus-visible { outline:none; box-shadow:inset 0 0 0 1px var(--lilac), 0 0 0 4px color-mix(in srgb, var(--lilac) 16%, transparent); }
.dd .dd-v { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dd .dd-c { flex:none; width:16px; height:16px; color:var(--ink-3); }
.dd.sm { width:auto; height:36px; padding:0 10px 0 12px; border-radius:10px; font-size:var(--t-s); }
.pop { position:fixed; z-index:60; padding:6px; border-radius:14px; background:var(--surface); box-shadow:0 0 0 1px var(--line-2), var(--shadow-2); animation:popIn .2s var(--out) both; }
.pop.up { animation-name:popInUp; }
.pop.is-out { animation:popOut .14s ease both; pointer-events:none; }
@keyframes popIn { from { opacity:0; transform:translateY(-4px); } }
@keyframes popInUp { from { opacity:0; transform:translateY(4px); } }
@keyframes popOut { to { opacity:0; } }
.dd-m { min-width:220px; max-width:min(420px, calc(100vw - 24px)); }
.dd-q { display:flex; align-items:center; gap:8px; height:40px; margin:0 0 4px; padding:0 12px; border-radius:10px; background:var(--surface-2); }
.dd-q svg { width:15px; height:15px; color:var(--ink-3); flex:none; }
.dd-q input { flex:1; min-width:0; border:0; background:none; outline:none; font-size:var(--t-m); color:var(--ink); }
.dd-q input::placeholder { color:var(--ink-4); }
.dd-l { max-height:min(320px, 50vh); overflow:auto; display:grid; gap:2px; overscroll-behavior:contain; }
.dd-o { display:flex; align-items:center; gap:10px; width:100%; min-height:40px; padding:8px 12px; border-radius:10px; font-size:var(--t-m); color:var(--ink); text-align:left; transition:background-color .15s var(--out); }
.dd-o span { flex:1; min-width:0; } .dd-o em { font-style:normal; font-size:var(--t-s); color:var(--ink-3); }
.dd-o svg { width:15px; height:15px; color:var(--ink); flex:none; }
.dd-o:hover { background:var(--hover); }
.dd-o:focus-visible { outline:2px solid var(--lilac); outline-offset:-2px; background:var(--hover); }
.dd-o.off { color:var(--ink-3); cursor:default; } .dd-o.off:hover { background:none; }
.dd-none { padding:12px; font-size:var(--t-m); color:var(--ink-3); }
.mp { width:264px; padding:10px; }
.mp-y { display:flex; align-items:center; justify-content:space-between; padding:2px 2px 8px; }
.mp-y b { font-size:var(--t-b); font-variant-numeric:tabular-nums; }
.mp-b { width:36px; height:36px; border-radius:50%; display:grid; place-items:center; color:var(--ink-2); transition:background-color .15s var(--out), color .15s var(--out); }
.mp-b:hover { background:var(--hover); color:var(--ink); }
.mp-b svg { width:15px; height:15px; } .mp-b[data-y="-1"] svg { transform:rotate(180deg); }
.mp-g { display:grid; grid-template-columns:repeat(4, 1fr); gap:4px; }
.mp-m { height:40px; border-radius:10px; font-size:var(--t-s); color:var(--ink-2); transition:background-color .15s var(--out), color .15s var(--out); }
.mp-m:hover { background:var(--hover); color:var(--ink); }
.mp-m[aria-pressed="true"] { color:var(--on-ink); background:var(--ink); }

/* ── plans ── */
.plans { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; margin-top:32px; }
.plans-note { margin-top:18px; }
:root[data-acct="real"] .plans-note + .plans { margin-top:24px; }
.plan { display:flex; flex-direction:column; padding:28px; }
.plan.current { border-color:var(--ink); }
.plan .name { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.plan .name b { font-family:var(--serif); font-size:24px; line-height:1.15; letter-spacing:-.01em; }
.plan > .sub { margin-top:4px; }
.plan .price { display:flex; align-items:baseline; gap:6px; margin-top:20px; }
.plan .price .n { font-size:40px; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1; }
.plan .price small { color:var(--ink-3); font-size:var(--t-m); }
.plan ul { list-style:none; flex:1; margin:22px 0 0; padding:0; display:grid; align-content:start; gap:10px; }
.plan li { display:flex; gap:10px; align-items:flex-start; font-size:var(--t-m); line-height:1.45; color:var(--ink-2); }
.plan li svg { width:16px; height:16px; flex:none; margin-top:3px; color:var(--ink-3); }
.plan .btn { margin-top:28px; width:100%; }
.singles { display:flex; gap:12px; flex-wrap:wrap; }
.single { display:inline-flex; align-items:center; gap:12px; height:60px; padding:0 20px 0 12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); font-size:var(--t-m); transition:border-color .18s var(--out); }
.single:hover { border-color:var(--line-3); }
.single[disabled] { cursor:default; }
.single[disabled]:hover { border-color:var(--line); }
.single .pm { width:36px; height:36px; border-radius:10px; }
.single b { color:var(--ink); }
.single span { color:var(--ink-3); }

/* ── sheets, toasts ── */
.sheet { position:fixed; inset:0; z-index:40; display:grid; place-items:center; padding:20px; background:var(--veil); animation:fade .2s var(--out) both; }
@keyframes fade { from { opacity:0; } }
.sheet .panel { width:min(520px, 100%); max-height:90vh; overflow:auto; padding:28px; border-radius:20px; background:var(--surface); box-shadow:0 0 0 1px var(--line-2), var(--shadow-3); animation:panelIn .32s var(--out) both; }
@keyframes panelIn { from { opacity:0; transform:translateY(8px); } }
.sheet h2 { font-family:var(--serif); font-size:26px; line-height:1.2; letter-spacing:-.01em; }
.sheet .sub { margin-top:4px; font-size:var(--t-m); }
.sheet .acts { display:flex; gap:10px; justify-content:flex-end; margin-top:24px; flex-wrap:wrap; }
.sheet .fields { margin-top:22px; gap:16px 18px; }
.sheet.gone { animation:fade .16s ease-in reverse both; }
.sheet.gone .panel { animation:panelOut .16s ease-in both; }
@keyframes panelOut { to { opacity:0; transform:translateY(6px); } }
.diff { display:grid; gap:6px; margin-top:20px; }
.diff .d { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:12px; align-items:center; padding:12px 14px; border-radius:12px; background:var(--surface-2); font-size:var(--t-m); line-height:1.45; color:var(--ink-2); }
.diff .d b { color:var(--ink); }
.diff .d svg { width:16px; height:16px; color:var(--ink-3); }
.diff .d.down svg { color:var(--warn); }
.toaster { position:fixed; right:24px; bottom:calc(24px + env(safe-area-inset-bottom, 0px)); z-index:50; display:grid; gap:8px; justify-items:end; view-transition-name:toasts; }
.toast { display:flex; align-items:center; gap:10px; padding:12px 16px; border-radius:14px; background:var(--toast); color:var(--on-toast); box-shadow:0 0 0 1px var(--line-2), var(--shadow-2); font-size:var(--t-m); line-height:1.4; max-width:min(420px, calc(100vw - 48px)); animation:toastIn .3s var(--out) both; }
.toast svg { width:18px; height:18px; color:var(--toast-ic); flex:none; }
.toast button { margin-left:6px; height:30px; padding:0 12px; border-radius:999px; font-size:var(--t-s); color:var(--on-toast); background:rgba(255,255,255,.12); flex:none; }
.toast button:hover { background:rgba(255,255,255,.2); }
@keyframes toastIn { from { opacity:0; transform:translateY(6px); } }
.toast.gone { animation:toastOut .22s ease-in both; }
@keyframes toastOut { to { opacity:0; transform:translateY(6px); } }

/* ── an invoice, as a document ── */
.inv { padding:24px; border-radius:16px; background:var(--surface); border:1px solid var(--line-2); margin-top:20px; font-size:var(--t-m); }
.inv .top { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.inv .top b { font-family:var(--serif); font-size:22px; letter-spacing:-.01em; }
.inv .top small { display:block; color:var(--ink-3); margin-top:4px; font-size:var(--t-s); }
.inv .paid { display:inline-flex; align-items:center; gap:8px; height:28px; padding:0 11px; border-radius:999px; color:var(--ink-2); background:var(--surface-2); font-size:var(--t-s); }
.inv .paid::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--ok); }
.inv .to { margin-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:16px; color:var(--ink-2); line-height:1.5; }
.inv .to b { display:block; font-size:var(--t-s); color:var(--ink-3); margin-bottom:4px; }
.inv table { width:100%; border-collapse:collapse; margin-top:20px; }
.inv td { padding:10px 0; border-top:1px solid var(--line); }
.inv td:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.inv tr.total td { font-size:var(--t-b); border-top:1px solid var(--line-3); }

/* ── the foot of every page ── */
.pagefoot { display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-top:64px; padding-top:20px; border-top:1px solid var(--line); font-size:var(--t-s); color:var(--ink-3); }
.pagefoot a { color:var(--ink-2); transition:color .18s var(--out); }
.pagefoot a:hover { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.pagefoot .status { margin-left:auto; display:inline-flex; align-items:center; gap:8px; }
.pagefoot .status i { width:7px; height:7px; border-radius:50%; background:var(--ok); }

/* ── the account menu, from the avatar ── */
.menu { position:fixed; z-index:46; left:calc(var(--rail) + 24px); bottom:12px; width:288px; padding:6px; border-radius:16px; background:var(--surface); box-shadow:0 0 0 1px var(--line-2), var(--shadow-2); animation:panelIn .24s var(--out) both; }
.menu .mh { display:flex; align-items:center; gap:12px; padding:10px 10px 12px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.menu .mh > div { min-width:0; }
.menu .mh img { width:40px; height:40px; border-radius:12px; object-fit:cover; }
.menu .mh b { display:block; font-size:var(--t-m); overflow-wrap:anywhere; }
.menu .mh small { display:block; font-size:var(--t-s); color:var(--ink-3); overflow-wrap:anywhere; }
.menu .mi { display:flex; align-items:center; gap:10px; width:100%; height:42px; padding:0 10px; border-radius:10px; font-size:var(--t-m); color:var(--ink); text-align:left; transition:background-color .15s var(--out); }
.menu .mi svg { width:17px; height:17px; color:var(--ink-3); flex:none; }
.menu .mi:hover { background:var(--hover); }
.menu .mi:focus-visible { outline-offset:-2px; }
.menu .mi small { margin-left:auto; color:var(--ink-3); font-size:var(--t-s); }
.menu .mi.out, .menu .mi.out svg { color:var(--bad-ink); }

/* ── search, on ⌘K ── */
.pal { position:fixed; inset:0; z-index:45; display:grid; place-items:start center; padding:12vh 20px 20px; background:var(--veil); animation:fade .2s both; }
.pal .box { width:min(620px, 100%); border-radius:16px; background:var(--surface); box-shadow:0 0 0 1px var(--line-2), var(--shadow-3); overflow:hidden; animation:panelIn .26s var(--out) both; }
.pal .in { display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line); }
.pal .in svg { width:20px; height:20px; color:var(--ink-3); flex:none; }
.pal input { flex:1; min-width:0; border:0; background:none; font-size:17px; outline:none; color:var(--ink); }
.pal input::placeholder { color:var(--ink-4); }
.pal .list { max-height:52vh; overflow:auto; padding:6px; }
.pal .g { padding:10px 12px 4px; font-size:var(--t-s); color:var(--ink-3); }
.pal .it { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:12px; align-items:center; padding:10px 12px; border-radius:10px; cursor:pointer; }
.pal .it[aria-selected="true"], .pal .it:hover { background:var(--hover); }
.pal .it .pm { width:32px; height:32px; border-radius:9px; }
.pal .it .ri { width:32px; height:32px; border-radius:9px; display:grid; place-items:center; color:var(--ink-2); background:var(--surface-2); }
.pal .it .ri svg { width:16px; height:16px; }
.pal .it b { display:block; font-size:var(--t-m); }
.pal .it small { display:block; font-size:var(--t-s); color:var(--ink-3); }
.pal .k { font-size:var(--t-s); color:var(--ink-3); }
.pal .none { padding:28px; color:var(--ink-3); text-align:center; }

/* ── the sample account's bar, the app you came from ── */
.demo-bar { position:fixed; left:50%; top:12px; transform:translateX(-50%); z-index:30; display:flex; align-items:center; gap:12px; padding:6px 6px 6px 16px; border-radius:999px; font-size:var(--t-s); color:var(--ink-2); background:var(--surface); box-shadow:0 0 0 1px var(--line-2), var(--shadow-1); animation:fade .3s var(--out) both; }
body:has(.demo-bar:not([hidden])) main { padding-top:80px; }
.demo-bar button { height:32px; padding:0 14px; border-radius:999px; font-size:var(--t-s); color:var(--ink); background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-2); transition:box-shadow .18s var(--out); flex:none; }
.demo-bar button:hover { box-shadow:inset 0 0 0 1px var(--line-3); }
.from-bar { align-self:center; width:100%; max-width:400px; display:flex; align-items:center; gap:10px; margin:0; padding:12px 14px; border-radius:12px; font-size:var(--t-m); color:var(--ink-2); background:var(--surface-2); }
.from-bar svg { width:16px; height:16px; color:var(--ink-3); flex:none; } .from-bar b { color:var(--ink); font-weight:500; }
/* the route (20 Nov): a quiet pill at the top of the column, two marks joined by a line, then the words */
.from-bar.is-route { width:auto; max-width:400px; align-self:center; gap:12px; padding:6px 16px 6px 6px; border-radius:999px; background:var(--surface); box-shadow:0 0 0 1px var(--line-2), 0 6px 20px -12px rgba(20,16,40,.25); font-size:14px; line-height:1.2; animation:routeIn .5s var(--spring) both; }
.rt-marks { display:flex; align-items:center; flex:none; }
.rt-mk { width:28px; height:28px; border-radius:8px; display:grid; place-items:center; overflow:hidden; background:#fff; box-shadow:0 0 0 1px var(--line-2); flex:none; }
.rt-mk img { width:100%; height:100%; object-fit:cover; }
.rt-mk.is-ink { background:var(--ink); color:var(--surface); box-shadow:none; }
.from-bar .rt-mk.is-ink svg { width:15px; height:15px; color:currentColor; }
.rt-line { position:relative; width:22px; height:2px; margin:0 4px; border-radius:2px; background:var(--line-2); overflow:hidden; }
.rt-line::after { content:""; position:absolute; inset:0; background:var(--ink-3); transform-origin:left; animation:routeLine .7s .25s var(--spring) both; }
.rt-t { color:var(--ink-2); white-space:nowrap; }
@keyframes routeIn { from { opacity:0; transform:translateY(-6px); } }
@keyframes routeLine { from { transform:scaleX(0); } }
@media (prefers-reduced-motion:reduce) { .from-bar.is-route, .rt-line::after { animation:none; } }
@media (max-width:900px) { .from-bar.is-route { font-size:15px; margin-bottom:28px; } }

/* ── sign in: the family's page (17 November 2026), after Dose's and as Ask's was redrawn the same day. On the left a dark rounded
   panel: the moving field of dots, One's mark and name at its top and, at its foot, the headline, the lead, three lines with a check
   and a small footer. On the right a narrow, plain form column on the white ground, with no panel around it. The panel is dark in
   both themes. Up to 900 px wide the panel goes and the mark stands over the form. Words, ids and behaviour are as they were. ── */
.gate { position:relative; z-index:1; display:flex; align-items:stretch; min-height:100dvh; background:var(--surface); }
body:has(.gate:not([hidden])) { background:var(--surface); }
.story { flex:none; position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:space-between; gap:32px; width:calc(50% - 16px); min-height:calc(100dvh - 32px); margin:16px 0 16px 16px; padding:32px; border-radius:20px; overflow:hidden; background:#141414; color:#fff; }   /* no arrival of its own: the panel is dark from the first frame, and each time the sign-in comes back */
/* in a window tall enough for its words the panel stays in sight while a long form scrolls */
@media (min-height:600px) { .story { position:sticky; top:16px; align-self:flex-start; height:calc(100dvh - 32px); min-height:0; } }
/* on the dark ground of the dark theme a hairline keeps the panel's edge */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .story { box-shadow:0 0 0 1px var(--line); } }
:root[data-theme="dark"] .story { box-shadow:0 0 0 1px var(--line); }
/* the field (app.js, waves): its colours are its own and its dark ground is on the canvas itself, so no theme and nothing around it
   can turn it pale; it comes in once its first frame is drawn, and without it the panel keeps its plain dark ground */
.story canvas { position:absolute; inset:0; z-index:0; display:block; width:100%; height:100%; background:#141414; opacity:0; transition:opacity 1.2s var(--out); }
.story canvas.on { opacity:1; }
/* two veils over the field, so what is written on it is read at every moment of the wave: a short one under the name, a long one
   under the words. Each is tied to its words and not to the panel's height, so a short window keeps the same dark ground under them */
.story-top, .story-copy { position:relative; z-index:1; }
.story-top::before, .story-copy::before { content:""; position:absolute; z-index:-1; left:-32px; right:-32px; pointer-events:none; }
.story-top::before { top:-32px; height:168px; background:linear-gradient(180deg, rgba(20,20,20,.86) 0, rgba(20,20,20,.78) 72px, rgba(20,20,20,0) 100%); }
.story-copy::before { top:-176px; bottom:-32px; background:linear-gradient(0deg, rgba(20,20,20,.97) 0, rgba(20,20,20,.93) calc(100% - 176px), rgba(20,20,20,.6) calc(100% - 88px), rgba(20,20,20,0) 100%); }
.story-top, .mbrand { display:flex; align-items:center; gap:12px; font-size:18px; letter-spacing:-.01em; }
.story-top { color:#fff; }
.mbrand { display:none; color:var(--ink); }
.story-top .brand, .mbrand .brand { width:36px; height:36px; border-radius:11px; display:grid; place-items:center; flex:none; }
.story-top .brand { background:#F2F2F0; color:#141414; }
.mbrand .brand { background:var(--ink); color:var(--surface); }
.story-top .brand svg, .mbrand .brand svg { width:20px; height:20px; }
.story-top em, .mbrand em { font-style:normal; }
.story-top em { color:rgba(255,255,255,.72); }
.mbrand em { color:var(--ink-3); }
.story-copy > * { animation:riseIn .55s var(--spring) both; }
.story-copy > :nth-child(2) { animation-delay:.05s; } .story-copy > :nth-child(3) { animation-delay:.1s; } .story-copy > :nth-child(4) { animation-delay:.15s; }
.story-copy h2 { max-width:520px; font-family:var(--serif); font-size:32px; line-height:1.12; letter-spacing:-.02em; color:#fff; }
.story-copy p { margin-top:16px; max-width:420px; font-size:16px; line-height:1.6; color:rgba(255,255,255,.84); text-wrap:pretty; }
.story-copy ul { list-style:none; display:grid; gap:12px; max-width:440px; margin:28px 0 0; padding:0; }
.story-copy li { display:flex; align-items:center; gap:12px; font-size:15px; line-height:1.4; color:rgba(255,255,255,.92); }
.story-copy li i { width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,.14); color:#fff; display:grid; place-items:center; flex:none; }
.story-copy li i svg { width:13px; height:13px; }
.story-copy .foot { max-width:none; margin-top:32px; font-size:14px; line-height:1.5; color:rgba(255,255,255,.66); }
/* the form's side: one narrow column, centred; its auto margins give way when the form is taller than the window, so its top is never cut */
.formside { flex:1 1 0; min-width:0; display:flex; flex-direction:column; padding:32px 56px; }
.formbox { margin:auto; width:100%; max-width:400px; display:grid; gap:26px; }
.formbox form { display:grid; gap:16px; }
/* "or" between Sign in and the other ways in (17 November 2026: the owner liked the console's; every sign-in of the family has it) */
.formbox .or { display:flex; align-items:center; gap:14px; font-size:13px; line-height:1; color:var(--ink-3, #6b6b6b); }
.formbox .or::before, .formbox .or::after { content:""; flex:1; height:1px; background:var(--line, rgba(0,0,0,.1)); }
@media (max-width:900px) { .formbox .or { font-size:15px; } }   /* nothing read on a phone is under 15 px here */
.formbox form > * { animation:riseIn .45s var(--spring) both; }
.formbox form > *:nth-child(2) { animation-delay:.03s; } .formbox form > *:nth-child(3) { animation-delay:.06s; } .formbox form > *:nth-child(4) { animation-delay:.09s; } .formbox form > *:nth-child(5) { animation-delay:.12s; } .formbox form > *:nth-child(6) { animation-delay:.15s; } .formbox form > *:nth-child(7) { animation-delay:.18s; } .formbox form > *:nth-child(8) { animation-delay:.21s; }
.formbox h1 { font-family:var(--serif); font-size:32px; line-height:1.16; letter-spacing:-.02em; }
.formbox .auth-head { margin-bottom:6px; }
.formbox .sub { margin-top:8px; font-size:16px; line-height:1.5; color:var(--ink-2); text-wrap:pretty; }
.formbox .field input { height:52px; padding:0 16px; }
/* Show and Hide: the eye beside its word, inside the field */
.pw { position:relative; }
.formbox .pw input { padding-right:104px; }
.pw .eye { position:absolute; right:8px; top:50%; transform:translateY(-50%); display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 12px 0 10px; border-radius:999px; font-size:var(--t-s); line-height:1; color:var(--ink-2); transition:background-color .15s var(--out), color .15s var(--out); }
.pw .eye:hover { color:var(--ink); background:var(--hover); }
.pw .eye svg { width:17px; height:17px; flex:none; }
/* quiet words close under the password, with a target a finger can press */
.forgot { justify-self:end; display:inline-flex; align-items:center; min-height:40px; margin:-12px 0 -10px; padding:0 2px; border-radius:6px; font-size:var(--t-s); color:var(--ink-2); text-decoration:underline; text-decoration-color:transparent; text-underline-offset:4px; transition:color .18s var(--out), text-decoration-color .18s var(--out); }
.forgot:hover { color:var(--ink); text-decoration-color:var(--line-3); }
/* the buttons: the main one in ink with its arrow, the others a hairline with their icon, close under it */
.btn.cta { height:52px; margin-top:4px; font-size:var(--t-b); }
.btn.outline { height:48px; }
.btn.outline svg { width:18px; height:18px; }
.formbox .btn.outline { margin-top:-6px; }
/* the foot: a hairline, the way to the other form, the sample account's door, the small print; one column from the left edge */
.switch-line { margin-top:8px; padding-top:18px; box-shadow:inset 0 1px 0 var(--line); font-size:var(--t-m); line-height:1.45; color:var(--ink-2); }
.switch-line a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-3); text-underline-offset:4px; transition:text-decoration-color .18s var(--out); }
.switch-line a:hover { text-decoration-color:var(--ink); }
.fine { font-size:var(--t-s); line-height:1.5; color:var(--ink-3); text-wrap:pretty; }
.spin { width:16px; height:16px; border:2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color:currentColor; border-radius:50%; animation:spin .8s linear infinite; flex:none; }
@keyframes spin { to { transform:rotate(360deg); } }
/* on the way back to the app that sent her, the door says only that, so One's Home never flashes between the two apps */
.back-wait { display:none; align-items:center; gap:12px; font-size:var(--t-b); color:var(--ink-2); }
.back-wait .spin { color:var(--ink); }
#authForm.is-back > *:not(.back-wait) { display:none !important; }
#authForm.is-back > .back-wait { display:flex; }
/* the kind of account (20 Nov 2026, BiteSized's "Who are you?"): two tiles, One's row with its icon, title, one line and an arrow, each in a hairline */
.kinds { gap:12px; }
.kinds button.row { width:100%; margin:0; padding:18px 16px; border:0; border-radius:16px; box-shadow:inset 0 0 0 1px var(--line-2); transition:box-shadow .18s var(--out), background-color .18s var(--out); }
.kinds button.row:hover { background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-3); }
.kinds button.row:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.kinds .row b { font-size:17px; }
.kinds .row small { font-size:var(--t-m); color:var(--ink-3); }
.kinds .row .go { width:18px; height:18px; color:var(--ink-3); }
.formbox .sub a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-3); text-underline-offset:4px; }
/* the agreement: the family's check (the design system's .ds-check, drawn in One's tokens); the row is the control, the links open the texts */
.check-row { display:flex; align-items:flex-start; gap:10px; font-size:var(--t-m); line-height:1.4; color:var(--ink-2); cursor:pointer; border-radius:8px; -webkit-tap-highlight-color:transparent; }
.check-row:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.check-row a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-3); text-underline-offset:3px; }
.check-row .check { position:relative; flex:none; display:grid; place-items:center; width:20px; height:20px; margin-top:0; border-radius:6px; background:var(--surface); box-shadow:inset 0 0 0 1.5px var(--line-3); color:var(--on-ink); transition:background-color .18s var(--out), box-shadow .18s var(--out); }
.check-row .check::after { content:''; width:12px; height:12px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.7 2.7L10 3.6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.7 2.7L10 3.6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity:0; transform:scale(.6); transition:opacity .12s var(--out), transform .24s var(--spring); }
.check-row:hover .check { box-shadow:inset 0 0 0 1.5px var(--ink-4); }
.check-row[aria-checked="true"] .check { background:var(--ink); box-shadow:none; }
.check-row[aria-checked="true"] .check::after { opacity:1; transform:none; }
.field.terms[data-bad] .check { box-shadow:inset 0 0 0 1.5px var(--bad); }
.formbox .field .dd { height:52px; }
.strength { display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:6px; align-items:center; margin-top:2px; }
.strength i { height:4px; border-radius:99px; background:var(--line-2); }
.strength em { font-style:normal; font-size:var(--t-s); color:var(--ink-3); min-width:52px; text-align:right; }
.strength[data-level="1"] i:nth-child(1) { background:var(--bad); }
.strength[data-level="2"] i:nth-child(-n+2) { background:var(--warn); }
.strength[data-level="3"] i { background:var(--ok); }
/* a wide but short window: the form closes up so Create an account still fits */
@media (min-width:901px) and (max-height:800px) { .formside { padding-top:24px; padding-bottom:24px; } .formbox form { gap:12px; } .formbox .btn.outline { margin-top:-2px; } }
/* between the one-column layout and a wide window the form's side keeps a usable width */
@media (max-width:1040px) { .formside { padding-left:40px; padding-right:40px; } .story-copy h2 { font-size:30px; } }
/* one column up to 900 px, as Dose and Ask do: the panel goes and the mark stands over the form */
@media (max-width:900px) { .story { display:none; } .mbrand { display:flex; } .formside { padding:28px 24px 48px; } .formbox { margin:0 auto auto; } }

/* ── first paint: a quiet pulse where the data is about to be ── */
[data-skel] { position:relative; pointer-events:none; }
[data-skel] > * { visibility:hidden; }
[data-skel]::after { content:''; position:absolute; inset:0; border-radius:inherit; background:var(--surface-2); animation:skel 1.1s ease-in-out infinite; }
@keyframes skel { 50% { opacity:.55; } }

.pop-in { animation:fade .3s var(--out) both; }

/* ── the Account's tabs come in row by row ── */
.sub.is-in { animation:subIn .36s var(--spring) both; }
.sub.is-in .row, .sub.is-in .field, .sub.is-in .fields > *, .sub.is-in .chips { animation:rowIn .4s var(--spring) both; animation-delay:calc(30ms + var(--i, 0) * 24ms); }
@keyframes subIn { from { opacity:0; transform:translateY(6px); } }
@keyframes rowIn { from { opacity:0; transform:translateY(6px); } }

/* ── section changes cross-fade through the view transition when the browser has it; the rail stays put ── */
::view-transition-old(root) { animation:vtOut .16s ease-out both; }
::view-transition-new(root) { animation:vtIn .3s var(--out) both; }
@keyframes vtOut { to { opacity:0; } }
@keyframes vtIn { from { opacity:0; transform:translateY(6px); } }
::view-transition-group(mark) { animation-duration:.4s; animation-timing-function:var(--out); }
::view-transition-group(plan) { animation-duration:.4s; animation-timing-function:var(--out); }
::view-transition-old(plan), ::view-transition-new(plan) { height:100%; object-fit:cover; }
html.vt .view { animation:none; }

/* a real account sees only what is true; the sample account keeps its figures. app.js sets data-acct on the root, [data-sample] is the
   sample's alone, [data-real] the real account's alone. [data-doctor] is the doctor's alone, [data-patient] the patient's alone */
:root[data-acct="real"] [data-sample], :root:not([data-acct="real"]) [data-real] { display:none !important; }
:root[data-acct-kind="patient"] [data-doctor], :root:not([data-acct-kind="patient"]) [data-patient] { display:none !important; }

/* ── the account's own controls (19 November 2026): Security (email, password, other sessions, export, delete), the interface
   language, and the way back to the app that sent the person here ── */
/* BiteSized's password piece (family/pw-strength.js and .css, copied as they are): its --cl-* names on One's tokens. The piece
   draws its icons with the family's icon font, which One does not load: the three it uses are drawn here from the same shapes */
:root { --cl-ink:var(--ink); --cl-ink-2:var(--ink-2); --cl-ink-3:var(--ink-3); --cl-ink-4:var(--ink-4); --cl-line-2:var(--line-2); --cl-line-3:var(--line-3); --cl-hover:var(--hover); --cl-surface:var(--surface); --cl-sans:var(--sans); --cl-out:var(--out); --cl-spring:var(--spring); --cl-ok-ink:var(--ok-ink); --cl-warn-ink:var(--warn-ink); --cl-bad-ink:var(--bad-ink); }
i.ph { display:inline-grid; place-items:center; font-style:normal; line-height:1; }
i.ph::before { content:''; display:block; width:1em; height:1em; background:currentColor; -webkit-mask:var(--ph) center / contain no-repeat; mask:var(--ph) center / contain no-repeat; }
.ph-check { --ph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ph-eye { --ph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.ph-eye-slash { --ph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M9.9 5.7A9.6 9.6 0 0 1 12 5.5c6 0 9.5 6.5 9.5 6.5a17 17 0 0 1-2.6 3.4M6.6 6.9C4 8.6 2.5 12 2.5 12s3.5 6.5 9.5 6.5c1.6 0 3-.4 4.3-1.1M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E"); }
.field .pw-box > input { width:100%; }
.pw-eye { font-size:var(--t-s); }

/* the way back: a quiet pill at the top of the page, an arrow and the app's name */
.backpill { display:inline-flex; align-items:center; gap:8px; height:36px; margin:-20px 0 24px; padding:0 14px 0 11px; border-radius:999px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-2); color:var(--ink-2); font-size:var(--t-s); line-height:1; transition:box-shadow .18s var(--out), color .18s var(--out), background-color .18s var(--out); }
.backpill svg { width:16px; height:16px; flex:none; color:var(--ink-3); }
.backpill:hover { color:var(--ink); background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--line-3); }
.backpill:focus-visible { outline-offset:2px; }

/* Security: a change waiting for its link, under the email */
.row small.pend { margin-top:6px; color:var(--ink-2); }
.row small.pend::before { content:''; display:inline-block; width:7px; height:7px; margin:0 8px 1px 0; border-radius:50%; background:var(--ink-4); vertical-align:middle; }

/* the dialogs: one column of fields, what goes as a quiet list, the box to tick drawn here, the one red button */
.fields.one-col { grid-template-columns:minmax(0, 1fr); }
.field label b { color:var(--ink); overflow-wrap:anywhere; }
.goes { display:grid; gap:8px; margin:18px 0 0; padding:0; list-style:none; }
.goes li { position:relative; padding-left:18px; font-size:var(--t-m); line-height:1.45; color:var(--ink-2); }
.goes li::before { content:''; position:absolute; left:4px; top:.62em; width:5px; height:5px; border-radius:50%; background:var(--ink-4); }
.sheet .aside { margin-top:20px; }
.diff .d a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--line-3); text-underline-offset:4px; }
.tick { display:flex; align-items:flex-start; gap:12px; width:100%; margin-top:20px; padding:14px 16px; border-radius:12px; box-shadow:inset 0 0 0 1px var(--line-2); text-align:left; font-size:var(--t-m); line-height:1.45; color:var(--ink-2); transition:box-shadow .18s var(--out), background-color .18s var(--out); }
.tick:hover { box-shadow:inset 0 0 0 1px var(--line-3); }
.tick > i { display:grid; place-items:center; flex:none; width:20px; height:20px; margin-top:1px; border-radius:6px; box-shadow:inset 0 0 0 1.5px var(--line-3); color:transparent; transition:background-color .18s var(--out), box-shadow .18s var(--out), color .18s var(--out); }
.tick > i svg { width:14px; height:14px; }
.tick[aria-checked="true"] { background:var(--hover); box-shadow:inset 0 0 0 1px var(--line-3); color:var(--ink); }
.tick[aria-checked="true"] > i { background:var(--ink); box-shadow:none; color:var(--on-ink); }
.tick:disabled { opacity:.5; cursor:default; }
.btn.red { background:var(--bad); color:var(--on-ink); box-shadow:none; }
.btn.red:hover { background:color-mix(in srgb, var(--bad) 88%, var(--ink)); }
.btn.red[disabled] { background:var(--surface-2); color:var(--ink-3); }
.sheet .say { margin-top:16px; }
.sheet .pwm__list > li { font-size:var(--t-s); }
.sheet .pwm__w, .sheet .pwm__match { font-size:var(--t-s); }

/* ── smaller windows ── */
@media (max-width:1100px) { .apps { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:900px) {
  .plans { grid-template-columns:minmax(0, 1fr); }
  .fields { grid-template-columns:minmax(0, 1fr); }
}
@media (max-width:640px) {
  .apps { grid-template-columns:minmax(0, 1fr); gap:12px; margin-top:28px; }
  .app { min-height:0; padding:18px; column-gap:16px; grid-template-columns:auto minmax(0, 1fr) auto; grid-template-rows:auto auto auto auto; grid-template-areas:"pm name name" "pm sub sub" "pm last last" "acc acc open"; }
  .app .pm { width:52px; height:52px; border-radius:13px; }
  .app b { margin:0; font-size:22px; }
  .app small { margin-top:2px; }
  .app .last { margin-top:4px; justify-self:start; }
  .app .acc { justify-self:start; margin-top:16px; }
  .app .open { margin-top:16px; }
  /* a real account's tiles carry no plan pill: the button sits beside the words */
  :root[data-acct="real"] .app { grid-template-areas:"pm name open" "pm sub open" "pm last open"; }
  :root[data-acct="real"] .app .open { margin-top:0; }
}
@media (max-width:760px) {
  :root { --rail:0px; }
  .rail { left:12px; right:12px; top:auto; bottom:calc(12px + env(safe-area-inset-bottom, 0px)); width:auto; flex-direction:row; padding:6px 8px; border-radius:20px; box-shadow:var(--shadow-2); }
  .rail .brand { display:none; }
  .rail nav { flex-direction:row; gap:2px; padding:0; }
  .rail nav .glide { top:0; }
  .rail nav a { flex:1; padding:8px 0 6px; gap:3px; }
  .rail .foot { margin:0 0 0 6px; flex-direction:row; }
  main { margin-left:0; padding:28px 16px 120px; }
  .h1 { font-size:34px; }
  .section { margin-top:36px; }
  .card, .plan { padding:22px; border-radius:18px; }
  .profile-top { gap:18px; }
  .profile-top h3 { font-size:26px; }
  .photo { width:84px; height:84px; border-radius:18px; }
  .toaster { left:12px; right:12px; justify-items:stretch; bottom:calc(92px + env(safe-area-inset-bottom, 0px)); }
  .toast { max-width:none; }
  .menu { left:12px; right:12px; width:auto; bottom:calc(84px + env(safe-area-inset-bottom, 0px)); }
  /* the Account's tabs slide sideways inside their own pill, the chosen one brought into view */
  #subnav { display:flex; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }
  #subnav::-webkit-scrollbar { display:none; }
  #subnav > button { flex:none; padding:0 14px; }
  /* a day's two times take their own line */
  .hrs-r { row-gap:6px; padding:4px 0 12px; }
  .hrs-t { grid-column:1 / -1; }
  .hrs-t .dd.sm { flex:1; width:auto; min-width:0; }
  .hrs-foot { flex-direction:column; align-items:stretch; }
  .hrs-line { text-align:left; }
  /* the sample account's bar takes the width and the page starts below it */
  .demo-bar { left:12px; right:12px; transform:none; justify-content:space-between; top:calc(10px + env(safe-area-inset-top, 0px)); }
  body:has(.demo-bar:not([hidden])) main { padding-top:84px; }
  .invite { flex-direction:column; }
  .invite input { flex:none; }
  .invite .dd { width:100%; }
  /* Billing's two rows: the button under the words, so the words keep the width */
  #billRows .row { grid-template-columns:auto minmax(0, 1fr); }
  #billRows .row > .btn { grid-column:2; justify-self:start; }
  #secRows .row, #dataRows .row { grid-template-columns:auto minmax(0, 1fr); }
  #secRows .row > .btn, #dataRows .row > .btn { grid-column:2; justify-self:start; }
  /* Preferences: Appearance's and the language's choices under their words, so the words keep the width */
  .sub[data-sub="prefs"] .row:has(> .seg) { grid-template-columns:auto minmax(0, 1fr); }
  .sub[data-sub="prefs"] .row > .seg { grid-column:2; justify-self:start; }
  .seg.tone { display:inline-grid; grid-template-columns:1fr 1fr; border-radius:18px; }
  .seg.tone button, .seg.tone .glide { border-radius:14px; }
  .backpill { margin:0 0 20px; }
  /* a row with links at its end (a team member, an invitation): the links take their own line under the words */
  .row:has(> .row-acts) { grid-template-columns:auto minmax(0, 1fr); }
  .row > .row-acts { grid-column:2; flex-wrap:wrap; row-gap:8px; }
  .sheet { align-items:end; padding:12px; }
  .sheet .panel { padding:24px 20px; }
  /* the door on a phone: the form is the screen, the mark over it */
  .formside { padding:calc(20px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .formbox { max-width:none; }
  .formbox h1 { font-size:28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } }
