/* ─── ds/tokens.css ─── */
/* Doctorpedia Design System · tokens
   The values were taken from Ask Doctorpedia's redesign (5 to 9 November 2026), the first app to carry this language, and brought to
   BiteSized's on 19 November 2026 (its clean.css section 1 and views/grey-pass.css), the reference since: the grey accent, the field in
   greys, darker words, the floating shadow, the four page tones and higher contrast. ds/aliases-bitesized.css maps BiteSized's --cl-* names.
   Apps load this file first. Nothing in a component is typed by hand: it reads a token.
   Type since 9 Nov 2026: Hedvig Letters, chosen by Sergio among thirty pairings. The sans runs the app; the serif reads. Light is the default; dark follows the
   system unless the page says otherwise with data-theme="light" or "dark" on <html>. */

@font-face { font-family:"Hedvig Letters Sans"; src:url("ds/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("ds/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("ds/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("ds/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; }
@font-face { font-family:"Geist Mono"; src:url("ds/fonts/geist-mono-latin-ext.woff2") format("woff2"); font-weight:100 900; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:"Geist Mono"; src:url("ds/fonts/geist-mono-latin.woff2") format("woff2"); font-weight:100 900; 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; }

:root {
  color-scheme: light;

  /* ── type ── Hedvig Letters Sans for what is tapped and scanned; Hedvig Letters Serif for what is read: the answer, a question as a title,
     the title of a home. Geist Mono for figures, codes and keys. Both Hedvig faces have one weight (400): no bold is faked, hierarchy is
     size and colour. No italics. */
  --ds-sans: "Hedvig Letters Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ds-serif: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  --ds-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ds-t-11: 11px;   /* marks and keys only */
  --ds-t-12: 12px;   /* section labels in a rail, dates in a margin */
  --ds-t-13: 13px;   /* notes, hints, meta */
  --ds-t-14: 14px;   /* controls: pills, menu items, rows */
  --ds-t-15: 15px;   /* body in panels, list titles, tabs */
  --ds-t-17: 17px;   /* page body */
  --ds-t-19: 19px;   /* reading text: the answer */
  --ds-t-20: 20px;   /* section titles */
  --ds-t-24: 24px;   /* page titles in panels */
  --ds-t-28: 28px;   /* the home title */
  --ds-t-32: 32px;   /* the question as a title */
  --ds-t-40: 40px;   /* display, rare */
  --ds-t-46: 46px;   /* the title of a home, in the serif */
  --ds-lh-tight: 1.15; --ds-lh-ui: 1.3; --ds-lh-body: 1.5; --ds-lh-read: 1.62;
  --ds-w-regular: 400; --ds-w-medium: 500; --ds-w-strong: 600;   /* kept for a face with weights; Hedvig has one, and font-synthesis is off, so all render at 400 */
  --ds-track-display: -.02em;   /* 28 px and up only; small text is never tightened */

  /* ── colour ── since 19 Nov 2026 BiteSized's values (its clean.css section 1 and views/grey-pass.css): ink on white over a quiet page,
     one quiet grey accent where the lilac was, the field in greys. Red, green and amber keep their meaning and their colour, on a dot or a
     word, never a background. The page has four tones (below): White and Paper for the light look, Grey and Black for the dark one. */
  --ds-page: #F7F7F5;
  --ds-surface: #FFFFFF;
  --ds-surface-2: #F2F2F0;           /* a raised step on white: inactive segments, the quiet button, a calm field */
  --ds-ink: #1A1A1A;
  --ds-ink-2: #2B2B2B;               /* secondary words (BiteSized's darker greys of 10 Nov: the client asked for darker words) */
  --ds-ink-3: #474747;               /* quiet lines and labels; 7 to 1 or more on white, the page and the grey fill */
  --ds-ink-4: #505050;               /* meta that is noticed, not read: dates, counts, labels in a rail */
  --ds-line: rgba(26,26,26,.08);     /* hairline between things */
  --ds-line-2: rgba(26,26,26,.12);   /* the edge of a control */
  --ds-line-3: rgba(26,26,26,.22);   /* the edge of a control on hover, a focused field */
  --ds-hover: rgba(26,26,26,.05);    /* a row, a ghost button under the pointer */
  --ds-press: rgba(26,26,26,.09);
  --ds-veil: color-mix(in srgb, var(--ds-page) 62%, transparent);   /* behind a sheet or a dialog: the page itself, with a 6 px blur (.ds-veil) */
  --ds-accent: var(--ds-ink);        /* the primary button and the selected state are ink */
  --ds-on-accent: #FFFFFF;
  --ds-grey-accent: #6F6F6C;         /* the quiet grey accent: focus rings, a point that says something waits, the soft plate's tick, a seal */
  --ds-grey-accent-soft: #ECECE9;    /* its soft plate: a found word, the selection, the wash of a flat field */
  --ds-tone-white: #FFFFFF; --ds-tone-paper: #EDE3CF; --ds-tone-grey: #3A3A3D; --ds-tone-black: #000000;   /* the dots that name the four page tones (fixed: they show a tone, not the page) */
  --ds-band: #EDEDEA;                /* a flat cover band (a doctor's page, a colleague's card): plain, no dots, no glow */
  /* superseded 19 Nov 2026: the lilac. Its names stay so nothing that reads them breaks; they now carry the grey accent. Do not use them in new work. */
  --ds-lilac: var(--ds-grey-accent); --ds-lilac-soft: var(--ds-grey-accent-soft); --ds-lilac-2: var(--ds-line-3); --ds-lilac-pink: var(--ds-grey-accent-soft);
  /* the four families of a source (videos, research, people, the assistant's own line) mark in four greys, never in hues: they are told
     apart by their icon and word; the steps are far enough apart for a chart's four series */
  --ds-video: var(--ds-grey-accent); --ds-research: #3D3D3B; --ds-people: #9C9C98; --ds-own: #C4C4C0;
  --ds-own-ink: var(--ds-ink-2); --ds-ok-ink: #2F7D61; --ds-bad-ink: #B4433D; --ds-warn-ink: #9A5F17;   /* the meaning hues deep enough to be read as words (4.5 to 1) */
  --ds-ok: #4FAE8C; --ds-warn: #DE9A4A; --ds-bad: #D4605A; --ds-danger: #C8403A;   /* meaning only; never decoration */
  --ds-field-1: #FFFFFF; --ds-field-2: #E6E6E3; --ds-field-3: #CDCDC9; --ds-field-4: #EDEDEA; --ds-field-5: #FFFFFF;   /* the pixel field's five colours, greys */

  /* ── edges and depth ── hairlines separate; shadows are soft, neutral and few. */
  --ds-hair: 0 0 0 1px var(--ds-line);
  --ds-hair-2: 0 0 0 1px var(--ds-line-2);
  --ds-hair-3: 0 0 0 1px var(--ds-line-3);
  --ds-shadow-1: 0 1px 2px rgba(26,26,26,.04);                                           /* a chip, a small card */
  --ds-shadow-2: 0 1px 2px rgba(26,26,26,.04), 0 16px 40px -16px rgba(26,26,26,.12);     /* a floating panel, a reference card */
  --ds-shadow-3: 0 1px 2px rgba(26,26,26,.04), 0 22px 48px -20px rgba(26,26,26,.18);     /* the box, a sheet */
  --ds-shadow-menu: 0 4px 12px -6px rgba(29,28,25,.2);
  --ds-shadow-pop: 0 0 0 1px rgba(26,26,26,.05), 0 4px 10px -2px rgba(26,26,26,.08), 0 28px 64px -16px rgba(26,26,26,.3);   /* what floats over the page: a dialog, the account card, a person's card, the mini player */
  --ds-shadow-plate: 0 1px 2px rgba(26,26,26,.1);   /* the plate that slides under a chosen segment, with its hairline */
  --ds-r-4: 4px; --ds-r-6: 6px; --ds-r-8: 8px; --ds-r-10: 10px; --ds-r-12: 12px; --ds-r-16: 16px; --ds-r-pill: 999px;
  /* rows 8 · menus and fields 10 · cards 12 · panels, the box and sheets 16 · pills and round controls 999 */

  /* ── space ── a rhythm of 4, blocks sit close (24 to 36), never 80. */
  --ds-s-1: 4px; --ds-s-2: 8px; --ds-s-3: 12px; --ds-s-4: 16px; --ds-s-5: 20px; --ds-s-6: 24px; --ds-s-8: 32px; --ds-s-9: 36px; --ds-s-10: 40px; --ds-s-12: 48px; --ds-s-16: 64px;
  --ds-gutter: 16px;                 /* the side gutter on a phone */
  --ds-read: 680px;                  /* the measure of anything read */
  --ds-side: 276px;                  /* the floating sidebar */
  --ds-rail: 76px;                   /* the sidebar folded */

  /* ── sizes ── controls come in three heights; icons in three sizes, always with their word in a rail. */
  --ds-ctl-sm: 32px; --ds-ctl: 40px; --ds-ctl-lg: 48px;
  --ds-icon-sm: 16px; --ds-icon: 18px; --ds-icon-lg: 20px;
  --ds-avatar-sm: 28px; --ds-avatar: 36px; --ds-avatar-lg: 56px;

  /* ── motion ── everything transitions; nothing jumps; hover is edge and colour drawn quickly; entrances are short and gated. */
  --ds-ease-out: cubic-bezier(.22,.61,.36,1);     /* the house curve for colour, edge, opacity */
  --ds-ease-spring: cubic-bezier(.16,1,.3,1);     /* things that arrive: menus, sheets, chips unfolding */
  --ds-ease-draw: cubic-bezier(.25,.1,.25,1);     /* the ring drawing itself */
  --ds-ease-inout: cubic-bezier(.4,.1,.6,.9);     /* things that travel: a thumb, a tab mark */
  --ds-t-1: .12s;    /* a press */
  --ds-t-2: .18s;    /* fast: a colour step */
  --ds-t-3: .22s;    /* an edge, an icon */
  --ds-t-4: .32s;    /* mid: most changes of state, entrances */
  --ds-t-5: .42s;    /* the ring draws; words darken in .35s */
  --ds-t-6: .55s;    /* slow: a page's first entrance */
  --ds-stagger: 40ms;            /* between rows of a cascade */
  --ds-orbit: 11s;               /* superseded 19 Nov 2026: nothing circles the box any more (.ds-orbit is still); kept so nothing that reads it breaks */
  --ds-travel: 8px;              /* how far an entrance rises */

  /* ── layers ── */
  --ds-z-raised: 5; --ds-z-dock: 10; --ds-z-panel: 20; --ds-z-menu: 30; --ds-z-sheet: 40; --ds-z-toast: 50;
  --ds-blur: blur(30px) saturate(1.4);
  --ds-veil-blur: blur(6px);       /* the veil's blur: the page stays in sight, softened, behind a sheet or a dialog */

  /* ── on a dark stage (a video, a poster, a veil): lights that stay light in both modes ── */
  --ds-on-dark: #FFFFFF; --ds-veil-deep: rgba(10,10,10,.82); --ds-z-tip: 60;
  --ds-avatar-xl: 96px;
  --ds-stage: #111111; --ds-on-stage: #FFFFFF; --ds-stage-line: rgba(255,255,255,.26); --ds-stage-line-2: rgba(255,255,255,.46); --ds-stage-hover: rgba(255,255,255,.14); --ds-stage-press: rgba(255,255,255,.22); --ds-stage-scrim: linear-gradient(to top, rgba(0,0,0,.64), rgba(0,0,0,0)); --ds-stage-cc: rgba(0,0,0,.6);
  /* ── paper (the printed page, a handout): fixed in both modes, because paper is paper ── */
  --ds-paper: #FFFFFF; --ds-paper-ink: #1A1A1A; --ds-paper-ink-2: #4D4D4D; --ds-paper-grey: #6E6E6E; --ds-paper-grey-2: #6B6B6B; --ds-paper-line: rgba(26,26,26,.12); --ds-paper-line-2: rgba(26,26,26,.2);
}

/* ── dark ── the same world on ink: whites become soft paper, lines turn to light, the grey accent lifts a step. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --ds-page: #141414; --ds-surface: #1F1F1F; --ds-surface-2: #2A2A2A;
  --ds-ink: #F2F2F0; --ds-ink-2: #DCDCD9; --ds-ink-3: #B5B5B2; --ds-ink-4: #ABABA8;
  --ds-line: rgba(255,255,255,.08); --ds-line-2: rgba(255,255,255,.13); --ds-line-3: rgba(255,255,255,.24);
  --ds-hover: rgba(255,255,255,.05); --ds-press: rgba(255,255,255,.09);
  --ds-on-accent: #1A1A1A;
  --ds-grey-accent: #A3A3A0; --ds-grey-accent-soft: #2C2C2B; --ds-band: #262626;
  --ds-research: #E2E2DF; --ds-people: #7A7A77; --ds-own: #565654;
  --ds-ok-ink: #6FC2A3; --ds-bad-ink: #F26A8A; --ds-warn-ink: #E8B06C;
  --ds-ok: #6FC2A3; --ds-warn: #E8B06C; --ds-bad: #F26A8A; --ds-danger: #F07A72;
  --ds-field-1: #1F1F1F; --ds-field-2: #2C2C2C; --ds-field-3: #424242; --ds-field-4: #282828; --ds-field-5: #1F1F1F;
  --ds-shadow-1: 0 1px 2px rgba(0,0,0,.3);
  --ds-shadow-2: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.5);
  --ds-shadow-3: 0 1px 2px rgba(0,0,0,.3), 0 22px 48px -20px rgba(0,0,0,.6);
  --ds-shadow-menu: 0 4px 12px -6px rgba(0,0,0,.5);
  --ds-shadow-pop: 0 0 0 1px rgba(255,255,255,.05), 0 4px 10px -2px rgba(0,0,0,.45), 0 30px 70px -16px rgba(0,0,0,.75);
  --ds-shadow-plate: 0 1px 2px rgba(0,0,0,.4);
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ds-page: #141414; --ds-surface: #1F1F1F; --ds-surface-2: #2A2A2A;
  --ds-ink: #F2F2F0; --ds-ink-2: #DCDCD9; --ds-ink-3: #B5B5B2; --ds-ink-4: #ABABA8;
  --ds-line: rgba(255,255,255,.08); --ds-line-2: rgba(255,255,255,.13); --ds-line-3: rgba(255,255,255,.24);
  --ds-hover: rgba(255,255,255,.05); --ds-press: rgba(255,255,255,.09);
  --ds-on-accent: #1A1A1A;
  --ds-grey-accent: #A3A3A0; --ds-grey-accent-soft: #2C2C2B; --ds-band: #262626;
  --ds-research: #E2E2DF; --ds-people: #7A7A77; --ds-own: #565654;
  --ds-ok-ink: #6FC2A3; --ds-bad-ink: #F26A8A; --ds-warn-ink: #E8B06C;
  --ds-ok: #6FC2A3; --ds-warn: #E8B06C; --ds-bad: #F26A8A; --ds-danger: #F07A72;
  --ds-field-1: #1F1F1F; --ds-field-2: #2C2C2C; --ds-field-3: #424242; --ds-field-4: #282828; --ds-field-5: #1F1F1F;
  --ds-shadow-1: 0 1px 2px rgba(0,0,0,.3);
  --ds-shadow-2: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.5);
  --ds-shadow-3: 0 1px 2px rgba(0,0,0,.3), 0 22px 48px -20px rgba(0,0,0,.6);
  --ds-shadow-menu: 0 4px 12px -6px rgba(0,0,0,.5);
  --ds-shadow-pop: 0 0 0 1px rgba(255,255,255,.05), 0 4px 10px -2px rgba(0,0,0,.45), 0 30px 70px -16px rgba(0,0,0,.75);
  --ds-shadow-plate: 0 1px 2px rgba(0,0,0,.4);
}

/* ── page tones (19 Nov 2026, as BiteSized and Ask have them: views/grey-pass.css section 6). White is cool and clean; Paper is warm, a
   little beige; Grey is a soft dark; Black is the darkest. Each keeps a grey accent of its own family, so nothing turns blue. An app writes
   data-tone-light ("white" | "paper") and data-tone-dark ("grey" | "black") on <html> before paint; both apps write White and Grey unless the
   person chose otherwise (bs-tones in the browser), so White and Grey are what a doctor sees by default. The tone of the look in view is the
   one seen: data-theme="light" or "dark", or the system's look when there is none. Without the attributes the page is the base above. ── */
:root[data-theme="light"][data-tone-light="white"] {
  --ds-page: #F4F5F6; --ds-surface: #FFFFFF; --ds-surface-2: #EEF0F2;
  --ds-ink: #16181B; --ds-ink-2: #272A2E; --ds-ink-3: #44484E; --ds-ink-4: #4E535A;
  --ds-line: rgba(22,24,27,.08); --ds-line-2: rgba(22,24,27,.12); --ds-line-3: rgba(22,24,27,.22);
  --ds-hover: rgba(22,24,27,.05); --ds-press: rgba(22,24,27,.09);
  --ds-grey-accent: #6E737A; --ds-grey-accent-soft: #E9ECEF; --ds-band: #ECEEF0; --ds-on-accent: #FFFFFF;
  --ds-field-1: #FFFFFF; --ds-field-2: #E3E6EA; --ds-field-3: #C9CED5; --ds-field-4: #EBEEF1; --ds-field-5: #FFFFFF;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"])[data-tone-light="white"] {
  --ds-page: #F4F5F6; --ds-surface: #FFFFFF; --ds-surface-2: #EEF0F2;
  --ds-ink: #16181B; --ds-ink-2: #272A2E; --ds-ink-3: #44484E; --ds-ink-4: #4E535A;
  --ds-line: rgba(22,24,27,.08); --ds-line-2: rgba(22,24,27,.12); --ds-line-3: rgba(22,24,27,.22);
  --ds-hover: rgba(22,24,27,.05); --ds-press: rgba(22,24,27,.09);
  --ds-grey-accent: #6E737A; --ds-grey-accent-soft: #E9ECEF; --ds-band: #ECEEF0; --ds-on-accent: #FFFFFF;
  --ds-field-1: #FFFFFF; --ds-field-2: #E3E6EA; --ds-field-3: #C9CED5; --ds-field-4: #EBEEF1; --ds-field-5: #FFFFFF;
} }
:root[data-theme="light"][data-tone-light="paper"] {
  --ds-page: #F4EEE2; --ds-surface: #FBF7EF; --ds-surface-2: #EFE7D8;
  --ds-ink: #2B2620; --ds-ink-2: #3A332A; --ds-ink-3: #574E42; --ds-ink-4: #61574A;
  --ds-line: rgba(70,52,28,.10); --ds-line-2: rgba(70,52,28,.15); --ds-line-3: rgba(70,52,28,.26);
  --ds-hover: rgba(70,52,28,.05); --ds-press: rgba(70,52,28,.09);
  --ds-grey-accent: #857865; --ds-grey-accent-soft: #EAE0CE; --ds-band: #ECE3D3; --ds-on-accent: #FBF7EF;
  --ds-danger: #A8342E; --ds-bad-ink: #A8342E; --ds-ok-ink: #276A52; --ds-warn-ink: #85510F;   /* the meaning words a step deeper on the warm paper, so they keep 4.5 to 1 */
  --ds-field-1: #FBF8F2; --ds-field-2: #ECE8E0; --ds-field-3: #DAD5CB; --ds-field-4: #F2EFE9; --ds-field-5: #FBF8F2;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"])[data-tone-light="paper"] {
  --ds-page: #F4EEE2; --ds-surface: #FBF7EF; --ds-surface-2: #EFE7D8;
  --ds-ink: #2B2620; --ds-ink-2: #3A332A; --ds-ink-3: #574E42; --ds-ink-4: #61574A;
  --ds-line: rgba(70,52,28,.10); --ds-line-2: rgba(70,52,28,.15); --ds-line-3: rgba(70,52,28,.26);
  --ds-hover: rgba(70,52,28,.05); --ds-press: rgba(70,52,28,.09);
  --ds-grey-accent: #857865; --ds-grey-accent-soft: #EAE0CE; --ds-band: #ECE3D3; --ds-on-accent: #FBF7EF;
  --ds-danger: #A8342E; --ds-bad-ink: #A8342E; --ds-ok-ink: #276A52; --ds-warn-ink: #85510F;   /* the meaning words a step deeper on the warm paper, so they keep 4.5 to 1 */
  --ds-field-1: #FBF8F2; --ds-field-2: #ECE8E0; --ds-field-3: #DAD5CB; --ds-field-4: #F2EFE9; --ds-field-5: #FBF8F2;
} }
:root[data-theme="dark"][data-tone-dark="grey"] {
  --ds-page: #1C1C1E; --ds-surface: #262628; --ds-surface-2: #313134;
  --ds-ink: #F2F2F3; --ds-ink-2: #DADADC; --ds-ink-3: #B3B3B7; --ds-ink-4: #A9A9AD;
  --ds-line: rgba(255,255,255,.09); --ds-line-2: rgba(255,255,255,.14); --ds-line-3: rgba(255,255,255,.25);
  --ds-hover: rgba(255,255,255,.05); --ds-press: rgba(255,255,255,.09);
  --ds-grey-accent: #A4A6AB; --ds-grey-accent-soft: #303033; --ds-band: #2C2C2F; --ds-on-accent: #1C1C1E;
  --ds-field-1: #262628; --ds-field-2: #333336; --ds-field-3: #48484D; --ds-field-4: #2E2E31; --ds-field-5: #262628;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-tone-dark="grey"] {
  --ds-page: #1C1C1E; --ds-surface: #262628; --ds-surface-2: #313134;
  --ds-ink: #F2F2F3; --ds-ink-2: #DADADC; --ds-ink-3: #B3B3B7; --ds-ink-4: #A9A9AD;
  --ds-line: rgba(255,255,255,.09); --ds-line-2: rgba(255,255,255,.14); --ds-line-3: rgba(255,255,255,.25);
  --ds-hover: rgba(255,255,255,.05); --ds-press: rgba(255,255,255,.09);
  --ds-grey-accent: #A4A6AB; --ds-grey-accent-soft: #303033; --ds-band: #2C2C2F; --ds-on-accent: #1C1C1E;
  --ds-field-1: #262628; --ds-field-2: #333336; --ds-field-3: #48484D; --ds-field-4: #2E2E31; --ds-field-5: #262628;
} }
:root[data-theme="dark"][data-tone-dark="black"] {
  --ds-page: #000000; --ds-surface: #121213; --ds-surface-2: #1C1C1E;
  --ds-ink: #EDEDED; --ds-ink-2: #D4D4D4; --ds-ink-3: #ABABAB; --ds-ink-4: #A0A0A0;
  --ds-line: rgba(255,255,255,.08); --ds-line-2: rgba(255,255,255,.13); --ds-line-3: rgba(255,255,255,.22);
  --ds-hover: rgba(255,255,255,.05); --ds-press: rgba(255,255,255,.09);
  --ds-grey-accent: #9A9A9A; --ds-grey-accent-soft: #232325; --ds-band: #1A1A1B; --ds-on-accent: #000000;
  --ds-field-1: #121213; --ds-field-2: #1E1E20; --ds-field-3: #333336; --ds-field-4: #19191B; --ds-field-5: #121213;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-tone-dark="black"] {
  --ds-page: #000000; --ds-surface: #121213; --ds-surface-2: #1C1C1E;
  --ds-ink: #EDEDED; --ds-ink-2: #D4D4D4; --ds-ink-3: #ABABAB; --ds-ink-4: #A0A0A0;
  --ds-line: rgba(255,255,255,.08); --ds-line-2: rgba(255,255,255,.13); --ds-line-3: rgba(255,255,255,.22);
  --ds-hover: rgba(255,255,255,.05); --ds-press: rgba(255,255,255,.09);
  --ds-grey-accent: #9A9A9A; --ds-grey-accent-soft: #232325; --ds-band: #1A1A1B; --ds-on-accent: #000000;
  --ds-field-1: #121213; --ds-field-2: #1E1E20; --ds-field-3: #333336; --ds-field-4: #19191B; --ds-field-5: #121213;
} }

/* ── higher contrast (html.more-contrast: the account's Higher contrast, or the system's setting, as both apps put it): firmer lines and
   greys in the same world, restated after every tone because the tones set the lines and the greys too; the veil firmer as well ── */

/* ── density: the console and dense lists run compact; the apps for doctors stay comfortable ── */
/* ── large text: for doctors who read better at a step up; every size grows about fifteen percent and controls with it ── */
:root[data-text="large"] { --ds-t-11: 13px; --ds-t-12: 14px; --ds-t-13: 15px; --ds-t-14: 16px; --ds-t-15: 17px; --ds-t-17: 19px; --ds-t-19: 22px; --ds-t-20: 23px; --ds-t-24: 27px; --ds-t-28: 32px; --ds-t-32: 36px; --ds-t-40: 44px; --ds-t-46: 52px; --ds-ctl-sm: 36px; --ds-ctl: 44px; --ds-ctl-lg: 52px; --ds-icon-sm: 18px; --ds-icon: 20px; --ds-icon-lg: 22px; --ds-read: 720px; }


/* ─── ds/base.css ─── */
/* Doctorpedia Design System · base
   The ground every app stands on: the reset, the type, links, focus, selection, scrollbars and the reading block. Loaded after tokens.css. */
*, *::before, *::after { box-sizing:border-box; }
html { font-synthesis:none; font-synthesis-weight:none; -webkit-text-size-adjust:100%; text-size-adjust:100%; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
body { margin:0; font-family:var(--ds-sans); font-size:var(--ds-t-15); line-height:var(--ds-lh-body); font-weight:var(--ds-w-regular); color:var(--ds-ink); background:var(--ds-page); transition:background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out); }
[hidden] { display:none !important; }
html.ds-locked, html.ds-locked body { overflow:hidden; }   /* while a sheet or a modal is open */
img, svg, video, canvas { display:block; max-width:100%; }
img { height:auto; }
button, input, select, textarea { font:inherit; color:inherit; letter-spacing:inherit; }
button { margin:0; padding:0; border:0; background:none; cursor:pointer; text-align:inherit; -webkit-tap-highlight-color:transparent; }
button:disabled, [aria-disabled="true"] { cursor:default; }
a { color:inherit; text-decoration:none; text-underline-offset:.14em; text-decoration-thickness:1px; transition:color var(--ds-t-3) var(--ds-ease-out), text-decoration-color var(--ds-t-3) var(--ds-ease-out); }
p, h1, h2, h3, h4, ul, ol, dl, figure, pre { margin:0; }
h1, h2, h3, h4 { font-weight:var(--ds-w-medium); line-height:var(--ds-lh-tight); color:var(--ds-ink); text-wrap:balance; }
h1 { font-size:var(--ds-t-28); letter-spacing:var(--ds-track-display); }
h2 { font-size:var(--ds-t-24); letter-spacing:-.01em; }
h3 { font-size:var(--ds-t-20); }
h4 { font-size:var(--ds-t-17); }
small { font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
 b { font-weight:var(--ds-w-medium); }
em, i { font-style:normal; font-weight:var(--ds-w-medium); }   /* no italics in this house: emphasis is a weight step */
code { font-family:var(--ds-mono); font-size:.92em; font-variant-numeric:tabular-nums; }
.ds-num { font-variant-numeric:tabular-nums; }
::placeholder { color:var(--ds-ink-4); opacity:1; }
::selection { background:var(--ds-lilac-soft); color:var(--ds-ink); }
 .ds-btn:focus-visible { border-radius:var(--ds-r-pill); }
[tabindex="-1"]:focus-visible { outline:none; }
textarea { resize:none; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance:none; appearance:none; }
input[type="number"] { -moz-appearance:textfield; appearance:textfield; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
/* scrollbars: thin, quiet, only where there is a scroll */
* { scrollbar-width:thin; scrollbar-color:var(--ds-line-2) transparent; }
*::-webkit-scrollbar { width:8px; height:8px; } *::-webkit-scrollbar-thumb { background:var(--ds-line-2); border-radius:999px; border:2px solid transparent; background-clip:padding-box; } *::-webkit-scrollbar-track { background:transparent; }
/* icons: a symbol from icons.svg, the colour of the text it sits with, three sizes */
.ds-i { width:var(--ds-icon); height:var(--ds-icon); flex:none; fill:currentColor; color:inherit; transition:color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-i--sm { width:var(--ds-icon-sm); height:var(--ds-icon-sm); } .ds-i--lg { width:var(--ds-icon-lg); height:var(--ds-icon-lg); }
/* visually hidden, still read aloud */
.ds-sr { position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* the reading block: the answer, a post, a page of text, in the reading serif. 19 px, a long measure, close paragraphs, no decoration. */   /* the same block at panel size */
/* the page and the panels: a warm page, white panels with a hairline and a soft shadow, 16 px corners */


/* ─── ds/motion.css ─── */
/* Doctorpedia Design System · motion
   Rules (Sergio, 5 and 6 Nov 2026): everything transitions, nothing is static, nothing jumps. Hover is an edge and a colour drawn quickly,
   never a fill, a sweep, a lift or an inversion. Entrances are short (under .35 s), rise 8 px, cascade 40 ms apart, and only play when
   the page is visible (html.motion) so a hidden tab never queues them. No typewriter, no simulated progress. Reduced motion keeps the
   colour steps and drops every transform and animation. */

/* the gate: core.js adds .motion to <html> when the page is visible and the system allows motion; .still turns everything off */
@keyframes ds-fade-in { from { opacity:0; } }
@keyframes ds-fade-up { from { opacity:0; transform:translateY(var(--ds-travel)); } }
@keyframes ds-rise { from { opacity:0; transform:translateY(4px); } }
@keyframes ds-fade-down { from { opacity:0; transform:translateY(calc(-1 * var(--ds-travel))); } }
@keyframes ds-scale-in { from { opacity:0; transform:scale(.96); } }
@keyframes ds-menu-in { from { opacity:0; transform:translateY(-4px) scale(.92); } }
@keyframes ds-menu-in-up { from { opacity:0; transform:translateY(4px) scale(.92); } }
@keyframes ds-menu-out { to { opacity:0; transform:scale(.96); } }
@keyframes ds-sheet-in { from { opacity:0; transform:translateY(16px) scale(.96); } }
@keyframes ds-sheet-out { to { opacity:0; transform:translateY(10px) scale(.98); } }
@keyframes ds-drawer-in { from { transform:translateX(-100%); } }
@keyframes ds-drawer-in-right { from { transform:translateX(100%); } }
@keyframes ds-drawer-out { to { transform:translateX(-100%); } }
@keyframes ds-drawer-out-right { to { transform:translateX(100%); } }
@keyframes ds-veil-out { to { opacity:0; } }
@keyframes ds-slide { from { transform:translateX(-100%); } to { transform:translateX(340%); } }
@keyframes ds-veil-in { from { opacity:0; } }
@keyframes ds-toast-in { from { opacity:0; transform:translateY(10px) scale(.96); } }
@keyframes ds-toast-out { to { opacity:0; transform:translateY(6px) scale(.98); } }
@keyframes ds-spin { to { transform:rotate(360deg); } }
@keyframes ds-breathe { 50% { transform:scale(1.3); opacity:.6; } }
@keyframes ds-pulse { 0% { box-shadow:0 0 0 0 color-mix(in srgb, var(--ds-lilac) 35%, transparent); } 100% { box-shadow:0 0 0 10px transparent; } }
@keyframes ds-fill { from { transform:scaleX(.34); opacity:.9; } to { transform:none; opacity:1; } }
@keyframes ds-glide { from { background-position:-34% 0; } to { background-position:134% 0; } }
@keyframes ds-orbit { to { --ds-spin:360deg; } }
@keyframes ds-draw { to { stroke-dashoffset:0; } }
@keyframes ds-tap { 40% { transform:scale(1.1); } }
@keyframes ds-blink { 50% { opacity:.25; } }

@property --ds-a { syntax:'<angle>'; inherits:true; initial-value:0deg; }
@property --ds-spin { syntax:'<angle>'; inherits:false; initial-value:0deg; }

/* ── the standard transition set: every interactive piece gets it; components add their own properties on top ── */
.ds-t, .ds-btn, .ds-row, .ds-field, .ds-chip, .ds-switch, .ds-check, .ds-radio, .ds-menu-item, .ds-icon-btn, .ds-seg button, .ds-nav-row {
  transition: background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out), border-color var(--ds-t-4) var(--ds-ease-out), opacity var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out);
}
/* a press settles the piece by 1.5 percent, quickly */
.ds-btn:active, .ds-chip:active, .ds-icon-btn:active, .ds-row:active, .ds-nav-row:active, .ds-seg button:active { transform:scale(.985); transition-duration:var(--ds-t-1); }

/* ── the ring: Ask's hover for every white pill. A one-pixel ink line draws itself clockwise from the top in .42 s while the words darken
      in .35 s; on the way out the line fades over .45 s. The piece needs position:relative and a border-radius; the ring takes the radius. ── */
.ds-ring { --ds-a:0deg; position:relative; isolation:isolate; }
.ds-ring::before { content:''; position:absolute; inset:0; z-index:0; padding:1px; border-radius:inherit; pointer-events:none; opacity:0; background:conic-gradient(from 270deg, var(--ds-ink) var(--ds-a), transparent 0); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; transition:opacity .45s var(--ds-ease-out), --ds-a 0s linear .45s; }
.ds-ring:is( .is-hover) { --ds-a:360deg; color:var(--ds-ink); }
.ds-ring:is( .is-hover)::before { opacity:1; transition:opacity .3s var(--ds-ease-out), --ds-a var(--ds-t-5) var(--ds-ease-draw); }
.ds-ring > * { position:relative; z-index:1; }
.ds-ring[aria-pressed="true"]::before, .ds-ring.is-on::before, .ds-ring:disabled::before { display:none; }

/* ── the orbit, superseded 19 Nov 2026 (the owner's rule: nothing rotates; Ask's review, item 12): the box keeps the class, but its edge is a
   still hairline that deepens on focus, with the grey accent's soft ring; no light circles it any more ── */

/* ── entrances: only under html.motion; a piece arrives once, rising 8 px in .32 s; a cascade spaces its children 40 ms apart ── */
html.motion .ds-in { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-out) both; }
html.motion .ds-in--fade { animation:ds-fade-in var(--ds-t-4) var(--ds-ease-out) both; }
html.motion .ds-cascade > * { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * var(--ds-stagger)); }
html.motion .ds-unfold { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-spring) both; }
html.motion .ds-rise { animation:ds-rise var(--ds-t-3) var(--ds-ease-out) both; }
.ds-draw { stroke-dasharray:var(--ds-draw-len, 48); stroke-dashoffset:var(--ds-draw-len, 48); } html.motion .ds-draw { animation:ds-draw var(--ds-t-5) var(--ds-ease-draw) both; } html:not(.motion) .ds-draw { stroke-dashoffset:0; }
/* arrivals of floating pieces */
html.motion .ds-arrive-menu { animation:ds-menu-in var(--ds-t-3) var(--ds-ease-spring) both; }
html.motion .ds-arrive-menu.is-up { animation-name:ds-menu-in-up; }
html.motion .ds-arrive-sheet { animation:ds-sheet-in var(--ds-t-4) var(--ds-ease-spring) both; }
html.motion .ds-arrive-toast { animation:ds-toast-in var(--ds-t-4) var(--ds-ease-spring) both; }
.is-leaving { pointer-events:none; }
html.motion .ds-arrive-menu.is-leaving { animation:ds-menu-out var(--ds-t-2) var(--ds-ease-out) both; }
html.motion .ds-arrive-sheet.is-leaving { animation:ds-sheet-out var(--ds-t-3) var(--ds-ease-out) both; }
html.motion .ds-arrive-toast.is-leaving { animation:ds-toast-out var(--ds-t-3) var(--ds-ease-out) both; }

/* ── height that animates: core.js measures and sets --ds-h; the piece opens and closes smoothly instead of popping ── */
.ds-reveal { display:grid; grid-template-rows:0fr; transition:grid-template-rows var(--ds-t-4) var(--ds-ease-out), opacity var(--ds-t-4) var(--ds-ease-out); opacity:0; }
.ds-reveal > * { min-height:0; overflow:hidden; }
.ds-reveal.is-open { grid-template-rows:1fr; opacity:1; }

/* ── a swap of words in place (a status line that changes): the old fades 3 px up, the new rises ── */
.ds-swap { transition:opacity var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-2) var(--ds-ease-out); }
.ds-swap.is-out { opacity:0; transform:translateY(3px); }

/* ── a kept mark: a ring of the grey accent breathes out once when something was saved (a renamed row, a kept answer) ── */
html.motion .is-kept { animation:ds-pulse .7s var(--ds-ease-out) both; }

/* ── spin, breathe, shimmer ── */
html.motion .ds-breathe { animation:ds-breathe 1.6s var(--ds-ease-inout) infinite; }
.ds-shimmer { background:linear-gradient(90deg, var(--ds-surface-2) 0%, color-mix(in srgb, var(--ds-surface-2) 40%, var(--ds-surface)) 50%, var(--ds-surface-2) 100%); background-size:220% 100%; }
html.motion .ds-shimmer { animation:ds-glide 1.6s var(--ds-ease-inout) infinite; }

/* ── reduced motion and the still switch: colour steps stay, transforms and animations go ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .ds-ring:is( .is-hover) { box-shadow:0 0 0 1px var(--ds-ink); } .ds-ring::before { display:none; }
}
html.still *, html.still *::before, html.still *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
html.still .ds-ring::before { display:none; } html.still .ds-ring:is( .is-hover) { box-shadow:0 0 0 1px var(--ds-ink); }


/* ─── ds/core.css ─── */
/* Doctorpedia Design System · core pieces drawn by core.js: the toaster. Loaded after motion.css. */
.ds-toaster { position:fixed; left:50%; bottom:24px; z-index:var(--ds-z-toast); display:flex; flex-direction:column; align-items:center; gap:8px; transform:translateX(-50%); pointer-events:none; max-width:calc(100vw - 32px); }
.ds-toast { pointer-events:auto; display:inline-flex; align-items:center; gap:10px; min-height:40px; padding:0 8px 0 16px; border-radius:var(--ds-r-pill); background:var(--ds-ink); color:var(--ds-page); font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:1.3; box-shadow:var(--ds-shadow-2); transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-toast .ds-i { color:var(--ds-ink-4); }
.ds-toast-t { padding:10px 0; }
.ds-toast-a { height:28px; padding:0 10px; margin-left:4px; border-radius:var(--ds-r-pill); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); color:var(--ds-page); background:rgba(255,255,255,.12); transition:background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-toast-a:is( .is-hover) { background:rgba(255,255,255,.2); }
.ds-toast-x { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; color:var(--ds-ink-4); transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-toast-x:is( .is-hover) { color:var(--ds-page); background:rgba(255,255,255,.12); }
:root[data-theme="dark"] .ds-toast, :root:not([data-theme="light"]) .ds-toast { }
.ds-toast.is-ok .ds-i { color:var(--ds-ok); } .ds-toast.is-bad .ds-i { color:var(--ds-bad); }
@media (max-width: 640px) { .ds-toaster { bottom:16px; width:calc(100vw - 32px); } .ds-toast { width:100%; } .ds-toast-t { flex:1; } }


/* ─── ds/components/typography.css ─── */
/* Doctorpedia Design System · typography
   Names for what base.css leaves implicit: the heading set and the two display sizes, the five body sizes, the eyebrow, the caption,
   figures, links in prose, lists, the quote, the full reading block, code in a sentence, a highlighted match and the legal page.
   Hedvig Letters Sans for the app and Hedvig Letters Serif for what is read (one weight each), Geist Mono for figures and codes, no italics, sentence case, small text never tracked. Nothing here
   contradicts base.css: h1 to h4, .ds-prose, code and links keep their base rules and gain names and the states the docs need. */

/* heading-set: four heading sizes and two display sizes. h1 to h4 already carry them (base.css); the classes are for anything that is not a heading */   /* the question as a title: serif */   /* the title of a home: serif, 46 */

/* body-sizes: five sizes with the leading of each; 19 reads, 17 is the page, 15 the panel, 14 a control's line, 13 a note */

/* eyebrow: the small label above a title; 12 px medium, meta grey, sentence case, no tracking, 8 px above the title */
.ds-eyebrow { display:block; margin:0 0 var(--ds-s-2); font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); line-height:var(--ds-lh-ui); letter-spacing:0; text-transform:none; color:var(--ds-ink-3); transition:color var(--ds-t-4) var(--ds-ease-out); }

/* caption: 13 px under a picture or a figure, 8 px below it; the picture takes the card's corner */

/* figures: tabular figures in the sans for columns of values (.ds-num, from base); the mono for codes, a date in a margin and a duration. One format per screen. */   /* a duration or a transcript time (.ds-duration is the pickers' piece) */

/* link-styles: links in a reading block follow .ds-link (actions): grey to ink, a hairline underline that turns to ink; here only the docs' at-rest hover and the legal page */

/* lists: ul and ol with meta-grey markers 8 px apart (base, inside .ds-prose; .ds-bullets outside it); the checklist; the lead-word list */

/* blockquote: the prose quote; a 2 px mark at the left, 16 px of padding, secondary grey, the source under it in 13 */

/* prose: the full reading block (base sets the size, measure and rhythm); headings sit 12 px above what follows, paragraphs wrap prettily */
/* source marks (.ds-fn) in prose are the conversation group's piece; the prose only places them at the end of the sentence */

/* inline-code: code in a sentence; mono 13 on the raised step, 4 px corners, 2 × 6 padding, secondary grey; a key, a path, a value (.ds-code is the data group's code block) */

/* mark: a highlighted match in a search result or a transcript; the soft lilac behind ink words, no corner, no weight */
mark, .ds-mark { padding:0; border-radius:0; font-weight:inherit; color:var(--ds-ink); background:var(--ds-lilac-soft); box-shadow:0 0 0 2px var(--ds-lilac-soft); -webkit-box-decoration-break:clone; box-decoration-break:clone; transition:background-color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out); }

/* legal-text: the legal page's block; 15 px secondary grey on the reading measure, a dated line at the top, numbered 17 px headings 32 above and 12 below */


/* ─── ds/components/layout.css ─── */
/* Doctorpedia Design System · layout
   The page and its parts. Sergio's rule for the shell (8 Oct): an app, not a website; fewer blocks, more air, little text. A warm page
   with two white panels floating on it 16 px apart, the main scrolling inside; headers that sit close to their content (24 to 36 px);
   columns that stack on a phone; panes, bars and scroll areas that tell their state with a hairline, a fade or a line that darkens.
   Everything transitions; entrances only under html.motion; nothing boxed but the panels themselves. Rows, nav rows, tabs, fields and
   the veil come from their own groups (data, navigation, inputs, overlays) and are only placed here. */

/* app-shell: the warm page with a floating white sidebar (276) and a white main panel 16 px apart, both radius 16, 16 px from the viewport; the main scrolls inside.
   .is-rail folds the sidebar to 76 (layout.js sets it between 901 and 1100 px and remembers a doctor's choice); under 900 the sidebar is the phone drawer and the main fills the screen. */
.ds-app { --ds-app-gap:16px; position:relative; display:grid; grid-template-columns:var(--ds-side) minmax(0, 1fr); gap:var(--ds-app-gap); height:var(--ds-app-h, 100dvh); padding:var(--ds-app-gap); background:var(--ds-page); overflow:hidden; transition:grid-template-columns var(--ds-t-5) var(--ds-ease-inout), padding var(--ds-t-4) var(--ds-ease-out), gap var(--ds-t-4) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out); }
.ds-app-side { min-width:0; min-height:0; background:var(--ds-surface); border-radius:var(--ds-r-16); box-shadow:var(--ds-hair), var(--ds-shadow-2); transition:box-shadow var(--ds-t-4) var(--ds-ease-out), border-radius var(--ds-t-4) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out), padding var(--ds-t-4) var(--ds-ease-out); }
.ds-app-side { display:flex; flex-direction:column; padding:14px 12px 12px; overflow:hidden; }
/* the sidebar's parts: the brand row, a scrolling middle, section labels and the foot that stays down */
/* the fold and the menu carry their words (Hide list, Show list; Menu): in the main's bar they sit at the left, before the title */
/* a word shown only in the rail, under its icon or picture (Account under the doctor's portrait) */
/* the rail: 76 px; the brand keeps its mark, the pill and each nav row become an icon with its word under it (Words on buttons: the word goes under, never away), the portrait says Account, the list of recent things hides; the fold in the brand row hides, the one in the main's bar says Show list */
.ds-app.is-rail { grid-template-columns:var(--ds-rail) minmax(0, 1fr); }
.ds-app.is-rail .ds-app-side { padding:14px 8px 12px; align-items:center; }
.ds-app.is-rail .ds-app-side .ds-btn { flex-direction:column; gap:5px; width:60px; height:auto; min-height:52px; padding:7px 2px 6px; margin:0 auto 8px; border-radius:var(--ds-r-12); font-size:var(--ds-t-11); line-height:1; white-space:nowrap; }
.ds-app.is-rail .ds-app-side .ds-btn .ds-i { width:18px; height:18px; }
.ds-app.is-rail .ds-nav-row { grid-template-columns:1fr; grid-template-rows:auto auto; justify-items:center; align-content:center; row-gap:5px; width:56px; height:56px; margin:0 auto; padding:0; border-radius:var(--ds-r-10); }
.ds-app.is-rail .ds-nav-row .ds-i { width:20px; height:20px; }
.ds-app.is-rail .ds-nav-row > :not(.ds-i):not(.ds-nav-row-l) { display:none; }
/* a frame that holds a shell or a drawer inside the docs or a preview: fixed children stay inside it */

/* page-header: a 28 px title with an optional line under it and one action at the right; the back above the title when there is a way back; 24 px to the content */

/* section-header: a 20 px title with a word action at the right and an optional line; 40 above (24 after a page header, 0 at the top), 16 below */

/* two-column: content and an aside of 300 px (--aside-w) 24 px apart; on a phone the aside comes after the content */

/* settings-layout: vertical tabs at the left (navigation's .ds-tabs--vertical, 200 px), panes of sections at the right separated by hairlines with 32 px around them; on a phone the tabs scroll sideways */
.ds-settings-pane { min-width:0; }
.ds-settings-pane[hidden] { display:none; }
.ds-settings-row { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:40px; padding:8px 0; }
.ds-settings-row + .ds-settings-row { border-top:1px solid var(--ds-line); }
.ds-settings-row-l { min-width:0; font-size:var(--ds-t-15); color:var(--ds-ink); }
.ds-settings-row-l small { display:block; margin-top:2px; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-settings-row-v { flex:none; display:flex; align-items:center; gap:8px; font-size:var(--ds-t-15); color:var(--ds-ink-2); }
@media (max-width:760px) {
  .ds-settings-row { align-items:flex-start; } .ds-settings-row-v { padding-top:2px; }
}

/* form-layout: a form page of 560 px; fieldset groups (inputs' .ds-fieldset: a 15 medium legend, a one-line hint, 16 px between fields) 32 px apart with no hairline between them, the actions at the foot right over a hairline (.ds-form is inputs' plain form) */

/* reading-column: the 680 px centred column; the question as a title, the prose, the words row; 36 under the title, 24 between blocks and 48 px to the box */

/* split-pane: two panes with a draggable hairline (1 px in an 8 px grab area; line-3 under the pointer, ink while dragging); layout.js keeps the ratio under data-key; stacks on a phone (.ds-split is the actions' split button) */
.ds-panes { --ds-split:50%; position:relative; display:grid; grid-template-columns:minmax(0, calc(var(--ds-split) - 4px)) 8px minmax(0, 1fr); align-items:stretch; min-height:0; }
.ds-panes.is-dragging { cursor:col-resize; user-select:none; -webkit-user-select:none; }
.ds-pane { min-width:0; min-height:0; overflow:auto; }
.ds-panes-bar { position:relative; width:8px; cursor:col-resize; touch-action:none; border-radius:var(--ds-r-4); outline:none; }
.ds-panes-bar::before { content:''; position:absolute; top:0; bottom:0; left:50%; width:1px; transform:translateX(-50%); background:var(--ds-line-2); transition:background-color var(--ds-t-3) var(--ds-ease-out), width var(--ds-t-3) var(--ds-ease-out); }
.ds-panes-bar:is( .is-hover)::before { background:var(--ds-line-3); }
.ds-panes-bar:focus-visible::before, .ds-panes-bar.is-dragging::before, .ds-panes.is-dragging .ds-panes-bar::before { width:2px; background:var(--ds-ink); }
@media (max-width:760px) { .ds-panes { grid-template-columns:minmax(0, 1fr); gap:var(--ds-s-6); } .ds-panes-bar { display:none; } }

/* card-grid: a responsive grid of cards, minmax 240 with 16 px gaps; the dense variant minmax 180 with 8 px; the cards enter as a cascade once the grid is seen (data-ds="cascade") */
html.motion [data-ds~="cascade"]:not(.ds-cascade) > * { opacity:0; }

/* sticky-bar: a 56 px bar that sticks to the top of a scroll area over a soft blur of what passes under it; the hairline appears only once something has scrolled under (layout.js watches a sentinel) */
.ds-sticky-s { height:1px; margin-bottom:-1px; pointer-events:none; }

/* toolbar: a 40 px row of icon buttons and words, 4 px apart, with 1 × 16 px separators between groups, a right-hand group pushed to the end; arrows move along it */

/* scroll-area: a scroll container whose ends fade (24 px) only when there is more to scroll; layout.js toggles .is-start and .is-end; vertical by default, .ds-scroll-area--x sideways (.ds-scroll is the data group's strip) */
@property --ds-fade-a { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --ds-fade-b { syntax:'<length>'; inherits:false; initial-value:0px; }
.ds-scroll-area { --ds-fade-a:0px; --ds-fade-b:0px; overflow:auto; overscroll-behavior:contain; min-height:0; min-width:0; -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 var(--ds-fade-a), #000 calc(100% - var(--ds-fade-b)), transparent 100%); mask-image:linear-gradient(to bottom, transparent 0, #000 var(--ds-fade-a), #000 calc(100% - var(--ds-fade-b)), transparent 100%); transition:--ds-fade-a var(--ds-t-3) var(--ds-ease-out), --ds-fade-b var(--ds-t-3) var(--ds-ease-out); }
.ds-scroll-area:not(.is-start) { --ds-fade-a:24px; }
.ds-scroll-area:not(.is-end) { --ds-fade-b:24px; }
.ds-scroll-area--x { overflow:auto hidden; -webkit-mask-image:linear-gradient(to right, transparent 0, #000 var(--ds-fade-a), #000 calc(100% - var(--ds-fade-b)), transparent 100%); mask-image:linear-gradient(to right, transparent 0, #000 var(--ds-fade-a), #000 calc(100% - var(--ds-fade-b)), transparent 100%); }
.ds-scroll-area--x > * { display:flex; gap:8px; width:max-content; }
.ds-scroll-area:focus-visible { outline-offset:-2px; border-radius:var(--ds-r-8); }   /* the ring sits inside, where the fade masks do not cut it */

/* floating-panel: the panel recipe (.ds-panel from base: white, radius 16, hairline and shadow 2) with its two paddings; flat for a panel on white */

/* phone-drawer: the sidebar as a drawer on a phone; slides in from the left over the veil in .32 s, 300 px wide, 16 px from the edges; closes with the X, a tap outside or Escape.
   Opened from data-ds="drawer-toggle" data-drawer="#id" or DS.drawerToggle(el). The same recipe makes .ds-app-side the drawer under 900 px. */
/* wants a home in motion.css, beside ds-drawer-in */
.ds-side-drawer { position:fixed; top:16px; bottom:16px; left:16px; z-index:calc(var(--ds-z-sheet) + 1); display:flex; flex-direction:column; width:300px; max-width:calc(100% - 32px); padding:14px 12px 12px; border-radius:var(--ds-r-16); background:var(--ds-surface); box-shadow:var(--ds-hair), var(--ds-shadow-3); overscroll-behavior:contain; visibility:hidden; transform:translateX(-110%); transition:visibility 0s var(--ds-t-4), box-shadow var(--ds-t-4) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out); }
.ds-side-drawer.is-open { visibility:visible; transform:none; transition-delay:0s; }
html.motion .ds-side-drawer.is-open { animation:ds-drawer-in var(--ds-t-4) var(--ds-ease-out) both; }
.ds-side-drawer.is-leaving { visibility:visible; transform:none; }
html.motion .ds-side-drawer.is-leaving { animation:ds-drawer-out var(--ds-t-4) var(--ds-ease-out) both; }
/* under 900: the shell's sidebar is the drawer, the main fills the screen with no corner, the menu button shows in the main's bar */
@media (max-width:900px) {
  .ds-app { display:block; height:var(--ds-app-h, 100dvh); padding:0; gap:0; }
  .ds-app-side { position:fixed; top:16px; bottom:16px; left:16px; z-index:calc(var(--ds-z-sheet) + 1); width:300px; max-width:calc(100% - 32px); border-radius:var(--ds-r-16); box-shadow:var(--ds-hair), var(--ds-shadow-3); overscroll-behavior:contain; visibility:hidden; transform:translateX(-110%); transition:visibility 0s var(--ds-t-4); }
  .ds-app-side.is-open { visibility:visible; transform:none; transition-delay:0s; }
  html.motion .ds-app-side.is-open { animation:ds-drawer-in var(--ds-t-4) var(--ds-ease-out) both; }
  .ds-app-side.is-leaving { visibility:visible; transform:none; }
  html.motion .ds-app-side.is-leaving { animation:ds-drawer-out var(--ds-t-4) var(--ds-ease-out) both; }
  .ds-app.is-rail { grid-template-columns:none; }
  .ds-app.is-rail .ds-app-side { padding:14px 12px 12px; align-items:stretch; }
   .ds-app.is-rail .ds-app-side .ds-btn > :not(.ds-i), .ds-app.is-rail .ds-nav-row > :not(.ds-i):not(.ds-nav-row-l) { display:revert; }
  .ds-app.is-rail .ds-app-side .ds-btn { flex-direction:row; gap:8px; width:auto; height:var(--ds-ctl); min-height:0; padding:0 16px; margin:0; border-radius:var(--ds-r-pill); font-size:var(--ds-t-14); }
  .ds-app.is-rail .ds-nav-row { grid-template-columns:28px minmax(0, 1fr) auto; grid-template-rows:none; justify-items:stretch; row-gap:0; width:100%; height:40px; margin:0; padding:0 10px; border-radius:var(--ds-r-8); }
  .ds-app.is-rail .ds-nav-row .ds-i { width:18px; height:18px; }
}


/* ─── ds/components/actions.css ─── */
/* Doctorpedia Design System · actions
   Buttons, pills and words. One ink button per screen; white pills with the drawn ring everywhere else; ghost buttons in rows; words under
   an answer. Heights 32 / 40 / 48, pill corners, 14 px medium words, icons 16 inside a button and 18 alone. An icon on a button carries
   its word (Sergio, 9 Nov 2026); an icon alone is the exception, for what is evident or secondary, with a name and a tooltip. */

/* the pill: the default is the white secondary, with the ring on hover */
.ds-btn { --ds-a:0deg; position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center; gap:8px; height:var(--ds-ctl); padding:0 16px; border-radius:var(--ds-r-pill); font-family:var(--ds-sans); font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:1; white-space:nowrap; color:var(--ds-ink-2); background:var(--ds-surface); box-shadow:var(--ds-hair-2); user-select:none; -webkit-user-select:none; text-decoration:none; vertical-align:middle; }
.ds-btn > * { position:relative; z-index:1; }
.ds-btn .ds-i { width:16px; height:16px; }
.ds-btn::before { content:''; position:absolute; inset:0; z-index:0; padding:1px; border-radius:inherit; pointer-events:none; opacity:0; background:conic-gradient(from 270deg, var(--ds-ink) var(--ds-a), transparent 0); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; transition:opacity .45s var(--ds-ease-out), --ds-a 0s linear .45s; }
.ds-btn:is( .is-hover) { --ds-a:360deg; color:var(--ds-ink); }
.ds-btn:is( .is-hover)::before { opacity:1; transition:opacity .3s var(--ds-ease-out), --ds-a var(--ds-t-5) var(--ds-ease-draw); }
.ds-btn:is( .is-hover) .ds-i { color:var(--ds-ink); }
.ds-btn:disabled, .ds-btn[aria-disabled="true"] { opacity:.45; pointer-events:none; }
.ds-btn:disabled::before { display:none; }
/* sizes */
.ds-btn--sm { height:var(--ds-ctl-sm); padding:0 12px; font-size:var(--ds-t-13); gap:6px; }
.ds-btn--lg { height:var(--ds-ctl-lg); padding:0 20px; font-size:var(--ds-t-15); gap:10px; }
/* the one ink button */
.ds-btn--primary { color:var(--ds-on-accent); background:var(--ds-accent); box-shadow:none; }
.ds-btn--primary::before { display:none; }
.ds-btn--primary:is( .is-hover) { color:var(--ds-on-accent); background:color-mix(in srgb, var(--ds-accent) 84%, var(--ds-surface)); }
.ds-btn--primary:is( .is-hover) .ds-i { color:var(--ds-on-accent); }
/* quiet: a grey pill for a button that is not ready yet (the send button with an empty box) */
.ds-btn--quiet { color:var(--ds-ink-3); background:var(--ds-surface-2); box-shadow:none; }
.ds-btn--quiet::before { display:none; }
.ds-btn--quiet:is( .is-hover) { color:var(--ds-ink); background:var(--ds-press); }
/* ghost: words and an icon with no edge; a soft pill appears under the pointer */
.ds-btn--ghost { color:var(--ds-ink-2); background:none; box-shadow:none; }
.ds-btn--ghost::before { display:none; }
.ds-btn--ghost:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
/* danger: a ghost in the danger colour, for Delete and nothing else */
.ds-btn--danger { color:var(--ds-danger); background:none; box-shadow:none; }
.ds-btn--danger::before { display:none; }
.ds-btn--danger:is( .is-hover) { color:color-mix(in srgb, var(--ds-danger) 82%, var(--ds-ink)); background:color-mix(in srgb, var(--ds-danger) 8%, transparent); }   /* the word darkens a step on the tint, so it still reads at 4.5 to 1 */
.ds-btn--danger .ds-i, .ds-btn--danger:is( .is-hover) .ds-i { color:inherit; }
/* pressed: a toggling pill fills with ink while it is on */
.ds-btn[aria-pressed="true"] { color:var(--ds-on-accent); background:var(--ds-accent); box-shadow:none; }
.ds-btn[aria-pressed="true"]::before { display:none; }
.ds-btn[aria-pressed="true"] .ds-i { color:var(--ds-on-accent); }
/* loading: a thin ring turns at the left while the words dim; the pill keeps its width */
.ds-btn.is-loading { pointer-events:none; }
.ds-btn.is-loading > * { opacity:.55; transition:opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-btn.is-loading::after { content:''; order:-1; width:14px; height:14px; flex:none; border-radius:50%; border:1.5px solid currentColor; border-right-color:transparent; animation:ds-spin .8s linear infinite; opacity:.8; }
.ds-btn--sm.is-loading::after { width:12px; height:12px; }
/* an icon alone, the exception (a player's controls, a titled dialog's X, carousel arrows): round, ghost by default; framed when it stands on its own */
.ds-icon-btn { --ds-a:0deg; position:relative; isolation:isolate; display:inline-grid; place-items:center; width:var(--ds-ctl); height:var(--ds-ctl); border-radius:50%; color:var(--ds-ink-2); background:none; flex:none; }
.ds-icon-btn .ds-i { width:18px; height:18px; }
.ds-icon-btn:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-icon-btn[aria-expanded="true"] { color:var(--ds-ink); background:var(--ds-press); }
.ds-icon-btn--sm { width:var(--ds-ctl-sm); height:var(--ds-ctl-sm); } .ds-icon-btn--sm .ds-i { width:16px; height:16px; }
.ds-icon-btn:disabled { opacity:.45; pointer-events:none; }
/* the close: an X of 16 px in a round ghost, at the top right of what it closes */
/* the close of a dialog or a sheet since 19 Nov 2026 (BiteSized's .hl-close): a small pill that says Close, with its cross; it stands in
   the dialog's head beside the title, and Escape does the same */
.ds-close-pill { display:inline-flex; flex:none; align-items:center; gap:6px; height:36px; padding:0 14px 0 11px; border-radius:var(--ds-r-pill); background:var(--ds-surface); box-shadow:inset 0 0 0 1px var(--ds-line); font-size:var(--ds-t-14); line-height:1; color:var(--ds-ink-2); transition:box-shadow var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-close-pill .ds-i { width:15px; height:15px; }
.ds-close-pill:is( .is-hover) { box-shadow:inset 0 0 0 1px var(--ds-line-3); background:var(--ds-hover); color:var(--ds-ink); }
.ds-close-pill:active { transform:scale(.97); }
.ds-close-pill:focus-visible { border-radius:var(--ds-r-pill); }
/* the back: a chevron and a word; the chevron steps 2 px left under the pointer, the one motion with a direction */
/* words: the row of actions under an answer; each is a word in grey that darkens, nothing else */
.ds-word { display:inline-flex; align-items:center; gap:6px; padding:0; height:auto; font-family:var(--ds-sans); font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-3); background:none; border-radius:var(--ds-r-4); transition:color var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-word .ds-i { width:16px; height:16px; }
.ds-word:is( .is-hover), .ds-word.is-on, .ds-word[aria-pressed="true"], .ds-word[aria-expanded="true"] { color:var(--ds-ink); }
.ds-word:disabled { opacity:.45; pointer-events:none; }
/* the second row of words that unfolds behind "Options" */
/* links */
/* a key: mono, a hairline, 20 px tall */
.ds-kbd { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border-radius:var(--ds-r-4); background:var(--ds-surface); box-shadow:var(--ds-hair-2); font-family:var(--ds-mono); font-size:var(--ds-t-11); line-height:1; color:var(--ds-ink-3); vertical-align:middle; }
/* groups: pills joined by hairlines, one edge around all */
/* split: the ink button with a second part that opens choices */
/* the segmented control (refreshed 19 Nov 2026 from BiteSized, clean.css section 19): a grey track with its hairline, equal parts, one white
   plate under the chosen part that slides to the next with the family's spring in .42 s; the words never fill. The plate is placed by
   actions.js in both directions, so a choice that wraps on a phone (the page tone, two by two) slides down as well as across. */
.ds-seg { position:relative; display:inline-grid; grid-auto-flow:column; grid-auto-columns:1fr; align-items:stretch; gap:2px; padding:3px; border-radius:var(--ds-r-pill); background:var(--ds-surface-2); box-shadow:inset 0 0 0 1px var(--ds-line-2); isolation:isolate; }
.ds-seg button { position:relative; z-index:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; height:32px; padding:0 14px; border-radius:var(--ds-r-pill); font-size:var(--ds-t-14); line-height:1; white-space:nowrap; color:var(--ds-ink-2); transition:color var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-seg button:is( .is-hover) { color:var(--ds-ink); }
.ds-seg button:is([aria-pressed="true"], [aria-checked="true"]) { color:var(--ds-ink); }
.ds-seg button:active { transform:scale(.97); }
.ds-seg button .ds-i { width:16px; height:16px; }
.ds-seg-thumb { position:absolute; z-index:0; top:0; left:0; width:0; height:0; border-radius:var(--ds-r-pill); background:var(--ds-surface); box-shadow:var(--ds-shadow-plate), 0 0 0 1px var(--ds-line); transition:transform var(--ds-t-5) var(--ds-ease-spring), width var(--ds-t-5) var(--ds-ease-spring), height var(--ds-t-5) var(--ds-ease-spring), opacity var(--ds-t-2) var(--ds-ease-out); }
.ds-seg:not(:has(button:is([aria-pressed="true"], [aria-checked="true"]))) .ds-seg-thumb { opacity:0; }
.ds-seg--sm button { height:26px; padding:0 10px; font-size:var(--ds-t-13); }
/* inside a row of a card (the account card's Appearance): a softer track with no hairline, 10 px corners, a plate of 8 */
.ds-seg--soft { border-radius:var(--ds-r-10); box-shadow:none; }
.ds-seg--soft button { height:26px; padding:0 10px; border-radius:var(--ds-r-8); font-size:var(--ds-t-13); }
.ds-seg--soft .ds-seg-thumb { border-radius:var(--ds-r-8); }
/* 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 */
@media (max-width: 639.98px) {
  .ds-seg--tone { grid-auto-flow:row; grid-template-columns:1fr 1fr; width:100%; border-radius:var(--ds-r-16); }
  .ds-seg--tone button, .ds-seg--tone .ds-seg-thumb { border-radius:var(--ds-r-12); }
}
/* copy: the word turns to Copied with a check for a moment */
.ds-copy .ds-copy-idle, .ds-copy .ds-copy-done { display:inline-flex; align-items:center; gap:inherit; }   /* base makes an svg a block; inside the pill it stays on the line */
.ds-copy .ds-copy-done { display:none; }
.ds-copy.is-done .ds-copy-idle { display:none; } .ds-copy.is-done .ds-copy-done { display:inline-flex; align-items:center; gap:6px; color:var(--ds-people); }
html.motion .ds-copy.is-done .ds-copy-done { animation:ds-rise var(--ds-t-3) var(--ds-ease-out) both; }
/* a row of buttons: the primary last on the right, 8 px apart */
.ds-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }

/* ── the word on a button (0.4.3; Sergio, 9 Nov 2026: these people are not digital natives, an icon alone can confuse them). An icon on a
      button carries its word: one or two words, sentence case, a plain verb or noun. .ds-btn-l holds a word a script changes ── */
.ds-btn-l { white-space:nowrap; }
.ds-btn--ghost[aria-haspopup][aria-expanded="true"] { color:var(--ds-ink); background:var(--ds-press); }   /* a menu or a popover is open from it */
/* a toggle that says its state (Save, Saved): the word and the filled icon tell it; ink words, never an ink fill */
.ds-btn.is-on, .ds-btn.is-on .ds-i { color:var(--ds-ink); }
/* the word under the icon, for a narrow row (a phone's toolbar, a card's foot, a bar): a cell of at least 56 by 52, the icon 20, the word
   12 px in ink-2; no edge, the soft pill under the pointer. Under 640 px a .ds-adapt row turns its labelled ghosts into it by itself */


/* ─── ds/components/inputs.css ─── */
/* Doctorpedia Design System · inputs
   Fields, choices and the pieces that take words, numbers, dates, files and marks from a doctor. One box everywhere: 40 tall, radius 10,
   white, a hairline that deepens on focus (the field is the only piece whose edge deepens instead of drawing a ring). A label above at
   13 px medium, a hint below at 13 px. Nothing native where people look: selects, dates, numbers, files, ranges, checks and radios are
   drawn here; a real input may sit hidden for forms. Dark mode is tokens only. */

/* the field: label.ds-field > .ds-field-label + .ds-field-box (the input inside) + .ds-field-hint or .ds-field-error */
.ds-field { display:grid; gap:6px; min-width:0; width:100%; max-width:100%; font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink); text-align:left; cursor:default; }
.ds-field-label { font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:var(--ds-lh-ui); color:var(--ds-ink-2); transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-field-label small { margin-left:6px; font-size:var(--ds-t-13); font-weight:var(--ds-w-regular); color:var(--ds-ink-3); }
.ds-field-box { position:relative; display:flex; align-items:center; gap:8px; width:100%; min-width:0; height:var(--ds-ctl); padding:0 12px; border-radius:var(--ds-r-10); background:var(--ds-surface); box-shadow:var(--ds-hair-2); color:var(--ds-ink); font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); text-align:left; cursor:text; transition:box-shadow var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out), opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-field-box:is( .is-hover) { box-shadow:0 0 0 1px color-mix(in srgb, var(--ds-line-3) 55%, var(--ds-line-2)); }
.ds-field-box > input, .ds-field-box > textarea { flex:1 1 auto; min-width:0; width:100%; height:100%; margin:0; padding:0; border:0; background:none; outline:none; box-shadow:none; font-family:var(--ds-sans); font-size:inherit; line-height:inherit; color:var(--ds-ink); -webkit-appearance:none; appearance:none; }
.ds-field-box > input:-webkit-autofill { -webkit-box-shadow:0 0 0 1000px var(--ds-surface) inset; -webkit-text-fill-color:var(--ds-ink); caret-color:var(--ds-ink); }
.ds-field-box .ds-i { color:var(--ds-ink-2); transition:color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-field-ico { display:grid; place-items:center; flex:none; color:var(--ds-ink-2); }
.ds-field-hint { font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-field-error { font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-danger); }
.ds-field.is-invalid .ds-field-box, .ds-field.is-invalid .ds-field-box:is( .is-hover) { box-shadow:0 0 0 1px var(--ds-danger); }
.ds-field.is-invalid .ds-field-hint { display:none; }
.ds-field-msg > span > .ds-field-error { display:block; }   /* the error line opens through .ds-reveal when a behaviour sets it */
/* a small round ghost inside the box (the clear X, the eye, minus and plus): 28 px, a 16 px icon, 6 px from the edge */
.ds-field-btn { display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; color:var(--ds-ink-2); background:none; cursor:pointer; transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-field-btn .ds-i { width:16px; height:16px; color:inherit; }
.ds-field-btn:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-field-btn:active { transform:scale(.94); transition-duration:var(--ds-t-1); }
.ds-field-btn:disabled { opacity:.35; pointer-events:none; }
.ds-field-btn[aria-pressed="true"] { color:var(--ds-ink); }
.ds-field-box > .ds-field-btn:last-child { margin-right:-6px; } .ds-field-box > .ds-field-btn:first-child { margin-left:-6px; }
.ds-field-btn:focus-visible { outline-offset:0; border-radius:50%; }
/* disabled: a grey box, grey words, nothing answers; read-only: the words without a box edge */
.ds-field:has(> .ds-field-box > :is(input, textarea):disabled), .ds-field.is-disabled { pointer-events:none; }
.ds-field:has(> .ds-field-box > :is(input, textarea):disabled) .ds-field-box, .ds-field.is-disabled .ds-field-box { background:var(--ds-surface-2); box-shadow:var(--ds-hair); color:var(--ds-ink-3); }
.ds-field:has(> .ds-field-box > :is(input, textarea):disabled) .ds-field-box > input, .ds-field.is-disabled .ds-field-box > input, .ds-field:has(> .ds-field-box > :is(input, textarea):disabled) .ds-field-box .ds-i, .ds-field.is-disabled .ds-i { color:var(--ds-ink-3); }
.ds-field:has(> .ds-field-box > :is(input, textarea):disabled) .ds-field-label, .ds-field.is-disabled .ds-field-label { color:var(--ds-ink-3); }
.ds-field:has(> .ds-field-box > [readonly]) .ds-field-box { background:transparent; box-shadow:var(--ds-hair); cursor:default; }
/* sizes: 32 in dense rows, 40 by default, 48 on a door */

/* the textarea: the same box, taller, growing with the words from two lines to about eight, then scrolling (data-ds="autogrow") */

/* the search: the glass at the left, a clear X that appears once something is typed; Escape clears (data-ds="search") */
.ds-field--search .ds-field-box > input::-webkit-search-cancel-button { display:none; }
.ds-field-clear { opacity:1; transform:none; }
.ds-field-box:has(> input:placeholder-shown) .ds-field-clear { opacity:0; transform:scale(.8); pointer-events:none; }

/* the password: an eye that reveals (aria-pressed) and a three-step strength line below (data-ds="password") */
.ds-field-eye > span { display:grid; place-items:center; } .ds-field-eye .ds-eye-off { display:none; } .ds-field-eye:is([aria-pressed="true"], .is-on) .ds-eye-on { display:none; } .ds-field-eye:is([aria-pressed="true"], .is-on) .ds-eye-off { display:grid; }
/* the eye carries its word, Show or Hide (Words on buttons): a small pill inside the field's end */
.ds-field-eye:has(.ds-field-eye-l) { display:inline-flex; align-items:center; gap:6px; width:auto; padding:0 10px 0 8px; border-radius:var(--ds-r-pill); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1; white-space:nowrap; }
.ds-field-eye:has(.ds-field-eye-l):focus-visible { border-radius:var(--ds-r-pill); }
.ds-field-eye.is-on { color:var(--ds-ink); }
.ds-strength { display:flex; align-items:center; gap:10px; min-height:18px; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-strength-bars { display:flex; gap:4px; }
.ds-strength-bars i { display:block; width:24px; height:2px; border-radius:var(--ds-r-pill); background:var(--ds-line-2); transition:background-color var(--ds-t-4) var(--ds-ease-out); }
.ds-strength-bars i:nth-child(2) { transition-delay:40ms; } .ds-strength-bars i:nth-child(3) { transition-delay:80ms; }
.ds-strength[data-level="1"] i:nth-child(-n+1), .ds-strength[data-level="2"] i:nth-child(-n+2), .ds-strength[data-level="3"] i:nth-child(-n+3) { background:var(--ds-ink); }
.ds-strength-word { min-width:0; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-strength[data-level="3"] .ds-strength-word { color:var(--ds-ink); }

/* the number: minus and plus inside the box, the figure centred in tabular numbers, no native spinners (data-ds="number") */
.ds-field--number .ds-field-box { padding:0 6px; gap:4px; }
.ds-field--number .ds-field-box > input { text-align:center; font-variant-numeric:tabular-nums; }
.ds-field--number .ds-field-box > .ds-field-btn { margin:0; }

/* the phone: the country prefix as a trigger at the left of the box, a hairline between, the number formatted as typed (data-ds="phone") */
.ds-field-prefix { display:inline-flex; align-items:center; gap:4px; flex:none; height:28px; margin-left:-6px; padding:0 6px 0 8px; border-radius:var(--ds-r-pill); font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); font-variant-numeric:tabular-nums; color:var(--ds-ink-2); cursor:pointer; transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-field-prefix:is( .is-hover), .ds-field-prefix[aria-expanded="true"] { color:var(--ds-ink); background:var(--ds-hover); }
.ds-field-prefix .ds-i { width:16px; height:16px; color:var(--ds-ink-3); }
.ds-field-prefix:is( .is-hover) .ds-i, .ds-field-prefix[aria-expanded="true"] .ds-i { color:var(--ds-ink); }
.ds-field-sep { flex:none; width:1px; height:16px; background:var(--ds-line-2); }
/* the chevron that opens a list turns while the list is open: the one turn with a job */
.ds-field-chev { transform:rotate(90deg); transition:transform var(--ds-t-4) var(--ds-ease-inout), color var(--ds-t-3) var(--ds-ease-out); }
[aria-expanded="true"] > .ds-field-chev, [aria-expanded="true"] .ds-field-chev { transform:rotate(-90deg); }

/* the code: six cells for a code sent by email or SMS; typing advances, Backspace goes back, a paste fills all (data-ds="otp") */
.ds-otp { display:flex; gap:8px; }
.ds-otp-cell { width:42px; height:var(--ds-ctl-lg); padding:0; border:0; border-radius:var(--ds-r-10); background:var(--ds-surface); box-shadow:var(--ds-hair-2); text-align:center; font-family:var(--ds-mono); font-size:var(--ds-t-20); font-variant-numeric:tabular-nums; color:var(--ds-ink); outline:none; caret-color:var(--ds-ink); transition:box-shadow var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); -webkit-appearance:none; appearance:none; }
.ds-otp-cell:is( .is-hover) { box-shadow:0 0 0 1px color-mix(in srgb, var(--ds-line-3) 55%, var(--ds-line-2)); }
.ds-otp.is-complete .ds-otp-cell { box-shadow:0 0 0 1px var(--ds-ink); }
.ds-otp.is-invalid .ds-otp-cell { box-shadow:0 0 0 1px var(--ds-danger); }
.ds-otp-cell:disabled { background:var(--ds-surface-2); box-shadow:var(--ds-hair); color:var(--ds-ink-3); }

/* the tags: chips typed into a box; Enter or a comma adds, Backspace takes the last, each chip has its X (data-ds="tags") */
.ds-field--tags .ds-field-box { height:auto; min-height:var(--ds-ctl); flex-wrap:wrap; padding:6px 12px; gap:6px; }
.ds-field--tags .ds-field-box > input { flex:1 1 80px; width:auto; min-width:80px; height:28px; }
.ds-tag-chip { display:inline-flex; align-items:center; gap:2px; height:28px; padding:0 4px 0 10px; border-radius:var(--ds-r-8); background:var(--ds-surface-2); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-2); white-space:nowrap; max-width:100%; transition:background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-2) var(--ds-ease-out); }
.ds-tag-chip > span { overflow:hidden; text-overflow:ellipsis; }
.ds-tag-chip.is-leaving { opacity:0; transform:scale(.9); }
.ds-tag-chip-x { display:grid; place-items:center; width:20px; height:20px; border-radius:50%; color:var(--ds-ink-3); cursor:pointer; transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-tag-chip-x .ds-i { width:14px; height:14px; } .ds-tag-chip-x:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-tag-chip-x:focus-visible { outline-offset:0; border-radius:50%; }

/* the select: our own, nothing native. A field-like trigger with a chevron; the list arrives like a menu (data-ds="select") */
.ds-select { justify-content:space-between; cursor:pointer; user-select:none; -webkit-user-select:none; }
.ds-select-value { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; color:var(--ds-ink); transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-select-value.is-placeholder { color:var(--ds-ink-4); }
.ds-select > .ds-field-chev { flex:none; width:16px; height:16px; color:var(--ds-ink-3); }
.ds-select:is( .is-hover) > .ds-field-chev, .ds-select[aria-expanded="true"] > .ds-field-chev { color:var(--ds-ink); }
.ds-select[aria-expanded="true"], .ds-select.is-open { box-shadow:var(--ds-hair-3); }
.ds-select.is-open > .ds-field-chev { transform:rotate(-90deg); color:var(--ds-ink); }
.ds-select:disabled { pointer-events:none; background:var(--ds-surface-2); box-shadow:var(--ds-hair); } .ds-select:disabled .ds-select-value, .ds-select:disabled > .ds-field-chev { color:var(--ds-ink-3); }
.ds-select:focus-visible { outline-offset:2px; border-radius:var(--ds-r-10); }
/* the chosen ones of a multiselect sit in the trigger as small chips, or as "3 chosen" when more than two */
.ds-select-chips { display:flex; gap:4px; min-width:0; overflow:hidden; }
.ds-select-chip { display:inline-flex; align-items:center; height:24px; padding:0 8px; border-radius:var(--ds-r-6); background:var(--ds-surface-2); font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-2); white-space:nowrap; }
html.motion .ds-select-chip { animation:ds-scale-in var(--ds-t-3) var(--ds-ease-out) both; }
/* the list: a menu with options; the active one carries the soft pill, the chosen one a check at the right */
.ds-listbox { position:fixed; z-index:var(--ds-z-menu); max-height:288px; overflow:auto; overscroll-behavior:contain; outline:none; }
.ds-listbox .ds-menu-item { justify-content:space-between; cursor:pointer; }
.ds-listbox .ds-menu-item > span { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.ds-listbox .ds-menu-item.is-active, .ds-listbox .ds-menu-item:is( .is-hover) { background:var(--ds-hover); color:var(--ds-ink); }
.ds-listbox .ds-menu-item[aria-selected="true"] { color:var(--ds-ink); }
.ds-listbox .ds-menu-item[aria-disabled="true"] { opacity:.45; pointer-events:none; }
.ds-listbox-check { flex:none; width:16px; height:16px; color:var(--ds-ink); opacity:0; transform:scale(.8); transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-listbox .ds-menu-item[aria-selected="true"] .ds-listbox-check { opacity:1; transform:none; }
.ds-listbox .ds-check { margin:0; }
.ds-listbox mark { background:var(--ds-lilac-soft); color:inherit; }
.ds-listbox-none { padding:8px 10px; font-size:var(--ds-t-13); color:var(--ds-ink-3); }
.ds-listbox-meta { flex:none; font-family:var(--ds-mono); font-size:var(--ds-t-12); color:var(--ds-ink-4); }
html.motion .ds-listbox .ds-menu-item { animation:ds-rise var(--ds-t-3) var(--ds-ease-out) both; animation-delay:calc(min(var(--i, 0), 8) * 16ms); }

/* the list is a navigation menu (.ds-menu, .ds-menu-item) with options inside; the phone's prefix list is DS.menu itself */
.ds-listbox .ds-menu-item { cursor:pointer; transition:background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }

/* the combobox: typing filters the list and marks the match; Enter picks; free words with data-free (data-ds="combobox") */
.ds-field--combo .ds-field-box > input[aria-expanded="true"] ~ .ds-field-btn .ds-field-chev { transform:rotate(-90deg); }

/* the date and the time: masked words with their icon at the right; the calendar itself is the pickers group's (data-ds="date-input", "time-input") */
.ds-field--date .ds-field-box > input, .ds-field--time .ds-field-box > input { font-variant-numeric:tabular-nums; }
.ds-field--time .ds-field-box > .ds-seg { flex:none; margin-right:-6px; }

/* a range of two fields on one row with a quiet dash between */

/* the slider: a hairline track, an ink fill, an 18 px white thumb, a value bubble while dragging or focused (data-ds="slider") */
.ds-slider { position:relative; display:block; width:100%; min-width:200px; height:var(--ds-ctl); padding:0; touch-action:none; user-select:none; -webkit-user-select:none; --ds-from:0%; --ds-to:0%; }
.ds-slider-track { position:absolute; left:9px; right:9px; top:50%; height:2px; margin-top:-1px; border-radius:var(--ds-r-pill); background:var(--ds-line-2); transition:background-color var(--ds-t-4) var(--ds-ease-out); }
.ds-slider-fill { position:absolute; top:0; bottom:0; left:var(--ds-from); width:calc(var(--ds-to) - var(--ds-from)); border-radius:var(--ds-r-pill); background:var(--ds-ink); transition:left var(--ds-t-4) var(--ds-ease-inout), width var(--ds-t-4) var(--ds-ease-inout), background-color var(--ds-t-4) var(--ds-ease-out); }
.ds-slider-thumb { position:absolute; top:50%; left:calc(9px + (100% - 18px) * var(--ds-p, 0) / 100); width:18px; height:18px; margin:-9px 0 0 -9px; border-radius:50%; background:var(--ds-surface); box-shadow:var(--ds-hair-2), var(--ds-shadow-1); cursor:grab; outline:none; transition:left var(--ds-t-4) var(--ds-ease-inout), box-shadow var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-slider-thumb:is( .is-hover) { box-shadow:var(--ds-hair-3), var(--ds-shadow-1); }
 .ds-slider-thumb.is-dragging { box-shadow:0 0 0 1px var(--ds-ink), var(--ds-shadow-1); }
.ds-slider-thumb.is-dragging { cursor:grabbing; }
.ds-slider.is-dragging .ds-slider-thumb, .ds-slider.is-dragging .ds-slider-fill { transition-property:box-shadow, transform; }
.ds-slider-bubble { position:absolute; left:50%; bottom:100%; margin-bottom:6px; height:22px; padding:0 7px; border-radius:var(--ds-r-6); background:var(--ds-ink); color:var(--ds-on-accent); font-family:var(--ds-mono); font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); line-height:22px; white-space:nowrap; transform:translate(-50%, 3px); opacity:0; pointer-events:none; transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-slider-thumb:is( .is-dragging) .ds-slider-bubble { opacity:1; transform:translate(-50%, 0); }
.ds-slider.is-disabled { opacity:.45; pointer-events:none; }

/* the switch (refreshed 19 Nov 2026 from BiteSized, clean-pages.css): button[role=switch]; a 26 × 44 track in the third line's grey, a 20 px
   white thumb that travels 18 px on the spring; on, the track is ink and the thumb the surface (data-ds="switch") */
.ds-switch { position:relative; display:inline-block; flex:none; width:44px; height:26px; border-radius:var(--ds-r-pill); background:var(--ds-line-3); vertical-align:middle; cursor:pointer; transition:background-color var(--ds-t-3) var(--ds-ease-out), box-shadow var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-switch::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:var(--ds-on-dark); box-shadow:var(--ds-shadow-plate), 0 0 0 .5px var(--ds-line); transition:transform var(--ds-t-5) var(--ds-ease-spring), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-switch:is( .is-hover) { box-shadow:inset 0 0 0 1px var(--ds-line-3); }
.ds-switch[aria-checked="true"] { background:var(--ds-ink); box-shadow:none; }
.ds-switch[aria-checked="true"]::after { transform:translateX(18px); background:var(--ds-surface); }
.ds-switch:disabled { opacity:.45; pointer-events:none; }
.ds-switch:focus-visible { outline-offset:2px; border-radius:var(--ds-r-pill); }
/* the words go left or right of the switch by their order in the row; --between spreads them over a settings row */

/* the check and the radio (the check refreshed 19 Nov 2026 from BiteSized's drawn box, forms.css): 20 px, 6 px corners (round for the radio),
   a firm line; checked fills ink and the tick scales in on the spring. The real input sits hidden for the form; nothing native shows */
.ds-check-row { position:relative; display:inline-flex; align-items:flex-start; gap:10px; max-width:100%; font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink); cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ds-check-row > input, .ds-dropzone > input { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; opacity:0; }
.ds-check, .ds-radio { position:relative; flex:none; display:grid; place-items:center; width:20px; height:20px; margin-top:0; border-radius:var(--ds-r-6); background:var(--ds-surface); box-shadow:inset 0 0 0 1.5px var(--ds-line-3); color:var(--ds-on-accent); transition:background-color var(--ds-t-3) var(--ds-ease-out), box-shadow var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-radio { border-radius:50%; }
.ds-check::after { content:''; grid-area:1 / 1; 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 var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-spring); }
.ds-check::before { content:''; grid-area:1 / 1; width:8px; height:2px; border-radius:1px; background:var(--ds-ink); transform:scaleX(0); transition:transform var(--ds-t-3) var(--ds-ease-out); }
.ds-radio::after { content:''; width:6px; height:6px; border-radius:50%; background:var(--ds-on-accent); transform:scale(0); transition:transform var(--ds-t-3) var(--ds-ease-out); }
.ds-check-row:is( .is-hover) .ds-check, .ds-check.is-hover, .ds-radio.is-hover, .ds-listbox .ds-menu-item:is(.is-active) .ds-check { box-shadow:inset 0 0 0 1.5px var(--ds-ink-4); }
input:checked + .ds-check, .ds-check.is-on { background:var(--ds-ink); box-shadow:none; }
input:checked + .ds-check::after, .ds-check.is-on::after { opacity:1; transform:none; }
input:indeterminate + .ds-check { background:var(--ds-surface); box-shadow:inset 0 0 0 1.5px var(--ds-ink-4); }
input:indeterminate + .ds-check::after { opacity:0; transform:scale(.6); }
input:indeterminate + .ds-check::before { transform:scaleX(1); }
input:checked + .ds-radio, .ds-radio.is-on { background:var(--ds-ink); box-shadow:none; }
input:checked + .ds-radio::after, .ds-radio.is-on::after { transform:scale(1); }
input:focus-visible + .ds-check { outline:2px solid var(--ds-ink); outline-offset:2px; }
input:focus-visible + .ds-radio { outline:2px solid var(--ds-ink); outline-offset:2px; border-radius:50%; }
.ds-check-row:has(> input:disabled) { cursor:default; }
input:disabled ~ .ds-check, input:disabled ~ .ds-radio { opacity:.45; }

/* a group of checks: a 15 px medium label, a one-line hint, the rows 12 px apart; "Select all" at the top goes indeterminate (data-ds="check-group") */

/* radios as cards: white, a hairline, a title and one line; the chosen card takes a 1 px ink edge and a check; three across, one on a phone */

/* the rating: five small circles, not stars, filled ink up to the chosen one; the pointer previews; arrows move (data-ds="rating") */
.ds-rating { display:inline-flex; align-items:center; gap:2px; }
.ds-rating-dot { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ds-rating-dot::before { content:''; width:14px; height:14px; border-radius:50%; background:var(--ds-surface); box-shadow:var(--ds-hair-3); transition:background-color var(--ds-t-3) var(--ds-ease-out), box-shadow var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-rating-dot.is-on::before { background:var(--ds-ink); box-shadow:none; }
.ds-rating:hover .ds-rating-dot::before, .ds-rating:has(.is-hover) .ds-rating-dot::before { background:var(--ds-ink); box-shadow:none; }
.ds-rating .ds-rating-dot:hover ~ .ds-rating-dot::before, .ds-rating .ds-rating-dot.is-hover ~ .ds-rating-dot::before { background:var(--ds-surface); box-shadow:var(--ds-hair-3); }
.ds-rating-dot:active::before { transform:scale(.9); }
.ds-rating-dot:focus-visible { outline:2px solid var(--ds-ink); outline-offset:-2px; border-radius:50%; }
.ds-rating.is-disabled { opacity:.45; pointer-events:none; }
.ds-rating-word { margin-left:8px; font-size:var(--ds-t-13); color:var(--ds-ink-3); min-width:0; }

/* chips: one choice (or several) among small white pills, 30 px, loose on the page under a small grey label; the chosen is ink (data-ds="chips") */
.ds-chips { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
.ds-chip { --ds-a:0deg; position:relative; isolation:isolate; display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 12px; border-radius:var(--ds-r-pill); background:var(--ds-surface); box-shadow:var(--ds-hair-2); font-family:var(--ds-sans); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-2); white-space:nowrap; cursor:pointer; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent; }
.ds-chip > * { position:relative; z-index:1; }
.ds-chip .ds-i { width:16px; height:16px; }
.ds-chip::before { content:''; position:absolute; inset:0; z-index:0; padding:1px; border-radius:inherit; pointer-events:none; opacity:0; background:conic-gradient(from 270deg, var(--ds-ink) var(--ds-a), transparent 0); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; transition:opacity .45s var(--ds-ease-out), --ds-a 0s linear .45s; }
.ds-chip:is( .is-hover) { --ds-a:360deg; color:var(--ds-ink); }
.ds-chip:is( .is-hover)::before { opacity:1; transition:opacity .3s var(--ds-ease-out), --ds-a var(--ds-t-5) var(--ds-ease-draw); }
.ds-chip[aria-checked="true"], .ds-chip[aria-pressed="true"], .ds-chip.is-on { color:var(--ds-on-accent); background:var(--ds-ink); box-shadow:none; }
.ds-chip[aria-checked="true"]::before, .ds-chip[aria-pressed="true"]::before, .ds-chip.is-on::before { display:none; }
.ds-chip:disabled { opacity:.45; pointer-events:none; }
.ds-chip:focus-visible { border-radius:var(--ds-r-pill); }
.ds-chips-clear { opacity:0; transform:translateX(-4px); pointer-events:none; transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-chips-clear.is-shown { opacity:1; transform:none; pointer-events:auto; }

/* the dropzone: an area with a hairline, no dashes, and one line; the edge deepens while a file is over it (data-ds="dropzone") */
.ds-dropzone { position:relative; display:grid; place-items:center; align-content:center; gap:4px; width:100%; min-height:120px; padding:24px; border-radius:var(--ds-r-12); background:var(--ds-surface); box-shadow:var(--ds-hair-2); text-align:center; font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink-2); cursor:pointer; transition:box-shadow var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out); }
 .ds-dropzone.is-over { box-shadow:var(--ds-hair-3); }
.ds-dropzone.is-over { background:color-mix(in srgb, var(--ds-ink) 2%, var(--ds-surface)); }
.ds-dropzone.is-over .ds-dropzone-line, .ds-dropzone.is-over .ds-dropzone-choose { color:var(--ds-ink); }
.ds-dropzone-line { transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-dropzone-choose { display:inline; padding:0; font:inherit; font-weight:var(--ds-w-medium); color:var(--ds-ink); text-decoration:underline; text-decoration-color:var(--ds-line-3); text-underline-offset:.14em; cursor:pointer; transition:text-decoration-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-dropzone-choose:is( .is-hover) { text-decoration-color:var(--ds-ink); }
.ds-dropzone.is-disabled { opacity:.45; pointer-events:none; }

/* a file as a row: the doc icon, the name, size and kind in mono, a remove X; a 2 px hairline fills while it uploads, then a check (data-ds="file") */
.ds-file { position:relative; display:grid; grid-template-columns:20px minmax(0, 1fr) auto; align-items:center; gap:12px; width:100%; min-height:52px; padding:8px 6px 10px 12px; border-radius:var(--ds-r-10); background:var(--ds-surface); box-shadow:var(--ds-hair); transition:box-shadow var(--ds-t-4) var(--ds-ease-out), opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-file > .ds-i { width:20px; height:20px; color:var(--ds-ink-2); }
.ds-file-t { font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ds-file-m { font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:var(--ds-lh-ui); color:var(--ds-ink-4); white-space:nowrap; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-file.is-bad .ds-file-m { color:var(--ds-ink-2); } .ds-file.is-bad > .ds-i { color:var(--ds-bad); }   /* the words of a failure read in ink; the mark carries the colour */
.ds-file.is-leaving { opacity:0; transform:scale(.98); }

/* inline edit: a row whose title becomes a field in place; the pen on hover, Keep and Cancel at hand (data-ds="inline-edit") */
.ds-inline { display:flex; align-items:center; gap:4px; width:100%; min-height:var(--ds-ctl); padding:0 4px 0 10px; border-radius:var(--ds-r-10); font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink); transition:background-color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out); }
.ds-inline-t { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ds-inline-pen { opacity:0; transition:opacity var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-inline:is( .is-hover) .ds-inline-pen, .ds-inline-pen:focus-visible { opacity:1; }
@media (hover: none) { .ds-inline-pen { opacity:1; } }
.ds-inline-in { flex:1 1 auto; min-width:0; height:32px; margin:0; padding:0; border:0; background:none; outline:none; box-shadow:none; font-family:var(--ds-sans); font-size:inherit; line-height:inherit; color:var(--ds-ink); caret-color:var(--ds-ink); }
.ds-inline-ok, .ds-inline-no, .ds-inline-pen { flex:none; }
.ds-inline-ok { color:var(--ds-on-accent); background:var(--ds-ink); }
.ds-inline-ok:is( .is-hover) { color:var(--ds-on-accent); background:color-mix(in srgb, var(--ds-ink) 84%, var(--ds-surface)); }
.ds-inline:not(.is-editing) :is(.ds-inline-in, .ds-inline-ok, .ds-inline-no) { display:none; }
.ds-inline.is-editing { background:var(--ds-surface); box-shadow:var(--ds-hair-3); }
.ds-inline.is-editing :is(.ds-inline-t, .ds-inline-pen) { display:none; }
html.motion .ds-inline.is-editing .ds-inline-ok, html.motion .ds-inline.is-editing .ds-inline-no { animation:ds-scale-in var(--ds-t-3) var(--ds-ease-out) both; }
html.motion .ds-inline.is-editing .ds-inline-no { animation-delay:40ms; }
.ds-inline.is-kept { box-shadow:0 0 0 0 transparent; }

/* the text toolbar: a minimal row of 32 px ghosts above a textarea (bold, list, link) that wrap the selection in markdown marks (data-ds="text-toolbar") */
.ds-texttools { display:flex; align-items:center; gap:2px; }

/* the counter: "120 / 280" in mono under a field, turning to the warn colour within ten percent of the limit (data-ds="count" data-max) */
.ds-field-foot { display:flex; align-items:baseline; justify-content:space-between; gap:12px; min-width:0; }
.ds-count { margin-left:auto; font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:var(--ds-lh-ui); font-variant-numeric:tabular-nums; color:var(--ds-ink-3); white-space:nowrap; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-count.is-near, .ds-count.is-over { color:var(--ds-ink-2); }   /* near or over the limit the figure reads in ink; a 6 px dot before it carries the colour */
.ds-count.is-near::before, .ds-count.is-over::before { content:''; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; vertical-align:middle; background:var(--ds-warn); }
.ds-count.is-over::before { background:var(--ds-bad); }

/* the form grid: fields two across with 16 px between, one across on a phone; .is-full takes the row */

/* the fieldset: a group of fields under a legend and a one-line hint, 16 px to the first field; no box; a hairline above when it follows another */
/* the legend floats so the browser stops drawing it inside the fieldset's border; the hairline above a second group then stays above the words */

/* a column of fields 16 px apart, for a sheet or a settings pane */

/* wants a home in core (layout): a row of pieces aligned at the top, wrapping, 16 px apart; the docs use it to show states side by side */
/* every fixed-width demo piece still fits a phone */
.ds-dropzone, .ds-file, .ds-slider, .ds-inline { max-width:100%; }

/* ── a box to tick that carries a sentence (19 Nov 2026, BiteSized's "I understand this cannot be undone"): the check in a hairline card;
   ticked, the card's edge deepens and it takes the soft hover ground ── */

/* ── a setting with a switch, as a card of Settings (19 Nov 2026, BiteSized's Background texture, views/page-tones.js): an icon and a
   title, one plain line under them, the switch at the right. The Background texture card turns the field behind the pages off: a
   plain page (html.no-field), and a field that is not shown does not draw ── */
html.no-field .ds-pixel-field { display:none !important; }
/* the family's new-password piece (family/pw-strength.js) wraps the input in .pw-box: inside a field it takes the room the input had */


/* ─── ds/components/pickers.css ─── */
/* Doctorpedia Design System · pickers
   Dates, times, lengths, languages, specialties, countries, a portrait, a week, a day, the free times. All drawn by us, nothing native:
   36 px day cells, the chosen day an ink round, today a dot; lists that search as you type with a check on the chosen; a week in hairlines.
   Fields open their picker in a popover (overlays); choices leave as ds:change. */

/* wants a home in motion.css: the month sliding 8 px when it changes */
@keyframes ds-cal-next { from { opacity:0; transform:translateX(8px); } }
@keyframes ds-cal-prev { from { opacity:0; transform:translateX(-8px); } }

/* the field as a picker's trigger: the field itself is inputs'; this is only what a picker adds to it */
.ds-field.is-open .ds-field-box { box-shadow:var(--ds-hair-3); }
.ds-field.is-open .ds-field-box > .ds-i { color:var(--ds-ink); }
.ds-field--picker .ds-field-box, .ds-field--picker input { cursor:pointer; caret-color:transparent; }

/* the calendar: a month alone. Header with the month as a word (opens the month jump), Today, previous and next; weekday initials 12 px ink-4;
   36 px cells, 8 px corners, today marked with a dot, the chosen day an ink round, other-month days ink-4, disabled at half. */
.ds-cal { --ds-cell:36px; display:inline-flex; flex-direction:column; gap:8px; width:max-content; max-width:100%; color:var(--ds-ink); user-select:none; -webkit-user-select:none; }
.ds-cal-mo { display:flex; flex-direction:column; gap:8px; width:calc(7 * var(--ds-cell) + 12px); }
.ds-cal-h { display:flex; align-items:center; justify-content:space-between; gap:8px; height:32px; }
.ds-cal-m { display:inline-flex; align-items:center; gap:4px; height:32px; padding:0 8px 0 10px; margin-left:-10px; border-radius:var(--ds-r-pill); font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); line-height:1; white-space:nowrap; color:var(--ds-ink); transition:background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-cal-m .ds-i { width:16px; height:16px; color:var(--ds-ink-3); }
.ds-cal-m:is( .is-hover), .ds-cal-m[aria-expanded="true"] { background:var(--ds-hover); }
.ds-cal-m:is( .is-hover) .ds-i, .ds-cal-m[aria-expanded="true"] .ds-i { color:var(--ds-ink); }
.ds-cal-m.is-plain { pointer-events:none; } .ds-cal-m.is-plain .ds-i { display:none; }
.ds-cal-nav { display:inline-flex; align-items:center; gap:2px; }
.ds-cal-nav .ds-word { margin-right:6px; font-size:var(--ds-t-13); }
.ds-cal-nav .is-hidden { visibility:hidden; }
.ds-cal-wd { display:grid; grid-template-columns:repeat(7, var(--ds-cell)); gap:2px; height:20px; align-items:center; text-align:center; font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); color:var(--ds-ink-4); }
.ds-cal-v { overflow:hidden; margin:0 -4px; padding:0 4px; }
.ds-cal-g { display:grid; grid-template-columns:repeat(7, var(--ds-cell)); grid-auto-rows:var(--ds-cell); gap:2px; }
.ds-cal-r { display:contents; }   /* a week of the grid: a row for the reader, no box of its own */
html.motion .ds-cal-g.is-next { animation:ds-cal-next var(--ds-t-4) var(--ds-ease-out) both; }
html.motion .ds-cal-g.is-prev { animation:ds-cal-prev var(--ds-t-4) var(--ds-ease-out) both; }
.ds-cal-d { position:relative; isolation:isolate; display:grid; place-items:center; width:100%; height:100%; border-radius:var(--ds-r-8); font-size:var(--ds-t-14); line-height:1; color:var(--ds-ink); font-variant-numeric:tabular-nums; transition:background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out), border-radius var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-cal-d:is( .is-hover) { background:var(--ds-hover); }
.ds-cal-d:active { transform:scale(.985); }
.ds-cal-d.is-out { color:var(--ds-ink-4); }
.ds-cal-d:disabled { color:var(--ds-ink-4); opacity:.5; cursor:default; } .ds-cal-d:disabled:is( .is-hover) { background:none; }
.ds-cal-d > span { position:relative; z-index:1; display:grid; place-items:center; width:100%; height:100%; }
.ds-cal-d.is-today > span::after { content:''; position:absolute; left:50%; bottom:5px; width:4px; height:4px; margin-left:-2px; border-radius:50%; background:currentColor; }
.ds-cal-d[aria-selected="true"] { color:var(--ds-on-accent); font-weight:var(--ds-w-medium); }
.ds-cal-d[aria-selected="true"]::after { content:''; position:absolute; inset:0; z-index:0; border-radius:50%; background:var(--ds-accent); }
.ds-cal-d:focus-visible { outline-offset:0; z-index:1; }
/* a span of days: the days between the two ends tinted, the ends ink rounds over the tint */
.ds-cal-d.is-in::before, .ds-cal-d.is-start::before, .ds-cal-d.is-end::before { content:''; position:absolute; top:2px; bottom:2px; left:-2px; right:-2px; z-index:-1; background:var(--ds-surface-2); }
.ds-cal-d.is-start::before { left:50%; } .ds-cal-d.is-end::before { right:50%; }
.ds-cal-d.is-in:first-child::before, .ds-cal-d.is-end:first-child::before { left:0; border-radius:var(--ds-r-8) 0 0 var(--ds-r-8); }
.ds-cal-d.is-in:nth-child(7n)::before, .ds-cal-d.is-start:nth-child(7n)::before { right:0; border-radius:0 var(--ds-r-8) var(--ds-r-8) 0; }
.ds-cal-d.is-in:is( .is-hover) { background:var(--ds-hover); }
/* the range: two months side by side, one under 640 px; the foot says the span and offers Clear */
.ds-cal--range .ds-cal-mos { display:flex; flex-wrap:wrap; gap:8px 24px; }
.ds-cal-f { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:28px; margin-top:4px; font-size:var(--ds-t-13); color:var(--ds-ink-3); }
.ds-cal-f b { font-weight:var(--ds-w-medium); color:var(--ds-ink); }
@media (max-width: 640px) { .ds-cal--range .ds-cal-mo + .ds-cal-mo { display:none; } .ds-cal--range .ds-cal-mo:first-child .ds-cal-nav .is-hidden { visibility:visible; } }
/* mini: 28 px cells and 12 px numbers for a sidebar or a card */
.ds-cal--mini { --ds-cell:28px; gap:6px; }
.ds-cal--mini .ds-cal-mo { gap:6px; }
.ds-cal--mini .ds-cal-h { height:28px; }
.ds-cal--mini .ds-cal-m { height:28px; font-size:var(--ds-t-13); }
.ds-cal--mini .ds-cal-today { display:none; }
.ds-cal--mini .ds-cal-nav .ds-icon-btn { width:28px; height:28px; } .ds-cal--mini .ds-cal-nav .ds-icon-btn .ds-i { width:14px; height:14px; }
.ds-cal--mini .ds-cal-wd { height:16px; font-size:var(--ds-t-11); }
.ds-cal--mini .ds-cal-d { font-size:var(--ds-t-12); border-radius:var(--ds-r-6); }
.ds-cal--mini .ds-cal-d.is-today > span::after { width:3px; height:3px; margin-left:-1.5px; bottom:3px; }

/* the month jump: a year stepper above a grid of twelve months, three by four, 36 px rows; the month shown is ink, this month carries the dot */
.ds-mj { width:232px; max-width:100%; }
.ds-mj-y { display:flex; align-items:center; justify-content:space-between; height:32px; margin-bottom:8px; }
.ds-mj-y b { font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); font-variant-numeric:tabular-nums; color:var(--ds-ink); }
.ds-mj-g { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; }
.ds-mj-m { position:relative; display:grid; place-items:center; height:36px; border-radius:var(--ds-r-8); font-size:var(--ds-t-14); line-height:1; color:var(--ds-ink-2); transition:background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-mj-m:is( .is-hover) { background:var(--ds-hover); color:var(--ds-ink); }
.ds-mj-m.is-now::after { content:''; position:absolute; left:50%; bottom:5px; width:4px; height:4px; margin-left:-2px; border-radius:50%; background:currentColor; }
.ds-mj-m[aria-pressed="true"] { background:var(--ds-accent); color:var(--ds-on-accent); font-weight:var(--ds-w-medium); }

/* the time picker: two columns of our own lists, hours and minutes in fives, the chosen centred and in ink; AM and PM as a small segmented */
.ds-time { display:flex; align-items:center; gap:4px; }
.ds-time-c { position:relative; isolation:isolate; }
.ds-time-c::before { content:''; position:absolute; left:0; right:0; top:50%; height:32px; margin-top:-16px; border-radius:var(--ds-r-8); background:var(--ds-surface-2); z-index:-1; }
.ds-time-col { height:160px; width:64px; padding:64px 0; overflow-y:auto; scroll-snap-type:y mandatory; scrollbar-width:none; outline:none; border-radius:var(--ds-r-8); -webkit-mask-image:linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image:linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.ds-time-col::-webkit-scrollbar { display:none; }
.ds-time-col:focus-visible { box-shadow:0 0 0 2px var(--ds-ink) inset; }
.ds-time-o { display:grid; place-items:center; width:100%; height:32px; scroll-snap-align:center; border-radius:var(--ds-r-8); font-size:var(--ds-t-15); line-height:1; color:var(--ds-ink-3); font-variant-numeric:tabular-nums; transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-time-o:is( .is-hover) { color:var(--ds-ink); }
.ds-time-o[aria-selected="true"] { color:var(--ds-ink); font-weight:var(--ds-w-medium); }
.ds-time-sep { font-size:var(--ds-t-20); line-height:1; color:var(--ds-ink-3); margin:0 2px 2px; }
.ds-time-ap { margin-left:8px; }
.ds-time-f { display:flex; justify-content:flex-end; margin-top:8px; }

/* the duration: a stepper of minutes and seconds beside presets as small white pills; the chosen preset is pressed */
.ds-duration { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ds-dur-stepper { display:inline-flex; align-items:center; height:var(--ds-ctl); border-radius:var(--ds-r-10); background:var(--ds-surface); box-shadow:var(--ds-hair-2); transition:box-shadow var(--ds-t-3) var(--ds-ease-out); }
.ds-dur-stepper:focus-within { box-shadow:var(--ds-hair-3); }
.ds-dur-stepper button { display:grid; place-items:center; width:36px; height:100%; border-radius:var(--ds-r-10); color:var(--ds-ink-2); transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-dur-stepper button:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-dur-stepper button:disabled { opacity:.35; pointer-events:none; }
.ds-dur-stepper input { width:56px; height:100%; border:0; outline:0; background:none; text-align:center; font-family:var(--ds-mono); font-size:var(--ds-t-15); color:var(--ds-ink); font-variant-numeric:tabular-nums; }
.ds-duration-presets { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

/* list pickers: languages, specialties, countries. A search at the top, rows of 40 px with a check on the chosen; groups by letter; chips above */
.ds-lp { display:flex; flex-direction:column; gap:6px; width:280px; max-width:100%; padding:8px; border-radius:var(--ds-r-12); background:var(--ds-surface); box-shadow:var(--ds-hair); color:var(--ds-ink); }
.ds-lp-chips { display:flex; flex-wrap:wrap; gap:6px; padding:2px 2px 2px; }
.ds-lp-chip { display:inline-flex; align-items:center; gap:2px; height:28px; padding:0 4px 0 10px; border-radius:var(--ds-r-pill); background:var(--ds-surface); box-shadow:var(--ds-hair-2); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink); transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
html.motion .ds-lp-chip { animation:ds-scale-in var(--ds-t-3) var(--ds-ease-spring) both; }
.ds-lp-chip.is-leaving { opacity:0; transform:scale(.9); }
.ds-lp-chip button { display:grid; place-items:center; width:20px; height:20px; border-radius:50%; color:var(--ds-ink-3); transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-lp-chip button:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-lp-chip button .ds-i { width:14px; height:14px; }
.ds-lp-q { display:flex; align-items:center; gap:8px; height:36px; padding:0 10px; border-radius:var(--ds-r-8); background:var(--ds-surface); box-shadow:var(--ds-hair-2); color:var(--ds-ink-3); transition:box-shadow var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-lp-q:focus-within { box-shadow:var(--ds-hair-3); color:var(--ds-ink); }
.ds-lp-q .ds-i { width:16px; height:16px; }
.ds-lp-q input { flex:1; min-width:0; height:100%; border:0; outline:0; background:none; font-size:var(--ds-t-14); color:var(--ds-ink); }
.ds-lp-l { display:flex; flex-direction:column; gap:1px; max-height:264px; overflow:auto; padding:2px 0; outline:none; overscroll-behavior:contain; }
.ds-lp-g { position:sticky; top:0; z-index:1; padding:8px 10px 4px; font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); color:var(--ds-ink-4); background:var(--ds-surface); }
.ds-lp-g:first-child { padding-top:2px; }
.ds-lp-o { display:flex; align-items:center; gap:10px; min-height:40px; padding:0 10px; border-radius:var(--ds-r-8); font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink); text-align:left; transition:background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-lp-o:is( .is-hover) { background:var(--ds-hover); outline:none; }
.ds-lp-o > span:first-child { flex:1; min-width:0; }
.ds-lp-meta { font-family:var(--ds-mono); font-size:var(--ds-t-12); color:var(--ds-ink-4); font-variant-numeric:tabular-nums; }
.ds-lp-o .ds-lp-ck { width:16px; height:16px; color:var(--ds-ink); opacity:0; transform:scale(.8); transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-spring); }
.ds-lp-o[aria-selected="true"] .ds-lp-ck { opacity:1; transform:none; }
.ds-lp-empty { padding:14px 10px 10px; font-size:var(--ds-t-14); color:var(--ds-ink-3); }

/* the avatar picker: round portraits of 56 px, the chosen ringed with 2 px of ink 2 px out, an upload tile with a camera */
.ds-avatars { display:flex; flex-wrap:wrap; align-items:flex-start; gap:4px 12px; }
.ds-avatar-opt { display:grid; justify-items:center; gap:8px; width:72px; padding:6px 0 4px; border-radius:var(--ds-r-10); cursor:pointer; transition:background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-avatar-v { position:relative; display:grid; place-items:center; width:var(--ds-avatar-lg); height:var(--ds-avatar-lg); border-radius:50%; background:var(--ds-surface-2); color:var(--ds-ink-2); box-shadow:var(--ds-hair-2); overflow:hidden; transition:box-shadow var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-avatar-v img { width:100%; height:100%; object-fit:cover; }
.ds-avatar-opt small { font-size:var(--ds-t-12); line-height:1.2; color:var(--ds-ink-3); text-align:center; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-avatar-opt:is( .is-hover) .ds-avatar-v { box-shadow:0 0 0 2px var(--ds-page), 0 0 0 3px var(--ds-line-3); }
.ds-avatar-opt:is( .is-hover) small { color:var(--ds-ink); }
.ds-avatar-opt[aria-checked="true"] .ds-avatar-v { box-shadow:0 0 0 2px var(--ds-page), 0 0 0 4px var(--ds-ink); }
.ds-avatar-opt[aria-checked="true"] small { color:var(--ds-ink); font-weight:var(--ds-w-medium); }
.ds-avatar-opt:focus-visible { outline-offset:0; }
.ds-avatar-up .ds-avatar-v { background:var(--ds-surface); }
.ds-avatar-up:is( .is-hover) .ds-avatar-v { color:var(--ds-ink); }

/* the week: seven days in a header (today in ink), hours in a mono margin, hairlines, events as white cards with a 2 px family mark, the now line */
.ds-week { --ds-wm:48px; --ds-wh:48px; display:grid; grid-template-columns:var(--ds-wm) repeat(7, minmax(0, 1fr)); width:100%; max-width:960px; font-size:var(--ds-t-12); color:var(--ds-ink); user-select:none; -webkit-user-select:none; }
.ds-week-day { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px; height:56px; padding-bottom:8px; font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); color:var(--ds-ink-3); }
.ds-week-day b { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); color:var(--ds-ink); font-variant-numeric:tabular-nums; transition:background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out); }
.ds-week-day.is-today { color:var(--ds-ink); } .ds-week-day.is-today b { background:var(--ds-accent); color:var(--ds-on-accent); }
.ds-week-m { display:grid; grid-template-rows:repeat(var(--ds-rows, 10), var(--ds-wh)); }
.ds-week-t { padding-right:8px; text-align:right; font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:1; color:var(--ds-ink-4); transform:translateY(-6px); white-space:nowrap; }
.ds-week-col { position:relative; height:calc(var(--ds-rows, 10) * var(--ds-wh)); box-shadow:inset 1px 0 0 var(--ds-line); background-image:repeating-linear-gradient(to bottom, var(--ds-line) 0 1px, transparent 1px var(--ds-wh)); }
.ds-week-col:last-child { box-shadow:inset 1px 0 0 var(--ds-line), inset -1px 0 0 var(--ds-line); }
.ds-week-ev { position:absolute; left:3px; right:3px; display:flex; flex-direction:column; justify-content:flex-start; gap:2px; min-height:20px; padding:4px 8px; border-radius:var(--ds-r-8); background:var(--ds-surface); box-shadow:inset 2px 0 0 var(--ds-people), var(--ds-hair), var(--ds-shadow-1); overflow:hidden; text-align:left; transition:box-shadow var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-week-ev:is( .is-hover) { box-shadow:inset 2px 0 0 var(--ds-people), var(--ds-hair-2), var(--ds-shadow-2); }
.ds-week-ev:active { transform:scale(.985); }
.ds-week-ev b { display:block; flex:none; font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); line-height:1.2; color:var(--ds-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ds-week-ev small { flex:none; font-family:var(--ds-mono); font-size:var(--ds-t-11); line-height:1; color:var(--ds-ink-4); white-space:nowrap; }
.ds-week-ev { container-type:size; } @container (max-height: 44px) { .ds-week-ev small { display:none; } }   /* a short visit shows its title alone; the time is in the tooltip */
.ds-week-now { position:absolute; left:0; right:0; height:1px; background:var(--ds-ink); pointer-events:none; z-index:1; }
.ds-week-now::before { content:''; position:absolute; left:-3px; top:-2.5px; width:6px; height:6px; border-radius:50%; background:var(--ds-ink); }
@media (max-width: 640px) { .ds-week { --ds-wm:40px; --ds-wh:44px; } .ds-week-day { height:48px; font-size:var(--ds-t-11); } .ds-week-day b { width:24px; height:24px; font-size:var(--ds-t-13); } .ds-week-t { font-size:var(--ds-t-11); padding-right:6px; } .ds-week-ev { padding:4px 5px; } .ds-week-ev small { display:none; } }

/* the agenda: a day's appointments, the time in a mono margin, the title at 15 px, who with a small portrait; morning and afternoon labels;
   the past ones ink-3; the now line between rows */
.ds-agenda { display:flex; flex-direction:column; width:100%; max-width:520px; }
.ds-agenda-sep { display:flex; align-items:center; gap:10px; height:32px; margin-top:4px; font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); color:var(--ds-ink-3); }
.ds-agenda-sep::after { content:''; flex:1; height:1px; background:var(--ds-line); }
.ds-agenda-r { display:grid; grid-template-columns:64px 28px minmax(0, 1fr); align-items:center; gap:12px; min-height:52px; padding:6px 10px; border-radius:var(--ds-r-8); text-align:left; transition:background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-agenda-r:is( .is-hover) { background:var(--ds-hover); }
.ds-agenda-t { font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:1.4; color:var(--ds-ink-3); font-variant-numeric:tabular-nums; }
.ds-agenda-b { min-width:0; }
.ds-agenda-b b { display:block; font-size:var(--ds-t-15); font-weight:var(--ds-w-regular); line-height:var(--ds-lh-ui); color:var(--ds-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color var(--ds-t-4) var(--ds-ease-out); }
.ds-agenda-b small { display:block; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ds-agenda-r.is-past .ds-agenda-b b { color:var(--ds-ink-3); }
.ds-agenda-r.is-past .ds-avatar--sm { opacity:.6; }
.ds-agenda-r.is-now .ds-agenda-t { color:var(--ds-ink); }
.ds-agenda-now { display:grid; grid-template-columns:64px minmax(0, 1fr); align-items:center; gap:12px; height:12px; padding:0 10px; pointer-events:none; }
.ds-agenda-now span { font-family:var(--ds-mono); font-size:var(--ds-t-11); line-height:1; color:var(--ds-ink); }
.ds-agenda-now i { position:relative; display:block; height:1px; background:var(--ds-ink); }
.ds-agenda-now i::before { content:''; position:absolute; left:-3px; top:-2.5px; width:6px; height:6px; border-radius:50%; background:var(--ds-ink); }
.ds-agenda-empty { padding:12px 10px; font-size:var(--ds-t-14); color:var(--ds-ink-3); }

/* the slots: a day's free times as 40 px white chips, four to six a row, taken ones not shown, the chosen one ink; a line above says the day */
.ds-slots { width:100%; max-width:480px; }
.ds-slots-d { margin:0 0 12px; font-size:var(--ds-t-14); line-height:var(--ds-lh-ui); color:var(--ds-ink-2); }
.ds-slots-d b { font-weight:var(--ds-w-medium); color:var(--ds-ink); }
.ds-slots-g { display:grid; grid-template-columns:repeat(auto-fill, minmax(76px, 1fr)); gap:8px; }
.ds-slot { --ds-a:0deg; position:relative; isolation:isolate; display:grid; place-items:center; height:var(--ds-ctl); border-radius:var(--ds-r-10); background:var(--ds-surface); box-shadow:var(--ds-hair-2); font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-2); font-variant-numeric:tabular-nums; transition:background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-slot > * { position:relative; z-index:1; }
.ds-slot::before { content:''; position:absolute; inset:0; z-index:0; padding:1px; border-radius:inherit; pointer-events:none; opacity:0; background:conic-gradient(from 270deg, var(--ds-ink) var(--ds-a), transparent 0); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; transition:opacity .45s var(--ds-ease-out), --ds-a 0s linear .45s; }
.ds-slot:is( .is-hover) { --ds-a:360deg; color:var(--ds-ink); }
.ds-slot:is( .is-hover)::before { opacity:1; transition:opacity .3s var(--ds-ease-out), --ds-a var(--ds-t-5) var(--ds-ease-draw); }
.ds-slot:active { transform:scale(.985); }
.ds-slot[aria-checked="true"] { background:var(--ds-accent); color:var(--ds-on-accent); box-shadow:none; }
.ds-slot[aria-checked="true"]::before { display:none; }
.ds-slot:disabled { opacity:.45; pointer-events:none; }
.ds-slots-empty { padding:4px 0; font-size:var(--ds-t-14); color:var(--ds-ink-3); }


/* ─── ds/components/navigation.css ─── */
/* Doctorpedia Design System · navigation
   The sidebar and its rail, the top bar, tabs, breadcrumbs, pages, steppers, menus, the palette, the anchor column, settings rows,
   the launcher, the account popover, foot links, the skip link and the to-bottom button. White panels on the page, rows that light a
   soft pill, one ink mark that travels, menus that arrive and leave. Nothing boxed, no hairlines under rows, icons with their words. */

/* ── focus radii for the round and pill pieces of this group (base draws a 4 px outline) ── */
 .ds-pager-prev:focus-visible, .ds-pager-next:focus-visible { border-radius:var(--ds-r-pill); }
.ds-nav-row:focus-visible, .ds-menu-item:focus-visible, .ds-palette-item:focus-visible { border-radius:var(--ds-r-8); }
 .ds-account-row:focus-visible, .ds-app-tile:focus-visible { border-radius:var(--ds-r-10); }
.ds-page:focus-visible, .ds-sidebar-toggle:focus-visible { border-radius:50%; }

/* ── the sidebar: a floating white panel of 276 px (16 px from the viewport edges when fixed): the brand row, New chat, nav rows of 40 px, a quiet Recent label, titles only, the account row above a hairline; one round toggle on its right edge folds it to the rail ── */
/* the name, with an optional quiet second line under it (who makes it) */
/* the mark stands on its own in the page's ink, no tile around it (19 Nov 2026, as family/mark.css: the ink tile is superseded) */
/* a mark whose line draws itself: an svg of one path or polyline with pathLength="1" in .ds-sidebar-mark--draw. It draws once when the
   page opens and again each time the pointer comes to the brand; still when motion is reduced */
@keyframes ds-mark-draw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
@keyframes ds-mark-redraw { 0% { stroke-dashoffset:0; } 45% { stroke-dashoffset:-1; } 46% { stroke-dashoffset:1; } 100% { stroke-dashoffset:0; } }
/* New chat, New post: a quiet row, never louder than the current row: the plus in a 32 px round with a one-pixel line that fills with
   ink under the pointer while the row takes the soft hover; the air above it lets the brand breathe */
.ds-sidebar-nav { position:relative; display:grid; gap:var(--ds-s-1); }
/* the current row's ink pill, laid under the rows and moved by the sidebar's script from the old row to the new one on a spring */
.ds-nav-glide { position:absolute; top:0; left:0; z-index:0; border-radius:var(--ds-r-12); background:var(--ds-ink); box-shadow:0 6px 16px -10px rgba(26,26,26,.55); pointer-events:none; opacity:0; transition:transform .5s var(--ds-ease-spring), width .5s var(--ds-ease-spring), height .5s var(--ds-ease-spring), opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-sidebar-nav > .ds-nav-row { position:relative; z-index:1; }
.ds-sidebar-nav.has-glide > .ds-nav-row[aria-current]:not([aria-current="false"]) { background:transparent; }
html:not(.motion) .ds-nav-glide { transition:none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ds-nav-glide { box-shadow:none; } }
:root[data-theme="dark"] .ds-nav-glide { box-shadow:none; }
/* the account at the foot is a soft card: surface at 78 percent with a hairline and a light blur, so the field under it shows through */
/* the panel's own field: the system's pixel field at the foot, masked from the bottom up, so the quiet middle of the panel ends in the
   one colour moment; optional, a div.ds-sidebar-field.ds-pixel-field as the panel's first child */
.ds-sidebar-field { position:absolute; left:0; right:0; bottom:0; z-index:0; height:300px; overflow:hidden; border-radius:0 0 var(--ds-r-16) var(--ds-r-16); pointer-events:none; opacity:0; -webkit-mask-image:linear-gradient(to top, #000 8%, transparent 92%); mask-image:linear-gradient(to top, #000 8%, transparent 92%); transition:opacity 1.2s var(--ds-ease-out); }
html.has-field .ds-sidebar-field, .ds-sidebar-field.is-flat { opacity:.75; }
.ds-sidebar-field.is-flat { background:linear-gradient(to top, var(--ds-lilac-soft), transparent); }
.ds-sidebar-field canvas { display:block; width:100% !important; height:100% !important; }
/* a nav row: 40 px, the icon in a 28 px column, the word 14 px medium; hover and the current row light the soft pill */
.ds-nav-row { display:grid; grid-template-columns:32px minmax(0, 1fr) auto; align-items:center; width:100%; height:var(--ds-ctl-lg); padding:0 10px; border-radius:var(--ds-r-12); font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); line-height:1.3; color:var(--ds-ink-2); text-align:left; white-space:nowrap; text-decoration:none; }
.ds-nav-row .ds-i { width:var(--ds-icon-lg); height:var(--ds-icon-lg); color:var(--ds-ink-3); transition:color var(--ds-t-4) var(--ds-ease-out); }
.ds-nav-row:is( .is-hover) { background:var(--ds-hover); color:var(--ds-ink); }
.ds-nav-row:is( .is-hover) .ds-i { color:var(--ds-ink); }
/* the current place: an ink pill, its words and icon in surface (the icon filled when the row names one in data-icon-on), a badge inverted */
.ds-nav-row[aria-current]:not([aria-current="false"]), .ds-nav-row[aria-current]:not([aria-current="false"]):is( .is-hover) { background:var(--ds-ink); color:var(--ds-surface); }
.ds-nav-row[aria-current]:not([aria-current="false"]) .ds-i { color:var(--ds-surface); }
.ds-nav-row--conv[aria-current]:not([aria-current="false"]), .ds-nav-row--conv[aria-current]:not([aria-current="false"]):is( .is-hover) { background:var(--ds-hover); color:var(--ds-ink); }
/* a conversation row: the title only, regular weight; its more button appears on hover in place of nothing (no date, no hairline) */
.ds-nav-row--conv { grid-template-columns:minmax(0, 1fr); height:var(--ds-ctl); border-radius:var(--ds-r-8); font-size:var(--ds-t-14); font-weight:var(--ds-w-regular); }
.ds-nav-more { position:absolute; top:6px; right:4px; width:28px; height:28px; opacity:0; }
.ds-nav-more .ds-i { width:16px; height:16px; }
 .ds-nav-more[aria-expanded="true"], .ds-nav-more:focus-visible { opacity:1; }
/* the account row at the foot: the avatar, the name and a quiet line */
.ds-account-row { display:grid; grid-template-columns:36px minmax(0, 1fr); align-items:center; gap:10px; width:100%; height:48px; padding:0 6px; border-radius:var(--ds-r-10); text-align:left; white-space:nowrap; transition:background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out); }
.ds-account-row > div { min-width:0; transition:opacity var(--ds-t-2) var(--ds-ease-out); }
.ds-account-row b { display:block; overflow:hidden; text-overflow:ellipsis; font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:1.3; color:var(--ds-ink); }
.ds-account-row small { display:block; overflow:hidden; text-overflow:ellipsis; font-size:var(--ds-t-12); line-height:1.3; color:var(--ds-ink-3); }
.ds-account-row:is( .is-hover) { background:var(--ds-hover); }
.ds-account-row[aria-expanded="true"] { background:var(--ds-press); }
.ds-account-row:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
/* the one toggle on the panel's edge: a 28 px round with a hairline; two chevrons cross-fade with the state */
.ds-sidebar-toggle { position:absolute; top:50%; right:-14px; z-index:1; display:grid; place-items:center; width:28px; height:28px; margin-top:-14px; border-radius:50%; background:var(--ds-surface); color:var(--ds-ink-2); box-shadow:var(--ds-hair-2), var(--ds-shadow-1); transition:color var(--ds-t-3) var(--ds-ease-out), box-shadow var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-sidebar-toggle .ds-i { position:absolute; inset:0; width:14px; height:14px; margin:auto; transition:opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-sidebar-toggle .ds-i:last-child { opacity:0; }
.ds-sidebar-toggle:is( .is-hover) { color:var(--ds-ink); box-shadow:0 0 0 1px var(--ds-ink), var(--ds-shadow-1); }
/* the words fade before the width travels, and come back after it */

/* ── the rail: the same panel folded to 76 px; the brand tile, the plus in a round with a hairline, cells of 56 px with the icon and its word in 11 px, the avatar at the foot; everything measured from the left so nothing slides while the width travels ── */

/* ── the top bar: 56 px, a back or the brand at the left, the title 15 px medium centred or left, one action at the right; the hairline below appears only when the content scrolls under it; never a black button in it ── */

/* ── tabs: pills of 38 px (Answer · Sources), the selected filled ink; the underline variant with the 2 px ink mark that travels; the vertical column for settings ── */
/* the underline tabs: 15 px medium ink-3, the selected in ink; one quiet baseline carries the mark */
.ds-tabs--line { gap:24px; box-shadow:inset 0 -1px 0 var(--ds-line); }
.ds-tabs-mark { position:absolute; left:0; bottom:0; width:0; height:2px; border-radius:1px; background:var(--ds-ink); transition:left var(--ds-t-4) var(--ds-ease-inout), width var(--ds-t-4) var(--ds-ease-inout); }
/* the vertical tabs: 40 px rows, the selected in a soft pill and ink, the rest ink-2; a horizontal scroller on a phone */

/* ── breadcrumbs: 14 px words in ink-3 with 16 px chevrons in ink-4 between, the current in ink; the middle folds to an ellipsis word on a phone ── */
 .ds-crumb { display:inline-flex; align-items:center; height:28px; padding:0 6px; border-radius:var(--ds-r-6); color:var(--ds-ink-3); white-space:nowrap; transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
 .ds-crumb:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }

/* ── pagination: Previous and Next as words with chevrons that step, page numbers as 32 px round ghosts in mono 13, the current in ink; the quiet "Page 3 of 12" for long lists ── */
.ds-pager-prev, .ds-pager-next { display:inline-flex; align-items:center; gap:4px; height:32px; padding:0 8px; border-radius:var(--ds-r-pill); font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-3); transition:color var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-pager-prev .ds-i, .ds-pager-next .ds-i { width:16px; height:16px; transition:transform var(--ds-t-3) var(--ds-ease-out); }
.ds-pager-prev:is( .is-hover), .ds-pager-next:is( .is-hover) { color:var(--ds-ink); }
.ds-pager-prev:is( .is-hover) .ds-i { transform:translateX(-2px); }
.ds-pager-next:is( .is-hover) .ds-i { transform:translateX(2px); }
.ds-pager-prev:disabled, .ds-pager-next:disabled { opacity:.45; pointer-events:none; }
.ds-page { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:50%; font-family:var(--ds-mono); font-size:var(--ds-t-13); font-variant-numeric:tabular-nums; color:var(--ds-ink-2); transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-page:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-page[aria-current="page"] { color:var(--ds-on-accent); background:var(--ds-accent); }
.ds-page:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
.ds-pager-of { margin:0 8px; font-size:var(--ds-t-13); font-variant-numeric:tabular-nums; color:var(--ds-ink-3); }

/* ── the stepper: 24 px rounds with the number in mono 12 (done ones ink with a check that draws, the current with an ink edge, the rest a hairline), the hairline between fills ink as steps complete, the word under each step 13 px ── */
.ds-stepper { display:flex; align-items:flex-start; width:100%; margin:0; padding:0; list-style:none; }
.ds-step { position:relative; display:flex; flex:1; flex-direction:column; align-items:center; gap:8px; min-width:0; font-size:var(--ds-t-13); line-height:1.3; color:var(--ds-ink-3); text-align:center; transition:color var(--ds-t-4) var(--ds-ease-out); }
.ds-step-dot { position:relative; z-index:1; display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:50%; background:var(--ds-surface); box-shadow:var(--ds-hair-2); font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:1; color:var(--ds-ink-3); transition:background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out); }
.ds-step-dot > * { grid-area:1 / 1; }
.ds-step-dot svg { width:14px; height:14px; opacity:0; transition:opacity var(--ds-t-2) var(--ds-ease-out); }
.ds-step-dot svg path { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:1; }
.ds-step.is-current { color:var(--ds-ink); }
.ds-step.is-current .ds-step-dot { color:var(--ds-ink); box-shadow:0 0 0 1.5px var(--ds-ink); }
.ds-step.is-done { color:var(--ds-ink-2); }
.ds-step.is-done .ds-step-dot { color:var(--ds-on-accent); background:var(--ds-ink); box-shadow:none; }
.ds-step.is-done .ds-step-dot svg { opacity:1; }
.ds-step.is-done .ds-step-dot svg path { animation:ds-draw var(--ds-t-4) var(--ds-ease-out) .08s forwards; }
/* the line that leaves each step towards the next: a hairline, and an ink line over it that fills when the step is done */
.ds-step:not(:last-child)::before, .ds-step:not(:last-child)::after { content:''; position:absolute; top:12px; left:calc(50% + 16px); right:calc(-50% + 16px); height:1px; background:var(--ds-line-2); }
.ds-step:not(:last-child)::after { background:var(--ds-ink); transform:scaleX(0); transform-origin:left; transition:transform var(--ds-t-4) var(--ds-ease-inout); }
.ds-step.is-done:not(:last-child)::after { transform:scaleX(1); }

/* ── the vertical stepper: a title and a one-line description per step, the hairline running down the left ── */

/* ── the menu: white, radius 10, padding 6, a hairline and the menu shadow; items of 36 px, 14 px medium ink-2 with a 16 px icon in ink-3; hover lights the soft pill and ink; a danger item last after a hairline; arrives with .ds-arrive-menu ── */
.ds-menu { z-index:var(--ds-z-menu); display:grid; gap:2px; min-width:180px; padding:6px; border-radius:var(--ds-r-10); background:var(--ds-surface); box-shadow:var(--ds-hair), var(--ds-shadow-menu); transform-origin:top left; }
.ds-menu[hidden] { display:none; }
.ds-menu.is-up { transform-origin:bottom left; }
.ds-menu-item { display:flex; align-items:center; gap:10px; width:100%; height:36px; padding:0 10px; border-radius:var(--ds-r-8); font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:1; white-space:nowrap; color:var(--ds-ink-2); text-align:left; text-decoration:none; }
.ds-menu-item > span:first-of-type { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.ds-menu-item .ds-i { width:16px; height:16px; color:var(--ds-ink-3); }
.ds-menu-item:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); outline:none; }
.ds-menu-item:is( .is-hover) .ds-i { color:var(--ds-ink); }
.ds-menu-item:disabled { opacity:.45; pointer-events:none; }
.ds-menu-item.is-danger, .ds-menu-item.is-danger .ds-i, .ds-menu-item.is-danger:is( .is-hover) .ds-i { color:var(--ds-danger); }
.ds-menu-item.is-danger:is( .is-hover) { color:var(--ds-danger); background:color-mix(in srgb, var(--ds-danger) 8%, transparent); }
.ds-menu-sep { display:block; height:1px; margin:6px 4px; background:var(--ds-line); }   /* a menu shown at rest in the docs */
/* a row that has its context menu open keeps the soft pill */
.is-menu { background:var(--ds-hover); color:var(--ds-ink); }

/* ── the command palette: a box at the top of the viewport (max 640, radius 16, shadow 3) with the search line, results grouped under 12 px labels, rows of 40 px with an icon, the words and a quiet meta; the first result preselected ── */
.ds-palette { position:fixed; top:min(12vh, 96px); left:50%; z-index:var(--ds-z-sheet); width:min(640px, 100vw - 32px); margin-left:calc(min(640px, 100vw - 32px) / -2); border-radius:var(--ds-r-16); background:var(--ds-surface); box-shadow:var(--ds-shadow-3); overflow:hidden; }
.ds-palette-q { display:flex; align-items:center; gap:12px; height:56px; padding:0 16px 0 18px; box-shadow:0 1px 0 var(--ds-line); color:var(--ds-ink-3); transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-palette-q:focus-within { color:var(--ds-ink); }
.ds-palette-q .ds-i { width:18px; height:18px; }
.ds-palette-q input { flex:1; min-width:0; height:100%; border:0; outline:0; background:none; font-size:var(--ds-t-17); color:var(--ds-ink); }
.ds-palette-list { max-height:min(56vh, 420px); overflow:auto; padding:8px; }
.ds-palette-h { margin:0; padding:10px 10px 4px; font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); line-height:1.3; color:var(--ds-ink-4); }
.ds-palette-h:first-child { padding-top:6px; }
.ds-palette-item { display:grid; grid-template-columns:20px minmax(0, 1fr) auto; align-items:center; gap:10px; width:100%; height:40px; padding:0 10px; border-radius:var(--ds-r-8); font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-2); text-align:left; cursor:pointer; transition:background-color var(--ds-t-2) var(--ds-ease-out), color var(--ds-t-2) var(--ds-ease-out); }
.ds-palette-item .ds-i { width:18px; height:18px; color:var(--ds-ink-3); }
.ds-palette-l { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ds-palette-m { font-size:var(--ds-t-12); color:var(--ds-ink-4); white-space:nowrap; }
.ds-palette-item.is-active, .ds-palette-item:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-palette-item.is-active .ds-i, .ds-palette-item:is( .is-hover) .ds-i { color:var(--ds-ink); }
.ds-palette-empty { margin:0; padding:20px 10px; font-size:var(--ds-t-14); color:var(--ds-ink-3); }
.ds-palette--static { position:static; width:100%; max-width:640px; margin:0; }

/* ── the anchor column ("On this page"): 13 px links with a 2 px hairline on the left whose ink segment follows the section in view ── */
.ds-anchor-mark { position:absolute; top:0; left:0; width:2px; height:28px; border-radius:1px; background:var(--ds-ink); transition:top var(--ds-t-4) var(--ds-ease-inout), height var(--ds-t-4) var(--ds-ease-inout); }

/* ── the link list: 48 px rows with a word and a chevron at the right (a settings list), no hairlines, a soft pill on hover; the chevron steps 2 px right ── */

/* ── the app switcher: a popover with a three-by-two grid of app tiles, each a 48 px white tile with a hairline holding the app's mark and the word under it in 13 px; hover draws the ring on the tile ── */
.ds-apps { z-index:var(--ds-z-menu); display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; width:264px; padding:8px; border-radius:var(--ds-r-12); background:var(--ds-surface); box-shadow:var(--ds-hair), var(--ds-shadow-2); transform-origin:top left; }
.ds-apps[hidden] { display:none; }
.ds-apps.is-up { transform-origin:bottom left; }
.ds-app-tile { display:grid; justify-items:center; gap:8px; padding:10px 4px; border-radius:var(--ds-r-10); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1.3; color:var(--ds-ink-2); text-align:center; text-decoration:none; transition:color var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out); }
.ds-app-tile:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
.ds-app-mark { --ds-a:0deg; position:relative; isolation:isolate; display:grid; place-items:center; width:48px; height:48px; border-radius:var(--ds-r-12); background:var(--ds-surface); color:var(--ds-ink); box-shadow:var(--ds-hair-2); transition:box-shadow var(--ds-t-4) var(--ds-ease-out); }
.ds-app-mark::before { content:''; position:absolute; inset:0; z-index:0; padding:1px; border-radius:inherit; pointer-events:none; opacity:0; background:conic-gradient(from 270deg, var(--ds-ink) var(--ds-a), transparent 0); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; transition:opacity .45s var(--ds-ease-out), --ds-a 0s linear .45s; }
.ds-app-mark > * { position:relative; z-index:1; }
.ds-app-mark img { width:28px; height:28px; object-fit:contain; }
.ds-app-mark .bsm { width:26px; height:26px; }   /* the family's marks in the page's ink (family/mark.js), 19 Nov 2026 */
.ds-app-mark .ds-i { width:20px; height:20px; }
.ds-app-tile:is( .is-hover) { color:var(--ds-ink); }
.ds-app-tile:is( .is-hover) .ds-app-mark { --ds-a:360deg; }
.ds-app-tile:is( .is-hover) .ds-app-mark::before { opacity:1; transition:opacity .3s var(--ds-ease-out), --ds-a var(--ds-t-5) var(--ds-ease-draw); }
.ds-app-tile[aria-current] { color:var(--ds-ink); }
.ds-app-tile[aria-current] .ds-app-mark { box-shadow:0 0 0 1px var(--ds-ink); }
.ds-app-tile[aria-current] .ds-app-mark::before { display:none; }

/* ── the account popover (280 px): the avatar 36, the name and the email, the plan line, a hairline, Settings · Dark or light with a switch · Help, a hairline, Sign out ── */   /* the portrait stays a 36 px round whatever the picture's size */

/* ── footer links: a quiet row of 13 px links in ink-4, 12 px apart, at the foot of a panel or a door; hover ink-2 ── */

/* ── the skip link: hidden until focused, then a white pill at the top left; the first focusable thing on a page ── */

/* ── to-bottom: the round framed icon button that fades in at the foot of a thread when scrolled up more than one screen ── */

/* ── The weight on New (Sergio, 9 November 2026, night: the black current place was too strong and pulled the eye; the attention belongs to
      New, not to knowing which section is open). New is the panel's one ink button, a pill; the current place is the soft pill, ink words,
      its icon filled; its badge stays ink ── */
.ds-nav-glide { background:var(--ds-surface-2); box-shadow:none; }
.ds-nav-row[aria-current]:not([aria-current="false"]), .ds-nav-row[aria-current]:not([aria-current="false"]):is( .is-hover) { background:var(--ds-surface-2); color:var(--ds-ink); }
.ds-sidebar-nav.has-glide > .ds-nav-row[aria-current]:not([aria-current="false"]) { background:transparent; }
.ds-nav-row[aria-current]:not([aria-current="false"]) .ds-i { color:var(--ds-ink); }


/* ── Words on buttons in the rail (0.4.3; Sergio, 9 November 2026: an icon alone can confuse people who are not digital natives). Folded,
      New keeps its word under the ink round, and the portrait says Account; the brand mark and the round on the edge stay alone, with their
      names as tooltips. .ds-rail-l is a word shown only in the rail ── */
/* to the end, with its word: a white pill at the foot of a thread, centred, over the floating shadow */

/* ── the account card (19 Nov 2026, BiteSized's .am, clean.css sections 25 and 28; Ask's panel takes the same order). Behind the portrait at
   the right of the top bar, held to its right edge: who is signed in (the name in the serif, the email, View your profile with its
   arrow, one button), a hairline, Appearance as a soft segmented control (Light, Dark, Auto), Settings and Help, Other Doctorpedia apps
   with their outlined marks where the other rows have an icon, and Log out quiet and alone at the foot. 352 wide, 6 px inside, 20 px
   corners, the floating shadow; 46 px rows with a 28 px icon column; the rows rise one after another as it opens. ── */
.ds-am { z-index:var(--ds-z-menu); display:block; width:352px; max-width:calc(100vw - 32px); padding:6px; border-radius:20px; background:var(--ds-surface); box-shadow:0 0 0 1px var(--ds-line-2), var(--ds-shadow-pop); color:var(--ds-ink); transform-origin:calc(100% - 20px) 0; }
.ds-am[hidden] { display:none; }
.ds-am.is-static { position:relative; width:352px; max-width:100%; }
.ds-am-who { display:flex; align-items:center; gap:12px; width:100%; padding:10px; border-radius:14px; text-align:left; transition:background-color var(--ds-t-2) var(--ds-ease-out); }
.ds-am-who:is( .is-hover) { background:var(--ds-hover); }
.ds-am-av { display:grid; flex:none; width:42px; height:42px; overflow:hidden; place-items:center; border-radius:50%; background:var(--ds-surface-2); box-shadow:0 0 0 1px var(--ds-line); font-size:var(--ds-t-13); color:var(--ds-ink-2); }
.ds-am-av img { width:100%; height:100%; object-fit:cover; }
.ds-am-name { display:flex; flex-direction:column; gap:2px; min-width:0; }
.ds-am-name b { overflow:hidden; font-family:var(--ds-serif); font-size:var(--ds-t-17); font-weight:var(--ds-w-regular); letter-spacing:-.005em; text-overflow:ellipsis; white-space:nowrap; color:var(--ds-ink); }
.ds-am-name small { overflow:hidden; font-size:12.5px; text-overflow:ellipsis; white-space:nowrap; color:var(--ds-ink-3); }
.ds-am-go { display:inline-flex; align-items:center; gap:5px; margin-top:5px; font-size:var(--ds-t-13); color:var(--ds-ink-3); transition:color var(--ds-t-2) var(--ds-ease-out); }
.ds-am-go .ds-i { width:13px; height:13px; transition:transform var(--ds-t-4) var(--ds-ease-spring); }
.ds-am-who:is( .is-hover) .ds-am-go { color:var(--ds-ink); }
.ds-am-who:is( .is-hover) .ds-am-go .ds-i { transform:translateX(3px); }
.ds-am-sep { display:block; height:1px; margin:6px 10px; background:var(--ds-line); }
.ds-am-cap { margin:6px 12px 4px; font-size:var(--ds-t-12); line-height:1.3; color:var(--ds-ink-4); }
.ds-am-row { display:flex; align-items:center; gap:12px; width:100%; min-height:46px; padding:0 10px 0 7px; border-radius:var(--ds-r-12); font-size:14.5px; line-height:1.2; text-align:left; text-decoration:none; color:var(--ds-ink-2); transition:background-color var(--ds-t-2) var(--ds-ease-out), color var(--ds-t-2) var(--ds-ease-out); }
.ds-am-row > span:not(.ds-am-ic):not(.ds-seg) { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
button.ds-am-row:is( .is-hover), a.ds-am-row:is( .is-hover) { background:var(--ds-hover); color:var(--ds-ink); }
.ds-am-ic { display:grid; flex:none; width:28px; height:28px; place-items:center; color:var(--ds-ink-3); transition:color var(--ds-t-2) var(--ds-ease-out); }
:is(button, a).ds-am-row:is( .is-hover) .ds-am-ic { color:var(--ds-ink); }
.ds-am-row--look { gap:12px; padding-right:4px; cursor:default; }
.ds-am-row--look .ds-seg { flex:none; min-width:176px; }
/* the other apps: the app's mark outlined and small, in the icon column, the name alone, an arrow only under the pointer */
.ds-am-app .ds-am-ic .bsm { width:17px; height:17px; }
.ds-am-app .ds-am-ic[data-app="ask"] .bsm { width:19px; height:19px; } .ds-am-app .ds-am-ic[data-app="bitesized"] .bsm { width:16px; height:16px; }
.ds-am-app { --bsm-ink:var(--ds-ink-3); }
.ds-am-app:is( .is-hover) { --bsm-ink:var(--ds-ink); }
.ds-am-app > .ds-i { flex:none; width:14px; height:14px; color:var(--ds-ink-4); opacity:0; transition:opacity var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-spring); }
.ds-am-app:is( .is-hover) > .ds-i { opacity:1; transform:translate(1px, -1px); color:var(--ds-ink); }
.ds-am-row.is-out { color:var(--ds-ink-3); }
.ds-am-row.is-out:is( .is-hover) { color:var(--ds-ink); }
.ds-am :is(button, a):focus-visible { outline:2px solid var(--ds-grey-accent); outline-offset:-2px; border-radius:var(--ds-r-12); }
html.motion .ds-am.ds-arrive-menu :is(.ds-am-who, .ds-am-row, .ds-am-cap) { animation:ds-am-row .44s var(--ds-ease-spring) both; animation-delay:calc(var(--i, 0) * 25ms); }
@keyframes ds-am-row { from { opacity:0; transform:translateY(-4px); } }
@media (max-width: 639.98px) { .ds-am-row--look .ds-seg { min-width:0; } .ds-am-row--look .ds-seg button { padding:0 8px; } }


/* ─── ds/components/overlays.css ─── */
/* Doctorpedia Design System · overlays
   What floats over the page: the veil, sheets and modals, the confirm, the drawer, popovers, tooltips, toasts (drawn in core.css), the
   snackbar, banners and notice strips inside a panel, the lightbox and the takeover. A sheet dims the page; a popover does not. Everything
   arrives with the classes in motion.css and leaves through DS.leave; dialogs trap focus and give it back. */

/* wants a home in tokens: a light that stays light on a veil in both modes, and a deeper veil for pictures */
/* wants a home in motion.css: the veil's exit, the drawer's exits, the slide of a picture to the next one */
@keyframes ds-veil-out { to { opacity:0; } }
@keyframes ds-drawer-out { to { transform:translateX(-100%); } }
@keyframes ds-drawer-out-right { to { transform:translateX(100%); } }
@keyframes ds-slide-next { from { opacity:0; transform:translateX(12px); } }
@keyframes ds-slide-prev { from { opacity:0; transform:translateX(-12px); } }
/* wants a home in base.css: the page does not scroll under a sheet, a drawer or a lightbox */
html.ds-locked, html.ds-locked body { overflow:hidden; }

/* the veil: the page behind a sheet, a modal, a drawer or a lightbox; since 19 Nov 2026 (BiteSized's .hl-scrim and .sheet-veil) it is the
   page's own colour at 62 percent with a 6 px blur, so the page stays in sight, softened; firmer under higher contrast (the token).
   Fades in .32 s and out again. A popover never has one. */
.ds-veil { position:fixed; inset:0; z-index:var(--ds-z-sheet); background:var(--ds-veil); -webkit-backdrop-filter:var(--ds-veil-blur); backdrop-filter:var(--ds-veil-blur); touch-action:none; }
.ds-veil--deep { background:var(--ds-veil-deep); }
html.motion .ds-veil { animation:ds-veil-in var(--ds-t-4) var(--ds-ease-out) both; }
html.motion .ds-veil.is-leaving { animation:ds-veil-out var(--ds-t-4) var(--ds-ease-out) both; }
.ds-veil.is-static { position:absolute; animation:none; }

/* the wrap that centres a sheet or a modal and holds a drawer at its edge; it lets clicks through to the veil */
.ds-dlg-wrap { position:fixed; inset:0; z-index:var(--ds-z-sheet); display:grid; place-items:center; padding:20px; pointer-events:none; }

/* the sheet: white, 16 px corners, 24 px of padding, the box's shadow, 520 wide at most; a title at 20 px, a body, the actions row at the foot.
   On a phone it becomes a bottom sheet with a handle that also closes it when dragged down. */
.ds-sheet { position:relative; display:flex; flex-direction:column; width:100%; max-width:520px; max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); padding:24px 24px 22px 28px; border-radius:22px; background:var(--ds-surface); box-shadow:0 0 0 1px var(--ds-line), var(--ds-shadow-pop); color:var(--ds-ink); pointer-events:auto; outline:none; transition:transform var(--ds-t-4) var(--ds-ease-out); }
.ds-sheet--modal { max-width:440px; }
.ds-sheet--confirm { max-width:400px; }
.ds-sheet-handle { display:none; width:36px; height:4px; margin:-4px auto 12px; border-radius:var(--ds-r-pill); background:var(--ds-line-3); cursor:grab; touch-action:none; }
.ds-sheet-h { margin:0; padding-right:104px; font-family:var(--ds-serif); font-size:25px; font-weight:var(--ds-w-regular); line-height:1.2; letter-spacing:-.01em; color:var(--ds-ink); text-wrap:balance; }   /* the serif title of the family's dialogs (19 Nov 2026) */
.ds-sheet-b { min-height:0; overflow:auto; font-size:var(--ds-t-15); line-height:var(--ds-lh-body); color:var(--ds-ink-2); }
.ds-sheet-h + .ds-sheet-b { margin-top:10px; }
.ds-sheet-b > * + * { margin-top:12px; }
.ds-sheet-f { margin-top:20px; }
.ds-sheet > .ds-close-pill { position:absolute; top:20px; right:20px; }
.ds-sheet.is-static { animation:none; }
@media (max-width: 640px) {
  .ds-sheet:not(.ds-sheet--modal):not(.is-static) { max-width:none; max-height:calc(100dvh - 24px); border-radius:26px 26px 0 0; padding:12px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .ds-sheet:not(.ds-sheet--modal):not(.is-static) .ds-sheet-handle { display:block; }
  .ds-sheet:not(.ds-sheet--modal):not(.is-static) > .ds-close-pill { top:18px; right:16px; }
  .ds-sheet-h { font-size:23px; }
  .ds-sheet--modal { max-width:none; }
  .ds-sheet-f .ds-btn:not(.ds-btn--ghost):not(.ds-btn--danger) { flex:1; }
}

/* the drawer: a panel sliding from the right (420 px, full height) for details or settings; from the left with data-side="left" */
.ds-drawer-sheet { position:absolute; top:0; bottom:0; right:0; display:flex; flex-direction:column; width:min(420px, 100vw); background:var(--ds-surface); box-shadow:-1px 0 0 var(--ds-line), var(--ds-shadow-3); color:var(--ds-ink); pointer-events:auto; outline:none; }
.ds-drawer-sheet[data-side="left"] { right:auto; left:0; box-shadow:1px 0 0 var(--ds-line), var(--ds-shadow-3); }
.ds-drawer-sheet > .ds-sheet-h { padding:22px 60px 0 24px; }
.ds-drawer-sheet > .ds-sheet-b { flex:1; margin-top:14px; padding:0 24px 24px; }
.ds-drawer-sheet > .ds-sheet-f { margin:0; padding:16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); border-top:1px solid var(--ds-line); }
.ds-drawer-sheet > .ds-close-pill { position:absolute; top:16px; right:16px; }
.ds-drawer-sheet > .ds-sheet-h { padding-right:110px; }
html.motion .ds-arrive-drawer { animation:ds-drawer-in-right var(--ds-t-5) var(--ds-ease-spring) both; }
html.motion .ds-arrive-drawer[data-side="left"] { animation-name:ds-drawer-in; }
html.motion .ds-arrive-drawer.is-leaving { animation:ds-drawer-out-right var(--ds-t-4) var(--ds-ease-out) both; }
html.motion .ds-arrive-drawer[data-side="left"].is-leaving { animation-name:ds-drawer-out; }
.ds-drawer-sheet.is-static { position:relative; height:320px; width:100%; max-width:420px; border-radius:var(--ds-r-12); box-shadow:var(--ds-hair), var(--ds-shadow-2); animation:none; }

/* the popover: a small white panel against its trigger, 12 px corners, 16 px of padding, a hairline and the floating shadow; no caret in this house.
   Placed by DS.place, closed by DS.layer (Escape, a click outside, a scroll). It never dims the page. */
.ds-popover { position:fixed; z-index:var(--ds-z-menu); width:max-content; max-width:min(360px, calc(100vw - 16px)); padding:16px; border-radius:var(--ds-r-12); background:var(--ds-surface); box-shadow:var(--ds-hair), var(--ds-shadow-2); color:var(--ds-ink); outline:none; transform-origin:top left; }
.ds-popover.is-up { transform-origin:bottom left; }
.ds-popover-t { margin:0 0 4px; font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); color:var(--ds-ink); }
.ds-popover > p { margin:0; font-size:var(--ds-t-14); line-height:var(--ds-lh-body); color:var(--ds-ink-2); }
.ds-popover > p + p { margin-top:8px; }
.ds-popover .ds-actions { margin-top:12px; }
.ds-popover--cal, .ds-popover--time { padding:12px; }
.ds-popover.is-static { position:static; width:fit-content; max-width:min(360px, 100%); animation:none; }

/* the tooltip: one ink label for the whole app, 12 px medium, 6 px corners; it comes after 400 ms of hover or on keyboard focus, sits above
   by default and below when short of room, fades in .18 s. Never on touch. */
.ds-tip { position:fixed; left:0; top:0; z-index:var(--ds-z-tip); max-width:260px; padding:6px 10px; border-radius:var(--ds-r-6); background:var(--ds-ink); color:var(--ds-on-accent); font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); line-height:var(--ds-lh-ui); text-wrap:balance; pointer-events:none; opacity:0; transform:translateY(3px); transition:opacity var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-2) var(--ds-ease-out); }
.ds-tip.is-below { transform:translateY(-3px); }
.ds-tip.is-on { opacity:1; transform:none; }
.ds-tip.is-static { position:static; display:inline-block; opacity:1; transform:none; }

/* the snackbar: a toast with a longer message and an action; left-aligned words, bottom left of the page, full width on a phone */
.ds-snackbar { position:fixed; left:24px; bottom:24px; z-index:var(--ds-z-toast); display:flex; align-items:flex-start; gap:12px; width:min(440px, calc(100vw - 48px)); padding:10px 8px 10px 16px; border-radius:var(--ds-r-12); background:var(--ds-ink); color:var(--ds-page); box-shadow:var(--ds-shadow-2); font-size:var(--ds-t-14); line-height:1.45; }
.ds-snackbar > .ds-i { margin-top:7px; color:var(--ds-ink-4); }
.ds-snackbar-t { flex:1; min-width:0; padding:5px 0; }
.ds-snackbar-a { flex:none; height:28px; margin-top:3px; padding:0 10px; border-radius:var(--ds-r-pill); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); color:var(--ds-page); background:color-mix(in srgb, var(--ds-page) 12%, transparent); transition:background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-snackbar-a:is( .is-hover) { background:color-mix(in srgb, var(--ds-page) 20%, transparent); }
.ds-snackbar-x { flex:none; margin-top:1px; color:var(--ds-ink-4); }
.ds-snackbar-x:is( .is-hover) { color:var(--ds-page); background:color-mix(in srgb, var(--ds-page) 12%, transparent); }
.ds-snackbar.is-static { position:static; width:min(440px, 100%); }
@media (max-width: 640px) { .ds-snackbar { left:16px; right:16px; bottom:16px; width:auto; } }

/* the banner: one line at the top of a panel between two hairlines, an icon in the tone colour, a word action and a close; no coloured
   background ever. It closes by folding its height (it is a .ds-reveal). */
.ds-banner { width:100%; }
.ds-banner-in { display:flex; align-items:center; gap:12px; min-height:48px; padding:9px 0; border-top:1px solid var(--ds-line); border-bottom:1px solid var(--ds-line); font-size:var(--ds-t-14); line-height:var(--ds-lh-ui); color:var(--ds-ink); }
.ds-banner-in > .ds-i { width:18px; height:18px; color:var(--ds-ink-3); }
.ds-banner--warn .ds-banner-in > .ds-i { color:var(--ds-warn); }
.ds-banner--bad .ds-banner-in > .ds-i { color:var(--ds-bad); }
.ds-banner-in .ds-word { flex:none; color:var(--ds-ink-2); }
.ds-banner-in .ds-word:is( .is-hover) { color:var(--ds-ink); }
.ds-banner-in [data-close] { margin:-4px 0; }

/* the notice strip: a quiet line inside a composer or a transport area, 13 px with a small dot, dismissable; it appears and leaves through height */
.ds-notice { width:100%; }
.ds-notice-in { display:flex; align-items:center; gap:8px; min-height:32px; padding:4px 0; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-notice-dot { flex:none; width:6px; height:6px; border-radius:50%; background:var(--ds-ink-3); }
.ds-notice-t { flex:1; min-width:0; }
.ds-notice-t b { font-weight:var(--ds-w-medium); color:var(--ds-ink-2); }
.ds-notice-x { flex:none; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:var(--ds-ink-4); transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-notice-x:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-notice-x .ds-i { width:14px; height:14px; }

/* the lightbox: a picture or a video over a deep veil at its own size up to the viewport; a close at the top right, previous and next as
   round ghosts when there is a set, the caption and the count at the foot. Escape and the arrows work. */
.ds-lb { position:fixed; inset:0; z-index:calc(var(--ds-z-sheet) + 1); display:grid; place-items:center; padding:56px 64px 64px; pointer-events:none; color:var(--ds-on-dark); }
.ds-lb-v { max-width:100%; max-height:100%; pointer-events:auto; }
.ds-lb-m { display:grid; place-items:center; }
.ds-lb-m img, .ds-lb-m video { max-width:calc(100vw - 128px); max-height:calc(100vh - 120px); width:auto; height:auto; border-radius:var(--ds-r-12); box-shadow:var(--ds-shadow-3); background:var(--ds-ink); }
html.motion .ds-lb-m.is-next { animation:ds-slide-next var(--ds-t-4) var(--ds-ease-out) both; }
html.motion .ds-lb-m.is-prev { animation:ds-slide-prev var(--ds-t-4) var(--ds-ease-out) both; }
.ds-lb-x, .ds-lb-nav { position:absolute; display:grid; place-items:center; width:40px; height:40px; border-radius:50%; color:var(--ds-on-dark); pointer-events:auto; transition:background-color var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-lb-x { top:12px; right:12px; }
.ds-lb-x .ds-i, .ds-lb-nav .ds-i { width:20px; height:20px; }
.ds-lb-x:is( .is-hover), .ds-lb-nav:is( .is-hover) { color:var(--ds-on-dark); background:color-mix(in srgb, var(--ds-on-dark) 14%, transparent); }
.ds-lb-nav { top:50%; transform:translateY(-50%); }
.ds-lb-nav.is-prev { left:12px; } .ds-lb-nav.is-next { right:12px; }
.ds-lb-nav:disabled { opacity:.3; pointer-events:none; }
.ds-lb-f { position:absolute; left:20px; right:20px; bottom:20px; display:flex; align-items:baseline; justify-content:space-between; gap:12px; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); pointer-events:none; }
.ds-lb-cap { min-width:0; }
.ds-lb-n { font-family:var(--ds-mono); font-size:var(--ds-t-12); font-variant-numeric:tabular-nums; opacity:.7; }
.ds-lb.is-static { position:relative; inset:auto; height:300px; width:100%; padding:48px 56px 52px; border-radius:var(--ds-r-12); background:var(--ds-veil-deep); animation:none; overflow:hidden; }
.ds-lb.is-static .ds-lb-m img { max-height:200px; max-width:100%; }
@media (max-width: 640px) {
  .ds-lb { padding:56px 8px 64px; }
  .ds-lb-m img, .ds-lb-m video { max-width:calc(100vw - 16px); border-radius:var(--ds-r-8); }
  .ds-lb-nav { top:auto; bottom:12px; transform:none; } .ds-lb-nav.is-prev { left:auto; right:60px; } .ds-lb-nav.is-next { right:12px; }
  .ds-lb-f { right:112px; bottom:22px; flex-direction:column; gap:2px; }
  .ds-lb.is-static { padding:40px 16px 56px; }
}

/* the takeover: a whole panel given to one step (a first run, an empty account): one object, one line, one button, a quiet Skip at the foot */
.ds-takeover { position:relative; display:grid; justify-items:center; align-content:center; gap:20px; width:100%; min-height:320px; padding:40px 24px 64px; text-align:center; }

/* the toaster sits above a sheet's buttons on a phone; the pieces themselves are in core.css */

/* ── the choice dialog (19 Nov 2026, BiteSized's .hl-dialog, clean.css sections 17, 25 and 26: Sort by, Show posts from, Show posts about;
   Ask's specialty and language pickers take it too). In the middle of the window over the veil; on a phone a sheet from the bottom. The
   title in the serif with one quiet line under it, Close as a small pill with its cross, a calm grey search when the list is long, the
   main choices as cards side by side (the chosen one ringed in ink with its tick in the corner), the long list as pills that wrap with
   their quiet counts (or in two columns of rows), the chosen one ringed with its tick where its count was. Where the list is longer than
   the window, the edge with more fades and a small More below pill scrolls on; both leave at the end. Nothing else moves. ── */
.ds-choice { position:fixed; inset:0; z-index:var(--ds-z-sheet); display:grid; place-items:center; padding:24px; }
.ds-choice-veil { position:absolute; inset:0; background:var(--ds-veil); -webkit-backdrop-filter:var(--ds-veil-blur); backdrop-filter:var(--ds-veil-blur); opacity:0; touch-action:none; transition:opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-choice-panel { position:relative; display:flex; flex-direction:column; width:100%; max-width:480px; max-height:min(760px, 100%); overflow:hidden; border-radius:22px; background:var(--ds-surface); box-shadow:0 0 0 1px var(--ds-line), var(--ds-shadow-pop); color:var(--ds-ink); outline:none; opacity:0; transform:translateY(12px); transition:opacity var(--ds-t-2) var(--ds-ease-out), transform .4s var(--ds-ease-spring); }
.ds-choice.is-open .ds-choice-veil { opacity:1; }
.ds-choice.is-open .ds-choice-panel { opacity:1; transform:none; }
.ds-choice.is-leaving .ds-choice-veil, .ds-choice.is-leaving .ds-choice-panel { opacity:0; transition-duration:var(--ds-t-2); }
.ds-choice--wide .ds-choice-panel { max-width:640px; }
.ds-choice-head { display:flex; flex:none; align-items:flex-start; justify-content:space-between; gap:16px; padding:26px 22px 0 28px; }
.ds-choice-head > div { min-width:0; }
.ds-choice-t { margin:0; font-family:var(--ds-serif); font-size:25px; font-weight:var(--ds-w-regular); line-height:1.2; letter-spacing:-.01em; color:var(--ds-ink); }
.ds-choice-sub { margin:4px 0 0; font-size:var(--ds-t-14); line-height:1.4; color:var(--ds-ink-3); }
.ds-choice-find { position:relative; display:block; flex:none; margin:18px 22px 0; }
.ds-choice-find > .ds-i { position:absolute; top:50%; left:14px; width:17px; height:17px; color:var(--ds-ink-3); transform:translateY(-50%); pointer-events:none; }
.ds-choice-find input { display:block; width:100%; height:44px; padding:0 16px 0 42px; border:0; border-radius:var(--ds-r-12); background:var(--ds-surface-2); box-shadow:inset 0 0 0 1px transparent; color:var(--ds-ink); font-size:var(--ds-t-15); outline:none; transition:background-color var(--ds-t-3) var(--ds-ease-out), box-shadow var(--ds-t-3) var(--ds-ease-out); }
.ds-choice-find input::placeholder { color:var(--ds-ink-3); }
.ds-choice-find input:focus { background:var(--ds-surface); box-shadow:inset 0 0 0 1px var(--ds-line-3), 0 0 0 3px color-mix(in srgb, var(--ds-ink) 7%, transparent); }
.ds-choice-body { position:relative; flex:1 1 auto; min-height:0; padding:16px 22px 22px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.ds-choice.has-below .ds-choice-body { -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 64px), transparent); mask-image:linear-gradient(to bottom, #000 calc(100% - 64px), transparent); }
.ds-choice.has-above .ds-choice-body { -webkit-mask-image:linear-gradient(to bottom, transparent, #000 28px); mask-image:linear-gradient(to bottom, transparent, #000 28px); }
.ds-choice.has-below.has-above .ds-choice-body { -webkit-mask-image:linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 64px), transparent); mask-image:linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 64px), transparent); }
/* the main choices: cards side by side, each with its icon; the chosen one ringed in ink, its icon tile in ink, its tick in the corner */
.ds-choice-top { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:10px; }
.ds-choice-card { position:relative; display:flex; align-items:center; gap:12px; width:100%; min-height:76px; padding:14px 34px 14px 16px; border-radius:var(--ds-r-16); background:var(--ds-surface); box-shadow:inset 0 0 0 1px var(--ds-line-2); text-align:left; transition:box-shadow var(--ds-t-2) var(--ds-ease-out), background-color var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-choice-card:is( .is-hover) { box-shadow:inset 0 0 0 1px var(--ds-line-3); }
.ds-choice-card:active { transform:scale(.99); }
.ds-choice-ic { display:grid; flex:none; width:38px; height:38px; place-items:center; border-radius:11px; background:var(--ds-surface-2); color:var(--ds-ink-3); transition:background-color var(--ds-t-2) var(--ds-ease-out), color var(--ds-t-2) var(--ds-ease-out); }
.ds-choice-ic .ds-i { width:19px; height:19px; }
.ds-choice-card > span:not(.ds-choice-ic):not(.ds-choice-tick) { display:grid; gap:2px; min-width:0; }
.ds-choice-card b { font-size:var(--ds-t-15); font-weight:var(--ds-w-regular); line-height:1.3; color:var(--ds-ink); }
.ds-choice-card small { font-size:var(--ds-t-13); line-height:1.35; color:var(--ds-ink-3); }
.ds-choice-tick { position:absolute; top:10px; right:10px; display:grid; width:20px; height:20px; place-items:center; border-radius:50%; background:var(--ds-ink); color:var(--ds-surface); opacity:0; transform:scale(.6); transition:opacity var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-spring); }
.ds-choice-tick .ds-i { width:12px; height:12px; }
.ds-choice-card[aria-checked="true"] { box-shadow:inset 0 0 0 1.5px var(--ds-ink); }
.ds-choice-card[aria-checked="true"] .ds-choice-ic { background:var(--ds-ink); color:var(--ds-surface); }
.ds-choice-card[aria-checked="true"] .ds-choice-tick { opacity:1; transform:none; }
/* the long list: its quiet heading, then pills that wrap (the default) or two columns of rows (.ds-choice-list--cols) */
.ds-choice-list { margin-top:18px; }
.ds-choice-top:empty + .ds-choice-list, .ds-choice-top[hidden] + .ds-choice-list { margin-top:0; }
.ds-choice-list-h { margin:0; padding:0 2px 10px; font-size:var(--ds-t-13); color:var(--ds-ink-3); }
.ds-choice-pills { display:flex; flex-wrap:wrap; align-content:flex-start; gap:7px 6px; }
.ds-choice-pill { display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 12px 0 13px; border:1px solid var(--ds-line-2); border-radius:var(--ds-r-pill); background:var(--ds-surface); font-size:var(--ds-t-14); line-height:1; white-space:nowrap; color:var(--ds-ink); transition:border-color var(--ds-t-2) var(--ds-ease-out), background-color var(--ds-t-2) var(--ds-ease-out), box-shadow var(--ds-t-2) var(--ds-ease-out); }
.ds-choice-pill:is( .is-hover) { border-color:var(--ds-line-3); background:var(--ds-hover); }
.ds-choice-n { font-size:12.5px; color:var(--ds-ink-4); font-variant-numeric:tabular-nums; }
.ds-choice-pill.is-zero { border-style:dashed; color:var(--ds-ink-3); }
.ds-choice-pill .ds-i { display:none; width:14px; height:14px; }
.ds-choice-pill[aria-checked="true"] { border-color:var(--ds-ink); background:var(--ds-surface); box-shadow:inset 0 0 0 .5px var(--ds-ink); }
.ds-choice-pill[aria-checked="true"] .ds-i { display:block; }
.ds-choice-pill[aria-checked="true"] .ds-choice-n { display:none; }
.ds-choice-cols { display:grid; grid-template-columns:1fr 1fr; gap:2px 8px; }
.ds-choice-row { display:flex; align-items:center; gap:10px; width:100%; min-height:42px; padding:8px 12px; border-radius:var(--ds-r-10); font-size:var(--ds-t-15); line-height:1.3; text-align:left; color:var(--ds-ink); transition:background-color var(--ds-t-2) var(--ds-ease-out); }
.ds-choice-row > span:first-child { flex:1; min-width:0; }
.ds-choice-row:is( .is-hover) { background:var(--ds-hover); }
.ds-choice-row .ds-i { display:none; width:16px; height:16px; }
.ds-choice-row.is-zero > span:first-child { color:var(--ds-ink-3); }
.ds-choice-row[aria-checked="true"] { background:var(--ds-surface-2); }
.ds-choice-row[aria-checked="true"] .ds-i { display:block; }
.ds-choice-row[aria-checked="true"] .ds-choice-n { display:none; }
.ds-choice :is(.ds-choice-card, .ds-choice-pill, .ds-choice-row):focus-visible { outline:2px solid var(--ds-grey-accent); outline-offset:-2px; }
.ds-choice-none { margin:0; padding:14px 4px; font-size:var(--ds-t-14); color:var(--ds-ink-3); }
.ds-choice-none[hidden] { display:none; }
/* More below: a small frosted pill at the foot while there is more under the last row */
.ds-choice-more { position:absolute; left:50%; bottom:16px; z-index:2; display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 12px 0 14px; border-radius:var(--ds-r-pill); background:color-mix(in srgb, var(--ds-surface) 92%, transparent); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); box-shadow:inset 0 0 0 1px var(--ds-line-2), var(--ds-shadow-1); font-size:var(--ds-t-13); color:var(--ds-ink-2); opacity:0; pointer-events:none; transform:translate(-50%, 8px); transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-spring), background-color var(--ds-t-2) var(--ds-ease-out); }
.ds-choice-more .ds-i { width:13px; height:13px; }
.ds-choice.has-below .ds-choice-more { opacity:1; pointer-events:auto; transform:translate(-50%, 0); }
.ds-choice-more:is( .is-hover) { background:var(--ds-surface); color:var(--ds-ink); }
/* at rest inside a page (the docs, a picture of it): no veil, in the flow */
.ds-choice.is-static { position:relative; inset:auto; z-index:auto; display:block; padding:0; }
.ds-choice.is-static .ds-choice-veil { display:none; }
.ds-choice.is-static .ds-choice-panel { opacity:1; transform:none; max-height:none; }
.ds-choice.is-static.has-below .ds-choice-panel { max-height:420px; }
@media (max-width: 639.98px) {
  .ds-choice:not(.is-static) { place-items:end center; padding:16px 0 0; }
  .ds-choice:not(.is-static) .ds-choice-panel { max-width:none; border-radius:26px 26px 0 0; padding-bottom:env(safe-area-inset-bottom, 0px); transform:translateY(24px); }
  .ds-choice:not(.is-static).is-open .ds-choice-panel { transform:none; }
  .ds-choice-head { padding:22px 16px 0 22px; }
  .ds-choice-t { font-size:23px; }
  .ds-choice-find { margin:14px 16px 0; }
  .ds-choice-body { padding:14px 14px 24px; }
  .ds-choice-top { grid-template-columns:1fr; gap:8px; }
  .ds-choice-card { min-height:68px; }
  .ds-choice-cols { grid-template-columns:1fr; }
}


/* ─── ds/components/data.css ─── */
/* Doctorpedia Design System · data display
   What is shown, not pressed: tables, lists and rows, cards, figures, the small marks (badge, pill, tag, dot, avatar), progress, the
   waiting skeletons, the empty line, timelines and activity, facts in two columns, code and quotes, a note between hairlines, the folds
   (accordion, disclosure, truncate) and Ask's conversation register. Separation comes from air and one hairline; a list row never carries
   a line under it; numbers are mono with tabular figures; everything that changes transitions. */

/* wants a home in core: a 96 px avatar for a profile header, the two fade lengths of a scroller (registered so they transition), the
   .6 s of a ring drawing itself, and a 36 px ring stroke width */
@property --ds-fl { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --ds-fr { syntax:'<length>'; inherits:false; initial-value:0px; }
@keyframes ds-slide { from { transform:translateX(-100%); } to { transform:translateX(334%); } }

/* ── the scroller: a block that scrolls sideways inside its wrapper (a table on a phone); the edges fade only where there is more ── */
.ds-scroll { position:relative; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; min-width:0; max-width:100%; contain:inline-size; --ds-fl:0px; --ds-fr:0px; transition:--ds-fl var(--ds-t-4) var(--ds-ease-out), --ds-fr var(--ds-t-4) var(--ds-ease-out); }
.ds-scroll.is-fade { -webkit-mask-image:linear-gradient(90deg, transparent, #000 var(--ds-fl), #000 calc(100% - var(--ds-fr)), transparent); mask-image:linear-gradient(90deg, transparent, #000 var(--ds-fl), #000 calc(100% - var(--ds-fr)), transparent); }
.ds-scroll.can-l { --ds-fl:24px; } .ds-scroll.can-r { --ds-fr:24px; }

/* ── table: hairline rows and no vertical lines; 15 px cells, 12 px of vertical padding; a 13 px header in ink-3; the first column in ink,
      the rest in ink-2; numbers right-aligned in mono; a soft hover on rows; a caption line above ── */

/* ── table-sortable: header words that act; a 16 px arrow shows under the pointer and stays when sorted; the body fades softly while
      the rows change place ── */

/* ── table-dense: 36 px rows and 14 px words for a console; a selected row carries a 2 px ink mark at its left ── */

/* ── list: rows with air between them and no hairlines; separation is the air and the soft pill under the pointer ── */

/* ── list-row (shared contract): a leading icon (18, ink-2) or avatar (36), a title 15 px ink with a meta 13 px ink-3 under or beside it,
      a trailing date in mono 12 ink-4 or a chevron; min-height 40 (56 with two lines); radius 8; hover --ds-hover; aria-current is the pill
      and a medium title ── */
.ds-row { position:relative; display:flex; align-items:center; gap:12px; width:100%; min-height:var(--ds-ctl); padding:0 10px; border-radius:var(--ds-r-8); color:var(--ds-ink); text-align:left; text-decoration:none; }
.ds-row:is( .is-hover), .ds-row:focus-within { background:var(--ds-hover); }
.ds-row[aria-current], .ds-row.is-current { background:var(--ds-hover); }
.ds-row[aria-current] .ds-row-t, .ds-row.is-current .ds-row-t { font-weight:var(--ds-w-medium); }
.ds-row > .ds-avatar { flex:none; }   /* the content never widens its row: it fills by flex and ellipsizes */
.ds-row-t { font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:font-weight 0s, color var(--ds-t-3) var(--ds-ease-out); }   /* a pressable body inside a row that also carries actions */

/* ── list-row-actions: actions that appear under the pointer in place of the date, in a 24 px column; always shown on touch; the dots
      keep the pressed pill while their menu is open ── */
.ds-row-a { display:flex; align-items:center; justify-content:flex-end; gap:2px; opacity:0; pointer-events:none; transition:opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-row:is( .is-hover) .ds-row-a, .ds-row:focus-within .ds-row-a, .ds-row:has([aria-expanded="true"]) .ds-row-a, .ds-row.is-open .ds-row-a { opacity:1; pointer-events:auto; }
@media (hover: none) { .ds-row-a { opacity:1; pointer-events:auto; } }

/* ── card: the base card with 16 px inside; a title 15 medium, a body 15 ink-2, a foot row of words; .is-clickable deepens edge and
      shadow under the pointer; .is-selected draws a 1 px ink edge ── */

/* ── card-media: a picture on top at 16:9 with the card's upper corners, then a title, one meta line and a family dot before the meta ── */

/* ── stat: a label 13 px ink-3, the figure 32 px medium in the sans with tabular figures, and a change line whose arrow alone carries the
      ok or bad colour; no sparkline, no icon ── */

/* ── kpi-row: three or four stats separated by hairlines, 24 px apart, never boxed; two per row on a phone ── */

/* ── badge (shared contract): a count on ink, 20 px tall, radius 10, 11 px medium in the on-accent colour, min-width 20; the dot variant
      says "something new" without a number ── */

/* ── pill (shared contract): a static word pill 28 px tall, 13 px medium on surface with a hairline, round; .ds-pill--ink filled; an optional
      6 px dot in a meaning colour before the word; never a figure on it ── */

/* ── tag (shared contract): 24 px, 12 px medium on surface-2, radius 6, ink-2; for kinds and for a family, with the family colour as a small
      square before the word ── */
.ds-tag { display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 8px; border-radius:var(--ds-r-6); background:var(--ds-surface-2); font-family:var(--ds-sans); font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-2); white-space:nowrap; vertical-align:middle; transition:background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-tag .ds-i { width:12px; height:12px; color:var(--ds-ink-3); }

/* ── status-dot (shared contract): the 8 px dot with a word; .is-ok, .is-wait, .is-bad, .is-live (breathing while something is really
      happening), ink-4 by default; the family colours for a kind ── */
.ds-dot { display:inline-block; width:8px; height:8px; flex:none; border-radius:50%; background:var(--ds-ink-4); vertical-align:middle; transition:background-color var(--ds-t-4) var(--ds-ease-out); }
.ds-dot.is-ok { background:var(--ds-ok); } .ds-dot.is-wait { background:var(--ds-warn); } .ds-dot.is-bad { background:var(--ds-bad); } .ds-dot.is-live { background:var(--ds-ok); } .ds-dot.is-own { background:var(--ds-own); }
html.motion .ds-dot.is-live { animation:ds-breathe 1.6s var(--ds-ease-inout) infinite; }

/* ── avatar (shared contract): round 36, an img or two initials on surface-2 (13 px medium ink-2); --sm 28, --lg 56, --xl 96 for a profile
      header; an optional status dot at the bottom right with a 2 px ring of the page colour ── */
.ds-avatar { position:relative; display:inline-grid; place-items:center; width:var(--ds-avatar); height:var(--ds-avatar); flex:none; border-radius:50%; background:var(--ds-surface-2); color:var(--ds-ink-2); font-family:var(--ds-sans); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1; letter-spacing:0; text-transform:uppercase; user-select:none; -webkit-user-select:none; vertical-align:middle; transition:box-shadow var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-avatar img { position:absolute; inset:0; width:100%; height:100%; border-radius:50%; object-fit:cover; }   /* absolute, so a big picture never widens the round */
.ds-avatar--sm { width:var(--ds-avatar-sm); height:var(--ds-avatar-sm); font-size:var(--ds-t-11); }
.ds-avatar > .ds-dot { position:absolute; right:0; bottom:0; width:10px; height:10px; box-shadow:0 0 0 2px var(--ds-avatar-ring, var(--ds-page)); }
.ds-avatar--sm > .ds-dot { width:8px; height:8px; }
.ds-avatar .ds-i { width:18px; height:18px; color:var(--ds-ink-3); }

/* ── avatar-group (shared contract): overlapping by 8 px with a 2 px ring of the page colour, up to four, then a round "+3" in surface-2
      mono 12 ── */

/* ── progress: a 4 px hairline bar with an ink fill whose width travels in .32 s; a label and a mono percent optional; indeterminate: a
      30 percent segment glides ── */
.ds-progress { display:grid; gap:8px; width:100%; min-width:0; }
.ds-progress-l { display:flex; align-items:baseline; justify-content:space-between; gap:12px; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-2); }
.ds-progress-v { font-family:var(--ds-mono); font-size:var(--ds-t-12); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; }
.ds-progress-bar { position:relative; height:4px; overflow:hidden; border-radius:2px; background:var(--ds-line-2); }
.ds-progress-fill { display:block; width:0; height:100%; border-radius:inherit; background:var(--ds-ink); transition:width var(--ds-t-4) var(--ds-ease-inout), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-progress.is-indeterminate .ds-progress-fill { width:30%; transition:none; }
html.motion .ds-progress.is-indeterminate .ds-progress-fill { animation:ds-slide 1.4s var(--ds-ease-inout) infinite; }
.ds-progress.is-indeterminate .ds-progress-v { visibility:hidden; }

/* ── progress-ring: a ring of 36 or 56 drawn in SVG, a line-2 track and an ink stroke whose dash draws in .6 s; the figure or an icon in
      the middle ── */
.ds-progress-ring { position:relative; display:inline-grid; place-items:center; width:36px; height:36px; flex:none; vertical-align:middle; }
.ds-progress-ring--lg { width:56px; height:56px; }
.ds-progress-ring > svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); overflow:visible; }
.ds-progress-ring > svg circle { fill:none; stroke-linecap:round; }
.ds-pr-track { stroke:var(--ds-line-2); }
.ds-pr-fill { stroke:var(--ds-ink); transition:stroke-dashoffset .6s var(--ds-ease-out), stroke var(--ds-t-3) var(--ds-ease-out); }
.ds-progress-ring.is-done .ds-pr-fill { stroke:var(--ds-ok); }
.ds-pr-m { position:relative; font-family:var(--ds-mono); font-size:var(--ds-t-11); line-height:1; color:var(--ds-ink); font-variant-numeric:tabular-nums; }
.ds-progress-ring--lg .ds-pr-m { font-size:var(--ds-t-13); }
.ds-pr-m .ds-i { width:16px; height:16px; color:var(--ds-ink); }
.ds-progress-ring--lg .ds-pr-m .ds-i { width:20px; height:20px; }

/* ── meter: usage as five 8 px segments, the used ones ink, the rest surface-2 with a hairline; "2 of 5 videos" in 13 px; the last used
      segment turns warn when one is left ── */
.ds-meter { display:grid; gap:8px; width:100%; max-width:240px; }
.ds-meter-s { display:flex; gap:4px; }
.ds-meter-s i { display:block; flex:1; height:8px; border-radius:2px; background:var(--ds-surface-2); box-shadow:var(--ds-hair); transition:background-color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out); }
.ds-meter-s i.is-on { background:var(--ds-ink); box-shadow:none; }
.ds-meter-s i.is-on.is-warn { background:var(--ds-warn); }
.ds-meter-w { font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-2); font-variant-numeric:tabular-nums; }
.ds-meter-w b { font-weight:var(--ds-w-medium); color:var(--ds-ink); }

/* ── skeleton-lines: shimmer lines of 12 px at 90, 100 and 60 percent, 10 px apart, radius 6; a title line 20 px tall. Only for what arrives
      within two seconds; after that, the wait line ── */

/* ── skeleton-card: a card with a shimmer picture, a shimmer title and two lines ── */

/* ── empty-state: one line in 15 px ink-3, a 20 px icon in ink-4 above it, one quiet word action under it; centred with 64 px of air; no
      illustration ── */

/* ── timeline: a vertical hairline at the left, 8 px dots (ink when done, a hairline ring while waiting), dated entries 24 px apart ── */

/* ── activity: avatar 28, words 14 px with the name in medium, time ago in mono 12 ink-4 at the right; a divider-label between days ── */

/* ── definition-list: terms 13 px medium ink-3 in a 160 px column, definitions 15 px ink, 12 px between rows, no lines; stacks on a phone ── */

/* ── key-value: "Label …… value" rows of 40 px, the label 14 px ink-3 at the left, the value 14 px ink at the right, a hairline between rows
      (the one place a hairline per row is right: these are facts, not a list) ── */

/* ── code-block: mono 13 px on surface-2, radius 8, 16 px inside, a Copy word at the top right, long lines wrap, 320 px tall at most ── */

/* ── quote: a quotation from a source: 15 px ink-2 with a 2 px line-2 mark at the left, 12 px in, and who said it under it in 13 px ink-3;
      the quote marks are not drawn ── */

/* ── callout: a note between two hairlines: a 16 px icon in ink-3 (or the warn or bad colour) and 14 px words in ink-2; no background, no
      radius; one line or two ── */

/* ── divider-label: a hairline with a 12 px ink-4 label in the middle, or at the left, on the page colour ── */

/* ── accordion: rows of 48 px with a 15 px medium title and a 16 px chevron at the right that turns 90 degrees; the body opens through
      .ds-reveal; one open at a time with data-single; hairlines between rows ── */
.ds-acc-i + .ds-acc-i { box-shadow:inset 0 1px 0 var(--ds-line); }
.ds-acc-h { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:48px; padding:0; font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); line-height:var(--ds-lh-ui); color:var(--ds-ink); text-align:left; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-acc-h > .ds-i { width:16px; height:16px; color:var(--ds-ink-3); transition:transform var(--ds-t-4) var(--ds-ease-inout), color var(--ds-t-3) var(--ds-ease-out); }
.ds-acc-h:is( .is-hover) > .ds-i, .ds-acc-h[aria-expanded="true"] > .ds-i { color:var(--ds-ink); }
.ds-acc-h[aria-expanded="true"] > .ds-i { transform:rotate(90deg); }
.ds-acc-b > div { padding:0 32px 16px 0; font-size:var(--ds-t-15); line-height:var(--ds-lh-body); color:var(--ds-ink-2); }
.ds-acc-b > div > * + * { margin-top:8px; }
.ds-acc-b > div ul { padding-left:1.1em; } .ds-acc-b > div li::marker { color:var(--ds-ink-4); }

/* ── disclosure: a single word with a chevron ("Show the sources") that reveals a block under it; the chevron turns ── */

/* ── truncate: words clamped to N lines with a More word that opens them through height and becomes Less ── */
.ds-trunc { display:grid; gap:6px; justify-items:start; width:100%; max-width:var(--ds-read); }
.ds-trunc-t { width:100%; margin:0; font-size:var(--ds-t-15); line-height:var(--ds-lh-body); color:var(--ds-ink-2); transition:max-height var(--ds-t-4) var(--ds-ease-out); }
.ds-trunc-t.is-clamped { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:var(--ds-lines, 3); overflow:hidden; }
.ds-trunc-more { font-size:var(--ds-t-14); }

/* ── register-list: Ask's conversation register: the date in the left margin in mono 12 ink-4 (a 44 px column), the title 14 px medium,
      no hairlines, a soft pill under the pointer, the current row in ink with its date in ink too, the dots in place of the date under the
      pointer; grouped only by the date itself ── */
.ds-reg-r { position:relative; display:grid; grid-template-columns:56px minmax(0, 1fr); align-items:center; min-height:40px; padding-right:8px; border-radius:var(--ds-r-8); transition:background-color var(--ds-t-4) var(--ds-ease-out); }   /* 56, not 44: "Oct 28" in mono 12 is 43 px and the row keeps its 10 px of padding */
.ds-reg-r:is( .is-hover), .ds-reg-r:focus-within, .ds-reg-r:has(> [aria-expanded="true"]), .ds-reg-r[aria-current], .ds-reg-r:has(.ds-reg-t[aria-current]) { background:var(--ds-hover); }
.ds-reg-d { grid-area:1 / 1; justify-self:start; padding-left:10px; font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:1; color:var(--ds-ink-4); font-variant-numeric:tabular-nums; white-space:nowrap; transition:opacity var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.ds-reg-r.is-same .ds-reg-d { visibility:hidden; }
.ds-reg-r:is( .is-hover) .ds-reg-d, .ds-reg-r:focus-within .ds-reg-d, .ds-reg-r:has(> [aria-expanded="true"]) .ds-reg-d { opacity:0; }
.ds-reg-t { grid-column:2; display:flex; align-items:center; min-height:40px; min-width:0; font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:var(--ds-lh-ui); color:var(--ds-ink-2); text-decoration:none; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-reg-t > span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ds-reg-r:is( .is-hover) .ds-reg-t { color:var(--ds-ink); }
.ds-reg-r[aria-current] .ds-reg-t, .ds-reg-t[aria-current] { color:var(--ds-ink); }
.ds-reg-r[aria-current] .ds-reg-d, .ds-reg-r:has(.ds-reg-t[aria-current]) .ds-reg-d { color:var(--ds-ink); }   /* a quiet label before the register, when one is wanted (Recent) */




/* ─── ds/components/feedback.css ─── */
/* Doctorpedia Design System · feedback
   What the app says while it works and after: the spinner, the thinking dots, the shimmer, the engine's stations, the check that draws,
   the one-line error, live validation, the offline strip, a failed action with Try again, the quiet wait line, a countdown, a recording
   timer, the editor's Saving line, the unsaved bar, a plan limit told at the point of use and the maintenance screen. No boxes, no red
   backgrounds, no fake progress: a loading state lasts as long as the work. */

/* wants a home in core (motion.css): a line that rises 4 px as it appears, and a stroke that draws itself */

/* ── the spinner: a thin ring of 1.5 px in the colour of its words with a transparent quarter, turning in .8 s; 14 in a button, 18 in a row, 24 alone ── */
.ds-spinner { display:inline-block; flex:none; width:18px; height:18px; border-radius:50%; border:1.5px solid currentColor; border-right-color:transparent; opacity:.85; vertical-align:middle; }
html.motion .ds-spinner { animation:ds-spin .8s linear infinite; }
.ds-spinner--sm { width:14px; height:14px; }
.ds-spinner[hidden] { display:none; }
.ds-btn .ds-spinner { width:14px; height:14px; }

/* ── the dots: three 6 px dots in ink-4 breathing one after another (thinking); never a typewriter ── */

/* ── the shimmer: .ds-shimmer (motion.css) on a line, a round or a block; it stands for words that are coming, never for decoration ── */

/* ── the stations (Ask and Dose): rows of 24 px with an 8 px dot per station (done: ink with a tiny check; running: a breathing ink ring; waiting: a hairline ring) and the station's words in plain language ── */
.ds-station { display:flex; align-items:center; gap:10px; height:24px; font-size:var(--ds-t-14); line-height:1; color:var(--ds-ink-3); transition:color var(--ds-t-5) var(--ds-ease-out); }
html.motion .ds-station { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * 80ms); }
.ds-station-dot { position:relative; display:grid; place-items:center; flex:none; width:8px; height:8px; border-radius:50%; box-shadow:inset 0 0 0 1.5px var(--ds-line-2); transition:background-color var(--ds-t-5) var(--ds-ease-out), box-shadow var(--ds-t-5) var(--ds-ease-out); }
.ds-station-dot svg { width:8px; height:8px; opacity:0; transition:opacity var(--ds-t-2) var(--ds-ease-out); }
.ds-station-dot svg path { fill:none; stroke:var(--ds-on-accent); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.ds-station.is-running { color:var(--ds-ink); }
.ds-station.is-running .ds-station-dot { box-shadow:inset 0 0 0 1.5px var(--ds-ink); }
html.motion .ds-station.is-running .ds-station-dot { animation:ds-breathe 1.5s var(--ds-ease-inout) infinite; }
.ds-station.is-done { color:var(--ds-ink-2); }
.ds-station.is-done .ds-station-dot { background:var(--ds-ink); box-shadow:none; }
.ds-station.is-done .ds-station-dot svg { opacity:1; }
.ds-station-l { transition:color var(--ds-t-5) var(--ds-ease-out); }

/* ── the check that draws itself inside an ink round after an approval, with the word beside it; sizes 24 and 40 ── */
.ds-approved { display:inline-flex; align-items:center; gap:12px; font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); color:var(--ds-ink); }
.ds-check-in { display:inline-grid; place-items:center; flex:none; width:40px; height:40px; border-radius:50%; background:var(--ds-ink); color:var(--ds-on-accent); opacity:0; transform:scale(.8); transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-spring), background-color var(--ds-t-4) var(--ds-ease-out); }
.ds-check-in svg { width:20px; height:20px; }
.ds-check-in svg path { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:1; }
.ds-check-in.is-on { opacity:1; transform:none; }
.ds-check-in.is-on svg path { animation:ds-draw var(--ds-t-5) var(--ds-ease-draw) .12s forwards; }
.ds-check-in--sm { width:24px; height:24px; } .ds-check-in--sm svg { width:12px; height:12px; } .ds-check-in--sm svg path { stroke-width:2.2; }
.ds-approved .ds-check-in--sm + span { font-size:var(--ds-t-14); }

/* ── the one-line error under a field or an action: 13 px in the danger colour with a 16 px info icon, plain words, no box; rises as it appears ── */
.ds-error { display:flex; align-items:flex-start; gap:6px; font-size:var(--ds-t-13); line-height:1.4; color:var(--ds-danger); }
.ds-error .ds-i { width:16px; height:16px; margin-top:1px; color:var(--ds-danger); }
.ds-error.is-leaving { opacity:0; transition:opacity var(--ds-t-2) var(--ds-ease-out); }

/* ── live validation: a quiet ink check inside the box when valid, the error line when not ── */
.ds-field-check { display:grid; place-items:center; flex:none; width:16px; height:16px; color:var(--ds-ink); opacity:0; transform:scale(.7); transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-spring); }
.ds-field.is-valid .ds-field-check { opacity:1; transform:none; }
.ds-field-error.ds-error { margin-top:6px; }

/* ── the offline strip at the top of a panel: 13 px ink-3 with an ink-4 dot, appearing and leaving through height ── */
.ds-offline-bar { display:flex; align-items:center; gap:10px; min-height:36px; padding:8px 16px; font-size:var(--ds-t-13); line-height:1.3; color:var(--ds-ink-3); box-shadow:0 1px 0 var(--ds-line); }
.ds-offline-dot { display:block; flex:none; width:8px; height:8px; border-radius:50%; background:var(--ds-ink-4); }

/* ── a failed action as a row: the words in ink-2 and a "Try again" word; while retrying the spinner takes the word's place ── */
.ds-retry-t { transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-retry-b { display:inline-flex; align-items:center; gap:6px; min-width:68px; }

/* ── the quiet wait: one line in 14 px ink-3 above a 2 px hairline whose ink fill eases to 90 percent over the typical time and holds there until done; never steps, never fake percentages ── */
.ds-wait-t { font-size:var(--ds-t-14); line-height:1.3; color:var(--ds-ink-3); }
.ds-wait-bar { position:relative; display:block; height:2px; border-radius:1px; background:var(--ds-line-2); overflow:hidden; }
.ds-wait-fill { position:absolute; inset:0; border-radius:1px; background:var(--ds-ink); transform:scaleX(0); transform-origin:left; }

/* ── the countdown: "Time left 2:40" with the figure in mono and tabular numbers; the last ten seconds in the warn colour ── */
.ds-countdown-n { font-family:var(--ds-mono); font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); font-variant-numeric:tabular-nums; color:var(--ds-ink); transition:color var(--ds-t-4) var(--ds-ease-out); }

/* ── the recording timer: a breathing ink dot and mono 0:00 counting up; Stop as a word ── */
.ds-timer-dot { display:block; flex:none; width:8px; height:8px; border-radius:50%; background:var(--ds-ink); opacity:.4; transition:opacity var(--ds-t-4) var(--ds-ease-out); animation-play-state:paused; }
.ds-timer-n { min-width:3.2ch; font-family:var(--ds-mono); font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); font-variant-numeric:tabular-nums; color:var(--ds-ink); }

/* ── the editor's corner line: Saving… with the small spinner, then Saved · just now, the ago updating each minute ── */

/* ── the unsaved bar: slides up from the foot of a panel while there are changes; Discard as a ghost, Keep as the primary ── */

/* ── a plan limit told at the point of use: 14 px ink-2 with a 16 px info icon and a "See plans" word; the thing asked still starts; no modal, no red ── */

/* ── maintenance: a full-panel quiet state, one line in 17 px ink-2 centred with lots of air, a small clock in ink-4 and a "Check again" word ── */


/* ─── ds/components/media.css ─── */
/* Doctorpedia Design System · media
   Pictures, players, thumbnails, the QR frame, handouts and the portrait upload. Nothing native where people look: the players draw their own
   controls (Sergio, 3 Nov 2026). Pictures keep an inset hairline so white pictures keep an edge; a dark stage under every video; motion on
   every state, entrances gated by html.motion. */

/* wants a home in core: the stage. A video, a poster and a thumbnail sit on a dark stage in both themes; the words, lines and
   scrims over the stage are white and black whatever the theme, so they never read a theme token. */

/* image: a picture in a box of a fixed ratio with an inset hairline, so a white picture keeps an edge; fades in over .32 s when it has loaded */

/* image placeholder: the stand-in when there is no picture; surface-2 with a 20 px image mark in ink-4; .is-loading shimmers while one is coming */

/* video player: our own controls over a dark stage. The poster with a 56 px round play; a bar that fades in under the pointer and hides after
   2.5 s while playing, on the one tone gradient allowed; a 2 px scrub whose thumb appears on hover; mono time; the sound, captions, speed and
   full screen as quiet pieces. Captions are drawn by us from the <track>. */
.ds-video { position:relative; display:block; width:100%; aspect-ratio:16 / 9; overflow:hidden; border-radius:var(--ds-r-12); background:var(--ds-stage); color:var(--ds-on-stage); isolation:isolate; outline-offset:2px; transition:box-shadow var(--ds-t-4) var(--ds-ease-out); }
.ds-video video, .ds-video .ds-video-poster { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:var(--ds-stage); }
.ds-video video { object-fit:contain; }
.ds-video.is-started .ds-video-poster { opacity:0; }
.ds-video .ds-video-poster { transition:opacity var(--ds-t-4) var(--ds-ease-out); pointer-events:none; }
.ds-video-stage { position:absolute; inset:0; cursor:pointer; }
/* the big play: white, a hairline and the panel shadow, the ring draws under the pointer; it leaves when the video plays */
.ds-video-big { position:absolute; left:50%; top:50%; z-index:2; display:grid; place-items:center; width:56px; height:56px; margin:-28px 0 0 -28px; border-radius:50%; color:var(--ds-ink); background:var(--ds-surface); box-shadow:var(--ds-hair-2), var(--ds-shadow-2); transition:opacity var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out); }
.ds-video-big .ds-i { width:20px; height:20px; margin-left:2px; }
.ds-video-big:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
.ds-video.is-playing .ds-video-big, .ds-video.is-loading .ds-video-big { opacity:0; transform:scale(.9); pointer-events:none; }
/* loading: a thin white ring turns at the centre for as long as the stream waits */
.ds-video-wait { position:absolute; left:50%; top:50%; z-index:2; width:28px; height:28px; margin:-14px 0 0 -14px; border-radius:50%; border:2px solid var(--ds-stage-line); border-top-color:var(--ds-on-stage); opacity:0; transition:opacity var(--ds-t-3) var(--ds-ease-out); pointer-events:none; }
.ds-video.is-loading .ds-video-wait { opacity:1; }
html.motion .ds-video.is-loading .ds-video-wait { animation:ds-spin .9s linear infinite; }
/* the bar: hidden at rest, arrives with the pointer, a touch or focus; stays while paused once started */
.ds-video-bar { position:absolute; left:0; right:0; bottom:0; z-index:3; padding:36px 8px 6px; background:var(--ds-stage-scrim); opacity:0; transform:translateY(4px); transition:opacity var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out); }
.ds-video.is-ui .ds-video-bar, .ds-video.is-started:not(.is-playing) .ds-video-bar, .ds-video:focus-within .ds-video-bar { opacity:1; transform:none; }
.ds-video:not(.is-ui):not(:focus-within).is-playing .ds-video-bar { pointer-events:none; }
.ds-video.is-ui { cursor:default; } .ds-video.is-playing:not(.is-ui):not(:focus-within) { cursor:none; }
/* the scrub: a 2 px line, a buffered segment, the played fill and a 12 px thumb that appears under the pointer */
.ds-video-scrub { position:relative; display:flex; align-items:center; height:20px; margin:0 8px; cursor:pointer; touch-action:none; border-radius:var(--ds-r-4); }
.ds-video-track { position:relative; width:100%; height:2px; border-radius:1px; background:var(--ds-stage-line); transition:height var(--ds-t-3) var(--ds-ease-out); }
.ds-video-buf, .ds-video-fill { position:absolute; left:0; top:0; bottom:0; width:0; border-radius:inherit; }
.ds-video-buf { background:var(--ds-stage-line-2); transition:width var(--ds-t-4) var(--ds-ease-out); }
.ds-video-fill { background:var(--ds-on-stage); }
.ds-video-thumb { position:absolute; top:50%; left:0; width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%; background:var(--ds-on-stage); box-shadow:var(--ds-shadow-1); opacity:0; transform:scale(.6); transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-video-scrub:is( .is-hover, .is-scrubbing) .ds-video-thumb { opacity:1; transform:none; }
.ds-video-scrub:focus-visible { outline:none; } .ds-video-scrub:focus-visible .ds-video-track { height:4px; }
/* the row under the scrub: play, time, air, sound, captions, speed, full screen */
.ds-video-row { display:flex; align-items:center; gap:2px; height:40px; }
.ds-video-btn { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:50%; color:var(--ds-on-stage); background:none; transition:background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-video-btn .ds-i { width:18px; height:18px; }
.ds-video-btn:is( .is-hover) { background:var(--ds-stage-hover); }
.ds-video-btn:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
.ds-video-btn[aria-pressed="true"] { background:var(--ds-stage-hover); }
.ds-video-btn:focus-visible { outline-color:var(--ds-on-stage); outline-offset:-2px; border-radius:50%; }
.ds-video-time { flex:none; margin:0 8px 0 6px; font-family:var(--ds-mono); font-size:var(--ds-t-12); font-variant-numeric:tabular-nums; color:var(--ds-on-stage); opacity:.92; white-space:nowrap; }
.ds-video-grow { flex:1; min-width:0; }
.ds-video-word { display:inline-flex; align-items:center; justify-content:center; height:28px; min-width:32px; padding:0 8px; flex:none; border-radius:var(--ds-r-pill); font-family:var(--ds-sans); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-on-stage); opacity:.78; transition:opacity var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-video-word .ds-i { width:18px; height:18px; }
.ds-video-word:is( .is-hover) { opacity:1; background:var(--ds-stage-hover); }
.ds-video-word[aria-pressed="true"] { opacity:1; background:var(--ds-stage-press); }
.ds-video-word:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
.ds-video-word:focus-visible { outline-color:var(--ds-on-stage); outline-offset:-2px; border-radius:var(--ds-r-pill); }
/* the sound: the mute toggle and a short volume line that opens beside it under the pointer */
.ds-video-sound { display:flex; align-items:center; flex:none; }
.ds-video-vol { position:relative; display:flex; align-items:center; width:0; height:20px; overflow:hidden; opacity:0; cursor:pointer; touch-action:none; border-radius:var(--ds-r-4); transition:width var(--ds-t-4) var(--ds-ease-inout), opacity var(--ds-t-3) var(--ds-ease-out), margin var(--ds-t-4) var(--ds-ease-inout); }
.ds-video-sound:is( .is-hover) .ds-video-vol, .ds-video-vol.is-scrubbing { width:56px; margin-right:8px; opacity:1; }
.ds-video-vol-track { position:relative; width:100%; height:2px; border-radius:1px; background:var(--ds-stage-line); }
.ds-video-vol-fill { position:absolute; left:0; top:0; bottom:0; border-radius:inherit; background:var(--ds-on-stage); transition:width var(--ds-t-2) var(--ds-ease-out); }
.ds-video.is-muted .ds-video-vol-fill { opacity:.4; }
.ds-video-vol:focus-visible { outline-color:var(--ds-on-stage); }
/* captions: drawn by us, a 15 px line on a soft scrim, above the bar while the bar is up */
.ds-video-cc { position:absolute; left:16px; right:16px; bottom:16px; z-index:2; text-align:center; font-size:var(--ds-t-15); line-height:1.45; color:var(--ds-on-stage); pointer-events:none; opacity:1; transition:bottom var(--ds-t-4) var(--ds-ease-out), opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-video-cc:empty, .ds-video:not(.has-cc) .ds-video-cc { opacity:0; }
.ds-video-cc span { padding:3px 8px; border-radius:var(--ds-r-6); background:var(--ds-stage-cc); -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.ds-video.is-ui .ds-video-cc, .ds-video.is-started:not(.is-playing) .ds-video-cc, .ds-video:focus-within .ds-video-cc { bottom:68px; }
/* full screen: the stage fills the screen, the corners go */
.ds-video:fullscreen { border-radius:0; aspect-ratio:auto; width:100%; height:100%; }
.ds-video:fullscreen video { object-fit:contain; }
/* a small player (a clip beside words): the controls shrink to a row of 32 */

/* audio player: a row for a voice sample. A 40 px round play with the ring, the waveform or a scrub line, the time in mono and a speed word. */
.ds-audio { display:flex; align-items:center; gap:12px; width:100%; max-width:480px; min-height:40px; }
.ds-audio audio { display:none; }
.ds-audio-play { --ds-a:0deg; position:relative; isolation:isolate; display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:50%; color:var(--ds-ink); background:var(--ds-surface); box-shadow:var(--ds-hair-2); transition:background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out), opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-audio-play > * { position:relative; z-index:1; }
.ds-audio-play .ds-i { width:18px; height:18px; }
.ds-audio-play .ds-i--play { margin-left:2px; }
.ds-audio-play::before { content:''; position:absolute; inset:0; z-index:0; padding:1px; border-radius:inherit; pointer-events:none; opacity:0; background:conic-gradient(from 270deg, var(--ds-ink) var(--ds-a), transparent 0); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; transition:opacity .45s var(--ds-ease-out), --ds-a 0s linear .45s; }
.ds-audio-play:is( .is-hover) { --ds-a:360deg; }
.ds-audio-play:is( .is-hover)::before { opacity:1; transition:opacity .3s var(--ds-ease-out), --ds-a var(--ds-t-5) var(--ds-ease-draw); }
.ds-audio-play:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
.ds-audio-play:disabled { opacity:.45; pointer-events:none; }
.ds-audio.is-loading .ds-audio-play .ds-i { opacity:.4; }
.ds-audio-mid { position:relative; flex:1; min-width:0; display:flex; align-items:center; height:40px; }
.ds-audio-scrub { position:relative; display:flex; align-items:center; width:100%; height:20px; cursor:pointer; touch-action:none; border-radius:var(--ds-r-4); }
.ds-audio-track { position:relative; width:100%; height:2px; border-radius:1px; background:var(--ds-line-2); transition:height var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out); }
.ds-audio-fill { position:absolute; left:0; top:0; bottom:0; width:0; border-radius:inherit; background:var(--ds-ink); }
.ds-audio-thumb { position:absolute; top:50%; left:0; width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%; background:var(--ds-surface); box-shadow:0 0 0 1px var(--ds-ink); opacity:0; transform:scale(.6); transition:opacity var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-audio-scrub:is( .is-hover, .is-scrubbing) .ds-audio-thumb { opacity:1; transform:none; }
.ds-audio-scrub:focus-visible { outline:none; } .ds-audio-scrub:focus-visible .ds-audio-track { height:4px; }
.ds-audio-time { flex:none; font-family:var(--ds-mono); font-size:var(--ds-t-12); font-variant-numeric:tabular-nums; color:var(--ds-ink-3); white-space:nowrap; transition:color var(--ds-t-4) var(--ds-ease-out); }
.ds-audio.is-playing .ds-audio-time { color:var(--ds-ink-2); }
.ds-audio-word { display:inline-flex; align-items:center; justify-content:center; height:28px; min-width:36px; padding:0 8px; flex:none; border-radius:var(--ds-r-pill); font-family:var(--ds-sans); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-3); font-variant-numeric:tabular-nums; transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); }
.ds-audio-word:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-audio-word:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
.ds-audio-l { flex:none; font-size:var(--ds-t-13); color:var(--ds-ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:40%; }

/* waveform: bars of 2 px with 2 px gaps drawn in SVG from data-bars; line-3 at rest and ink up to the played point; click or arrows to seek */
.ds-wave { display:block; width:100%; height:32px; cursor:pointer; touch-action:none; border-radius:var(--ds-r-4); overflow:visible; }
.ds-wave rect { fill:var(--ds-line-3); transition:fill var(--ds-t-2) var(--ds-ease-out); transform-box:fill-box; transform-origin:center; }
.ds-wave rect.is-on { fill:var(--ds-ink); }
.ds-wave:is( .is-hover) rect:not(.is-on) { fill:color-mix(in srgb, var(--ds-ink) 32%, transparent); }
.ds-wave:focus-visible { outline-offset:4px; }
@keyframes ds-wave-in { from { transform:scaleY(.08); } }
html.motion .ds-wave.is-in rect { animation:ds-wave-in var(--ds-t-5) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * 3ms); }

/* thumbnail: a 16:9 picture with the duration on a small dark pill and a family dot for its kind; the edge deepens and a 32 px play appears under the pointer */
.ds-thumb { position:relative; display:block; width:180px; max-width:100%; aspect-ratio:16 / 9; flex:none; overflow:hidden; border-radius:var(--ds-r-8); background:var(--ds-surface-2); color:var(--ds-on-stage); isolation:isolate; transition:box-shadow var(--ds-t-4) var(--ds-ease-out); }
.ds-thumb img { width:100%; height:100%; object-fit:cover; transition:opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-thumb::after { content:''; position:absolute; inset:0; z-index:2; border-radius:inherit; box-shadow:inset 0 0 0 1px var(--ds-line); pointer-events:none; transition:box-shadow var(--ds-t-4) var(--ds-ease-out); }
.ds-thumb:is( .is-hover)::after { box-shadow:inset 0 0 0 1px var(--ds-line-3); }
.ds-thumb.is-current::after { box-shadow:inset 0 0 0 1px var(--ds-ink); }

/* gallery: a grid of thumbnails, 160 and up, 8 px apart; one opens the lightbox and the arrows move between them */

/* qr: a white card holding the code at 160 px, a one-line label under it, and Download and Copy link as words */
.ds-qr-code { position:relative; display:block; width:160px; height:160px; border-radius:var(--ds-r-6); overflow:hidden; background:var(--ds-surface); }
.ds-qr-code img, .ds-qr-code svg { display:block; width:100%; height:100%; transition:opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-qr-code svg { fill:var(--ds-ink); }
:root[data-theme="dark"] .ds-qr-code, :root:not([data-theme="light"]) .ds-qr-code { }

/* document card: a handout or a PDF as a card: a 40 px doc tile, the title at 15 medium, the meta in mono, Open and Download as words */
/* pdf page: a page preview in an A4 frame, white with a hairline and the panel shadow, a title line and grey lines inside, the page number in mono under; a row scrolls sideways */

/* avatar upload: the round portrait of 96 with a 32 px camera button overlapping at the bottom right; drop or choose a file; a thin ring over the
   portrait while it uploads; Remove as a word under */
.ds-avatar-upload-pic { cursor:pointer; position:relative; display:grid; place-items:center; width:96px; height:96px; border-radius:50%; overflow:hidden; background:var(--ds-surface-2); color:var(--ds-ink-2); font-size:var(--ds-t-24); font-weight:var(--ds-w-medium); letter-spacing:-.01em; box-shadow:var(--ds-hair); cursor:pointer; transition:box-shadow var(--ds-t-4) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out), opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-avatar-upload-pic img { width:100%; height:100%; object-fit:cover; transition:opacity var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out); }
.ds-avatar-upload-pic .ds-i { width:20px; height:20px; color:var(--ds-ink-4); }
.ds-avatar-upload-pic:is( .is-hover) { box-shadow:var(--ds-hair-3); }
.ds-avatar-upload-frame { position:relative; width:96px; height:96px; }
/* the ring: borrowed look of the progress ring (data): a 2 px track in line-2 and an ink arc that follows data-progress */
.ds-avatar-upload-ring { position:absolute; inset:-4px; width:104px; height:104px; pointer-events:none; opacity:0; transform:rotate(-90deg); transition:opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-avatar-upload-ring circle { fill:none; stroke-width:2; }
.ds-avatar-upload-ring .ds-avatar-upload-ring-t { stroke:var(--ds-line-2); }
.ds-avatar-upload-ring .ds-avatar-upload-ring-v { stroke:var(--ds-ink); stroke-linecap:round; transition:stroke-dashoffset var(--ds-t-4) var(--ds-ease-out); }
.ds-avatar-upload-btn { --ds-a:0deg; position:absolute; right:-2px; bottom:-2px; z-index:2; isolation:isolate; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; color:var(--ds-ink-2); background:var(--ds-surface); box-shadow:var(--ds-hair-2), var(--ds-shadow-1); transition:color var(--ds-t-4) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out); }
.ds-avatar-upload-btn > * { position:relative; z-index:1; }
.ds-avatar-upload-btn .ds-i { width:16px; height:16px; }
.ds-avatar-upload-btn::before { content:''; position:absolute; inset:0; z-index:0; padding:1px; border-radius:inherit; pointer-events:none; opacity:0; background:conic-gradient(from 270deg, var(--ds-ink) var(--ds-a), transparent 0); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; transition:opacity .45s var(--ds-ease-out), --ds-a 0s linear .45s; }
.ds-avatar-upload-btn:is( .is-hover) { --ds-a:360deg; color:var(--ds-ink); }
.ds-avatar-upload-btn:is( .is-hover)::before { opacity:1; transition:opacity .3s var(--ds-ease-out), --ds-a var(--ds-t-5) var(--ds-ease-draw); }
.ds-avatar-upload-btn:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
.ds-avatar-upload-words { display:flex; align-items:center; justify-content:center; gap:4px 16px; flex-wrap:wrap; }
.ds-avatar-upload-err { font-size:var(--ds-t-13); color:var(--ds-danger); text-align:center; }

/* poster: a video's cover with its title set at the bottom left over a soft scrim from the bottom, the doctor and specialty under it, and a 56 px round play whose ring draws under the pointer */

/* ── the mini player (19 Nov 2026, BiteSized's player.css .bsp-mini): the video keeps playing in a small frosted card in a corner while the
   page moves on. The card is the page's own floating glass (surface at 86 percent, a hairline, the floating shadow), so it reads in
   every tone; the picture keeps its dark stage, its position a thin line along its foot. Under it one row: play or pause, the time,
   Back to video (a pill with its word) and Close. It arrives from its corner and leaves into it; nothing loops. ── */
.ds-mini { --mini-pad:6px; --mini-row:46px; --mini-w:320px; --mini-x:24px; --mini-y:24px; position:fixed; z-index:var(--ds-z-panel); width:var(--mini-w); padding:var(--mini-pad) var(--mini-pad) 0; border-radius:calc(14px + var(--mini-pad)); background:color-mix(in srgb, var(--ds-surface) 86%, transparent); -webkit-backdrop-filter:blur(22px) saturate(1.5); backdrop-filter:blur(22px) saturate(1.5); box-shadow:0 0 0 1px var(--ds-line-2), var(--ds-shadow-pop); color:var(--ds-ink); opacity:0; transform:translateY(12px) scale(.94); transform-origin:100% 100%; transition:opacity var(--ds-t-3) var(--ds-ease-out), transform .6s var(--ds-ease-spring); }
.ds-mini.is-in { opacity:1; transform:none; }
.ds-mini.is-out { opacity:0; transform:translateY(8px) scale(.96); pointer-events:none; transition-duration:var(--ds-t-3); }
.ds-mini.is-static { position:relative; inset:auto; z-index:auto; opacity:1; transform:none; }
.ds-mini-pic { position:relative; display:block; overflow:hidden; aspect-ratio:16 / 9; border-radius:14px; background:var(--ds-stage); }
.ds-mini-pic img, .ds-mini-pic video { width:100%; height:100%; object-fit:cover; }
.ds-mini-pic::after { content:''; position:absolute; left:0; bottom:0; height:3px; width:var(--mini-at, 30%); background:var(--ds-on-stage); opacity:.95; }
.ds-mini-row { display:flex; align-items:center; gap:2px; height:var(--mini-row); padding-top:3px; container-type:inline-size; }
.ds-mini-gap { flex:1; }
.ds-mini-time { flex:none; margin-left:2px; font-size:12.5px; line-height:1; font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--ds-ink-3); }
@container (max-width: 250px) { .ds-mini-time { display:none; } }
.ds-mini .ds-icon-btn { width:36px; height:36px; border-radius:11px; }
.ds-mini-back { display:inline-flex; flex:none; align-items:center; gap:6px; height:32px; margin-right:2px; padding:0 12px 0 10px; border-radius:var(--ds-r-pill); background:var(--ds-surface); box-shadow:inset 0 0 0 1px var(--ds-line-2); font-size:var(--ds-t-13); line-height:1; white-space:nowrap; color:var(--ds-ink); transition:box-shadow var(--ds-t-2) var(--ds-ease-out), background-color var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-mini-back .ds-i { width:15px; height:15px; }
.ds-mini-back:is( .is-hover) { box-shadow:inset 0 0 0 1px var(--ds-line-3); background:color-mix(in srgb, var(--ds-ink) 4%, var(--ds-surface)); }
.ds-mini-back:active { transform:scale(.95); }
@media (max-width: 1023.98px) { .ds-mini { --mini-w:288px; --mini-x:12px; --mini-y:90px; } }
@media (max-width: 639.98px) { .ds-mini { --mini-w:216px; --mini-pad:5px; --mini-row:44px; } }


/* ─── ds/components/charts.css ─── */
/* Doctorpedia Design System · charts
   SVG and CSS only, no library. One accent per chart: ink for the thing that matters, the rest in neutral steps. Muted hairline grids, mono 12
   labels in ink-4, no rainbow, no glow, no uppercase. Bars and lines grow on entrance under html.motion in .55 s; a small ink tip follows the
   nearest point under the pointer. Every chart reads its data from data-* and draws itself at its own width. */

/* the frame of every drawn chart: a block of its own width, the SVG inside it, the words in mono */
.ds-chart { position:relative; display:block; width:100%; max-width:420px; font-family:var(--ds-sans); color:var(--ds-ink); outline-offset:4px; border-radius:var(--ds-r-4); }
.ds-chart svg { display:block; width:100%; height:auto; overflow:visible; }
.ds-chart text { font-family:var(--ds-mono); font-size:var(--ds-t-12); fill:var(--ds-ink-4); font-variant-numeric:tabular-nums; transition:fill var(--ds-t-3) var(--ds-ease-out); }
.ds-chart .ds-chart-cat { font-family:var(--ds-sans); fill:var(--ds-ink-3); }
.ds-chart .ds-chart-cat.is-current { fill:var(--ds-ink); }
.ds-chart-grid { stroke:var(--ds-line); stroke-width:1; shape-rendering:crispEdges; }
.ds-chart-base { stroke:var(--ds-line-2); stroke-width:1; shape-rendering:crispEdges; }
.ds-chart-tick { stroke:var(--ds-line-2); stroke-width:1; shape-rendering:crispEdges; }
.ds-chart-hit { fill:transparent; }
.ds-chart-empty { position:absolute; inset:0 0 24px; display:grid; place-items:center; font-size:var(--ds-t-13); color:var(--ds-ink-3); pointer-events:none; }
.ds-chart-n { font-family:var(--ds-mono); font-size:var(--ds-t-13); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; }
@keyframes ds-chart-grow { from { transform:scaleY(0); } }
@keyframes ds-chart-grow-x { from { transform:scaleX(0); } }

/* bar-chart: vertical bars with 8 px tops, the current one ink and the others a quiet neutral, a hairline baseline, two to four grid hairlines with mono labels at the left, category words under */
.ds-chart-bar { fill:color-mix(in srgb, var(--ds-ink-4) 35%, transparent); transition:fill var(--ds-t-3) var(--ds-ease-out); transform-box:fill-box; transform-origin:50% 100%; }
.ds-chart-bar:is( .is-hover) { fill:color-mix(in srgb, var(--ds-ink-4) 60%, transparent); }
.ds-chart-bar.is-current, .ds-chart-bar.is-current:is( .is-hover) { fill:var(--ds-ink); }
html.motion .ds-chart.is-in .ds-chart-bar { animation:ds-chart-grow var(--ds-t-6) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * 30ms); }

/* ranked-bars: a horizontal ranked list, the word at the left, a 6 px bar in ink for the first and line-3 for the rest that grows from the left, the value in mono at the right */
.ds-ranked { display:grid; align-content:start; gap:10px; width:100%; max-width:480px; }
.ds-ranked-row { display:grid; grid-template-columns:160px minmax(0, 1fr) 48px; grid-template-areas:"l t v"; align-items:center; gap:12px; min-height:24px; border-radius:var(--ds-r-4); }
.ds-ranked-l { grid-area:l; } .ds-ranked-track { grid-area:t; } .ds-ranked-v { grid-area:v; }
.ds-ranked-l { font-size:var(--ds-t-14); line-height:var(--ds-lh-ui); color:var(--ds-ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-ranked-track { position:relative; display:block; height:6px; }
.ds-ranked-bar { display:block; height:6px; width:var(--w, 0%); border-radius:3px; background:var(--ds-line-3); transform-origin:0 50%; transition:width var(--ds-t-6) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-ranked-v { font-family:var(--ds-mono); font-size:var(--ds-t-13); color:var(--ds-ink-2); text-align:right; font-variant-numeric:tabular-nums; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-ranked-row:first-child .ds-ranked-l, .ds-ranked-row.is-current .ds-ranked-l, .ds-ranked-row:is( .is-hover) .ds-ranked-l { color:var(--ds-ink); }
.ds-ranked-row:first-child .ds-ranked-bar, .ds-ranked-row.is-current .ds-ranked-bar { background:var(--ds-ink); }
.ds-ranked-row:is( .is-hover):not(:first-child):not(.is-current) .ds-ranked-bar { background:var(--ds-ink-4); }
.ds-ranked-row:first-child .ds-ranked-v, .ds-ranked-row.is-current .ds-ranked-v { color:var(--ds-ink); }
html.motion .ds-ranked.is-in .ds-ranked-bar { animation:ds-chart-grow-x var(--ds-t-6) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * 40ms); }
.ds-ranked.is-empty { color:var(--ds-ink-3); font-size:var(--ds-t-13); }
/* narrow (under 360 px, set by the behaviour from the list's own width): the bar moves under its word */
.ds-ranked.is-narrow .ds-ranked-row { grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"l v" "t t"; row-gap:6px; }

/* line-chart: a smooth ink line of 1.5 px on a hairline grid, no fill; the nearest point shows a 6 px dot and the tip under the pointer; the line draws itself on entrance */
.ds-chart-stroke { fill:none; stroke:var(--ds-ink); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.ds-chart-area { fill:color-mix(in srgb, var(--ds-ink) 4%, transparent); opacity:0; transition:opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-chart.has-area .ds-chart-area { opacity:1; }
.ds-chart-pt { fill:var(--ds-ink); opacity:0; transition:opacity var(--ds-t-2) var(--ds-ease-out); }
.ds-chart-pt.is-on { opacity:1; }
.ds-chart-cursor { stroke:var(--ds-line-3); stroke-width:1; shape-rendering:crispEdges; opacity:0; transition:opacity var(--ds-t-2) var(--ds-ease-out); }
.ds-chart-cursor.is-on { opacity:1; }
html.motion .ds-chart.is-in .ds-chart-stroke { animation:ds-draw var(--ds-t-6) var(--ds-ease-out) both; }
html.motion .ds-chart.is-in .ds-chart-area { transition-delay:var(--ds-t-5); }

/* sparkline: a small 80 by 24 line in ink-3 with no axes, the last point an ink dot; sits inline with a figure */
.ds-spark { display:inline-block; width:80px; height:24px; vertical-align:middle; overflow:visible; flex:none; }
.ds-spark path { fill:none; stroke:var(--ds-ink-3); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; transition:stroke var(--ds-t-3) var(--ds-ease-out); }
.ds-spark circle { fill:var(--ds-ink); }
.ds-spark.is-empty path { stroke:var(--ds-line-3); }
html.motion .ds-spark.is-in path { animation:ds-draw var(--ds-t-6) var(--ds-ease-out) both; }
html.motion .ds-spark.is-in circle { animation:ds-fade-in var(--ds-t-3) var(--ds-ease-out) both; animation-delay:var(--ds-t-5); }

/* donut: a ring of 96 with a 10 px stroke, one segment in ink and the rest line-2, the figure in the middle and a word under it; the segment draws on entrance */
.ds-donut { position:relative; display:inline-grid; place-items:center; width:96px; height:96px; flex:none; vertical-align:middle; }
.ds-donut svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); overflow:visible; }
.ds-donut circle { fill:none; stroke-width:10; }
.ds-donut-track { stroke:var(--ds-line-2); }
.ds-donut-seg { stroke:var(--ds-ink); transition:stroke-dashoffset var(--ds-t-6) var(--ds-ease-out), stroke var(--ds-t-3) var(--ds-ease-out); }
.ds-donut-v { position:relative; display:grid; justify-items:center; text-align:center; line-height:1; }
.ds-donut-n { font-size:var(--ds-t-24); font-weight:var(--ds-w-medium); letter-spacing:-.01em; color:var(--ds-ink); font-variant-numeric:tabular-nums; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-donut-w { margin-top:5px; font-size:var(--ds-t-12); color:var(--ds-ink-3); }
.ds-donut.is-empty .ds-donut-n { color:var(--ds-ink-4); }

/* stacked-bar: one horizontal bar of 12 px split into the four families with 2 px gaps and round ends, a legend under it; the segments grow from the left */
.ds-stacked { display:grid; align-content:start; gap:12px; width:100%; max-width:420px; }
.ds-stacked-bar { display:flex; gap:2px; height:12px; border-radius:var(--ds-r-6); overflow:hidden; }
.ds-stacked-seg { flex:0 1 0%; min-width:0; height:100%; background:var(--c, var(--ds-ink)); transform-origin:0 50%; transition:flex-grow var(--ds-t-4) var(--ds-ease-inout), margin var(--ds-t-4) var(--ds-ease-inout), opacity var(--ds-t-3) var(--ds-ease-out); } .ds-stacked-seg.is-own { --c:var(--ds-own); }
.ds-stacked-bar:is( .is-hover) .ds-stacked-seg:not(:hover):not(.is-hover) { opacity:.55; }
.ds-stacked-seg.is-off { margin-left:-2px; }
html.motion .ds-stacked.is-in .ds-stacked-seg { animation:ds-chart-grow-x var(--ds-t-6) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * 60ms); }
.ds-stacked.is-empty .ds-stacked-bar { background:var(--ds-surface-2); }

/* legend: 8 px dots (or 10 px squares) and 13 px words in ink-2, 16 px apart, wrapping; a muted item when its series is hidden; click toggles, aria-pressed says so */
.ds-legend { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.ds-legend-i { display:inline-flex; align-items:center; gap:8px; height:24px; padding:0; border-radius:var(--ds-r-4); font-family:var(--ds-sans); font-size:var(--ds-t-13); font-weight:var(--ds-w-regular); line-height:1; color:var(--ds-ink-2); white-space:nowrap; transition:color var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-legend-i i { display:block; width:8px; height:8px; border-radius:50%; background:var(--c, var(--ds-ink)); flex:none; transition:background-color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-out); } .ds-legend-i.is-own i { --c:var(--ds-own); }
button.ds-legend-i { cursor:pointer; } button.ds-legend-i:is( .is-hover) { color:var(--ds-ink); }
.ds-legend-i[aria-pressed="false"] { color:var(--ds-ink-4); } .ds-legend-i[aria-pressed="false"] i { background:var(--ds-line-2); }
.ds-legend-v { font-family:var(--ds-mono); font-size:var(--ds-t-12); color:var(--ds-ink-4); font-variant-numeric:tabular-nums; margin-left:2px; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-legend-i[aria-pressed="false"] .ds-legend-v { color:var(--ds-ink-4); }   /* a hidden series keeps a readable figure; the hollow dot says it is off */

/* axis: a hairline baseline, no arrows, mono 12 ticks in ink-4 every nth value with the first and the last always said; drawn alone to show the look */
.ds-chart--axis .ds-chart-tick { stroke:var(--ds-line-2); }

/* chart-tooltip: the small ink tip that follows the nearest point, above it and flipping at the edges; one for the page, shared by every chart */
.ds-chart-tip { position:fixed; left:0; top:0; z-index:var(--ds-z-menu); display:grid; gap:1px; padding:6px 8px; border-radius:var(--ds-r-6); background:var(--ds-ink); color:var(--ds-on-accent); font-family:var(--ds-sans); font-size:var(--ds-t-12); line-height:1.3; white-space:nowrap; pointer-events:none; opacity:0; transform:translateY(2px); transition:opacity var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-2) var(--ds-ease-out); }
.ds-chart-tip.is-on { opacity:1; transform:none; }
.ds-chart-tip.is-below { transform:translateY(-2px); } .ds-chart-tip.is-below.is-on { transform:none; }
.ds-chart-tip b { font-family:var(--ds-mono); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); font-variant-numeric:tabular-nums; }
.ds-chart-tip span { opacity:.72; }   /* the tip at rest, for the docs */

/* trend: a delta beside a figure: a 16 px arrow up or down in the ok or bad colour with the change in mono 13; flat is ink-4 with a dash */
.ds-trend { display:inline-flex; align-items:center; gap:4px; font-family:var(--ds-mono); font-size:var(--ds-t-13); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; white-space:nowrap; vertical-align:middle; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-trend .ds-i { width:16px; height:16px; color:var(--ds-ink-4); transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-trend b { font-weight:var(--ds-w-medium); color:var(--ds-ink-2); transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-trend.is-good .ds-i { color:var(--ds-ok); } .ds-trend.is-good b { color:var(--ds-ok-ink); }   /* the arrow in the light hue, the figure in the shade that reads */
.ds-trend.is-bad .ds-i { color:var(--ds-bad); } .ds-trend.is-bad b { color:var(--ds-bad-ink); }
.ds-trend.is-flat .ds-i, .ds-trend.is-flat b { color:var(--ds-ink-4); }
.ds-trend-dash { display:inline-block; width:10px; height:1.5px; margin:0 3px; border-radius:1px; background:var(--ds-ink-4); }
.ds-trend--lg { font-size:var(--ds-t-15); } .ds-trend--lg .ds-i { width:18px; height:18px; }


/* ─── ds/components/conversation.css ─── */
/* Doctorpedia Design System · conversation
   The pieces of an answer and what is made from it, taken from Ask's redesign (5 to 9 November 2026): the question as a title, the prose,
   the small source marks, the reference cards, the think line, related rows, the words under an answer, the level control, the print sheet,
   the share pill, the temporary line, the register row, Saved and approval cards, the AI-content label, the Sample pill, the patient
   version, a transcript and a handout. Under an answer only the text and one row of words. The tag, dot, avatar, tabs, menu, popover and
   field box come from their own groups (data, navigation, overlays, inputs), which have landed. */

/* ── wants a home in core (data's dot): the four families as dot colours; the ring of a video card ── */

/* the question: the title of the thread, 32 px medium, tight, on the reading measure; a long one wraps, never an ellipsis */

/* the answer: the reading block and nothing else inside it. Marks at sentence ends; a short list; no thumbnails, no cards */

/* the source mark: a small white box at the end of a sentence, number inside, raised a little; hover is a colour step, never a ring */
.ds-fn { display:inline-flex; align-items:center; justify-content:center; min-width:18px; padding:2px 4px; margin-left:1px; border-radius:var(--ds-r-6); background:var(--ds-surface); box-shadow:var(--ds-hair-2); font-family:var(--ds-sans); font-size:var(--ds-t-11); font-weight:var(--ds-w-medium); line-height:1; letter-spacing:0; color:var(--ds-ink-3); vertical-align:.3em; white-space:nowrap; cursor:pointer; user-select:none; -webkit-user-select:none; font-variant-numeric:tabular-nums; transition:color var(--ds-t-2) var(--ds-ease-out), box-shadow var(--ds-t-2) var(--ds-ease-out), background-color var(--ds-t-2) var(--ds-ease-out); }
.ds-fn + .ds-fn { margin-left:2px; }
.ds-fn:is( .is-hover), .ds-fn.is-active { color:var(--ds-ink); box-shadow:var(--ds-hair-3); }
.ds-fn:focus-visible { outline-offset:1px; border-radius:var(--ds-r-6); }
/* the assistant's own line carries the word Ask in the own colour, in the same small box */
.ds-fn.is-own { color:var(--ds-own-ink); padding:2px 6px; }
.ds-fn.is-own:is( .is-hover) { color:var(--ds-own-ink); box-shadow:0 0 0 1px color-mix(in srgb, var(--ds-own) 55%, transparent); }

/* the reference card: white, 12 px corners, a hairline and the panel shadow; the number in a round at the left; the quote with a 2 px mark */
/* a reference that is a Library video: a 96 px poster at the left with its duration; the moment is a word that plays */

/* the sources view: Answer · Sources as pill tabs under the question, the Sources view in two groups under 13 px labels */

/* the think line: while thinking, a breathing ink dot and a 14 px line whose words swap; when done, one 13 px line that folds away */
.ds-think { max-width:var(--ds-read); }
.ds-think-l { display:flex; align-items:center; gap:10px; min-height:24px; font-size:var(--ds-t-14); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-think-dot { width:6px; height:6px; border-radius:50%; background:var(--ds-ink); flex:none; transition:opacity var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out); }
html.motion .ds-think.is-thinking .ds-think-dot { animation:ds-breathe 1.6s var(--ds-ease-inout) infinite; }
.ds-think.is-done .ds-think-dot { display:none; }
.ds-think.is-done .ds-think-l { font-size:var(--ds-t-13); }
.ds-think-w { display:inline-block; }
.ds-think-l .ds-num { font-variant-numeric:tabular-nums; }

/* related: rows under the answer, 15 px, no hairlines; a plus at the right that becomes an arrow under the pointer */
.ds-related { display:grid; max-width:var(--ds-read); }
.ds-related-row { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:34px; padding:6px 0; width:100%; text-align:left; font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink-2); border-radius:var(--ds-r-4); transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-related-row:is( .is-hover) { color:var(--ds-ink); }

/* suggestions: four small white chips under the box, with the ring; "Others" swaps the four. Never a magazine layout */
.ds-suggest-set { display:contents; }
.ds-suggest-set[hidden] { display:none; }
.ds-suggest-chip { --ds-a:0deg; position:relative; isolation:isolate; display:inline-flex; align-items:center; height:32px; padding:0 14px; border-radius:var(--ds-r-pill); background:var(--ds-surface); box-shadow:var(--ds-hair-2); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-2); white-space:nowrap; max-width:100%; transition:color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out); }
.ds-suggest-chip > span { position:relative; z-index:1; overflow:hidden; text-overflow:ellipsis; }
.ds-suggest-chip::before { content:''; position:absolute; inset:0; z-index:0; padding:1px; border-radius:inherit; pointer-events:none; opacity:0; background:conic-gradient(from 270deg, var(--ds-ink) var(--ds-a), transparent 0); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; transition:opacity .45s var(--ds-ease-out), --ds-a 0s linear .45s; }
.ds-suggest-chip:is( .is-hover) { --ds-a:360deg; color:var(--ds-ink); }
.ds-suggest-chip:is( .is-hover)::before { opacity:1; transition:opacity .3s var(--ds-ease-out), --ds-a var(--ds-t-5) var(--ds-ease-draw); }
.ds-suggest-chip:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
html.motion .ds-suggest-set > .ds-suggest-chip { animation:ds-fade-up var(--ds-t-3) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * var(--ds-stagger)); }
@media (max-width: 640px) { .ds-suggest-chip { height:auto; min-height:36px; padding:8px 14px; white-space:normal; text-align:left; line-height:1.25; } .ds-suggest-chip > span { white-space:normal; overflow:visible; } }

/* the row under an answer: the words from actions; Helpful and Not helpful are a pair; the row fades in once the answer has settled */

/* the level: the small segmented control at the answer's top right; the first paragraph swaps in place */

/* wants a home in core: paper is paper in both themes, so the printed page and the handout read six fixed values (no dark version on purpose) */
/* the paper tokens (--ds-paper*) live in tokens.css since the integration pass; paper stays white in both themes */

/* the printed page, shown here at 60 percent: a white sheet with the panel shadow; sizes in points scaled by --k */
/* the real sheet: an app prints a thread with these; everything that is not the question, the text and the references stays off the paper */
@media print {
   .ds-think, .ds-related { display:none !important; }
  .ds-fn, .ds-fn.is-own { display:inline; padding:0; margin:0 0 0 1pt; background:none; box-shadow:none; font-size:7.5pt; line-height:1; vertical-align:super; color:var(--ds-paper-grey); }
}

/* the share pill and its popover: the link in a quiet field, Copy as a word, one line about what the link holds */

/* the temporary chat line above the box: a 6 px ink dot, one quiet line, End underlined */

/* the register row of the sidebar: the date in a 44 px margin, the title; a soft pill under the pointer, the dots in place of the date */
.ds-conv-t { font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:var(--ds-lh-ui); color:inherit; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ds-conv-m { position:absolute; left:6px; top:4px; opacity:0; transition:opacity var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
 .ds-conv-m[aria-expanded="true"] { opacity:1; }

/* a Saved item: a kind tag, the title, a status line with a dot, the date in mono, one word; grouped by day */
.ds-saved { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:6px 16px; padding:14px 16px; border-radius:var(--ds-r-12); background:var(--ds-surface); box-shadow:var(--ds-hair), var(--ds-shadow-1); transition:box-shadow var(--ds-t-4) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out); }
.ds-saved:is( .is-hover) { box-shadow:var(--ds-hair-2), var(--ds-shadow-2); }
.ds-saved-s { grid-column:1; display:flex; align-items:center; gap:8px; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-saved-s .ds-dot { width:6px; height:6px; }
.ds-saved-day { margin:8px 0 0; font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); color:var(--ds-ink-3); }
.ds-saved-day:first-child { margin-top:0; }

/* the approval: a kind tag, the title, two lines of the draft, the AI label, Approve first; after it the success line, and only then Share */
.ds-approval { display:grid; gap:10px; width:100%; max-width:var(--ds-read); padding:20px; border-radius:var(--ds-r-12); background:var(--ds-surface); box-shadow:var(--ds-hair), var(--ds-shadow-1); }
.ds-approval-ok { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:40px; margin-top:6px; font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); color:var(--ds-ink); }
.ds-approval-ok .ds-word { margin-left:10px; }
html.motion .ds-approval.is-approved .ds-approval-ok { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-out) both; }
html.motion .ds-approval.is-approved .ds-approval-ok .ds-word { animation:ds-fade-in var(--ds-t-4) var(--ds-ease-out) .45s both; }
.ds-approval:not(.is-approved) .ds-approval-ok { display:none; }

/* the AI-content label: a 6 px own-colour dot and 12 px grey words; a tag variant for a corner */
.ds-ai { display:inline-flex; align-items:center; gap:8px; font-size:var(--ds-t-12); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-ai::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--ds-own); flex:none; }

/* the Sample pill (rule A3): a 24 px white pill with a hairline, at the top left of what is not real */

/* the patient version: a card with the simpler words at 17 px, the doctor's name and the AI label at the foot, and Send */

/* the transcript: a search at the top, times in a 56 px margin, the current sentence in ink with a 2 px mark; click a line to seek */
.ds-transcript-n { font-family:var(--ds-mono); font-size:var(--ds-t-12); color:var(--ds-ink-4); font-variant-numeric:tabular-nums; white-space:nowrap; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-transcript-n.is-on { color:var(--ds-ink-2); }
.ds-transcript-list { display:block; max-height:280px; overflow:auto; overscroll-behavior:contain; scroll-padding:12px; padding:2px 0; }   /* block, not grid: a capped grid squeezes its rows to their minimum and two-line sentences overflow */
.ds-transcript-row { position:relative; display:flex; align-items:flex-start; gap:0 4px; width:100%; min-height:32px; padding:5px 8px 5px 0; border-radius:var(--ds-r-6); text-align:left; font-size:var(--ds-t-15); line-height:var(--ds-lh-body); color:var(--ds-ink-2); transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-transcript-row > span { flex:1; min-width:0; }
.ds-transcript-row::before { content:''; position:absolute; left:0; top:6px; bottom:6px; width:2px; border-radius:1px; background:var(--ds-ink); opacity:0; transition:opacity var(--ds-t-3) var(--ds-ease-out); }
.ds-transcript-row time { flex:none; width:56px; padding:4px 0 0 12px; font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:1.3; color:var(--ds-ink-4); font-variant-numeric:tabular-nums; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-transcript-row:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-transcript-row.is-current { color:var(--ds-ink); }
.ds-transcript-row.is-current::before { opacity:1; }
.ds-transcript-row.is-current time { color:var(--ds-ink); }
.ds-transcript-row mark { background:var(--ds-lilac-soft); color:inherit; border-radius:2px; padding:0 1px; margin:0 -1px; }
.ds-transcript-row.is-hidden { display:none; }
.ds-transcript-empty { padding:10px 0 10px 56px; font-size:var(--ds-t-14); color:var(--ds-ink-3); }

/* a one-page handout: an A4 card at 320 px, the title, three short sections, the doctor's name and the AI label at the foot */


/* ─── ds/components/domain.css ─── */
/* Doctorpedia Design System · domain
   The pieces that belong to Doctorpedia's world and no other: a doctor's card and header, specialty and language pills, a patient as a
   contact, the practice's contact block, a Library video card, a lesson row, a BiteSized post, the briefing count, Follow, the verification
   mark, the credits line, the plan gate, an invitation row and the launcher tile. No counts a doctor is judged by; no prices; no patient data
   where it is not needed. The tag, dot and avatar are data's. */

/* the doctor card: portrait 56, name, specialty · city, the languages, View page; a Sample variant with the stand-in portrait */

/* the profile header: portrait 96, name 28 with the verification mark, the specialty line, the languages, Contact the practice and Follow; no counts anywhere */

/* the specialty pill: a white pill of 28 px with the ring; the chosen one is ink; a row that wraps */
.ds-spec { --ds-a:0deg; position:relative; isolation:isolate; display:inline-flex; align-items:center; height:28px; padding:0 12px; border-radius:var(--ds-r-pill); background:var(--ds-surface); box-shadow:var(--ds-hair-2); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-2); white-space:nowrap; transition:color var(--ds-t-4) var(--ds-ease-out), background-color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-4) var(--ds-ease-out); }
.ds-spec > * { position:relative; z-index:1; }
.ds-spec::before { content:''; position:absolute; inset:0; z-index:0; padding:1px; border-radius:inherit; pointer-events:none; opacity:0; background:conic-gradient(from 270deg, var(--ds-ink) var(--ds-a), transparent 0); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; transition:opacity .45s var(--ds-ease-out), --ds-a 0s linear .45s; }
.ds-spec:is( .is-hover) { --ds-a:360deg; color:var(--ds-ink); }
.ds-spec:is( .is-hover)::before { opacity:1; transition:opacity .3s var(--ds-ease-out), --ds-a var(--ds-t-5) var(--ds-ease-draw); }
.ds-spec[aria-pressed="true"], .ds-spec.is-on { color:var(--ds-on-accent); background:var(--ds-accent); box-shadow:none; }
.ds-spec[aria-pressed="true"]::before, .ds-spec.is-on::before { display:none; }
.ds-spec:active { transform:scale(.985); transition-duration:var(--ds-t-1); }
@media (max-width: 640px) { .ds-spec { height:32px; } }

/* languages: small tags in their own names, no flags; "+2" when more than three */
.ds-lang { display:inline-flex; align-items:center; height:24px; padding:0 8px; border-radius:var(--ds-r-6); background:var(--ds-surface-2); font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); line-height:1; color:var(--ds-ink-2); white-space:nowrap; transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-lang--more { color:var(--ds-ink-3); cursor:pointer; font-variant-numeric:tabular-nums; }
.ds-lang--more:is( .is-hover) { color:var(--ds-ink); background:var(--ds-press); }

/* a patient as a contact: initials, first name and initial, what was last sent, Send. No clinical data, ever */

/* the practice contact: key-values in 14 px with a hairline above, Call and Directions as words under it; no map, no patient data */

/* the Library video card: a 16:9 poster with its length and the video dot, a play round that draws the ring on hover, the title, the doctor, the languages */
.ds-vcard-t { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; padding:2px 4px 0; font-size:var(--ds-t-15); font-weight:var(--ds-w-medium); line-height:1.35; color:var(--ds-ink); }   /* the Sample pill takes the corner; the family dot would sit under it */

/* a lesson row: the number in a 28 px column, the title, the length in mono, a check when watched; the current one with the soft pill */
.ds-lesson { display:grid; grid-template-columns:28px minmax(0, 1fr) auto 16px; align-items:center; gap:0 12px; min-height:40px; padding:0 10px 0 8px; border-radius:var(--ds-r-8); text-align:left; width:100%; color:var(--ds-ink-2); transition:background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out); }
.ds-lesson-t { font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ds-lesson:is( .is-hover) { background:var(--ds-hover); color:var(--ds-ink); }
.ds-lesson.is-current, .ds-lesson[aria-current="true"] { background:var(--ds-hover); color:var(--ds-ink); }
.ds-lesson.is-current .ds-lesson-t { font-weight:var(--ds-w-medium); }

/* a BiteSized post: who and when, the title, three lines of the post, the source line with the research dot, the words. 20 px padding */

/* the briefing count: the one count a feed shows. A 6 px ink dot, 15 px words, Read at the right; leaves through height when read */

/* Follow: the white pill; pressed it is the ink Following; under the pointer the pressed one goes white and says Unfollow in the danger colour */
.ds-follow[aria-pressed="true"]:is( .is-hover) { color:var(--ds-danger); background:var(--ds-surface); box-shadow:var(--ds-hair-2); }
.ds-follow[aria-pressed="true"]:is( .is-hover)::before { display:none; }
.ds-follow > span { display:inline-block; transition:opacity var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-2) var(--ds-ease-out); }
.ds-follow > span.is-out { opacity:0; transform:translateY(3px); }

/* the verification mark: a 16 px ink round with a white check after a name; 20 px for a header. Says "Identity confirmed", never "verified" */

/* the credits line in a sidebar foot: a 24 px ring (the track a hairline, the ink stroke by what is left), the figure, Usage; a low state in warn */
.ds-credits-ring { width:24px; height:24px; grid-row:1; transform:rotate(-90deg); }
.ds-credits-ring circle { fill:none; stroke-width:2; }
.ds-credits-ring .track { stroke:var(--ds-line-2); }
.ds-credits-ring .bar { stroke:var(--ds-ink); stroke-linecap:round; stroke-dasharray:62.83; stroke-dashoffset:0; transition:stroke-dashoffset var(--ds-t-6) var(--ds-ease-inout), stroke var(--ds-t-4) var(--ds-ease-out); }
.ds-credits-t { font-size:var(--ds-t-14); font-weight:var(--ds-w-medium); line-height:var(--ds-lh-ui); color:var(--ds-ink); font-variant-numeric:tabular-nums; }

/* the plan gate, at the point of use (30 Sep rule): show it, mark it, lead to the plans. A quiet card, two words; no modal, no red, no exclamation */

/* a pending invitation as a row: the email, a role tag, when it was sent in mono, Resend · Revoke; Accepted with the ok dot */
.ds-invite-e { font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width: 640px) { .ds-invite-e { white-space:normal; overflow-wrap:anywhere; } }

/* the launcher tile: a 56 px white tile holding the app's mark, the word under it; the ring draws on hover; the current one with an ink edge */   /* the family's marks in the page's ink (family/mark.js), no coloured tile, 19 Nov 2026 */
/* superseded 19 Nov 2026: the ink square around a mark; a mark stands on its own (family/mark.js). Kept so old markup still draws. */


/* ─── ds/components/motion.css ─── */
/* Doctorpedia Design System · motion pieces
   The reusable choreographies an app calls (the rules themselves live in ds/motion.css): a screen that gives way to the next, two states
   of one block that trade places, rows that glide to a new order, rows the doctor drags, a figure that rolls, blocks that rise once when
   seen, a skeleton that becomes content, the moment after Approve, the hairline of a page loading, the focus ring that travels, the press,
   and a grid that enters diagonally. Nothing here loops, jumps, fills, sweeps or lifts on hover; every state is still told by a colour
   under html.still and prefers-reduced-motion (the global rules in ds/motion.css make every duration here near zero). */

/* ── page-transition: a screen inside a panel gives way to the next. CSS path: the old content fades 6 px up and out in .18 s, then the
      new content's children rise 8 px in .32 s, 40 ms apart (DS.transition adds .ds-cascade). With the View Transitions API the old and
      the new are the pseudo-elements below, same timing, and the group's size travels so a taller screen never pops. ── */
.ds-screen { position:relative; transition:opacity var(--ds-t-2) var(--ds-ease-out), transform var(--ds-t-2) var(--ds-ease-out); }
.ds-screen.is-leaving { opacity:0; transform:translateY(-6px); }
@keyframes ds-screen-out { to { opacity:0; transform:translateY(-6px); } }
html.ds-vt::view-transition-old(root), html.ds-vt::view-transition-new(root) { animation:none; mix-blend-mode:normal; }
html.ds-vt::view-transition-group(ds-screen) { animation-duration:var(--ds-t-4); animation-timing-function:var(--ds-ease-out); }
html.ds-vt::view-transition-old(ds-screen) { animation:ds-screen-out var(--ds-t-2) var(--ds-ease-out) both; }
html.ds-vt::view-transition-new(ds-screen) { animation:ds-fade-in var(--ds-t-4) var(--ds-ease-out) both; }

/* ── crossfade (and skeleton-swap, which shares the box): two states of one block trade places over the same cell; the box holds the
      taller height while they cross and settles to the new height in .32 s, so nothing under it jumps. The skeleton variant lets the
      shimmer go a step faster (.22 s) than the words arrive (.32 s). ── */
.ds-xfade { position:relative; display:grid; transition:height var(--ds-t-4) var(--ds-ease-inout); }
.ds-xfade.is-crossing { overflow:hidden; }
.ds-xfade > * { grid-area:1 / 1; align-self:start; min-width:0; transition:opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-xfade > .is-out { opacity:0; pointer-events:none; }
.ds-xfade > .is-in-wait { opacity:0; }
.ds-xfade--skel > .is-out { transition-duration:var(--ds-t-3); }

/* ── list-reorder: when the order changes, DS.reorder measures the rows, lets the app change the list, inverts and plays: rows glide to
      their new places in .32 s, rows arriving rise 8 px in, rows leaving fade where they were (a ghost, absolute, for .18 s) ── */
.ds-flip { position:relative; }
.ds-flip > .is-moving { transition:transform var(--ds-t-4) var(--ds-ease-inout); }
html.motion .ds-flip > .is-arriving { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-out) both; }
.ds-flip > .is-ghost { position:absolute; margin:0; pointer-events:none; transition:opacity var(--ds-t-2) var(--ds-ease-out); }
.ds-flip > .is-ghost.is-gone { opacity:0; }

/* ── drag-reorder: a grip of six dots at the left of each row; the row lifted by it follows the pointer carrying the panel shadow while
      the others glide out of its way in .22 s; by keyboard the grip picks the row up with Space, moves it with the arrows, drops it with
      Space, cancels with Escape. The lifted row never scales. ── */
.ds-drag { position:relative; display:grid; gap:2px; }
.ds-drag > * { position:relative; }
.ds-grip { display:inline-grid; place-items:center; flex:none; width:24px; height:32px; border-radius:var(--ds-r-6); color:var(--ds-ink-4); cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-grip .ds-i { width:16px; height:16px; }
.ds-grip:is( .is-hover) { color:var(--ds-ink); background:var(--ds-hover); }
.ds-grip[aria-pressed="true"] { color:var(--ds-ink); background:var(--ds-press); }
.ds-drag > .is-gliding { transition:background-color var(--ds-t-4) var(--ds-ease-out), color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-inout); }
.ds-drag > .is-dragging, .ds-drag > .is-lifted { z-index:var(--ds-z-raised); background:var(--ds-surface); box-shadow:var(--ds-hair-2), var(--ds-shadow-2); }
.ds-drag > .is-dragging { cursor:grabbing; transition:box-shadow var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }   /* lifted, the row is a white card, not a pressed pill */
.ds-drag > .is-dragging .ds-grip { cursor:grabbing; }
.ds-drag > .is-settling { transition:transform var(--ds-t-3) var(--ds-ease-inout), box-shadow var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-drag > .is-lifted { transition:background-color var(--ds-t-3) var(--ds-ease-out), box-shadow var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-3) var(--ds-ease-inout); }

/* ── number-roll: a figure that counts to its value in .6 s on an ease-out (DS.roll, through a timer so a hidden tab still ends on the
      right figure), in mono tabular figures; the odometer variant rolls each digit on its own column (1ch wide, 1em tall) in .6 s, and
      a column that arrives (99 to 100) fades in ── */
.ds-roll { font-family:var(--ds-mono); font-variant-numeric:tabular-nums; }
.ds-odo { display:inline-flex; align-items:baseline; font-family:var(--ds-mono); font-variant-numeric:tabular-nums; line-height:1; vertical-align:baseline; }
.ds-odo-col { display:inline-flex; width:1ch; height:1em; overflow:hidden; }
.ds-odo-strip { display:grid; transition:transform .6s var(--ds-ease-out); will-change:transform; }
.ds-odo-strip > span { display:block; height:1em; line-height:1; text-align:center; }
.ds-odo-sep { display:inline-block; height:1em; line-height:1; }
html.motion .ds-odo > .is-new { animation:ds-fade-in var(--ds-t-4) var(--ds-ease-out) both; }

/* ── scroll-reveal: a block that starts below the fold waits unseen (the script adds .ds-reveal-wait only then) and rises 8 px in .32 s the
      first time 12 percent of it enters the view; siblings seen together are 40 ms apart. Content already in view is never hidden. ── */
html.motion .ds-reveal-wait { opacity:0; }
html.motion .ds-reveal-in { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * var(--ds-stagger)); }

/* ── skeleton-swap: styled above with the crossfade (.ds-xfade.ds-xfade--skel); the rule: a skeleton only for what arrives within two
      seconds, after that the wait line (Feedback) ── */

/* ── approval-moment: after Approve the button's words dim (.22 s) while the row of actions gives way (.18 s) to the success line, whose
      check draws itself in .42 s; Share fades in .45 s later. The card and the line are conversation.css's .ds-approval. ── */

/* ── route-progress: a 2 px ink hairline along the top edge of a panel (or the window) that advances towards 80 percent while a page loads,
      runs to the end in .22 s when it arrives and fades in .32 s; on a failure it fades where it is. It never pretends to finish. ── */
.ds-route { position:absolute; top:0; left:0; right:0; height:2px; overflow:hidden; z-index:var(--ds-z-raised); pointer-events:none; }
.ds-route--window { position:fixed; z-index:var(--ds-z-toast); }
.ds-route-bar { display:block; width:0; height:100%; background:var(--ds-ink); opacity:1; transition:width 6s cubic-bezier(.1,.5,.2,1), opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-route.is-going .ds-route-bar { width:80%; }
.ds-route.is-set .ds-route-bar { transition:width var(--ds-t-4) var(--ds-ease-out), opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-route.is-done .ds-route-bar { width:100%; opacity:0; transition:width var(--ds-t-3) var(--ds-ease-out), opacity var(--ds-t-4) var(--ds-ease-out) var(--ds-t-3); }
.ds-route.is-failed .ds-route-bar { opacity:0; transition:opacity var(--ds-t-4) var(--ds-ease-out); }

/* ── focus-travel: one ring that follows the keyboard focus through a form or a wizard in .18 s instead of appearing anew on each control;
      it sits 2 px outside the control, takes its corners, and stays hidden when the focus came from the pointer ── */
.ds-focus-travel { position:relative; }
.ds-focus-travel.is-travelling :focus-visible { outline-color:transparent; }
.ds-focus-ring { position:absolute; top:0; left:0; width:40px; height:40px; z-index:var(--ds-z-raised); pointer-events:none; border:2px solid var(--ds-ink); border-radius:var(--ds-r-8); opacity:0; transition:top var(--ds-t-2) var(--ds-ease-out), left var(--ds-t-2) var(--ds-ease-out), width var(--ds-t-2) var(--ds-ease-out), height var(--ds-t-2) var(--ds-ease-out), border-radius var(--ds-t-2) var(--ds-ease-out), opacity var(--ds-t-2) var(--ds-ease-out); }
.ds-focus-ring.is-on { opacity:1; }

/* ── press-settle: a pressed pill settles by 1.5 percent in .12 s and comes back on release (ds/motion.css); a card does not scale, its shadow
      steps back one; a row does not scale, its pill deepens; an icon button does not scale, its pill deepens. .is-press shows the state at
      rest in the docs. ── */

/* ── stagger-grid: cards enter diagonally, each delayed by its row plus its column times 30 ms, never more than 400 ms; the script sets --d,
      plays once when the grid is seen and again on el._stagger.play() ── */
html.motion .ds-stagger > * { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-out) both; animation-delay:var(--d, 0ms); }


/* ─── ds/components/medical.css ─── */
/* Doctorpedia Design System · medical
   The pieces a doctor and a patient read about care: a medication and its doses, a lab result and a panel, a vital and the blood pressure
   and weight charts, a symptom scale, a visit, allergies, consent, the emergency line, the research-and-education line, the reading level,
   the state of a video's languages, two versions of a transcript, what a source is, a medication's history, the after-visit summary and the
   care team. Facts, never guarantees; meaning colours (ok, warn, bad) on a dot, a mark or a word and never as a background; the AI label is
   never hidden where a patient reads; no patient clinical data where it is not needed; never a price. The tag, dot, avatar, row, trend,
   legend, check, field and the AI label come from their own groups (data, charts, inputs, conversation) and are only placed here. */

/* ── medication-card: a medication as a card: the name, the dose and form under it, the schedule as tags, since when in mono, Edit · Stop;
      stopped is told by the words going grey and a tag, never by a colour ── */

/* ── dosage-schedule: seven day columns and a row per time of day; each cell holds an 18 px mark (taken: ink with a check; due: a hairline
      ring; missed: the bad dot); today's column carries a 3 percent tint; a legend of three words under it (data-ds="doses") ── */
.ds-doses { display:grid; gap:12px; width:100%; max-width:480px; min-width:0; }
.ds-doses-g { display:grid; grid-template-columns:minmax(52px, auto) repeat(var(--ds-n, 7), minmax(0, 1fr)); align-items:center; width:100%; }
.ds-doses-r { display:contents; }
.ds-doses-l { padding-right:8px; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); white-space:nowrap; }
.ds-doses-d { display:grid; place-items:center; height:28px; font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:1; color:var(--ds-ink-3); font-variant-numeric:tabular-nums; border-radius:var(--ds-r-8) var(--ds-r-8) 0 0; transition:color var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-doses-d.is-today { color:var(--ds-ink); font-weight:var(--ds-w-medium); }
.ds-doses-c { display:grid; place-items:center; width:100%; height:40px; border-radius:var(--ds-r-8); cursor:pointer; -webkit-tap-highlight-color:transparent; transition:background-color var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-doses-c.is-none { cursor:default; }
.ds-doses-c:not(.is-none):is( .is-hover) { background:var(--ds-hover); }
.ds-doses-c:not(.is-none):active .ds-doses-m { transform:scale(.9); }
.ds-doses-c:focus-visible { outline-offset:-2px; }
.ds-doses-d.is-today, .ds-doses-c.is-today { background:color-mix(in srgb, var(--ds-ink) 3%, transparent); }
.ds-doses-c.is-today { border-radius:0; }
.ds-doses-c.is-today:not(.is-none):is( .is-hover) { background:var(--ds-hover); }
.ds-doses-r:last-child .ds-doses-c.is-today { border-radius:0 0 var(--ds-r-8) var(--ds-r-8); }
.ds-doses-m { position:relative; display:grid; place-items:center; width:18px; height:18px; border-radius:50%; background:transparent; transition:background-color var(--ds-t-3) var(--ds-ease-out), box-shadow var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-doses-m::after { content:''; width:0; height:0; border-radius:50%; transition:width var(--ds-t-3) var(--ds-ease-out), height var(--ds-t-3) var(--ds-ease-out), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-doses-legend { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-doses-legend > span { display:inline-flex; align-items:center; gap:8px; }
.ds-doses-legend .ds-doses-m { width:14px; height:14px; }
html.motion .ds-doses .ds-doses-c { animation:ds-fade-in var(--ds-t-4) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * 12ms); }

/* ── lab-result-row: the test name, the value in mono with its unit, a 120 px bar (hairline track, the reference range in surface-2, the
      value as a 2 px ink mark, bad when out of range), the range in mono and the date; two lines when narrow (data-ds="lab") ── */
.ds-lab { display:grid; grid-template-columns:minmax(0, 1fr) auto 120px auto auto; grid-template-areas:"n v bar ref d"; align-items:center; column-gap:16px; row-gap:6px; width:100%; min-height:44px; padding:8px 0; font-size:var(--ds-t-15); line-height:var(--ds-lh-ui); color:var(--ds-ink); transition:opacity var(--ds-t-4) var(--ds-ease-out); }
.ds-lab-n { grid-area:n; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ds-ink); }
.ds-lab-v { grid-area:v; display:inline-flex; align-items:baseline; gap:4px; font-family:var(--ds-mono); font-size:var(--ds-t-15); color:var(--ds-ink); font-variant-numeric:tabular-nums; white-space:nowrap; justify-self:end; }
.ds-lab-v b { font-weight:var(--ds-w-medium); transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-lab-v small { font-family:var(--ds-sans); font-size:var(--ds-t-13); color:var(--ds-ink-3); }
.ds-lab-bar { grid-area:bar; position:relative; display:block; width:120px; height:8px; border-radius:4px; box-shadow:var(--ds-hair); }
.ds-lab-range { position:absolute; top:0; bottom:0; border-radius:4px; background:var(--ds-surface-2); transition:left var(--ds-t-4) var(--ds-ease-inout), width var(--ds-t-4) var(--ds-ease-inout); }
.ds-lab-mark { position:absolute; top:-3px; bottom:-3px; width:2px; margin-left:-1px; border-radius:1px; background:var(--ds-ink); transition:left var(--ds-t-4) var(--ds-ease-inout), background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-lab-ref { grid-area:ref; font-family:var(--ds-mono); font-size:var(--ds-t-12); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; white-space:nowrap; }
.ds-lab-d { grid-area:d; font-family:var(--ds-mono); font-size:var(--ds-t-12); color:var(--ds-ink-4); font-variant-numeric:tabular-nums; white-space:nowrap; justify-self:end; min-width:48px; text-align:right; }
.ds-lab:is(.is-above, .is-below) .ds-lab-mark { background:var(--ds-bad); top:-4px; bottom:-4px; }   /* the colour is on the mark; the figure is read, so it stays ink */
.ds-lab-skel { display:inline-block; width:44px; height:12px; border-radius:6px; vertical-align:middle; }
.ds-lab.is-pending .ds-lab-bar { box-shadow:none; }
.ds-lab.is-pending .ds-lab-range { opacity:0; }
.ds-lab.is-pending .ds-lab-ref { color:var(--ds-ink-4); }
/* two lines: the name and the date on the first, the value, the bar and the range on the second */
@media (max-width: 640px) { .ds-lab { grid-template-columns:auto 120px minmax(0, 1fr); grid-template-areas:"n n d" "v bar ref"; } .ds-lab .ds-lab-v { justify-self:start; } }
@container lab (max-width: 560px) { .ds-lab { grid-template-columns:auto 120px minmax(0, 1fr); grid-template-areas:"n n d" "v bar ref"; } .ds-lab .ds-lab-v { justify-self:start; } }

/* ── lab-panel: a set of lab rows under a title and a one-line summary ("2 of 8 out of range"), grouped under small labels with a
      hairline between groups; rows cascade in; .ds-lab-panel--compact forces the two-line rows (data-ds="lab-panel") ── */
.ds-lab-panel { display:grid; gap:12px; width:100%; max-width:var(--ds-read); container-type:inline-size; container-name:lab; }
.ds-lab-panel-s { font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; }
.ds-lab-group { display:grid; }
.ds-lab-group + .ds-lab-group { margin-top:4px; padding-top:12px; box-shadow:inset 0 1px 0 var(--ds-line); }

/* ── vitals-tile: a stat for a vital: the label with a dot when it wants watching (warn) or is high (bad), the figure 28 medium with
      tabular figures and its unit, then the trend and the time; four in a row through data's .ds-kpis ── */
 .ds-weight .ds-trend b { color:var(--ds-ink-2); }   /* the figure is read: ink-2; the arrow alone carries ok or bad */

/* ── bp-chart: systolic (ink) and diastolic (ink-3) over the days, the target zones as surface-2 bands with a hairline at the target and its
      figure at the right, each reading a dot (morning filled, evening a ring), the line through the day's mean, the shared tip under the
      pointer, and under it the legend and how many days were above target (data-ds="bp-chart") ── */
.ds-bp { max-width:560px; }
.ds-bp-band { fill:var(--ds-surface-2); }
.ds-bp-target { stroke:var(--ds-line-3); stroke-width:1; shape-rendering:crispEdges; }
.ds-bp-tl { fill:var(--ds-ink-3); }
.ds-bp .ds-chart-stroke.is-dia { stroke:var(--ds-ink-3); }
.ds-bp-pt { fill:var(--ds-ink); transition:r var(--ds-t-2) var(--ds-ease-out), opacity var(--ds-t-2) var(--ds-ease-out); }
.ds-bp-pt.is-dia { fill:var(--ds-ink-3); }
.ds-bp-pt.is-pm { fill:var(--ds-surface); stroke:var(--ds-ink); stroke-width:1.2; }
.ds-bp-pt.is-pm.is-dia { stroke:var(--ds-ink-3); }
.ds-bp-pt.is-on { r:4; }
html.motion .ds-bp.is-in .ds-bp-pt { animation:ds-fade-in var(--ds-t-4) var(--ds-ease-out) both; animation-delay:var(--ds-t-5); }
.ds-bp-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin-top:8px; }
.ds-bp-foot .ds-legend-i i.is-pm { background:transparent; box-shadow:inset 0 0 0 1.5px var(--ds-ink-2); }
.ds-bp-n { font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; }
.ds-bp-n b { font-weight:var(--ds-w-medium); color:var(--ds-ink-2); }

/* ── weight-trend: a line of weight over the months, the target as the one dashed hairline allowed, the latest figure big at the right
      with the change since the start as a trend; the figure moves above the chart when narrow (data-ds="weight-trend") ── */
.ds-weight { display:flex; align-items:flex-end; gap:16px 24px; width:100%; max-width:560px; min-width:0; }
.ds-weight-chart { flex:1 1 220px; min-width:0; max-width:none; }
.ds-weight-side { display:grid; gap:4px; flex:none; justify-items:start; padding-bottom:24px; }
.ds-weight-v { display:flex; align-items:baseline; gap:4px; font-size:var(--ds-t-28); font-weight:var(--ds-w-medium); line-height:var(--ds-lh-tight); letter-spacing:var(--ds-track-display); color:var(--ds-ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.ds-weight-v small { font-size:var(--ds-t-13); font-weight:var(--ds-w-regular); letter-spacing:0; color:var(--ds-ink-3); }
.ds-weight-side .ds-trend { font-size:var(--ds-t-13); }
.ds-weight-target { stroke:var(--ds-line-3); stroke-width:1; stroke-dasharray:4 4; shape-rendering:crispEdges; }
.ds-weight-tl { fill:var(--ds-ink-3); }
.ds-weight.is-narrow { flex-direction:column-reverse; align-items:stretch; }   /* under 400 px (set by the behaviour) the figure sits over the chart */
.ds-weight.is-narrow .ds-weight-side { padding-bottom:0; }
.ds-weight.is-narrow .ds-weight-chart { flex-basis:auto; }

/* ── symptom-scale: 0 to 10 as round white buttons of 28 px in mono, the chosen one ink, the end words under the row and the chosen one's
      word between them; buttons shrink on a phone so the row never scrolls; the words variant replaces digits by word pills (data-ds="scale") ── */
.ds-scale { display:grid; gap:8px; width:100%; max-width:420px; min-width:0; }
.ds-scale-row { display:flex; align-items:center; gap:4px; width:100%; min-width:0; }
.ds-scale-b { flex:1 1 0; min-width:0; max-width:28px; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background:var(--ds-surface); box-shadow:var(--ds-hair-2); font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:1; color:var(--ds-ink-2); font-variant-numeric:tabular-nums; cursor:pointer; -webkit-tap-highlight-color:transparent; transition:background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out), box-shadow var(--ds-t-3) var(--ds-ease-out), transform var(--ds-t-1) var(--ds-ease-out); }
.ds-scale-b:is( .is-hover) { box-shadow:var(--ds-hair-3); color:var(--ds-ink); }
.ds-scale-b:active { transform:scale(.94); }
.ds-scale-b[aria-checked="true"] { background:var(--ds-ink); color:var(--ds-on-accent); box-shadow:none; }
.ds-scale-b:focus-visible { outline-offset:2px; border-radius:50%; }
.ds-scale-ends { display:grid; grid-template-columns:1fr auto 1fr; align-items:baseline; gap:12px; font-size:var(--ds-t-12); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-scale-ends > :last-child { text-align:right; }
.ds-scale-word { font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); color:var(--ds-ink-2); min-height:1.3em; transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-scale--words { max-width:560px; }
.ds-scale--words .ds-scale-row { flex-wrap:wrap; gap:6px; }
.ds-scale--words .ds-scale-b { flex:none; max-width:none; aspect-ratio:auto; height:30px; padding:0 12px; border-radius:var(--ds-r-pill); font-family:var(--ds-sans); font-size:var(--ds-t-13); font-weight:var(--ds-w-medium); }
.ds-scale--words .ds-scale-b:focus-visible { border-radius:var(--ds-r-pill); }
.ds-scale.is-disabled { opacity:.45; pointer-events:none; }

/* ── appointment-card: the date as a small calendar tile at the left (the month over the day), the title, with whom and where, the kind as a
      tag, the words; today takes an ink edge, past goes grey, cancelled strikes the title and says so in a tag, never in red ── */

/* ── allergy-tags: each allergy a tag with a 6 px bad dot; severe says the word after a middle dot, never a red fill; "No known allergies" as
      a quiet line; Add as a word ── */   /* a word that is read stays ink; the dot carries the colour */

/* ── consent-block: the consent words in 15 ink-2 (what will be made, where it goes, how to withdraw), the agreement as a check row, and
      Approve, quiet until the box is checked and then the one ink button; once agreed the row becomes a dated line (data-ds="consent") ── */
.ds-consent { display:grid; gap:14px; width:100%; max-width:var(--ds-read); }
.ds-consent > .ds-check-row { margin-top:2px; }
.ds-consent-f { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; min-height:var(--ds-ctl); }
.ds-consent-d { font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; }
.ds-consent.is-agreed > .ds-check-row { pointer-events:none; }
.ds-consent.is-agreed .ds-approved { font-size:var(--ds-t-14); }
html.motion .ds-consent.is-agreed .ds-approved { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-out) both; }
html.motion .ds-consent.is-agreed .ds-consent-d { animation:ds-fade-in var(--ds-t-4) var(--ds-ease-out) .3s both; }

/* ── emergency-notice: the one line every patient-facing page carries at its foot (or the top of a handout): a 16 px info icon and 14 px
      ink words over a hairline; never red, never a box; --short is "Not for emergencies" for Ask's own foot; --top puts the hairline under ── */
.ds-emergency { display:flex; align-items:flex-start; gap:10px; width:100%; max-width:var(--ds-read); margin:0; padding:12px 0 0; box-shadow:inset 0 1px 0 var(--ds-line); font-size:var(--ds-t-14); line-height:var(--ds-lh-body); color:var(--ds-ink); transition:color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out); }
.ds-emergency > .ds-i { width:16px; height:16px; margin-top:3px; color:var(--ds-ink-2); }
.ds-emergency--short { font-size:var(--ds-t-13); color:var(--ds-ink-3); }
.ds-emergency--short > .ds-i { color:var(--ds-ink-3); margin-top:2px; }

/* ── ai-disclaimer: the two-sentence research-and-education line in 13 ink-3, with the AI label before it when the content was written
      with Ask; under answers, in handouts, at the foot of emails (data-ds="disclaimer") ── */
.ds-disclaimer { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; width:100%; max-width:var(--ds-read); margin:0; font-size:var(--ds-t-13); line-height:var(--ds-lh-body); color:var(--ds-ink-3); }
.ds-disclaimer .ds-ai { font-size:var(--ds-t-13); color:var(--ds-ink-2); }
.ds-disclaimer > span:last-child { flex:1 1 280px; min-width:0; }

/* ── reading-level: the small segmented words (Simple · Standard · Technical, actions' .ds-seg--sm) and the grade line they stand for in
      mono 12 ink-4; the bars variant is a static indicator of one to three small bars for a card corner (data-ds="reading-level") ── */
.ds-rlevel { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.ds-rlevel-g { font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; }

/* ── dubbing-status: a video's languages as tags with a dot each (ready: ok; making: breathing, with a 2 px hairline filling under the tag;
      waiting: a hairline ring; did not finish: bad) and "Request a language" as a word; never a price (data-ds="dubbing") ── */
.ds-dub { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ds-dub-l { position:relative; gap:8px; overflow:hidden; }
.ds-dub-l .ds-dot { width:6px; height:6px; }
.ds-dub-l.is-waiting .ds-dot { background:transparent; box-shadow:inset 0 0 0 1px var(--ds-line-3); }
.ds-dub-l.is-waiting { color:var(--ds-ink-3); }
.ds-dub-w { font-weight:var(--ds-w-regular); color:var(--ds-ink-3); }
.ds-dub-l.is-ready .ds-dub-w { color:var(--ds-ink-2); }
.ds-dub-bar { position:absolute; left:8px; right:8px; bottom:0; height:2px; border-radius:1px; background:var(--ds-line-2); overflow:hidden; }
.ds-dub-bar::after { content:''; position:absolute; inset:0; border-radius:1px; background:var(--ds-ink); transform-origin:left; transform:scaleX(var(--ds-p, 0)); transition:transform var(--ds-t-4) var(--ds-ease-inout); }
.ds-dub-bar.is-indeterminate::after { width:30%; transform:none; }
html.motion .ds-dub-bar.is-indeterminate::after { animation:ds-slide 1.4s var(--ds-ease-inout) infinite; }
.ds-dub .ds-word { font-size:var(--ds-t-13); }

/* ── transcript-diff: two versions of a transcript, inline or side by side: words removed in ink-3 with a 1 px line through them, words
      added with the lilac-soft mark; a header with the versions' names, the count and Keep this version (data-ds="diff") ── */
.ds-diff { display:grid; gap:12px; width:100%; max-width:var(--ds-read); }
.ds-diff-h { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 16px; font-size:var(--ds-t-13); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-diff-names { display:inline-flex; align-items:baseline; gap:8px; min-width:0; }
.ds-diff-names b { font-weight:var(--ds-w-medium); color:var(--ds-ink-2); }
.ds-diff-names .ds-i { width:14px; height:14px; align-self:center; color:var(--ds-ink-4); }
.ds-diff-n { font-family:var(--ds-mono); font-size:var(--ds-t-12); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; }
.ds-diff-h .ds-word { margin-left:auto; font-size:var(--ds-t-13); }
.ds-diff-b { font-size:var(--ds-t-15); line-height:var(--ds-lh-body); color:var(--ds-ink-2); overflow-wrap:anywhere; }
.ds-diff-del { color:var(--ds-ink-3); text-decoration:line-through; text-decoration-thickness:1px; text-decoration-color:var(--ds-ink-4); transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-diff-ins { color:var(--ds-ink); text-decoration:none; background:var(--ds-lilac-soft); border-radius:2px; padding:0 2px; margin:0 -1px; box-decoration-break:clone; -webkit-box-decoration-break:clone; transition:background-color var(--ds-t-3) var(--ds-ease-out); }
.ds-diff--side .ds-diff-b { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px 24px; }
.ds-diff-col { display:grid; gap:6px; align-content:start; min-width:0; }
.ds-diff-col-l { font-size:var(--ds-t-12); font-weight:var(--ds-w-medium); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); }
.ds-diff-col + .ds-diff-col { box-shadow:-12px 0 0 -11px var(--ds-line); }
.ds-diff.is-kept .ds-diff-del { opacity:.55; }
@media (max-width: 640px) { .ds-diff--side .ds-diff-b { grid-template-columns:minmax(0, 1fr); } .ds-diff-col + .ds-diff-col { box-shadow:none; padding-top:12px; border-top:1px solid var(--ds-line); } }

/* ── source-credibility: the small line under a source saying what it is, never a score: the family dot and 13 ink-3 words; the publisher
      in the tooltip; never "verified", never stars ── */

/* ── med-timeline: a medication's history along a hairline: dated dots (started: ink; dose changed: an ink ring; stopped: a hairline ring),
      the names above in 13 and the dates under in mono, the current span in ink to Today; it scrolls sideways inside layout's
      .ds-scroll-area--x with its fades (data-ds="med-timeline") ── */
.ds-scroll-area--x > .ds-medtl, .ds-medtl { position:relative; display:block; height:84px; min-width:100%; }
.ds-medtl-line { position:absolute; top:39px; height:1px; background:var(--ds-line-2); }
.ds-medtl-span { position:absolute; top:38.5px; height:2px; border-radius:1px; background:var(--ds-ink); transition:width var(--ds-t-5) var(--ds-ease-inout); }
.ds-medtl-e { position:absolute; top:0; display:grid; justify-items:center; transform:translateX(-50%); white-space:nowrap; }
.ds-medtl-n { height:20px; margin-bottom:10px; font-size:var(--ds-t-13); line-height:20px; color:var(--ds-ink); transition:color var(--ds-t-3) var(--ds-ease-out); }
.ds-medtl-dot { display:block; width:8px; height:8px; margin:6px 0; border-radius:50%; background:var(--ds-ink); box-shadow:0 0 0 3px var(--ds-page); transition:background-color var(--ds-t-4) var(--ds-ease-out), box-shadow var(--ds-t-4) var(--ds-ease-out); }
.ds-medtl-d { font-family:var(--ds-mono); font-size:var(--ds-t-12); line-height:var(--ds-lh-ui); color:var(--ds-ink-3); font-variant-numeric:tabular-nums; }
.ds-medtl-e.is-now .ds-medtl-n { color:var(--ds-ink-3); }
.ds-medtl-e.is-now .ds-medtl-dot { width:1px; height:12px; margin:4px 0; border-radius:0; background:var(--ds-line-3); box-shadow:none; }
html.motion .ds-medtl .ds-medtl-e { animation:ds-fade-up var(--ds-t-4) var(--ds-ease-out) both; animation-delay:calc(var(--i, 0) * var(--ds-stagger)); }

/* ── visit-summary: the after-visit summary as a paper card (white in both themes by the paper tokens): the date, the title, who, three
      short sections, the AI label when written with Ask and the emergency line at the foot; Send and Print as words under it ── */

/* ── care-team: the people around a patient: the avatars overlapping (data's avatar group), then a row per person with the portrait, the name,
      the role and practice, and Message as a word; who, never the patient's data ── */


/* ─── ds/components/templates.css ─── */
/* Doctorpedia Design System · templates
   Whole screens composed from the pieces (docs/templates/<id>.html). This file holds only the glue a screen needs to stand on its own:
   where the box sits, how the door centres, the field behind the home, the dock at the foot of a thread, the console's columns, the
   steps of a first run. Every piece inside keeps its own group's rules; nothing here restyles one. Every selector is scoped to
   body.ds-tpl, so the docs page and an app that loads the whole system never see these rules by accident. */

/* the page: the shell fills the viewport; a screen without a sidebar (a doctor's page, a first run) is one panel */

/* the sidebar's pages (Saved, Search) sit under New chat; the close X shows only when the sidebar is the phone drawer */
/* the fold lives in the main's bar (the brand's own fold is hidden by the rail); the shell gives it margin-left:auto, the bar does not want it */
/* the shell's rail folds its own .ds-app-me; navigation's account row at the foot folds the same way */   /* the portrait and Account under it */
/* the brand in a top bar sits on the bar's centre line: the sidebar's 14 px under the brand does not belong here */
/* a brand mark that is a picture (BiteSized, the Library) instead of the spark on ink */

/* ── the home, as in Ask: the field behind the top of the panel, the greeting, the title in the reading serif, the box, its note; nothing else competes with the box (Sergio, 6 Nov). Words centred ── */

/* ── the box: the question box, Ask's one object. White, 16 px corners, the box's shadow (the one piece with no hairline), the orbit's light on
      its edge; the words at 17 px, the verbs as small ghosts, the send pill quiet until there are words ── */

/* ── the thread: the reading column with the box docked at the foot; what scrolls under it fades; the words row sits 28 px under the text ── */

/* ── the door: one white panel of 420 on the warm page, centred; the brand, a title at 24, one field, the one ink button, a quiet line, a hairline, Google as a white pill, the foot links ── */
/* a search field in a page header takes a width of its own instead of the field's whole row; on a phone the actions wrap under the title */

/* ── settings: the layout on a wider measure, the danger zone at the foot after a hairline ── */

/* ── the catalogue: the video cards take their grid cell; the specialty pills under the header ── */

/* ── a doctor's page: the sticky bar carries the three parts; a part is a section with a header and air above ── */

/* ── the feed: the three filter chips open menus; the research card sits between posts at the reading measure; Load more centred ── */

/* ── the console: four stats, then two charts side by side and the dense table, with the engine in a side column ── */

/* ── the first run: a stepper of three at the top, then one object, one line, one button; Skip as a quiet word at the foot ── */
.ds-tpl-step { display:grid; justify-items:center; gap:var(--ds-s-6); width:100%; max-width:560px; }
.ds-tpl-step[hidden] { display:none; }
.ds-tpl-step .ds-lp { width:100%; max-width:360px; text-align:left; }

/* ── what goes wrong: one quiet block centred in the panel; the state switch in the bar is the demo's, not the app's ── */


/* ─── ds/components/email.css ─── */
/* Doctorpedia Design System · email
   The emails live in docs/email/<id>.html with every style inline and no class a mail client could drop; nothing here reaches an inbox.
   This file only frames their previews in the docs: one email in a frame, the words under it. */

/* the preview: the frame and its words stacked, centred in the demo */
/* the frame: the email's own warm page shows through and no edge of its own (the card inside carries the one hairline); light in both modes because an email has one design */
/* the words under a preview: English · Plain text, 13 px, a dot between */

/* The Doctorpedia family's marks in the apps (18 November 2026; assets/brand/mark.js draws them). A mark stands on its own,
   in the page's ink, with no tile around it. Each place that held an old tile keeps its holder, which now only centres the mark.
   The ink is the page's own: BiteSized's --cl-ink, Ask Doctorpedia's --l-ink, Dose's --t-100 (one of them is set in each app);
   a page may set --bsm-ink and --bsm-page itself. The same file serves the three apps. */

.bsm { display: block; flex: none; overflow: visible; }
.bsm-ink { fill: var(--bsm-ink, var(--cl-ink, var(--l-ink, var(--t-100, #1A1A1A)))); }
/* the outlined mark (dpMark opts.outline): the same shapes as a thin line of the ink, the same width at every size */
.bsm--outline .bsm-ink { fill: none; stroke: var(--bsm-ink, var(--cl-ink, var(--l-ink, var(--t-100, #1A1A1A)))); stroke-width: var(--bsm-line, 1.4px); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* a pixel: the ink moved 8 percent of the way toward the page, so it is a touch lighter on light and a touch darker on dark */
.bsm-px { fill: var(--bsm-px, color-mix(in srgb, var(--bsm-ink, var(--cl-ink, var(--l-ink, var(--t-100, #1A1A1A)))) 92%, var(--bsm-page, var(--cl-page, var(--l-page, var(--s-0, #F7F7F5)))))); shape-rendering: crispEdges; opacity: 0; animation: bsm-px 2.6s step-end both; }
/* it comes up in two steps, stays, and goes in two steps, the way the field's pixels hold a few levels */
@keyframes bsm-px { 0% { opacity: 0; } 14% { opacity: .5; } 28% { opacity: 1; } 72% { opacity: .5; } 86%, 100% { opacity: 0; } }
.bsm.is-gliding .bsm-dots { display: none; }
@media (prefers-reduced-motion: reduce) { .bsm-dots { display: none; } }
html.a11y-reduce-motion .bsm-dots, html[data-motion="reduced"] .bsm-dots { display: none; }

/* the holders: what drew an old tile now only holds the mark */
html body [data-bsm] { display: inline-grid; place-items: center; width: auto !important; height: auto !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: inherit; }

/* on a dark panel beside a light page (BiteSized's and Ask's sign-in), the mark is the panel's light ink */

/* Doctorpedia public site: one stylesheet (20 Nov 2026).
   Built by joining, in this order, what used to be site.css, pages.css, real.css, dpmark.css and calm.css;
   the order is kept because later rules refine earlier ones. The system block at the end sets the shared
   radii, shadows, colour roles and spacing. */

/* ======================== from site.css ======================== */
/* BiteSized site. Everything visual comes from the Doctorpedia design system (ds/ds.css): its tokens, type, buttons,
   specialty pills, post card, briefing line, practice contact and the pixel field. This file only lays the page out.
   Formal on purpose: white page, ink, hairlines, one ink button per view, no colour but the field, nothing tilts or bobs. */

:root { --wrap: 1200px; --gutter: 32px; --nav-h: 72px; }
html { -webkit-text-size-adjust: 100%; }
html.no-smooth { scroll-behavior: smooth; }
body { margin: 0; background: var(--ds-page); color: var(--ds-ink-2); font-family: var(--ds-sans); font-size: var(--ds-t-17); line-height: var(--ds-lh-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--ds-serif); font-weight: 400; color: var(--ds-ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.015em; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; border-bottom: 1px solid transparent; transition: background-color var(--ds-t-4) var(--ds-ease-out), border-color var(--ds-t-4) var(--ds-ease-out); }
.nav.is-scrolled { background: color-mix(in srgb, var(--ds-page) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--ds-line); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-size: var(--ds-t-14); color: var(--ds-ink-3); padding: 8px 14px; border-radius: var(--ds-r-pill); transition: background-color var(--ds-t-2) var(--ds-ease-out), color var(--ds-t-2) var(--ds-ease-out); }
.nav-links a:hover { color: var(--ds-ink); background: var(--ds-hover); }
.nav-act { display: flex; gap: 8px; justify-content: flex-end; }

/* 1. hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 72px; }
.hero h1 { font-size: clamp(42px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.02em; max-width: 12ch; }
.lead { margin-top: 24px; font-size: var(--ds-t-19); line-height: 1.55; color: var(--ds-ink-3); max-width: 480px; }
.hero-act { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* 2. why (pinned) */
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; }
.ledger { border-radius: var(--ds-r-16); background: var(--ds-surface); box-shadow: var(--ds-hair), var(--ds-shadow-2); padding: 8px 24px; }
.lt { color: var(--ds-ink); }
.ls { color: var(--ds-ink-4); font-size: var(--ds-t-14); }

/* 3. sentence */
.sentence { padding: 140px 0; }

/* 4. how */
.how { padding: 40px 0 120px; border-top: 1px solid var(--ds-line); }
.how-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; }
.how-head { padding: 96px 0 6vh; }
.how-head .ds-eyebrow { margin-bottom: 16px; }
.step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; color: var(--ds-ink-4); transition: color var(--ds-t-5) var(--ds-ease-out); }
.step h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; color: var(--ds-line-3); transition: color var(--ds-t-5) var(--ds-ease-out); }
.step p { font-size: var(--ds-t-17); max-width: 440px; color: var(--ds-line-3); transition: color var(--ds-t-5) var(--ds-ease-out); }
.num { font-size: var(--ds-t-13); font-variant-numeric: tabular-nums; color: var(--ds-ink-4); padding-bottom: 8px; border-bottom: 1px solid var(--ds-line); width: 100%; max-width: 440px; }
.step.is-on h3 { color: var(--ds-ink); }
.step.is-on p { color: var(--ds-ink-3); }
.step.is-on .num { color: var(--ds-ink); border-bottom-color: var(--ds-ink); }
.step .stage-card { display: none; }

.how-stage { position: sticky; top: calc(50vh - 280px + var(--nav-h) / 2); height: 560px; align-self: start; margin-top: 140px; }
.stage-card { position: relative; height: 520px; border-radius: 24px; background: var(--ds-surface-2); box-shadow: var(--ds-hair); overflow: hidden; }
.stage-steps { display: flex; gap: 6px; margin-top: 16px; }
.stage-steps i { flex: 1; height: 2px; background: var(--ds-line-2); transition: background-color var(--ds-t-5) var(--ds-ease-out); }
.stage-steps i.on { background: var(--ds-ink); }

.panel { position: absolute; inset: 0; padding: 36px; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ds-ease-out), transform .5s var(--ds-ease-out); pointer-events: none; }
.panel.is-on { opacity: 1; transform: none; }
.panel .ds-eyebrow.pad { margin-top: 20px; }

/* ---- choreography: every piece waits as .hold and arrives with .in; the sequences live in site.js ---- */
.hold { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ds-ease-out), transform .7s var(--ds-ease-spring); }
.hold.in { opacity: 1; transform: none; }
/* a pill is chosen the system's way: its ring draws, then it fills with ink */
.pick { transition: color .32s var(--ds-ease-out), background-color .32s var(--ds-ease-out), box-shadow .32s var(--ds-ease-out); }
.pick.is-hover { color: var(--ds-ink); }
/* a stage toast: the system's toast, rising from the foot of the card */

.list { margin-top: 24px; border-radius: var(--ds-r-12); background: var(--ds-surface); box-shadow: var(--ds-hair); overflow: hidden; }
.li { position: relative; display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--ds-line); background: var(--ds-surface); }
.li:last-child { border-bottom: 0; }
.li.moving { z-index: 2; box-shadow: var(--ds-shadow-pop); transition: transform .9s var(--ds-ease-inout), box-shadow .5s var(--ds-ease-out); }
.li-urgent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ds-bad); transform: scaleY(0); transform-origin: 50% 0; transition: transform .6s var(--ds-ease-out); }
.li-urgent.marked::before { transform: none; }
.li b { font-weight: 400; font-size: var(--ds-t-15); color: var(--ds-ink); }

.bl { position: relative; padding: 12px 14px; border-radius: var(--ds-r-8); background: var(--ds-surface-2); clip-path: inset(0 100% 0 0 round 8px); transition: clip-path .9s var(--ds-ease-inout); }
.bl.in { clip-path: inset(0 0 0 0 round 8px); }
.bl .ds-eyebrow { margin-bottom: 4px; }
.bl p { font-size: var(--ds-t-15); color: var(--ds-ink-2); line-height: 1.5; }
.save { display: inline-flex; align-items: center; gap: 6px; transition: color .3s var(--ds-ease-out); }
.save .on, .save .t2 { display: none; }
.is-saved .save .on, .is-saved .save .t2 { display: inline; }
.is-saved .save .ds-i:not(.on), .is-saved .save .t1 { display: none; }
.is-saved .save { color: var(--ds-ink); }
.is-saved .save .on { animation: pop .45s var(--ds-ease-spring); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.ask { position: relative; display: grid; gap: 16px; padding: 24px; border-radius: var(--ds-r-16); background: var(--ds-surface); box-shadow: var(--ds-hair), var(--ds-shadow-2); }
.ask .ds-eyebrow { margin: 0; }
.scan { position: absolute; left: -8px; right: -8px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ds-ink-4), transparent); opacity: 0; z-index: 2; }
.scan.go { animation: scan 1.3s var(--ds-ease-inout) forwards; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--h, 120px)); } }
.send .t2 { display: none; align-items: center; gap: 6px; }
.send.done .t1 { display: none; }
.send.done .t2 { display: inline-flex; }
.send.press { transform: scale(.96); }
.send { transition: transform .15s var(--ds-ease-out), background-color .3s; }

.page { display: grid; gap: 16px; padding: 0 0 24px; border-radius: var(--ds-r-16); background: var(--ds-surface); box-shadow: var(--ds-hair), var(--ds-shadow-2); overflow: hidden; }
.call.is-hover { color: var(--ds-ink); }

/* 5. gains */
.gains { padding: 120px 0; border-top: 1px solid var(--ds-line); }
.gains-head .ds-eyebrow { margin-bottom: 16px; }
.gains-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ds-ink); }
.gain { padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.gain + .gain { padding-left: 28px; border-left: 1px solid var(--ds-line); }
.gain .ds-i { color: var(--ds-ink-3); }
.gain h3 { font-size: var(--ds-t-20); line-height: 1.2; }
.gain p { font-size: var(--ds-t-15); color: var(--ds-ink-3); }

/* 6. faq */
.faq { padding: 120px 0; background: var(--ds-surface-2); }
.faq-in { max-width: 820px; }
.head-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.head-center .ds-eyebrow { margin-bottom: 16px; }
.tabs { margin: 36px auto 0; display: flex; gap: 2px; padding: 3px; border-radius: var(--ds-r-pill); background: var(--ds-surface); width: max-content; box-shadow: var(--ds-hair); }
.tabs button { border: 0; background: transparent; color: var(--ds-ink-3); font: inherit; font-size: var(--ds-t-14); padding: 8px 16px; border-radius: var(--ds-r-pill); cursor: pointer; transition: background-color var(--ds-t-3) var(--ds-ease-out), color var(--ds-t-3) var(--ds-ease-out); }
.tabs button:hover { color: var(--ds-ink); }
.tabs button[aria-selected="true"] { background: var(--ds-accent); color: var(--ds-on-accent); }
.faq-list { margin-top: 28px; border-top: 1px solid var(--ds-line-2); }
.faq-list[hidden] { display: none; }
.faq-list.is-fresh { animation: tabIn .4s var(--ds-ease-out); }
@keyframes tabIn { from { opacity: 0; } }
details { border-bottom: 1px solid var(--ds-line-2); }
summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-size: var(--ds-t-17); color: var(--ds-ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--ds-ink-3), var(--ds-ink-3)) center / 12px 1.5px no-repeat, linear-gradient(var(--ds-ink-3), var(--ds-ink-3)) center / 1.5px 12px no-repeat;
  transition: transform var(--ds-t-4) var(--ds-ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 48px 24px 0; color: var(--ds-ink-3); font-size: var(--ds-t-15); max-width: 640px; }
details[open] p { animation: tabIn .35s var(--ds-ease-out); }

/* 7. closing */
.closing { padding: 120px 0; }

/* footer */
.foot { border-top: 1px solid var(--ds-line); padding: 56px 0 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-brand img { height: 24px; width: auto; }
.foot-brand p { color: var(--ds-ink-4); font-size: var(--ds-t-14); }
.foot-small { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ds-line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: var(--ds-t-13); color: var(--ds-ink-4); }


/* ---- ledger: the falling total, the kept row ---- */
.ledger { position: relative; isolation: isolate; }

/* ---- the sentence: words rise from behind their line ---- */

/* ---- progress under the stage fills with the scroll of each step ---- */
.stage-steps i { position: relative; overflow: hidden; background: var(--ds-line-2); }
.stage-steps i.on { background: var(--ds-line-2); }
.stage-steps i::after { content: ""; position: absolute; inset: 0; background: var(--ds-ink); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* ---- gains: the ink rule draws, then each column arrives ---- */
.gains-grid { border-top: 0; position: relative; }
.gains-grid::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ds-ink); transform: scaleX(var(--rule, 1)); transform-origin: 0 50%; }

/* ---- closing: the headline rises word by word ---- */

/* arrivals are armed only when the script runs */
.js [data-in] { opacity: 0; transform: translateY(12px); }
[data-rise] > * { opacity: var(--fade, 1); }

@media (prefers-reduced-motion: reduce) {
  .js [data-in] { opacity: 1 !important; transform: none !important; }
  .hold { opacity: 1 !important; transform: none !important; }
  .step h3, .step p { color: var(--ds-ink-3); }
  .step h3 { color: var(--ds-ink); }
}

/* tablet */
@media (max-width: 1080px) {
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-stage { display: none; }
  .how-head { padding-top: 72px; }
  .step { min-height: 0; padding: 40px 0; }
  .step h3 { color: var(--ds-ink); }
  .step p { color: var(--ds-ink-3); }
  .step .stage-card { display: block; height: auto; margin-top: 20px; }
  .step .panel { position: relative; inset: auto; }
  .gains-grid { grid-template-columns: repeat(2, 1fr); }
  .gain:nth-child(3) { border-left: 0; padding-left: 0; }
  .gain:nth-child(n+3) { border-top: 1px solid var(--ds-line); margin-top: 8px; }
}

/* phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  .nav-act .ds-btn--quiet { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 32px); min-height: 0; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: var(--ds-t-17); }
  .hero-act { flex-direction: column; align-self: stretch; }
  .hero-act .ds-btn { width: 100%; }
  .ls { display: none; }
  .sentence { padding: 88px 0; }
  .panel { padding: 16px; }
  .gains, .faq, .closing { padding: 80px 0; }
  .gains-grid { grid-template-columns: 1fr; }
  .gain, .gain + .gain, .gain:nth-child(3) { padding: 24px 0; border-left: 0; }
  .gain + .gain { border-top: 1px solid var(--ds-line); }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 8px 4px; }
}

/* ================= Doctorpedia site: what differs from the BiteSized site ================= */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ds-ink); }
.brand span { font-family: var(--ds-sans); font-size: 19px; letter-spacing: -.01em; }
.brand-mark { fill: var(--ds-ink); }
.foot-brand .brand span { font-size: 17px; }

/* hero: One's home, assembling itself */
 .fn-app span svg { fill: var(--ds-ink); }

/* the app steps carry their mark */
.num { display: flex; align-items: center; gap: 10px; }

/* Ask panel */
.seg { position: relative; display: inline-flex; width: max-content; padding: 3px; border-radius: var(--ds-r-pill); background: var(--ds-surface-2); box-shadow: var(--ds-hair); }
.seg-o { position: relative; z-index: 1; padding: 6px 14px; font-size: var(--ds-t-13); color: var(--ds-ink-3); transition: color .35s var(--ds-ease-out); }
.seg-o.on { color: var(--ds-ink); }
.seg-plate { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: var(--ds-r-pill); background: var(--ds-surface); box-shadow: var(--ds-shadow-plate), var(--ds-hair); transition: transform .5s var(--ds-ease-inout), width .5s var(--ds-ease-inout); }
.ac-a { display: grid; }
.ans { grid-area: 1 / 1; font-size: var(--ds-t-15); line-height: 1.55; color: var(--ds-ink-2); transition: opacity .5s var(--ds-ease-out), clip-path 1.2s var(--ds-ease-inout); clip-path: inset(0 0 100% 0); }
.ans.in { clip-path: inset(0 0 0 0); }
.ans.gone { opacity: 0; }
.vid-thumb { width: 64px; height: 40px; border-radius: var(--ds-r-8); background: linear-gradient(135deg, #3A3A3D, #1A1A1A); display: grid; place-items: center; color: #fff; flex: none; }

/* Dose panel */
.approve { margin-left: auto; }
.approve .t2 { display: none; align-items: center; gap: 6px; }
.approve.done .t1 { display: none; }
.approve.done .t2 { display: inline-flex; }
.approve.press { transform: scale(.96); }
.approve.done { background: var(--ds-ok-ink); }

/* BiteSized panel */

/* how to start: the flow, with lines drawn between the steps */
.start { padding: 120px 0; border-top: 1px solid var(--ds-line); }
.start-head { max-width: 640px; }
.start-head .ds-eyebrow { margin-bottom: 16px; }
.start-head p { margin-top: 20px; font-size: var(--ds-t-17); color: var(--ds-ink-3); }
.flow { position: relative; margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 96px; align-items: center; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-lines path { fill: none; stroke: var(--ds-ink); stroke-width: 1.25; }
.fnode { position: relative; z-index: 1; display: grid; gap: 10px; padding: 24px; border-radius: var(--ds-r-16); background: var(--ds-surface); box-shadow: var(--ds-hair), var(--ds-shadow-2); text-decoration: none; color: inherit; }
.fnode b { font-weight: 400; font-family: var(--ds-serif); font-size: var(--ds-t-20); color: var(--ds-ink); }
.fnode p { font-size: var(--ds-t-14); color: var(--ds-ink-3); }
.fnode .ds-btn { justify-self: start; margin-top: 6px; }
.fn-n { font-size: var(--ds-t-13); color: var(--ds-ink-4); font-variant-numeric: tabular-nums; }
.fn-one { box-shadow: 0 0 0 1px var(--ds-ink), var(--ds-shadow-3); }
.fn-apps { position: relative; z-index: 1; display: grid; gap: 12px; }
.fn-apps .fn-n { margin-bottom: 2px; }
.fn-app { grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 16px 20px; transition: box-shadow var(--ds-t-4) var(--ds-ease-out); }
.fn-app b { font-size: var(--ds-t-17); }
.fn-app:hover { box-shadow: 0 0 0 1px var(--ds-line-3), var(--ds-shadow-2); }

/* who it is for */
.who { padding: 120px 0; border-top: 1px solid var(--ds-line); }

.foot-cols { display: flex; gap: 64px; }
.foot-cols nav { display: grid; gap: 8px; align-content: start; }
.foot-cols a { text-decoration: none; color: var(--ds-ink-3); font-size: var(--ds-t-14); }
.foot-cols a:hover { color: var(--ds-ink); }

@media (max-width: 1080px) {
  .flow { grid-template-columns: 1fr; gap: 40px; max-width: 520px; }
  .flow-lines { display: none; }
  .fnode + .fnode::before, .fn-apps::before { content: ""; position: absolute; left: 36px; top: -40px; height: 40px; width: 1px; background: var(--ds-ink); }
}
@media (max-width: 640px) {
  .brand span { font-size: 17px; }
  .approve { margin-left: 0; }
  .start, .who { padding: 80px 0; }
  .foot-cols { gap: 40px; }
}

/* ======================== from pages.css ======================== */
/* The multi-page site: what the pages add to site.css. Same tokens, same calm. */

/* ---- nav: the current page, the phone menu ---- */
.nav-links a[aria-current="page"] { color: var(--ds-ink); background: var(--ds-hover); }
.nav-menu { display: none; }
.nav-drop { display: none; }
@media (max-width: 1080px) {
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-menu { display: inline-flex; }
  .nav-login { display: none; }
  .nav-drop { display: grid; max-height: 0; overflow: hidden; padding: 0 var(--gutter); background: var(--ds-page); transition: max-height .4s var(--ds-ease-out), padding .4s var(--ds-ease-out); }
  .nav.is-open { background: var(--ds-page); border-bottom-color: var(--ds-line); }
  .nav.is-open .nav-drop { max-height: 360px; padding: 4px var(--gutter) 16px; }
  .nav-drop a { text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--ds-line); font-size: var(--ds-t-17); color: var(--ds-ink); }
}
@media (max-width: 640px) { .nav-act .ds-btn--primary { display: none; } }

/* ---- shared bits ---- */
.clipin { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ds-ease-inout), opacity .5s var(--ds-ease-out); }
.clipin.in { clip-path: inset(0 0 0 0); }
[data-bsm] svg { fill: var(--ds-ink); }
.fine { font-size: var(--ds-t-12); color: var(--ds-ink-4); }

/* ---- a hero over a scene: the photograph fills, the words sit on its calm side ---- */
.scene { margin: 0; }
.hero--plain { min-height: 0; padding: calc(var(--nav-h) + 80px) 0 40px; }

/* ---- the answer card rising out of the home hero ---- */

/* ---- the journey, drawn as a track ---- */
.journey { padding: 120px 0; border-top: 1px solid var(--ds-line); }
.track { position: relative; margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.jr-fill { position: absolute; inset: 0; background: var(--ds-ink); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.jr-stop { position: relative; display: grid; gap: 8px; padding-top: 36px; color: var(--ds-ink-4); transition: color .5s var(--ds-ease-out); }
.jr-stop b { font-weight: 400; font-family: var(--ds-serif); font-size: var(--ds-t-24); line-height: 1.15; color: var(--ds-line-3); transition: color .5s var(--ds-ease-out); }
.jr-stop p { font-size: var(--ds-t-15); color: var(--ds-line-3); transition: color .5s var(--ds-ease-out); max-width: 260px; }
.jr-stop.on b { color: var(--ds-ink); }
.jr-stop.on p { color: var(--ds-ink-3); }
@media (max-width: 860px) {
  .track { grid-template-columns: 1fr; gap: 32px; padding-left: 36px; }
  .jr-fill { transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
  .jr-stop { padding-top: 0; }
}

/* ---- the three apps as cards ---- */
.apps { padding: 120px 0; border-top: 1px solid var(--ds-line); }

/* ---- pricing teaser and plan line ---- */

/* ---- Ask page bits ---- */
.rel { display: grid; }
.rel-q { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ds-line); font-size: var(--ds-t-15); color: var(--ds-ink); }
.rel-q svg { color: var(--ds-ink-4); }
.follow { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1px var(--ds-line-2); font-size: var(--ds-t-15); color: var(--ds-ink-4); }
.ans { grid-area: 1 / 1; }
.ans + .ans { background: var(--ds-surface); }

/* ---- Dose page bits ---- */
.player { display: grid; gap: 8px; }
.qr { color: var(--ds-ink); fill: var(--ds-ink); }

/* ---- pricing ---- */
.price-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.price-hero .ds-eyebrow { margin-bottom: 20px; }
.price-hero h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; max-width: 18ch; }
.price-hero .lead { margin: 24px auto 0; text-align: center; max-width: 560px; }
.cycle { margin-top: 32px; }
.cycle button { border: 0; background: none; cursor: pointer; font: inherit; }
.plans { padding: 48px 0 40px; }
.plan { display: flex; flex-direction: column; gap: 8px; padding: 32px; border-radius: 20px; background: var(--ds-surface); box-shadow: var(--ds-hair); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.price-n { font-family: var(--ds-serif); font-size: 52px; line-height: 1; letter-spacing: -.02em; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.price-per { font-size: var(--ds-t-14); color: var(--ds-ink-4); }
.price-save { font-size: var(--ds-t-13); color: var(--ds-ok-ink); }
.plan ul { list-style: none; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ds-line); display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--ds-t-15); color: var(--ds-ink-2); }
.plan li > span, .plan li > svg { flex: none; margin-top: 3px; }
.single { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--ds-line); }
.single b { font-weight: 400; font-family: var(--ds-serif); font-size: var(--ds-t-24); color: var(--ds-ink); }
.single p { font-size: var(--ds-t-15); color: var(--ds-ink-3); }
.cmp { width: 100%; border-collapse: collapse; font-size: var(--ds-t-15); min-width: 560px; }
.cmp th, .cmp td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--ds-line); font-weight: 400; }
.cmp thead th { font-family: var(--ds-serif); font-size: var(--ds-t-20); color: var(--ds-ink); border-bottom: 1px solid var(--ds-ink); }
.cmp tbody th { color: var(--ds-ink); }
.cmp td { color: var(--ds-ink-3); }
.cmp .no { color: var(--ds-ink-4); }
.cmp .yes { color: var(--ds-ink); }

/* ---- the door: log in and sign up ---- */
.door-page { overflow: hidden; }
.nav--door .nav-links, .nav--door .nav-act { display: none; }
.nav--door { background: transparent !important; border-bottom-color: transparent !important; backdrop-filter: none !important; }
.door { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.door-form { display: grid; place-items: center; padding: calc(var(--nav-h) + 24px) var(--gutter) 48px; }
.door-in { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.door-h { font-size: clamp(32px, 3vw, 40px); line-height: 1.1; letter-spacing: -.015em; }
.door-sub { color: var(--ds-ink-3); margin-top: -6px; }
.fld { display: grid; gap: 6px; }
.fld > span:first-child { display: flex; justify-content: space-between; font-size: var(--ds-t-14); color: var(--ds-ink-2); }
.fld input { height: 48px; padding: 0 14px; border: 0; border-radius: var(--ds-r-12); background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-line-2); font: inherit; font-size: var(--ds-t-15); color: var(--ds-ink); outline: none; transition: box-shadow var(--ds-t-3) var(--ds-ease-out); width: 100%; }
.fld input:hover { box-shadow: inset 0 0 0 1px var(--ds-line-3); }
.fld input:focus { box-shadow: inset 0 0 0 1.5px var(--ds-ink); }
.door-art { position: relative; margin: 12px 12px 12px 0; border-radius: 24px; overflow: hidden; }
.door-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
@media (max-width: 960px) {
  .door { grid-template-columns: 1fr; }
  .door-art { display: none; }
  .door-page { overflow: auto; }
}
@media (prefers-reduced-motion: reduce) { .clipin { clip-path: none !important; } }

/* fixes after the first look */
.door-page { overflow: auto; }
.door-art { position: sticky; top: 12px; height: calc(100svh - 24px); }

/* phone: the photograph on top, the words under it */

/* ================= the frame: the page is a white sheet with rounded corners over the pixel field, as in BiteSized and Ask ================= */
:root { --frame: 12px; }
body.framed { background: var(--ds-page); }
.site-field { position: fixed; inset: 0; z-index: 0; }
.frame { position: relative; z-index: 1; margin: var(--frame); min-height: calc(100svh - 2 * var(--frame)); border-radius: 24px; background: var(--ds-surface); box-shadow: 0 0 0 1px var(--ds-line), 0 30px 80px -40px rgba(26,26,26,.18); overflow: clip; }
.framed .nav { top: var(--frame); left: var(--frame); right: var(--frame); border-radius: 24px 24px 0 0; }
.framed .nav.is-scrolled { background: rgba(255,255,255,.86); }
.framed .foot { border-top: 1px solid var(--ds-line); }
.framed .faq { background: var(--ds-page); }
.framed .door { min-height: calc(100svh - 2 * var(--frame)); }
.framed .door-art { margin: 10px 10px 10px 0; height: calc(100svh - 2 * var(--frame) - 20px); top: 10px; }
@media (max-width: 640px) { :root { --frame: 6px; } .frame { border-radius: 18px; } .framed .nav { border-radius: 18px 18px 0 0; } }

/* ================= home v3: centered hero with the question box and the deck ================= */
.hero--center { position: relative; min-height: 0; padding: calc(var(--nav-h) + 72px) 0 96px; display: block; overflow: hidden; isolation: isolate; }
.hc-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero--center h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.02em; max-width: 15ch; }
.hero--center .lead { margin: 22px auto 0; text-align: center; max-width: 520px; }
.rotor { position: relative; width: min(640px, 100%); height: 252px; margin-top: 44px; text-align: left; }
.rotor-box { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) scale(.98); opacity: 0; pointer-events: none; transition: opacity .7s var(--ds-ease-out), transform .9s var(--ds-ease-spring); }
.rotor-box.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.rotor-box .ds-tpl-send { margin-left: auto; }
.deck { position: absolute; inset: 0; pointer-events: none; }
.dcard { position: absolute; left: 0; right: 0; bottom: 8px; display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--ds-r-16); background: var(--ds-surface); box-shadow: var(--ds-hair), var(--ds-shadow-3);
  opacity: 0; transform: translateY(40px) scale(.96); transform-origin: 50% 100%; transition: transform .9s var(--ds-ease-spring), opacity .7s var(--ds-ease-out); }
.deck:not(.is-on) .dcard { opacity: 0 !important; transform: translateY(40px) scale(.96) !important; transition-delay: 0s; }
.vid-thumb--lg { width: 96px; height: 60px; border-radius: var(--ds-r-12); }
@media (max-width: 640px) {
  .hero--center { padding: calc(var(--nav-h) + 40px) 0 64px; }
  .hero--center h1 { font-size: 38px; }
  .rotor { height: 300px; }
  .dcard { padding: 16px; }
  .vid-thumb--lg { width: 72px; height: 48px; }
}

/* the problem */
.problem2 { padding: 120px 0 80px; border-top: 1px solid var(--ds-line); }
.p2-head .ds-eyebrow { margin-bottom: 16px; }
.p2-head h2 { max-width: 20ch; }
.p2 { padding: 28px 32px 8px 0; display: grid; gap: 12px; align-content: start; }
.p2 + .p2 { padding-left: 32px; border-left: 1px solid var(--ds-line); }
.p2-n { font-size: var(--ds-t-13); color: var(--ds-ink-4); font-variant-numeric: tabular-nums; }
.p2 h3 { font-size: var(--ds-t-24); line-height: 1.15; }
.p2 p { font-size: var(--ds-t-15); color: var(--ds-ink-3); }
@media (max-width: 860px) { .p2, .p2 + .p2 { padding: 24px 0; border-left: 0; } .p2 + .p2 { border-top: 1px solid var(--ds-line); } }

/* the solution */
.solution { padding: 80px 0 40px; }
.sol { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--ds-line); }
.sol:last-child { border-bottom: 0; }
.sol-stage { position: relative; padding: 36px; border-radius: 24px; background: var(--ds-surface-2); box-shadow: var(--ds-hair); min-height: 380px; display: grid; align-content: center; }
@media (max-width: 960px) { .sol { grid-template-columns: 1fr; gap: 32px; } .sol-stage { padding: 18px; min-height: 0; } }

/* better together: the flow with a video in the middle */
.fn-app-n { display: inline-flex; align-items: center; gap: 6px; }
.fn-vid { justify-items: start; }
.fn-vid .vid-thumb--lg { width: 100%; height: 120px; }
.fn-app svg { color: var(--ds-ink-2); }

/* people */
.people { padding: 120px 0; border-top: 1px solid var(--ds-line); }

/* sign up: the question someone typed on the home page */
.dcard { min-height: 196px; align-content: start; }
.vid-thumb { color: #fff; }
.vid-thumb .ds-i { width: 18px; height: 18px; }
.vid-thumb--lg .ds-i { width: 22px; height: 22px; }
.vid-thumb .ds-i { color: #fff; fill: #fff; }
@media (max-width: 1080px) { .nav-act .nav-menu { display: inline-flex !important; } }

/* ================= Ask's field behind every hero: the same lilac pixels, full width, fading down ================= */
.ask-field { position: absolute; left: 0; right: 0; top: 0; height: 82%; z-index: -1; pointer-events: none;
  --ds-field-1: #FFFFFF; --ds-field-2: #E6E2FF; --ds-field-3: #C9C2FF; --ds-field-4: #ECE0FA; --ds-field-5: #F7F7F5;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.ask-field canvas { display: block; width: 100% !important; height: 100% !important; }
.hero--center .hc-in { position: relative; }
.hero-act--c { justify-content: center; margin-top: 32px; }

/* the photographs, now secondary: one wide band with a short line */
.photo-band { padding: 40px 0 96px; }
.pb { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--ds-hair); }
.pb img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.pb figcaption { position: absolute; left: 28px; bottom: 28px; max-width: 420px; display: grid; gap: 6px; padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pb figcaption b { font-weight: 400; font-family: var(--ds-serif); font-size: var(--ds-t-24); line-height: 1.15; color: var(--ds-ink); }
.pb figcaption span { font-size: var(--ds-t-14); color: var(--ds-ink-3); }
@media (max-width: 760px) { .pb { aspect-ratio: 4 / 5; } .pb figcaption { left: 12px; right: 12px; bottom: 12px; } }
/* the field reads its colours from the page root: Ask's lilac, as in Ask */
:root, :root[data-theme="light"][data-tone-light="white"] { --ds-field-1: #FFFFFF; --ds-field-2: #E6E2FF; --ds-field-3: #C9C2FF; --ds-field-4: #ECE0FA; --ds-field-5: #F7F7F5; }
.dcard { min-height: 176px; align-content: center; }

/* ================= pass 4: faces, video covers, a visible field, depth further down ================= */
/* the field, clearly visible: Ask's lilac, a touch deeper */
:root, :root[data-theme="light"][data-tone-light="white"] { --ds-field-1: #FFFFFF; --ds-field-2: #E6E6EA; --ds-field-3: #D3D3D9; --ds-field-4: #EFEFF2; --ds-field-5: #F7F7F9; }
.ask-field { height: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.site-field { opacity: 1; }

/* avatars with a face */
.ds-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* video thumbnails: the physician's frame, moving slowly like a playing video, with a progress line */
.vid-thumb.has-cover { position: relative; overflow: hidden; background: #DADCE2; }
.vid-thumb.has-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: kb 9s ease-in-out infinite alternate; }
.vid-thumb.has-cover .ds-i { position: relative; z-index: 1; width: 16px; height: 16px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: rgba(20,22,26,.42); backdrop-filter: blur(4px); }
.vid-thumb.has-cover::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #fff; transform-origin: 0 50%; animation: vprog 12s linear infinite; opacity: .9; }
.vid-thumb--lg.has-cover { width: 120px; height: 76px; }
.fn-vid .vid-thumb--lg.has-cover { width: 100%; height: 150px; }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, 1%); } }
@keyframes vprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .vid-thumb.has-cover img, .vid-thumb.has-cover::after { animation: none; } }

/* the field inside each mockup's stage, so the app pieces float on it */
.sol-stage, .stage-card { isolation: isolate; overflow: hidden; }
.stage-field { position: absolute; inset: 0; z-index: -1; }
.sol-stage { background: #F1F1F3; }
.how-stage .stage-card { background: #F1F1F3; }

/* better together on a band of the field, fading in and out at its edges */
.start--field { position: relative; isolation: isolate; overflow: hidden; border-top: 0; }
.band-field { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }

/* who it is for: close portraits, centered */

/* pricing, bolder: a field card with three plan cards fanned out */
.price-cta { padding: 40px 0 120px; }
/* Dr. Okafor's clip plays silently where her video appears */
.vid-thumb.has-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.vid-thumb.has-cover:has(video) .ds-i { opacity: 0; }
/* the hero's field in white and greys, so the lilac frame around it reads */
.ask-field { --ds-field-1: #FFFFFF; --ds-field-2: #ECECF0; --ds-field-3: #D9D9E0; --ds-field-4: #F2F2F5; --ds-field-5: #FFFFFF; }

/* the problem, with a phone: each problem lights up while the phone shows the app that answers it */
.p2-split { margin-top: 56px; display: grid; grid-template-columns: 1fr 440px; gap: 72px; align-items: center; }
.p2-list { display: grid; border-top: 1px solid var(--ds-ink); }
.problem2 .p2, .problem2 .p2 + .p2 { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 0; padding: 26px 0; border: 0; border-bottom: 1px solid var(--ds-line); cursor: pointer; text-align: left; outline: 0; }
.p2-t { display: grid; gap: 8px; }
.problem2 .p2 h3 { font-size: var(--ds-t-24); color: var(--ds-ink-3); transition: color .5s; }
.problem2 .p2 p { max-width: 46ch; color: var(--ds-ink-4); transition: color .5s; }
.problem2 .p2-n { padding-top: 6px; transition: color .5s; }
.problem2 .p2.is-on h3, .problem2 .p2:hover h3 { color: var(--ds-ink); }
.problem2 .p2.is-on p { color: var(--ds-ink-3); }
.problem2 .p2.is-on .p2-n { color: var(--ds-ink); }
.problem2 .p2::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ds-ink); transform: scaleX(0); transform-origin: 0 50%; }
.problem2 .p2.is-on::after { animation: p2-time var(--p2-ms, 5200ms) linear forwards; }
.problem2 .p2:focus-visible { box-shadow: 0 0 0 2px var(--ds-ink); border-radius: 6px; }
@keyframes p2-time { to { transform: scaleX(1); } }
.p2-stage { position: relative; display: grid; place-items: center; padding: 40px 0; border-radius: 28px; background: var(--ds-surface-2); box-shadow: var(--ds-hair); overflow: hidden; }

.ph { position: relative; z-index: 1; width: 272px; aspect-ratio: 9 / 19.2; padding: 7px; border-radius: 46px; background: #1B1C1F; box-shadow: inset 0 0 0 1.5px #3A3B40, 0 1px 2px rgba(0,0,0,.08), 0 40px 70px -30px rgba(26,26,40,.45); }
.ph-body { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: var(--ds-surface); }
.ph-island { position: absolute; z-index: 3; top: 9px; left: 50%; width: 82px; height: 24px; margin-left: -41px; border-radius: 14px; background: #111; }
.ph-status { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 4px 24px 0 28px; font-size: 13px; }
.ph-status b { font-weight: 500; }
.ph-status span { display: inline-flex; gap: 5px; align-items: center; }
.ph-sig { width: 15px; height: 9px; background: linear-gradient(90deg, var(--ds-ink) 0 20%, transparent 20% 27%, var(--ds-ink) 27% 47%, transparent 47% 54%, var(--ds-ink) 54% 74%, transparent 74% 81%, var(--ds-ink) 81%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.ph-bat { width: 21px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--ds-ink-3); background: linear-gradient(90deg, var(--ds-ink) 0 70%, transparent 70%) 2px 2px / calc(100% - 4px) 6px no-repeat; }
.ph-home { position: absolute; z-index: 3; bottom: 7px; left: 50%; width: 96px; height: 4px; margin-left: -48px; border-radius: 2px; background: var(--ds-ink); opacity: .85; }

.ph-scene { position: absolute; inset: 42px 0 0; display: grid; align-content: start; gap: 12px; padding: 6px 16px 24px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .6s var(--ds-ease-out), transform .8s var(--ds-ease-out), visibility 0s .6s; text-align: left; }
.ph-scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ds-ease-out) .15s, transform .9s var(--ds-ease-out) .15s, visibility 0s; }
.ph-up { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ds-ease-out), transform .7s var(--ds-ease-out); }
.ph-scene.is-on .ph-up { opacity: 1; transform: none; }
.ph-scene.is-on .ph-up:nth-child(2) { transition-delay: .35s; }
.ph-scene.is-on .ph-up:nth-child(3) { transition-delay: .9s; }
.ph-scene.is-on .ph-up:nth-child(4) { transition-delay: 1.4s; }
.ph-scene.is-on .ph-up:nth-child(5) { transition-delay: 1.9s; }

.ph-bar { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; border-bottom: 1px solid var(--ds-line); font-size: 13px; color: var(--ds-ink-2); }
.ph-q { justify-self: end; max-width: 86%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--ds-surface-2); font-size: 13px; line-height: 1.4; color: var(--ds-ink); }
.ph-a { font-family: var(--ds-serif); font-size: 15px; line-height: 1.5; color: var(--ds-ink); }
.ph-a sup { transform: scale(.9); }
.ph-from { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ds-ink-3); }
.ph-vid { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ds-line-2); }
.ph-v { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: #DADCE2; }
.ph-v video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.ph-v em { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 4px; background: rgba(20,22,26,.72); color: #fff; font-size: 9px; font-style: normal; }
.ph-vid > div { display: grid; gap: 4px; }
.ph-vid b { font-weight: 400; font-size: 12px; line-height: 1.3; color: var(--ds-ink); }
.ph-vid > div > span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ds-ink-3); }
.ph-vid .rb-av--xs, .ph-sent .rb-av--xs { width: 18px; height: 18px; }

.ph-sent { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ds-ink-3); }
.ph-sent b { font-weight: 400; color: var(--ds-ink); }
.ph-sent .rb-av--xs { width: 24px; height: 24px; }
.ph-tall { position: relative; height: 252px; border-radius: 16px; overflow: hidden; background: #DADCE2; }
.ph-tall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.ph-scene.is-on .ph-tall img { animation: kb 9s ease-in-out infinite alternate; }
.ph-cap { position: absolute; left: 12px; right: 12px; bottom: 14px; color: #fff; font-size: 14px; line-height: 1.3; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.ph-play { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--ds-ink); }
.ph-langs { display: flex; gap: 6px; }
.ph-langs span { padding: 5px 10px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1px var(--ds-line-2); font-size: 11px; color: var(--ds-ink-2); }
.ph-langs span.on { background: var(--ds-ink); color: #fff; box-shadow: none; }
.ph-note { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ds-ink-3); }
.ph-note .ds-i { color: var(--ds-ok-ink); }

.ph-hl { font-family: var(--ds-serif); font-size: 19px; line-height: 1.2; color: var(--ds-ink); }
.ph-hl u { text-decoration: none; box-shadow: inset 0 -1px 0 var(--ds-ink-4); }
.ph-post { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-line-2); }
.ph-post .rb-who b { font-size: 12px; }
.ph-post .rb-who span { font-size: 10px; }
.ph-post .rb-pill { padding: 3px 8px; font-size: 10px; }
.ph-post h4 { font-family: var(--ds-serif); font-weight: 400; font-size: 15px; line-height: 1.25; color: var(--ds-ink); }
.ph-post .rb-src { font-size: 10px; }
.ph-post--2 { opacity: .55; }
.ph-scene.is-on .ph-post--2 { opacity: .6; }

@media (max-width: 960px) {
  .p2-split { grid-template-columns: 1fr; gap: 36px; }
  .p2-stage { padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) { .problem2 .p2.is-on::after { animation: none; transform: scaleX(1); } }
.p2-split { margin-top: 0; align-items: center; }
.p2-left .p2-list { margin-top: 48px; }
.ph-play { top: auto; left: auto; right: 12px; bottom: 12px; width: 32px; height: 32px; margin: 0; }
.ph-play .ds-i { width: 14px; height: 14px; }
.ph-cap { right: 54px; }
.ph-follow { position: absolute; left: 12px; right: 12px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; border-radius: var(--ds-r-pill); box-shadow: 0 0 0 1px var(--ds-line-2), 0 8px 20px -12px rgba(26,26,26,.25); background: var(--ds-surface); font-size: 12px; color: var(--ds-ink-4); }
.ph-follow i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-surface-2); color: var(--ds-ink-3); }

/* ======================== from real.css ======================== */
/* The app pieces, drawn as the apps draw them today (Ask Doctorpedia's home and answer page, BiteSized's white tone
   of 19 Nov, Dose's "Ahora" screens of 10 Nov). ra = Ask, rb = BiteSized, rd = Dose. Same tokens as the apps. */

/* ---------- Ask: the box ---------- */
.ra-box { display: grid; gap: 6px; padding: 14px 14px 12px; border-radius: 16px; background: var(--ds-surface); box-shadow: 0 0 0 1px var(--ds-line-2), 0 1px 2px rgba(26,26,26,.04), 0 22px 48px -20px rgba(26,26,26,.18); text-align: left; }
.ra-box-q { display: block; width: 100%; min-height: 3.2em; padding: 4px 6px; border: 0; outline: 0; resize: none; background: none; font: inherit; font-size: var(--ds-t-17); line-height: 1.5; color: var(--ds-ink); }
.ra-box-q::placeholder { color: var(--ds-ink-4); }
.ra-box-row { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ra-ghost { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--ds-r-pill); font-size: var(--ds-t-14); color: var(--ds-ink-2); }
.ra-ghost .ds-i { color: var(--ds-ink-3); }
.ra-ask { margin-left: auto; height: 40px; padding: 0 16px; border: 0; border-radius: var(--ds-r-pill); background: var(--ds-surface-2); color: var(--ds-ink-2); font: inherit; font-size: var(--ds-t-14); cursor: pointer; transition: background-color .2s, color .2s; }
.ra-box:focus-within .ra-ask, .ra-ask:hover { background: var(--ds-ink); color: #fff; }

/* ---------- Ask: the answer ---------- */
.ra-page { display: grid; gap: 16px; padding: 28px 30px; border-radius: 20px; background: var(--ds-surface); box-shadow: var(--ds-hair), var(--ds-shadow-2); text-align: left; }
.ra-h { font-family: var(--ds-sans); font-size: 26px; line-height: 1.2; letter-spacing: -.01em; color: var(--ds-ink); }
.ra-seg { display: inline-flex; gap: 4px; width: max-content; }
.ra-seg span { padding: 8px 14px; border-radius: var(--ds-r-pill); font-size: var(--ds-t-14); color: var(--ds-ink-3); }
.ra-seg span.on { background: var(--ds-ink); color: #fff; }
.ra-body p, .ra-body li { font-family: var(--ds-serif); font-size: 18px; line-height: 1.6; color: var(--ds-ink); }
.ra-body ul { margin: 8px 0 0; padding-left: 22px; }
.ra-body li + li { margin-top: 4px; }
sup { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 2px; padding: 0 4px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--ds-line-2); font-family: var(--ds-sans); font-size: 10px; line-height: 1; color: var(--ds-ink-3); vertical-align: 3px; }
.ra-level { margin-top: -4px; }
.ra-k { font-size: var(--ds-t-13); color: var(--ds-ink-4); }
.ra-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(20,22,26,.72); color: #fff; font-size: 11px; font-style: normal; }

/* ---------- BiteSized: the post ---------- */
.rb-post { display: grid; gap: 12px; text-align: left; }
.rb-head { display: flex; align-items: center; gap: 12px; }
.rb-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--ds-surface-2); box-shadow: 0 0 0 1px var(--ds-line); display: inline-block; }
.rb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-av--xs { width: 24px; height: 24px; }
.rb-who { display: grid; line-height: 1.3; flex: 1; min-width: 0; }
.rb-who b { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: var(--ds-t-15); color: var(--ds-ink); }
.rb-who span { font-size: var(--ds-t-13); color: var(--ds-ink-3); }
.rb-ver { width: 15px; height: 15px; fill: var(--ds-ink); }
.rb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--ds-r-pill); background: #FBECEB; color: #B4433D; font-size: var(--ds-t-13); white-space: nowrap; align-self: flex-start; }
.rb-pill i { width: 7px; height: 7px; border-radius: 50%; background: #C8433D; }
.rb-title { font-family: var(--ds-serif); font-size: 23px; line-height: 1.22; color: var(--ds-ink); }
.rb-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--ds-t-13); color: var(--ds-ink-3); }
.rb-src span { display: inline-flex; align-items: center; gap: 4px; }
.rb-acts { display: flex; align-items: center; gap: 22px; padding-top: 12px; border-top: 1px solid var(--ds-line); font-size: var(--ds-t-14); color: var(--ds-ink-2); }
.rb-acts > span { display: inline-flex; align-items: center; gap: 6px; }
.rb-acts em { font-style: normal; color: var(--ds-ink-4); }
.rb-save { margin-left: auto; }
.rb-save b { font-weight: 400; }
.rb-save .on, .rb-save .t2 { display: none; }
.is-saved .rb-save .on, .is-saved .rb-save .t2 { display: inline; }
.is-saved .rb-save .ds-i:not(.on), .is-saved .rb-save .t1 { display: none; }
.rb-postwrap .rb-post, .dcard .rb-post { padding: 0; }
.rb-postwrap { padding: 24px 26px; border-radius: 18px; background: var(--ds-surface); box-shadow: var(--ds-hair), var(--ds-shadow-2); }

/* ---------- BiteSized: home ---------- */
.rb-home { display: grid; gap: 14px; text-align: left; }
.rb-hi { font-size: var(--ds-t-14); color: var(--ds-ink-3); }
.rb-hl { font-family: var(--ds-serif); font-size: 30px; line-height: 1.15; color: var(--ds-ink); }
.rb-hl u { text-decoration: none; box-shadow: inset 0 -1px 0 var(--ds-ink-4); }
.rb-feedwin { padding: 22px 24px; border-radius: 18px; background: var(--ds-surface); box-shadow: var(--ds-hair), var(--ds-shadow-2); }

/* ---------- BiteSized: private discussion ---------- */
.rb-modal { display: grid; gap: 14px; padding: 24px 26px; border-radius: 22px; background: var(--ds-surface); box-shadow: var(--ds-shadow-pop); text-align: left; }
.rb-m-top { display: flex; align-items: center; gap: 10px; font-size: var(--ds-t-14); }
.rb-m-top b { font-weight: 400; color: var(--ds-ink); }
.rb-m-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-surface-2); color: var(--ds-ink-2); }
.rb-m-box { position: relative; display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ds-line-2); overflow: hidden; }
.rb-m-box p { font-family: var(--ds-serif); font-size: 18px; line-height: 1.45; color: var(--ds-ink); }
.rb-m-who b { display: block; font-weight: 400; font-family: var(--ds-serif); font-size: 20px; color: var(--ds-ink); margin-bottom: 8px; }
.rb-people { display: flex; gap: 8px; flex-wrap: wrap; }
.rb-person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1px var(--ds-line-2); font-size: var(--ds-t-14); color: var(--ds-ink); transition: background-color .3s, box-shadow .3s; }
.rb-person small { font-size: var(--ds-t-12); color: var(--ds-ink-4); }
.rb-person i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ds-line-3); }
.rb-person.is-hover { box-shadow: inset 0 0 0 1px var(--ds-ink-3); }
.rb-person.is-on { background: #F1F1F3; box-shadow: inset 0 0 0 1px #8A8C93; }
.rb-person.is-on small { color: #1A1A1A; }
.rb-person.is-on i { box-shadow: none; background: #1A1A1A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.rb-m-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ds-line); font-size: var(--ds-t-14); color: var(--ds-ink-3); }
.rb-m-foot b { font-weight: 400; color: var(--ds-ink); }

/* ---------- BiteSized: the doctor's page ---------- */

/* ---------- Dose ---------- */
.rd-h { font-family: var(--ds-serif); font-size: 26px; line-height: 1.2; color: var(--ds-ink); text-align: center; }
.rd-h--l { text-align: left; font-size: 28px; }
.rd-create { display: grid; gap: 10px; }
.rd-box { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ds-surface); box-shadow: 0 0 0 1px var(--ds-line-2), var(--ds-shadow-2); text-align: left; margin-top: 8px; }
.rd-pres { display: flex; align-items: center; gap: 8px; font-size: var(--ds-t-13); color: var(--ds-ink-3); }
.rd-pres b { font-weight: 400; color: var(--ds-ink); }
.rd-pres em { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-style: normal; padding: 4px 10px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1px var(--ds-line-2); color: var(--ds-ink-2); }
.rd-typed { min-height: 52px; font-size: var(--ds-t-15); line-height: 1.5; color: var(--ds-ink); }
.rd-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--ds-t-13); color: var(--ds-ink-2); }
.rd-row > span { display: inline-flex; align-items: center; gap: 6px; }
.rd-say { margin-left: auto; }
.rd-go { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--ds-r-pill); background: #C8C8CC; color: #fff; font-size: var(--ds-t-14); white-space: nowrap; transition: background-color .3s, transform .15s; }
.rd-go em { font-style: normal; }
.rd-go .t2 { display: none; }
.rd-go.done .t1 { display: none; }
.rd-go.done .t2 { display: inline; }
.rd-go.press { transform: scale(.96); }
.rd-create .rd-go.done, .rd-go--on { background: var(--ds-ink); }
.rd-go--on.done { background: var(--ds-ok-ink); }
.rd-out { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1px var(--ds-line-2); background: var(--ds-surface); font-size: var(--ds-t-14); color: var(--ds-ink-2); }
.rd-make { display: grid; gap: 14px; }
.rd-vthumb { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #DADCE2; aspect-ratio: 9 / 16; }
.rd-vthumb video, .rd-vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.rd-cap { position: absolute; left: 8px; right: 8px; bottom: 12px; font-size: 11px; line-height: 1.3; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rd-vthumb--xl .rd-cap { bottom: 46px; font-size: 13px; text-align: center; font-weight: 500; }
.rd-ctl { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: center; gap: 4px; }
.rd-ctl span { display: grid; justify-items: center; gap: 2px; padding: 4px 8px; border-radius: 8px; background: rgba(20,22,26,.55); color: #fff; font-size: 9px; }
.rd-s { font-size: var(--ds-t-12); color: var(--ds-ink-3); }
.rd-look-r { display: grid; gap: 10px; align-content: start; }
.rd-lines { margin: 4px 0; padding: 0; list-style: none; counter-reset: l; display: grid; gap: 8px; }
.rd-lines li { counter-increment: l; display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: var(--ds-t-13); line-height: 1.45; color: var(--ds-ink-3); transition: color .3s; }
.rd-lines li::before { content: counter(l, decimal-leading-zero); font-size: 11px; color: var(--ds-ink-4); padding-top: 2px; }
.rd-lines li.marked { color: var(--ds-ink); }
.rd-ok { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ds-serif); font-size: 22px; color: var(--ds-ink); }
.rd-ok--l { font-size: 32px; }
.rd-qr-row { display: flex; gap: 14px; align-items: center; }
.rd-qr-row p { font-size: var(--ds-t-13); color: var(--ds-ink-2); margin-bottom: 8px; }

/* the deck holds the real cards: one padding, the card's own rules inside */
.dcard { padding: 22px 24px; }
@media (max-width: 640px) {
  .ra-page, .rb-postwrap, .rb-modal { padding: 18px; }
  .rb-title { font-size: 20px; }
  .ra-ghost { padding: 0 6px; font-size: var(--ds-t-13); }
}

/* ======================== from dpmark.css ======================== */
/* The Doctorpedia symbol, alive: it rests as an outline, a small light runs once around the two circles,
   and the light leaves the shape filled. It holds, lets go, and starts again. 8 s a turn, no rotation. */
.dpm { overflow: visible; }
.dpm path { fill: none; stroke-linecap: round; }
.dpm-fill { fill: var(--ds-ink) !important; opacity: 1; animation: dpm-fill 8s var(--ds-ease-inout, cubic-bezier(.65,0,.35,1)) infinite; }
.dpm-line { stroke: var(--ds-ink); stroke-width: 3.2; opacity: 0; animation: dpm-line 8s linear infinite; }
.dpm-glow, .dpm-spark { stroke-dasharray: 14 86; stroke-dashoffset: 100; opacity: 0; animation: dpm-run 8s cubic-bezier(.45,.05,.35,1) infinite; }
.dpm-glow { stroke: rgba(26,26,26,.28); stroke-width: 9; filter: blur(2.4px); }
.dpm-2 { animation-delay: .35s !important; }
.dpm-spark { stroke: #1A1A1A; stroke-width: 3.6; stroke-dasharray: 8 92; }
/* 0-10% filled, 10-18% the fill gives way to the outline, 20-58% the light runs, 56-66% the fill comes back */
@keyframes dpm-fill { 0%, 10% { opacity: 1; } 17%, 58% { opacity: 0; } 63%, 100% { opacity: 1; } }
@keyframes dpm-line { 0%, 10% { opacity: 0; } 16%, 60% { opacity: .5; } 66%, 100% { opacity: 0; } }
@keyframes dpm-run {
  0%, 19% { stroke-dashoffset: 100; opacity: 0; }
  22% { opacity: 1; }
  56% { opacity: 1; }
  62% { stroke-dashoffset: -2; opacity: 0; }
  100% { stroke-dashoffset: -2; opacity: 0; }
}
.brand:hover .dpm-fill { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  .dpm-fill { animation: none; opacity: 1; }
  .dpm-line, .dpm-glow, .dpm-spark { animation: none; opacity: 0; }
}

/* ======================== from calm.css ======================== */
/* Calm pass, 20 Nov: each illustration says one thing, with air around it, and the physician's face moves.
   Loaded last, so it wins over real.css where they meet. */

.ok-dot { flex: none; }

/* ---------- Ask ---------- */
.ra-calm { gap: 22px; padding: 34px 36px; max-width: 520px; margin: 0 auto; width: 100%; }
.ra-calm .ra-h { font-size: 28px; }
.ra-lede { font-family: var(--ds-serif); font-size: 20px; line-height: 1.5; color: var(--ds-ink); }
.ra-vrow { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--ds-line-2); }
.ra-vrow > div { display: grid; gap: 2px; flex: 1; }
.ra-vrow b { font-weight: 400; font-size: var(--ds-t-15); color: var(--ds-ink); }
.ra-vrow > div span { font-size: var(--ds-t-13); color: var(--ds-ink-3); }
.ra-vrow > .ds-i { color: var(--ds-ink-3); }
.ra-vsq { width: 72px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; background: #DADCE2; }
.ra-vsq video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.ra-bigv { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #DADCE2; }
.ra-bigv video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.ra-by2 { display: flex; align-items: center; gap: 12px; }
.ra-by2 > div { display: grid; line-height: 1.35; }
.ra-by2 b { font-weight: 400; color: var(--ds-ink); }
.ra-by2 span { font-size: var(--ds-t-13); color: var(--ds-ink-3); }
.ra-calm .rel { display: grid; gap: 4px; }
.ra-follow { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 18px; border-radius: var(--ds-r-pill); box-shadow: 0 0 0 1px var(--ds-line-2), 0 10px 24px -14px rgba(26,26,26,.25); color: var(--ds-ink-4); font-size: var(--ds-t-15); }
.ra-follow i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-surface-2); color: var(--ds-ink-3); }

/* ---------- Dose ---------- */
.rd-calm { gap: 22px; max-width: 560px; margin: 0 auto; width: 100%; }
.rd-calm .rd-h { font-size: 30px; }
.rd-calm .rd-box { gap: 18px; padding: 20px 22px; }
.rd-calm .rd-typed { font-size: 18px; min-height: 0; }
.rd-calm .rd-row { justify-content: flex-end; gap: 12px; }
.rd-calm .rd-say { margin-left: 0; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1px var(--ds-line-2); }
.rd-look2 { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; padding: 18px 30px 18px 18px; border-radius: 22px; background: var(--ds-surface); box-shadow: var(--ds-hair), var(--ds-shadow-2); text-align: left; max-width: 600px; }
.rd-look2 .rd-look-r { gap: 16px; justify-items: start; }
.rd-look2 .rd-lines { gap: 12px; }
.rd-look2 .rd-lines li { font-size: var(--ds-t-15); }
.rd-look2 .rd-qr-row p { font-size: var(--ds-t-14); color: var(--ds-ink-3); max-width: 22ch; margin: 0; }
.rd-ok { gap: 10px; }

/* ---------- BiteSized ---------- */
.rb-calm { max-width: 540px; margin: 0 auto; width: 100%; }
.rb-home.rb-calm { gap: 12px; }
.rb-post { gap: 14px; }
.rb-post .rb-pill { justify-self: start; }
.rb-postwrap.rb-calm { padding: 30px 32px; }
.rb-calm .rb-title { font-size: 26px; }
.rb-modal.rb-calm { gap: 20px; padding: 30px 32px; }
.rb-calm .rb-m-box p { font-size: 20px; }
.rb-calm .rb-m-who b { font-size: 18px; }

/* ---------- The deck holds fewer words now ---------- */
.dcard { padding: 26px 28px; }

/* ---------- The physician's own voice ---------- */
.voice { padding: 40px 0 100px; }
.vs { position: relative; display: grid; grid-template-columns: 230px 1fr; grid-template-rows: auto auto; gap: 18px 24px; align-items: end; }
.ph-tall video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }

@media (max-width: 960px) {
  .vs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ra-calm, .rb-postwrap.rb-calm, .rb-modal.rb-calm { padding: 22px; }
  .ra-calm .ra-h { font-size: 23px; }
  .ra-lede { font-size: 18px; }
   .rd-look2 { grid-template-columns: 1fr; padding: 16px; }
   .rd-look2 .rd-vthumb { max-width: 180px; }
  .rd-calm .rd-h { font-size: 24px; }
  .dcard { padding: 18px; }
}
 .rd-vthumb::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to bottom, transparent, rgba(16,18,24,.55)); pointer-events: none; }
 .rd-cap { z-index: 1; }

/* the flow on narrow screens: the line between two app cards is exactly the gap between them, aligned to the icons */
@media (max-width: 1080px) {
  .fn-apps .fn-app + .fn-app::before { top: -13px; height: 12px; left: 32px; }
  .fn-apps::before { left: 36px; }
}

/* the nav floats once the page moves: a blurred pill a little in from the frame, so nothing shows above it */
.framed .nav { transition: top .45s var(--ds-ease-out), left .45s var(--ds-ease-out), right .45s var(--ds-ease-out), border-radius .45s var(--ds-ease-out), background-color .3s, box-shadow .3s, border-color .3s; }
.framed .nav.is-scrolled { top: calc(var(--frame) + 10px); left: calc(var(--frame) + 16px); right: calc(var(--frame) + 16px); border-radius: 20px; border-bottom-color: transparent; background: rgba(255,255,255,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 1px rgba(26,26,40,.07), 0 12px 32px -14px rgba(26,26,40,.22); }
.framed .nav.is-scrolled .nav-in { height: calc(var(--nav-h) - 12px); }
.framed .nav .nav-in { transition: height .45s var(--ds-ease-out); }
.framed .nav.is-open { border-radius: 20px; }
@media (max-width: 640px) { .framed .nav.is-scrolled { left: calc(var(--frame) + 8px); right: calc(var(--frame) + 8px); top: calc(var(--frame) + 8px); } }
.sol-stage > :not(.ds-pixel-field), .p2-stage > :not(.ds-pixel-field), .panel > :not(.ds-pixel-field) { position: relative; }

/* ---------- The approved video card (hero decks) ---------- */
.ap { display: grid; grid-template-columns: 128px 1fr; gap: 22px; align-items: stretch; text-align: left; }
/* the seal stamps in each time its card comes to the front */
@keyframes ap-stamp { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes ap-dot { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
@media (max-width: 640px) {
  .ap { grid-template-columns: 96px 1fr; gap: 14px; }
}

/* ---------- The voice section: her laptop, then her patient's phone ---------- */
.ph--duo { position: absolute; z-index: 2; right: 0; bottom: -18px; width: 158px; padding: 5px; border-radius: 30px; }
.ph--duo .ph-body { border-radius: 25px; }
.ph--duo .ph-island { top: 6px; width: 46px; height: 14px; margin-left: -23px; }
.ph--duo .ph-status { height: 28px; padding: 3px 14px 0 18px; font-size: 9px; }
.ph--duo .ph-sig { width: 10px; height: 6px; }
.ph--duo .ph-bat { width: 15px; height: 7px; background-size: calc(100% - 4px) 3px; }
.ph--duo .ph-scene { inset: 28px 0 0; gap: 8px; padding: 4px 9px 18px; }
.ph--duo .ph-sent { font-size: 9px; gap: 5px; }
.ph--duo .ph-sent .rb-av--xs { width: 16px; height: 16px; }
.ph--duo .ph-tall { height: auto; aspect-ratio: 9 / 13; border-radius: 10px; }
.ph--duo .ph-cap { font-size: 10px; left: 8px; bottom: 8px; right: 8px; }
.ph--duo .ph-note { font-size: 9px; gap: 4px; }
.ph--duo .ph-note .ok-dot { width: 11px; height: 11px; }
.ph--duo .ph-home { width: 50px; margin-left: -25px; height: 3px; bottom: 5px; }
.ph--duo.hold { transform: translateY(24px); }
.ph--duo.hold.in { transform: none; }
@media (max-width: 960px) {
  .ph--duo { width: 118px; bottom: -14px; }
}

/* ---------- Nav: a gliding pill, a calmer button ---------- */
.nav-links { position: relative; }
.nav-pill { position: absolute; left: 0; top: 50%; height: 34px; margin-top: -17px; border-radius: var(--ds-r-pill); background: var(--ds-hover); box-shadow: inset 0 0 0 1px rgba(26,26,40,.04); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.22,1,.36,1), width .5s cubic-bezier(.22,1,.36,1), opacity .25s ease; }
.nav-pill.no-ease { transition: none; }
.nav-links a { position: relative; z-index: 1; transition: color .3s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: transparent !important; }
.nav-links.is-hover a[aria-current="page"]:not(.is-on) { color: var(--ds-ink-3); }
.nav-links a.is-on, .nav-links a[aria-current="page"] { color: var(--ds-ink); }
.nav-login { transition: background-color .3s ease, color .3s ease; }
.nav-sign { gap: 0; overflow: hidden; transition: padding .45s cubic-bezier(.22,1,.36,1), background-color .3s; }
.nav-sign .ds-i { width: 0; opacity: 0; transform: translateX(-6px); transition: width .45s cubic-bezier(.22,1,.36,1), opacity .3s ease, transform .45s cubic-bezier(.22,1,.36,1), margin .45s cubic-bezier(.22,1,.36,1); }
.nav-sign:hover .ds-i, .nav-sign:focus-visible .ds-i { width: 16px; margin-left: 8px; opacity: 1; transform: none; }
.brand { transition: opacity .3s ease; }
.brand:hover span { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .nav-pill, .nav-sign, .nav-sign .ds-i { transition: none; } }

/* ---------- Log in: choose an app ---------- */
.ch-list { display: grid; gap: 10px; }
.ch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-line-2); text-decoration: none; color: inherit; transition: box-shadow .3s ease, background-color .3s ease, transform .3s cubic-bezier(.22,1,.36,1); }
.ch:hover, .ch:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--ds-ink-3), 0 10px 24px -16px rgba(26,26,40,.35); }
.ch-mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ds-surface-2); }
.ch-t { display: grid; gap: 2px; line-height: 1.35; }
.ch-t b { font-weight: 400; font-size: var(--ds-t-17); color: var(--ds-ink); }
.ch-t span { font-size: var(--ds-t-13); color: var(--ds-ink-3); }
.ch-go { color: var(--ds-ink-4); transition: transform .35s cubic-bezier(.22,1,.36,1), color .3s; }
.ch:hover .ch-go, .ch:focus-visible .ch-go { color: var(--ds-ink); transform: translateX(3px); }
.ch-fine { margin-top: 18px; font-size: var(--ds-t-14); color: var(--ds-ink-3); }
.ch-fine a { color: var(--ds-ink); }
.choose { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; overflow: auto; }
.choose::backdrop { background: color-mix(in srgb, #F5F5F7 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s ease; }
.choose.is-open::backdrop { opacity: 1; }
.choose-in { width: min(480px, calc(100% - 32px)); margin: 12vh auto 40px; padding: 28px; border-radius: 26px; background: var(--ds-surface); box-shadow: var(--ds-shadow-pop); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .25s ease, transform .4s cubic-bezier(.22,1,.36,1); }
.choose.is-open .choose-in { opacity: 1; transform: none; }
.choose-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.choose-top h2 { font-size: 26px; line-height: 1.15; }
.choose-sub { margin: 6px 0 20px; font-size: var(--ds-t-14); color: var(--ds-ink-3); }
.door .ch-list { margin-top: 24px; }
@media (max-width: 640px) {
  .choose-in { margin: auto 0 0; width: 100%; border-radius: 24px 24px 0 0; padding: 22px 18px 28px; position: absolute; bottom: 0; transform: translateY(30px); }
  .ch-t span { font-size: var(--ds-t-12); }
}

/* ---------- Which app this is: a small tag on every mockup ---------- */
.app-tag { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 5px 11px 5px 8px; border-radius: var(--ds-r-pill); background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-line-2); font-size: var(--ds-t-12); line-height: 1; color: var(--ds-ink-2); white-space: nowrap; }
.sol-stage > .app-tag, .panel > .app-tag { position: absolute; z-index: 2; top: 18px; left: 18px; }
.dcard > .app-tag { margin: -4px 0 4px; box-shadow: none; padding-left: 0; background: none; color: var(--ds-ink-3); }
.rotor-box > .app-tag { margin: 2px 0 2px 4px; box-shadow: none; background: none; padding-left: 0; color: var(--ds-ink-3); }
.step .panel > .app-tag { position: static; margin-bottom: 12px; }

/* ---------- The three apps under the hero: tiles that light with the app in front ---------- */
.hca { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--ds-line-2); text-decoration: none; color: inherit; text-align: left; overflow: hidden; transition: background-color .4s ease, box-shadow .4s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.hca:hover { background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-ink-4), 0 14px 30px -20px rgba(26,26,40,.35); }
.hca.is-on { background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-line-3), 0 18px 36px -22px rgba(26,26,40,.4); }
@keyframes hca-time { to { transform: scaleX(1); } }
@media (max-width: 760px) {
  .hca { padding: 12px 14px; }
}
.ph--duo { width: 146px; right: 0; bottom: -30px; }
@media (max-width: 960px) { .ph--duo { width: 112px; } }

/* ---------- Each stage is a window of its app: the app's own top bar ---------- */
.abar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; background: rgba(255,255,255,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ds-line); font-size: 12px; color: var(--ds-ink-2); white-space: nowrap; }
.abar .ds-i { width: 13px; height: 13px; }
.abar-b { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-size: 13px; color: var(--ds-ink); }
.abar-p { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1px var(--ds-line-2); background: var(--ds-surface); }
.abar-p em { font-style: normal; padding: 0 5px; border-radius: 6px; background: var(--ds-surface-2); font-size: 10px; color: var(--ds-ink-3); }
.abar-p--on { background: var(--ds-ink); color: #fff; box-shadow: none; }
.abar-sp { flex: 1; }
.abar-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--ds-line-2); background: var(--ds-surface); font-size: 10px; color: var(--ds-ink-2); flex: none; }
.abar-search { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1px var(--ds-line-2); background: var(--ds-surface); color: var(--ds-ink-2); overflow: hidden; }
.abar-search i { width: 1px; height: 12px; background: var(--ds-line-2); margin: 0 4px; }
.abar-search > span { color: var(--ds-ink-4); overflow: hidden; text-overflow: ellipsis; }
.abar-new { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: var(--ds-r-pill); background: var(--ds-ink); color: #fff; }
.sol-stage { overflow: hidden; padding-top: 72px; }
.panel { padding-top: 70px; }
.stage-card { overflow: hidden; }
.step .panel { padding-top: 64px; }
.step .panel > .abar { border-radius: 16px 16px 0 0; }

/* the real details */
.ra-seg--real { gap: 6px; }
.ra-seg--real span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; box-shadow: inset 0 0 0 1px var(--ds-line-2); }
.ra-seg--real span.on { box-shadow: none; }
.ra-seg--real em { font-style: normal; font-size: 11px; color: var(--ds-ink-4); }
.ra-seg--real .ds-i { width: 10px; height: 10px; }
.rd-pchip { position: absolute; z-index: 2; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; background: rgba(20,22,26,.55); color: #fff; font-size: 10px; }
.rd-pchip .ds-i { width: 10px; height: 10px; }
.rd-look2 .rd-vthumb .rd-ctl { z-index: 2; bottom: 10px; }
.rd-look2 .rd-ctl .ds-i { width: 11px; height: 11px; }
.rd-look2 .rd-look-r > .rd-go, .rd-look2 .rd-look-r > .rd-out--s { display: inline-flex; }
.rd-look2 .rd-look-r { grid-template-columns: auto auto; justify-content: start; column-gap: 8px; }
.rd-look2 .rd-look-r > :not(.rd-go):not(.rd-out--s) { grid-column: 1 / -1; }
.rd-out--s { height: 38px; }
@media (max-width: 640px) {
  .abar-p:not(.abar-p--on), .abar-new, .abar-search > span { display: none; }
  .abar-search { flex: 0 1 auto; }
}
.sol-stage > .abar, .panel > .abar { position: absolute; }
/* in the real Ask the answer sits on the page, with no card around it */
.panel .ra-calm, .sol-stage .ra-calm { background: transparent; box-shadow: none; padding: 8px 12px; }
.panel .ra-calm .ra-vrow, .sol-stage .ra-calm .ra-vrow { background: rgba(255,255,255,.7); }

/* ---------- Lighter (20 Nov, Sergio: "demasiados azules, demasiadas repeticiones del shader") ----------
   The lilac field stays on the outer frame and the pricing block only. Every window and stage is a quiet
   white-grey field; the band behind "Better together" goes. */
.stage-field { --ds-field-1: #FFFFFF; --ds-field-2: #F1F1F4; --ds-field-3: #E6E6EB; --ds-field-4: #F6F6F8; --ds-field-5: #FFFFFF; opacity: .9; }
.band-field { display: none; }
.sol-stage, .p2-stage, .stage-card { background: #F7F7F9; }
.abar { background: rgba(255,255,255,.9); }
.panel .ra-calm .ra-vrow, .sol-stage .ra-calm .ra-vrow { background: #fff; }
.rb-hl u { box-shadow: none; }

/* ---------- Room to breathe (20 Nov, "muy apretado") ---------- */
/* the windows' bars: only the app and the person, nothing else to read */
.abar-p, .abar-search, .abar-new { display: none !important; }
.abar { height: 44px; padding: 0 16px; background: rgba(255,255,255,.92); }
/* the solution rows give the window more width and air */
.sol { grid-template-columns: 4fr 7fr; gap: 64px; padding: 72px 0; }
.sol-stage { min-height: 460px; padding: 76px 48px 44px; display: grid; align-content: center; }
.sol-stage .ra-calm, .sol-stage .rd-calm, .sol-stage .rb-calm { max-width: 520px; }
/* the stages on the app pages: larger, the same air */
.how-stage { height: 600px; }
.panel { padding: 76px 44px 40px; }

/* ---------- App pages: the hero is a window of the app ---------- */
.hero-app { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; font-size: var(--ds-t-15); color: var(--ds-ink-2); }
.hero-app-m { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-line-2), 0 14px 30px -18px rgba(26,26,40,.35); }
.hero--app .hc-in { padding-bottom: 0; }
.hero--app { padding-bottom: 0 !important; }
.hero-shot { position: relative; width: min(1040px, 100%); height: 560px; margin: 56px auto 0; border-radius: 24px 24px 0 0; overflow: hidden; background: #F7F7F9; box-shadow: 0 0 0 1px var(--ds-line-2), 0 40px 80px -40px rgba(26,26,40,.35); text-align: left; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.hero-shot > .abar { position: absolute; }
.hs-body { position: absolute; inset: 44px 0 0; display: grid; place-items: start center; padding: 48px 40px 0; }
.hs-body > * { width: 100%; }
.hs-body .ra-calm { max-width: 640px; background: transparent; box-shadow: none; padding: 0; }
.hs-body .ra-calm .ra-h { font-size: 34px; }
.hs-body .ra-lede { font-size: 22px; }
.hs-body .ra-vrow { background: #fff; max-width: 460px; }
.hs-body .rd-look2 { max-width: 720px; margin: 0 auto; grid-template-columns: 230px 1fr; gap: 40px; padding: 22px 34px 22px 22px; }
.hs-body .rd-look2 .rd-h { font-size: 32px; }
.hs-body .rd-look2 .rd-lines li { font-size: var(--ds-t-17); }
.hs-body .rb-calm { max-width: 640px; }
.hs-body .rb-hl { font-size: 38px; }
@media (max-width: 960px) {
  .sol { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .sol-stage { min-height: 0; padding: 64px 18px 24px; }
  .hero-shot { height: 460px; margin-top: 36px; }
  .hs-body { padding: 28px 18px 0; }
  .hs-body .rd-look2 { grid-template-columns: 1fr; }
  .hs-body .rd-look2 .rd-vthumb { max-width: 170px; }
  .hs-body .ra-calm .ra-h { font-size: 26px; }
  .hs-body .rb-hl { font-size: 28px; }
}
.how-stage { top: calc(50vh - 300px + var(--nav-h) / 2); }
.ra-h, .ra-calm .ra-h { font-family: var(--ds-serif); font-weight: 400; }
.ra-play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--ds-line-2); color: var(--ds-ink-2); flex: none; }
.hs-follow { position: absolute; z-index: 2; left: 50%; bottom: 64px; width: min(640px, calc(100% - 36px)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--ds-line-2), 0 18px 40px -22px rgba(26,26,40,.35); font-size: var(--ds-t-15); color: var(--ds-ink-4); }
.hs-follow-r { display: inline-flex; align-items: center; gap: 6px; }
.hero-shot { -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
.abar-av { margin-left: auto; }
.hs-stack { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.hs-second { opacity: .75; }
/* the box and the cards take turns, never both at once */
.rotor-box { transition: opacity .42s ease, transform .6s var(--ds-ease-out); }
.deck:not(.is-on) .dcard { transition-duration: .42s !important; }
@media (max-width: 640px) {
  .hero-shot { height: 400px; }
  .hs-body .rd-look2 { grid-template-columns: 104px 1fr; gap: 16px; padding: 14px; align-items: start; }
  .hs-body .rd-look2 .rd-vthumb { max-width: 104px; }
  .hs-body .rd-look2 .rd-ctl, .hs-body .rd-look2 .rd-pchip, .hs-body .rd-out--s { display: none !important; }
  .hs-body .rd-look2 .rd-h { font-size: 22px; }
  .hs-body .rd-look2 .rd-lines li { font-size: 13px; }
  .hs-body .ra-lede { font-size: 18px; }
  .hs-follow { bottom: 40px; }
  .hs-follow .ra-ghost { display: none; }
}

/* ======================================================================
   One rhythm for every UI illustration (20 Nov, "separación hegemónica")
   Line heights: titles 1.25, paragraphs 1.55, small labels 1.45.
   Space between stacked pieces, one scale: 4 · 8 · 12 · 16 · 24.
   small things (phones, laptop, deck cards) use 12; cards 16; windows 24.
   ====================================================================== */
:where(.dcard, .sol-stage, .voice-stage, .p2-stage, .ph, .lap, .hero-shot, .panel) :is(h3, h4, .ra-h, .ra-q, .rb-title, .rb-hl, .rd-h, .rd-t, .ap-t, .lap-h, .ph-hl, .vs-lines li, .ph-cap, .rd-cap) { line-height: 1.25; }
:where(.dcard, .sol-stage, .voice-stage, .p2-stage, .ph, .lap, .hero-shot, .panel) :is(p, li, .ra-a, .ra-lede, .ph-a, .ph-q, .rb-text, .rd-typed, .rd-lines li) { line-height: 1.55; }
:where(.dcard, .sol-stage, .voice-stage, .p2-stage, .ph, .lap, .hero-shot, .panel) :is(small, .rd-s, .rd-by, .rb-who span, .ap-who span, .ra-vrow span, .ph-from, .ph-note, .ph-sent, .lap-s, .rb-src, .rb-hi, .rb-today, .ra-k, .ra-words) { line-height: 1.45; }

/* cards and pages: 16 between pieces, 24 above actions */
.ra-calm, .rd-calm, .rb-post, .rb-home, .rb-modal, .rd-look-r { row-gap: 16px; }
.rb-post .rb-acts { margin-top: 8px; padding-top: 16px; }
.rd-lines { gap: 12px; }
.rd-look2 .rd-lines { margin: 4px 0 8px; }
.ra-vrow { gap: 16px; padding: 12px 16px 12px 12px; }
.ra-vrow > div { gap: 4px; }
.rb-head { gap: 12px; }
.rb-who { gap: 2px; }
.dcard > .app-tag { margin: 0 0 12px; }

/* the problem section's phone: more air, fewer cramped lines */
.ph-scene { gap: 16px; padding: 12px 18px 28px; }
.ph-bar { padding: 4px 0 12px; }
.ph-q { padding: 10px 14px; }
.ph-vid { gap: 12px; padding: 10px; }
.ph-vid > div { gap: 6px; }
.ph-post { gap: 10px; padding: 14px; }
.ph-post .rb-head { gap: 10px; }

/* the laptop: a little larger, its screen less crowded */

/* the patient's phone beside it: fewer, larger pieces */
.ph--duo { width: 150px; }
.ph--duo .ph-scene { gap: 10px; padding: 6px 10px 20px; }
.ph--duo .ph-bar { padding: 2px 0 8px; font-size: 10px; }
.ph--duo .ph-sent { font-size: 9.5px; line-height: 1.45; }
.ph--duo .ph-note { font-size: 9.5px; }

@media (max-width: 960px) {
  .ph-scene { gap: 12px; padding: 10px 14px 24px; }
}
.ph--duo .ph-tall { aspect-ratio: 9 / 12; }
.ph--duo .ph-scene { gap: 12px; }

/* ======================= Redesign of four pieces (20 Nov, evening) ======================= */
.mk-v video, .pf-v video, .ph-tall video { outline: 1px solid oklch(0 0 0 / .08); outline-offset: -1px; }
.mk-t, .pf-id h3, .rd-h { text-wrap: balance; }

/* ---------- Dose: what we'd make ---------- */
.rd-make.rd-calm { gap: 20px; }
.rd-make .rd-h { font-size: 24px; }
.mk { display: grid; grid-template-columns: 148px 1fr; gap: 28px; align-items: center; padding: 14px 28px 14px 14px; border-radius: 26px; background: var(--ds-surface); box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 1px 2px rgba(26,26,40,.04), 0 24px 48px -28px rgba(26,26,40,.3); text-align: left; }
.mk-v { position: relative; display: block; aspect-ratio: 9 / 15; border-radius: 14px; overflow: hidden; background: #DADCE2; }
.mk-v video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.mk-time { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(20,22,26,.6); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.mk-r { display: grid; gap: 12px; justify-items: start; }
.mk-k { display: inline-flex; align-items: center; gap: 7px; font-size: var(--ds-t-12); color: var(--ds-ink-3); }
.mk-k i { width: 7px; height: 7px; border-radius: 50%; background: var(--ds-ok-ink); box-shadow: 0 0 0 3px #E3F0EA; }
.mk-t { font-weight: 400; font-family: var(--ds-serif); font-size: 24px; line-height: 1.2; color: var(--ds-ink); max-width: 15ch; }
.mk-facts { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mk-facts li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: var(--ds-r-pill); background: var(--ds-surface-2); font-size: var(--ds-t-13); color: var(--ds-ink-2); line-height: 1; }
.mk-facts .ds-i { width: 14px; height: 14px; color: var(--ds-ink-3); }
.mk-facts .rb-av--xs { width: 18px; height: 18px; }
.mk-act { display: flex; align-items: center; gap: 16px; }
.mk-alt { font-size: var(--ds-t-14); color: var(--ds-ink-3); }

/* ---------- BiteSized: the physician's page ---------- */
.pf { display: grid; gap: 20px; padding: 26px 28px 28px; border-radius: 26px; background: var(--ds-surface); box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 1px 2px rgba(26,26,40,.04), 0 24px 48px -28px rgba(26,26,40,.3); text-align: left; }
.pf-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.pf-av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px oklch(0 0 0 / .08); }
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-id { display: grid; gap: 4px; }
.pf-id h3 { font-family: var(--ds-serif); font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--ds-ink); }
.pf-id p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--ds-t-14); color: var(--ds-ink-3); line-height: 1.45; }
.pf-id p > i { width: 3px; height: 3px; border-radius: 50%; background: var(--ds-ink-4); }
.pf-ver { display: inline-flex; align-items: center; gap: 5px; color: var(--ds-ink-2); }
.pf-ver svg { color: var(--ds-ink); }
.pf-follow { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--ds-r-pill); box-shadow: inset 0 0 0 1px var(--ds-line-2); font-size: var(--ds-t-14); color: var(--ds-ink); }
.pf-follow .ds-i { width: 13px; height: 13px; }
.pf-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--ds-line); }
.pf-tabs span { position: relative; padding: 0 0 12px; font-size: var(--ds-t-14); color: var(--ds-ink-3); }
.pf-tabs span.on { color: var(--ds-ink); }
.pf-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ds-ink); }
.pf-tabs em { font-style: normal; color: var(--ds-ink-4); margin-left: 4px; font-variant-numeric: tabular-nums; }
.pf-vids { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-vid { display: grid; gap: 8px; align-content: start; }
.pf-v { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #DADCE2; }
.pf-v video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.pf-v i { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(20,22,26,.6); color: #fff; font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; }
.pf-vid b { font-weight: 400; font-size: var(--ds-t-15); line-height: 1.35; color: var(--ds-ink); }
.pf-vid small { font-size: var(--ds-t-12); color: var(--ds-ink-4); }

/* ---------- Pricing: three rows ---------- */

/* ---------- Laptop: plain browser bar, quiet rail, room for the phone ---------- */
.ph--duo .ph-sent { font-size: 10px; }
@media (max-width: 960px) {
  .mk { grid-template-columns: 104px 1fr; gap: 16px; padding: 12px 16px 12px 12px; }
  .mk-t { font-size: 19px; }
  .pf { padding: 18px; }
  .pf-head { grid-template-columns: auto 1fr; }
  .pf-follow { display: none; }
  .pf-av { width: 52px; height: 52px; }
}
@media (max-width: 760px) {
  .ph--duo { width: 104px; right: -4px; bottom: 0; padding: 4px; border-radius: 22px; }
  .ph--duo .ph-body { border-radius: 18px; }
  .ph--duo .ph-status { height: 20px; font-size: 7px; padding: 2px 10px 0 12px; }
  .ph--duo .ph-island { width: 34px; height: 10px; margin-left: -17px; top: 4px; }
  .ph--duo .ph-scene { inset: 20px 0 0; gap: 6px; padding: 2px 7px 12px; }
  .ph--duo .ph-bar { font-size: 8px; padding: 0 0 5px; }
  .ph--duo .ph-sent, .ph--duo .ph-note { font-size: 7.5px; }
}
@media (max-width: 760px) {
  .ph--duo { display: none; }
}

/* ---------- The laptop shows the real Dose screen, scaled down whole ---------- */
/* the phone sits on the laptop's corner, clear of the screen's content */
.ph--duo { width: 148px; bottom: -34px; }
/* the home hero's stack has its own room: never over the line above it */
.hero--center .rotor { height: 320px; margin-top: 64px; }
.hero--center .lead { position: relative; z-index: 2; }
@media (max-width: 640px) { .hero--center .rotor { height: 340px; margin-top: 48px; } }

/* ---------- The approved video card, plain (20 Nov night) ---------- */

/* ---------- Nav on scroll: a narrow floating pill (20 Nov night) ---------- */
.framed .nav { transition: top .55s cubic-bezier(.22,1,.36,1), left .55s cubic-bezier(.22,1,.36,1), right .55s cubic-bezier(.22,1,.36,1), border-radius .55s cubic-bezier(.22,1,.36,1), background-color .35s ease, box-shadow .35s ease; }
.framed .nav.is-scrolled {
  top: calc(var(--frame) + 14px);
  left: max(calc(var(--frame) + 16px), calc(50% - 450px));
  right: max(calc(var(--frame) + 16px), calc(50% - 450px));
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px rgba(26,26,40,.07), 0 10px 30px -12px rgba(26,26,40,.22), 0 2px 6px -2px rgba(26,26,40,.08);
}
.framed .nav .nav-in { transition: height .55s cubic-bezier(.22,1,.36,1), padding .55s cubic-bezier(.22,1,.36,1), gap .55s cubic-bezier(.22,1,.36,1); }
.framed .nav.is-scrolled .nav-in { height: 56px; padding: 0 8px 0 20px; gap: 12px; max-width: none; }
.framed .nav.is-scrolled .nav-links a { padding: 7px 12px; font-size: 13.5px; }
.framed .nav.is-scrolled .nav-pill { height: 32px; margin-top: -16px; }
.framed .nav.is-scrolled .nav-act .ds-btn { height: 40px; padding: 0 16px; border-radius: 999px; }
.framed .nav.is-scrolled .brand span { font-size: 15px; }
.framed .nav.is-open { border-radius: 24px; }
@media (max-width: 960px) {
  .framed .nav.is-scrolled { left: calc(var(--frame) + 10px); right: calc(var(--frame) + 10px); top: calc(var(--frame) + 10px); }
  .framed .nav.is-scrolled .nav-in { padding: 0 6px 0 16px; height: 52px; }
}

/* ---------- Phone menu: a full panel with the three apps (20 Nov night) ---------- */
.nm-close, .nm-t2 { display: none; }
.nav.is-open .nm-open, .nav.is-open .nm-t1 { display: none; }
.nav.is-open .nm-close, .nav.is-open .nm-t2 { display: inline; }
@media (max-width: 860px) {
  html.menu-open { overflow: hidden; }
  .nav-drop { position: fixed; display: block !important; left: 0; right: 0; top: 0; height: 100dvh; max-height: none !important; padding: 0 !important; z-index: -1; background: rgba(250,250,252,.82); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; overflow-y: auto; border: 0 !important; }
  .nav.is-open .nav-drop { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
  .framed .nav.is-open { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-color: transparent !important; }
  .nd-in { display: grid; gap: 10px; padding: calc(var(--nav-h) + 28px) 20px 32px; min-height: 100%; align-content: start; }
  .nd-k { font-size: var(--ds-t-13); color: var(--ds-ink-3); margin: 0 4px 4px; }
  .nd-m { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ds-surface-2); }
  .nd-t { display: grid; gap: 2px; }
  .nd-t b { font-weight: 400; font-size: var(--ds-t-17); color: var(--ds-ink); line-height: 1.3; }
  .nd-t small { font-size: var(--ds-t-13); color: var(--ds-ink-3); line-height: 1.45; }
  .nd-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .nd-foot .ds-btn { justify-content: center; height: 52px; border-bottom: 0 !important; padding: 0; }
  .nd-foot p { grid-column: 1 / -1; text-align: center; font-size: var(--ds-t-13); color: var(--ds-ink-3); margin-top: 4px; }
  /* the pieces arrive one after another */
  .nd-in > * { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .5s cubic-bezier(.22,1,.36,1); }
  .nav.is-open .nd-in > * { opacity: 1; transform: none; }
  .nav.is-open .nd-in > :nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nd-in > :nth-child(3) { transition-delay: .08s; }
  .nav.is-open .nd-in > :nth-child(4) { transition-delay: .12s; }
  .nav.is-open .nd-in > :nth-child(5) { transition-delay: .16s; }
  .nav.is-open .nd-in > :nth-child(6) { transition-delay: .2s; }
}
@media (prefers-reduced-motion: reduce) { .nd-in > * { transition: none !important; } }
@media (max-width: 860px) { .nd-foot .ds-btn--primary { color: #fff !important; } .nd-foot .ds-btn:not(.ds-btn--primary) { color: var(--ds-ink) !important; } }

/* ======================= Selling it clearly (20 Nov night) ======================= */
/* the two doors */
.doors { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; margin-bottom: 28px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--ds-line-2), 0 8px 20px -14px rgba(26,26,40,.25); }
.hero .for-patient { display: none; }
.hero[data-door="patient"] .for-patient { display: inline; }
.hero[data-door="patient"] .for-doctor { display: none; }
.door-acts { margin-top: 28px; }
.door-acts > div { display: none; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero[data-door="doctor"] .door-acts .for-doctor, .hero[data-door="patient"] .door-acts .for-patient { display: flex; }

/* time back */
.once { padding: 96px 0; }

/* what you can count on */
.trust { padding: 40px 0 100px; }
.tr { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: 22px; background: #F7F7F9; }
.tr b { font-weight: 400; font-size: var(--ds-t-17); line-height: 1.3; color: var(--ds-ink); }
.tr p { font-size: var(--ds-t-14); line-height: 1.55; color: var(--ds-ink-3); }

/* talk to us */
.talk { padding: 8px 0 120px; }
.talk-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; max-width: 1040px; }
.talk-form { display: grid; gap: 16px; padding: 28px; border-radius: 26px; background: var(--ds-surface); box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 24px 48px -32px rgba(26,26,40,.3); }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.talk-form .fld { display: grid; gap: 6px; font-size: var(--ds-t-13); color: var(--ds-ink-2); }
.talk-form input, .talk-form select, .talk-form textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: #F7F7F9; box-shadow: inset 0 0 0 1px var(--ds-line-2); font: inherit; font-size: var(--ds-t-15); color: var(--ds-ink); outline: 0; transition: box-shadow .2s ease; }
.talk-form input:focus, .talk-form select:focus, .talk-form textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ds-ink); background: #fff; }
.talk-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.tf-err { font-size: var(--ds-t-14); color: #B4433D; }
.tf-act { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.tf-fine { font-size: var(--ds-t-13); color: var(--ds-ink-3); }
.talk-side { display: grid; gap: 14px; padding: 8px 4px; }
.talk-side b { font-weight: 400; font-family: var(--ds-serif); font-size: 24px; color: var(--ds-ink); }
.talk-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.talk-side li { display: flex; gap: 12px; align-items: baseline; font-size: var(--ds-t-15); line-height: 1.5; color: var(--ds-ink-2); }
.talk-side li i { font-style: normal; flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: #F7F7F9; box-shadow: inset 0 0 0 1px var(--ds-line-2); font-size: 12px; color: var(--ds-ink-3); }
.talk-side p { font-size: var(--ds-t-14); color: var(--ds-ink-3); }
.talk-side a { color: var(--ds-ink); }

@media (max-width: 960px) {
   .talk-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
   .tf-row { grid-template-columns: 1fr; }
   .talk-form { padding: 18px; }
}

/* ---------- Hear her say it ---------- */
.hear { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 22px; background: var(--ds-surface); box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 18px 40px -26px rgba(26,26,40,.35); max-width: 520px; }
.hear-v { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #DADCE2; cursor: pointer; }
.hear-v video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.hear-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ds-ink); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); cursor: pointer; transition: opacity .3s ease, transform .2s ease; }
.hear-play:active { transform: scale(.96); }
.hear-play .hp-play { margin-left: 3px; }
.hear-play .hp-pause { display: none; }
.is-playing .hear-play { opacity: 0; }
.is-playing:hover .hear-play { opacity: 1; }
.is-playing .hear-play .hp-play { display: none; }
.is-playing .hear-play .hp-pause { display: block; }
.hear-cap { position: absolute; left: 8px; right: 8px; bottom: 10px; padding: 3px 6px; border-radius: 6px; background: rgba(16,18,24,.62); color: #fff; font-size: 10.5px; line-height: 1.35; text-align: center; opacity: 0; transition: opacity .2s ease; }
.hear-cap.on { opacity: 1; }
.hear-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.35); }
.hear-bar > i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.hear-sample { margin-top: 6px; font-size: var(--ds-t-12) !important; color: var(--ds-ink-4) !important; }
@media (max-width: 560px) { .hear { grid-template-columns: 1fr; } }

/* ---------- Voice, one thing to look at: her video (20 Nov night) ---------- */
.hear2 { display: grid; gap: 14px; }
.hear2 .hear-v { aspect-ratio: 3 / 2; border-radius: 26px; box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 40px 80px -40px rgba(26,26,40,.45); }
.hear2 .hear-play { width: auto; height: 56px; margin: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0 22px 0 18px; border-radius: 999px; gap: 10px; display: inline-flex; align-items: center; font: inherit; font-size: var(--ds-t-15); }
.hear2 .hear-play:active { transform: translate(-50%, -50%) scale(.96); }
.hear2 .hear-play .hp-play { margin-left: 0; }
.hear2 .is-playing .hear-play span, .hear2 .is-playing .hear-play { opacity: 0; }
.hear2 .is-playing:hover .hear-play { opacity: 1; }
.hear2 .hear-cap { left: 50%; right: auto; bottom: 22px; transform: translateX(-50%); max-width: 80%; padding: 6px 12px; border-radius: 8px; font-size: var(--ds-t-15); }
.hear2-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 4px; }
.hear2-seal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 7px; border-radius: 999px; background: #EAF4EF; color: #23664E; font-size: var(--ds-t-14); }
.hear2 .hear-sample { font-size: var(--ds-t-12); color: var(--ds-ink-4); margin: 0; }
@media (max-width: 960px) { .hear2 .hear-cap { font-size: var(--ds-t-13); bottom: 14px; } }
.hear2 .hear-play { white-space: nowrap; }

/* ---------- Log in dropdown (20 Nov night) ---------- */
.ld { position: relative; }
.nav-login { gap: 6px; }
.ld-chev { width: 12px; height: 12px; color: var(--ds-ink-3); transition: transform .3s cubic-bezier(.2,0,0,1); }
.ld.is-open .ld-chev { transform: rotate(180deg); }
.ld-panel { position: absolute; z-index: 40; top: calc(100% + 12px); right: -64px; width: 320px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 4px 10px -2px rgba(26,26,40,.08), 0 28px 60px -18px rgba(26,26,40,.32);
  opacity: 0; visibility: hidden; pointer-events: none; transform-origin: 78% 0; transform: translateY(-6px) scale(.97); filter: blur(4px);
  transition: opacity .16s ease-in, transform .16s ease-in, filter .16s ease-in, visibility 0s .16s; }
.ld-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.ld.is-open .ld-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; filter: none; transition: opacity .22s cubic-bezier(.2,0,0,1), transform .32s cubic-bezier(.2,0,0,1), filter .22s cubic-bezier(.2,0,0,1), visibility 0s; }
.ld-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px 10px; font-size: var(--ds-t-12); color: var(--ds-ink-3); }
.ld-max { width: 30px; height: 30px; border: 0; border-radius: 9px; display: grid; place-items: center; background: transparent; color: var(--ds-ink-3); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.ld-max:hover, .ld-max:focus-visible { background: var(--ds-surface-2); color: var(--ds-ink); outline: 0; }
.ld-max .ds-i { width: 14px; height: 14px; }
.ld-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 14px; text-decoration: none; color: inherit; outline: 0; transition: background-color .15s ease; }
.ld-row:hover, .ld-row:focus-visible { background: #F5F5F7; }
.ld-m { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--ds-surface-2); }
.ld-t { display: grid; gap: 1px; line-height: 1.3; }
.ld-t b { font-weight: 400; font-size: var(--ds-t-14); color: var(--ds-ink); }
.ld-t small { font-size: var(--ds-t-12); color: var(--ds-ink-3); }
.ld-go { width: 13px; height: 13px; color: var(--ds-ink-4); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .2s cubic-bezier(.2,0,0,1); }
.ld-row:hover .ld-go, .ld-row:focus-visible .ld-go { opacity: 1; transform: none; color: var(--ds-ink-2); }
.ld-foot { margin: 6px 0 0; padding: 10px 10px 4px; border-top: 1px solid var(--ds-line); font-size: var(--ds-t-12); color: var(--ds-ink-3); }
.ld-foot a { color: var(--ds-ink); }
/* the rows arrive one after another */
.ld-panel > .ld-row { opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .3s cubic-bezier(.2,0,0,1), background-color .15s ease; }
.ld.is-open .ld-panel > .ld-row { opacity: 1; transform: none; }
.ld.is-open .ld-panel > .ld-row:nth-of-type(2) { transition-delay: .03s, .03s, 0s; }
.ld.is-open .ld-panel > .ld-row:nth-of-type(3) { transition-delay: .06s, .06s, 0s; }
.ld.is-open .ld-panel > .ld-row:nth-of-type(4) { transition-delay: .09s, .09s, 0s; }
@media (prefers-reduced-motion: reduce) { .ld-panel, .ld-panel > .ld-row { transition: none !important; filter: none; } }

/* ---------- Phone menu v2: grouped rows, buttons held at the bottom (20 Nov night) ---------- */
@media (max-width: 860px) {
  .nav-drop .nd-in { gap: 0; padding: calc(var(--nav-h) + 20px) 16px 140px; }
  .nav-drop .nd-k { display: block; margin: 20px 12px 8px; font-size: var(--ds-t-12); color: var(--ds-ink-3); }
  .nav-drop .nd-k:first-child { margin-top: 4px; }
  .nav-drop .nd-group { display: grid; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 12px 30px -22px rgba(26,26,40,.35); overflow: hidden; }
  .nav-drop .nd-row { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 0 !important; text-decoration: none; color: inherit; font-size: inherit; }
  .nav-drop .nd-row--plain { grid-template-columns: 1fr auto; padding: 16px 18px; }
  .nav-drop .nd-row + .nd-row::before { content: ""; position: absolute; top: 0; right: 0; left: 72px; height: 1px; background: var(--ds-line); }
  .nav-drop .nd-row--plain + .nd-row--plain::before { left: 18px; }
  .nav-drop .nd-row:active { background: #F5F5F7; }
  .nav-drop .nd-m { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ds-surface-2); }
  .nav-drop .nd-t { display: grid; gap: 2px; }
  .nav-drop .nd-t b { font-weight: 400; font-size: var(--ds-t-16, 16px); line-height: 1.3; color: var(--ds-ink); }
  .nav-drop .nd-t small { font-size: var(--ds-t-13); line-height: 1.4; color: var(--ds-ink-3); }
  .nav-drop .nd-row > .ds-i { width: 14px; height: 14px; color: var(--ds-ink-4); }
  .nav-drop .nd-foot { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(250,250,252,.98) 70%, rgba(250,250,252,0)); }
  .nav-drop .nd-foot .ds-btn { justify-content: center; height: 52px; padding: 0; border: 0 !important; }
  .nav-drop .nd-foot .ds-btn--primary { color: #fff !important; }
  .nav-drop .nd-foot .ds-btn:not(.ds-btn--primary) { color: var(--ds-ink) !important; background: #fff; box-shadow: inset 0 0 0 1px var(--ds-line-2); }
  /* arrival: the groups one after another, the buttons rise */
  .nav-drop .nd-in > * { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .45s cubic-bezier(.2,0,0,1); }
  .nav.is-open .nav-drop .nd-in > * { opacity: 1; transform: none; }
  .nav.is-open .nav-drop .nd-in > :nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nav-drop .nd-in > :nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav-drop .nd-in > :nth-child(4) { transition-delay: .14s; }
  .nav-drop .nd-foot { opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .45s cubic-bezier(.2,0,0,1); }
  .nav.is-open .nav-drop .nd-foot { opacity: 1; transform: none; transition-delay: .12s; }
}
/* the voice button never breaks its words */
.hear2 .hear-play, .hear2 .hear-play span { white-space: nowrap; width: max-content; }
/* the windows' bars keep inside the rounded corners (a frosted layer is not clipped by its parent's radius) */
.abar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #fff; border-radius: inherit; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.sol-stage > .abar, .hero-shot > .abar { border-top-left-radius: 24px; border-top-right-radius: 24px; }
.panel > .abar { border-top-left-radius: 24px; border-top-right-radius: 24px; }
.sol-stage, .hero-shot, .stage-card, .p2-stage { isolation: isolate; }

/* ---------- The three apps under the hero: one rail, a gliding plate (20 Nov night) ---------- */
.ha-rail { position: relative; display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(26,26,40,.07), 0 10px 30px -18px rgba(26,26,40,.3); }
.ha-plate { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 6px 16px -8px rgba(26,26,40,.3); overflow: hidden; transition: transform .6s cubic-bezier(.22,1,.36,1), width .6s cubic-bezier(.22,1,.36,1); }
.ha-plate > i { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--ds-ink); transform: scaleX(0); transform-origin: 0 50%; opacity: .85; }
.ha-plate.run > i { animation: ha-time 3.4s linear forwards; }
@keyframes ha-time { to { transform: scaleX(1); } }
.ha-rail .hca { position: relative; z-index: 1; display: inline-flex !important; align-items: center; gap: 9px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: none !important; box-shadow: none !important; backdrop-filter: none !important; font-size: var(--ds-t-15); color: var(--ds-ink-3); text-decoration: none; white-space: nowrap; transition: color .35s ease; overflow: visible; }
.ha-rail .hca:hover { color: var(--ds-ink); }
.ha-rail .hca.is-on { color: var(--ds-ink); }
.ha-rail .hca .bsm { opacity: .55; transition: opacity .35s ease; }
.ha-rail .hca.is-on .bsm, .ha-rail .hca:hover .bsm { opacity: 1; }
.ha-line { position: relative; height: 22px; width: min(520px, 100%); text-align: center; }
.ha-line span { position: absolute; inset: 0; font-size: var(--ds-t-14); color: var(--ds-ink-3); opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.ha-line[data-on="ask"] span[data-app="ask"], .ha-line[data-on="dose"] span[data-app="dose"], .ha-line[data-on="bitesized"] span[data-app="bitesized"] { opacity: 1; transform: none; }
.hero[data-door="doctor"] .ha-rail .hca[data-app="ask"] { opacity: 1; }
@media (max-width: 560px) {
  .ha-rail .hca { height: 42px; padding: 0 12px 0 10px; gap: 7px; font-size: var(--ds-t-13); }
  .ha-rail .hca[data-app="ask"] > span:last-child { font-size: 0; }
  .ha-rail .hca[data-app="ask"] > span:last-child::after { content: "Ask"; font-size: var(--ds-t-13); }
  .ha-line { height: 40px; }
  .ha-line span { font-size: var(--ds-t-13); }
}
@media (prefers-reduced-motion: reduce) { .ha-plate, .ha-line span { transition: none; } .ha-plate.run > i { animation: none; } }

/* ---------- Hero: one thing per door (20 Nov night) ---------- */
.door-stage { width: min(760px, 100%); margin: 40px auto 0; }
.door-stage > div { display: none !important; }
.hero[data-door="doctor"] .door-stage > .for-doctor, .hero[data-door="patient"] .door-stage > .for-patient { display: block !important; animation: door-in .5s cubic-bezier(.2,0,0,1) both; }
@keyframes door-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.door-stage .hear2 { text-align: left; }
.door-stage .hear2 .hear-v { aspect-ratio: 16 / 9; }
.rotor--box { height: auto !important; margin: 0 !important; }
.rotor--box .rotor-box { position: relative !important; top: auto !important; transform: none !important; opacity: 1 !important; pointer-events: auto !important; }
.door-acts { margin-top: 28px; }
/* the app bar opens the apps section */
.sol-index { margin: 28px 0 0; justify-items: start !important; }
.sol-index .ha-rail .hat { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; font-size: var(--ds-t-15); color: var(--ds-ink-3); text-decoration: none; white-space: nowrap; transition: color .35s ease; }
.sol-index .ha-rail .hat:hover, .sol-index .ha-rail .hat.is-on { color: var(--ds-ink); }
.sol-index .ha-rail .hat .bsm { opacity: .55; transition: opacity .35s ease; }
.sol-index .ha-rail .hat.is-on .bsm, .sol-index .ha-rail .hat:hover .bsm { opacity: 1; }
.sol-index .ha-plate > i { display: none; }
.solution .sol-index { position: sticky; top: calc(var(--frame) + 84px); z-index: 5; }
@media (max-width: 560px) {
  .door-stage { margin-top: 28px; }
  .sol-index .ha-rail .hat { height: 42px; padding: 0 12px 0 10px; gap: 7px; font-size: var(--ds-t-13); }
  .sol-index .ha-rail .hat[data-app="ask"] > span:last-child { font-size: 0; }
  .sol-index .ha-rail .hat[data-app="ask"] > span:last-child::after { content: "Ask"; font-size: var(--ds-t-13); }
}
.door-acts { margin-top: 24px; }
.door-stage { margin-top: 36px; }
.hero[data-door="patient"] .door-acts { margin-top: 16px; }
/* "Ask" sits in the middle of its pill wherever it appears (a span in the follow-up box, a button in the question box) */
.ra-ask { display: inline-flex; align-items: center; justify-content: center; line-height: 1; height: 40px; padding: 0 18px; }
.hs-follow .ra-ghost { display: inline-flex; align-items: center; line-height: 1; }

/* ============================================================================================
   SYSTEM (20 Nov 2026, the audit). Everything above is refined here into one set of rules:
   - three radii: 12 small things, 20 cards, 28 windows; two shadows: resting, floating;
   - colour roles: lilac = the brand and what is active; green = approved by the physician, nothing else;
     red = urgent, nothing else; black = the main action;
   - shaders: strong only on the outer frame and the pricing block; windows are flat;
   - rhythm: 120 between sections (80 on phones).
   ============================================================================================ */
:root {
  --r-s: 12px; --r-c: 20px; --r-w: 28px;
  --sh-rest: 0 0 0 1px rgba(26,26,40,.06), 0 1px 2px rgba(26,26,40,.04), 0 14px 32px -20px rgba(26,26,40,.28);
  --sh-float: 0 0 0 1px rgba(26,26,40,.06), 0 4px 10px -2px rgba(26,26,40,.06), 0 36px 72px -30px rgba(26,26,40,.4);
  --dp-accent: #1A1A1A; --dp-accent-soft: #F1F1F3;
  --dp-ok: #2F7D61; --dp-ok-ink: #23664E; --dp-ok-soft: #EAF4EF;
  --dp-urgent: #B4433D; --dp-urgent-soft: #FBECEB;
}

/* windows */
.sol-stage, .stage-card, .p2-stage, .hear2 .hear-v { border-radius: var(--r-w); }
.hero-shot { border-radius: var(--r-w) var(--r-w) 0 0; }
.sol-stage > .abar, .hero-shot > .abar, .panel > .abar { border-top-left-radius: var(--r-w); border-top-right-radius: var(--r-w); }
/* cards */
.dcard, .mk, .pf, .rd-look2, .rb-postwrap, .rb-modal, .rb-feedwin, .ra-page, .tr, .talk-form, .ld-panel, .choose-in, .ra-box, .rotor-box, .hs-follow, .nav-drop .nd-group, .rd-box, .ph-post { border-radius: var(--r-c); }
/* small things */
.mk-v, .pf-v, .ra-vsq, .ra-bigv, .rd-vthumb, .ph-v, .ph-tall, .ld-row, .ld-m, .nd-m, .ch-mark, .ra-vrow, .talk-form input, .talk-form select, .talk-form textarea { border-radius: var(--r-s); }
.ch { border-radius: 16px; }
/* two shadows */
.dcard, .mk, .pf, .rd-look2, .rb-postwrap, .rb-feedwin, .talk-form, .nav-drop .nd-group, .ra-box, .hs-follow { box-shadow: var(--sh-rest); }
.ld-panel, .choose-in, .hero-shot, .hear2 .hear-v, .rb-modal { box-shadow: var(--sh-float); }

/* colour roles */
.mk-k i { background: var(--dp-accent); box-shadow: 0 0 0 3px var(--dp-accent-soft); }
.problem2 .p2::after, .hear-bar > i { background: var(--dp-accent); }
 .hear2-seal, .rd-ok { color: var(--dp-ok-ink); }
 .hear2-seal { background: var(--dp-ok-soft); }
.rb-pill { background: var(--dp-urgent-soft); color: var(--dp-urgent); }

/* shaders: flat windows, a hero field you can see */
.sol-stage > .stage-field, .stage-card > .stage-field, .p2-stage > .stage-field { display: none; }
.sol-stage, .stage-card, .p2-stage { background: #F6F6F8; box-shadow: inset 0 0 0 1px rgba(26,26,40,.05); }
.ask-field { --ds-field-1: #FFFFFF; --ds-field-2: #E6E6EC; --ds-field-3: #D3D3DC; --ds-field-4: #EEEEF2; --ds-field-5: #FFFFFF; }

/* rhythm */
.problem2, .solution, .once, .trust, .price-cta { padding-top: 120px; padding-bottom: 0; }
.faq { margin-top: 120px; }
.problem2 { border-top: 0; }
@media (max-width: 760px) {
  .problem2, .solution, .once, .trust, .price-cta { padding-top: 80px; }
  .faq { margin-top: 80px; }
}

/* contrast: the smallest greys read at 4.5 to 1 or better on white */
.hear-sample, .tf-fine, .rb-who span, .ra-k, .mk-time, .ph-from, .pf-vid small { color: #5F6168 !important; }

/* ---------- The hero tone follows the door ---------- */
.hero[data-door="doctor"] .ask-field { --ds-field-1: #FFFFFF; --ds-field-2: #E8E8EC; --ds-field-3: #D4D4DA; --ds-field-4: #F0F0F3; --ds-field-5: #FFFFFF; }
.hero[data-door="patient"] .ask-field { --ds-field-1: #FFFFFF; --ds-field-2: #E8E8EC; --ds-field-3: #D4D4DA; --ds-field-4: #F0F0F3; --ds-field-5: #FFFFFF; }
.ask-field { transition: opacity .26s ease; }
.ask-field.is-fading { opacity: .25; }

/* ---------- The opening: the symbol, once per visit ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: #FBFBFC; }
.intro-on .intro { display: grid; }
.intro-out .intro { opacity: 0; transition: opacity .6s ease; }
.intro-mark.dpm .dpm-fill { animation: in-fill 1.7s cubic-bezier(.65,0,.35,1) both; }
.intro-mark.dpm .dpm-line { animation: in-line 1.7s linear both; }
.intro-mark.dpm .dpm-glow, .intro-mark.dpm .dpm-spark { animation: in-run 1.7s cubic-bezier(.45,.05,.35,1) both; }
.intro-mark.dpm .dpm-2 { animation-delay: .12s !important; }
.intro-out .intro-mark { transform: scale(.94); transition: transform .6s cubic-bezier(.2,0,0,1); }
@keyframes in-fill { 0%, 62% { opacity: 0; } 85%, 100% { opacity: 1; } }
@keyframes in-line { 0% { opacity: 0; } 10%, 70% { opacity: .5; } 88%, 100% { opacity: 0; } }
@keyframes in-run { 0%, 6% { stroke-dashoffset: 100; opacity: 0; } 12% { opacity: 1; } 66% { opacity: 1; } 78%, 100% { stroke-dashoffset: -2; opacity: 0; } }

/* ---------- Dose told in one device: the laptop stays, its screen changes, the phone comes at the end ---------- */
.how-stage--device { height: auto; }
.how-stage--device .dev-lid { padding: 12px 12px 16px; border-radius: 22px 22px 8px 8px; background: #1B1C1F; box-shadow: inset 0 0 0 1.5px #3A3B40, var(--sh-float); }
.how-stage--device .dev-lid .stage-card { height: 500px; border-radius: 10px; box-shadow: none; background: #F6F6F8; }
.how-stage--device .dev-lid .stage-card .abar { border-radius: 10px 10px 0 0 !important; }
.how-stage--device .dev-base { position: relative; height: 14px; margin: 0 -7%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#E8E8EC, #C8C8CE); box-shadow: 0 18px 30px -16px rgba(26,26,40,.45); }
.how-stage--device .dev-base i { position: absolute; top: 0; left: 50%; width: 110px; height: 6px; margin-left: -55px; border-radius: 0 0 7px 7px; background: #B8B8BE; }
.how-stage--device .stage-steps { margin-top: 26px; }
.dev-phone { position: absolute !important; z-index: 4; right: -36px; bottom: 44px; width: 150px; opacity: 0; transform: translate(40px, 24px) rotate(2deg); transition: opacity .5s ease, transform .8s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.how-stage--device[data-step="3"] .dev-phone { opacity: 1; transform: none; }
.how-stage--device { position: sticky; }
@media (max-width: 1080px) { .dev-phone, .dev-base, .how-stage--device .dev-lid { display: contents; } }

/* ---------- Cinema: her video, large, with sound and three languages ---------- */
.hear2 .hear-v video { pointer-events: auto; }
.cine { padding: 0; border: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; }
.cine::backdrop { background: rgba(14,15,20,.0); backdrop-filter: blur(0); transition: background-color .5s ease, backdrop-filter .5s ease; }
.cine.is-open::backdrop { background: rgba(14,15,20,.62); backdrop-filter: blur(10px); }
.cine-in { position: absolute; left: 50%; top: 50%; width: min(1080px, calc(100vw - 48px)); translate: -50% -50%; display: grid; gap: 14px; transition: transform .55s cubic-bezier(.22,1,.36,1); transform-origin: 50% 50%; }
.cine-cap { position: absolute; left: 50%; bottom: 7%; translate: -50% 0; max-width: 78%; padding: 8px 16px; border-radius: 10px; background: rgba(12,13,18,.66); color: #fff; font-size: clamp(16px, 1.7vw, 24px); line-height: 1.35; text-align: center; opacity: 0; transition: opacity .2s ease; }
.cine-cap.on { opacity: 1; }
.cine-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); }
.cine-bar > i { display: block; height: 100%; background: var(--dp-accent); transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 640px) { .cine-in { width: calc(100vw - 24px); } }
.how-stage--device .panel[data-panel="3"] { transition: padding .6s cubic-bezier(.22,1,.36,1), opacity .5s ease, transform .5s ease; }
.how-stage--device[data-step="3"] .panel[data-panel="3"] { padding-right: 150px; }
.how-stage--device[data-step="3"] .panel[data-panel="3"] .rd-look2 { grid-template-columns: 150px 1fr; gap: 22px; }
.how-stage--device[data-step="3"] .panel[data-panel="3"] .rd-ok--l { font-size: 26px; }


/* ======================================================================================
   BLACK AND WHITE, like the apps (20 Nov night, Sergio: "debería ser más blanco y negro
   porque las apps son así"). The outer frame and every field are white and grey, the main
   action is black, and only two colours mean something: green = approved by the physician,
   red = urgent.
   ====================================================================================== */
:root { --ds-field-1: #FFFFFF; --ds-field-2: #E9E9EC; --ds-field-3: #D6D6DC; --ds-field-4: #F1F1F3; --ds-field-5: #FFFFFF; }
.cine-bar > i { background: #fff; }
/* the approval seal, filled: the one colour that carries the message */
 .hear2-seal { background: var(--dp-ok) !important; color: #fff !important; }
 .hear2-seal .ok-dot circle { fill: #fff; }
 .hear2-seal .ok-dot path { stroke: var(--dp-ok); }

/* ---------- The frame takes turns with the page (20 Nov night) ----------
   Where the page itself carries the shader (a hero, the pricing block), the frame around it is white;
   where the page is white, the frame shows the shader. It changes as that section reaches the middle of the screen. */
body.framed { background: #FFFFFF; }
.site-field { transition: opacity .7s cubic-bezier(.22,1,.36,1); }
html.frame-plain .site-field { opacity: 0 !important; }

/* ---------- The Doctorpedia symbol is outlined by default (20 Nov night) ----------
   It rests as two drawn circles; the living one only lets a small light run round its line now and then. */
.brand-mark { fill: none !important; color: var(--ds-ink); }
.dpm .dpm-fill { display: none !important; }
.dpm .dpm-line { opacity: 1 !important; animation: none !important; stroke: var(--ds-ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.dpm .dpm-glow, .dpm .dpm-spark { vector-effect: non-scaling-stroke; }
.dpm .dpm-glow { stroke-width: 5px; }
.dpm .dpm-spark { stroke-width: 1.8px; }
.intro-mark.dpm .dpm-line { stroke-width: 2px; }
.intro-mark.dpm .dpm-glow { stroke-width: 9px; }
.intro-mark.dpm .dpm-spark { stroke-width: 2.6px; }

/* ---------- One black thing in the hero: the main action (20 Nov night) ----------
   The doors are a quiet choice (white plate on soft grey); the second action is a link. */
.doors { background: rgba(26,26,40,.05); box-shadow: inset 0 0 0 1px rgba(26,26,40,.04); padding: 3px; margin-bottom: 30px; backdrop-filter: none; }
.door-acts .for-doctor { align-items: center; gap: 22px; }
.door-acts .for-doctor .ds-btn:not(.ds-btn--primary):not(.hero-early) { background: none !important; box-shadow: none !important; height: auto; padding: 4px 0; border-radius: 0; color: var(--ds-ink-2); border-bottom: 1px solid var(--ds-line-3); }
.door-acts .for-doctor .ds-btn:not(.ds-btn--primary):not(.hero-early):hover { color: var(--ds-ink); border-bottom-color: var(--ds-ink); }

/* ======================= App panels in the nav (20 Nov night, a trial) =======================
   One box that changes size and place as the pointer moves between Ask, Dose and BiteSized;
   its content slides in from the side it comes from. The page softens behind it. */
.mega-veil { position: fixed; inset: 0; z-index: 28; background: rgba(250,250,252,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.mega-open .mega-veil { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.mega { position: fixed; z-index: 31; top: 0; left: 0; pointer-events: none; }
.mega-box { position: absolute; top: 0; left: 0; width: 640px; height: 340px; border-radius: var(--r-c); background: #fff; box-shadow: var(--sh-float); overflow: hidden;
  opacity: 0; transform: translateY(-6px) scale(.98); filter: blur(4px); transform-origin: 50% 0;
  transition: opacity .18s ease-in, transform .18s ease-in, filter .18s ease-in, left .42s cubic-bezier(.22,1,.36,1), width .42s cubic-bezier(.22,1,.36,1), height .42s cubic-bezier(.22,1,.36,1); }
.mega-open .mega { pointer-events: auto; }
.mega-open .mega-box { opacity: 1; transform: none; filter: none; transition: opacity .24s cubic-bezier(.2,0,0,1), transform .32s cubic-bezier(.2,0,0,1), filter .24s cubic-bezier(.2,0,0,1), left .42s cubic-bezier(.22,1,.36,1), width .42s cubic-bezier(.22,1,.36,1), height .42s cubic-bezier(.22,1,.36,1); }
.mega-box.no-ease { transition: none !important; }
.mega-p { position: absolute; top: 0; left: 0; display: grid; grid-template-columns: 330px 250px; gap: 28px; padding: 22px 24px 24px 18px; opacity: 0; visibility: hidden; transform: translateX(var(--from, 24px)); transition: opacity .22s ease, transform .42s cubic-bezier(.22,1,.36,1), visibility 0s .22s; }
.mega-p.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease .06s, transform .42s cubic-bezier(.22,1,.36,1), visibility 0s; }
.nav-links a[data-mega].is-mega { color: var(--ds-ink); }
@media (max-width: 860px), (hover: none) { .mega, .mega-veil { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mega-box, .mega-p { transition: none !important; } }
.mega-p { grid-template-columns: 320px 270px; }

/* ---------- App panels, simplified (20 Nov night: "demasiado texto, que respire") ----------
   A moving picture, the app's name, three short words, one button. */
.mega-p { grid-template-columns: 220px 200px; gap: 28px; padding: 14px 28px 14px 14px; align-items: center; }
.mg-vis { position: relative; display: block; height: 220px; border-radius: 16px; overflow: hidden; background: #F3F3F5; text-decoration: none; }
.mg-vis video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.mg-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 12px; color: var(--ds-ink); }
.mg-tag--ok { background: var(--dp-ok); color: #fff; padding-left: 6px; }
.mg-post { display: grid; align-content: center; gap: 12px; height: 100%; padding: 20px; }
.mg-post .rb-pill { justify-self: start; font-size: 11.5px; padding: 4px 10px; }
.mg-post b { font-weight: 400; font-family: var(--ds-serif); font-size: 21px; line-height: 1.2; color: var(--ds-ink); }
.mg-by { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5F6168; }
.mg-by img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.mg-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mg-feats li { display: flex; align-items: center; gap: 10px; font-size: var(--ds-t-15); color: var(--ds-ink-2); }
.mg-feats .ds-i { width: 16px; height: 16px; color: var(--ds-ink-3); }
.mg-cta { margin-top: 4px; }

/* ---------- Footer newsletter ---------- */
.nl { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 32px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--ds-line); }
.nl-f { position: relative; display: flex; gap: 8px; width: min(440px, 100%); padding: 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--ds-line-2); }
.nl-f input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; background: transparent; font: inherit; font-size: var(--ds-t-15); color: var(--ds-ink); outline: 0; }
.nl-f:focus-within { box-shadow: inset 0 0 0 1.5px var(--ds-ink); }
.nl-f .ds-btn { height: 44px; border-radius: 999px; padding: 0 20px; }
.nl-msg { position: absolute; left: 20px; top: calc(100% + 8px); margin: 0; font-size: var(--ds-t-13); color: #5F6168; }
.nl-msg.ok { color: var(--dp-ok-ink); }
@media (max-width: 640px) { .nl { padding: 24px 0 32px; } }

/* ---------- Newsletter card (20 Nov night: "más animado, más cool") ---------- */
.nl { position: relative; display: block; padding: 0; margin: 8px 0 56px; border: 0; border-radius: var(--r-w); overflow: hidden; isolation: isolate; background: #F3F3F5; box-shadow: inset 0 0 0 1px rgba(26,26,40,.05); }
.nl-in { display: grid; grid-template-columns: auto 1fr minmax(320px, 440px); align-items: center; gap: 28px; padding: 40px 44px; }
/* the field opens from the middle */
.nl-f { width: 100%; background: #fff; box-shadow: 0 0 0 1px rgba(26,26,40,.08), 0 14px 30px -18px rgba(26,26,40,.3); clip-path: inset(0 30% 0 30% round 999px); opacity: 0; transition: clip-path .9s cubic-bezier(.22,1,.36,1) .2s, opacity .4s ease .2s, box-shadow .2s ease; }
.nl.is-in .nl-f { clip-path: inset(0 0 0 0 round 999px); opacity: 1; }
.nl-f:focus-within { box-shadow: 0 0 0 1.5px var(--ds-ink), 0 14px 30px -18px rgba(26,26,40,.3); }
.nl-go { position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; transition: width .5s cubic-bezier(.22,1,.36,1), padding .5s cubic-bezier(.22,1,.36,1), background-color .4s ease; }
.nl-arrow { transition: transform .25s cubic-bezier(.2,0,0,1); }
.nl-go:hover .nl-arrow { transform: translateX(3px); }
.nl-check { display: none; }
.nl-done { position: absolute; left: 22px; top: 50%; transform: translateY(-50%) translateY(6px); font-size: var(--ds-t-15); color: var(--ds-ink); opacity: 0; pointer-events: none; transition: opacity .4s ease .25s, transform .5s cubic-bezier(.22,1,.36,1) .25s; }
/* signed up: the field gives way to the words, the button becomes a green check */
.nl-f.is-done input { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.nl-f.is-done .nl-done { opacity: 1; transform: translateY(-50%); }
.nl-f.is-done .nl-go { width: 44px; padding: 0 !important; justify-content: center; background: var(--dp-ok) !important; margin-left: auto; }
.nl-f.is-done .nl-go-t, .nl-f.is-done .nl-arrow { display: none; }
.nl-f.is-done .nl-check { display: block; animation: nl-pop .5s cubic-bezier(.34,1.56,.64,1) both; }
.nl-f.is-done .nl-check path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: nl-draw .45s ease .15s forwards; }
@keyframes nl-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nl-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .nl-in { grid-template-columns: auto 1fr; padding: 28px 22px; gap: 18px; }
  .nl-f { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .nl-f { transition: none !important; clip-path: none !important; opacity: 1 !important; transform: none !important; } }

/* ---------- Closing with a picture, not the shader (20 Nov night) ----------
   A patient at home watching her physician: the photograph is still, only her phone's screen plays the real video.
   The picture keeps its own proportions so the video stays on the glass; the screen's place was measured on the
   source (2752 x 1536): centre 1201, 799; 248 x 514; sides leaning about 4.2 degrees. */
.closing-card--pic { min-height: 520px; place-items: center start; background: #fff; box-shadow: inset 0 0 0 1px rgba(26,26,40,.06); }
.closing-card--pic::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #fff 0%, #fff 30%, rgba(255,255,255,.88) 38%, rgba(255,255,255,0) 52%); }
.cl-pic { position: absolute; z-index: 0; top: 0; bottom: 0; right: 0; height: 100%; aspect-ratio: 2752 / 1536; transform-origin: 60% 50%; }
.cl-pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 860px) {
  .closing-card--pic { display: grid; place-items: stretch; min-height: 0; }
  .closing-card--pic::before { display: none; }
  .cl-pic { position: relative; inset: auto; width: 100%; height: auto; transform: none !important; }
}

/* ---------- Pricing block, lighter (20 Nov night: "apretado, mucho texto") ---------- */

/* ---------- The patient door's question box: centred and larger ---------- */
.door-stage .rotor--box { width: 100% !important; max-width: 760px; margin: 0 auto !important; }
.door-stage .rotor--box .rotor-box { width: 100%; padding: 22px 22px 16px; border-radius: 26px; box-shadow: var(--sh-float); }
.door-stage .rotor--box .ra-box-q { font-size: 21px; min-height: 92px; padding: 6px 8px; }
.door-stage .rotor--box .ra-ask { height: 46px; padding: 0 22px; font-size: var(--ds-t-15); }
.door-stage .rotor--box .ra-ghost { height: 38px; font-size: var(--ds-t-14); }
.door-stage .rotor--box > .rotor-box > .app-tag { margin: 0 0 6px 6px; }
.hero[data-door="patient"] .door-acts { margin: 14px 0 0; order: 2; }
.hero[data-door="patient"] .hc-in { display: flex; flex-direction: column; align-items: center; }
.hero[data-door="patient"] .door-stage { order: 1; margin-top: 36px; }
.hero[data-door="patient"] .door-acts { order: 3; }

/* ======================================================================================
   PAPER for patients (20 Nov night: "cuando vayas a paciente, utiliza ese tono paper de las apps").
   The design system's paper tone sets the page, surfaces, ink and field; here the site's own
   fixed whites and greys follow it, so the two doors look different at a glance.
   ====================================================================================== */
html { transition: background-color .5s ease; }
body.framed, .frame, .nav, .foot { transition: background-color .5s ease, color .5s ease; }
html[data-tone-light="paper"] body.framed { background: var(--ds-page); }
html[data-tone-light="paper"] .framed .nav.is-scrolled { background: rgba(251,247,239,.78); }
html[data-tone-light="paper"] .hero[data-door="patient"] .ask-field,
html[data-tone-light="paper"] .ask-field { --ds-field-1: #FBF8F2; --ds-field-2: #EFE6D8; --ds-field-3: #DFD2BF; --ds-field-4: #F4EEE4; --ds-field-5: #FBF8F2; }
html[data-tone-light="paper"] :is(.sol-stage, .stage-card, .p2-stage, .tr, .nl, .mg-vis, .hs-follow, .door-stage .rotor-box) { background-color: var(--ds-surface-2); }
html[data-tone-light="paper"] :is(.dcard, .mk, .pf, .rd-look2, .rb-postwrap, .rb-feedwin, .talk-form, .ld-panel, .mega-box, .choose-in, .ra-box, .rotor-box, .nl-f, .closing-card--pic, .doors, .abar, .ph-body, .nav-drop .nd-group, .ch) { background-color: var(--ds-surface); }
html[data-tone-light="paper"] .closing-card--pic::before { background: linear-gradient(90deg, var(--ds-surface) 0%, var(--ds-surface) 30%, rgba(251,247,239,.88) 38%, rgba(251,247,239,0) 52%); }
html[data-tone-light="paper"] :is(.hear-sample, .tf-fine, .rb-who span, .ra-k, .ph-from, .pf-vid small, .mg-by) { color: var(--ds-ink-3) !important; }
html[data-tone-light="paper"] .site-field { --ds-field-1: #FBF8F2; --ds-field-2: #ECE5D8; --ds-field-3: #DAD0BF; --ds-field-4: #F2ECE2; --ds-field-5: #FBF8F2; }
html[data-tone-light="paper"] .doors { background-color: rgba(70,52,28,.07) !important; }
/* the closing picture: a real-looking conversation, no screen; the pair sits right, the lit wall takes the text */
.closing-card--pic::before { background: linear-gradient(90deg, #fff 0%, #fff 26%, rgba(255,255,255,.85) 34%, rgba(255,255,255,0) 48%); }

/* ---------- The closing photo comes out of the brand's shader (20 Nov night) ----------
   On the left the grey pixel field stands where the white was and dissolves into the picture;
   over the picture a faint trace of the same pixels ties it to the rest of the site. */
.closing-card--pic::before { display: none; }

/* ---------- Correction: the white on the left stays; the shader goes into the photograph ----------
   White gradient back under the text; the brand's pixel field laid over the picture itself (soft-light, so the
   photo takes its texture and light), and a narrow band of pixels where the white meets the picture. */
.closing-card--pic::before { display: block; background: linear-gradient(90deg, #fff 0%, #fff 26%, rgba(255,255,255,.85) 34%, rgba(255,255,255,0) 48%); }
.closing-card--pic::before { z-index: 2; }
@media (max-width: 860px) { .closing-card--pic::before { display: none; } }
.closing-card--pic::before { z-index: 1; }

/* ---------- Closing, as asked (20 Nov night): the white gradient on the left is untouched and has no shader;
   the shader lives on the right, over the photograph, and the picture fuses into it towards its edges and corners
   while the two people stay clear. ---------- */
.closing-card--pic::before { z-index: 3; background: linear-gradient(90deg, #fff 0%, #fff 26%, rgba(255,255,255,.85) 34%, rgba(255,255,255,0) 48%); }
html[data-tone-light="paper"] .closing-card--pic::before { background: linear-gradient(90deg, var(--ds-surface) 0%, var(--ds-surface) 26%, rgba(251,247,239,.85) 34%, rgba(251,247,239,0) 48%); }
@media (max-width: 860px) {
  .closing-card--pic::before { display: none; }
}
/* the shader takes more of the picture: a smaller clear zone, full strength at the edges, and its light and pixels across the people too */
/* the shader shows on the picture: mid greys so its pixels and soft shapes read over the photograph at the edges,
   and its texture laid across the whole right side; the two faces keep a clear centre */
/* closer framing: the camera moves in on the two people (the picture is cropped by its own box, the scroll drift still applies on top) */
.cl-pic { overflow: hidden; }
.cl-pic img { transform: scale(1.32); transform-origin: 56% 40%; }
.cl-pic img { transform: scale(1.62); transform-origin: 62% 36%; }
.cl-pic { overflow: visible; }
.closing-card--pic { overflow: hidden; }
.cl-pic img { transform: scale(1.45); transform-origin: 76% 36%; }
/* with the closer framing: the clear zone follows both faces, and the white fades a touch later so the wall's edge in the photo stays under it */
.closing-card--pic::before { background: linear-gradient(90deg, #fff 0%, #fff 26%, rgba(255,255,255,.88) 38%, rgba(255,255,255,0) 50%); }
html[data-tone-light="paper"] .closing-card--pic::before { background: linear-gradient(90deg, var(--ds-surface) 0%, var(--ds-surface) 26%, rgba(251,247,239,.88) 38%, rgba(251,247,239,0) 50%); }
@media (max-width: 860px) {
  .cl-pic { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .cl-pic img { transform: scale(1.22); transform-origin: 62% 34%; }
}
@media (max-width: 860px) {
  .cl-pic { aspect-ratio: 4 / 3; }
  .cl-pic img { object-fit: cover; object-position: 66% 40%; transform: scale(1.12); transform-origin: 66% 36%; }
}
@media (max-width: 860px) { .cl-pic img { object-position: 80% 40%; transform: none; } }
/* shorter closing (21 Nov): less ceiling; the photo covers the card's width and is cropped from the top, so the people keep their size */
@media (min-width: 861px) {
  .closing-card--pic { min-height: 420px; }
  .cl-pic { left: 0; width: auto; aspect-ratio: auto; }
  .cl-pic img { object-fit: cover; object-position: 50% 62%; transform: scale(1.3); transform-origin: 74% 46%; }
}
@media (min-width: 861px) { .cl-pic img { object-position: 50% 56%; transform: scale(1.1); transform-origin: 70% 56%; } }

/* ---------- App panels v2 (21 Nov): name and who it is for, one sentence, three explained features, one action and a way to learn more;
   the picture on the right, inset so its corners follow the panel's ---------- */
.mega-p { display: grid; grid-template-columns: 372px 248px; gap: 0; padding: 10px; align-items: stretch; }
.mg-l { display: flex; flex-direction: column; padding: 18px 28px 18px 18px; }
.mg-head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.mg-mk { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #F4F4F6; }
.mg-head b { display: block; font-family: var(--ds-serif); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--ds-ink); }
.mg-head small { display: block; margin-top: 2px; font-size: 12.5px; color: #6B6D74; }
.mg-say { margin: 16px 0 0; font-size: 15px; line-height: 1.45; color: var(--ds-ink); text-wrap: pretty; }
.mg-feats { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ds-line); display: grid; gap: 14px; }
.mg-feats li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: inherit; color: inherit; }
.mg-ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #F4F4F6; color: var(--ds-ink-2); }
.mg-ic .ds-i { width: 15px; height: 15px; color: currentColor; }
.mg-ft b { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; color: var(--ds-ink); }
.mg-ft small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: #6B6D74; }
.mg-foot { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 22px; }
.mg-cta { margin: 0; gap: 8px; }
.mg-cta .ds-i { width: 15px; height: 15px; }
.mg-more { font-size: 13.5px; color: var(--ds-ink-2); text-decoration: underline; text-decoration-color: rgba(26,26,26,.25); text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.mg-more:hover { text-decoration-color: currentColor; }
.mg-vis { height: auto; min-height: 340px; border-radius: 18px; }
.mg-vis video { object-position: 50% 20%; }
.mg-tag { left: 12px; bottom: 12px; }
html[data-tone-light="paper"] :is(.mg-mk, .mg-ic) { background: var(--ds-surface-2); }
html[data-tone-light="paper"] :is(.mg-head small, .mg-ft small) { color: var(--ds-ink-3); }

/* ---------- Closing CTA v3 (21 Nov): the words follow the door, one button and a quiet link, the approval seal on the picture ---------- */
.closing .for-pat { display: none; }
html[data-door="patient"] .closing .for-pat { display: revert; }
html[data-door="patient"] .closing .for-doc { display: none; }
html[data-door="patient"] .closing .ds-btn.for-pat { display: inline-flex; }
/* paper: the photograph's white wall is lighter than paper, so the paper fade reaches a little further and the picture takes a touch of its warmth */
html[data-tone-light="paper"] .closing-card--pic::before { background: linear-gradient(90deg, var(--ds-surface) 0%, var(--ds-surface) 28%, rgba(251,247,239,.92) 40%, rgba(251,247,239,.45) 50%, rgba(251,247,239,0) 60%); }
html[data-tone-light="paper"] .cl-pic img { filter: sepia(.12) saturate(.96); }

/* ---------- App panels v3 (21 Nov): more room, one left edge, the content arrives in a short cascade ---------- */
.mega-box { border-radius: 28px; }
.mega-p { grid-template-columns: 412px 300px; padding: 12px; }
.mg-l { padding: 26px 34px 26px 26px; }
.mg-head { gap: 14px; }
.mg-mk { width: 44px; height: 44px; border-radius: 14px; }
.mg-head b { font-size: 23px; }
.mg-head small { margin-top: 3px; font-size: 13px; }
.mg-say { margin-top: 20px; font-size: 16px; line-height: 1.5; max-width: 34ch; }
.mg-feats { margin-top: 22px; padding-top: 22px; gap: 18px; }
.mg-feats li { grid-template-columns: 32px 1fr; gap: 14px; }
.mg-ic { width: 32px; height: 32px; border-radius: 10px; }
.mg-ic .ds-i { width: 16px; height: 16px; }
.mg-ft b { font-size: 14.5px; padding-top: 1px; }
.mg-ft small { margin-top: 3px; font-size: 13px; line-height: 1.4; }
.mg-foot { padding-top: 28px; gap: 20px; }
.mg-vis { min-height: 420px; border-radius: 16px; }
.mg-tag { left: 14px; bottom: 14px; }
.mg-post { padding: 28px; gap: 14px; }
.mg-post b { font-size: 24px; }
/* cascade: head, sentence, each feature, the action; quick and once per opening, nothing moves after */
.mega-p .mg-l > *, .mega-p .mg-feats li { opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .45s cubic-bezier(.22,1,.36,1); }
.mega-p.is-on .mg-l > *, .mega-p.is-on .mg-feats li { opacity: 1; transform: none; }
.mega-p.is-on .mg-head { transition-delay: .04s; }
.mega-p.is-on .mg-say { transition-delay: .08s; }
.mega-p.is-on .mg-feats { transition-delay: .1s; }
.mega-p.is-on .mg-feats li:nth-child(1) { transition-delay: .12s; }
.mega-p.is-on .mg-feats li:nth-child(2) { transition-delay: .16s; }
.mega-p.is-on .mg-feats li:nth-child(3) { transition-delay: .2s; }
.mega-p.is-on .mg-foot { transition-delay: .24s; }
.mega-p .mg-vis { transform: scale(.98); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.mega-p.is-on .mg-vis { transform: none; }
@media (prefers-reduced-motion: reduce) { .mega-p .mg-l > *, .mega-p .mg-feats li, .mega-p .mg-vis { opacity: 1; transform: none; transition: none; } }
/* ---------- Phone pass (21 Nov) ---------- */
/* the second answer covers the first with the stage's own grey, not a white box */
.sol-stage .ans + .ans { background: var(--ds-surface-2); }
@media (max-width: 520px) {
  /* Dose card fits the stage: smaller portrait, tighter padding, text may wrap */
  .rd-make, .mk, .mk-r { min-width: 0; }
  .mk { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; border-radius: 20px; }
  .mk-t { font-size: 18px; }
  /* BiteSized post head: the pill takes its own line above the name, so the name stays on one line */
  .rb-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 10px; align-items: center; }
  .rb-head .rb-pill { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
}
.sol-stage .ans + .ans { background: transparent; }
.sol-stage .ac-a:has(> .ans + .ans.in) > .ans:first-child { opacity: 0; }
@media (max-width: 520px) {
  .tr { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; border-radius: 18px; align-items: center; }
  .tr b { font-size: 16px; }
}
@media (max-width: 520px) {
  .faq .tabs { padding: 4px; gap: 4px; }
  .faq .tabs button { flex: 1 1 0; min-width: 0; padding: 9px 6px; font-size: 13px; text-align: center; white-space: nowrap; }
}
@media (max-width: 520px) {
  .foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-cols nav a { white-space: nowrap; }
}
@media (max-width: 960px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-steps, .how-steps .step, .stage-card, .stage-card .panel { min-width: 0; max-width: 100%; }
}
@media (max-width: 520px) { .mk-act { flex-wrap: wrap; row-gap: 8px; column-gap: 12px; } }
@media (max-width: 520px) { .rd-look-r { grid-template-columns: minmax(0, 1fr); justify-items: start; } .rd-look-r .rd-out--s { white-space: nowrap; } }
@media (max-width: 520px) { .rd-look2 .rd-look-r { grid-template-columns: auto; row-gap: 10px; } }
/* the gains are titles only now: two by two on a phone, compact */
@media (max-width: 640px) {
  .gains { padding: 56px 0; }
  .gains-grid { margin-top: 32px; grid-template-columns: 1fr 1fr; }
  .gain, .gain + .gain, .gain:nth-child(3) { padding: 20px 12px 20px 0; border-left: 0; border-top: 0; gap: 10px; }
  .gain:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ds-line); }
  .gain:nth-child(n+3) { border-top: 1px solid var(--ds-line); }
  .gain h3 { font-size: 18px; }
}

/* compare on a phone: one plan at a time, chosen above the table, no sideways scrolling */
.cmp-pick { display: none; }
@media (max-width: 640px) {
  .cmp-pick { display: flex; gap: 4px; padding: 4px; margin: 24px 0 8px; border-radius: 999px; background: #F2F2F4; }
  .cmp-pick button { flex: 1 1 0; padding: 9px 6px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13.5px; color: var(--ds-ink-3); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
  .cmp-pick button[aria-selected="true"] { background: var(--ds-ink); color: #fff; }
  .cmp { min-width: 0; table-layout: fixed; }
  .cmp thead { display: none; }
  .cmp th, .cmp td { padding: 14px 0; }
  .cmp tbody th { width: 55%; padding-right: 12px; }
  .cmp td { text-align: right; }
}
html[data-tone-light="paper"] .cmp-pick { background: var(--ds-surface-2); }
@media (max-width: 640px) { .cmp-pick { margin-top: 28px; } .cmp-pick button { text-align: center; } }

/* ---------- Speed pass (21 Nov): a shorter opening; the title is there from the first paint ---------- */
.intro-mark.dpm .dpm-fill, .intro-mark.dpm .dpm-line, .intro-mark.dpm .dpm-glow, .intro-mark.dpm .dpm-spark { animation-duration: 1s !important; }
.intro-mark.dpm .dpm-2 { animation-delay: .08s !important; }
.intro-out .intro { transition-duration: .4s; }

/* skip link: hidden until the keyboard reaches it */
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ds-ink); color: #fff; font-size: 14px; text-decoration: none; transition: top .2s ease; }
.skip:focus { top: 16px; }
/* the video length sits on a dark chip: white, not grey */
.mk-time { color: #fff !important; background: rgba(20,22,26,.72); }

/* ---------- The patient door, across the home page (21 Nov) ----------
   .for-doc shows for physicians (the default), .for-pat for patients; the hero keeps its own for-doctor/for-patient pair */
html:not([data-door="patient"]) .for-pat { display: none !important; }
html[data-door="patient"] .for-doc { display: none !important; }

/* ---------- Who it is for, in the navbar (21 Nov) ---------- */
.nav-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nav-door { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: rgba(26,26,40,.05); box-shadow: inset 0 0 0 1px rgba(26,26,40,.04); }
.nav-door button { position: relative; z-index: 1; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; color: var(--ds-ink-3); cursor: pointer; white-space: nowrap; transition: color .3s ease; }
.nav-door button[aria-pressed="true"] { color: var(--ds-ink); }
.nav-door button:focus-visible { outline: 2px solid var(--ds-ink); outline-offset: 1px; }
.nav-door-plate { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 2px 6px -2px rgba(26,26,40,.18); transition: transform .45s cubic-bezier(.22,1,.36,1); }
html[data-door="patient"] .nav-door-plate { transform: translateX(100%); }
html[data-tone-light="paper"] .nav-door { background: rgba(70,52,28,.07); }
html[data-tone-light="paper"] .nav-door-plate { background: #FFFDF8; box-shadow: 0 0 0 1px rgba(70,52,28,.08), 0 2px 6px -2px rgba(70,52,28,.2); }
.framed .nav.is-scrolled .nav-door button { height: 26px; padding: 0 10px; font-size: 12.5px; }
/* the menu's copy is for phones; the bar's copy for wider screens */
@media (max-width: 860px) {
  .nav-door--bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-door-plate { transition: none; } }
/* the floating bar narrows on scroll: there the symbol alone stands for the name, so the switch keeps its room */
@media (min-width: 861px) { .framed .nav.is-scrolled .brand span { display: none; } .framed .nav.is-scrolled .nav-left { gap: 12px; } }

/* ---------- The apps as a stack (21 Nov): each card holds the top while you read it, the next one slides over it ---------- */
.solution { padding: 120px 0 120px; }
.solution .wrap { counter-reset: app; }
.solution .sol { position: sticky; top: 108px; margin: 0 0 14vh; padding: 44px 44px 44px 52px; border: 0; border-radius: 32px; background: #fff;
  box-shadow: 0 0 0 1px rgba(26,26,40,.06), 0 40px 90px -50px rgba(26,26,40,.35); transform-origin: 50% 0; }
.solution .sol:last-child { margin-bottom: 0; }
.solution .sol-stage { min-height: 480px; border-radius: 22px; }
html[data-tone-light="paper"] .solution .sol { background: var(--ds-surface); box-shadow: 0 0 0 1px rgba(70,52,28,.08), 0 40px 90px -50px rgba(70,52,28,.35); }
@media (max-width: 960px) {
  .solution { padding: 72px 0; }
  .solution .sol { position: relative; top: auto; margin: 0 0 20px; padding: 24px 20px 20px; border-radius: 26px; }
  .solution .sol-stage { min-height: 0; }
}

/* ---------- Time back as two numbers (21 Nov): 5× against 1×, the lists say the rest ---------- */
.once { padding: 140px 0; }
.once-big { font-family: var(--ds-serif); font-size: clamp(96px, 11vw, 168px); line-height: .9; letter-spacing: -.04em; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .once { padding: 80px 0; } .once-big { font-size: 96px; } }
/* ---------- What you can count on, in black (21 Nov): the one dark band of the page ---------- */
.trust { background: #141518; color: #fff; padding: 150px 0; }
.trust .ds-eyebrow { color: rgba(255,255,255,.6); }
.trust h2 { color: #fff; font-size: clamp(40px, 4.6vw, 64px); max-width: 14ch; }
.trust .tr { background: transparent; border-radius: 0; padding: 36px 28px 8px 0; gap: 14px; }
.trust .tr + .tr { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.trust .tr b { color: #fff; font-family: var(--ds-serif); font-size: 24px; line-height: 1.15; }
.trust .tr p { color: rgba(255,255,255,.68); font-size: 15px; }
html[data-tone-light="paper"] .trust { background: #221D16; }
@media (max-width: 1024px) and (min-width: 521px) { .trust .tr:nth-child(3) { padding-left: 0; border-left: 0; } .trust .tr:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); } }
@media (max-width: 520px) {
  .trust { padding: 88px 0; }
  .trust .tr, .trust .tr + .tr { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); border-radius: 0; background: transparent; }
}
/* the floating bar stays legible over the black band and over photos: nearly opaque */
.framed .nav.is-scrolled { background: rgba(255,255,255,.94) !important; }
html[data-tone-light="paper"] .framed .nav.is-scrolled { background: rgba(251,247,239,.95) !important; }
/* ---------- Problems with more air (21 Nov): larger lines, the active one in ink, the others quiet ---------- */
.problem2 { padding: 150px 0 130px; }
.problem2 .p2-head h2 { font-size: clamp(40px, 4.4vw, 60px); max-width: 15ch; }
.problem2 .p2-list { margin-top: 48px; }
.problem2 .p2, .problem2 .p2 + .p2 { grid-template-columns: 64px 1fr; padding: 34px 0; }
.problem2 .p2 h3 { font-size: clamp(26px, 2.4vw, 32px); }
.problem2 .p2-n { font-family: var(--ds-serif); font-size: 20px; padding-top: 4px; }
.problem2 .p2 p { font-size: 16px; margin-top: 6px; }
.faq { padding: 140px 0; }
@media (max-width: 860px) {
  .problem2 { padding: 88px 0 72px; }
  .problem2 .p2, .problem2 .p2 + .p2 { grid-template-columns: 44px 1fr; padding: 24px 0; }
  .problem2 .p2 h3 { font-size: 23px; }
  .faq { padding: 88px 0; }
}
/* the black band keeps its rows clear in every tone and width */
.trust .tr, html[data-tone-light="paper"] .trust .tr { background: transparent !important; }

/* ---------- The voice (21 Nov): one idea through the page. Her voice as a line of pixels, five lines folding into one, promises ticked line by line ---------- */
.vo { position: relative; height: 320vh; background: #0D0E10; color: #fff; }
html[data-tone-light="paper"] .vo { background: #1C1812; }
.vo-c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ledger { padding: 160px 0; }
.lg-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.lg-in h2 { position: sticky; top: 132px; font-size: clamp(36px, 3.6vw, 52px); line-height: 1.06; max-width: 10ch; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 0; position: relative; }
.lg-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ds-ink); opacity: .16; transform-origin: left; }
.lg-row:first-child { padding-top: 0; } .lg-row:first-child::before { display: none; }
.lg-row b { display: block; font-family: var(--ds-serif); font-weight: 400; font-size: clamp(30px, 3.5vw, 52px); line-height: 1.08; color: var(--ds-ink); }
.lg-row p { margin-top: 10px; font-size: 16px; color: var(--ds-ink-3); }
.lg-t { flex: none; fill: none; stroke: var(--ds-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-row--ok .lg-t { stroke: var(--dp-ok, #2F7D61); }
.lg-t circle, .lg-t path { stroke-dasharray: 1; stroke-dashoffset: 0; }
html.js .lg-row:not(.is-in) b { color: var(--ds-ink-4); }
html.js .lg-row:not(.is-in) .lg-t circle, html.js .lg-row:not(.is-in) .lg-t path { stroke-dashoffset: 1; }
.lg-row b { transition: color .5s ease; }
.lg-t circle { transition: stroke-dashoffset .7s cubic-bezier(.22,1,.36,1); }
.lg-t path { transition: stroke-dashoffset .35s cubic-bezier(.22,1,.36,1) .45s; }
@media (max-width: 860px) {
  .vo { height: 280vh; }
  .ledger { padding: 88px 0; }
  .lg-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lg-in h2 { position: static; max-width: 12ch; }
  .lg-row { padding: 28px 0; gap: 16px; }
  .lg-t { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .vo { height: auto; } }

.ledger, html[data-tone-light="paper"] .ledger { background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }

/* ---------- The family first (21 Nov): the home shows the three apps; Dose's five-times story lives on the Dose page ---------- */
.eco { width: min(1040px, 100%); margin: 16px auto 0; display: grid; gap: 16px; text-align: left; }
.eco-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.eco-tabs button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px; border: 0; border-radius: 16px; background: transparent; color: var(--ds-ink-3); font: inherit; text-align: left; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.eco-tabs button:hover { color: var(--ds-ink); }
.eco-tabs button.is-on { background: var(--ds-ink); color: #fff; }
.eco-tabs span:last-of-type { display: grid; gap: 1px; min-width: 0; }
.eco-tabs b { font-weight: 400; font-size: 15px; }
.eco-tabs small { font-size: 13px; opacity: .72; }
.eco-tabs i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255,255,255,.7); transform: scaleX(0); transform-origin: left; }
.eco:not(.is-held) .eco-tabs .is-on i { animation: eco-run 6.5s linear forwards; }
@keyframes eco-run { to { transform: scaleX(1); } }
.eco-win { position: relative; height: 560px; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ds-ink) 10%, transparent), 0 24px 60px -32px rgba(20,22,26,.28); }
html[data-tone-light="paper"] .eco-win { background: #FBF8F2; }
.eco-p { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s cubic-bezier(.22,1,.36,1), transform .4s cubic-bezier(.22,1,.36,1), visibility 0s .4s; }
.eco-p.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.eco-p--dose .hear2 { height: 100%; gap: 0; grid-template-rows: minmax(0, 1fr) auto; }
.eco-p--dose .hear-v { height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.eco-p--dose .hear2-foot { padding: 12px 20px; }
@media (max-width: 860px) {
  .eco { margin-top: 0; }
  .eco-tabs { gap: 4px; }
  .eco-tabs button { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 84px; padding: 10px; border-radius: 12px; }
  .eco-tabs b { font-size: 13px; line-height: 1.2; }
  .eco-tabs small { font-size: 12px; line-height: 1.2; }
  .eco-win { height: 440px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .eco-p { transition: none; transform: none; } }

.eco-tabs button b, .eco-tabs button small { color: inherit; }
.eco-win .eco-p.sol-stage { position: absolute; inset: 0; min-height: 0; border-radius: 0; box-shadow: none; padding: 88px 48px 40px; align-content: start; justify-items: center; }
.eco-win .eco-p.sol-stage > :not(.abar) { width: min(640px, 100%); max-width: 640px; }
@media (max-width: 860px) { .eco-win .eco-p.sol-stage { padding: 68px 16px 16px; } }
.eco-tabs button.is-on [data-bsm] { filter: brightness(0) invert(1); }
@media (max-width: 860px) { .eco-tabs button { justify-content: flex-start; } }

/* ---------- Every section its own form (21 Nov) ---------- */
.pr-row { padding: 0 0 72px; }
.pr-s { margin: 0; max-width: 17ch; font-family: var(--ds-serif); font-size: clamp(44px, 6.4vw, 96px); line-height: 1.03; letter-spacing: -.02em; color: var(--ds-ink); text-wrap: balance; }
.pr-s .w { color: color-mix(in srgb, var(--ds-ink) 14%, transparent); transition: color .35s ease; }
.pr-s .w.on { color: var(--ds-ink); }
.weave { position: relative; height: 340vh; background: #F6F6F8; }
html[data-tone-light="paper"] .weave { background: #F3EDE2; }
.fl-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.fl-in { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 64px; padding-top: 128px; padding-bottom: 48px; }
.fl-in h2 { grid-column: 1; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.06; max-width: 11ch; }
.fl-steps { grid-column: 1; position: relative; align-self: center; display: grid; gap: 28px; padding-left: 28px; }
.fl-rail { position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: color-mix(in srgb, var(--ds-ink) 16%, transparent); }
.fl-rail i { position: absolute; inset: 0; background: var(--ds-ink); transform: scaleY(var(--q, 0)); transform-origin: top; }
.fl-app { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ds-ink-3); }
.fl-step h3 { margin-top: 6px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; color: var(--ds-ink-4); transition: color .3s ease; }
.fl-step.is-on h3 { color: var(--ds-ink); }
.fl-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.22,1,.36,1); }
.fl-more > div { overflow: hidden; min-height: 0; }
.fl-step.is-on .fl-more { grid-template-rows: 1fr; }
.fl-more p { margin-top: 10px; font-size: 16px; color: var(--ds-ink-3); }
.fl-more a { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--ds-ink); }
.weave .fl-win { position: absolute; top: 128px; bottom: 48px; right: max(24px, calc((100% - var(--wrap, 1200px)) / 2)); width: 56%; min-height: 0; padding: 88px 40px 32px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ds-ink) 9%, transparent), 0 32px 64px -40px rgba(20,22,26,.3); align-content: start; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1), visibility 0s .45s; }
html[data-tone-light="paper"] .weave .fl-win { background: #FBF8F2; }
.weave .fl-step.is-on .fl-win { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.faq .faq-in { max-width: none; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
.faq .head-center { grid-column: 1; text-align: left; position: sticky; top: 132px; }
.faq .head-center h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.06; max-width: 10ch; margin: 0; }
.faq .tabs { grid-column: 1; justify-self: start; margin-top: 28px; }
.faq .faq-list { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; border-top: 0; }
.faq summary { padding: 28px 56px 28px 0; font-family: var(--ds-serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.18; }
.faq details p { font-size: 17px; padding-bottom: 32px; }
.faq summary::after { transition: opacity .2s ease; }
.faq details[open] summary::after { transform: none; }
.nl { background: transparent !important; box-shadow: none !important; border-radius: 0; border-top: 1px solid color-mix(in srgb, var(--ds-ink) 14%, transparent); padding-left: 0; padding-right: 0; }
@media (max-width: 960px) { .pr-row { padding-bottom: 56px; } .pr-s { font-size: 42px; }
  .weave { height: auto; padding: 88px 0; } .fl-pin { position: static; height: auto; overflow: visible; }
  .fl-in { display: block; height: auto; padding-top: 0; padding-bottom: 0; }
  .fl-steps { gap: 40px; padding-left: 0; margin-top: 36px; } .fl-rail { display: none; }
  .fl-step h3 { color: var(--ds-ink); } .fl-more { grid-template-rows: 1fr; }
  .weave .fl-win { position: relative; top: auto; bottom: auto; right: auto; width: 100%; height: 400px; margin-top: 20px; padding: 68px 16px 16px; opacity: 1; visibility: visible; transform: none; border-radius: 16px; }
  .faq .faq-in { display: block; } .faq .head-center { position: static; } .faq .faq-list { margin-top: 24px; } .faq summary { font-size: 21px; padding: 20px 40px 20px 0; }
}

.fl-steps { position: static; padding-left: 28px; background: linear-gradient(var(--ds-ink), var(--ds-ink)) left top / 1px calc(var(--q, 0) * 100%) no-repeat, linear-gradient(color-mix(in srgb, var(--ds-ink) 16%, transparent), color-mix(in srgb, var(--ds-ink) 16%, transparent)) left top / 1px 100% no-repeat; }
.fl-rail { display: none; }
.weave .fl-win { top: 128px; bottom: 48px; right: var(--gutter); width: calc((100% - 2 * var(--gutter) - 64px) * 7 / 12); }
@media (max-width: 960px) { .fl-steps { background: none; padding-left: 0; } .weave .fl-win { top: auto; bottom: auto; right: auto; width: 100%; } }

@media (min-width: 961px) { .weave .fl-win { align-content: center; padding-top: 72px; } }
/* inner pages: what each app gives, as a ruled list in large type instead of four equal boxes */
.gains { padding: 144px 0; border-top: 0; }
.gains-head h2 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.05; max-width: 15ch; }
.gains .gains-grid { margin-top: 64px; grid-template-columns: minmax(0, 1fr); }
.gains .gains-grid::before { background: color-mix(in srgb, var(--ds-ink) 16%, transparent); }
.gains .gain, .gains .gain + .gain { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 28px 0; border-left: 0; border-bottom: 1px solid color-mix(in srgb, var(--ds-ink) 12%, transparent); }
.gains .gain .ds-i { grid-column: 2; grid-row: 1; color: var(--ds-ink-3); }
.gains .gain h3 { grid-column: 1; grid-row: 1; font-family: var(--ds-serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.1; }
.gains .gain p { grid-column: 1; font-size: 16px; }
@media (max-width: 860px) { .gains { padding: 88px 0; } .gains .gains-grid { margin-top: 36px; } .gains .gain, .gains .gain + .gain { padding: 20px 0; } }
.faq .faq-in .head-center { display: block; text-align: left; margin-left: 0; }
.faq .faq-in .head-center h2 { margin: 0; text-align: left; }

/* ==========  Polish pass, 21 Nov: contrast, scroll, hierarchy, air, phone  ========== */
/* the door: an ink plate on the side you are on, white words on it */
.nav-door { padding: 3px; background: color-mix(in srgb, var(--ds-ink) 7%, transparent); box-shadow: none; }
.nav-door button, .framed .nav.is-scrolled .nav-door button { height: 34px; min-width: 88px; padding: 0 14px; font-size: 13.5px; color: var(--ds-ink-2); transition: color .22s ease; }
.nav-door button:hover { color: var(--ds-ink); }
.nav-door button[aria-pressed="true"], .nav-door button[aria-pressed="true"]:hover { color: #fff; }
.nav-door-plate { background: var(--ds-ink); box-shadow: none; }
html[data-tone-light="paper"] .nav-door { background: rgba(70,52,28,.09); }
html[data-tone-light="paper"] .nav-door-plate { background: #2A241B; box-shadow: none; }
html[data-tone-light="paper"] .nav-door button[aria-pressed="true"] { color: #FFFDF8; }
.nav-door button:focus-visible { outline-offset: 2px; }
/* content fades before it reaches the floating bar, in the colour of its own section */
.frame::before { content: ""; position: fixed; z-index: 29; top: 0; left: var(--frame); right: var(--frame); height: 104px; pointer-events: none; background: linear-gradient(to bottom, var(--veil, #fff) 52%, transparent); opacity: 0; transition: opacity .25s ease; }
html.is-past .frame::before { opacity: 1; }
/* hero: the tab always matches its panel */
.eco-p:not(.is-on) { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
.eco-tabs button { color: var(--ds-ink-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-ink) 10%, transparent); }
.eco-tabs button.is-on { box-shadow: none; }
.eco-tabs small { opacity: 1; color: var(--ds-ink-3); }
.eco-tabs .is-on small { color: rgba(255,255,255,.78); }
.eco-tabs b { font-size: 16px; }
.eco-win .eco-p.sol-stage { align-content: center; padding-top: 80px; }
.fl-extra { margin-top: 12px; }
/* problems: an editorial staircase; words arrive once and stay readable */
.pr-row { padding-bottom: 88px; }
.pr-row:last-child { padding-bottom: 40px; }
.pr-s .w, .pr-s .w.on { color: var(--ds-ink); opacity: .14; transition: opacity .5s ease calc(var(--d, 0) * 60ms); }
.pr-row.is-done .pr-s .w { opacity: 1; }
@media (min-width: 961px) { .pr-row:nth-child(2) { margin-left: 12%; } .pr-row:nth-child(3) { margin-left: 24%; } }
/* how they work together */
.fl-in h2 { max-width: 12ch; font-size: clamp(38px, 3.8vw, 54px); }
.fl-steps { gap: 32px; }
.fl-app { font-size: 15px; color: var(--ds-ink-2); }
.fl-step h3 { color: var(--ds-ink-3); }
.fl-more a { min-height: 40px; }
.weave .fl-win { align-content: center; padding: 76px 40px 28px; }
@media (min-width: 961px) { .weave .fl-win > :not(.abar) { zoom: 1.08; } }
/* one account: names on their own lines, then three plain facts */
/* promises and prices */
html.js .lg-row:not(.is-in) b { color: var(--ds-ink); }
.ledger { padding: 152px 0 96px; }
.lg-row p { color: var(--ds-ink-3); }
/* questions */
.faq .faq-in { max-width: var(--wrap); }
.faq .faq-in .head-center { position: static; }
.faq .tabs { align-self: start; }
.faq .faq-list { border-top: 1px solid color-mix(in srgb, var(--ds-ink) 14%, transparent); }
/* inner pages */
.step, .step h3, .step p { color: var(--ds-ink-3); }
.step.is-on h3 { color: var(--ds-ink); }
.gains .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.gains-head { position: sticky; top: 124px; }
.gains-head h2 { font-size: clamp(36px, 3.6vw, 52px); max-width: 11ch; }
.gains .gains-grid { margin-top: 0; }
.gains .gains-grid::before { display: none; }
.gains .gain, .gains .gain + .gain { grid-template-columns: 32px minmax(0, 1fr); gap: 20px; padding: 32px 0; }
.gains .gain:first-child { padding-top: 0; }
.gains .gain .ds-i { grid-column: 1; }
.gains .gain h3 { grid-column: 2; }
.rd-cap { padding: 4px 6px; border-radius: 6px; background: rgba(12,13,15,.68); font-size: 12px; text-shadow: none; }
/* newsletter and footer */
.nl-in { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 40px; padding: 48px 0; }
.foot-cols nav { gap: 10px; }
@media (max-width: 960px) { .pr-row { padding-bottom: 48px; }
  .gains .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } .gains-head { position: static; }
  .gains .gain:first-child { padding-top: 20px; }
  .weave .fl-win { height: auto; min-height: 0; padding: 68px 16px 20px; align-content: start; }
}
@media (max-width: 860px) {
  .nav-door--bar { display: inline-grid; }
  .nav-door button, .framed .nav.is-scrolled .nav-door button { height: 38px; min-width: 0; padding: 0 12px; font-size: 13px; }
  .eco-win { display: grid; height: auto; }
  .eco-win .eco-p, .eco-win .eco-p.sol-stage { grid-area: 1 / 1; position: relative; inset: auto; height: auto; padding: 68px 16px 20px; align-content: start; }
  .eco-win .eco-p--dose { padding: 0 !important; }
  .eco-p--dose .hear2 { height: 100%; }
  .eco-p--dose .hear-v { min-height: 300px; }
  .eco-tabs b { font-size: 14px; }
  .hero-shot { height: auto !important; max-height: none !important; }
  .hero-shot .hs-body { max-height: none !important; overflow: visible !important; }
  .hero-shot .hs-follow { position: relative !important; inset: auto !important; margin: 12px 16px 16px; transform: none !important; }
  .ledger { padding: 88px 0 56px; }
  .nl-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 0; }
  .nl-f { width: 100%; }
  .foot-cols a, .fl-more a { display: inline-flex; align-items: center; min-height: 40px; }
  .foot-cols nav { gap: 0; }
  .faq .tabs button { min-height: 40px; }
}
@media (max-width: 560px) {
  .framed .nav .brand span { display: none; }
  .nav-door button, .framed .nav.is-scrolled .nav-door button { padding: 0 10px; font-size: 13px; }
  .nav-menu { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 860px) {
  .door-acts .ds-btn:not(.ds-btn--primary), .brand { min-height: 44px; display: inline-flex; align-items: center; }
}

.framed .nav.is-scrolled .nav-door button[aria-pressed="true"], .framed .nav .nav-door button[aria-pressed="true"] { color: #fff; }
html[data-tone-light="paper"] .framed .nav .nav-door button[aria-pressed="true"] { color: #FFFDF8; }

/* ==========  Before launch (21 Nov): one black thing per view, the list as the main action  ========== */
.nav-door { background: color-mix(in srgb, var(--ds-ink) 9%, transparent); }
.nav-door-plate { background: #fff; box-shadow: 0 0 0 1px rgba(22,24,27,.08), 0 1px 3px rgba(22,24,27,.16); }
.framed .nav.is-scrolled .nav-door button[aria-pressed="true"], .framed .nav .nav-door button[aria-pressed="true"], .nav-door button[aria-pressed="true"], .nav-door button[aria-pressed="true"]:hover { color: var(--ds-ink); }
html[data-tone-light="paper"] .nav-door-plate { background: #FFFDF8; box-shadow: 0 0 0 1px rgba(70,52,28,.12), 0 1px 3px rgba(70,52,28,.2); }
html[data-tone-light="paper"] .framed .nav .nav-door button[aria-pressed="true"] { color: #2A241B; }
.eco-tabs { gap: 0; border-top: 1px solid color-mix(in srgb, var(--ds-ink) 14%, transparent); }
.eco-tabs button, .eco-tabs button.is-on { background: transparent; box-shadow: none; border-radius: 0; color: var(--ds-ink-3); padding: 16px 16px 12px 0; }
.eco-tabs button:hover { color: var(--ds-ink); }
.eco-tabs button.is-on { color: var(--ds-ink); }
.eco-tabs .is-on small, .eco-tabs small { color: var(--ds-ink-3); }
.eco-tabs i { top: -1px; bottom: auto; height: 2px; background: var(--ds-ink); }
.eco.is-held .eco-tabs .is-on i { transform: scaleX(1); }
.eco-tabs button.is-on [data-bsm] { filter: none; }
 .nl-code a, .access-alt a { color: var(--ds-ink); text-decoration: underline; text-underline-offset: 3px; }
.door-acts .for-patient { display: none; align-items: center; justify-content: center; gap: 12px; }
html[data-door="patient"] .door-acts .for-patient { display: flex; }
.nl { padding: 0 !important; border-top: 0; scroll-margin-top: 112px; }
.join-a { display: block; position: relative; top: -112px; visibility: hidden; }
.nl .nl-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 104px 0 96px; }
.nl-f2 { margin-top: 28px; display: grid; gap: 14px; }
.nl-who { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.nl-who legend { float: left; margin-right: 8px; font-size: 14px; color: var(--ds-ink-3); line-height: 40px; }
.nl-who label { position: relative; cursor: pointer; }
.nl-who input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nl-who span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--ds-ink-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-ink) 16%, transparent); transition: box-shadow .18s ease, color .18s ease; }
.nl-who input:checked + span { color: var(--ds-ink); box-shadow: inset 0 0 0 1.5px var(--ds-ink); }
.nl-who input:focus-visible + span { outline: 2px solid var(--ds-ink); outline-offset: 2px; }
.nl-f2 .nl-f { width: min(480px, 100%); }
.nl-code { margin-top: 16px; font-size: 14px; color: var(--ds-ink-3); }
.access { min-height: 72vh; display: grid; align-items: center; padding: 168px 0 96px; }
.access-in { max-width: 680px; }
.access h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.access .lead { margin-top: 16px; }
.access-f { margin-top: 32px; display: grid; gap: 8px; }
.access-f label { font-size: 14px; color: var(--ds-ink-3); }
.access-f > div { display: flex; gap: 8px; }
.access-f input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 0; border-radius: 999px; font: inherit; font-size: 17px; letter-spacing: .04em; color: var(--ds-ink); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-ink) 22%, transparent); }
.access-f input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ds-ink); }
.access-msg { font-size: 14px; color: #A3312A; }
.access-alt { margin-top: 20px; font-size: 15px; color: var(--ds-ink-3); }
@media (max-width: 860px) {
  .eco-tabs button, .eco-tabs button.is-on { padding: 12px 6px 10px 0; min-height: 76px; }
  .nav-sign { display: none; }
  .nl .nl-in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 72px 0 56px; }
  .nl-who legend { float: none; width: 100%; line-height: 1.4; margin: 0 0 6px; } .nl-who { flex-wrap: wrap; }
  .access { padding: 120px 0 64px; } .access-f > div { flex-direction: column; } .access-f .ds-btn { justify-content: center; }
  .door-acts .for-patient { flex-wrap: wrap; }
}

/* ==========  Minimal (21 Nov): everything starts on the left, four text sizes, nothing on top of anything  ========== */
:root { --t-display: clamp(44px, 6vw, 84px); --t-title: clamp(34px, 3.8vw, 52px); --t-body: 18px; --t-small: 15px; --sec: 176px; }
@media (max-width: 860px) { :root { --gutter: 24px; --sec: 104px; --t-body: 17px; } }
main h1 { font-size: var(--t-display) !important; line-height: 1.03 !important; letter-spacing: -.02em; text-align: left; margin-left: 0 !important; max-width: 13ch; }
main h2 { font-size: var(--t-title) !important; line-height: 1.08 !important; text-align: left; letter-spacing: -.012em; }
main .lead { font-size: var(--t-body); line-height: 1.5; text-align: left !important; margin: 24px 0 0 !important; max-width: 40ch; color: var(--ds-ink-3); }
/* problems: a plain list under one title */
.pr-row, .pr-row:nth-child(2), .pr-row:nth-child(3), .pr-row:last-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: baseline; margin: 0; padding: 32px 0; border-top: 1px solid color-mix(in srgb, var(--ds-ink) 12%, transparent); }
.pr-s { max-width: none; font-family: var(--ds-sans); font-size: var(--t-body); line-height: 1.45; letter-spacing: 0; color: var(--ds-ink); }
.pr-s .w, .pr-s .w.on, .pr-row.is-done .pr-s .w { opacity: 1; transition: none; }
/* apps */
.weave { background: transparent; }
html[data-tone-light="paper"] .weave { background: transparent; }
.fl-in h2 { font-size: var(--t-title) !important; }
.fl-steps { gap: 40px; }
.fl-app { font-size: var(--t-small); color: var(--ds-ink-3); }
.fl-app [data-bsm] { display: none; }
.fl-step h3 { margin-top: 2px; font-family: var(--ds-sans); font-size: 22px; line-height: 1.3; letter-spacing: 0; }
.fl-more p, .fl-more a { font-size: var(--t-small); }
.weave .fl-win { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ds-ink) 9%, transparent); background: #F7F7F9; }
html[data-tone-light="paper"] .weave .fl-win { background: #F4EEE4; }
/* one account */
/* promises */
.ledger { padding: var(--sec) 0; }
.lg-in h2, .gains-head, .faq .head-center { position: static !important; }
.lg-in h2 { max-width: 11ch; }
.lg-row, .lg-row:first-child { padding: 28px 0; }
.lg-row:first-child::before { display: block; }
.lg-row b { font-family: var(--ds-sans); font-size: var(--t-body); line-height: 1.4; }
.lg-row p { margin-top: 4px; font-size: var(--t-small); }
.lg-t { width: 24px; height: 24px; stroke-width: 2; }
/* questions */
.faq { padding: var(--sec) 0; margin-top: 0; background: transparent !important; }
.faq .faq-list { grid-row: auto; border-top: 0; }
.faq .faq-list + .faq-list { margin-top: 0; }
.faq .head-center { grid-row: 1 / span 4; }
.faq details { border-top: 1px solid color-mix(in srgb, var(--ds-ink) 12%, transparent); border-bottom: 0; }
.faq summary { font-family: var(--ds-sans); font-size: var(--t-body); line-height: 1.4; padding: 24px 48px 24px 0; }
.faq details p { font-size: var(--t-small); line-height: 1.55; padding-bottom: 28px; }
/* join */
.nl .nl-in { gap: 88px; padding: var(--sec) 0 120px; }
.nl-f2 { margin-top: 40px; gap: 20px; }
.nl-who legend { display: none; }
.nl-code { margin-top: 24px; font-size: var(--t-small); }
/* inner pages start on the left too */
.hero-shot { margin-top: 88px; }
.how { padding-top: var(--sec); padding-bottom: 88px; }
.step h3 { font-family: var(--ds-sans); font-size: 22px; line-height: 1.3; }
.step p { font-size: var(--t-small); line-height: 1.5; }
.gains { padding: var(--sec) 0; }
.gains .gain h3 { font-family: var(--ds-sans); font-size: var(--t-body); line-height: 1.4; }
.gains .gain, .gains .gain + .gain { padding: 24px 0; border-top: 1px solid color-mix(in srgb, var(--ds-ink) 12%, transparent); border-bottom: 0; }
.gains .gain:first-child { padding-top: 24px; }
.photo-band { padding: 0 0 var(--sec); }
.pb figcaption { position: static !important; inset: auto !important; margin: 16px 0 0; padding: 0 !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; font-family: var(--ds-sans); font-size: var(--t-small); color: var(--ds-ink-3); max-width: none; }
.pb { overflow: visible !important; background: none !important; }
.pb img { border-radius: 24px; display: block; }
@media (max-width: 960px) {
  .pr-row, .pr-row:nth-child(2), .pr-row:nth-child(3), .pr-row:last-child { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 24px 0; }
  .weave { padding: var(--sec) 0 !important; }
  .fl-steps { margin-top: 48px; gap: 0; }
  .fl-step { padding: 24px 0; border-top: 1px solid color-mix(in srgb, var(--ds-ink) 12%, transparent); }
  .lg-in, .faq .faq-in, .gains .wrap { gap: 40px; }
  .faq .faq-list { margin-top: 0; } .faq .head-center { margin-bottom: 40px; }
}
@media (max-width: 860px) {
  .hero-shot { margin-top: 56px; }
  .nl .nl-in { gap: 40px; padding: var(--sec) 0 72px; }
  .nl-f2 .nl-f { width: 100%; }
}
.hero--center .hero-shot { width: 100%; }
.nl-f2 { grid-template-columns: minmax(0, 1fr); }
.nl-f2 .nl-f { display: flex; box-sizing: border-box; max-width: 100%; }
.nl-f2 .nl-f input { flex: 1 1 0; width: 0; min-width: 0; }
.nl-f2 .nl-go { flex: none; }
@media (max-width: 860px) { .nl-f2 .nl-go { padding: 0 16px; } }

/* ==========  The hero returns (21 Nov): the family shader, the apps in view, the names quietly under the window  ========== */
:root { --sec: 136px; }
@media (max-width: 860px) { :root { --sec: 88px; } }
.hero--center .wrap { text-align: center; }
main .hero--center h1 { text-align: center; margin-left: auto !important; margin-right: auto !important; max-width: 15ch; font-size: clamp(42px, 5.2vw, 72px) !important; }
main .hero--center .lead { text-align: center !important; margin: 22px auto 0 !important; }
.hero--center { padding-bottom: 72px; }
.hero--center .door-acts { margin-top: 32px; }
.hero--center .door-stage { margin-top: 56px; }
.hero--center .eco { text-align: left; gap: 20px; }
.eco-win { height: 600px; }
.eco-tabs, .eco-tabs button, .eco-tabs button.is-on { border: 0; }
.eco-tabs { display: flex; justify-content: center; gap: 32px; }
.eco-tabs button, .eco-tabs button.is-on { flex: none; min-height: 40px; padding: 8px 0; }
.eco-tabs [data-bsm], .eco-tabs small { display: none; }
.eco-tabs b { font-size: var(--t-small); }
.eco-tabs i { top: auto; bottom: 0; height: 1.5px; }
/* problems keep their picture */
.problem2 { padding: var(--sec) 0; }
.problem2 .p2-head h2 { max-width: 13ch; }
.problem2 .p2 h3 { font-family: var(--ds-sans); font-size: 22px; line-height: 1.3; letter-spacing: 0; }
.problem2 .p2 p { font-size: var(--t-small); }
.problem2 .p2-n { font-family: var(--ds-sans); font-size: var(--t-small); padding-top: 3px; }
@media (max-width: 960px) {
  .weave .fl-win { display: grid; margin-top: 20px; background: #F7F7F9; }
  .fl-step { padding: 28px 0 32px; }
}
@media (max-width: 860px) {
  .hero--center .door-stage { margin-top: 40px; }
  .eco-win { height: auto; }
  .eco-tabs { justify-content: space-between; gap: 8px; }
  .eco-tabs b { font-size: 14px; white-space: nowrap; }
  .eco-tabs button, .eco-tabs button.is-on { min-height: 44px; padding: 10px 0; }
  .problem2 .p2 h3 { font-size: 20px; }
}
@media (max-width: 860px) { .eco-win .eco-p:not(.is-on) { display: none; } }

/* ==========  How they work together, redrawn (21 Nov): the family shader as the stage, one calm card per app  ========== */
.fl-in { grid-template-rows: auto minmax(0, 1fr); padding-top: 128px; padding-bottom: 56px; }
.fl-steps { position: static; align-self: end; gap: 0; padding-left: 0; background: none; }
.fl-step { position: relative; padding: 22px 0 24px; border-top: 1px solid color-mix(in srgb, var(--ds-ink) 14%, transparent); }
.fl-step::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ds-ink); transform: scaleX(var(--s, 0)); transform-origin: left; opacity: 0; }
.fl-step.is-on::before { opacity: 1; }
.fl-app { display: block; font-size: var(--t-small); color: var(--ds-ink-3); }
.fl-step h3 { margin-top: 4px; font-size: 22px; line-height: 1.3; }
.fl-more p { margin-top: 8px; }
.fl-more a { margin-top: 4px; min-height: 36px; }
.fl-stage { position: absolute; z-index: 0; top: 128px; bottom: 56px; right: var(--gutter); width: calc((100% - 2 * var(--gutter) - 64px) * 7 / 12); border-radius: 28px; overflow: hidden; background: #EFEFF2; --ds-field-1: #FFFFFF; --ds-field-2: #E4E4E9; --ds-field-3: #CDCDD4; --ds-field-4: #EFEFF2; --ds-field-5: #FFFFFF; }
html[data-tone-light="paper"] .fl-stage { background: #EFE6D8; --ds-field-1: #FBF8F2; --ds-field-2: #EFE6D8; --ds-field-3: #DFD2BF; --ds-field-4: #F4EEE4; --ds-field-5: #FBF8F2; }
.fl-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.weave .fl-win, html[data-tone-light="paper"] .weave .fl-win { z-index: 1; top: 128px; bottom: 56px; display: grid; place-items: center; align-content: center; padding: 40px; overflow: hidden; background: transparent; box-shadow: none; border-radius: 28px; isolation: auto; }
.weave .fl-win > :not(.abar) { zoom: 1; }
.fl-card { position: relative; width: min(500px, 100%); max-height: 100%; overflow: hidden; padding: 76px 28px 28px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(22,24,27,.06), 0 24px 56px -28px rgba(22,24,27,.34); }
html[data-tone-light="paper"] .fl-card { background: #FFFDF8; box-shadow: 0 0 0 1px rgba(70,52,28,.08), 0 24px 56px -28px rgba(70,52,28,.36); }
.fl-card > .abar { position: absolute; top: 0; left: 0; right: 0; }
.fl-card .ra-calm, .fl-card .rd-calm, .fl-card .rb-calm { max-width: none; width: 100%; padding: 0; background: transparent; box-shadow: none; }
.fl-card .rb-feedwin, .fl-card .rb-postwrap, .fl-card .rd-look2, .fl-card .mk, .fl-card .pf { background: transparent !important; box-shadow: none !important; border-radius: 0; padding-left: 0; padding-right: 0; }
.fl-card .rb-feedwin { margin-top: 16px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--ds-ink) 10%, transparent); }
.fl-card .rb-hi { font-size: 14px; }
.fl-card h3, .fl-card .rb-hl { font-size: 22px; line-height: 1.25; }
@media (max-width: 960px) {
  .fl-stage { display: none; }
  .fl-steps { align-self: auto; }
  .fl-step { padding: 28px 0 32px; }
  .fl-step::before { display: none; }
  .weave .fl-win, html[data-tone-light="paper"] .weave .fl-win { position: relative; top: auto; bottom: auto; right: auto; width: 100%; height: auto; margin-top: 20px; padding: 12px; border-radius: 24px; background: color-mix(in srgb, var(--ds-ink) 5%, transparent); }
  .fl-card { width: 100%; padding: 68px 20px 24px; border-radius: 16px; }
}

/* how they work: the card sits on the stage, the line of each step fills as you scroll */
@media (min-width: 961px) {
  .fl-step { position: static; }
  .fl-step::before { display: none; }
  .fl-step.is-on { background: linear-gradient(var(--ds-ink), var(--ds-ink)) left top / calc(var(--s, 0) * 100%) 1px no-repeat; }
}
/* ==========  The invitation (21 Nov): the one black moment of every page, with the action in white on it  ========== */
.nl, html[data-tone-light="paper"] .nl { position: relative; overflow: hidden; isolation: isolate; margin: 48px 0 72px; border-radius: 32px; background: #0D0E10 !important; color: #fff; }
html[data-tone-light="paper"] .nl { background: #1C1812 !important; }
.nl-c { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.28) 34%, #000 62%); mask-image: linear-gradient(100deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.28) 34%, #000 62%); }
.nl .nl-in { display: block; padding: 72px 72px 64px; }
.nl-apps { display: flex; flex-wrap: wrap; gap: 8px 24px; color: rgba(255,255,255,.86); }
.nl-app { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); }
.nl-app [data-bsm] { filter: brightness(0) invert(1); }
.nl .nl-in h2 { margin-top: 40px; max-width: 11ch; color: #fff; font-size: clamp(48px, 6.4vw, 92px) !important; line-height: 1 !important; letter-spacing: -.02em; }
.nl-sub { margin-top: 24px; max-width: 42ch; font-size: var(--t-body); line-height: 1.5; color: rgba(255,255,255,.76); }
.nl .nl-f2 { margin-top: 40px; gap: 16px; max-width: 600px; }
.nl .nl-who span { height: 40px; color: rgba(255,255,255,.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); background: rgba(13,14,16,.5); }
.nl .nl-who input:checked + span { color: #0D0E10; background: #fff; box-shadow: none; }
.nl .nl-who input:focus-visible + span { outline-color: #fff; }
.nl .nl-f2 .nl-f { width: 100%; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 16px 48px -16px rgba(0,0,0,.7); }
.nl .nl-f2 .nl-f:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.34), 0 16px 48px -16px rgba(0,0,0,.7); }
.nl .nl-f input[type=email] { height: 56px; padding: 0 22px; font-size: 17px; color: #16181B; }
.nl .nl-f input[type=email]::placeholder { color: #5F6168; }
.nl .nl-go { height: 56px; padding: 0 28px; font-size: 16px; background: #16181B; color: #fff; }
.nl .nl-go .nl-arrow { transition: transform .2s cubic-bezier(.22,1,.36,1); }
.nl .nl-go:hover .nl-arrow { transform: translateX(3px); }
.nl .nl-msg { color: #fff; }
.nl .nl-code { margin-top: 20px; color: rgba(255,255,255,.76); font-size: var(--t-small); }
.nl .nl-code a { color: #fff; }
/* the main button everywhere: larger, with an arrow that answers the pointer */
.hero .door-acts .ds-btn--primary, .hero-act .ds-btn--primary { height: 56px; padding: 0 28px; font-size: 16px; }
.hero .ds-btn--primary .ds-i { transition: transform .2s cubic-bezier(.22,1,.36,1); }
.hero .ds-btn--primary:hover .ds-i { transform: translateX(3px); }
/* hero switcher: the apps with their marks, on the same track as the doctors/patients switch */
.hero--center .eco { gap: 16px; }
.eco-tabs { justify-self: center; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ds-ink) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-ink) 5%, transparent); }
.eco-tabs button, .eco-tabs button.is-on { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; color: var(--ds-ink-3); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.eco-tabs button.is-on { color: var(--ds-ink); background: #fff; box-shadow: 0 0 0 1px rgba(22,24,27,.07), 0 2px 6px -2px rgba(22,24,27,.22); }
.eco-tabs [data-bsm] { display: inline-flex; }
.eco-tabs span:last-of-type { display: inline; }
.eco-tabs i { display: none; }
.eco-tabs b { font-size: var(--t-small); white-space: nowrap; }
@media (max-width: 860px) {
  .nl, html[data-tone-light="paper"] .nl { margin: 32px 0 56px; border-radius: 24px; }
  .nl .nl-in { padding: 40px 24px 32px; }
  .nl-c { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.24) 60%, #000); mask-image: linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.24) 60%, #000); }
  .nl-apps { gap: 6px 14px; }
  .nl-app { font-size: 14px; }
  .nl .nl-in h2 { margin-top: 28px; font-size: 48px !important; }
  .nl .nl-f2 .nl-f { display: grid; gap: 6px; padding: 6px; border-radius: 28px; }
  .nl .nl-f2 .nl-f input[type=email] { width: 100%; flex: none; height: 52px; }
  .nl .nl-go { width: 100%; justify-content: center; height: 52px; padding: 0 20px; }
  .nl-who { flex-wrap: nowrap; }
  .nl .nl-who span { padding: 0 13px; }
  .eco-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-self: stretch; }
  .eco-tabs button, .eco-tabs button.is-on { justify-content: center; gap: 6px; padding: 0 6px; }
  .eco-tabs b { font-size: 14px; }
}
@media (max-width: 560px) { .eco-long { display: none; } }

/* the invitation carries a real scene instead of an empty field */
html.veil-off .frame::before { opacity: 0 !important; }
.nl-photo { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; object-fit: cover; object-position: 58% 40%; filter: saturate(.9); -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 58%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 58%); }
.nl .nl-in { position: relative; max-width: 680px; min-height: 620px; display: flex; flex-direction: column; justify-content: center; }
.eco-tabs button > span:last-of-type { display: inline; }
.eco-tabs .eco-long { display: inline; }
@media (max-width: 860px) {
  .nl-photo { top: 0; right: 0; bottom: auto; left: 0; width: 100%; height: 260px; object-position: 62% 35%; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); }
  .nl .nl-in { min-height: 0; max-width: none; padding-top: 204px; }
  .nl-apps { display: none; }
  .nl .nl-in h2 { margin-top: 0; font-size: 44px !important; }
  .nl .nl-f2 .nl-f { display: grid; gap: 8px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .nl .nl-f2 .nl-f:focus-within { box-shadow: none; }
  .nl .nl-f input[type=email] { border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
  .nl .nl-f input[type=email]::placeholder { color: rgba(255,255,255,.76); }
  .nl .nl-go { background: #fff; color: #16181B; }
  .nl .nl-check path { stroke: #16181B; }
}
@media (max-width: 560px) { .eco-tabs .eco-long { display: none; } }
.nl .nl-in { align-items: flex-start; gap: 0; min-height: 600px; padding: 64px 72px; }
.nl .nl-in > * { margin-left: 0; margin-right: 0; }
.nl .nl-f2 { width: min(560px, 100%); }
.nl-photo { width: 68%; -webkit-mask-image: linear-gradient(90deg, transparent 4%, rgba(0,0,0,.08) 18%, rgba(0,0,0,.32) 32%, rgba(0,0,0,.72) 48%, #000 66%); mask-image: linear-gradient(90deg, transparent 4%, rgba(0,0,0,.08) 18%, rgba(0,0,0,.32) 32%, rgba(0,0,0,.72) 48%, #000 66%); }
.nl .nl-sub { max-width: 34ch; }
@media (max-width: 1100px) and (min-width: 861px) { .nl .nl-in { padding: 56px 48px; } .nl-photo { width: 60%; } }
@media (max-width: 860px) {
  .nl .nl-in { min-height: 0; padding: 204px 24px 32px; }
  .nl-photo { width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 42%, rgba(0,0,0,.5) 68%, transparent); mask-image: linear-gradient(180deg, #000 42%, rgba(0,0,0,.5) 68%, transparent); }
  .nl .nl-sub { max-width: none; }
  .nl .nl-f2 { width: 100%; }
  .nl .nl-f2 .nl-f input[type=email], .nl .nl-f2 .nl-go { width: 100%; height: 56px; border-radius: 28px !important; }
}
@media (max-width: 560px) { .eco-tabs b .eco-long { display: none !important; } }
@media (max-width: 860px) { .nl .nl-f2 .nl-f { overflow: visible !important; border-radius: 0 !important; clip-path: none !important; -webkit-mask-image: none !important; mask-image: none !important; } .nl .nl-f2 .nl-f input[type=email] { position: relative; } }
/* the app starts at the top of its window, so more of it shows on the first screen */
.hero--center .door-stage { margin-top: 44px; }
.eco-win { height: 540px; }
.eco-win .eco-p.sol-stage { align-content: start; padding-top: 88px; }
.eco-p .ra-calm, .eco-p .rb-calm { margin-top: 0; }
@media (min-width: 961px) {
  /* title and steps read as one column, centred against the stage */
  .fl-in { grid-template-rows: auto auto; align-content: center; }
  .fl-steps { align-self: start; margin-top: 48px; }
}
@media (max-width: 860px) { .eco-win { height: auto; } .eco-win .eco-p.sol-stage { padding-top: 68px; } }

/* early access: always in reach, in the outline style so the black stays on the main action */
.nav-early { height: 40px; padding: 0 14px; gap: 7px; white-space: nowrap; background: transparent; color: var(--ds-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-ink) 26%, transparent); }
.nav-early:hover { background: color-mix(in srgb, var(--ds-ink) 5%, transparent); }
.early-key { flex: none; }
.hero .door-acts .hero-early { height: 56px; padding: 0 26px; gap: 9px; font-size: 16px; color: var(--ds-ink); background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-ink) 28%, transparent); }
.hero .door-acts .hero-early:hover { background: #fff; }
.nd-foot .nd-early { grid-column: 1 / -1; justify-content: center; gap: 8px; }
@media (max-width: 1280px) and (min-width: 861px) { .framed .nav .brand span { display: none; } .nav-early { padding: 0 12px; } }
@media (max-width: 1080px) and (min-width: 861px) { .nav-early span { display: inline; } }
@media (max-width: 860px) {
  .nav-early { display: none; }
  .hero[data-door="doctor"] .door-acts .for-doctor { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .hero .door-acts .ds-btn--primary, .hero .door-acts .hero-early { height: 52px; padding: 0 20px; font-size: 15px; }
}

.hero .door-acts a.hero-early, .hero .door-acts a.hero-early:hover { display: inline-flex; align-items: center; height: 56px; padding: 0 26px; border: 0 !important; border-radius: 999px; text-decoration: none; color: var(--ds-ink); background: rgba(255,255,255,.82) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ds-ink) 34%, transparent) !important; }
.hero .door-acts a.hero-early:hover { background: #fff !important; box-shadow: inset 0 0 0 1.5px var(--ds-ink) !important; }
.hero .door-acts a.hero-early::after { display: none !important; }
@media (max-width: 860px) { .hero .door-acts a.hero-early, .hero .door-acts a.hero-early:hover { height: 52px; padding: 0 20px; } }
