/* Ask Doctorpedia's frame, aligned with BiteSized's (19 November 2026; the owner's review "Ask against BiteSized", docs of the
   Dose repo, ask-vs-bitesized-2026-11-19, items 6 to 11, 14, 18 and 23). Loaded last, so it is the word on what it draws:
     1  what floats: the shadow BiteSized gives a card or a dialog
     2  the top bar: the mark and the name in the corner, History and "Ask another question" in one pill in the middle,
        New conversation as the one ink pill, the portrait; the bar slides away going down and comes back going up
     3  the bar on a phone: 60 px, the same pieces as 40 px pills, sliding away too
     4  the account card: who is in, the look and the language, Settings, the other apps, Log out; its rows rise one by one
     5  the card's panes: Settings, and Display and accessibility with its choices on a sliding plate
     6  the choice dialog of the family (the specialty, the language videos start in)
     7  the footer
     8  the loader
     9  the thinking state: the app's mark as a line that breathes, the word in plain ink
   The owner's rules hold: monochrome with a quiet grey, no gradients, one small ink pill per screen, nothing turns or
   follows the pointer, every button says what it does, no control of the browser's own. The tokens are find.css's (--l-*);
   the accent is read as --l-accent where look.js or find.css set one, else as the app's own --l-lilac. */

/* ── 1. What floats (BiteSized's --cl-shadow-pop, clean.css section 1) ── */
:root { --l-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); --l-bar-ease: cubic-bezier(.32,.72,0,1); --l-ring: var(--l-accent, var(--l-lilac)); }
:root[data-theme="dark"] { --l-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); }

/* ── 2. The top bar ── */
.lib-top { display: flex; align-items: center; gap: 12px; transition: translate .46s var(--l-bar-ease), opacity .2s var(--l-out), background-color .3s var(--l-out), box-shadow .3s var(--l-out); }
.lib-top-r { position: relative; z-index: 1; margin-left: auto; gap: 10px; }
/* the mark and the name; the name stays at the very top of the page and leaves once the page moves, its letters going from
   the last with a small rise and blur while the space closes, and coming back from the first (BiteSized's section 17) */
.lib-brand { position: relative; z-index: 1; flex: none; border-radius: 12px; transition: gap .55s var(--l-spring); }
.lib-brand:focus-visible { outline: 2px solid var(--l-ink); outline-offset: 4px; }
/* the letters sit in a line of text, not as boxes of a flex row, so anything that reads the page as text (a reader view, a
   translation, a copy) reads "Ask Doctorpedia", not one letter a line (20 November 2026, audit); the link's own name says it for a
   screen reader */
.lib-name { display: inline-block; white-space: nowrap; vertical-align: middle; overflow: hidden; max-width: 170px; padding: 2px 0; transition: max-width .62s var(--l-spring); }
.lib-nl { display: inline-block; white-space: pre; transition: opacity .38s var(--l-out), transform .6s var(--l-spring), filter .38s var(--l-out); transition-delay: calc(var(--i) * 26ms + 90ms); }
html.brand-away .lib-brand { gap: 0; }
html.brand-away .lib-name { max-width: 0; transition: max-width .42s var(--l-out) .08s; }
html.brand-away .lib-nl { opacity: 0; transform: translateY(-35%); filter: blur(3px); transition-duration: .2s, .3s, .2s; transition-delay: calc(var(--r) * 12ms); }

/* the pill in the middle: History, a short hairline, then the search where the page has no box of its own (BiteSized's
   section 23). One 48 px pill with one hairline; inside it the parts are quiet segments */
.lib-omni { display: flex; align-items: center; gap: 2px; }
@media (min-width: 761px) {
  .lib-omni { position: absolute; top: 50%; left: 50%; z-index: 2; height: 48px; max-width: calc(100% - 2 * var(--l-bar-side, 300px)); padding: 4px; border: 1px solid var(--l-line-2); border-radius: 999px; background: var(--l-surface); box-shadow: var(--l-shadow-1); translate: -50% -50%; transition: border-color .2s var(--l-out), box-shadow .3s var(--l-out); }
  .lib-omni.has-field { width: min(600px, calc(100% - 2 * var(--l-bar-side, 300px))); }
  .lib-omni:hover { border-color: var(--l-line-3); }
  .lib-omni:has(.lib-mini input:focus) { border-color: var(--l-ring); box-shadow: 0 0 0 4px color-mix(in srgb, var(--l-ring) 16%, transparent); }
  .lib-omni .lib-hist { flex: none; height: 38px; padding: 0 11px 0 12px; border-radius: 999px; background: transparent; box-shadow: none; font-size: 14.5px; transition: background-color .16s var(--l-out); }
  .lib-omni .lib-hist:hover { background: var(--l-hover); box-shadow: none; }
  .lib-omni .lib-hist[aria-expanded="true"] { background: var(--l-surface-2); }
  .lib-omni .lib-hist:focus-visible { outline-offset: -2px; }
  .lib-omni-sep { flex: none; width: 1px; height: 20px; margin: 0 2px; background: var(--l-line-2); }
  /* the search: the rest of the pill, no frame of its own (find.css hid the bar's search on a conversation; it is there now,
     and asks a question of its own) */
  .lib-omni .lib-mini, html[data-page="search"] .lib-top .lib-mini { visibility: visible; flex: 1 1 auto; width: auto; min-width: 0; height: 38px; padding: 0 12px 0 10px; border-radius: 999px; background: transparent; box-shadow: none; }
  .lib-omni .lib-mini:hover, .lib-omni .lib-mini:focus-within { box-shadow: none; }
  .lib-omni .lib-mini input { font-size: 15px; }
  .lib-omni .lib-mini input:focus { outline: none; }
}
@media (min-width: 761px) and (max-width: 1120px) { :root { --l-bar-side: 230px; } }
/* when the middle has too little room (find.js fitBar, 20 November 2026), the pill sits between the name and the right side
   and takes what is left, so it never covers the places */
@media (min-width: 761px) { .lib-top.is-fit .lib-omni { left: var(--l-omni-x); width: var(--l-omni-w); max-width: none; translate: 0 -50%; } }
/* a phone on its side (under 500 px high, audit pass 4): the pill holds History alone, as on the start page, so it never needs
   the fitted frame; the box at the end of the conversation asks the next question and New starts one (find.js fitBar) */
@media (min-width: 761px) and (max-height: 499px) {
  .lib-omni.has-field { width: auto; }
  .lib-omni.has-field > .lib-omni-sep:not(.lib-sw-sep), .lib-omni.has-field > .lib-mini { display: none; }
}
/* a field to type in is 16 px on a touch screen, so the phone does not zoom in on it (audit pass 4) */
@media (pointer: coarse) { .lib-mini input, .lib-omni .lib-mini input, .lib-pick-q input { font-size: 16px; } }

/* the right: Incognito when it is on, New conversation as the one ink pill, then the portrait (BiteSized's section 25) */
.lib-new { gap: 7px; height: 44px; padding: 0 18px 0 14px; background: var(--l-ink); color: var(--l-surface); box-shadow: none; font-size: 14.5px; transition: background-color .2s var(--l-out), scale .12s var(--l-out); }
.lib-new svg { color: currentColor; width: 17px; height: 17px; }
.lib-new:hover { background: color-mix(in srgb, var(--l-ink) 86%, var(--l-surface)); box-shadow: none; }
.lib-new:active, .lib-in:active { scale: .97; }
.lib-in { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--l-line-2); transition: background-color .2s var(--l-out), box-shadow .2s var(--l-out); }
.lib-in:hover { background: var(--l-hover); box-shadow: inset 0 0 0 1px var(--l-line-3); }
.lib-in:focus-visible { outline: 2px solid var(--l-ink); outline-offset: 2px; }
/* the portrait: the initial on grey with a hairline, 40 px (item 7). The first name stays for a screen reader, and the full
   name is the first line of the card */
.lib-who-i { background: var(--l-surface-2); color: var(--l-ink-2); box-shadow: 0 0 0 1px var(--l-line-2); }
.lib-top .lib-you.is-who { position: relative; display: grid; place-items: center; width: 40px; height: 40px; min-width: 0; padding: 0; gap: 0; border-radius: 50%; background: transparent; box-shadow: none; transition: scale .12s var(--l-out); }
.lib-top .lib-you.is-who .lib-who-i { width: 40px; height: 40px; margin: 0; font-size: 14px; transition: box-shadow .2s var(--l-out); }
.lib-top .lib-you.is-who:hover .lib-who-i, .lib-top .lib-you.is-who[aria-expanded="true"] .lib-who-i { box-shadow: 0 0 0 1px var(--l-line-3), 0 0 0 4px var(--l-hover); }
.lib-top .lib-you.is-who:active { scale: .96; }
.lib-top .lib-you.is-who:focus-visible { outline: 2px solid var(--l-ring); outline-offset: 2px; }
.lib-top .lib-you.is-who .lib-who-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* going down the page the bar slides away on a long soft curve; any move up brings it back (BiteSized's section 22). It
   stays while the place is in it */
html.is-down .lib-top:not(:focus-within) { translate: 0 calc(-100% - 24px); opacity: 0; pointer-events: none; transition: translate .46s var(--l-bar-ease), opacity 0s linear .46s, background-color .3s var(--l-out), box-shadow .3s var(--l-out); }
html.bar-snap .lib-top { transition: none !important; }
/* the sheet sits 12 px inside the window: with the bar away, that edge stays the page's colour */
@media (min-width: 761px) { html:not([data-page="signin"]) .lib::before { content: ""; position: fixed; z-index: 29; top: 0; left: 0; right: 0; height: 12px; background: var(--l-page); pointer-events: none; } }

/* ── 3. The bar on a phone (BiteSized's views/chrome-pass.css): 60 px, clear over the page's field at the top, frosted with a
      hairline once the page moves; History and New as pills with their word, the portrait round; it slides away going down ── */
@media (max-width: 760px) {
  .lib-main { padding-top: 60px; }
  .lib-top { height: 60px; padding: 0 12px 0 14px; gap: 8px; }
  html.is-scrolled .lib-top { background: color-mix(in srgb, var(--l-surface) 88%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35); box-shadow: 0 1px 0 var(--l-line); }
  .lib-brand { gap: 0; }
  .lib-name { display: none; }
  .lib-omni { margin-left: 4px; }
  .lib-omni-sep, .lib-omni .lib-mini { display: none; }
  .lib-hist, .lib-new { flex-direction: row; gap: 7px; height: 40px; min-width: 0; padding: 0 15px 0 12px; border-radius: 999px; }
  .lib-hist { background: var(--l-surface); box-shadow: inset 0 0 0 1px var(--l-line-2); }
  .lib-hist:hover { box-shadow: inset 0 0 0 1px var(--l-line-3); }
  .lib-new { background: var(--l-ink); color: var(--l-surface); box-shadow: none; }
  .lib-hist svg, .lib-new svg { width: 17px; height: 17px; }
  .lib-hist .lib-lbl, .lib-new .lib-lbl, .lib-top-r .lib-lbl { display: inline; font-size: 14.5px; line-height: 1; color: inherit; }
  .lib-hist[aria-expanded="true"] { background: var(--l-surface-2); }
  .lib-top-r { gap: 8px; }
  .lib-top .lib-you:not(.is-who) { flex-direction: row; gap: 7px; height: 40px; min-width: 0; padding: 0 15px 0 12px; border-radius: 999px; background: var(--l-surface); box-shadow: inset 0 0 0 1px var(--l-line-2); }
  .lib-top .lib-you.is-who, .lib-top .lib-you.is-who .lib-who-i { width: 38px; height: 38px; margin: 0; font-size: 13.5px; }
  .lib-in { height: 40px; padding: 0 15px; }
  .lib-hist:active, .lib-top .lib-you:active { scale: .96; }
  html.is-down .lib-top:not(:focus-within) { translate: 0 calc(-100% - 36px); }
}
/* under 361 px History shows its icon alone; the word stays the button's name for a screen reader (audit pass 4) */
@media (max-width: 360px) { .lib-hist .lib-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .lib-hist { padding: 0 11px; } }

/* ── 4. The account card (BiteSized's .am, clean.css section 25): 352 px, 6 px inside, 20 px corners, one hairline and the
      floating shadow; it opens from the portrait's corner and its rows rise one after another. On a phone it is a page ── */
.lib-acctbox:not(.is-page) { width: 352px; padding: 6px; border: 1px solid var(--l-line-2); border-radius: 20px; box-shadow: var(--l-shadow-pop); opacity: 0; translate: 0 -8px; scale: .96; transform-origin: calc(100% - 20px) 0;
  transition: opacity .14s var(--l-out), translate .18s var(--l-out), scale .18s var(--l-out), height .28s var(--l-out); }
.lib-acctbox:not(.is-page).is-open { opacity: 1; translate: 0 0; scale: 1; transition: opacity .2s var(--l-out), translate .42s var(--l-spring), scale .42s var(--l-spring), height .28s var(--l-out); }
.lib-histbox:not(.is-page) { box-shadow: 0 0 0 1px var(--l-line-2), var(--l-shadow-pop); }
/* who is signed in */
.lib-acctbox .lib-acct:not(.is-out) { gap: 12px; padding: 12px 10px 10px; }
.lib-acctbox .lib-who-i.is-big { width: 42px; height: 42px; font-size: 15px; box-shadow: 0 0 0 1px var(--l-line); }
.lib-acctbox .lib-acct-n { font-size: 17px; line-height: 1.25; letter-spacing: -.005em; }
.lib-acctbox .lib-acct-e { margin-top: 2px; font-size: 13px; color: var(--l-ink-3); }
.lib-acctbox .lib-acct-k { margin-top: 1px; font-size: 12.5px; color: var(--l-ink-4); }
.lib-acctbox:not(.is-page) > .lib-you-main > .lib-youbox-h { padding: 14px 10px 0; font-size: 21px; }
.lib-acctbox .lib-acct.is-out { margin: 12px 4px 4px; }
/* the rows: an icon in a 28 px column, the word, and what the row holds at its end */
.lib-am { display: grid; gap: 1px; margin: 0; padding: 0; border: 0; }
.lib-am-sep { height: 1px; margin: 6px 10px; background: var(--l-line); }
.lib-amrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 10px 0 7px; border-radius: 12px; text-align: left; font-size: 15px; line-height: 1.3; color: var(--l-ink-2); cursor: pointer; transition: background-color .14s var(--l-out), color .14s var(--l-out); }
button.lib-amrow:hover, a.lib-amrow:hover { background: var(--l-hover); color: var(--l-ink); }
.lib-amrow:focus-visible { outline: 2px solid var(--l-ink); outline-offset: -2px; }
.lib-amrow-i { display: grid; flex: none; width: 28px; height: 28px; place-items: center; color: var(--l-ink-3); transition: color .14s var(--l-out); }
.lib-amrow-i svg { width: 19px; height: 19px; }
button.lib-amrow:hover .lib-amrow-i, a.lib-amrow:hover .lib-amrow-i { color: var(--l-ink); }
.lib-amrow-w { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-amrow-go { display: grid; flex: none; color: var(--l-ink-4); }
.lib-amrow-go svg { width: 16px; height: 16px; }
/* Appearance and Language: the word, and the choice on the right on its own track (the word never cut short) */
.lib-amrow.is-look { cursor: default; gap: 12px; padding-right: 4px; }
.lib-amrow.is-look .lib-amrow-w { flex: 1 0 auto; overflow: visible; }
/* 21 November 2026 (audit pass 5): "Match this device" does not fit beside the word, so the choice takes its own line under
   it, in line with the word (the icon's 28 px and the 12 px gap) */
.lib-amrow.is-look { flex-wrap: wrap; row-gap: 8px; }
.lib-am .lib-amrow.is-look .lib-seg { flex: 1 1 100%; margin-left: 40px; }
.lib-am .lib-seg { min-width: 172px; }
.lib-am .lib-seg > button { flex: 1 1 auto; padding: 0 10px; font-size: 13px; white-space: nowrap; }
/* Log out: quiet, alone at the foot */
.lib-acctbox .lib-you-foot { margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid var(--l-line); }
.lib-amrow.is-out { color: var(--l-ink-3); }
.lib-amrow.is-out:hover { color: var(--l-ink); }
/* the one view's own pieces in the card (one.js): its Español switch and its Sign out, on the rows' grid */
.lib-am > .lib-switch { width: 100%; min-height: 46px; margin: 0; padding: 0 10px 0 47px; }
.lib-acctbox .lib-you-foot > .one-out { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 10px 0 47px; border-radius: 12px; color: var(--l-ink-3); }
.lib-acctbox .lib-you-foot > .one-out:hover { background: var(--l-hover); color: var(--l-ink); }
/* the rows rise as the card opens, a beat apart */
.lib-acctbox:not(.is-page) :is(.lib-acct, .lib-amrow, .dpa-cap) { opacity: 0; translate: 0 -4px; }
.lib-acctbox:not(.is-page).is-open :is(.lib-acct, .lib-amrow, .dpa-cap) { opacity: 1; translate: 0 0; transition: opacity .28s var(--l-out), translate .44s var(--l-spring), background-color .14s var(--l-out), color .14s var(--l-out); }
.lib-acctbox.is-open .lib-am > :nth-child(2) { transition-delay: .03s; } .lib-acctbox.is-open .lib-am > :nth-child(3) { transition-delay: .05s; }
.lib-acctbox.is-open .lib-am > :nth-child(4) { transition-delay: .07s; } .lib-acctbox.is-open .lib-am > :nth-child(5) { transition-delay: .09s; }
.lib-acctbox.is-open .dpa-group > * { transition-delay: .11s; } .lib-acctbox.is-open .dpa-group > :nth-child(3) { transition-delay: .13s; }
.lib-acctbox.is-open .lib-you-foot .lib-amrow { transition-delay: .15s; }
.lib-acctbox.is-open :is(.lib-amrow, .lib-acct):hover { transition-delay: 0s; }
/* on a phone the card is a page: the same rows, with more room for a finger */
.lib-acctbox.is-page .lib-acct:not(.is-out) { padding: 6px 0 12px; }
.lib-acctbox.is-page .lib-amrow { width: calc(100% + 16px); min-height: 52px; margin: 0 -8px; padding: 0 10px 0 6px; font-size: 16px; }
.lib-acctbox.is-page .lib-am-sep { margin: 8px 0; }
.lib-acctbox.is-page .dpa-cap { margin: 8px 0 4px; font-size: 14px; }

/* ── 5. The card's panes: Settings, and Display and accessibility. A pane takes the card's place with a slide; its way back
      is the pill at its top ── */
.lib-acctbox .lib-sub { padding: 10px 12px 12px; animation: l-pane .28s var(--l-out) both; }
.lib-acctbox .lib-sub.is-back { animation-name: l-pane-back; }
.lib-acctbox.is-page .lib-sub { padding: 0 0 8px; }
.lib-sub .lib-page-back { margin: 0 0 12px; }
.lib-sub .lib-pane-h { margin: 0; }
.lib-set-pane { margin-top: 14px; padding-top: 8px; }
.lib-sub .lib-plans { margin-top: 10px; }
.lib-acctbox.is-page .lib-sub .lib-pane-h { font-size: 28px; }
/* Display and accessibility: whole in the window on a computer and an iPad lying down (the owner, 19 November 2026), so
   the groups and the switches sit closer and each switch has one short line */
.lib-look .lib-pane-h { margin-bottom: 8px; }
.lib-look-g { display: grid; gap: 7px; padding: 10px 0 12px; border-top: 1px solid var(--l-line); }
.lib-look-l { margin: 0; font-size: 15px; line-height: 1.3; color: var(--l-ink); }
/* the hairline before a switch row is as wide as the groups' own (the row itself reaches 10 px further each side) */
.lib-look .lib-switch { position: relative; }
.lib-look-g + .lib-switch::before, .lib-look [data-look-field] + .lib-switch::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; height: 1px; background: var(--l-line); }
.lib-look .lib-switch { align-items: center; min-height: 46px; padding-top: 5px; padding-bottom: 5px; }
.lib-look .lib-switch-t { gap: 1px; }
.lib-look .lib-seg { display: flex; width: 100%; }
.lib-look .lib-seg > button { flex: 1 1 auto; height: 32px; }
.lib-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--l-line-3); }
/* a choice of two to four on one grey track, the chosen one on a white plate that slides to the next (BiteSized's section
   19). The plate is measured from the chosen option (find.js segPaint), so the words keep their own widths */
.lib-seg { position: relative; isolation: isolate; display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--l-surface-2); }
.lib-seg::before { content: ""; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: var(--seg-w, 0); border-radius: 999px; background: var(--l-surface); box-shadow: 0 1px 2px rgba(26,26,26,.1), 0 0 0 1px var(--l-line); transform: translateX(var(--seg-x, 0)); opacity: 0; }
:root[data-theme="dark"] .lib-seg::before { background: color-mix(in srgb, var(--l-ink) 13%, var(--l-surface-2)); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.lib-seg.has-on::before { opacity: 1; }
.lib-seg.is-set::before { transition: transform .42s var(--l-spring), width .42s var(--l-spring), opacity .2s var(--l-out); }
.lib-seg > button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 13.5px; line-height: 1; color: var(--l-ink-3); white-space: nowrap; transition: color .16s var(--l-out); }
.lib-seg > button:hover, .lib-seg > button[aria-pressed="true"] { color: var(--l-ink); }
.lib-seg > button:focus-visible { outline: 2px solid var(--l-ink); outline-offset: -1px; }
@media (max-width: 760px) {
  .lib-look .lib-seg > button { height: 38px; font-size: 14.5px; }
  .lib-look-l { font-size: 16px; }
  .lib-look .lib-switch-t small { font-size: 14.5px; }
}

/* ── 6. The choice dialog of the family (BiteSized's .hl-dialog, clean.css sections 10 and 25): in the middle of the window over
      a soft veil; a sheet from the bottom on a phone. The title in the serif with one quiet line, Close as a small pill, a
      calm grey field, the two main choices as cards, the chosen one ringed in ink with a tick, the rest in two columns ── */
.hl-dialog { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 24px; }
.hl-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--l-page) 62%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .24s var(--l-out); touch-action: none; }
.hl-panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: 100%; overflow: hidden; border: 1px solid var(--l-line-2); border-radius: 22px; background: var(--l-surface); color: var(--l-ink); box-shadow: var(--l-shadow-pop); outline: none; opacity: 0; translate: 0 12px; transition: opacity .2s var(--l-out), translate .4s var(--l-spring); }
.hl-dialog.is-open .hl-scrim, .hl-dialog.is-open .hl-panel { opacity: 1; translate: 0 0; }
.hl-dialog--find .hl-panel { height: min(680px, 100%); }
html[data-text="large"] .hl-dialog { zoom: 1.16; }
.hl-head { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 22px 0 28px; }
.hl-head-w { min-width: 0; }
.hl-title { margin: 0; font-family: var(--l-serif); font-size: 25px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.hl-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--l-ink-3); text-wrap: pretty; }
.hl-close { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--l-surface); box-shadow: inset 0 0 0 1px var(--l-line-2); font-size: 14px; color: var(--l-ink-2); transition: box-shadow .2s var(--l-out), background-color .2s var(--l-out), color .2s var(--l-out), scale .12s var(--l-out); }
.hl-close svg { width: 15px; height: 15px; }
.hl-close:hover { background: var(--l-hover); box-shadow: inset 0 0 0 1px var(--l-line-3); color: var(--l-ink); }
.hl-close:active { scale: .97; }
.hl-close:focus-visible { outline: 2px solid var(--l-ink); outline-offset: 2px; }
.hl-find { position: relative; display: block; flex: none; margin: 18px 22px 0; }
.hl-find svg { position: absolute; top: 50%; left: 14px; width: 17px; height: 17px; color: var(--l-ink-3); translate: 0 -50%; pointer-events: none; }
.hl-find-in { display: block; width: 100%; height: 44px; margin: 0; padding: 0 16px 0 42px; border: 1px solid transparent; border-radius: 12px; background: var(--l-surface-2); color: var(--l-ink); font: inherit; font-size: 15px; outline: none; transition: border-color .2s var(--l-out), background-color .2s var(--l-out), box-shadow .2s var(--l-out); }
.hl-find-in::placeholder { color: var(--l-ink-3); opacity: 1; }
.hl-find-in:focus { border-color: var(--l-line-3); background: var(--l-surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--l-ink) 7%, transparent); }
/* what scrolls fades at its edges */
.hl-body { position: relative; flex: 1 1 auto; min-height: 0; padding: 16px 22px 22px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%); }
.hl-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--l-ink); cursor: pointer; }
.hl-item[hidden], .hl-top[hidden], .hl-list-h[hidden], .hl-none[hidden] { display: none; }
.hl-item:focus-visible { outline: 2px solid var(--l-ink); outline-offset: -2px; }
.hl-panel:focus-visible { outline: 0; }
.hl-tick { display: grid; flex: none; place-items: center; }
/* the main choices: cards side by side */
.hl-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hl-top > .hl-item { position: relative; min-height: 76px; padding: 14px 34px 14px 16px; border: 1px solid var(--l-line-2); border-radius: 16px; background: var(--l-surface); transition: border-color .18s var(--l-out), background-color .18s var(--l-out); }
.hl-top > .hl-item:focus-visible { outline-offset: 2px; }
.hl-item-ic { display: grid; flex: none; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--l-surface-2); color: var(--l-ink-3); transition: background-color .18s var(--l-out), color .18s var(--l-out); }
.hl-item-ic svg { width: 19px; height: 19px; }
.hl-code { font-size: 12.5px; letter-spacing: .04em; }
.hl-item-t { flex: 1 1 auto; min-width: 0; }
.hl-item-t b { display: block; font-weight: 400; font-size: 16px; line-height: 1.3; }
.hl-item-t small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--l-ink-3); }
.hl-top > .hl-item > .hl-tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--l-ink); color: var(--l-surface); opacity: 0; transform: scale(.6); transition: opacity .2s var(--l-out), transform .32s var(--l-spring); }
.hl-top > .hl-item > .hl-tick svg { width: 12px; height: 12px; }
.hl-top > .hl-item[aria-checked="true"] { border-color: var(--l-ink); }
.hl-top > .hl-item[aria-checked="true"] > .hl-tick { opacity: 1; transform: scale(1); }
.hl-top > .hl-item[aria-checked="true"] .hl-item-ic { background: var(--l-ink); color: var(--l-surface); }
/* the long list, compact; the chosen one on a plate with its tick where its quiet second name was */
.hl-list { margin-top: 18px; }
.hl-top[hidden] + .hl-list { margin-top: 0; }
.hl-list-h { margin: 0; padding: 4px 4px 10px; font-size: 13px; color: var(--l-ink-3); }
.hl-item--row { min-height: 42px; padding: 8px 12px; gap: 10px; border-radius: 10px; transition: background-color .15s var(--l-out); }
.hl-item-w { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.3; }
.hl-item-n { flex: none; font-size: 13px; color: var(--l-ink-3); }
.hl-item--row > .hl-tick { width: 16px; opacity: 0; transition: opacity .2s var(--l-out); }
.hl-item--row > .hl-tick svg { width: 16px; height: 16px; }
.hl-item--row[aria-checked="true"] { background: var(--l-surface-2); }
.hl-item--row[aria-checked="true"] > .hl-tick { opacity: 1; }
.hl-item--row[aria-checked="true"] .hl-item-n { display: none; }
@media (hover: hover) {
  .hl-item--row:hover { background: var(--l-hover); } .hl-item--row[aria-checked="true"]:hover { background: var(--l-surface-2); }
  .hl-top > .hl-item:hover { border-color: var(--l-line-3); } .hl-top > .hl-item[aria-checked="true"]:hover { border-color: var(--l-ink); }
}
.hl-none { margin: 0; padding: 14px 4px; font-size: 14.5px; color: var(--l-ink-3); }
@media (min-width: 640px) {
  .hl-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; align-content: start; }
  .hl-list > p { grid-column: 1 / -1; }
}
/* a phone: the same choice as a sheet from the bottom, as wide as the screen */
@media (max-width: 639.98px) {
  .hl-dialog { place-items: end center; padding: 16px 0 0; }
  .hl-panel { max-width: none; border-bottom: 0; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); translate: 0 24px; }
  .hl-dialog--find .hl-panel { height: min(640px, 100%); }
  .hl-head { padding: 22px 16px 0 22px; }
  .hl-title { font-size: 24px; }
  .hl-find { margin: 14px 16px 0; }
  .hl-find-in { height: 48px; font-size: 16px; }
  .hl-body { padding: 14px 14px 24px; }
  .hl-top { grid-template-columns: 1fr; gap: 8px; }
  .hl-top > .hl-item { min-height: 68px; }
  .hl-item--row { min-height: 50px; }
  .hl-item-w { font-size: 16px; }
  .hl-item-n { font-size: 14px; }
}

/* ── 7. The footer (BiteSized's .cl-foot, clean.css section 18): the mark and the name with one line, the documents, then a
      hairline and the small print, as wide as the page's column ── */
.lib-foot { position: relative; z-index: 1; width: min(var(--l-foot-w, 760px), calc(100% - 48px)); margin: 96px auto 0; padding: 28px 8px 30px; border-top: 1px solid var(--l-line); color: var(--l-ink-3); }
.lib-page-home .lib-foot { margin-top: 0; }
.lib-page-search { --l-foot-w: 680px; }
.lib-page-video { --l-foot-w: 1176px; }
.lib-foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.lib-foot-brand { display: flex; align-items: center; gap: 12px; }
.lib-foot-mark { display: grid; width: 30px; height: 30px; place-items: center; }
.lib-foot-w { display: flex; flex-direction: column; gap: 1px; }
.lib-foot-w b { font-weight: 400; font-size: 15.5px; color: var(--l-ink); }
.lib-foot-w small { font-size: 13px; color: var(--l-ink-3); }
.lib-foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.lib-foot-links :is(button, a) { display: inline-flex; align-items: center; text-decoration: none; height: 34px; padding: 0 10px; border-radius: 999px; font-size: 13.5px; color: var(--l-ink-3); transition: background-color .16s var(--l-out), color .16s var(--l-out); }
.lib-foot-links :is(button, a):hover { background: var(--l-hover); color: var(--l-ink); }
.lib-foot-links :is(button, a):focus-visible { outline: 2px solid var(--l-ink); outline-offset: 2px; }
.lib-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--l-line); font-size: 12.5px; color: var(--l-ink-3); }
@media (max-width: 760px) {
  .lib-foot { width: calc(100% - 32px); margin-top: 64px; padding: 24px 4px calc(28px + env(safe-area-inset-bottom)); }
  .lib-foot-top { flex-direction: column; align-items: flex-start; }
  .lib-foot-links { margin-left: -10px; }
  .lib-foot-w small, .lib-foot-base { font-size: 14px; }
  .lib-foot-links :is(button, a) { height: 44px; font-size: 15px; }   /* How Ask works and Accessibility alike (audit pass 4) */
}

/* ── 8. The loader (BiteSized's #splash, index.html): on the page's own colour the mark draws its outline with a thin line,
      both shapes at once, then the ink fills it and it breathes slowly while the page gets ready; when the page is ready
      it grows a touch and fades (find.js splashGone). If find.js never ran, it goes by itself after nine seconds ── */
.lib-splash { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: var(--l-page); transition: opacity .45s cubic-bezier(.4,0,.2,1); animation: lib-splash-away .4s ease-out 9s forwards; }
.lib-splash.is-gone { opacity: 0; pointer-events: none; }
.lib-splash svg { display: block; overflow: visible; transition: scale .45s var(--l-out), opacity .3s ease-out; }
.lib-splash.is-gone svg { scale: 1.06; opacity: 0; }
.lib-sp-line { fill: none; stroke: var(--l-ink); stroke-width: 1.3; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lib-sp-trace 1.1s cubic-bezier(.65,0,.35,1) .08s forwards, lib-sp-line-out .5s ease-out 1.45s forwards; }
.lib-sp-fill { fill: var(--l-ink); opacity: 0; animation: lib-sp-fill .6s cubic-bezier(.4,0,.2,1) .95s forwards, lib-sp-breathe 2.8s ease-in-out 1.6s infinite; }
@keyframes lib-sp-trace { to { stroke-dashoffset: 0; } }
@keyframes lib-sp-fill { to { opacity: 1; } }
@keyframes lib-sp-line-out { to { opacity: 0; } }
@keyframes lib-sp-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .74; } }
@keyframes lib-splash-away { to { opacity: 0; visibility: hidden; } }
/* the same mark on the tour's welcome (ask-tour.js, 20 November 2026): the outline, a light that runs once around each square
   (ask-tour.js moves it), then filled; under reduced motion it stands filled */
.ask-wm-line, .ask-wm-glow, .ask-wm-core { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ask-wm-line { stroke-width: 1.3; opacity: .42; transition: opacity .45s ease-out; }
.ask-wm-glow { stroke-width: 9; opacity: 0; stroke-dasharray: 18 82; filter: blur(3px); }
.ask-wm-core { stroke-width: 2.2; opacity: 0; stroke-dasharray: 12 88; }
.ask-wm-fill { fill: currentColor; opacity: 0; transition: opacity .45s ease-out; }
.ask-wm.is-full .ask-wm-fill { opacity: 1; }
.ask-wm.is-full .ask-wm-line { opacity: 0; }

/* ── 9. Thinking (item 18): the app's mark alone, drawn as a line that breathes, as the loader's does; the word in plain ink,
      in the serif the answer will be read in; the steps as they were ── */
.lib-think-mark { width: 30px; height: 28px; border-radius: 0; background: none; color: var(--l-ink); }
.lib-think-mark svg { width: 28px; height: 28px; overflow: visible; animation: lib-think-breathe 2.6s ease-in-out infinite; }
.lib-think-mark svg path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
@keyframes lib-think-breathe { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .38; scale: .94; } }
.lib-think-w { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: var(--l-ink); animation: none; }
.lib-think.is-chat .lib-think-mark { width: 26px; height: 24px; border-radius: 0; }
.lib-think.is-chat .lib-think-mark svg { width: 24px; height: 24px; }

/* ── Less motion: the device's setting, or the app's own (html.a11y-reduce-motion, look.js) ── */
@media (prefers-reduced-motion: reduce) {
  .lib-top, html.is-down .lib-top:not(:focus-within), .lib-brand, .lib-name, .lib-nl, .lib-acctbox, .lib-acctbox :is(.lib-acct, .lib-amrow, .dpa-cap), .hl-scrim, .hl-panel, .hl-top > .hl-item > .hl-tick, .lib-splash svg { transition: opacity .12s linear !important; transform: none !important; translate: none !important; scale: none !important; filter: none !important; }
  .lib-seg::before, .lib-seg.is-set::before { transition: none !important; }
  .lib-acctbox .lib-sub, .lib-think-mark svg, .lib-setp-sec { animation: none; }
  .lib-sp-line { animation: none; opacity: 0; } .lib-sp-fill { animation: none; opacity: 1; }
}
html.a11y-reduce-motion :is(.lib-top, .lib-brand, .lib-name, .lib-nl, .lib-acctbox, .lib-acctbox .lib-acct, .lib-acctbox .lib-amrow, .lib-acctbox .dpa-cap, .hl-scrim, .hl-panel, .hl-top > .hl-item > .hl-tick, .lib-splash svg) { transition: opacity .12s linear !important; transform: none !important; translate: none !important; scale: none !important; filter: none !important; }
html.a11y-reduce-motion .lib-seg::before, html.a11y-reduce-motion .lib-seg.is-set::before { transition: none !important; }
html.a11y-reduce-motion :is(.lib-acctbox .lib-sub, .lib-think-mark svg, .lib-setp-sec) { animation: none; }
html.a11y-reduce-motion .lib-sp-line { animation: none; opacity: 0; } html.a11y-reduce-motion .lib-sp-fill { animation: none; opacity: 1; }

/* ── 7. Settings, a page of its own (the owner, 19 November 2026; BiteSized's Settings view). On a computer the sections are a
      column at the left and the chosen one is drawn at the right in a reading column; on a phone the list of the sections
      first, each opening as a page with Settings as its way back ── */
.lib-setp { position: relative; z-index: 1; width: min(1040px, 100%); margin: 0 auto; padding: 20px 32px 72px; }
.lib-setp > .lib-page-back { margin: 0 0 18px; }
.lib-setp-h { margin: 0 0 28px; font-family: var(--l-serif); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: -.012em; color: var(--l-ink); }
.lib-setp-wrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 52px; align-items: start; }
.lib-setp-nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.lib-setp-link { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; font-size: 15.5px; line-height: 1.25; color: var(--l-ink-2); text-decoration: none; transition: background-color .16s var(--l-out), color .16s var(--l-out); }
.lib-setp-link:hover { background: var(--l-hover); color: var(--l-ink); }
.lib-setp-link[aria-current="page"] { background: var(--l-surface-2); color: var(--l-ink); }
.lib-setp-link:focus-visible { outline: 2px solid var(--l-ink); outline-offset: -2px; }
.lib-setp-ic { flex: none; display: inline-grid; place-items: center; width: 22px; color: var(--l-ink-3); }
.lib-setp-ic svg { width: 19px; height: 19px; }
.lib-setp-link[aria-current="page"] .lib-setp-ic { color: var(--l-ink); }
.lib-setp-w { flex: 1; min-width: 0; }
.lib-setp-go { display: none; flex: none; color: var(--l-ink-4); }
.lib-setp-go svg { width: 17px; height: 17px; }
.lib-setp-sec { max-width: 600px; animation: l-pane .28s var(--l-out) both; }
.lib-setp-sec-h { margin: 6px 0 16px; font-family: var(--l-serif); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--l-ink); }
.lib-setp .lib-setp-set { margin: 0; padding: 0; border-top: 0; }
.lib-setp .lib-setp-set + .lib-setp-set, .lib-setp .lib-setp-set + .lib-plans, .lib-setp .lib-plans + .lib-setp-set { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--l-line); }
/* the footer as wide as the page's own column */
.lib-page-settings { --l-foot-w: 976px; }
.lib-setp .lib-two { padding-top: 4px; }
.lib-setp-who { margin: 0 0 12px; padding: 2px 0 18px; border-bottom: 1px solid var(--l-line); }
.lib-setp-out .lib-setrow-l { color: var(--l-ink-2); }
.lib-setp-out .lib-setrow-v svg { width: 19px; height: 19px; margin-right: 0; }
.lib-setp .lib-look-g:first-child { padding-top: 2px; border-top: 0; }
/* a section's own groups (Answers, Videos) and the quiet line under a row */
.lib-setp-g { gap: 0; padding-bottom: 12px; }
.lib-setp-g + .lib-setp-g { padding-top: 12px; }
.lib-setp-note { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: var(--l-ink-3); }
.lib-setp-clear:disabled { cursor: default; }
/* what the account keeps in Doctorpedia One: the family's component (in-one.css, carried byte for byte), which reads the clean
   look's tokens (--cl-*); here they are Ask's own, so it follows the appearance, the page tone and more contrast */
.in-one {
  --cl-ink: var(--l-ink); --cl-ink-2: var(--l-ink-2); --cl-ink-3: var(--l-ink-3); --cl-ink-4: var(--l-ink-4);
  --cl-surface: var(--l-surface); --cl-surface-2: var(--l-surface-2);
  --cl-line: var(--l-line); --cl-line-2: var(--l-line-2); --cl-line-3: var(--l-line-3); --cl-hover: var(--l-hover);
  --cl-lilac: var(--l-ink); --cl-out: var(--l-out); --cl-sans: var(--l-sans);
}
/* on the Settings page the bare card of one row sits in the section's own column */
.lib-setp-one .in-one--bare { margin: 0; }
/* Ask's own rows, drawn only where the component is not loaded */
.lib-setp-one { margin: 4px 0 6px; }
.lib-setp-one.is-card { margin: 4px 0 14px; }
.lib-setp-one-t { margin: 0; font-size: 15.5px; color: var(--l-ink); }
.lib-setp-onerow .lib-setrow-l { display: grid; gap: 2px; }
.lib-setp-onerow .lib-setrow-l small { font-size: 14px; color: var(--l-ink-3); }
.lib-setp-clear:disabled:hover { background: none; }
.lib-setp-clear:disabled .lib-setrow-l { color: var(--l-ink-3); }
@media (max-width: 760px) {
  .lib-setp { padding: 8px 20px 48px; }
  .lib-setp > .lib-page-back { margin-bottom: 16px; }
  .lib-setp-h { margin-bottom: 18px; font-size: 32px; }
  .lib-setp-nav { position: static; gap: 0; }
  .lib-setp-link { min-height: 58px; margin: 0 -10px; padding: 0 10px; font-size: 17px; }
  .lib-setp-link[aria-current="page"] { background: none; }
  .lib-setp-ic svg { width: 21px; height: 21px; }
  .lib-setp-go { display: inline-grid; }
  .lib-setp-sec { max-width: none; }
}

/* ── 8. Text size in a conversation (19 November 2026; reading.js, brought from BiteSized's views/reading.css). The five
      sizes become two factors the conversation's sizes are multiplied by: --rd-k for the answers, the quote and a
      follow-up, --rd-t for a question's title, which grows more gently. The middle size is the page as it was. Then the
      pill and its panel, the round Aa that follows the reader, and the words changing size softly ── */
html { --rd-k: 1; --rd-t: 1; }
html[data-read-size="smaller"] { --rd-k: .88; --rd-t: .92; }
html[data-read-size="small"] { --rd-k: .94; --rd-t: .96; }
html[data-read-size="large"] { --rd-k: 1.12; --rd-t: 1.06; }
html[data-read-size="larger"] { --rd-k: 1.26; --rd-t: 1.12; }
.lib-thread .lib-res-title { font-size: calc(34px * var(--rd-t)); }
.lib-thread .lib-res-title.is-next { font-size: calc(27px * var(--rd-t)); }
.lib-thread .lib-asked .lib-res-title.is-next { font-size: calc(19.5px * var(--rd-k)); }
.lib-thread .lib-w-body { font-size: calc(20px * var(--rd-k)); }
.lib-thread .lib-w-quote p { font-size: calc(18px * var(--rd-k)); }
@media (max-width: 760px) {
  .lib-thread .lib-res-title { font-size: calc(27px * var(--rd-t)); }
  .lib-thread .lib-res-title.is-next { font-size: calc(23px * var(--rd-t)); }
  .lib-thread .lib-asked .lib-res-title.is-next { font-size: calc(18px * var(--rd-k)); }
  .lib-thread .lib-w-body { font-size: calc(18.5px * var(--rd-k)); }
}
.lib-thread :is(.lib-res-title, .lib-w-body, .lib-w-quote p) { transition: font-size .4s var(--l-out); }
/* a video's page: the transcript and the summary take the size, the pill sits at the right of Back */
.lv-lines button, .lv-lines .lv-plain { font-size: calc(17px * var(--rd-k)); }
.lv-sum [data-lv-sum] { font-size: calc(19px * var(--rd-k)); }
@media (max-width: 760px) {
  .lv-lines button, .lv-lines .lv-plain { font-size: calc(16.5px * var(--rd-k)); }
  .lv-sum [data-lv-sum] { font-size: calc(17px * var(--rd-k)); }
}
:is(.lv-lines button, .lv-lines .lv-plain, .lv-sum [data-lv-sum]) { transition: font-size .4s var(--l-out), background-color .3s var(--l-out), color .3s var(--l-out); }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* the row at the top of a conversation: Text size at the right */
.lib-rd-top { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.rd { position: relative; }
/* the pill is the page's other pills: a hairline, the sans at 15 px, its mark and its word */
.rd-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border: 1px solid var(--l-line-2); border-radius: 999px; background: var(--l-surface); font-family: var(--l-sans); font-size: 15px; color: var(--l-ink); cursor: pointer; transition: background-color .16s var(--l-out), border-color .16s var(--l-out); }
.rd-btn > svg { width: 19px; height: 19px; color: var(--l-ink-2); }
@media (hover: hover) { .rd-btn:hover { border-color: var(--l-line-3); background: var(--l-hover); } }
.rd-btn[aria-expanded="true"] { border-color: transparent; background: var(--l-surface-2); }
.rd-btn:focus-visible, .rd-a:focus-visible { outline: 2px solid var(--l-ink); outline-offset: 2px; }
.rd-btn:active { scale: .97; }
/* the panel: under the pill, its right edge on the pill's; it opens from the pill with the family's spring */
.rd-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; width: 320px; max-width: calc(100vw - 32px); padding: 12px 12px 14px; border: 1px solid var(--l-line-2); border-radius: 22px; background: var(--l-surface); box-shadow: var(--l-shadow-pop); transform-origin: calc(100% - 30px) -10px;
  opacity: 0; visibility: hidden; translate: 0 -6px; scale: .97; transition: opacity .14s var(--l-out), translate .2s var(--l-out), scale .2s var(--l-out), visibility 0s linear .2s; }
.rd.is-open .rd-pop { opacity: 1; visibility: visible; translate: 0 0; scale: 1; transition: opacity .2s var(--l-out), translate .5s var(--l-spring), scale .5s var(--l-spring), visibility 0s; }
.rd-pop__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; }
/* the two A's, in the serif the answers are read in: the small one makes the text smaller, the large one larger */
.rd-a { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; font-family: var(--l-serif); font-weight: 400; line-height: 1; color: var(--l-ink); cursor: pointer; }
.rd-a--less { font-size: 15px; }
.rd-a--more { font-size: 25px; }
@media (hover: hover) { .rd-a:not([aria-disabled="true"]):hover { background: var(--l-hover); } }
.rd-a:not([aria-disabled="true"]):active { background: var(--l-press); }
.rd-a[aria-disabled="true"] { color: var(--l-ink-4); opacity: .4; cursor: default; }
/* the line and its five stops: the rail is the line without its ends, so the first and the last stop are not cut */
.rd-track { position: relative; height: 44px; border-radius: 999px; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.rd-track:focus-visible { outline: 2px solid var(--l-ring); outline-offset: 2px; }   /* the keyboard sees where it is (audit pass 4) */
.rd-rail { position: absolute; top: 50%; left: 11px; right: 11px; height: 0; pointer-events: none; }
.rd-line, .rd-fill { position: absolute; top: -1px; left: 0; height: 2px; border-radius: 2px; }
.rd-line { right: 0; background: var(--l-line-2); }
.rd-fill { width: calc(var(--rd-i, 2) * 25%); background: var(--l-ink-3); transition: width .5s var(--l-spring); }
/* each stop is a small bead on the line: in the line's ink up to the chosen one, in its grey after it */
.rd-dot { position: absolute; top: -3px; left: calc(var(--rd-n) * 25%); width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--l-line-3); background: color-mix(in srgb, var(--l-ink-3) clamp(0%, calc((var(--rd-i, 2) - var(--rd-n) + 1) * 100%), 100%), var(--l-line-3)); transition: background-color .3s var(--l-out); }
.rd-thumb { position: absolute; top: -9px; left: calc(var(--rd-i, 2) * 25%); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--l-ink); box-shadow: 0 0 0 3px var(--l-surface), var(--l-shadow-1); transition: left .5s var(--l-spring); }
.rd-track:focus-visible .rd-thumb { box-shadow: 0 0 0 3px var(--l-surface), 0 0 0 5px var(--l-ink-3); }
/* the name of the chosen size, under the line */
.rd-pop__now { margin: 2px 0 0; font-size: 14px; line-height: 1.3; text-align: center; color: var(--l-ink-3); }
/* the round Aa that follows the reader: 40 px, a hairline, the mark alone; its word is kept for a screen reader */
.rd-btn--round { position: relative; justify-content: center; gap: 0; width: 40px; height: 40px; padding: 0; overflow: hidden; }
.rd-btn--round > svg { flex: none; width: 18px; height: 18px; }
.rd-btn--round .rd-btn__w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* a wide screen: in the margin at the left of the column, a third of the way down the window, still while the page moves.
   --rd-sr is the distance from the window's right edge to 20 px left of the column, --rd-st its height, --rd-pw the
   width its panel has in the margin. On hover, or with the keyboard on it, the word opens out of it to the left */
.rd--side { position: fixed; z-index: 60; top: var(--rd-st, 30vh); right: var(--rd-sr, auto); margin: 0;
  opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity .18s var(--l-out), translate .3s var(--l-out), visibility 0s linear .3s; }
.rd--side.is-shown { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s var(--l-out), translate .6s var(--l-spring), visibility 0s; }
.rd--side .rd-btn--round { flex-direction: row-reverse; transition: width .42s var(--l-spring), padding .42s var(--l-spring), gap .42s var(--l-spring), border-color .2s var(--l-out), background-color .2s var(--l-out); }
.rd--side .rd-btn--round:is(:hover, :focus-visible, [aria-expanded="true"]) { width: auto; padding: 0 13px 0 15px; gap: 8px; justify-content: space-between; }
.rd--side .rd-btn--round:is(:hover, :focus-visible, [aria-expanded="true"]) .rd-btn__w { position: static; width: auto; height: auto; clip-path: none; font-size: 14.5px; }
.rd--side .rd-pop { width: var(--rd-pw, 320px); }
/* a phone or a narrow window: in the top bar, left of New; its panel drops under the bar, across the screen less the gutters */
.rd--bar { display: none; position: static; margin: 0; }
.rd--bar.is-shown { display: block; }
.rd--bar.is-shown .rd-btn--round { animation: rd-in .42s var(--l-spring); }
.rd--bar .rd-pop { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; max-width: none; transform-origin: 70% -10px; }
@keyframes rd-in { from { opacity: 0; scale: .86; } to { opacity: 1; scale: 1; } }
/* the bar stays while its panel is open, even when the page moves under it */
html.rd-bar-open.is-down .lib-top { translate: none; opacity: 1; pointer-events: auto; }
/* while a size is being changed down in a conversation, reading.js keeps the paragraph in view in its place; the browser's
   own way of keeping something in place stands aside for that moment */
html.rd-holding { overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) {
  :is(.rd-pop, .rd--side, .rd--bar), :is(.rd-pop, .rd--side, .rd--bar) * { translate: none; scale: none; transition: none !important; animation: none !important; }
  .rd-fill, .rd-thumb, .rd-btn, .rd-a, .lib-thread :is(.lib-res-title, .lib-w-body, .lib-w-quote p) { transition: none; }
}
html.a11y-reduce-motion :is(.rd-pop, .rd--side, .rd--bar), html.a11y-reduce-motion :is(.rd-pop, .rd--side, .rd--bar) * { translate: none; scale: none; transition: none !important; animation: none !important; }
html.a11y-reduce-motion :is(.rd-fill, .rd-thumb, .lib-thread .lib-res-title, .lib-thread .lib-w-body, .lib-thread .lib-w-quote p, .lv-lines button, .lv-lines .lv-plain, .lv-sum [data-lv-sum]) { transition: none; }

/* Ask · Latest (20 November 2026): the two places of Ask as one quiet switch at the start of the bar's pill, sentence case,
   the place one is in on a soft grey */
.lib-sw { flex: none; display: inline-flex; align-items: center; gap: 2px; }
.lib-sw-a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; line-height: 1; color: var(--l-ink-3); text-decoration: none; transition: background-color .16s var(--l-out), color .16s var(--l-out); }
.lib-sw-a:hover { background: var(--l-hover); color: var(--l-ink); }
.lib-sw-a[aria-current="page"] { background: var(--l-surface-2); color: var(--l-ink); font-weight: 600; }
.lib-sw-a:focus-visible { outline: 2px solid var(--l-ring); outline-offset: -2px; }
@media (min-width: 761px) { .lib-omni .lib-sw-sep { display: block; } }
/* on a phone the switch takes the room History's word had: History and Settings keep their icon, with their names still
   read out, so the bar fits 390 px with Sign in, New and the portrait */
@media (max-width: 760px) {
  .lib-sw { height: 40px; padding: 2px; border-radius: 999px; background: var(--l-surface); box-shadow: inset 0 0 0 1px var(--l-line-2); }
  .lib-sw-a { height: 36px; padding: 0 11px; }
  .lib-omni { gap: 6px; }
  .lib-top .lib-hist { width: 40px; padding: 0; justify-content: center; }
  .lib-top .lib-you:not(.is-who) { width: 40px; padding: 0; justify-content: center; }
  .lib-top .lib-hist .lib-lbl, .lib-top .lib-you:not(.is-who) .lib-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lib-top .lib-hist .lib-hist-c { display: none; }
  .lib-top .lib-in { padding: 0 13px; }
}
@media (max-width: 350px) { .lib-sw-a { padding: 0 8px; } .lib-top .lib-in { padding: 0 10px; } }
/* Spanish on a phone, signed out (20 November 2026, audit: "Preguntar", "Novedades" and "Iniciar sesión" pushed Settings off a
   390 px screen): the switch a little tighter and Sign in by its short word, "Entrar"; under 375 px its sign with the word
   under it. The full words stay the link's name (find.js topRight) */
.lib-in-i, .lib-in-s { display: none; }
@media (max-width: 480px) {
  html[lang="es"] .lib-top { gap: 6px; padding: 0 10px 0 12px; }
  html[lang="es"] .lib-top .lib-omni { gap: 4px; margin-left: 2px; }
  html[lang="es"] .lib-top .lib-top-r { gap: 6px; }
  html[lang="es"] .lib-top .lib-sw-a { padding: 0 8px; font-size: 13.5px; }
  html[lang="es"] .lib-top .lib-hist, html[lang="es"] .lib-top .lib-you:not(.is-who) { width: 38px; }
  html[lang="es"] .lib-top .lib-in { padding: 0 12px; }
  html[lang="es"] .lib-in-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html[lang="es"] .lib-in-s { display: inline; }
}
@media (max-width: 374px) {
  html[lang="es"] .lib-top, html[lang="es"] .lib-top .lib-top-r { gap: 4px; }
  html[lang="es"] .lib-top .lib-sw-a { padding: 0 6px; }
  html[lang="es"] .lib-top .lib-in { flex-direction: column; justify-content: center; gap: 1px; width: 44px; padding: 0; }
  html[lang="es"] .lib-in-i { display: inline-flex; }
  html[lang="es"] .lib-in-i svg { width: 17px; height: 17px; }
  html[lang="es"] .lib-in-s { font-size: 10.5px; line-height: 1.1; }
}
.lib-sw[hidden], .lib-sw-sep[hidden] { display: none; }   /* signed in, the places carry Ask and Latest (find.js head) */
