/* Clean, 9 November 2026: the first screens, the door, the intro, the onboarding, notifications and search, in the design
   system. Loaded after clean.css, whose tokens (--cl-*) it uses.

   The door is the family's sign-in (17 November 2026: Dose's, which Ask Doctorpedia took the same day): a page of its own,
   the dark panel with the field of dots on the left (signin-family.css and .js) and the form in a narrow column on the
   right: the title in the serif, two fields, one ink button, the way to a new account under it. Up to 1023 px the panel
   goes and the mark stands over the form. The first screens ask two things (views/onboard.js keeps the specialty and the
   topics) and end on the briefing as it stands. Home's small layers (the menus, the filters, the notices) are white with
   a hairline and arrive with a short rise. Nothing is deleted: a hidden piece comes back by removing its rule. */

/* 0. Shared ------------------------------------------------------------------------------------------------------------ */
/* a container a script focuses (a dialog, a screen, a panel) does not wear the focus ring: its buttons do */
html :is(section, div, main, article, aside, form, dialog, h1, h2, [role="dialog"], [role="region"], [role="document"])[tabindex="-1"]:focus-visible { outline: none !important; }
@keyframes cl-drop { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
@keyframes cl-lift { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes cl-fade { from { opacity: 0; } to { opacity: 1; } }

/* 1. The door --------------------------------------------------------------------------------------------------------- */
/* The page: the screen itself scrolls (a long form, a short window); the panel stays beside it. The ground is the
   surface, not the warm page, as in Dose and Ask: white under the fields in the light theme. */
html #loginScreen { background: var(--cl-surface); align-items: stretch; justify-content: flex-start; overflow-x: hidden; overflow-y: auto; }
html #loginScreen .lg-formside { background: transparent !important; overflow: visible; }
html #loginScreen .lg-formside > .sf-col { animation: cl-lift .55s var(--cl-spring) both; }
html #loginScreen .sf-brand, html #bsRecovery .sf-brand { color: var(--cl-ink); }
html #loginScreen .sf-art .sf-brand, html #bsRecovery .sf-art .sf-brand { color: #fff; }
html #loginScreen #loginForm { gap: 22px; }
/* the title at the family's size (Dose's and Ask's are 32) */
html #loginScreen #loginForm h1 { font-family: var(--cl-serif); font-size: 32px; font-weight: 400; line-height: 1.16; letter-spacing: -.02em; color: var(--cl-ink); text-wrap: balance; }
html #loginScreen #loginForm h1 + p { font-size: 16px; color: var(--cl-ink-3); }
html #loginScreen .lg-label { font-size: 14px; font-weight: 400; line-height: 18px; color: var(--cl-ink-2); }
html #loginScreen .lg-field, html .lg-field { height: 52px; padding: 0 18px; border: 1px solid var(--cl-line-2); border-radius: 14px; background: var(--cl-surface); font-family: var(--cl-sans); font-size: 16px; line-height: 24px; color: var(--cl-ink); transition: border-color .22s var(--cl-out), box-shadow .32s var(--cl-out); }
html textarea.lg-field { height: auto; padding: 12px 16px; }
html .lg-field::placeholder { color: var(--cl-ink-4); }
html .lg-field:hover { border-color: var(--cl-line-3); }
html .lg-field:focus { border-color: var(--cl-lilac); background: var(--cl-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 16%, transparent); }
html #loginScreen #lgToggle { width: 40px; height: 40px; right: 6px; border-radius: 50%; color: var(--cl-ink-3); }
html #loginScreen #lgToggle:hover { background: var(--cl-hover); color: var(--cl-ink); }
html #loginScreen #lgForgot { min-height: 32px; font-size: 14px; color: var(--cl-ink-3); }
html #loginScreen #lgForgot:hover { color: var(--cl-ink); text-decoration: underline; text-underline-offset: 3px; }
/* Sign in: the one ink button; no flowing ring, no glow, no lift */
html .lg-cta { height: 52px; border-radius: 999px; background: var(--cl-ink); transform: none !important; transition: background-color .22s var(--cl-out), scale .12s var(--cl-out); }
html .lg-cta::before, html .lg-cta::after { display: none !important; }
html .lg-cta:hover { background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)); }
html .lg-cta:active { scale: .98; }
html .lg-cta-inner { padding: 0 20px; color: var(--cl-surface); font-size: 16px; font-weight: 400; }
html #loginScreen #loginForm .h-px.bg-border { background: var(--cl-line); }
html #loginScreen #loginForm .lg-stagger p { font-size: 14.5px; line-height: 1.5; color: var(--cl-ink-3); }
html #loginScreen #lgNewDoctor { font-weight: 400; color: var(--cl-ink); text-decoration: underline; text-decoration-color: var(--cl-line-3); text-underline-offset: 3px; }
html #loginScreen #lgNewDoctor:hover { text-decoration-color: currentColor; opacity: 1; }
html #loginScreen #loginForm .lg-stagger p + p { font-size: 13px; color: var(--cl-ink-4); }
html #loginScreen #lgNonUs { font-weight: 400; }
/* the two other ways in, one size (the family's 48) */
html #loginScreen :is(#googleBtn, #lgEmailLink) { height: 48px; border-color: var(--cl-line-2); font-size: 15px; font-weight: 400; }
html #loginScreen :is(#googleBtn, #lgEmailLink):hover { translate: none; border-color: var(--cl-line-3); background: var(--cl-hover); box-shadow: none; }
/* the email-link and reset screen (main, 3 November 2026: supabase-client.js recoveryUI draws it with inline styles, hence the
   !important). It is a screen of its own over the sign-in, and the same page: signin-family.js puts the panel on its left
   and its form in the column (.sf-page, .sf-col), so the serif title, the 52 px field and the ink and pill buttons stand
   where the sign-in's stood. Without that script it stays one panel in the middle of the page. */
html #bsRecovery { background: var(--cl-surface) !important; }
html #bsRecovery.sf-page { display: flex !important; align-items: stretch !important; justify-items: initial !important; padding: 0 !important; overflow-x: hidden; overflow-y: auto; }
html #bsRecovery .sf-col { position: relative; max-width: 400px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; animation: cl-lift .55s var(--cl-spring) both; }
html #bsRecovery:not(.sf-page) > div { position: relative; max-width: 440px !important; padding: 40px 40px 32px !important; border-color: var(--cl-line) !important; border-radius: 24px !important; background: var(--cl-surface) !important; box-shadow: var(--cl-shadow-2) !important; animation: cl-lift .55s var(--cl-spring) both; }
html #bsRecovery div > p:first-child { font-family: var(--cl-serif); font-size: 32px !important; font-weight: 400 !important; line-height: 1.16; letter-spacing: -.02em; text-wrap: balance; color: var(--cl-ink) !important; }
html #bsRecovery div > p:first-child + p { margin: 8px 0 22px !important; font-size: 16px !important; color: var(--cl-ink-3) !important; }
html #bsRecovery input { height: 52px !important; padding: 0 18px !important; border: 1px solid var(--cl-line-2) !important; border-radius: 14px !important; background: var(--cl-surface) !important; font-family: var(--cl-sans); font-size: 16px !important; color: var(--cl-ink) !important; outline: none; transition: border-color .2s var(--cl-out), box-shadow .2s var(--cl-out); }
html #bsRecovery input::placeholder { color: var(--cl-ink-4); }
html #bsRecovery input:focus { border-color: var(--cl-lilac) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 16%, transparent); }
html #bsRecovery #bsRecErr { font-size: 14px !important; }
html #bsRecovery button { height: 52px !important; border-radius: 999px !important; font-family: var(--cl-sans); font-size: 16px !important; font-weight: 400 !important; }
html #bsRecovery :is(#bsRecSend, #bsRecGo, #bsRecDone, #bsRecBack2) { background: var(--cl-ink) !important; color: var(--cl-surface) !important; }
html #bsRecovery button:not(#bsRecSend, #bsRecGo, #bsRecDone, #bsRecBack2) { height: 48px !important; margin-top: 10px !important; border-color: var(--cl-line-2) !important; font-size: 15px !important; color: var(--cl-ink) !important; }
html #bsRecovery button:not(#bsRecSend, #bsRecGo, #bsRecDone, #bsRecBack2):hover { border-color: var(--cl-line-3) !important; background: var(--cl-hover) !important; }
html #bsRecovery button:focus-visible { outline: 2px solid var(--cl-ink); outline-offset: 2px; }
/* the new-account steps (claim-door.js draws them in the same panel): the same title, the same quiet cards */
html .cd-h1 { font-family: var(--cl-serif); font-size: 36px; font-weight: 400; line-height: 1.1; letter-spacing: -.018em; color: var(--cl-ink); }
/* on the sign-in page a step's title is the family's size, as the sign-in's own */
html #loginScreen .cd-h1 { font-size: 32px; line-height: 1.16; letter-spacing: -.02em; text-wrap: balance; }
html .cd-sub { font-size: 16px; color: var(--cl-ink-3); }
html :is(.cd-pick, .cd-card, .cd-state) { border-color: var(--cl-line-2); border-radius: 18px; background: var(--cl-surface); }
html .cd-pick:hover, html .cd-pick:focus-visible { border-color: var(--cl-line-3); background: var(--cl-hover); }
html :is(.cd-who, .cd-state h2) { font-weight: 400; }
html .cd-ghost { min-height: 48px; border-color: var(--cl-line-2); font-weight: 400; color: var(--cl-ink); }
html .cd-ghost:hover { border-color: var(--cl-line-3); background: var(--cl-hover); }
html :is(.cd-link, .cd-back, .cd-eyebrow) { font-weight: 400; }
html .cd-link { text-decoration-color: var(--cl-line-3); }
html .cd-help { font-size: 13.5px; color: var(--cl-ink-3); }
html .cd-flow { background: var(--cl-page); }
/* the wait after Sign in: the mark in ink, a thin line that fills */
html #lgLoading { background: var(--cl-page) !important; }
html #lgLoading .brand-grad { width: 56px; height: 56px; border-radius: 16px; }
html #lgLoading #lgBar { background: var(--cl-ink); }
html #lgLoading .bg-muted { background: var(--cl-surface-2); }
html #lgLoading #lgLoadMsg { font-size: 15px; font-weight: 400; color: var(--cl-ink-3); }
@media (max-width: 640px) {
  html #loginScreen #loginForm h1, html #loginScreen .cd-h1 { font-size: 28px; }
  html #bsRecovery div > p:first-child { font-size: 28px !important; }
  html #bsRecovery:not(.sf-page) > div { padding: 28px 22px 24px !important; border-radius: 22px !important; box-shadow: none !important; }
}
}

/* 2. The intro (shown once): the mark in ink, the word in Hedvig, calm paper ------------------------------------------- */
html #bsIntro .in-paper { background: var(--cl-page); }
html #bsIntro .in-mark { border-radius: 26%; background: var(--cl-ink); box-shadow: none; }
html #bsIntro .in-mark svg { stroke: var(--cl-surface); }
html #bsIntro .in-word { font: 400 clamp(32px, 5vmin, 48px)/1.1 var(--cl-sans); letter-spacing: -.02em; color: var(--cl-ink); }
html #bsIntro .in-word i { filter: none !important; }
html #bsIntro .in-cap { font-family: var(--cl-serif); font-size: clamp(19px, 2.4vmin, 24px); font-weight: 400; letter-spacing: -.005em; color: var(--cl-ink-2); }
html #bsIntro .in-skip { height: 44px; padding: 0 20px; border: 1px solid var(--cl-line-2); background: var(--cl-surface); box-shadow: none; font-size: 15px; font-weight: 400; color: var(--cl-ink-2); }
html #bsIntro .in-skip:hover { border-color: var(--cl-line-3); color: var(--cl-ink); }

/* 3. The first screens: two questions, then the briefing --------------------------------------------------------------- */
html #bsOnboard .ob-paper { background: var(--cl-page); }
html #bsOnboard .ob-paper::after { content: ''; position: absolute; inset: 0; background: radial-gradient(760px 420px at 70% -10%, color-mix(in srgb, var(--cl-lilac) 12%, transparent), transparent 70%); }
html #bsOnboard { font-family: var(--cl-sans); color: var(--cl-ink); }
html #bsOnboard .ob-brand { font-size: 17px; font-weight: 400; letter-spacing: -.01em; }
html #bsOnboard .ob-mark { width: 28px; height: 28px; border-radius: 0; background: none; box-shadow: none; }   /* the mark on its own (18 November 2026) */
html #bsOnboard .ob-skip { height: 44px; padding: 0 18px; border: 1px solid var(--cl-line-2); background: var(--cl-surface); box-shadow: none; font-size: 15px; font-weight: 400; color: var(--cl-ink-2); }
html #bsOnboard .ob-skip:hover { border-color: var(--cl-line-3); color: var(--cl-ink); }
/* the steps: a thin line, three quiet points; the current one is ink */
html #bsOnboard .ob-track { --node: 32px; width: min(520px, 100%); }
html #bsOnboard .ob-track__line { height: 2px; top: calc(6px + var(--node) / 2 - 1px); background: var(--cl-line-2); }
html #bsOnboard .ob-track__fill { background: var(--cl-ink); transition: width .6s var(--cl-spring); }
html #bsOnboard .ob-track__fill::after { display: none; }
html #bsOnboard .ob-node { border: 1px solid var(--cl-line-2); background: var(--cl-surface); font-size: 14px; font-weight: 400; color: var(--cl-ink-3); }
html #bsOnboard .ob-steps li.is-done .ob-node { border-color: var(--cl-ink); background: var(--cl-ink); color: var(--cl-surface); }
html #bsOnboard .ob-steps li.is-done .ob-node:hover { scale: 1; }
html #bsOnboard .ob-steps li[aria-current="step"] .ob-node { border-color: var(--cl-ink); background: var(--cl-surface); color: var(--cl-ink); box-shadow: 0 0 0 4px var(--cl-surface-2); }
html #bsOnboard .ob-steps__label { font-size: 14px; font-weight: 400; color: var(--cl-ink-4); }
html #bsOnboard .ob-steps li.is-done .ob-steps__label { color: var(--cl-ink-3); }
html #bsOnboard .ob-steps li[aria-current="step"] .ob-steps__label { font-weight: 400; color: var(--cl-ink); }
/* the question: one white panel, the question in the serif */
html #bsOnboard .ob-panel { padding: 36px 40px 30px; border: 1px solid var(--cl-line); border-radius: 24px; background: var(--cl-surface); box-shadow: var(--cl-shadow-2); }
html #bsOnboard .ob-kicker { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--cl-ink-4); }
html #bsOnboard .ob-q { font-family: var(--cl-serif); font-size: clamp(30px, 3vw, 40px); font-weight: 400; letter-spacing: -.018em; line-height: 1.1; color: var(--cl-ink); }
html #bsOnboard .ob-hint { font-size: 16px; line-height: 1.5; color: var(--cl-ink-3); }
html #bsOnboard .ob-label { margin: 6px 0 -4px; font-size: 14px; font-weight: 400; color: var(--cl-ink-4); }
html #bsOnboard .ob-none { border-color: var(--cl-line-2); font-size: 15px; color: var(--cl-ink-3); }
/* a choice: a quiet pill; chosen, ink */
html #bsOnboard .ob-chip { height: 44px; gap: 8px; padding: 0 18px 0 14px; border: 1px solid var(--cl-line-2); background: var(--cl-surface); box-shadow: none; font-size: 15.5px; font-weight: 400; color: var(--cl-ink); transition: border-color .22s var(--cl-out), background-color .22s var(--cl-out), color .22s var(--cl-out), scale .12s var(--cl-out); }
html #bsOnboard .ob-chip i { font-size: 15px; color: var(--cl-ink-3); transition: color .22s var(--cl-out); }
html #bsOnboard .ob-chip:hover { border-color: var(--cl-line-3); background: var(--cl-hover); color: var(--cl-ink); }
html #bsOnboard .ob-chip:active { scale: .96; }
html #bsOnboard .ob-chip.is-on { border-color: var(--cl-ink); background: var(--cl-ink); color: var(--cl-surface); }
html #bsOnboard .ob-chip.is-on i { color: var(--cl-surface); }
html #bsOnboard .ob-chip[data-count]::after { font-size: 13px; font-weight: 400; color: var(--cl-ink-4); }
html #bsOnboard .ob-chip.is-on[data-count]::after { color: var(--cl-surface); opacity: .7; }
html #bsOnboard .ob-tile { padding: 20px 22px; border: 1px solid var(--cl-line-2); border-radius: 18px; background: var(--cl-surface); box-shadow: none; }
html #bsOnboard .ob-tile.is-on { border-color: var(--cl-ink); background: var(--cl-surface); box-shadow: 0 0 0 4px var(--cl-surface-2); }
html #bsOnboard .ob-tile__ic { background: var(--cl-surface-2); color: var(--cl-ink); }
html #bsOnboard .ob-tile__name { font-family: var(--cl-serif); font-size: 24px; font-weight: 400; letter-spacing: -.01em; }
html #bsOnboard .ob-tile__line { font-size: 14px; color: var(--cl-ink-3); }
html #bsOnboard .ob-tile__check { color: var(--cl-ink); }
html #bsOnboard .ob-quiet { height: 44px; font-size: 15px; font-weight: 400; color: var(--cl-ink-2); }
html #bsOnboard .ob-quiet:hover { background: var(--cl-hover); color: var(--cl-ink); }
html #bsOnboard .ob-field { height: 52px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); box-shadow: none; color: var(--cl-ink-3); }
html #bsOnboard .ob-field input { font-size: 16px; color: var(--cl-ink); }
html #bsOnboard .ob-field input::placeholder { color: var(--cl-ink-4); }
html #bsOnboard .ob-field:focus-within { border-color: var(--cl-lilac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 16%, transparent); }
html #bsOnboard .ob-sum li { height: 40px; padding: 0 16px 0 12px; background: var(--cl-surface-2); font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html #bsOnboard .ob-sum i { color: var(--cl-ink); }
/* the briefing as it stands: the number in the serif */
html #bsOnboard .ob-stage__n { font-family: var(--cl-serif); font-weight: 400; letter-spacing: -.02em; color: var(--cl-ink); }
html #bsOnboard .ob-brief__count { font-size: 15px; font-weight: 400; color: var(--cl-ink-3); }
html #bsOnboard .ob-stage.is-quiet .ob-stage__n { color: var(--cl-ink-4); }
/* the line under the number, not at the foot of the column */
html #bsOnboard .ob-stage__label { margin-bottom: 0; }
html #bsOnboard .ob-stage__line { position: relative; right: auto; bottom: auto; left: auto; margin-top: 10px; }
/* the foot: Back quiet, Continue ink */
html #bsOnboard .ob-back { min-height: 48px; border: 1px solid var(--cl-line-2); background: var(--cl-surface); box-shadow: none; font-size: 15px; font-weight: 400; color: var(--cl-ink-2); }
html #bsOnboard .ob-back:hover { border-color: var(--cl-line-3); color: var(--cl-ink); }
html #bsOnboard .ob-next { min-height: 52px; padding: 0 28px; background: var(--cl-ink); color: var(--cl-surface); font-size: 16px; font-weight: 400; box-shadow: none; }
html #bsOnboard .ob-next:hover { background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)); box-shadow: none; }
html #bsOnboard .ob-spark { background: var(--cl-ink); box-shadow: 0 0 0 4px var(--cl-surface-2); }
html .ob-spark { background: var(--cl-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-ink) 12%, transparent); }
@media (max-width: 1023.98px) {
  /* the name of the step stays inside the screen at both ends */
  html #bsOnboard .ob-steps li:first-child .ob-steps__label { left: 0; translate: 0 0; }
  html #bsOnboard .ob-steps li:last-child .ob-steps__label { left: auto; right: 0; translate: 0 0; }
  html #bsOnboard .ob-main { grid-template-rows: 104px minmax(0, 1fr); }
  html #bsOnboard .ob-stage__n { font-size: 32px; }
  html #bsOnboard .ob-brief__count { font-size: 14px; }
  html #bsOnboard .ob-panel { padding: 22px 20px 18px; border-radius: 22px; }
  html #bsOnboard .ob-q { font-size: 28px; }
  html #bsOnboard .ob-chip { height: 42px; font-size: 15px; }
}

/* 4. The filters row sits above the posts its menus open over ------------------------------------------------------------ */
html body #feedFilters { position: relative; z-index: 39; }

/* 5. What drops from the top bar and the toolbar: one arrival, white, a hairline -------------------------------------- */
html #notifMenu:not(.hidden), html #userMenu:not(.hidden), html #sortMenu:not(.hidden), html .ff-menu:not([hidden]) { animation: cl-drop .26s var(--cl-out) both; }
/* Notifications (17 November 2026, the owner: "when you click Notifications it opens a small panel, but its design can be much
   better"; and of the other menus that day: friendlier, cleaner, more empty space, softer, nothing tight). A panel of the
   family's dialogs (clean.css, .hl-panel) under its button: the title in the serif, one quiet action while something is
   unread, then the list, which scrolls inside the panel while the title stays. Each row: the portrait, who and what happened,
   the post's title in the reading type, the kind and when. Unread is a small lilac dot and darker words, no tint. Today and
   Earlier are quiet headings. On a phone the same panel is the sheet above the bottom bar it always was (index.html). */
html #notifMenu { width: 420px; margin-top: 10px; padding: 0; overflow: hidden; border-radius: 24px; }
html #notifMenu:not(.hidden) { display: flex; flex-direction: column; max-height: min(640px, calc(100dvh - var(--top-h, 72px) - 48px)); }
html .nt-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 18px 14px 10px 24px; }
html .nt-title { margin: 0; font-family: var(--cl-serif); font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; color: var(--cl-ink); }
html .nt-markall { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--cl-ink-3); font: 15px/1 var(--cl-sans); white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--cl-out), color .2s var(--cl-out); }
html .nt-markall[hidden] { display: none; }
@media (hover: hover) { html .nt-markall:hover { background: var(--cl-hover); color: var(--cl-ink); } }
html #notifList.nt-list { flex: 1 1 auto; min-height: 0; max-height: none; padding: 0 12px 14px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
html .nt-group { margin: 0; padding: 18px 12px 8px; font: 14px/1.3 var(--cl-sans); color: var(--cl-ink-3); }
html .nt-group:first-child { padding-top: 4px; }
html .nt-row { position: relative; display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 14px 34px 14px 12px; border: 0; border-radius: 16px; background: transparent;
  text-align: left; font-family: var(--cl-sans); cursor: pointer; transition: background-color .2s var(--cl-out); }
html .nt-row + .nt-row { margin-top: 2px; }
@media (hover: hover) { html .nt-row:hover { background: var(--cl-hover); } }
html .nt-row:focus-visible { outline-offset: -2px; }
html .nt-av { display: grid; flex: none; padding-top: 1px; }
html .nt-av > * { width: 40px; height: 40px; }
html .nt-body { display: grid; flex: 1 1 auto; min-width: 0; gap: 4px; }
html .nt-line { font-size: 15.5px; line-height: 1.4; color: var(--cl-ink-3); transition: color .3s var(--cl-out); text-wrap: pretty; }
html .nt-who { font-weight: 400; color: inherit; }
html .nt-post { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-family: var(--cl-serif); font-size: 16px; line-height: 1.35; color: var(--cl-ink-3); transition: color .3s var(--cl-out); }
html .nt-when { margin-top: 2px; font-size: 14px; line-height: 1.3; color: var(--cl-ink-4); }
html .nt-dot { position: absolute; top: 23px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--cl-lilac); opacity: 0; transition: opacity .3s var(--cl-out); }
html .nt-row.is-unread .nt-line { color: var(--cl-ink); }
html .nt-row.is-unread .nt-post { color: var(--cl-ink-2); }
html .nt-row.is-unread .nt-dot { opacity: 1; }
html .nt-row:not(.is-unread) .nt-new { display: none; }
/* nothing yet */
html .nt-empty { display: grid; justify-items: center; gap: 6px; padding: 20px 28px 36px; text-align: center; }
html .nt-empty__ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 50%; background: var(--cl-surface-2); color: var(--cl-ink-3); font-size: 22px; }
html .nt-empty__t { margin: 0; font-size: 17px; line-height: 1.3; color: var(--cl-ink); }
html .nt-empty__s { max-width: 300px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--cl-ink-3); text-wrap: pretty; }
/* a phone: the sheet above the bottom bar, with the same corners as the family's sheets, the list scrolling inside it */
@media (max-width: 639.98px) {
  html #notifMenu { width: auto; margin-top: 0; border-radius: 24px !important; }
  html #notifMenu:not(.hidden) { max-height: min(72dvh, 600px); overflow: hidden; }
  html #notifList.nt-list { max-height: none !important; padding: 0 8px 12px; }
  html .nt-head { min-height: 68px; padding: 16px 8px 8px 20px; }
  html .nt-title { font-size: 22px; }
  html .nt-row { gap: 12px; padding: 12px 30px 12px 12px; }
  html .nt-dot { top: 21px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { html .nt-row, html .nt-line, html .nt-post, html .nt-dot, html .nt-markall { transition: none; } }
/* search: the page goes quiet behind the field, no blur */
html body #searchDim, html body #appTopbar::after { background: color-mix(in srgb, var(--cl-page) 62%, transparent) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body.search-open #searchBox > .flex { transform: none; background: var(--cl-surface); }
html #mSearchBackdrop { background: color-mix(in srgb, var(--cl-page) 62%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* The search panel (17 November 2026, the owner: "once you click the search bar, a dropdown opens with search options ...
   make it cooler, prettier, but keep it minimal"; of every list that day: friendlier, more empty space, softer, nothing
   tight). A panel of the family's, like the notifications: as wide as the field, 24 px corners, the list scrolling inside it
   and never past the window (index.html writes the room left under it as --sr-room). Quiet headings with room above; the
   topics as soft filled chips with their count; people with the portrait, the name in ink and a quiet line; a post's title in
   the reading type. A row under the pointer takes the faint grey of every row; the entry the arrow keys are on takes the
   app's lilac, the colour of focus, and so does a topic under the pointer. The words found get a lilac line under them. */
html #searchResults { top: calc(100% + 10px); padding: 10px 10px 12px; border-radius: 24px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  max-height: min(640px, var(--sr-room, calc(100dvh - 120px))); }
html #searchResults:not(.hidden) { animation: cl-drop .22s var(--cl-out) both; }
/* a tablet: under a narrow field the panel is wider than it, centred on it */
@media (min-width: 768px) and (max-width: 1023.98px) {
  html #searchResults { left: calc((100% - max(100%, min(520px, 100vw - 32px))) / 2); right: auto; width: max(100%, min(520px, 100vw - 32px)); }
}
/* a phone: under the field the search button brings up, as wide as it (index.html places it), as tall as the window allows */
@media (max-width: 767.98px) {
  html #searchResults { max-height: var(--sr-room, calc(100dvh - 82px)); padding: 8px 8px 10px; }
  /* the field stands alone in its strip: the name and the bell under it stay out of sight while it is open */
  html body.msearch-open #appTopbar > .grid > :not(#searchBox) { visibility: hidden; }
}
/* the headings: small and quiet, with room above */
html .sr-h { display: block; margin: 0; padding: 20px 14px 8px; font: 14px/1.3 var(--cl-sans); color: var(--cl-ink-3); }
html .sr-h__t { margin: 0; font: inherit; color: inherit; }
html .sr-h__n { margin-left: 4px; color: var(--cl-ink-4); font-variant-numeric: tabular-nums; }
html #searchResults > .sr-list:first-child > .sr-group:first-child > .sr-h { padding-top: 8px; }
/* the recent searches' heading carries Clear, a quiet word on the right */
html .sr-h--act { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 4px 14px; }
html .sr-h__btn { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--cl-ink-3); font: 14px/1 var(--cl-sans); cursor: pointer;
  transition: background-color .2s var(--cl-out), color .2s var(--cl-out); }
@media (hover: hover) { html .sr-h__btn:hover { background: var(--cl-hover); color: var(--cl-ink); } }
/* an entry: what leads it, its words, a quiet second line */
html .sr-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; margin: 0; padding: 10px 12px; border: 0; border-radius: 16px; background: transparent;
  color: var(--cl-ink); text-align: left; text-decoration: none; font-family: var(--cl-sans); cursor: pointer; transition: background-color .2s var(--cl-out); }
html .sr-row + .sr-row { margin-top: 2px; }
html .sr-row:hover { background: transparent; }
@media (hover: hover) { html .sr-row:hover { background: var(--cl-hover); } }
html .sr-row.is-active, html .sr-row.is-active:hover { background: var(--cl-lilac-soft); }
html .sr-row:focus-visible { outline-offset: -2px; }
html .sr-lead { display: grid; flex: none; place-items: center; width: 40px; height: 40px; color: var(--cl-ink-3); font-size: 20px; }
html .sr-lead > img, html .sr-lead > span { width: 40px; height: 40px; }
html .sr-lead--tile { border-radius: 12px; background: var(--cl-surface-2); font-size: 19px; transition: background-color .2s var(--cl-out); }
html .sr-row.is-active .sr-lead--tile { background: color-mix(in srgb, var(--cl-surface) 70%, transparent); }
html .sr-text { display: grid; flex: 1 1 auto; min-width: 0; gap: 2px; }
html .sr-main, html .sr-sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html .sr-main { padding-bottom: 1px; font-size: 16px; line-height: 1.35; color: var(--cl-ink); }
html .sr-sub { font-size: 14px; line-height: 1.35; color: var(--cl-ink-3); }
/* a post's title in the reading type, on two lines at most, so the words found stay in sight on a phone too */
html .sr-row--post .sr-main { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; padding-bottom: 2px; white-space: normal; font-family: var(--cl-serif); font-size: 17px; line-height: 1.32; letter-spacing: -.005em; text-wrap: pretty; }
html .sr-row--recent { min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
html .sr-row--recent .sr-lead { height: 32px; font-size: 18px; }
/* the topics with new posts: soft filled chips that wrap, each with its count */
html .sr-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 12px 4px; }
html .sr-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--cl-surface-2); color: var(--cl-ink);
  font: 15px/1 var(--cl-sans); white-space: nowrap; cursor: pointer; transition: background-color .2s var(--cl-out), box-shadow .2s var(--cl-out); }
html .sr-chip__n { color: var(--cl-ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (hover: hover) { html .sr-chip:hover { background: var(--cl-lilac-soft); } }
html .sr-chip.is-active { background: var(--cl-lilac-soft); box-shadow: inset 0 0 0 1.5px var(--cl-lilac); }
html .sr-chip:focus-visible { outline-offset: 2px; }
html .sr-chip:active { scale: .98; }
/* the words found: a lilac line under them, the words in ink */
html #searchResults mark.sr-mark { padding: 0; border-radius: 0; background: none; color: var(--cl-ink); text-decoration: underline 2px color-mix(in srgb, var(--cl-lilac) 80%, transparent); text-underline-offset: 3px; text-decoration-skip-ink: none; }
/* "Save search", the last entry, after a hairline */
html .sr-foot { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--cl-line); }
/* a search of several words where no result has them all */
html .sr-note { margin: 0; padding: 8px 14px 2px; font: 14px/1.45 var(--cl-sans); color: var(--cl-ink-3); text-wrap: pretty; }
html .sr-note__w { color: var(--cl-ink); }
/* nothing found, or nothing yet to suggest */
html .sr-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 24px 24px; text-align: center; }
html .sr-empty__ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 50%; background: var(--cl-surface-2); color: var(--cl-ink-3); font-size: 22px; }
html .sr-empty__t { max-width: 100%; margin: 0; font-size: 17px; line-height: 1.3; color: var(--cl-ink); overflow-wrap: anywhere; }
html .sr-empty__s { max-width: 340px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--cl-ink-3); text-wrap: pretty; }
html .sr-empty__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 14px; padding: 0 20px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface);
  color: var(--cl-ink); font: 15px/1 var(--cl-sans); text-decoration: none; transition: border-color .22s var(--cl-out), background-color .22s var(--cl-out); }
@media (hover: hover) { html .sr-empty__btn:hover { border-color: var(--cl-line-3); background: var(--cl-hover); } }
html .sr-empty__btn > i { font-size: 17px; color: var(--cl-ink-3); }
html.more-contrast .sr-chip { box-shadow: inset 0 0 0 1px var(--cl-line-2); }
html.more-contrast .sr-row.is-active { box-shadow: inset 0 0 0 1.5px var(--cl-lilac); }
@media (prefers-reduced-motion: reduce) { html #searchResults:not(.hidden) { animation: none; } html .sr-row, html .sr-chip, html .sr-lead--tile, html .sr-h__btn { transition: none; } html .sr-chip:active { scale: none; } }
/* the order: two choices, white, a hairline */
html #sortMenu { width: 220px; padding: 6px; border-radius: 16px; }
html #sortMenu .sort-opt { min-height: 44px; border-radius: 10px; font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html #sortMenu .sort-opt:hover { background: var(--cl-hover); }
html #sortMenu .sort-opt > i:first-child { display: none; }
html #sortMenu .sort-opt.is-on { color: var(--cl-ink); }
html #sortMenu .sort-chk { color: var(--cl-ink); }
/* the account menu: a profile line, the places, light or dark, Log out */
html #userMenu { width: 280px; padding: 8px; border-radius: 20px; }
html #userMenu .user-menu__profile { padding: 10px 10px 12px; }
html #userMenu [data-id-drname] { font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html #userMenu .user-menu__profile [data-id-role] { font-size: 13px; color: var(--cl-ink-3); }
html #userMenu .user-menu__avatar { border: 0; }
html #userMenu .user-menu__item { min-height: 44px; gap: 12px; padding: 0 12px; font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html #userMenu .user-menu__item > i:first-child { font-size: 18px; color: var(--cl-ink-3); }
html #userMenu .user-menu__chev { display: none; }
html #userMenu .user-menu__divider { margin: 6px 4px; background: var(--cl-line); }
html #userMenu .t-eyebrow { font-size: 13px; color: var(--cl-ink-4); }
html #userMenu .rounded-lg.border.bg-muted { padding: 4px; border-color: var(--cl-line-2); border-radius: 999px; background: var(--cl-surface-2); }
html #userMenu [data-menu-theme] { height: 36px; border-radius: 999px; font-size: 14px; font-weight: 400; color: var(--cl-ink-2); }
html #userMenu [data-menu-theme].seg-on, html #userMenu [data-menu-theme][aria-pressed="true"] { background: var(--cl-surface); color: var(--cl-ink); box-shadow: var(--cl-shadow-1); }
html #userMenu .user-menu__logout-desktop, html #userMenu .user-menu__logout-desktop i { color: var(--cl-ink-2) !important; }
/* on a wide screen Discussions and Clinicians are in the navigation already; on a phone Discussions is in the bar below */
@media (min-width: 1024px) { html #userMenu .user-menu__item[data-goto="consults"], html #userMenu .user-menu__item[data-goto="clinicians"] { display: none !important; } }
@media (max-width: 1023.98px) {
  html #userMenu .user-menu__item[data-goto="consults"] { display: none !important; }
  /* the phone's sheet: quiet icons, no tiles, Log out as a quiet pill */
  html #userMenu .user-menu__item::before { display: none; }
  html #userMenu .user-menu__item { min-height: 52px; border: 0; }
  html #userMenu .user-menu__item i:first-child { width: 24px; color: var(--cl-ink-3); }
  html #userMenu .user-menu__logoutbar { border-top-color: var(--cl-line); background: var(--cl-surface); }
  html #userMenu .user-menu__logout { min-height: 44px; padding: 0 18px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); color: var(--cl-ink-2); font-size: 15px; font-weight: 400; }
}

/* 6. The filters under Filters: three choices, then the format in words and More filters, on Home's left edge ------------ */
html #feedFilters:not([hidden]) { animation: cl-drop .3s var(--cl-out) both; }
html #feedFilters .ff-row { justify-content: flex-start; gap: 8px; }
html #feedFilters .ff-btn, html #feedFilters .ff-switch { height: 40px; padding: 0 14px 0 12px; gap: 8px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); font-size: 14.5px; font-weight: 400; color: var(--cl-ink); }
html #feedFilters .ff-btn:hover, html #feedFilters .ff-switch:hover { border-color: var(--cl-line-3); background: var(--cl-hover); }
html #feedFilters .ff-pick.is-open .ff-btn { border-color: var(--cl-ink); background: var(--cl-surface); }
html #feedFilters .ff-btn > i:first-child { font-size: 16px; color: var(--cl-ink-3); }
html #feedFilters .ff-btn__v { max-width: 180px; font-weight: 400; color: var(--cl-ink); }
html #feedFilters .ff-btn__c { font-size: 12px; color: var(--cl-ink-3); }
html #feedFilters .ff-group .ff-btn { border-radius: 999px; }
/* Edit interests lives in Settings and on the line under the posts; the gear beside the specialty is a second way */
html #feedFilters .ff-gear { display: none !important; }
html #feedFilters .ff-switch__sw { background: var(--cl-line-2); }
html #feedFilters .ff-switch[aria-pressed="true"] { border-color: var(--cl-ink); color: var(--cl-ink); }
html #feedFilters .ff-switch[aria-pressed="true"] .ff-switch__sw { background: var(--cl-ink); }
/* the format in words (All, Read, Watch, Listen), on its own line with More filters */
html #feedFilters .ff-row__end { flex-basis: 100%; justify-content: flex-start; gap: 8px; margin: 4px 0 0; }
html #feedFilters .feed-format { gap: 2px; padding: 4px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface-2); }
html #feedFilters .feed-format button { display: inline-flex; width: auto; height: 34px; gap: 6px; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--cl-ink-2); }
html #feedFilters .feed-format button span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
html #feedFilters .feed-format button i { font-size: 15px; }
html #feedFilters .feed-format button:hover { color: var(--cl-ink); }
html #feedFilters .feed-format button[aria-pressed="true"] { background: var(--cl-surface); color: var(--cl-ink); box-shadow: var(--cl-shadow-1); }
html #feedFilters #feedFilterBtn { height: 42px !important; padding: 0 14px !important; font-size: 14.5px !important; font-weight: 400; color: var(--cl-ink-2) !important; }
html #feedFilters #feedFilterBtn:hover { background: var(--cl-hover) !important; color: var(--cl-ink) !important; }
html #feedFilters #feedFilterCount { background: var(--cl-ink) !important; color: var(--cl-surface) !important; font-weight: 400; }
/* each choice's menu */
html .ff-menu { min-width: 280px; padding: 6px; border-radius: 16px; }
html .ff-opt { min-height: 44px; gap: 10px; padding: 6px 12px; border-radius: 10px; font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html .ff-opt:hover { background: var(--cl-hover); }
html .ff-opt > i { color: var(--cl-ink-3); }
html .ff-opt.is-on, html .ff-opt.is-on > i { color: var(--cl-ink); font-weight: 400; }
html .ff-opt__you, html .ff-opt__n, html .ff-menu__h, html .ff-menu__note { font-size: 13px; font-weight: 400; color: var(--cl-ink-4); }
html .ff-opt--all::after, html .ff-menu__note { background: var(--cl-line); border-color: var(--cl-line); }
@media (max-width: 1023.98px) {
  html #feedFilters .ff-row { justify-content: flex-start; }
  html #feedFilters .ff-row__end { flex-basis: auto; margin: 0 0 0 4px; }
  html #feedFilters .feed-format button span { display: none; }
  html #feedFilters .feed-format button { padding: 0 10px; }
}

/* 7. More filters, the screen ------------------------------------------------------------------------------------------ */
html #filtersScreen > .cf-sheet.fl-sheet { border: 1px solid var(--cl-line-2); border-radius: 24px; background: var(--cl-surface); box-shadow: none; outline: none; animation: cl-lift .45s var(--cl-spring) both; }
html #filtersScreen .fl-kind { display: none !important; }
html #filtersScreen .cf-name, html #modalFilter .fl-sheet .cf-name { font-family: var(--cl-serif); font-size: 32px; font-weight: 400; letter-spacing: -.015em; line-height: 1.12; color: var(--cl-ink); }
html :is(#filtersScreen, #modalFilter) .fl-sub { margin-top: 4px; font-size: 15px; color: var(--cl-ink-3); }
html :is(#filtersScreen, #modalFilter) .fl-row { border-top-color: var(--cl-line); }
html :is(#filtersScreen, #modalFilter) .fl-row__name { font-size: 15.5px; font-weight: 400; color: var(--cl-ink); }
html :is(#filtersScreen, #modalFilter) .fl-row__mark { background: var(--cl-ink); color: var(--cl-surface); font-weight: 400; }
html :is(#filtersScreen, #modalFilter) .fl-seg { padding: 4px; border-color: var(--cl-line-2); background: var(--cl-surface-2); }
html :is(#filtersScreen, #modalFilter) .fl-seg__ind { background: var(--cl-surface); box-shadow: var(--cl-shadow-1); }
html :is(#filtersScreen, #modalFilter) .fl-seg > button { height: 40px; padding: 0 13px; font-size: 15px; font-weight: 400; color: var(--cl-ink-2); }
@media (min-width: 1024px) { html :is(#filtersScreen, #modalFilter) .fl-row { grid-template-columns: 128px minmax(0, 1fr); } }
html :is(#filtersScreen, #modalFilter) .fl-seg > button.seg-on, html :is(#filtersScreen, #modalFilter) .fl-seg > button.is-on { font-weight: 400; color: var(--cl-ink); }
html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog { height: 42px; border-color: var(--cl-line-2); background: var(--cl-surface); box-shadow: none; font-size: 15px; font-weight: 400; color: var(--cl-ink); }
html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog.is-on { border-color: var(--cl-ink); background: var(--cl-ink); color: var(--cl-surface); font-weight: 400; }
html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog.is-on :is(.fl-chip__ic, .fl-chip__n) { color: var(--cl-surface); }
html :is(#filtersScreen, #modalFilter) .fl-none { font-size: 14.5px; color: var(--cl-ink-3); }
html :is(#filtersScreen, #modalFilter) .fl-foot { border-top-color: var(--cl-line); }
/* the head and the foot carry the sheet's own paper, so their square corners no longer cover its rounded ones */
html #filtersScreen > .cf-sheet > :is(.cf-head, .cf-foot, .cf-body) { background: transparent; }
html :is(#filtersScreen, #modalFilter) .cf-foot .fl-clear { border-radius: 999px; }
html :is(#filtersScreen, #modalFilter) .cf-foot .fl-clear { height: 48px; border-color: var(--cl-line-2); background: var(--cl-surface); box-shadow: none; font-weight: 400; color: var(--cl-ink-2); }
html :is(#filtersScreen, #modalFilter) .cf-foot .fl-show { height: 48px; padding: 0 24px; background: var(--cl-ink); color: var(--cl-surface); box-shadow: none !important; font-weight: 400; }
html :is(#filtersScreen, #modalFilter) .cf-x { color: var(--cl-ink-3); }

/* 7b. Filters in one place (10 November 2026, the owner) --------------------------------------------------------------
   The row under Home's title is gone: the specialty is chosen in the title, and the Filters button opens this screen with
   the format, the condition, the topic, Related, the priority and the date together. Seven rows at most, low enough to
   fit a 900 px window; a row with nothing to choose is not drawn. */
html #feedFilters { display: none !important; }
html #filtersScreen > .cf-sheet > .cf-head { padding-top: 22px; padding-bottom: 16px; }
html :is(#filtersScreen, #modalFilter) .fl-row { padding-top: 13px; padding-bottom: 13px; }
html :is(#filtersScreen, #modalFilter) .fl-row__mark { min-width: 24px; height: 24px; font-size: 14px; }
html :is(#filtersScreen, #modalFilter) .fl-chips { gap: 8px; }
html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog { height: 36px; padding: 0 13px 0 10px; font-size: 14.5px; }
/* the whole screen in a 900 px window, with "Show N updates" in sight: a wider sheet, so nine conditions and twelve topics
   take two rows each and not four */
@media (min-width: 1024px) {
  html #filtersScreen { max-width: 980px; }
  html #appShell #main-content > [data-viewpanel="filters"] { max-width: 980px !important; }
  html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog { min-height: 36px; }
  html :is(#filtersScreen, #modalFilter) .fl-switch { min-height: 36px; }
  html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog { padding: 0 13px; }
  html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog.is-on { padding-left: 10px; }
  html :is(#filtersScreen, #modalFilter) .fl-row { padding-top: 10px; padding-bottom: 10px; }
  html #filtersScreen > .cf-sheet > .cf-foot { min-height: 0; padding-top: 14px; padding-bottom: 16px; }
  html #filtersScreen .cf-foot :is(.fl-clear, .fl-show) { height: 44px; }
  /* a segment as wide as its options, not a grey bar across the sheet */
  html :is(#filtersScreen, #modalFilter) .fl-seg { justify-self: start; align-self: flex-start; width: fit-content; padding: 3px; }
  html :is(#filtersScreen, #modalFilter) .fl-seg > button { height: 36px; min-height: 0; }
  html #filtersScreen > .cf-sheet > .cf-head { padding-top: 18px; padding-bottom: 12px; }
  html #filtersScreen .cf-name { font-size: 30px; }
  /* nothing under the sheet: the page's 80 px foot let the window scroll about 70 px past "Show N updates" */
  html #appShell #main-content:has(> [data-viewpanel="filters"]:not(.hidden)) { padding-bottom: 8px; }
  /* and the last 12 px: the body is as tall as the window but starts 12 px down, under the top bar's margin */
  html body:has(#main-content > [data-viewpanel="filters"]:not(.hidden)) { min-height: calc(100vh - 12px); }
}
html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog .fl-chip__n { margin-left: 3px; font-size: 14px; font-weight: 400; color: var(--cl-ink-3); }
/* a choice with nothing behind it today is said more quietly; the plus goes (the outline already says "press me"), the check
   stays on what is chosen */
html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog[data-n="0"]:not(.is-on) { color: var(--cl-ink-3); }
html :is(#filtersScreen, #modalFilter) .fl-chips .chiptog:not(.is-on) .fl-chip__ic { display: none; }
html :is(#filtersScreen, #modalFilter) .fl-switch { color: var(--cl-ink); }
html :is(#filtersScreen, #modalFilter) .fl-switch__sw { background: var(--cl-line-3); }
html :is(#filtersScreen, #modalFilter) .fl-switch__sw::after { background: var(--cl-surface); box-shadow: var(--cl-shadow-1); }
html :is(#filtersScreen, #modalFilter) .fl-switch[aria-checked="true"] .fl-switch__sw { background: var(--cl-ink); }
html :is(#filtersScreen, #modalFilter) .fl-switch:focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 4px; border-radius: 12px; }

/* 8. Notices: toasts, tips, the offline line, Back to top -------------------------------------------------------------- */
/* The notice (17 November 2026, the owner: the pills at the foot looked broken; the tick and the word sat high in a pill too
   tall for one line). One line is 44px: the mark and the words share one line box of 22px, so they sit on one line and
   in the middle of the pill. A long sentence takes a second line inside the same shape (the corners are the one-line
   pill's, so two lines read as the same pill, taller). Ink with the page's white for words, as the offline line. The kind
   is told by the mark's shape (a tick, a warning sign, an i) and by the words; a warning's mark is also tinted. Where it
   sits and how it moves: motion.css. */
html .bs-toast { display: flex; align-items: flex-start; gap: 10px; box-sizing: border-box; min-height: 44px; padding: 11px 20px 11px 16px; border: 0; border-radius: 22px;
  background: var(--cl-ink); color: var(--cl-surface); box-shadow: var(--cl-shadow-3); -webkit-backdrop-filter: none; backdrop-filter: none; outline: 0;
  font-family: var(--cl-sans); font-size: 15px; font-weight: 400; line-height: 22px; letter-spacing: 0; text-align: left;
  --toast-bad: #F49A9A; }
html:not(.light) .bs-toast { --toast-bad: #B4433D; }
html .bs-toast__ic { display: grid; flex: none; width: 20px; height: 22px; place-items: center; font-size: 18px; color: inherit; }
html .bs-toast--bad .bs-toast__ic { color: var(--toast-bad); }
html .bs-toast__msg { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; }
html .bs-toast__act { flex: none; align-self: center; height: 32px; margin: -6px -10px -6px 4px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--cl-surface) 32%, transparent); border-radius: 999px;
  background: transparent; color: var(--cl-surface); font: 14px/1 var(--cl-sans); cursor: pointer; transition: background-color .2s var(--cl-out); }
@media (hover: hover) { html .bs-toast__act:hover { background: color-mix(in srgb, var(--cl-surface) 14%, transparent); } }
html .bs-toast__act:focus-visible { outline-color: var(--cl-surface) !important; }
html .tip { padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.3; letter-spacing: 0; box-shadow: var(--cl-shadow-2); }
html .sx-offline { gap: 10px; padding: 10px 18px; border: 0; background: var(--cl-ink); color: var(--cl-surface); font-size: 14px; font-weight: 400; letter-spacing: 0; }
html .sx-offline.sx-online { background: var(--cl-ok-ink); color: #fff; }
@media (min-width: 1024px) {
  /* on a wide screen the notice is a pill at the foot of the page, centred, rising from below */
  html #sxOffline { left: calc(var(--fam-left) + 24px); right: calc(var(--fam-right) + 24px); bottom: calc(var(--frame) + 20px); width: max-content; max-width: calc(100vw - var(--fam-left) - var(--fam-right) - 48px); margin: 0 auto; border-radius: 999px; box-shadow: var(--cl-shadow-3); transform: translateY(24px); }
  html #sxOffline.sx-show { transform: translateY(0); }
}
/* Back to top, easy to see (18 November 2026, the owner: "un poco más notorio"): a dark pill with the arrow and its words and a
   soft shadow, the light one in the dark theme; it still comes and goes as before (index.html .show) */
html #backTop { width: auto; height: 44px; grid-auto-flow: column; gap: 8px; padding: 0 18px 0 15px; border: 0; border-radius: 999px; background: var(--cl-ink); color: var(--cl-surface); font-size: 14px; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 14px 30px -12px rgba(26,26,26,.5), 0 2px 6px rgba(26,26,26,.14); }
html #backTop:hover { border-color: transparent; color: var(--cl-surface); background: color-mix(in srgb, var(--cl-ink) 84%, var(--cl-surface)); }
html #backTop i { font-size: 16px !important; }

@media (max-width: 1023.98px) {
  /* on a phone a row of choices may take two lines: the track keeps rounded ends, not an oval */
  html :is(#filtersScreen, #modalFilter) .fl-seg { border-radius: 24px; }
  html :is(#filtersScreen, #modalFilter) .fl-seg__ind { border-radius: 20px; }
  html :is(#filtersScreen, #modalFilter) #filtUrg > button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html #loginScreen .lg-formside > div, html #bsRecovery .sf-col, html #notifMenu, html #userMenu, html #sortMenu, html .ff-menu, html #feedFilters, html #filtersScreen > .cf-sheet { animation: none !important; }
}
