/* Round 359: the glass layer. See docs/ROUNDS.md.
   Sergio, 2 October 2026: bring Dose to the glass of the Doctorpedia Library, so the two products read as one family and nothing here
   looks like an older design. This sheet loads last and changes surfaces and light only: no layout, no copy, no control moves or
   changes size. The vocabulary is the Library's "frost"; the recipe is Dose's own, the one of the top bar's capsule and of the words'
   sheet (round 358):
   - a soft field of light behind every screen (the accent and two quiet companions from the brand gradient), fixed while the page scrolls;
   - surfaces of translucent white with a hairline, a lit upper-left edge and a soft drop, where there were flat white cards;
   - real glass (a blur of what is behind) only on what floats: scrims and their panels, menus, toasts, the Account panel;
   - round controls: pill buttons, circular icon buttons, pill segments; inputs as soft wells;
   - a light under the pointer on the cards (glass.js sets --mx and --my), and a deeper shadow under a card that is an action.
   Rules of the house kept: one accent, both looks, nothing moves that did not move (hover changes light and depth, never place),
   no transform or opacity in any transition written here, and round 298's `* { backdrop-filter:none !important }` is answered only
   where this sheet says so, with !important and a selector of its own.
   A rule here that sets a background or a shadow uses the selector that already won in v3.css, so the states written there for the
   pointer, the focus and the chosen one still win over it; where a state had to be said again, it is said again here. */

/* ── 0. the tokens ── */
:root {
  --g-fill:color-mix(in srgb, var(--s-1) 62%, transparent);          /* a surface on the page */
  --g-fill-up:color-mix(in srgb, var(--s-1) 88%, transparent);       /* the same, raised: a field you write in, a card under the pointer */
  --g-fill-soft:color-mix(in srgb, var(--s-1) 48%, transparent);     /* a quiet chip on the ground */
  --g-float:color-mix(in srgb, var(--s-1) 78%, transparent);         /* a dialog or a sheet, over its blurring scrim */
  --g-menu:color-mix(in srgb, var(--s-1) 74%, transparent);          /* a menu or a toast, blurring what is under it */
  --g-well:rgba(var(--op-line), .055);                                /* pressed in: a segment's track, an icon's tile */
  --g-well-up:rgba(var(--op-line), .11);
  --g-input:color-mix(in srgb, var(--s-1) 80%, transparent);
  --g-hair:rgba(var(--op-line), .08);
  --g-rim:inset 1px 1px 0 rgba(255,255,255,.9), inset -1px -1px 0 rgba(255,255,255,.4);
  --g-drop:0 1px 2px rgba(35,25,70,.05), 0 20px 42px -26px rgba(35,25,70,.42);
  --g-drop-up:0 2px 4px rgba(35,25,70,.06), 0 30px 56px -26px rgba(35,25,70,.56);
  --g-pop:0 60px 120px -48px rgba(27,25,38,.6), 0 20px 44px -26px rgba(27,25,38,.32);
  --g-menu-drop:0 30px 60px -26px rgba(27,25,38,.5), 0 10px 24px -14px rgba(27,25,38,.24);
  --g-lit:inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  --g-scrim:rgba(27,25,38,.26);
  --g-light:color-mix(in srgb, var(--accent) 13%, transparent);
  --g-wash:radial-gradient(70% 240px at 12% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%), radial-gradient(48% 190px at 92% 0%, rgba(242,106,46,.09), transparent 70%);
  --g-field:
    radial-gradient(60% 60% at 92% -8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%),
    radial-gradient(46% 56% at -8% 24%, rgba(193,59,158,.13), transparent 72%),
    radial-gradient(60% 50% at 66% 110%, rgba(242,106,46,.12), transparent 72%);
}
html.op-dark {
  --g-fill:color-mix(in srgb, var(--s-2) 66%, transparent);
  --g-fill-up:color-mix(in srgb, var(--s-2) 90%, transparent);
  --g-fill-soft:color-mix(in srgb, var(--s-2) 44%, transparent);
  --g-float:color-mix(in srgb, var(--s-1) 74%, transparent);
  --g-menu:color-mix(in srgb, var(--s-2) 72%, transparent);
  --g-well:rgba(var(--op-line), .06);
  --g-well-up:rgba(var(--op-line), .12);
  --g-input:color-mix(in srgb, var(--s-0) 70%, transparent);
  --g-hair:rgba(255,255,255,.08);
  --g-rim:inset 1px 1px 0 rgba(255,255,255,.14), inset -1px -1px 0 rgba(255,255,255,.04);
  --g-drop:0 1px 2px rgba(0,0,0,.3), 0 18px 40px -26px rgba(0,0,0,.75);
  --g-drop-up:0 2px 4px rgba(0,0,0,.3), 0 28px 52px -24px rgba(0,0,0,.9);
  --g-pop:0 60px 120px -48px rgba(0,0,0,.85), 0 20px 44px -26px rgba(0,0,0,.5);
  --g-menu-drop:0 30px 60px -26px rgba(0,0,0,.85), 0 10px 24px -14px rgba(0,0,0,.5);
  --g-lit:inset 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent);
  --g-scrim:rgba(4,3,10,.5);
  --g-light:color-mix(in srgb, var(--accent) 16%, transparent);
  --g-wash:radial-gradient(70% 240px at 12% 0%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 72%), radial-gradient(48% 190px at 92% 0%, rgba(242,106,46,.07), transparent 70%);
  --g-field:
    radial-gradient(60% 60% at 92% -8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    radial-gradient(46% 56% at -8% 24%, rgba(193,59,158,.12), transparent 72%),
    radial-gradient(60% 50% at 66% 110%, rgba(242,106,46,.08), transparent 72%);
}

/* ── 1. the ground: three wide lights behind every screen, fixed to the window ── */
html::before { content:''; position:fixed; inset:0; z-index:-1; pointer-events:none; background:var(--g-field); }
/* Content's sticky head keeps an opaque ground (the cards pass under it) and paints the same lights so no band shows. The head sits at
   the window's top left and is as wide as the window, so lights sized to the window line up with the ones behind without
   background-attachment:fixed, which made the page repaint the head on every scrolled frame (dropped frames, measured). On a phone the
   head is not sticky and nothing passes under it: it needs no ground at all. */
.lib-top::before { background:var(--g-field), var(--s-0); background-size:calc(100vw / var(--zoom)) calc(100vh / var(--zoom)), auto; background-repeat:no-repeat; }
@media (max-width:780px) { .lib-top::before { background:none; } }
/* the notice under the top bar: a strip of glass instead of a white band */
#youNudge { background:var(--g-fill); border-bottom-color:var(--g-hair); box-shadow:inset 0 1px 0 rgba(255,255,255,.7); }
html.op-dark #youNudge { box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }

/* ── 2. surfaces on the page: translucent, a hairline, a lit upper-left edge, a soft drop. No blur: these scroll, or sit over the dot field ── */
.offer-main, .choice, .patient, .acard, .rc-hero, .review-dub, .ins-tile, .ins-card,
.pl-card, .pl-billing, .pl-done { background:var(--g-fill); box-shadow:var(--g-rim), var(--g-drop); }
.you-group, .you .you-pages .ycard, html.op-dark .you .you-pages .ycard { background:var(--g-fill); box-shadow:var(--g-rim); }
.offer-main { background:color-mix(in srgb, var(--s-1) 74%, transparent); }
html.op-dark .offer-main { background:color-mix(in srgb, var(--s-1) 78%, transparent); }
/* Create's box: you write in it, so it stays the brightest thing on the screen; its edge is lit and its ring still turns on focus */
.sharebox { background:var(--g-fill-up); box-shadow:var(--g-rim), 0 1px 2px rgba(0,0,0,.04), 0 28px 70px -36px color-mix(in srgb, var(--accent) 45%, transparent); }
.sharebox:focus-within { box-shadow:var(--g-rim), 0 0 0 1px transparent, 0 32px 80px -36px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 40px -10px rgba(var(--op-accent-rgb), .25); }
/* the reading's list was already translucent; it gains the edge */
.plan-run { background:color-mix(in srgb, var(--s-1) 76%, transparent); box-shadow:var(--g-rim), 0 1px 2px rgba(27,25,38,.04), 0 30px 60px -36px rgba(var(--op-accent-rgb), .45); }
html.op-dark .plan-run { background:color-mix(in srgb, var(--s-1) 76%, transparent); }
/* the first visit: the photo frame, the tips, the passage to read */
[data-step="photos"] .drop { background:var(--g-fill); box-shadow:var(--g-rim), 0 1px 2px rgba(27,25,38,.04), 0 24px 50px -30px rgba(var(--op-accent-rgb), .45); }
[data-step="photos"] .tips li { background:var(--g-fill); box-shadow:var(--g-rim); }
[data-step="record"].voice-only .vs-read { background:var(--g-fill-up); box-shadow:var(--g-rim), 0 1px 2px rgba(27,25,38,.04), 0 24px 50px -32px rgba(var(--op-accent-rgb), .5); }
.orb-pct { background:var(--g-fill-up); box-shadow:var(--g-rim), 0 6px 14px -8px rgba(27,25,38,.3); }
/* the notices: what waits in Content, a plan's limit; tinted glass */
.lib-drafts { background:color-mix(in srgb, var(--st-wait-dot) 9%, var(--g-fill)); box-shadow:var(--g-rim); }
.plan-gate { background:color-mix(in srgb, var(--accent) 8%, var(--g-fill)); box-shadow:var(--g-rim); }
/* a chosen row in Account's pages: a tint of the accent on the glass, not an opaque block */
.av[data-on="1"], .vrow[data-on="1"], .setsec:is([data-sec="models"],[data-sec="voice"]) .eng[data-on="1"] { background:rgba(var(--op-accent-rgb), .09); }
html.op-dark :is(.av[data-on="1"], .vrow[data-on="1"], .setsec:is([data-sec="models"],[data-sec="voice"]) .eng[data-on="1"]) { background:rgba(var(--op-accent-rgb), .13); }
/* the plan in use, in the panel and on the plans page */
.you-hub .you-plan .row { background:linear-gradient(135deg, rgba(var(--op-accent-rgb), .12), rgba(var(--op-accent-rgb), .04)), var(--g-fill-up); box-shadow:var(--g-rim), 0 14px 30px -22px rgba(var(--op-accent-rgb), .6); }
.pl-now { background:var(--g-fill); box-shadow:var(--g-rim), 0 1px 2px rgba(27,25,38,.04), 0 24px 50px -36px rgba(var(--op-accent-rgb), .5); }
.pl-card.pick { background:linear-gradient(180deg, rgba(var(--op-accent-rgb), .10), transparent 44%), var(--g-fill-up); box-shadow:var(--g-rim), 0 24px 48px -28px rgba(var(--op-accent-rgb), .55); }
html.op-dark .pl-card.pick { box-shadow:var(--g-rim), 0 24px 48px -24px rgba(0,0,0,.7); }
.pl-kicker { background:var(--g-fill); box-shadow:var(--g-rim); }
/* a picture's frame: the same lit edge, over the picture */
.card .ca, .ccard-frame, .rel-frame { box-shadow:inset 1px 1px 0 rgba(255,255,255,.34), 0 1px 2px rgba(27,25,38,.05), 0 16px 30px -24px rgba(27,25,38,.5); }
html.op-dark .card .ca, html.op-dark .ccard-frame, html.op-dark .rel-frame { box-shadow:inset 1px 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(0,0,0,.3), 0 16px 30px -22px rgba(0,0,0,.8); }
/* small tiles that hold an icon: pressed into the glass instead of a grey block */
.tile-ic, .lm-ico, .dest-head > i:first-child, .pipe-ico, .cn-dose, .how-short li, .cn-asks li, .hub-row .hub-act, .av-use, .edit-eg button, .atag, .lib-month small, .pl-now .pl-mode, .pl-bar { background:var(--g-well); }
.lm.danger .lm-ico { background:color-mix(in srgb, var(--sem-red) 10%, transparent); }

/* ── 3. what floats: real glass. The scrim blurs the page; the panel is translucent with the lit edge and a wash of the accent at its head ── */
.lm-scrim, .cn-scrim, .plan-scrim, #scrim.scrim { background:var(--g-scrim); -webkit-backdrop-filter:blur(18px) saturate(1.35) !important; backdrop-filter:blur(18px) saturate(1.35) !important; }
.lm, .how, .cn, .edit-panel, .lm-scrim > .osheet { background:var(--g-wash), var(--g-float); border-color:var(--g-hair); box-shadow:var(--g-rim), var(--g-pop); }
.lm.danger { background:radial-gradient(70% 240px at 12% 0%, color-mix(in srgb, var(--sem-red) 9%, transparent), transparent 72%), var(--g-float); }
.osheet-foot, .how-foot, .cm-foot { background:transparent; }
.lm-scrim > .osheet .opt { background:var(--g-fill); }
/* the Account panel: the page blurs behind its scrim and shows through the panel */
.you { background:radial-gradient(95% 34% at 8% 0%, rgba(var(--op-accent-rgb), .13), transparent 72%), radial-gradient(60% 24% at 96% 0%, rgba(242,106,46,.07), transparent 70%), color-mix(in srgb, var(--s-0) 78%, transparent); border-color:var(--g-hair); box-shadow:var(--g-rim); transition:translate 460ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.you.open { box-shadow:var(--g-rim), var(--g-pop); }   /* only while it is on screen: closed, it waits beside the window and its shadow would fall into it */
html.op-dark .you { background:radial-gradient(95% 34% at 8% 0%, rgba(var(--op-accent-rgb), .15), transparent 72%), radial-gradient(60% 24% at 96% 0%, rgba(242,106,46,.05), transparent 70%), color-mix(in srgb, var(--s-0) 76%, transparent); }
/* menus, the tray's list, toasts, the assistant: each blurs what is under it */
.kmenu, .catmenu, .capmenu, .traylist, .toast, .pl-toast, .ask, .askpill { background:var(--g-menu); border-color:var(--g-hair); box-shadow:var(--g-rim), var(--g-menu-drop); -webkit-backdrop-filter:blur(24px) saturate(1.6) !important; backdrop-filter:blur(24px) saturate(1.6) !important; }
.kmenu, .catmenu, .capmenu, .traylist { border-radius:18px; }
/* the tray's list hangs inside the top bar, whose glass is a backdrop of its own: the list's blur cannot reach the page under it, so the
   page's words showed through it on a phone (3 October 2026). It is nearly opaque instead. */
.tb-main .traylist { background:color-mix(in srgb, var(--s-1) 97%, transparent); }
.toast, .pl-toast { border-radius:18px; }
.kmenu button { border-radius:12px; }
.kmenu button:hover, .kmenu button:focus-visible { background:var(--g-well-up); }
/* the viewer: the page shows, blurred and dark, round the video; its buttons catch the light */
.viewer-scrim { background:rgba(15,14,20,.8); -webkit-backdrop-filter:blur(26px) saturate(1.2) !important; backdrop-filter:blur(26px) saturate(1.2) !important; }
.viewer-ctrl { box-shadow:inset 1px 1px 0 rgba(255,255,255,.2), inset -1px -1px 0 rgba(255,255,255,.05); }
/* on a phone the top bar floats over the page as it scrolls: glass, where there was a fade the cards showed through */
@media (max-width:780px) { .topbar, body[data-mood="library"] .topbar { background:color-mix(in srgb, var(--s-0) 68%, transparent); -webkit-backdrop-filter:blur(18px) saturate(1.5) !important; backdrop-filter:blur(18px) saturate(1.5) !important; } }
/* the plans page's bar floats over the page as it scrolls */
.pl-top { background:color-mix(in srgb, var(--s-0) 68%, transparent); border-bottom-color:var(--g-hair); -webkit-backdrop-filter:blur(18px) saturate(1.5) !important; backdrop-filter:blur(18px) saturate(1.5) !important; }

/* ── 4. controls: the capsule's family. Pills and circles; a lit edge on the quiet ones; the primary keeps the accent, flat ── */
:is(.primary, .ghost, .send, .tiny, .mini, .lib-up, .dchip, .plan-gate-go, .pl-btn, .lib-drafts-go, .toast-act, .av-use, .rec-copy, .cat-dd, .cat-clear, .am-chip, .hub-act, .edit-eg button, .lm-actions button, .stepback, .you-out):not(#_) { border-radius:999px; }
:is(.x, .am-more, .ask-ic):not(#_) { border-radius:50%; }
.primary { box-shadow:inset 0 1px 0 rgba(255,255,255,.24), 0 10px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.primary:disabled { box-shadow:none; }
.lm.danger .lm-actions #lmOk, .pl-lm .lm-actions button.danger { box-shadow:inset 0 1px 0 rgba(255,255,255,.24), 0 10px 20px -10px color-mix(in srgb, var(--sem-red) 70%, transparent); }
.ghost { background:var(--g-fill-up); box-shadow:var(--g-rim); }
.lib-up, .dchip, .am-chip, .cat-dd, .cat-bar .cat-mine, .lib-drafts-go, .sharebox > .asrow .mini, .sharebox > .asrow .as-choose .go, .nudge .tiny, .you .kback, .rec-copy { background:var(--g-fill-up); box-shadow:var(--g-rim); }
.lib-drafts-go { box-shadow:var(--g-rim), 0 0 0 1px var(--line-strong); }
.pl-btn { background:var(--g-fill-up); }
.pl-btn:not(.primary-ish):not(:disabled) { box-shadow:var(--g-rim); }
.pl-btn.primary-ish { box-shadow:inset 0 1px 0 rgba(255,255,255,.24), 0 10px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.mini { background:var(--g-well); }
.x { background:var(--g-well); }
/* segments: a pill of wells with one raised piece */
.seg3, .pseg, .ws-role, .lang-sw, .oftabs, .pl-cycle { background:var(--g-well); border-radius:999px; }
.seg3 button, .pseg button, .ws-role button, .lang-sw button, .oftab { border-radius:999px; }
.seg3 button[aria-checked="true"], .pseg button[aria-selected="true"], .ws-role button[aria-pressed="true"], .lang-sw button[aria-selected="true"], .oftab[aria-selected="true"] { border-radius:999px; background:var(--s-1); box-shadow:var(--g-rim), 0 1px 2px rgba(27,25,38,.08), 0 6px 14px -8px rgba(27,25,38,.3); }
html.op-dark :is(.seg3 button[aria-checked="true"], .pseg button[aria-selected="true"], .ws-role button[aria-pressed="true"], .lang-sw button[aria-selected="true"], .oftab[aria-selected="true"]) { background:var(--s-3); box-shadow:var(--g-rim), 0 6px 14px -8px rgba(0,0,0,.6); }
.pl-cycle button[aria-checked="true"] { box-shadow:var(--g-rim), 0 1px 2px rgba(27,25,38,.08), 0 6px 14px -8px rgba(27,25,38,.3); }
html.op-dark .pl-cycle button[aria-checked="true"] { box-shadow:var(--g-rim), 0 6px 14px -8px rgba(0,0,0,.6); }
/* Content's scope: the top bar's capsule, without the blur (it sits on the head's own ground); its thumb and the filters' pill are drops of accent glass */
.lib-titles .lib-scope { background:color-mix(in srgb, var(--s-1) 58%, transparent); border-color:transparent; box-shadow:inset 1px 1px 0 rgba(255,255,255,.8), inset -1px -1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(var(--op-line),.08), 0 14px 34px -16px rgba(27,25,38,.4); }
html.op-dark .lib-titles .lib-scope { background:color-mix(in srgb, var(--s-1) 56%, transparent); box-shadow:inset 1px 1px 0 rgba(255,255,255,.16), inset -1px -1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(255,255,255,.07), 0 14px 34px -16px rgba(0,0,0,.7); }
.lib-scope .pseg-thumb, .lib-pill { box-shadow:inset 1px 1px 0 rgba(255,255,255,.75), inset -1px -1px 0 rgba(var(--op-accent-rgb), .12), 0 6px 16px -8px rgba(var(--op-accent-rgb), .45); }
html.op-dark .lib-scope .pseg-thumb, html.op-dark .lib-pill { box-shadow:inset 1px 1px 0 rgba(255,255,255,.2), 0 6px 16px -8px rgba(0,0,0,.6); }
/* fields: soft wells with a hairline; the accent ring on focus is the one they had */
.cn-field input, .lm-input, .edit-ta, .ask-foot input, .ws-staff, .hello-form .cn-field input { background:var(--g-input); border:1px solid rgba(var(--op-line),.12); border-radius:14px; }
.lib-search { background:var(--g-fill-up); border-color:rgba(var(--op-line),.12); box-shadow:var(--g-rim); }
.lib-search:focus-within { border-color:var(--accent); box-shadow:var(--g-rim), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.cm-search { border-radius:14px; background:var(--g-input); }
/* the ideas under Create's box, and the shapes they wait in */
.idea-chip { background:var(--g-fill-soft); box-shadow:var(--g-rim); }
.idea-chip.ghost { background:linear-gradient(90deg, var(--g-fill-soft) 25%, var(--g-fill-up) 50%, var(--g-fill-soft) 75%); background-size:200% 100%; box-shadow:var(--g-rim); }

/* ── 5. light and lift. The light is a soft disc of the accent in the middle of the card (--mx, --my stay unset: since audit pass 4,
   20 November 2026, nothing follows the pointer). A card that is an action also gains depth and a brighter edge. Nothing moves. Only for a pointer that
   hovers; off in calm mode and under reduced motion ── */
@media (hover:hover) and (pointer:fine) {
  .om-tile::after, .you .row::after, .pl-card::after, .choice::after, .ins-tile::after, .ins-card::after, .acard::after, .patient::after, .lm-scrim > .osheet .opt::after, .lib-drafts::after, .dest-head::after, .pl-now::after, .pl-billing::after {
    content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity 220ms var(--ease-out);
    background:radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), var(--g-light), transparent 62%); }
  .om-tile:hover::after, .you .row:hover::after, .pl-card:hover::after, .choice:hover::after, .ins-tile:hover::after, .ins-card:hover::after, .acard:hover::after, .patient:hover::after, .lm-scrim > .osheet .opt:hover::after, .lib-drafts:hover::after, .dest-head:hover::after, .pl-now:hover::after, .pl-billing:hover::after { opacity:1; }
  /* over a picture the light is white, like a sheen on its glass */
  .card .ca::before, .ccard-frame::before { content:''; position:absolute; inset:0; z-index:1; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity 220ms var(--ease-out);
    background:radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.26), transparent 60%); }
  .card:hover .ca::before, .ccard:hover .ccard-frame::before { opacity:1; }
  /* the lift: more depth, a brighter edge */
  .choice:hover, .pl-card:hover, .ins-tile:hover, .ins-card:hover { box-shadow:var(--g-rim), var(--g-lit), var(--g-drop-up); }
  .pl-card.pick:hover { box-shadow:var(--g-rim), var(--g-lit), 0 30px 56px -28px rgba(var(--op-accent-rgb), .7); }
  .card:hover .ca, .card.menu-open .ca, .ccard:hover .ccard-frame { box-shadow:inset 1px 1px 0 rgba(255,255,255,.5), 0 2px 4px rgba(27,25,38,.06), 0 26px 44px -24px rgba(27,25,38,.6); }
  html.op-dark .card:hover .ca, html.op-dark .card.menu-open .ca, html.op-dark .ccard:hover .ccard-frame { box-shadow:inset 1px 1px 0 rgba(255,255,255,.26), 0 2px 4px rgba(0,0,0,.3), 0 26px 44px -22px rgba(0,0,0,.95); }
  .idea-chip:hover, .dchip:hover, .am-chip:not(.static):hover { box-shadow:var(--g-rim), 0 10px 22px -14px rgba(27,25,38,.45); }
  .primary:not(:disabled):hover, .send:not(.send-alt):not(:disabled):hover, .lib-new:hover, .done-next.primary:hover { box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 14px 26px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
  .pl-btn.primary-ish:hover { box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 14px 26px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
  .ghost:hover, .lib-up:hover { box-shadow:var(--g-rim), 0 10px 22px -14px rgba(27,25,38,.45); }
  .x:hover { background:var(--g-well-up); }
  /* said again, because the rules above now come after the ones that answered the pointer */
  .nudge .tiny:hover { background:var(--hover-tint); color:var(--t-100); border-color:var(--hover-line); }
  .you-hub .you-plan .row:hover { background:linear-gradient(135deg, rgba(var(--op-accent-rgb), .2), rgba(var(--op-accent-rgb), .08)), var(--g-fill-up); box-shadow:var(--g-rim), var(--g-lit), 0 18px 34px -20px rgba(var(--op-accent-rgb), .75); }
  .cat-bar .cat-mine:hover { background:var(--hover-tint); border-color:var(--hover-line); }
}
.choice, .ins-tile, .ins-card, .acard, .patient, .lib-drafts, .lm-scrim > .osheet .opt, .pl-billing { position:relative; }
.card .ca, .ccard-frame { transition:transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), background-color var(--dur-fast), box-shadow 220ms var(--ease-out); }
.choice, .ins-tile, .ins-card, .pl-card { transition:border-color var(--hover-dur) var(--ease-out), background-color var(--hover-dur) var(--ease-out), box-shadow 220ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .om-tile::after, .you .row::after, .pl-card::after, .choice::after, .ins-tile::after, .ins-card::after, .acard::after, .patient::after, .lm-scrim > .osheet .opt::after, .lib-drafts::after, .dest-head::after, .pl-now::after, .pl-billing::after, .card .ca::before, .ccard-frame::before { display:none; }
}
html.calm :is(.om-tile, .you .row, .pl-card, .choice, .ins-tile, .ins-card, .acard, .patient, .lm-scrim > .osheet .opt, .lib-drafts, .dest-head, .pl-now, .pl-billing)::after, html.calm .card .ca::before, html.calm .ccard-frame::before { display:none; }

/* 19 Nov 2026: Display and sound. In dark the chosen part of a segment had the same fill as its track, so the choice could not be
   seen; it now sits on a lighter plate with a hairline. Text size says its size in words beside the A (buttons say what they do). */
html.op-dark:root :is(.seg3 button[aria-checked="true"], .pseg button[aria-selected="true"], .ws-role button[aria-pressed="true"], .lang-sw button[aria-selected="true"], .oftab[aria-selected="true"]) { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--t-100); }
.seg-text button { width: auto; padding: 0 12px; gap: 6px; }
.seg-text .t-a { font-family: var(--font-sans); line-height: 1; }
.seg-text :is(.t-lg, .t-xl) { font-size: 14px; }
.seg-text .t-lg .t-a { font-size: 17px; }
.seg-text .t-xl .t-a { font-size: 20px; }
