/* PrepBuddy shared: feed card and feed-screen chrome (Adda; later Profile "my feeds", Topic page, Feed detail).
   Tokens only. Flutter: FeedCard, ReactionPicker, PollWidget, FilterChipRow, CreateFab. Spec: 03-modules/learner/adda/screens/00-feed.md */

/* ---------- filter chips (sticky under the top bar; follows it when the bar hides) ---------- */
.filters { position: sticky; top: 64px; z-index: 15; background: var(--bg); margin: 0 -16px; padding: 8px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; transition: top 300ms ease; }
.filters::-webkit-scrollbar { display: none; }
body.chrome-hidden .filters { top: 0; }
.fc { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font-size: calc(14px * var(--font-scale)); font-weight: 600; color: var(--text-primary); transition: background-color 150ms ease, color 150ms ease; }
/* a 40 dp chip keeps the 44 dp touch target through the shared .hit (components.css, 2026-10-19) */
a.fc { text-decoration: none; }   /* a chip may be a link (My preparation's status chips, 2026-10-03) */
.fc .mi { font-size: 18px; }
.fc.on { background: var(--primary); color: var(--on-primary); box-shadow: none; }
/* ---------- the view row (Adda and the Saved page, 2026-10-05): every place is a round icon; the open one shows its name, underneath on a phone and beside it from 600 dp ----------
   For you · Buddies · Topics · Group, a gap, Events · Market · News: seven 40 dp icons that fit 360 dp and 320 dp without a swipe (Today's chip row was 868 dp wide).
   The open icon is filled and its name hangs under it over the empty label space of its neighbours; the other names are the icons' aria-label and tooltip.
   It is a .filters row (sticky, margins, background) with the chip layout switched off. Flutter: Row(spaceBetween) of PbIconTab, sticky like the chip row. */
.itabs { overflow: visible; gap: 0; justify-content: space-between; align-items: flex-start; height: 70px; padding-block: 8px 0; box-sizing: border-box; }
.it { position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); color: color-mix(in srgb, var(--ac, var(--text-primary)) 60%, var(--text-primary)); transition: background-color 150ms ease, color 150ms ease; }   /* the module's colour, pulled toward the text colour so each icon keeps 3:1 on the button in light and dark */
.it::after { content: ""; position: absolute; inset: -4px; }   /* 40 dp icon, 48 dp touch target */
.it .mi { font-size: 20px; }
.it.on { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.it-l { display: none; position: absolute; top: 46px; inset-inline-start: 50%; transform: translateX(-50%); font-size: calc(12px * var(--font-scale)); font-weight: 700; line-height: calc(16px * var(--font-scale)); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--primary-text); pointer-events: none; }
[dir="rtl"] .it-l { transform: translateX(50%); }
.it.on .it-l { display: block; }
@media (max-width: 599px) { .itabs > .it:first-child .it-l { inset-inline-start: 0; transform: none; } .itabs > .it:last-child .it-l { inset-inline-start: auto; inset-inline-end: 0; transform: none; } }   /* the first and the last name start at their icon's edge, so a long one (Tamil "உங்களுக்காக") never leaves the screen while fitTabs waits for the font (2026-11-15) */
/* the name is centred under its icon; PBShell.fitTabs nudges it only when it would leave the screen (the first or the last name at large text or in Tamil) */
.it-sep { flex: 0 0 1px; width: 1px; height: 24px; margin-top: 8px; background: var(--border); }
@media (max-width: 359px) { .it { width: 36px; height: 36px; } .it-l { top: 42px; } }
@media (min-width: 600px) {   /* tablet and web: the same icons in the same places; the open one grows into a chip with its name beside it (about 440 dp for seven in a 552 to 680 dp column), the other six stay icons */
  .itabs { justify-content: flex-start; gap: 8px; height: 56px; padding-block: 8px; }
  .it.on { width: auto; padding: 0 14px 0 11px; gap: 8px; font-size: calc(14px * var(--font-scale)); font-weight: 600; }
  .it.on .it-l { display: block; position: static; transform: none; inset: auto; max-width: none; font-size: inherit; line-height: inherit; color: inherit; }
  .it-sep { margin-top: 8px; margin-inline: 4px; }
}
@media (min-width: 1024px) {   /* web: every view is a chip with its name beside the icon (the user, 2026-10-05: "for web view these can all be icon + name", "in Saved also"); PBShell.fitTabs sets .names and drops it when the chips do not fit the row */
  .itabs.names .it { width: auto; padding: 0 14px 0 11px; gap: 8px; font-size: calc(14px * var(--font-scale)); font-weight: 600; }
  .itabs.names .it .it-l { display: block; position: static; transform: none; inset: auto; max-width: none; font-size: inherit; line-height: inherit; color: inherit; }
  .itabs.names .it:not(.on) .it-l { color: var(--text-primary); }   /* the glyph keeps its module colour, the name reads as text */
}
.topics { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 8px; margin: 0 -16px; }
.topics::-webkit-scrollbar { display: none; }
.tp { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--primary-text); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.tp.on { background: var(--primary); color: var(--on-primary); }
.tp { position: relative; min-width: 44px; } .tp::after { content: ""; position: absolute; inset: -4px 0; }   /* a 36 dp chip keeps a 44 dp touch target; "All" is 41 dp wide without the floor */
.tp.edit { color: var(--text-secondary); background: var(--surface); }

/* ---------- layout ---------- */
.adda { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }   /* the stories rail, the view row and the feed column (the side column from 1024 dp) */
.feedcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.side { display: none; }
@media (min-width: 600px) { .filters { margin: 0 -24px; padding: 8px 24px; } .topics { margin: 0 -24px; padding-inline: 24px; } .adda, .feedcol { max-width: 680px; width: 100%; margin: 0 auto; } }
@media (min-width: 1024px) {
  .filters { top: 72px; margin: 0; padding: 8px 0; } .topics { margin: 0; padding-inline: 0; }
  /* web: the view row spans both columns above them (seven named chips need about 800 dp, more than the 680 dp feed column), the stories and the feed under it in the first, the side column in the second */
  .adda { max-width: none; margin: 0; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 360px); grid-template-areas: "views views" "stories side" "feed side"; justify-content: start; gap: 12px 32px; align-items: start; }   /* the columns start at the frame's left edge, under the title and the rail's edge, and use its width (760 + 360 of 1200); the columns fill the frame edge to edge, the rail 300 to 360, the feed the rest; they were 680 + 320 centred in it, leaving a wide empty strip beside the nav (2026-10-09) */
  .adda > .filters { grid-area: views; } .adda > .adda-st { grid-area: stories; } .adda > .feedcol { grid-area: feed; } .adda > .side { grid-area: side; }
  .feedcol { margin: 0; max-width: none; width: auto; }   /* the column fills its grid track (the 680 dp cap was for one column) */
  .side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 136px; max-height: calc(100vh - 136px - 16px); max-height: calc(100dvh - 136px - 16px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text-secondary) 40%, transparent) transparent; padding-bottom: 2px; }   /* under the sticky view row (72 + 56 + 8); taller than the window? it scrolls inside itself, so the last card (Stay safe, Topics for you) is never cut off below the screen */
  .side h3 { margin: 0 0 12px; font-size: calc(14px * var(--font-scale)); font-weight: 800; letter-spacing: .04em; color: var(--text-secondary); }
}

/* ---------- composer (Medium and up) + FAB (Compact) ---------- */
.composer { display: none; }
@media (min-width: 600px) {
  .composer { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 20px; padding: 12px 16px; }
  .composer .pb-avatar { width: 40px; height: 40px; }
  .composer .in { flex: 1; min-height: 44px; border-radius: 999px; background: var(--bg); display: flex; align-items: center; padding: 0 16px; color: var(--text-secondary); font-size: calc(14px * var(--font-scale)); text-align: start; }
  .composer .ks { display: flex; gap: 2px; }
  .composer .ks button { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
  .composer .ks button:hover { background: var(--bg); color: var(--primary-text); }
  .composer .ks button .mi { font-size: 22px; }
}
.fab { position: fixed; inset-inline-end: 16px; bottom: calc(68px + 12px + 16px + env(safe-area-inset-bottom, 0px)); z-index: 29; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border-radius: 999px; background: var(--primary-grad); color: var(--on-primary); box-shadow: var(--glow); transition: transform 300ms ease, translate 300ms cubic-bezier(.16, 1, .3, 1); }
.fab .mi { font-size: 28px; }
body.chrome-hidden .fab { transform: translateY(96px); }
body:has(.toast.show) .fab { translate: 0 -64px; } /* the FAB rises while a toast shows, as Scaffold does for a SnackBar */
/* .keep: a screen with no composer card (Chat) keeps its FAB on wide windows */
@media (min-width: 600px) { .fab { display: none; } .fab.keep { display: inline-flex; } }
.fab[hidden] { display: none; }

/* ---------- new feeds pill ---------- */
/* the pill sits just under the view row, whatever its height (a label under the icon, large text, Tamil): the page measures the row into --filters-h (adda 00); the fallbacks are the row's height on a phone (70) and from 600 dp (56) */
.newpill { position: sticky; top: calc(64px + var(--filters-h, 70px) + 8px); z-index: 14; height: 0; display: flex; justify-content: center; pointer-events: none; transition: top 300ms ease; }
body.chrome-hidden .newpill { top: calc(var(--filters-h, 70px) + 8px); }
@media (min-width: 600px) { .newpill { top: calc(64px + var(--filters-h, 56px) + 8px); } body.chrome-hidden .newpill { top: calc(var(--filters-h, 56px) + 8px); } }
@media (min-width: 1024px) { .newpill { top: calc(72px + var(--filters-h, 56px) + 8px); } }
.newpill button { pointer-events: auto; transform: translateY(-48px); opacity: 0; transition: transform 300ms cubic-bezier(.16, 1, .3, 1), opacity 150ms ease; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: calc(13px * var(--font-scale)); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.newpill.show button { transform: translateY(0); opacity: 1; }
.newpill button .mi { font-size: 18px; }

/* Feed insights, for the author (2026-10-12; adda 00 "Feed insights"): the sheet (opened from your own feed's ⋯ sheet), and the Last 28 days card on Profile 11. One hue (primary) for
   every mark; columns at most 24 dp with a 4 dp rounded top, square at the baseline, a 2 dp gap; ranked bars 10 dp on a 12 % track; no legend (one series); text wears text tokens */
.ins { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.ins h2 { margin: 0; font-size: calc(18px * var(--font-scale)); font-weight: 800; }
.ins-sub { margin: -8px 0 0; font-size: calc(13px * var(--font-scale)); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ins-hero b { font-size: calc(32px * var(--font-scale)); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ins-hero > span:not(.ins-chip) { font-size: calc(14px * var(--font-scale)); color: var(--text-secondary); }
.ins-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: calc(12px * var(--font-scale)); font-weight: 700; background: var(--success-container); color: var(--success-text); }
.ins-chip .mi { font-size: 14px; }
.ins-chip.flat { background: color-mix(in srgb, var(--text-secondary) 12%, transparent); color: var(--text-secondary); }
.ins-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 359px) { .ins-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ins-t { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.ins-t b { font-size: calc(20px * var(--font-scale)); font-weight: 800; font-variant-numeric: tabular-nums; }
.ins-t { min-width: 0; }
.ins-t span { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); overflow-wrap: anywhere; }   /* one long Tamil word wraps inside its tile instead of being cut */
.ins-kind { margin: 0; font-size: calc(14px * var(--font-scale)); color: var(--text-secondary); }
.ins-kind b { color: var(--text-primary); }
.ins-h { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; font-size: calc(16px * var(--font-scale)); font-weight: 800; }
.ins-h small { font-size: calc(12px * var(--font-scale)); font-weight: 500; color: var(--text-secondary); }
.ins-s { margin: 12px 0 8px; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); }
.ins-cols { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 116px; padding-top: 24px; border-bottom: 1px solid var(--border); }
.ins-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-radius: 4px; outline-offset: -2px; }
.ins-col:hover, .ins-col:focus-visible { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.ins-col:focus-visible { outline: 2px solid var(--primary); }
.ins-col i { display: block; width: min(24px, 60%); min-height: 3px; background: var(--primary); border-radius: 4px 4px 0 0; }
.ins-col .ins-pk { margin-bottom: 2px; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ins-days { display: flex; gap: 2px; }
.ins-days span { flex: 1; padding-top: 4px; text-align: center; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.ins-tip { position: absolute; z-index: 2; top: 0; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; padding: 4px 8px; border-radius: 8px; background: var(--text-primary); color: var(--bg); font-size: calc(12px * var(--font-scale)); white-space: nowrap; pointer-events: none; }
.ins-tip[hidden] { display: none; }
.ins-tip b { font-weight: 800; }
.ins-rows { display: flex; flex-direction: column; gap: 12px; }
.ins-row { position: relative; display: flex; flex-direction: column; gap: 4px; border-radius: 8px; outline-offset: 2px; }
.ins-row::after { content: ""; position: absolute; inset: -5px 0; }   /* a 35 dp row, 45 dp touch target (the 10 dp gap is shared) */
.ins-row:focus-visible { outline: 2px solid var(--primary); }
.ins-rt { display: flex; justify-content: space-between; gap: 8px; font-size: calc(14px * var(--font-scale)); }
.ins-rt b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ins-trk { height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.ins-trk i { display: block; height: 100%; background: var(--primary); border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: 4px; border-end-end-radius: 4px; }

.ins .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ins-trend { position: relative; }
.ins-ends { display: flex; justify-content: space-between; padding-top: 4px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.ins-cnt { margin-inline-start: 8px; font-size: calc(12px * var(--font-scale)); font-weight: 500; color: var(--text-secondary); }
.ins-cnt::before { content: "· "; }
.ins-top { display: flex; flex-direction: column; gap: 8px; }
.ins-pg .ins-hero { margin-top: 4px; }
.ins28 .ins-t { background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); }
.ins28 .ins-tiles { margin-bottom: 8px; }
.ins-best { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); text-align: start; }
.ins-best .ti { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.ins-best .ti .mi { font-size: 22px; color: var(--primary-text); }
.ins-best .tx { gap: 1px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.ins-best .tx b { font-size: calc(14px * var(--font-scale)); color: var(--text-primary); }
.ins-best .tx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-best .n { font-size: calc(14px * var(--font-scale)); font-weight: 700; font-variant-numeric: tabular-nums; }
/* Refeed strip and quoted feed (2026-10-12): LinkedIn's Repost and Quote. The strip is the first row of a feed someone refeeded instantly; the quoted feed is the original,
   read-only, inside a feed that refeeds it with thoughts (adda 00 "How a refeed shows to other people") */
.fd .rfline::after, .fd .rfn::after, .fd .sum .rxl::after, .fd .sum .cmt::after, .srpill::after { content: ""; position: absolute; inset: -8px 0; }   /* the 24 to 28 dp inline controls keep a 44 dp touch target */
.fd .rfline::after { inset: -10px 0; }
.fd .rfline, .fd .rfn, .fd .sum .rxl, .fd .sum .cmt, .srpill { position: relative; }
.fd .rfline { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0 -6px -2px; padding: 2px 8px; border-radius: 8px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); text-align: start; }
.fd .rfline .mi { font-size: 16px; flex-shrink: 0; }
.fd .rfline .pb-avatar { width: 20px; height: 20px; flex-shrink: 0; }
.fd .rfline b { color: var(--text-primary); font-weight: 700; }
.fd .rfn { margin-inline-start: 8px; min-height: 28px; display: inline-flex; align-items: center; border-radius: 8px; color: inherit; font: inherit; }
.fd .rfn:hover { color: var(--text-primary); }
.fd .qemb { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; text-align: start; }
.fd .qemb:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fd .qemb .qh { display: flex; align-items: flex-start; gap: 8px; }
.fd .qemb .qh .pb-avatar, .fd .qemb .qh .pb-logo { width: 28px; height: 28px; flex-shrink: 0; }
.fd .qemb .qh .who { min-width: 0; } .fd .qemb .qh b { display: block; font-size: calc(14px * var(--font-scale)); } .fd .qemb .qh .sub { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.fd .qemb .qk { font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--accent, var(--primary)); }
.fd .qemb .qt { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.fd .qemb .media { border-radius: 12px; pointer-events: none; }
.fd .qemb .qn { position: absolute; bottom: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--media-ink) 65%, transparent); color: var(--on-media); font-size: calc(12px * var(--font-scale)); font-weight: 700; }
.fd .qemb .qn .mi { font-size: 14px; color: var(--on-media); }
.fd .qemb.gone { flex-direction: row; align-items: center; cursor: default; color: var(--text-secondary); font-size: calc(14px * var(--font-scale)); }
.fd .qemb.gone .mi { font-size: 20px; }
/* the Pinned strip (2026-10-12): a feed its author pinned to their profile; drawn only on the profile's Feeds section and on Profile 11 */
.fd .pinline { display: flex; align-items: center; gap: 8px; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); margin-bottom: -2px; }
.fd .pinline .mi { font-size: 14px; color: var(--primary-text); }

/* ---------- reaction picker (hold or tap React) ---------- */
.rxp { position: absolute; bottom: 52px; inset-inline-start: 8px; display: flex; gap: 2px; padding: 8px; border-radius: 999px; background: var(--surface); box-shadow: 0 12px 32px color-mix(in srgb, var(--shadow-ink) 18%, transparent), 0 0 0 1px var(--edge); z-index: 6; animation: rxp 300ms cubic-bezier(.34, 1.56, .64, 1); transform-origin: 10% 100%; }
.rxp button { width: 56px; height: 56px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10px; font-weight: 700; color: var(--text-secondary); transition: transform 150ms ease, background-color 150ms ease; }
.rxp button .mi { font-size: 26px; color: var(--rx); }
.rxp button:hover, .rxp button:focus-visible { background: var(--surface); transform: scale(1.12); }
@keyframes rxp { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- embedded kinds: the Around-you cards (the poll, the accepted answer and the score card are shared/components.css since 2026-10-13) ---------- */
.embed { border-radius: 16px; background: var(--bg); overflow: hidden; }
.embed.week { padding: 16px; } .embed.week .ai-card { padding: 0; background: transparent; border: 0; box-shadow: none; }   /* a week recap feed (row 64): the Sunday card's tiles, read-only, one frame (the embed's) */
.embed.whoshere { padding: 16px; display: flex; align-items: center; gap: 12px; } .embed.whoshere .going { flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; font-size: calc(14px * var(--font-scale)); color: var(--text-primary); } .embed.whoshere .going .stack .pb-avatar { width: 32px; height: 32px; margin-inline-start: -8px; } .embed.whoshere .wh-acts { display: flex; flex: 0 0 auto; gap: 8px; }   /* Who's here (row 84): the batch's avatars over the count, the wave and the room at the end */
.embed .ev { width: 100%; background: transparent; } .embed .job { width: 100%; background: transparent; padding: 16px; } .embed .story { padding: 16px; } .embed .listing { width: 100%; background: transparent; display: flex; } .embed .listing .pic { width: 120px; height: auto; flex-shrink: 0; } .embed .listing .body { flex: 1; }

/* ---------- people you may know ---------- */
.pymk { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 4px; margin: 0 -16px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }   /* the snap stops inside the row's inset, so the first card keeps its gap on the left (it snapped flush to the edge before, 2026-10-09) */
.pymk::-webkit-scrollbar { display: none; }
.pk { flex: 0 0 156px; scroll-snap-align: start; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.pk .pb-avatar { width: 56px; height: 56px; margin-bottom: 4px; }
.pk b { font-size: calc(14px * var(--font-scale)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pk .s { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); min-height: 2.6em; line-height: 1.3; }
.pk .pk-m { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: calc(12px * var(--font-scale)); font-weight: 600; color: var(--primary-text); } .pk .pk-m .mi { font-size: 14px; }
.pk .tbtn { margin-top: 8px; }   /* Add Buddy is a round icon button (user-plus, then a check once invited), the same as on Search people */
@media (min-width: 600px) { .pymk { margin: 0 -24px; padding-inline: 24px; scroll-padding-inline: 24px; } }
@media (min-width: 1024px) { .pymk { margin: 0; padding-inline: 0; scroll-padding-inline: 0; } .side .pk { flex-direction: row; text-align: start; align-items: center; gap: 12px; flex: none; padding: 12px; } .side .pk .pb-avatar { margin: 0; width: 44px; height: 44px; } .side .pk .s { min-height: 0; }   /* the path and the college wrap, never an ellipsis ("Business Analyst path · Lo…" hid the college, 2026-11-15) */ .side .pk .tbtn { margin: 0; } .side .pk > div { flex: 1; min-width: 0; } .side .pk .pk-m { justify-content: flex-start; } }

/* ---------- misc ---------- */
.caught { text-align: center; padding: 24px 0 8px; color: var(--text-secondary); font-size: calc(14px * var(--font-scale)); }
.caught .mi { font-size: 32px; color: var(--success-text); display: block; margin-bottom: 8px; }
.roomhead { border-radius: 20px; padding: 16px; background: var(--hero); color: var(--on-hero); box-shadow: inset 0 0 0 1px var(--hero-edge), var(--hero-glow); display: flex; flex-direction: column; gap: 12px; }   /* the group filter's hero surface */
.roomhead h2 { margin: 0; font-size: calc(20px * var(--font-scale)); font-weight: 800; letter-spacing: -0.01em; }
.roomhead .row { display: flex; align-items: center; gap: 12px; font-size: calc(13px * var(--font-scale)); color: var(--on-hero-muted); flex-wrap: wrap; }
.roomhead .pin { padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--on-hero) 10%, transparent); font-size: calc(13px * var(--font-scale)); }
.roomhead .pin small { display: block; color: var(--on-hero-muted); font-size: calc(11px * var(--font-scale)); font-weight: 700; letter-spacing: .04em; margin-bottom: 2px; }
/* the compact group header on Adda's Group view (2026-10-05): ~150 dp instead of 255 to 305. 07 Room and 06 Topic keep the plain .roomhead above. Flutter: GroupHeaderCard */
.roomhead.rh { padding: 16px 16px 12px; gap: 8px; }
.rh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rh-top h2 { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.rh-acts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.rh-n { display: none; }
.rh-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 32px; color: var(--on-hero-muted); text-decoration: none; font-size: calc(13px * var(--font-scale)); }
.rh-meta .stack .pb-avatar { width: 24px; height: 24px; margin-inline-start: -8px; box-shadow: 0 0 0 2px var(--hero-solid); } .rh-meta .stack .pb-avatar:first-child { margin-inline-start: 0; }   /* the ring is the hero blue, not the page background */
.rh-about { margin: 0; display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--font-scale)); line-height: 1.35; color: var(--on-hero-muted); }   /* the room page: what the group is, and the muted bell */
.rh-about .mi { font-size: 16px; flex: 0 0 auto; }
.rh-live { display: inline-flex; align-items: center; gap: 8px; color: var(--on-hero); font-weight: 600; }   /* 8 dp apart: the dot pulses to 1.6x */
.rh-pin { margin: 0; display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--on-hero) 10%, transparent); font-size: calc(13px * var(--font-scale)); line-height: 1.35; }
.rh-pin .mi { flex: 0 0 auto; margin-top: 1px; font-size: 16px; color: var(--on-hero-muted); }
.rh-pin span:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-width: 0; }
@media (max-width: 399px) { .rh-meta { font-size: calc(12px * var(--font-scale)); } }   /* the avatars, the live count and the member count share one line on a 360 dp phone */
@media (min-width: 600px) { .rh-join { width: auto; padding: 0 16px 0 12px; gap: 8px; } .rh-n { display: inline; font-size: calc(14px * var(--font-scale)); font-weight: 700; white-space: nowrap; } }   /* the primary action shows its name where there is room */
.acts button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 52px; padding: 0 8px; border-radius: 12px; font-size: calc(15px * var(--font-scale)); font-weight: 600; text-align: start; color: var(--text-primary); }
.acts button .mi { font-size: 22px; color: var(--text-secondary); }
.acts button small { display: block; font-weight: 500; color: var(--text-secondary); font-size: calc(12px * var(--font-scale)); }
.acts button.danger, .acts button.danger .mi { color: var(--error-text); }
/* a radio list in a sheet (Show: Everything, a category…): a 36 dp accent tile leads the row, a check ends the chosen one. Shared since 2026-10-03 (was nt-fi, nt-ck) */
.acts .ltile { width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.acts button .ltile .mi { font-size: 20px; color: var(--accent); }
.acts button .ck { margin-inline-start: auto; color: var(--primary-text); }   /* after .acts button .mi, so the check is primary */
.acts button:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.acts .hr { height: 1px; background: var(--border); margin: 8px 0; }
.kinds { display: grid; grid-template-columns: 1fr; gap: 8px; }
.kinds button { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 8px 12px; border-radius: 16px; text-align: start; color: var(--text-primary); }
.kinds button:hover { background: var(--surface); }
.kinds .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, transparent); flex-shrink: 0; } .kinds .ic .mi { font-size: 24px; color: var(--accent); }
.kinds b { display: block; font-size: calc(15px * var(--font-scale)); } .kinds span { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) { .rxp { animation: none; } .fab, .newpill, .newpill button, .filters { transition: none; } }

/* ---------- Feed detail (adda/02): comments and answers, comment bar. Tokens §7 "Comment", "Comment bar". ----------
   One comment = 32 dp avatar · name + meta · text 14 sp · Helpful (toggle, count) · Reply · ⋯; replies are one level deep,
   indented 42 dp behind a 2 dp guide; an accepted answer is tinted success 10% with a check ribbon and sits first. */
.fd .txt[data-open], .fd .sum[data-open] { cursor: pointer; }
.fd .txt[data-open]:focus-visible, .fd .sum[data-open]:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 8px; }   /* both are links to Detail (keyboard focus only) */
.comment .pinc { display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--primary-text); }
.comment .pinc .mi { font-size: 14px; }
/* comment bar: sticks above the keyboard; Flutter: a Row in bottomNavigationBar with resizeToAvoidBottomInset */
.cbar { position: sticky; bottom: 0; z-index: 5; background: var(--bg); box-shadow: inset 0 1px 0 var(--border); margin: auto -16px 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; }
.cbar .line { display: flex; align-items: flex-end; gap: 8px; }
.cbar .pb-avatar { width: 32px; height: 32px; flex-shrink: 0; margin-bottom: 8px; }
.cbar .box { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 2px; min-height: 44px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); padding: 0 4px 0 16px; }
.cbar textarea { flex: 1; min-width: 0; box-sizing: border-box; min-height: 44px; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: calc(15px * var(--font-scale)); line-height: 1.4; color: var(--text-primary); padding: 11px 0; max-height: 120px; }
.cbar textarea::placeholder { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line at 320 dp, never a clipped second line */
.cbar .ibt { position: relative; width: 36px; height: 36px; margin-block: 4px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); flex-shrink: 0; }
.cbar .ibt::after { content: ""; position: absolute; inset: -4px; }   /* 36 dp icon, 44 dp touch target */
.cbar .ibt .mi { font-size: 22px; }
.cbar .ibt:hover { background: var(--bg); }
.cbar .send { width: 44px; height: 44px; border-radius: 999px; background: var(--primary-grad); box-shadow: var(--glow); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity 150ms ease; }
.cbar .send[disabled] { opacity: .35; }
.cbar .send .mi { font-size: 22px; }
.cbar .replying { display: flex; align-items: center; gap: 8px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); padding-inline-start: 40px; }
.cbar .replying b { color: var(--text-primary); }
.cbar .replying button { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.cbar .replying .mi { font-size: 16px; }
.cbar .att { position: relative; width: 64px; height: 64px; border-radius: 12px; margin-inline-start: 40px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--cat-cyan) 40%, var(--bg)), color-mix(in srgb, var(--primary) 24%, var(--bg))); }
.cbar .att .mi { font-size: 28px; color: var(--cat-cyan-text); }
.cbar .att .x { position: absolute; top: -6px; inset-inline-end: -6px; width: 22px; height: 22px; border-radius: 999px; background: var(--text-primary); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.cbar .att .x .mi { font-size: 12px; color: var(--bg); }
@media (min-width: 600px) { .cbar { margin: auto -24px 0; padding-inline: 24px; } }
/* message bar (chat, chat screen 01): the comment bar without the avatar, with a tonal round icon button (.tbtn) at the start for attachments; the reply strip quotes the message. A variant of the one component, so the keyboard, reply strip and photo preview behave alike */
.cbar.msg .replying { padding-inline-start: 52px; }
.cbar.msg .replying .snip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbar.msg textarea { max-height: 144px; }   /* a chat message grows from one line to six, then scrolls (a comment: five) */
/* ---------- topic chip + topic picker (sheet): search an existing topic or add a new one; the chip is shared with the composer ---------- */
.tg { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding-inline: 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary-text); font-size: calc(13px * var(--font-scale)); font-weight: 700; }
.tg .mi { font-size: 15px; }
.tg { position: relative; } .tg::after { content: ""; position: absolute; inset: -5px 0; }   /* a 34 dp chip, 44 dp touch target */
.tg > button { z-index: 1; }   /* a chosen tag's remove: above the chip's own hit area (which swallowed the tap, sweep A2 2026-10-18), 44 dp */
.tg.suggest { background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text-secondary); font-weight: 600; } .tg.suggest:hover { color: var(--primary-text); }
.tpk { display: flex; flex-direction: column; gap: 12px; max-height: calc(88vh - 56px); }
.tpk h2 { margin: 0; }
.tpk-hint { margin: -4px 0 0; font-size: calc(13px * var(--font-scale)); line-height: 1.45; color: var(--text-secondary); }
.sfield { display: flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 12px 4px; border-radius: 12px; background: var(--field-bg); box-shadow: inset 0 0 0 1px var(--outline); color: var(--text-secondary); }   /* the Input recipe: field-bg, 1 dp outline, 2 dp primary when focused */
.sfield:focus-within { box-shadow: inset 0 0 0 2px var(--primary); }
.sfield .mi { font-size: 20px; flex-shrink: 0; }
.sfield input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: calc(15px * var(--font-scale)); }
.sfield input::placeholder { color: var(--text-secondary); }
.sfield input::-webkit-search-cancel-button { display: none; }   /* the field has its own clear (.sfield-x); Chrome drew a second one */
.sfield.pill { min-height: 44px; border-radius: 999px; padding-inline: 16px 4px; }   /* in a page bar: the search that replaces the title (Chat, Buddies, Search people) */
.sfield-x { position: relative; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.sfield-x::after { content: ""; position: absolute; inset: -4px; }   /* 40 dp circle, 48 dp touch target (tokens §7), as the chat toolbar does */
.tpk-on { display: flex; gap: 8px; flex-wrap: wrap; } .tpk-on:empty { display: none; }
.tpk-list { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; margin-inline: -8px; padding-inline: 8px; }
.tpk-sec { padding: 12px 8px 4px; font-size: calc(12px * var(--font-scale)); font-weight: 800; letter-spacing: .04em; color: var(--text-secondary); } .tpk-sec:first-child { padding-top: 2px; }
.tpk-n { display: block; } .tpk-n em { font-style: normal; color: var(--primary-text); }
.tpk-row.on { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.acts .tpk-row.on .mi:first-child { color: var(--primary-text); }
.acts .tpk-row .tpk-ck { margin-inline-start: auto; color: var(--primary-text); }
.tpk-row[disabled] { opacity: .45; cursor: default; }
.acts .tpk-new .mi:first-child, .tpk-new b { color: var(--primary-text); }
.tpk-empty { margin: 12px 8px; font-size: calc(14px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.tpk-done { width: 100%; }
/* the filter chip row on a pushed screen sticks under the page bar (56 dp, 64 from 600 dp) instead of the shell's top bar */
.page-wrap .filters { top: 56px; }
@media (min-width: 600px) { .page-wrap .filters { top: 64px; } }
/* the author block opens the profile (06); the ringed avatar keeps opening the story */
.fd .hd .who[data-prof] { cursor: pointer; border-radius: 8px; }
.fd .hd .who[data-prof]:hover b, .fd .hd .who[data-prof]:focus-visible b { color: var(--primary-text); }

/* refeed with thoughts: a full-screen composer over the app (Flutter: a full-screen dialog route), the original embedded below the text */
.rfc { position: fixed; inset: 0; z-index: 38; background: var(--bg); overflow-y: auto; display: flex; justify-content: center; }
.rfc-in { width: 100%; max-width: 560px; padding: 8px 16px 32px; }

.rfc-x { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary); }
.rfc-x .mi { font-size: 22px; }
.rfc-vis { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--edge); color: var(--text-primary); font-weight: 600; font-size: calc(13px * var(--font-scale)); }
.rfc-vis .mi { font-size: 18px; color: var(--text-secondary); }
.rfc-go { margin-inline-start: auto; }
.rfc-ta { width: 100%; box-sizing: border-box; min-height: 96px; margin-top: 8px; padding: 8px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--text-primary); font: inherit; font-size: calc(17px * var(--font-scale)); line-height: 1.5; }
.rfc-ta::placeholder { color: var(--text-secondary); }
.rfc-n { margin-bottom: 12px; }   /* the counter is the shared .f-count (components.css, 2026-10-19); this keeps the 12 dp to the quoted feed */
.rfc-q { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); pointer-events: none; }

/* Save is only in the ⋯ sheet (2026-10-06): the bottom bookmark stays in the DOM, hidden, because the sheet's Save drives it (state, toast, handlers) */
.fd .act [data-sv] { display: none; }

/* tap the reaction count → the Reactions sheet (likes + views side by side, then Liked by) */
.fd .sum .rxl { display: inline-flex; align-items: center; gap: 8px; padding: 0; min-height: 28px; color: inherit; font: inherit; border-radius: 8px; cursor: pointer; }
.fd .sum .rxl:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lk-h { margin: 0 0 12px; text-align: center; font-size: calc(18px * var(--font-scale)); color: var(--text-primary); }
.lk-tot { display: flex; justify-content: center; gap: 32px; color: var(--text-primary); }
.lk-tot > span { display: inline-flex; align-items: center; gap: 8px; font-size: calc(16px * var(--font-scale)); }
.lk-tot .mi { font-size: 22px; color: var(--text-secondary); }
.lk-sub { margin: 0 0 4px; font-size: calc(15px * var(--font-scale)); color: var(--text-primary); }
.lk-list { max-height: 46vh; overflow-y: auto; }

.lk-row .who { flex: 1; min-width: 0; }
.lk-row .who b { display: block; font-size: calc(15px * var(--font-scale)); color: var(--text-primary); }
.lk-row .sub, .lk-more { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.lk-rx { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--on-media); }
.lk-rx .mi { font-size: 13px; }
.lk-more { padding: 12px 0 4px; text-align: center; }
.lk-tot .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Post settings: three switch rows under the post content in the composer (Flutter: a card in the composer's scroll) */
.pset { margin-top: 8px; }
.po-h { margin: 0 0 8px; font-size: calc(15px * var(--font-scale)); font-weight: 700; color: var(--text-primary); }
.po-card { padding: 4px 16px; }
.po-row { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 0; }
.po-row + .po-row { box-shadow: inset 0 1px 0 var(--border); }
.po-row .ltile { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 14%, transparent); }
.po-row .ltile .mi { font-size: 22px; color: var(--primary-text); }
.po-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.po-t b { font-size: calc(15px * var(--font-scale)); font-weight: 600; color: var(--text-primary); }
.po-t small { font-size: calc(12px * var(--font-scale)); line-height: 1.45; color: var(--text-secondary); }

/* text with a background: the feed card (and the composer's canvas share .bgc / .cv) */
.fd .bgc { display: flex; align-items: center; justify-content: center; min-height: 240px; padding: 32px 24px; border-radius: 16px; box-sizing: border-box; }
.fd .bgc .txt { width: 100%; line-height: 1.35; }
.fd .bgc[data-open] { cursor: pointer; } .fd .bgc[data-open]:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* the composer: canvas, the Background strip, the Text controls */
.cv.on { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 32px 24px; border-radius: 20px; box-sizing: border-box; }
.cv.on .ta { min-height: 0; line-height: 1.35; color: var(--ink); caret-color: var(--ink); }
.cv.on .ta::placeholder { color: var(--ink); opacity: .65; }
.bgs { margin-top: 12px; }
.bg-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bg-strip::-webkit-scrollbar { display: none; }
.bg-sw { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; border: 0; padding: 0; position: relative; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 14%, transparent); }
.bg-sw::before { content: ''; position: absolute; inset: -6px; }   /* 48 dp target */
.bg-sw[aria-checked="true"] { outline: 2px solid var(--primary); outline-offset: 2px; }
.bg-none { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--text-primary); }
.bg-none .mi { font-size: 20px; }
.bg-ctl { margin-top: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.bg-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bg-row > .bg-l { width: 56px; font-size: calc(12px * var(--font-scale)); font-weight: 600; color: var(--text-secondary); }
.bg-opt { min-width: 40px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--text-secondary) 12%, transparent); color: var(--text-primary); font: inherit; font-size: calc(13px * var(--font-scale)); display: inline-flex; align-items: center; justify-content: center; }
.bg-opt .mi { font-size: 20px; }
.bg-opt[aria-pressed="true"] { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary-text); box-shadow: inset 0 0 0 1.5px var(--primary); }
.bg-ink { width: 32px; height: 32px; min-width: 0; min-height: 0; padding: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 22%, transparent); }
.bg-ink[aria-pressed="true"] { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 22%, transparent); }

/* the comments sheet (comments.js): no feed page, the thread opens over the feed. Sits under the shell sheets (z 40/41) so a comment's ⋯ and the tag list open above it */
.csb { position: fixed; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity 150ms ease; z-index: 35; }
.csb.open { opacity: 1; pointer-events: auto; }
.cs { position: fixed; inset-inline: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: 560px; height: min(86vh, 780px); display: flex; flex-direction: column; box-sizing: border-box; background: var(--bg); border-radius: 20px 20px 0 0; box-shadow: 0 -1px 0 var(--edge); transform: translateY(100%); transition: transform 300ms cubic-bezier(.16, 1, .3, 1); z-index: 36; outline: none; overflow: hidden; }
.cs.open { transform: none; }
.cs .grab { flex-shrink: 0; margin: 8px auto 4px; }
.cs-top { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 2px 8px 8px 16px; box-shadow: inset 0 -1px 0 var(--border); }
.cs-top #chead { flex: 1; min-width: 0; }
.cs-x { width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary); }
.cs-x:hover { background: var(--surface); }
.cs-x .mi { font-size: 22px; }
.cs-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.cs .cbar { position: static; margin: 0; flex-shrink: 0; }
.cs .coff { flex-shrink: 0; box-shadow: inset 0 1px 0 var(--border); }
@media (min-width: 600px) { .cs { bottom: auto; top: 50%; height: min(80vh, 720px); border-radius: 16px; transform: translateY(-40%); opacity: 0; pointer-events: none; transition: transform 300ms cubic-bezier(.16, 1, .3, 1), opacity 150ms ease; } .cs.open { transform: translateY(-50%); opacity: 1; pointer-events: auto; } .cs .grab { display: none; } }
/* the comment count in a card's summary opens that sheet; a link to a feed from elsewhere highlights it for 2 s */
.fd .sum .cmt { display: inline-flex; align-items: center; min-height: 28px; }
.fd .sum .cmt[data-open] { cursor: pointer; border-radius: 8px; }
.fd .sum .cmt[data-open]:hover { color: var(--text-primary); }
.fd .sum .cmt[data-open]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Adda's view row shows the lit canvas through it while it sits in place (a solid band was a darker rectangle on the glow, 2026-10-09) and turns solid only once it sticks and the feed scrolls under it (the .stuck class, set by 00-feed.html) */
.adda > .filters { background: transparent; transition: top 300ms ease, background-color 150ms ease; }
.adda > .filters.stuck { background: var(--bg); }
@media (prefers-reduced-motion: reduce) { .adda > .filters { transition: none; } }

/* refeed audience: a dropdown right of the avatar (Everyone · Buddies only), not a sheet */
.rfc-vwrap { position: relative; display: inline-flex; }
.rfc-vis { transition: background-color 150ms ease; }
.rfc-vis:hover, .rfc-vis.open { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.rfc-vis .rfc-caret { transition: transform 150ms ease; }
.rfc-vis.open .rfc-caret { transform: rotate(180deg); }
.rfc-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 5; min-width: 248px; padding: 8px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge), 0 12px 32px color-mix(in srgb, var(--shadow-ink) 28%, transparent); }
.rfc-menu[hidden] { display: none; }
.rfc-mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px; border-radius: 12px; text-align: start; color: var(--text-primary); }
.rfc-mi > .mi:first-child { font-size: 22px; color: var(--text-secondary); flex-shrink: 0; }
.rfc-mi .tx { gap: 1px; }
.rfc-mi .tx b { font-size: calc(14px * var(--font-scale)); font-weight: 600; }
.rfc-mi .tx small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.rfc-mi .ck { font-size: 20px; color: var(--primary-text); visibility: hidden; flex-shrink: 0; }
.rfc-mi[aria-checked="true"] .ck { visibility: visible; }
.rfc-mi[aria-checked="true"] > .mi:first-child { color: var(--primary-text); }

/* a video in a card: the poster (or the drawn tile), a play badge, the length */
.fd .media .im .vplay { position: absolute; width: 56px; height: 56px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--media-ink) 58%, transparent); color: var(--on-media); backdrop-filter: blur(4px); }
.fd .media .im .vplay .mi { font-size: 28px; color: var(--on-media); }
.fd .media .im .vdur { position: absolute; bottom: 8px; inset-inline-end: 8px; padding: 2px 8px; border-radius: 4px; background: color-mix(in srgb, var(--media-ink) 65%, transparent); color: var(--on-media); font-size: calc(12px * var(--font-scale)); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Photo pages (PbPhotoPages, 2026-10-12): the photos one at a time, swiped in the author's order. The frame takes the first page's shape (--ar, 4:5 to 16:9),
   a page fits inside it on bg (never cropped), the counter is the Market gallery's pill, the dots sit under the frame, previous / next show from 600 dp on hover or focus */
.fd .media.pages { position: relative; display: block; aspect-ratio: var(--ar, 0.8); background: var(--bg); outline-offset: 2px; }
.fd .media.pages:focus-visible { outline: 2px solid var(--primary); }
@media (min-width: 600px) { .fd .media.pages { max-height: 560px; } }   /* a tall page in a wide column (928 dp on web) would be 1,160 dp tall: the frame stops at 560 and the pages fit inside */
.fd .pg-track { display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fd .pg-track::-webkit-scrollbar { display: none; }
.fd .pg-page { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2, var(--accent)) 22%, var(--surface))); cursor: zoom-in; }
.fd .pg-page .mi { font-size: 32px; color: var(--accent); }
.fd .pg-page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg); display: block; }   /* contain, not cover: a page of notes is read, not glanced at */
.fd .pg-count { position: absolute; top: 12px; inset-inline-end: 12px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--media-ink) 72%, transparent); color: var(--on-media); font-size: calc(12px * var(--font-scale)); font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; direction: ltr; unicode-bidi: isolate; }   /* "1 / 7" reads the same in RTL */
.fd .pg-prev, .fd .pg-next { position: absolute; top: 50%; translate: 0 -50%; width: 32px; height: 32px; display: none; opacity: 0; transition: opacity 150ms ease; }
.fd .pg-prev .mi, .fd .pg-next .mi { font-size: 18px; }
.fd .media.pages .pg-prev, .fd .media.pages .pg-next { background: color-mix(in srgb, var(--media-ink) 55%, transparent); color: var(--on-media); box-shadow: none; }   /* on the card the page behind is light: the counter's dark pill, not the viewer's 14 % white (that one is for black) */
.fd .media.pages .pg-prev:hover, .fd .media.pages .pg-next:hover { background: color-mix(in srgb, var(--media-ink) 72%, transparent); }
.fd .media.pages .pg-prev .mi, .fd .media.pages .pg-next .mi { color: var(--on-media); }
.fd .pg-prev { inset-inline-start: 12px; } .fd .pg-next { inset-inline-end: 12px; }
.fd .pg-prev[disabled], .fd .pg-next[disabled] { opacity: 0 !important; pointer-events: none; }
@media (min-width: 600px) and (hover: hover) { .fd .pg-prev, .fd .pg-next { display: inline-flex; } .fd .media.pages:hover .pg-prev, .fd .media.pages:hover .pg-next, .fd .media.pages:focus-within .pg-prev, .fd .media.pages:focus-within .pg-next { opacity: 1; } }
.fd .pg-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fd .pg-dots { display: flex; justify-content: center; gap: 8px; margin-top: -2px; min-height: 6px; }   /* 8 dp under the frame (the card's 10 dp gap, less 2) */
.fd .pg-dots i { width: 6px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 28%, transparent); transition: background 150ms ease; }
.fd .pg-dots i.on { background: var(--primary); }
/* a drawn page of notes (the samples): a ruled sheet with the page's title and number, in the page's accent */
.pg-sheet { position: absolute; inset: 8% 12%; display: flex; flex-direction: column; gap: 7%; padding: 6% 7%; border-radius: 8px; background: var(--surface); box-shadow: var(--elev-2); color: var(--text-primary); text-align: start; }
.pg-sheet b { font-size: calc(13px * var(--font-scale)); font-weight: 800; color: var(--accent-text, var(--accent)); overflow-wrap: anywhere; }
.pg-sheet i { height: 2px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, var(--border)); } .pg-sheet i:nth-child(odd) { width: 86%; } .pg-sheet i:last-of-type { width: 48%; }
.pg-sheet small { margin-top: auto; align-self: flex-end; font-size: calc(11px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); }
/* a feed's photo full screen (the picture viewer's recipe, PbPictureViewer): media ink, ✕ and the counter in the bar, previous / next on the sides */
/* the photo pages' full screen is the shared .viewer (components.css; was .pv until 2026-10-19); its bar, counter and picture follow */
.pv-bar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 8px; padding-top: calc(4px + env(safe-area-inset-top, 0px)); font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-n { font-size: calc(16px * var(--font-scale)); direction: ltr; unicode-bidi: isolate; }
.pv-pic { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.pv-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pv-pic .mi { font-size: 32px; color: var(--accent); }
.pv-pic .pg-sheet { position: relative; inset: auto; width: min(80vw, 60vh); aspect-ratio: 4 / 5; }
.pv-prev, .pv-next { position: absolute; top: 50%; translate: 0 -50%; }
.pv-prev { inset-inline-start: 12px; } .pv-next { inset-inline-end: 12px; }
.pv-prev[disabled], .pv-next[disabled] { opacity: .35; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fd .pg-prev, .fd .pg-next, .fd .pg-dots i { transition: none; } .fd .pg-track { scroll-behavior: auto; } }

/* Tag a Buddy in a comment: the search field, the matches (marked), the empty state (same look as the composer's Tag Buddies sheet) */
.mt-list { max-height: 44vh; overflow-y: auto; margin-top: 8px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text-secondary) 40%, transparent) transparent; } .mt-list button { gap: 12px; }
.mt-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: start; } .mt-tx small { font-size: calc(12px * var(--font-scale)); font-weight: 500; color: var(--text-secondary); }
.mt-hl { background: color-mix(in srgb, var(--primary) 22%, transparent); color: inherit; border-radius: 4px; }
.mt-none { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 12px; text-align: center; color: var(--text-secondary); } .mt-none .mi { font-size: 32px; color: var(--primary-text); } .mt-none b { color: var(--text-primary); } .mt-none small { font-size: calc(12px * var(--font-scale)); line-height: 1.45; }

/* Series (2026-10-12; adda 08 Series, 09 My series): the pill on an episode, the hero's author row, the list row, the series form */
.fd .pillrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.srpill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 28px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary-text); font-size: calc(12px * var(--font-scale)); font-weight: 700; text-align: start; }
.srpill .mi { font-size: 14px; flex-shrink: 0; }
.srpill .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.srpill:hover { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.srpill.num { background: color-mix(in srgb, var(--text-secondary) 12%, transparent); color: var(--text-secondary); }
.sr-list { display: flex; flex-direction: column; gap: 8px; }
.sr-row { display: flex; align-items: center; gap: 8px; min-height: 72px; padding: 8px 8px 8px 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); }
.sr-row .open { flex: 1; min-width: 0; min-height: 56px; display: flex; align-items: center; gap: 12px; color: inherit; text-align: start; }
.sr-ti { width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent, var(--primary)) 14%, transparent); }
.sr-ti .mi { font-size: 26px; color: var(--accent, var(--primary)); }
.sr-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.sr-tx b { font-size: calc(15px * var(--font-scale)); font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-tx > span { overflow-wrap: anywhere; }
.sr-l { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.srhero .sr-by { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--on-hero); font-size: calc(14px * var(--font-scale)); font-weight: 700; text-align: start; }
.srhero .sr-by .pb-avatar { width: 28px; height: 28px; }
.srhero button.sr-by, a.rh-meta { position: relative; } .srhero button.sr-by::after, a.rh-meta::after { content: ""; position: absolute; inset: min(0px, calc((100% - 44px) / 2)) 0; }   /* a 28 to 32 dp line, a 44 dp touch target (sweep A2, 2026-10-18) */
.sr-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--on-hero) 16%, transparent); color: var(--on-hero); font-size: calc(12px * var(--font-scale)); font-weight: 700; }
.sr-chip .mi { font-size: 14px; }
.srhero .sr-desc { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.5; color: var(--on-hero); overflow-wrap: anywhere; }
.srf { display: flex; flex-direction: column; gap: 16px; }
.srf h2 { margin: 0; font-size: calc(18px * var(--font-scale)); font-weight: 800; }
.srf-h { margin: -8px 0 0; font-size: calc(13px * var(--font-scale)); color: var(--text-secondary); }
.srf-l { display: flex; flex-direction: column; gap: 8px; font-size: calc(13px * var(--font-scale)); font-weight: 700; }
.srf-l input, .srf-l textarea { width: 100%; box-sizing: border-box; padding: 12px 16px; border: 0; outline: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text-primary); font: inherit; font-size: calc(15px * var(--font-scale)); font-weight: 500; resize: none; }
.srf-l input:focus, .srf-l textarea:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.srf-l .f-count { margin-top: -4px; }   /* the counter is the shared .f-count (components.css, 2026-10-19; was srf-c): the label's 8 dp gap less 4 keeps it 4 dp under the field */
.srf .topics { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.srf .btn { width: 100%; }
