/* Family, 2 October 2026. BiteSized in the design language of the Doctorpedia Library: the same company,
   the same hand. Loaded after every other sheet except motion.css.

   What the two share: the type (Figtree) and the icons (Phosphor); the island frame (the navigation, the
   page and the side column are rounded cards on a canvas); frost surfaces (a hairline, a lit top edge, a
   soft shadow) in place of flat boxes; round controls (pill buttons, circular icon buttons, pill segments);
   real glass only on what floats over the page; a field of soft lights behind the page; one easing.
   What tells them apart: the Library is violet, BiteSized is cobalt blue. Its gradient runs from that blue
   into the Library's violet, so the two marks sit side by side as one family.

   The app's own styles are written with tokens, so most of this file is tokens. The rest is the frame and
   the handful of shapes the tokens cannot reach. Dark is the base in this app (:root), light is html.light. */

/* 1. Tokens ------------------------------------------------------------------------------------------- */
/* 5 October 2026, a step firmer between whites and greys (the owner asked whether the normal themes could gain a little):
   hairlines from 8 to 10 percent up to 12 to 14, the dark card a tone lighter and its page a touch darker, the light
   page a touch greyer under white cards, the grey text firmer (dark 6.25 to 6.65:1, light 5.42 to 6.11:1). The look
   is the same; the edges are easier to find. */
:root:root {
  --canvas: #0a0a0c;
  --color-background: #131315;
  --color-foreground: #f3f3f5;
  --color-card: #1e1e23;
  --color-muted: #27272d;
  --color-muted-foreground: #a3a3ae;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-brand: #7f9cff;
  --color-brand-hover: #96aeff;
  --color-primary: #7f9cff;
  --color-primary-foreground: #0a1026;
  --color-accent: #7f9cff;
  --color-ring: #7f9cff;
  --color-brand-ink: #b4c5ff;
  --brand-grad: linear-gradient(120deg, #5b82ff 0%, #8a6bff 56%, #d072d6 100%);
  --oryn-page: var(--canvas);
  --oryn-rail: #1e1e23;
  --oryn-surface-2: #27272d;
  --oryn-border-hover: rgba(255, 255, 255, 0.17);
  --oryn-surface-hover: rgba(255, 255, 255, 0.055);
  --oryn-text-2: #c8c8cf;
  --oryn-glass: rgba(30, 30, 35, 0.72);
  --oryn-brand-tint: rgba(127, 156, 255, 0.17);
  --oryn-brand-soft: rgba(127, 156, 255, 0.11);

  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 22px;

  --frame: 12px;
  --frame-r: 24px;
  --top-h: 68px;
  --rail-w: 332px;

  --brand-soft: #232a42;
  --frost: color-mix(in srgb, var(--color-card) 62%, transparent);
  --frost-strong: color-mix(in srgb, var(--color-card) 88%, transparent);
  --frost-float: color-mix(in srgb, var(--color-muted) 78%, transparent);
  --frost-line: rgba(255, 255, 255, 0.13);
  --frost-rim: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  --frost-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 30px -20px rgba(0, 0, 0, 0.7);
  --frost-shadow-up: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 44px -22px rgba(0, 0, 0, 0.85);
  --frost-pop: 0 2px 6px rgba(0, 0, 0, 0.35), 0 26px 60px -18px rgba(0, 0, 0, 0.8);
  --frost-well: rgba(255, 255, 255, 0.06);
  --frost-ink: rgba(54, 54, 64, 0.94);
  --frost-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --field-a: rgba(127, 156, 255, 0.16);
  --field-b: rgba(160, 120, 255, 0.07);
  --field-c: rgba(90, 210, 220, 0.05);
  --oryn-shadow: var(--frost-shadow);
  /* the edge of a layer that floats without a scrim (a menu, a popover, a tip): a line the eye can find, and a seam of
     the canvas outside it that cuts the layer from whatever lies under. The card's own hairline measured 1.36:1 against
     the page in the dark; this line measures about 2.7:1 (the owner, 5 October: "una persona con no tan buena
     visibilidad puede tener problemas") */
  --float-line: rgba(255, 255, 255, 0.28);
  --float-seam: var(--canvas);
}
html.light:root {
  --canvas: #e2e6ee;
  --color-background: #f5f6fa;
  --color-foreground: #171a26;
  --color-card: #ffffff;
  --color-muted: #f1f3f8;
  --color-muted-foreground: #5a6275;
  --color-border: rgba(24, 32, 56, 0.13);
  --color-brand: #2b5ce6;
  --color-brand-hover: #1f4bd0;
  --color-primary: #2b5ce6;
  --color-primary-foreground: #ffffff;
  --color-accent: #2b5ce6;
  --color-ring: #2b5ce6;
  --color-brand-ink: #1f4bd0;
  --brand-grad: linear-gradient(120deg, #2b5ce6 0%, #6d3ae8 56%, #c13b9e 100%);
  --oryn-page: var(--canvas);
  --oryn-rail: #ffffff;
  --oryn-surface-2: #f6f7fb;
  --oryn-border-hover: rgba(24, 32, 56, 0.18);
  --oryn-surface-hover: rgba(24, 32, 56, 0.045);
  --oryn-text-2: #3d4354;
  --oryn-glass: rgba(255, 255, 255, 0.72);
  --oryn-brand-tint: rgba(43, 92, 230, 0.11);
  --oryn-brand-soft: rgba(43, 92, 230, 0.07);

  --brand-soft: #e7edfd;
  --frost: color-mix(in srgb, var(--color-card) 66%, transparent);
  --frost-strong: color-mix(in srgb, var(--color-card) 86%, transparent);
  --frost-float: color-mix(in srgb, var(--color-card) 76%, transparent);
  --frost-line: rgba(24, 32, 56, 0.14);
  --frost-rim: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  --frost-shadow: 0 1px 2px rgba(20, 28, 60, 0.04), 0 14px 30px -22px rgba(20, 28, 60, 0.3);
  --frost-shadow-up: 0 2px 4px rgba(20, 28, 60, 0.05), 0 24px 44px -24px rgba(20, 28, 60, 0.42);
  --frost-pop: 0 2px 6px rgba(20, 28, 60, 0.06), 0 26px 60px -18px rgba(20, 28, 60, 0.34);
  --frost-well: rgba(24, 32, 56, 0.05);
  --frost-ink: rgba(20, 22, 34, 0.86);
  --field-a: rgba(43, 92, 230, 0.13);
  --field-b: rgba(138, 107, 255, 0.11);
  --field-c: rgba(72, 200, 214, 0.11);
  --oryn-shadow: var(--frost-shadow);
  --float-line: rgba(24, 32, 56, 0.18);
  --float-seam: var(--canvas);
}

/* More contrast: html.more-contrast, set by family.js from the system's "increase contrast" setting (or the account's
   own choice, bs:contrast). Stronger lines, solid surfaces in place of glass, darker scrims, firmer grey text. Tokens
   only, so every sheet written with them follows. */
html.more-contrast:root {
  --color-border: rgba(255, 255, 255, 0.22);
  --frost-line: rgba(255, 255, 255, 0.34);
  --float-line: rgba(255, 255, 255, 0.6);
  --oryn-border-hover: rgba(255, 255, 255, 0.4);
  --frost: var(--color-card);
  --frost-strong: var(--color-card);
  --frost-float: #2a2a2f;
  --oryn-glass: var(--color-card);
  --frost-ink: #3a3a44;
  --frost-well: rgba(255, 255, 255, 0.1);
  --color-muted-foreground: #b9b9c4;
  --oryn-text-2: #e4e4ea;
}
html.more-contrast.light:root {
  --canvas: #dde1ea;
  --color-border: rgba(24, 32, 56, 0.24);
  --frost-line: rgba(24, 32, 56, 0.34);
  --float-line: rgba(24, 32, 56, 0.5);
  --oryn-border-hover: rgba(24, 32, 56, 0.45);
  --frost: #ffffff;
  --frost-strong: #ffffff;
  --frost-float: #ffffff;
  --oryn-glass: #ffffff;
  --frost-ink: #14161f;
  --frost-well: rgba(24, 32, 56, 0.08);
  --color-muted-foreground: #454c5e;
  --oryn-text-2: #242938;
}
html.more-contrast .modal-backdrop, html.more-contrast .card-sheet__backdrop, html.more-contrast .qa-backdrop { background: color-mix(in srgb, var(--canvas) 78%, transparent); }

/* 2. Type --------------------------------------------------------------------------------------------- */
body { font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.t-h1 { font-size: clamp(28px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; }
.t-h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.t-title { font-size: 21px; letter-spacing: -0.018em; }
.t-subtitle { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.t-body { font-size: 15px; }
/* the Library has no shouted labels: a small label is a quiet sentence */
.t-eyebrow, .composer-kicker, .composer-preview__label, .rv-lbl, .card-ctx__label, .bs-vf-kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.uppercase.tracking-wider, .uppercase.tracking-wide, .font-mono.uppercase { letter-spacing: 0; text-transform: none; }

/* 3. The frame: three cards on a canvas ---------------------------------------------------------------- */
html:root { --nav-w: 264px; }
html:root[data-nav="collapsed"] { --nav-w: 72px; }
body { background: var(--canvas); }
.top-brand { display: inline-flex; }
.side-head { display: none; }

@media (min-width: 1024px) {
  html { --fam-left: calc(var(--nav-w) + var(--frame) * 2); --fam-right: var(--frame); scroll-padding-top: calc(var(--top-h) + var(--frame) + 12px); }
  .top-brand { display: none; }

  /* the page card: its paper and its lights stay while the page scrolls */
  #appShell::after {
    content: ''; position: fixed; z-index: 0; pointer-events: none;
    top: var(--frame); bottom: var(--frame); left: var(--fam-left); right: var(--fam-right);
    border-radius: var(--frame-r);
    background:
      radial-gradient(760px 520px at 92% -90px, var(--field-a), transparent 72%),
      radial-gradient(560px 420px at 2% -60px, var(--field-b), transparent 72%),
      radial-gradient(680px 460px at 38% calc(100% + 110px), var(--field-c), transparent 72%),
      var(--color-background);
    transition: left .4s ease-out, right .4s ease-out;
  }
  /* the canvas, drawn over what scrolls past the card's edge, with the card's hairline and lit rim. The ring is only
     as wide as the frame: that covers the strips above and below the card and its four corners, which is all the page
     can scroll into. (A viewport-sized shadow made the browser repaint a huge layer on every scroll step.) */
  #appShell::before {
    content: ''; position: fixed; z-index: 75; pointer-events: none;
    top: var(--frame); bottom: var(--frame); left: var(--fam-left); right: var(--fam-right);
    border-radius: var(--frame-r);
    border: 1px solid var(--frost-line);
    box-shadow: var(--frost-rim), 0 0 0 calc(var(--frame) + 1px) var(--canvas);
    transition: left .4s ease-out, right .4s ease-out;
  }
  #appShell { position: relative; margin-top: calc(var(--top-h) * -1); padding: 0 var(--frame) var(--frame) 0; gap: var(--frame); align-items: flex-start; }
  #main-content { position: relative; z-index: 1; padding: calc(var(--top-h) + 14px) 36px 72px; min-height: calc(100dvh - var(--frame) * 2); }
  #appShell.with-rail #main-content { margin-left: 0; }

  /* the navigation card */
  .app-sidebar {
    position: sticky; top: var(--frame); z-index: 80; margin: 0 0 0 var(--frame); padding: 0;
    width: var(--nav-w); height: calc(100dvh - var(--frame) * 2);
    border: 1px solid var(--frost-line); border-radius: var(--frame-r);
    background: radial-gradient(300px 260px at 0% 0%, var(--field-a), transparent 74%), var(--color-card);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: var(--frost-rim);
  }
  .app-sidebar-inner { gap: 20px; padding: 16px 16px 14px; }
  .app-sidebar nav { gap: 4px; }
  .side-head { position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; padding-left: 4px; }
  .side-brand { display: inline-flex; min-width: 0; align-items: center; gap: 12px; border-radius: 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--color-foreground); }
  .side-brand__mark { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 11px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 16px -10px var(--color-brand); transition: rotate .24s var(--ease-out); }
  .side-brand:hover .side-brand__mark { rotate: -8deg; }
  .side-head #navCollapseBtn { width: 34px; height: 34px; border-radius: 10px; }
  html[data-nav="collapsed"] .side-head { flex-direction: column; height: auto; gap: 8px; padding-left: 0; }
  html[data-nav="collapsed"] .side-brand__word { display: none; }
  html[data-nav="collapsed"] .app-sidebar-inner { padding-left: 0; padding-right: 0; }

  /* the top bar lives inside the page card: clear at rest, glass once the page has moved under it */
  #appTopbar {
    top: var(--frame); height: var(--top-h); margin: var(--frame) var(--fam-right) 0 var(--fam-left);
    border: 0; border-radius: var(--frame-r) var(--frame-r) 0 0; background: transparent !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: margin .4s ease-out;
  }
  /* no blur here: the page fades into the paper as it passes under the bar. A blur over a whole scrolling page is
     the costliest thing a browser can be asked for, and on a busy machine it shows as flicker. */
  /* the paper is solid for the whole height of the bar and fades only below it. It used to start fading at
     62% of the bar, so a post passing under it showed half transparent in the strip between the search field and
     the feed's filter bar, and looked stuck there (Sergio, 3 October). */
  #appTopbar::before {
    content: ''; position: absolute; inset: 0 0 -18px 0; z-index: -1; border-radius: var(--frame-r) var(--frame-r) 0 0; pointer-events: none;
    background: linear-gradient(to bottom, var(--color-background) 0, var(--color-background) calc(100% - 18px), color-mix(in srgb, var(--color-background) 0%, transparent) 100%);
    opacity: 0; transition: opacity .2s var(--ease-out);
  }
  html.is-scrolled #appTopbar::before { opacity: 1; }
  #appTopbar > .grid { padding: 0 20px; grid-template-columns: minmax(0, 1fr) auto; }
  #appTopbar > .grid > div:first-child { display: none; }
  #searchBox { position: relative !important; left: auto !important; top: auto !important; transform: none !important; justify-self: start; width: min(520px, 100%) !important; }

  /* the side column is the third card */
  #rightRail {
    position: sticky; top: var(--frame); z-index: 80; width: var(--rail-w); height: calc(100dvh - var(--frame) * 2);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    border: 1px solid var(--frost-line); border-radius: var(--frame-r);
    background: radial-gradient(320px 260px at 100% 0%, var(--field-b), transparent 74%), var(--color-card);
    box-shadow: var(--frost-rim);
  }
  #rightRail::-webkit-scrollbar { display: none; }
  #rightRail > div { position: static; min-height: 100%; gap: 0; padding: 8px 20px 18px; }
  #rightRail section { padding: 18px 0 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
  #rightRail section + section:not(.hidden) { border-top: 1px solid var(--color-border); }
  #rightRail footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-border); }
}
@media (min-width: 1280px) {
  #appShell.with-rail { --fam-right: calc(var(--rail-w) + var(--frame) * 2); }
  html.has-rail { --fam-right: calc(var(--rail-w) + var(--frame) * 2); }
}
/* The offline notice on a wide screen. It was placed for the phone's top bar (56px from the top, the whole width of
   the window), so here it lay half under the top bar and across the gaps between the three cards. The strip under
   the top bar is also where the feed's bar and the side columns stick, so on a wide screen the notice sits at the
   foot of the page card, inside it, and comes up from below. What sticks to the foot of a page (the post's actions,
   the reply field of a discussion, Back to top) stands above it while it shows (html.bs-offline, set with it). */
@media (min-width: 1024px) {
  #sxOffline { top: auto; bottom: var(--frame); left: var(--fam-left); right: var(--fam-right); transform: translateY(110%); transition: transform .32s var(--ease-out), opacity .28s ease, background-color .3s ease, left .4s ease-out, right .4s ease-out; }
  #sxOffline.sx-show { transform: translateY(0); }
  html.bs-offline .pp-bar { bottom: 56px; }
  html.bs-offline .cx-foot { bottom: calc(var(--frame) + 36px); }
  html.bs-offline #backTop { bottom: 60px; }
}

/* 4. Navigation rows ---------------------------------------------------------------------------------- */
.app-sidebar .nav-link { height: 44px; gap: 14px; padding: 0 12px; border-radius: 13px; font-size: 15px; font-weight: 500; color: var(--oryn-text-2); }
.app-sidebar .nav-link .nav-ic { width: 24px; font-size: 21px !important; text-align: center; color: var(--color-muted-foreground); }
.app-sidebar .nav-link:hover { background: var(--color-muted); color: var(--color-foreground); }
.app-sidebar .nav-link:hover .nav-ic { color: var(--color-foreground); }
.app-sidebar .nav-link.active { background: var(--brand-soft); box-shadow: none; color: var(--color-brand-ink); font-weight: 600; }
.app-sidebar .nav-link.active .nav-ic { color: var(--color-brand); }
.app-sidebar .nav-link .nav-bar, .nav-glide::before { display: none; }
.nav-glide { border-radius: 13px; background: var(--brand-soft); box-shadow: var(--frost-rim); }
html[data-nav="collapsed"] .app-sidebar .nav-link { border-radius: 13px; }
.app-sidebar .nav-badge { background: var(--color-card); color: var(--color-brand-ink); box-shadow: 0 0 0 1px var(--frost-line); }
/* A name longer than the row ("Private Peer Discussions" beside its count) takes a second line; it used to be cut mid-word,
   "Private Peer Discuss" (tester pass, 3 November 2026). Two lines at most, inside the 44 px row. */
html:not([data-nav="collapsed"]) .app-sidebar .nav-link .nav-txt { white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#sideTopicsBlock > div:first-child { padding: 20px 12px 6px; border-top: 1px solid var(--color-border); margin-bottom: 6px; }
#sideTopicsBlock > div:first-child .t-eyebrow { font-size: 13px; }
#sideTopicsBlock:has(.side-empty) > div:first-child a { display: none; }
#sideTopics { gap: 4px; }
#sideTopics > a { border-radius: 13px; }
#sideAccount { border-top: 1px solid var(--color-border); }
#sideAccount #userBtn { border-radius: 14px; }

/* 5. The top bar's pieces ----------------------------------------------------------------------------- */
#searchBox > .flex { height: 46px; padding: 0 18px; gap: 12px; border-radius: 999px; border-color: var(--frost-line); background: var(--frost-strong); box-shadow: var(--frost-rim), var(--frost-shadow); }
#searchBox > .flex > i { font-size: 19px !important; }
#searchInput { font-size: 15px; }
body.search-open #searchBox > .flex { transform: none; box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
#appTopbar button.h-9.w-9, #appTopbar #notifBtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--frost-line); background: var(--frost-strong); box-shadow: var(--frost-rim), var(--frost-shadow); color: var(--oryn-text-2); }
#appTopbar button.h-9.w-9 > i, #appTopbar #notifBtn > i { font-size: 19px !important; }
#appTopbar button.h-9.w-9:hover, #appTopbar #notifBtn:hover { color: var(--color-brand-ink); border-color: var(--oryn-border-hover); }
#appTopbar .mx-1.h-6.w-px { display: none; }
#newPostBtn { height: 44px; padding: 0 20px 0 16px; gap: 8px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--color-brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 8px 18px -10px var(--color-brand); }
#newPostBtn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }

/* The Back control (router.js): one way back from a page inside another, in the same place on every one. It sits
   at the start of the top bar, as tall as the bar's other controls, and says where it goes. The bar stays on
   screen on a phone while such a page is open, so the way back is always within reach. */
.bs-back {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-width: 0; max-width: min(46vw, 260px);
  height: 44px; padding: 0 18px 0 13px; border: 1px solid var(--frost-line); border-radius: 999px;
  background: var(--frost-strong); box-shadow: var(--frost-rim), var(--frost-shadow);
  color: var(--color-foreground); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: color .15s var(--ease-out), border-color .15s var(--ease-out), scale .12s var(--ease-out);
}
.bs-back[hidden] { display: none; }
.bs-back > i { flex: none; font-size: 18px !important; color: var(--oryn-text-2); }
.bs-back > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bs-back:active { scale: .96; }
.bs-back:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
@media (hover: hover) { .bs-back:hover { border-color: var(--oryn-border-hover); color: var(--color-brand-ink); } .bs-back:hover > i { color: var(--color-brand-ink); } }
/* the links each page had for this are not drawn while the control is there (a row left empty goes with its link) */
html.bs-inner :is(.pp-back, .cx-back, .dx-back, .pf-back) { display: none; }
html.bs-inner .pf-top:not(.pp2-pubhead):not(:has(.pf-own)) { display: none; }
@media (min-width: 1024px) {
  html.bs-inner:not(.bs-panel) #appTopbar > .grid { grid-template-columns: auto minmax(0, 1fr) auto; }
  /* a wide screen shows every Settings panel beside the one that is open: the list is the way back */
  html.bs-panel .bs-back { display: none; }
}
@media (max-width: 1023.98px) {
  html.bs-inner #appTopbar > .grid > div:first-child { display: none; }
}

/* 6. Surfaces ----------------------------------------------------------------------------------------- */
/* a card on the page: translucent, a hairline, a lit top edge, a soft shadow */
.feed-card, #main-content .rounded-2xl.border.bg-card, #main-content .rounded-xl.border.bg-card {
  border-color: var(--frost-line); background: var(--frost); box-shadow: var(--frost-rim), var(--frost-shadow);
}
.feed-card { border-radius: 24px; }
@media (hover: hover) {
  .feed-card:hover { border-color: var(--oryn-border-hover); }
}
@media (max-width: 1023.98px) { .feed-card { border-radius: 20px !important; } }

/* 7. Controls ----------------------------------------------------------------------------------------- */
/* pill buttons: every button with a height and words in it */
.follow-btn, .brief-btn, .composer-primary, .ai-btn, .dx-btn, .brand-grad-btn,
button.rounded-lg[class*="px-"]:not(.w-full):not(.text-left):not(.seg),
a.rounded-lg[class*="px-"][class*="h-"]:not(.w-full) { border-radius: 999px; }
.follow-btn { height: 36px; padding: 0 16px; font-size: 13.5px; border-color: var(--frost-line); background: var(--frost-strong); box-shadow: var(--frost-rim); color: var(--color-foreground); }
/* round icon buttons */
button.grid.place-items-center.rounded-lg, button.grid.place-items-center.rounded-md, a.grid.place-items-center.rounded-lg { border-radius: 50%; }
/* segments: a pill of wells with one raised piece that slides */
[role="tablist"], #userMenu .rounded-lg.border.bg-muted, .dx-seg { border-radius: 999px; }
.tab-ind { border-radius: 999px; background: var(--color-card); box-shadow: var(--frost-rim), 0 1px 2px rgba(20, 28, 60, 0.1), 0 6px 14px -8px rgba(20, 28, 60, 0.3); }
[role="tablist"] [role="tab"], .seg { border-radius: 999px; }
/* fields */
input.rounded-lg, textarea.rounded-lg, select.rounded-lg, .lg-field { border-radius: 14px; }
input.rounded-lg:focus, textarea.rounded-lg:focus, .lg-field:focus { box-shadow: 0 0 0 4px var(--brand-soft); }

/* 8. What floats over the page: real glass ------------------------------------------------------------- */
#userMenu, #notifMenu, #searchResults, .search-results, [role="menu"], .popover {
  border: 1px solid var(--frost-line) !important; border-radius: 20px; background: var(--frost-float) !important;
  box-shadow: var(--frost-rim), var(--frost-pop) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
}
.modal-panel { border: 1px solid var(--frost-line); border-radius: 26px; box-shadow: var(--frost-rim), var(--frost-pop); }
.modal-backdrop { background: color-mix(in srgb, var(--canvas) 55%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.tip { border-radius: 11px; background: var(--frost-ink); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); }
/* every layer that floats without a scrim takes the float edge (the tokens above); `html` in front so the rule outranks
   the view sheets loaded after this one. The toasts carry .bs-float for it. */
html #sortMenu, html #userMenu, html #notifMenu, html #feedFilterMenu, html #searchResults, html .ts-pop, html .pp-own__menu, html .mn-list,
html .hp-glass, html .fc-why, html .tip, html .bs-float { border-color: var(--float-line); outline: 1px solid var(--float-seam); outline-offset: 0; }
html.more-contrast #sortMenu, html.more-contrast #userMenu, html.more-contrast #notifMenu, html.more-contrast #feedFilterMenu, html.more-contrast #searchResults,
html.more-contrast .ts-pop, html.more-contrast .pp-own__menu, html.more-contrast .mn-list, html.more-contrast .hp-glass, html.more-contrast .hp-arrow,
html.more-contrast .fc-why, html.more-contrast .tip, html.more-contrast .bs-float { -webkit-backdrop-filter: none; backdrop-filter: none; }
.bs-toast { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; background: var(--frost-ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--frost-pop); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }

/* 9. Phones: the flat layout, the same shapes ---------------------------------------------------------- */
@media (max-width: 1023.98px) {
  :root:root, html.light:root { --oryn-page: var(--color-background); }
  body { background: var(--color-background); }
  .feed-toolbar { background: var(--color-background); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .feed-toolbar::after { display: none; }
  #appTopbar { background: var(--color-background) !important; }
}

/* 10. Home's head: the greeting, then one bar ----------------------------------------------------------- */
/* The switch between the briefing and Discover is two words, not a second pill group; the kinds of post, the filter
   and the order live in one bar that sticks under the top bar. */
[data-viewpanel="feed"] > header { align-items: flex-end; margin-bottom: 20px; }
[data-viewpanel="feed"] > header .t-h1 { font-size: clamp(30px, 2.6vw, 36px); }
[data-viewpanel="feed"] > header .t-body { margin-top: 8px; font-size: 15.5px; }
#feedMode { gap: 22px; padding: 0 2px 6px; border: 0; border-radius: 0; background: transparent; }
#feedMode .seg { position: relative; padding: 0 0 8px; border-radius: 0; background: transparent; box-shadow: none; font-size: 15px; font-weight: 500; color: var(--color-muted-foreground); }
#feedMode .seg:hover { color: var(--color-foreground); }
#feedMode .seg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--color-brand); scale: 0 1; transition: scale .3s var(--ease-out); }
#feedMode .seg.seg-on { color: var(--color-foreground); font-weight: 600; }
#feedMode .seg.seg-on::after { scale: 1 1; }
#feedMode .tab-ind { display: none; }

.feed-toolbar { gap: 6px; }
.feed-toolbar::after { display: none; }
.feed-actions { gap: 2px; padding-left: 8px; border-left: 1px solid var(--color-border); }
.feed-actions #feedFilterBtn, .feed-actions #sortBtn { height: 40px; padding: 0 14px; gap: 8px; border: 0; background: transparent; box-shadow: none; font-size: 14px; font-weight: 500; color: var(--oryn-text-2); translate: none; }
.feed-actions #feedFilterBtn:hover, .feed-actions #sortBtn:hover, .feed-actions #sortBtn[aria-expanded="true"] { background: var(--color-muted); color: var(--color-foreground); box-shadow: none; translate: none; }
/* The three quick buttons family.js puts in the feed's toolbar belong to the one bar of a wide screen. The rule that
   hides them at rest lived only inside the wide block below, so under 1024 px they showed as three bare icons on a
   line of their own under Filter (seen at 390 when the two lines of 3 October were joined). One rule added, outside
   the block: they are drawn nowhere else. */
.feed-quick { display: none; }
@media (min-width: 1024px) {
  .feed-toolbar { top: calc(var(--frame) + var(--top-h) - 4px); flex-wrap: nowrap; margin: 0 0 16px; padding: 6px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--color-card); box-shadow: var(--frost-rim), var(--frost-shadow); -webkit-backdrop-filter: none; backdrop-filter: none; transition: box-shadow .25s var(--ease-out); }
  html.is-scrolled .feed-toolbar { box-shadow: var(--frost-rim), var(--frost-shadow-up); }
  /* going down the feed: the top bar slides away and the toolbar rises to the top of the page card as the one bar,
     lending three quick buttons for what the top bar held; any move back up brings the top bar down again */
  #appTopbar { transition: margin .4s ease-out, translate .3s var(--ease-out), opacity .22s var(--ease-out); }
  html.is-down #appTopbar { translate: 0 calc(-1 * (var(--top-h) + var(--frame) + 8px)); opacity: 0; pointer-events: none; }
  /* Joined on 3 October with the bar's solid paper (#appTopbar::before, above) and the Back control: the bar never
     cross-fades over the page. While it faded in and out over .3s, the post passing under it showed through, half
     transparent, each time the bar came or went (the owner: "se mantiene estancado un post de más arriba medio
     transparente"). It now slides whole: it is there at once when it comes back, and it is switched off only when it
     is out of sight. Two rules added after the two above, which stay as they were; only `transition` is set again. */
  #appTopbar { transition: margin .4s ease-out, translate .42s var(--ease-out), opacity 0s linear 0s; }
  html.is-down #appTopbar { transition: margin .4s ease-out, translate .42s var(--ease-out), opacity 0s linear .42s; }
  /* and it never gives way on an inner page, where it holds the one way back (router.js, html.bs-inner) */
  html.bs-inner.is-down #appTopbar { translate: none; opacity: 1; pointer-events: auto; }
  /* and it draws in from both sides as it rises (Sergio, 5 October): narrower than the posts it floats over, so the two
     widths never coincide, and the rise and the tightening are one movement, on the same clock */
  .feed-toolbar { transition: transform .42s var(--ease-out), margin .42s var(--ease-out), box-shadow .3s var(--ease-out), padding .3s var(--ease-out); }
  html.is-down .feed-toolbar { transform: translateY(calc(-1 * (var(--top-h) - 12px))); margin: 0 var(--bar-inset, 32px) 16px; padding: 4px; }
  /* and once up there it holds only its icons, so the bar is narrower still (Sergio, 6 October 2026): family.js writes
     --bar-inset as the distance that centres what is left, and the margin's own transition above draws the bar in to the
     middle. The tabs whose labels folded here are gone since 28 October 2026. */
  .feed-actions #feedFilterBtn, .feed-actions #sortBtn, .feed-quick__btn { transition: height .3s var(--ease-out), background-color .16s var(--ease-out), color .16s var(--ease-out); }
  html.is-down .feed-actions #feedFilterBtn, html.is-down .feed-actions #sortBtn, html.is-down .feed-quick__btn { height: 34px; }
  html.is-down .feed-quick__btn { width: 34px; }
  .feed-quick { display: none; align-items: center; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--color-border); }
  html.is-down .feed-quick { display: inline-flex; }
  html.is-down .feed-actions #feedFilterBtn, html.is-down .feed-actions #sortBtn { gap: 0; padding: 0 11px; font-size: 0; }
  html.is-down .feed-actions #feedFilterBtn > i, html.is-down .feed-actions #sortBtn > i { font-size: 18px; }
  html.is-down .feed-actions #sortBtn > i:last-child { display: none; }
  /* the order button has no icon of its own since 28 October 2026 ("Sort by" and the order's name): folded, it keeps its
     name, else it was an empty 22 px box */
  html.is-down .feed-actions #sortBtn { gap: 4px; padding: 0 12px; font-size: 13px; }
  html.is-down .feed-actions #sortBtn > i:last-child { display: inline; font-size: 13px; }
  html.is-down .feed-actions #feedFilterCount { font-size: 10px; }
  .feed-quick__btn { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--oryn-text-2); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
  .feed-quick__btn:hover { background: var(--color-muted); color: var(--color-foreground); }
  .feed-quick__btn i { font-size: 18px; }
  /* the "+" is the one of the three that makes something, so it is not one more grey glyph: it wears the Create button's
     colour (brand at rest, the gradient sliding in under the pointer, the same glow, the same press), the other two
     stay quiet (Sergio, 5 October) */
  .feed-quick__btn[data-quick="create"] { position: relative; overflow: hidden; margin-inline: 4px; color: var(--color-primary-foreground); background: var(--color-brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 14px -8px var(--color-brand); transition: box-shadow .25s var(--ease-out), scale .1s ease; }
  .feed-quick__btn[data-quick="create"]::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: var(--brand-grad); background-size: 220% 100%; background-position: 100% 0; opacity: 0; transition: opacity .35s ease, background-position .8s ease; }
  .feed-quick__btn[data-quick="create"] i { position: relative; z-index: 1; }
  .feed-quick__btn[data-quick="create"]:hover { color: var(--color-primary-foreground); background: var(--color-brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 6px 20px color-mix(in srgb, var(--color-brand) 35%, transparent); }
  .feed-quick__btn[data-quick="create"]:hover::before { opacity: 1; background-position: 0 0; }
  .feed-quick__btn[data-quick="create"]:active { scale: .94; }
  html.is-down .feed-quick__btn { animation: feed-quick-in .42s var(--ease-out) both; }
  html.is-down .feed-quick__btn:nth-child(2) { animation-delay: .05s; }
  html.is-down .feed-quick__btn:nth-child(3) { animation-delay: .1s; }
  @keyframes feed-quick-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}

/* the sidebar's topics: what the doctor follows, or an invitation to start */
.side-topic { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 12px; border-radius: 13px; font-size: 14.5px; font-weight: 500; color: var(--oryn-text-2); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.side-topic:hover { background: var(--color-muted); color: var(--color-foreground); }
.side-topic__dot { flex: none; width: 9px; height: 9px; margin: 0 7.5px; border-radius: 50%; background: oklch(.68 .16 var(--h, 255)); }
.side-topic__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-nav="collapsed"] .side-topic { width: 44px; height: 44px; padding: 0; justify-content: center; }
html[data-nav="collapsed"] .side-topic__name { display: none; }
.side-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 8px 0 0; padding: 18px 16px 16px; border: 1px solid var(--frost-line); border-radius: 20px; background: radial-gradient(180px 120px at 100% 0%, var(--field-a), transparent 72%), var(--frost); box-shadow: var(--frost-rim); }
.side-empty__art { display: flex; flex-wrap: wrap; gap: 5px; width: 120px; margin-bottom: 10px; }
.side-empty__art i { display: block; height: 14px; border-radius: 999px; background: oklch(.72 .13 var(--h)); opacity: .9; }
.side-empty__art i:nth-child(1) { --h: 255; width: 54px; }
.side-empty__art i:nth-child(2) { --h: 190; width: 34px; }
.side-empty__art i:nth-child(3) { --h: 300; width: 70px; opacity: .55; }
.side-empty b { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; }
.side-empty > span:not(.side-empty__art) { font-size: 12.5px; line-height: 1.4; color: var(--color-muted-foreground); }
.side-empty__go { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-top: 10px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--color-brand); color: var(--color-primary-foreground); font-size: 13.5px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 8px 18px -10px var(--color-brand); }
.side-empty__go:hover { background: var(--color-brand-hover); }

/* 11. Every view sits in the middle of the page card ---------------------------------------------------- */
@media (min-width: 1024px) {
  html #appShell#appShell #main-content > [data-viewpanel]:not([data-viewpanel="publicprofile"]):not([data-viewpanel="publicclin"]) { margin-left: auto; margin-right: auto; transition: none; }
  #main-content > [data-viewpanel="feed"] { max-width: 740px; }
}

/* 12. Icons: the Library's own set (Phosphor), outline everywhere; a filled glyph only says "on" (liked, saved) ---- */
.ph-bold { font-family: "Phosphor" !important; font-style: normal; font-weight: normal; line-height: 1; -webkit-text-stroke: .6px currentColor; -webkit-font-smoothing: antialiased; }
.ph-bold.ph-check:before { content: "\e182"; }
.ph-bold.ph-x:before { content: "\e4f6"; }
.app-sidebar .nav-ic, .mnav-ic, #appTopbar i { font-family: "Phosphor" !important; }

/* 13. Controls, the Library's shapes everywhere --------------------------------------------------------- */
/* any one-line button is a pill; a primary one glows in the accent and wears a ring on hover */
:is(button, a).inline-flex[class*="h-"][class*="px-"], :is(button, a).flex.items-center.justify-center[class*="h-"]:not(.w-full),
:is(button, a)[class*="rounded-xl"][class*="px-"]:not(.text-left):not(.w-full), .set-save, .ap-speed, .kind-chip,
:is(span, button, a)[class*="rounded-md"][class*="px-"]:not(.seg):not(.text-left), span[class*="rounded-lg"][class*="px-"], span[class*="rounded "][class*="px-"] { border-radius: 999px; }
:is(button, a).border.bg-card[class*="h-"], :is(button, a).border.border-border[class*="h-"]:not(.bg-brand) { border-color: var(--frost-line); box-shadow: var(--frost-rim); transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out), color .16s var(--ease-out), box-shadow .32s var(--ease-out), translate .42s var(--frost-ease), scale .12s var(--ease-out); }
:is(button, a).bg-brand[class*="h-"], .set-save, .composer-primary, .dx-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 8px 18px -10px var(--color-brand); transition: background-color .16s var(--ease-out), box-shadow .32s var(--ease-out), translate .42s var(--frost-ease), scale .12s var(--ease-out); }
@media (hover: hover) {
  :is(button, a).border.bg-card[class*="h-"]:hover, :is(button, a).border.border-border[class*="h-"]:not(.bg-brand):hover { translate: 0 -1px; box-shadow: var(--frost-rim), 0 10px 22px -14px rgba(20, 28, 60, 0.45); }
  :is(button, a).bg-brand[class*="h-"]:hover, .set-save:hover, .composer-primary:hover, .dx-btn:hover { translate: 0 -1px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
}
/* the switch: the knob travels on a spring and stretches under the finger */
.sw { width: 44px; height: 26px; background: color-mix(in srgb, var(--color-foreground) 16%, transparent); box-shadow: inset 0 1px 2px rgba(20, 28, 60, 0.14); transition: background-color .26s var(--ease-out), box-shadow .32s var(--ease-out); }
.sw::after { top: 3px; left: 3px; width: 20px; height: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transform-origin: 0 50%; transition: transform .46s var(--frost-ease), width .2s var(--ease-out); }
.sw:active::after { width: 25px; }
.sw.on { background: var(--color-brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -8px var(--color-brand); }
.sw.on::after { transform: translateX(18px); }
.sw.on:active::after { transform: translateX(13px); }
/* fields: one shape, and a soft ring in the accent when they are in use */
.fld, select.fld { height: 46px; padding: 0 16px; border-radius: 14px; border-color: var(--frost-line); background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 15px; transition: border-color .22s var(--ease-out), box-shadow .32s var(--ease-out); }
textarea.fld { height: auto; padding: 12px 16px; }
.fld:focus, select.fld:focus { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); background: var(--color-card); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
/* The app's own tick box and radio (3 October 2026). They are the real inputs, restyled, so every label, every
   handler and the keyboard keep working as they did: rounded, the accent when chosen, a tick that is drawn from
   left to right (a dot that grows, for a radio), a ring when the keyboard is on it, and 44px to the finger. One
   control for the app, the door and the console (admin.html loads this file too). An input that a screen hides
   on purpose to draw its own box (.sr-only) is left alone. */
:root { --bs-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 8.5l2.9 2.9 6-6.4'/%3E%3C/svg%3E"); }
input[type="checkbox"]:not(.sr-only), input[type="radio"]:not(.sr-only) {
  -webkit-appearance: none; appearance: none; position: relative; display: inline-grid; flex: none; place-content: center; vertical-align: middle;
  width: 22px; height: 22px; min-width: 22px; min-height: 22px; padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--color-foreground) 50%, transparent); border-radius: 7px;
  background: var(--frost-strong); box-shadow: var(--frost-rim); color: var(--color-primary-foreground); cursor: pointer;
  accent-color: var(--color-brand);
  transition: background-color .16s var(--ease-out, ease-out), border-color .16s var(--ease-out, ease-out), box-shadow .22s var(--ease-out, ease-out), scale .12s var(--ease-out, ease-out);
}
input[type="radio"]:not(.sr-only) { border-radius: 50%; }
input[type="checkbox"]:not(.sr-only)::before {
  content: ''; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: var(--bs-tick) center / 14px 14px no-repeat; mask: var(--bs-tick) center / 14px 14px no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .24s var(--ease-out, ease-out) .03s;
}
input[type="checkbox"]:not(.sr-only):checked::before { clip-path: inset(0 0 0 0); }
input[type="radio"]:not(.sr-only)::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; scale: 0; transition: scale .26s var(--frost-ease, ease-out); }
input[type="radio"]:not(.sr-only):checked::before { scale: 1; }
input[type="checkbox"]:not(.sr-only):checked, input[type="radio"]:not(.sr-only):checked {
  border-color: var(--color-brand); background: var(--color-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -8px var(--color-brand);
}
@media (hover: hover) {
  input[type="checkbox"]:not(.sr-only):not(:checked):not(:disabled):hover, input[type="radio"]:not(.sr-only):not(:checked):not(:disabled):hover { border-color: color-mix(in srgb, var(--color-brand) 75%, transparent); }
}
input[type="checkbox"]:not(.sr-only):not(:disabled):active, input[type="radio"]:not(.sr-only):not(:disabled):active { scale: .9; }
input[type="checkbox"]:not(.sr-only):focus-visible, input[type="radio"]:not(.sr-only):focus-visible { outline: none; border-color: var(--color-brand); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
input[type="checkbox"]:not(.sr-only):checked:focus-visible, input[type="radio"]:not(.sr-only):checked:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 4px var(--brand-soft); }
input[type="checkbox"]:not(.sr-only):disabled, input[type="radio"]:not(.sr-only):disabled { opacity: .5; cursor: default; }
/* to the finger the control is 44px: an area nobody sees takes the press */
@media (pointer: coarse) {
  input[type="checkbox"]:not(.sr-only)::after, input[type="radio"]:not(.sr-only)::after { content: ''; position: absolute; inset: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  input[type="checkbox"]:not(.sr-only), input[type="radio"]:not(.sr-only), input[type="checkbox"]:not(.sr-only)::before, input[type="radio"]:not(.sr-only)::before { transition: none; }
}
html.a11y-reduce-motion input[type="checkbox"]:not(.sr-only), html.a11y-reduce-motion input[type="radio"]:not(.sr-only),
html.a11y-reduce-motion input[type="checkbox"]:not(.sr-only)::before, html.a11y-reduce-motion input[type="radio"]:not(.sr-only)::before { transition: none; }
/* rows that choose: the settings list, the questions, the onboarding tiles */
.set-link { min-height: 44px; gap: 12px; padding: 0 12px; border-radius: 13px; font-size: 14.5px; color: var(--oryn-text-2); }
.set-link:hover { background: var(--color-muted); color: var(--color-foreground); }
.set-link.active { background: var(--brand-soft); color: var(--color-brand-ink); font-weight: 600; box-shadow: none; }
.q-opt { border-width: 1px; border-radius: 16px; border-color: var(--frost-line); background: var(--frost-strong); box-shadow: var(--frost-rim); }
.q-opt[aria-pressed="true"], .q-opt.is-sel { border-color: var(--color-brand); background: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand) 12%, transparent); }

/* 14. The navigation card, second pass ------------------------------------------------------------------ */
.side-tools { display: none; }
@media (min-width: 1024px) {
  .side-tools { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--color-border); }
  .side-tools .nav-link.active { background: var(--brand-soft); }
  #sideAccount { margin-top: -8px; padding-top: 0; border-top: 0; }
  #sideAccount #userBtn { gap: 12px; padding: 8px 10px 8px 8px; }
  #sideAccount [data-id-name] { font-size: 14.5px; }
  #sideAccount [data-id-role] { margin-top: 2px; font-size: 12.5px; }
  #sideAccount .side-account-gear { opacity: 1; font-size: 16px !important; color: var(--color-muted-foreground); }
  #sideAccount .side-account-gear:before { content: "\e140"; }
  html[data-nav="collapsed"] .side-tools { align-items: center; width: 44px; }
}
:is(button, a).inline-flex[class*="h-"]:not(.text-left) { border-radius: 999px; }
.uppercase { text-transform: none; letter-spacing: 0 !important; }
#main-content .rounded-xl.border.bg-card, #main-content .rounded-2xl.border.bg-card, #main-content section.rounded-xl.border, #main-content section.rounded-2xl.border { border-radius: 24px; }

/* 15. Sign-in, the search veil, the splash --------------------------------------------------------------- */
.lg-field { padding: 13px 18px; border: 1px solid var(--frost-line); background: var(--frost-strong); box-shadow: var(--frost-rim); }
.lg-field:focus { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
#searchDim, #appTopbar::after { background: color-mix(in srgb, var(--canvas) 55%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
@media (min-width: 1024px) {
  #searchDim { inset: var(--frame) var(--fam-right) var(--frame) var(--fam-left); border-radius: var(--frame-r); }
  #appTopbar::after { display: none; }
}
.splash-mark { background: var(--brand-grad) !important; box-shadow: 0 10px 30px -8px var(--color-brand) !important; }
/* the mark is the plain pulse line, never the filled tile */
i.ph-pulse { font-family: "Phosphor" !important; }

/* 16. Direct messages are not offered yet: no way in, anywhere ------------------------------------------- */
#chatBtn, #chatMenu, .chat-dock, [data-view="messages"], [data-goto="messages"] { display: none !important; }
html #appShell#appShell #main-content > [data-viewpanel="feed"] { max-width: 760px; }
#feedUpdated { display: none !important; }
.feed-actions button { white-space: nowrap; }
/* "Sort by" before the order (28 October 2026): one quiet word, the button keeps the order's name. On a phone the order and
   Filters are two cells of one row, the word inside the first; going down the feed the bar folds to icons and the word goes */
.sort-at { white-space: nowrap; }
.sort-by { margin-right: 1px; font-size: 12px; font-weight: 400; color: var(--color-muted-foreground); }
@media (max-width: 639.98px) { .feed-actions .sort-at { text-align: center; } .feed-actions .sort-by + #sortBtn { width: auto; } }
html.is-down .feed-actions .sort-by { display: none; }
@media (min-width: 1024px) and (max-width: 1519.98px) { .feed-actions #feedFilterBtn, .feed-actions #sortBtn { padding: 0 10px; gap: 6px; } }

/* 17. Last details ---------------------------------------------------------------------------------------- */
.bs-vf-card__row p { font-size: 12.5px; letter-spacing: 0; text-transform: none; }
@media (max-width: 1023.98px) { .feed-actions { padding-left: 0; border-left: 0; } }
/* icons are a font now, not a mask over the element's colour: these two places painted the icon's own box */
#userMenu .user-menu__item i:first-child, .bts-card .bts-what i { display: inline-grid; place-items: center; background-color: transparent; -webkit-mask: none; mask: none; }
/* the sign-in button's words follow the theme (they were always white, which is weak on the dark theme's lighter blue),
   and the small print under the form is read at full strength */
.lg-cta-inner { color: var(--color-primary-foreground); }
#loginScreen .lg-formside p.m-0, #loginScreen #lgNonUs { color: var(--color-muted-foreground); opacity: 1; }

/* 18. A touch screen: 44px to the finger ------------------------------------------------------------------
   A small control keeps its look. What grows is the area that takes the press: an ::after nobody sees. Where a
   scroller would clip that area the control itself gets the height. Each view's own controls are in its sheet. */
@media (pointer: coarse) {
  .top-brand, .follow-btn, .user-menu__logout, [data-share-copy], .x-doc, [data-viewpanel] footer [data-doc] { position: relative; }
  .top-brand::after, #backTop::after, .follow-btn::after, .user-menu__logout::after, [data-share-copy]::after, .x-doc::after, [data-viewpanel] footer [data-doc]::after { content: ''; position: absolute; }
  .top-brand::after { inset: -6px 0; }
  #backTop::after { inset: -3px; }
  .follow-btn::after { inset: -5px 0; }
  .user-menu__logout::after { inset: -1px 0; }
  [data-share-copy]::after { inset: -6px 0; }
  .x-doc::after { inset: -13px 0; }
  [data-viewpanel] footer [data-doc]::after { inset: -6px -6px; }
  #appearSeg .seg, #toneSeg .seg, [data-viewpanel="settings"] button.h-10 { min-height: 44px; }
  /* the search field takes the press over the whole height of its bar, not only on its line of text */
  #searchInput { align-self: stretch; height: auto; min-height: 40px; }
}
