/* Shared primitives for every audience (04-prototype/shared/components.css): section header, card, buttons, the icon call to action, status pill,
   horizontal rail, entrance stagger, avatar stack, tag and meta line, empty state, skeleton, list item. Moved verbatim out of learner/shared/cards.css
   on 2026-10-11 (one recipe, one file); cards.css keeps the learner's content cards. Catalog: 02-foundations/components/. Tokens only. */
.sec { margin-top: 24px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-h { flex-wrap: wrap; } .sec-h h2 { min-width: 0; overflow-wrap: anywhere; }   /* at 1.43 text scale "See all" drops under a long heading instead of widening the page (2026-10-03) */
.sec-h > div:first-child { flex: 1 1 12ch; min-width: 0; }   /* a heading with a subtitle shrinks and wraps its own text, so See all stays beside it (Tamil subtitles pushed it under the heading, 2026-10-04) */
.sec-h h2 { margin: 0; font-size: calc(20px * var(--font-scale)); font-weight: 700; letter-spacing: -0.01em; }
.link { min-height: 48px; padding: 0 8px; margin-inline-end: -8px; display: inline-flex; align-items: center; gap: 2px; color: var(--primary-text); font-size: calc(14px * var(--font-scale)); font-weight: 600; border-radius: 8px; text-decoration: none; }   /* the same See all on Today, Adda and Profile */
.rowx { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.rowx::-webkit-scrollbar { display: none; }
.rowx > * { scroll-snap-align: start; flex: 0 0 auto; }
.card { background: var(--surface); border-radius: 20px; padding: 16px; box-sizing: border-box; box-shadow: inset 0 0 0 1px var(--edge); }  /* panel on the canvas with a 1 dp tinted edge; tokens: radius xl, §4.2 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--dn-control, 48px); padding: 0 var(--dn-btn-x, 20px); border-radius: 999px; font-size: calc(var(--dn-ctl-text, 14px) * var(--font-scale)); font-weight: 600; text-decoration: none; }   /* --dn-*: the dense scope, see "the dense scope" below; unset outside a .pb-dense region */   /* a button may be a link (Track, Continue the chat, Edit): never underlined (2026-10-03) */
.btn-fill { background: var(--primary-grad); color: var(--on-primary); }
.btn-out { border: 1px solid var(--outline); background: var(--surface); color: var(--text-primary); }
.btn-danger { background: var(--error); color: var(--on-error); }   /* the one destructive confirmation (Delete account, a confirm sheet's Sign out / Remove / Block): was an inline style in PBChat.confirmSheet */
.btn:active, .chip:active { transform: scale(.98); }   /* press feedback (tokens §5): every button and chip answers a tap, as the primary button and the round icon button do (motion audit 2026-11-14) */
@media (prefers-reduced-motion: reduce) { .btn:active, .chip:active { transform: none; } }
.btn[disabled] { opacity: .45; pointer-events: none; }   /* waiting on input (Send until both fields are filled, Delete until the code is complete) */
.btn-hero { background: var(--on-hero); color: var(--hero-solid); }                 /* the filled button on a hero surface (tokens §4.3): white on the blue, never primary on primary */
.btn-hero-out { border: 1px solid var(--hero-edge); background: color-mix(in srgb, var(--on-hero) 10%, transparent); color: var(--on-hero); }   /* its outlined partner */
.btn-sm { position: relative; min-height: var(--dn-control, 40px); padding: 0 var(--dn-x, 16px); }
.btn-sm::after { content: ""; position: absolute; inset: -4px; }   /* a 40 dp button keeps the 48 dp touch target (tokens §7), as .tbtn does */
/* The hit-area recipe for every smaller shared control (integrator, 2026-10-18): the visible control stays as drawn, an invisible ::after grows each axis to 44 dp
   when it is shorter or narrower (min(0px, ...) never shrinks it). One list, one rule; a control that is already 44 dp or more gets no extension. */
.chip.suggest, .link, .fd .more, .fd .hd .who, .fd .tags a, .fd .morelink, .fd .tr button, .comment .tr button, .comment .cacts button, .viewmore, .lrow .trail button, .hit { position: relative; }
.chip.suggest::after, .link::after, .fd .more::after, .fd .hd .who::after, .fd .tags a::after, .fd .morelink::after, .fd .tr button::after, .comment .tr button::after, .comment .cacts button::after, .viewmore::after, .lrow .trail button::after, .hit::after { content: ""; position: absolute; inset: min(0px, calc((100% - 44px) / 2)); }
/* .hit (2026-10-19): the same recipe as an opt-in class for a module's control (a 40 dp filter chip .fc, a tag's remove button, Market's short text button .mk-tl); a module never writes the ::after again */
/* icon call to action (tokens §7, round icon button): a 56 dp round button with a caption under it. Replaces a text button in empty states, error cards and heroes (.hero = on the blue hero surface) */
.cta { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; text-decoration: none; font-size: calc(13px * var(--font-scale)); font-weight: 700; color: var(--primary-text); text-align: center; }
.cta .tbtn { width: 56px; height: 56px; } .cta .tbtn .mi { font-size: 26px; }
.cta.hero { margin-top: 0; gap: 6px; min-width: 64px; color: var(--on-hero); font-size: calc(12px * var(--font-scale)); }
.cta.hero .tbtn { width: 48px; height: 48px; } .cta.hero .tbtn .mi { font-size: 24px; }
/* status pill (tokens §7 "Status pill"): one state word on its semantic container, so the ink clears 4.5:1 (a 14% tint did not): default info · .ok success · .warn warning
   · .err error · .gold reward · .mute neutral. Shared since 2026-10-03 for Payments and Pursue, Prepare's since 2026-10-04 (course state and price, certificate validity,
   Preview, plan tags, Completed, Live now); Practice's 14% .pr-st is still to adopt it. Inside a list row's .tx write it as <strong> (`.lrow .tx span` greys a span) */
.spill { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: min-content; box-sizing: border-box; padding: 3px 10px; border-radius: 999px; font-size: calc(12px * var(--font-scale)); font-weight: 700; line-height: 1.4; text-align: start; white-space: normal; overflow-wrap: break-word; background: var(--info-container); color: var(--info-text); }   /* one line when it fits; a long Tamil or Hindi state wraps inside its row instead of widening the page (render sweep 2026-10-19). In a table cell it stays one line: the table scrolls, and a wrapping pill would starve its neighbours' columns. It wraps between words only: min-width keeps the longest word's width even in a column narrower than that */
.spill .mi { font-size: 14px; }
td .spill, th .spill { white-space: nowrap; max-width: none; min-width: auto; }
.spill.ok { background: var(--success-container); color: var(--success-text); } .spill.warn { background: var(--warning-container); color: var(--warning-text); }
.spill.err { background: var(--error-container); color: var(--error-text); } .spill.gold { background: var(--reward-container); color: var(--reward-ink); }
.spill.mute { background: color-mix(in srgb, var(--text-secondary) 14%, transparent); color: var(--text-secondary); }
.cta.danger { color: var(--error-text); } .cta.danger .tbtn { background: var(--error-container); color: var(--error-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--error) 40%, var(--surface)); }   /* a destructive call to action (Delete, Withdraw, Report): the error container, one recipe for every sheet */
.muted { color: var(--text-secondary); }
.xs { font-size: calc(12px * var(--font-scale)); }
/* ---------- field counter (2026-10-19): the "n / max" line under a textarea or an input with a limit, one recipe for every sheet and page (was pf-cnt, od-count,
   rv-cnt, srf-c, rfc-n and inline muted spans): muted 12 sp, end-aligned, 4 dp under the field, tabular figures; .over when the text is past the limit (a paste).
   Flutter: the TextField's counter slot; catalog: proposed PbFieldCounter (forms) ---------- */
.f-count { display: block; margin-top: 4px; text-align: end; font-size: calc(12px * var(--font-scale)); line-height: 1.33; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.f-count.over { color: var(--error-text); font-weight: 700; }
.av-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 4px; margin: 8px 0 4px; }   /* five across on a phone (2026-10-20, 50 avatars) */
.av-grid button .pb-avatar { width: 100%; height: auto; max-width: 96px; aspect-ratio: 1; }   /* the picture fills its cell: on a wide sheet it grows to 96 dp (the owner: "very small on web view") */
@media (min-width: 600px) { .av-grid { gap: 12px 8px; } }   /* five across at every width (the owner, 2026-10-20) */   /* the avatar chooser grid of a sheet (profile setup, edit profile, a new group; one recipe since 2026-10-20, was profile.css .pf-agrid) */
.av-grid button { display: flex; align-items: center; justify-content: center; padding: 4px; border-radius: 999px; } .av-grid button.on { box-shadow: 0 0 0 3px var(--primary); }
.av-grid.named button { flex-direction: column; gap: 4px; padding: 4px 2px 6px; border-radius: 12px; font-size: calc(11px * var(--font-scale)); line-height: 1.2; color: var(--text-secondary); text-align: center; }   /* a named chooser (the group avatars, 2026-10-20): the name under each picture */
.av-grid.named button.on { box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary-text); font-weight: 600; }
.card-h { margin: 0 0 4px; font-size: calc(18px * var(--font-scale)); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }   /* a card's title: Heading 3 (tokens 2.2); one rule for the document card, the share stand-in, the certificate lock, the review ask and the waiting-room cards (2026-10-19) */
@media (min-width: 600px) and (max-width: 1023px) { .rowx { margin-inline: -24px; padding-inline: 24px; scroll-padding: 0 24px; } }
@media (min-width: 1024px) { .rowx { padding-inline: 0; margin-inline: 0; scroll-padding: 0; } }

/* ---------- entrance stagger (tokens: standard 300 ms) ---------- */
.st { opacity: 0; transform: translateY(12px); animation: st 300ms cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes st { to { opacity: 1; transform: none; } }

/* ---------- small shared bits ---------- */
.stack { display: flex; } .stack .pb-avatar { width: 32px; height: 32px; box-shadow: 0 0 0 2px var(--bg); margin-inline-start: -8px; } .stack .pb-avatar:first-child { margin-inline-start: 0; }
.pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--success); animation: pulse 1.2s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.tag { display: inline-flex; align-items: center; align-self: center; padding: 3px 10px; border-radius: 999px; line-height: 1.4; font-size: calc(12px * var(--font-scale)); font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tagrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }

/* ---------- empty state (tokens §7 Empty state; Flutter EmptyState): an 80 dp tinted icon tile, a title, a line, a .cta. Moved here from feed.css on
   2026-10-03: Settings pages (no feed.css) drew it unstyled ---------- */
.empty { text-align: center; padding: 32px 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { width: 80px; height: 80px; border-radius: 24px; background: color-mix(in srgb, var(--primary) 12%, transparent); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.empty .ic .mi { font-size: 32px; color: var(--primary-text); }
.empty .ic:has(.pb-avatar) { width: auto; height: auto; border-radius: 0; background: none; }   /* PB's mascot is a whole figure that carries no tile behind it (2026-10-20, the owner: "why is there a background block"): the tinted 80 dp tile is for line icons */
.empty h2 { margin: 0; font-size: calc(18px * var(--font-scale)); } .empty p { margin: 0; color: var(--text-secondary); font-size: calc(14px * var(--font-scale)); max-width: 320px; line-height: 1.5; }
/* ---------- the error reference (2026-11-04, backlog row 99; catalog PbErrorReference; both audiences): "E-2280 · 7F3A2C", the error number and the last six of
   the trace id, 12 sp in the code font, selectable, a tap or click copies it (the snackbar says Copied); the round Get help icon beside it opens the Help thread
   (learner) or the staff Get help sheet (portal) with the Diagnostics line written by the client. Under the snackbar's message, under the error state's line,
   on the crash card and in the Diagnostics card. PBUI.refHtml / PBUI.wireRef (ui.js) draw and wire it. ---------- */
.pb-ref { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; max-width: 100%; }
.pb-ref code { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: calc(12px * var(--font-scale)); letter-spacing: 0.02em; color: var(--text-secondary); background: color-mix(in srgb, var(--text-primary) 6%, transparent); padding: 0 10px; border-radius: 8px; user-select: all; -webkit-user-select: all; cursor: copy; white-space: nowrap; }   /* 44 dp tall: it is a tap target (copy) */
.pb-ref code:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.toast .pb-ref { flex-basis: 100%; margin-block: -8px -4px; }   /* the reference sits on its own line under the message, inside the toast's 12 dp padding */
.toast .pb-ref code { color: inherit; background: color-mix(in srgb, currentColor 14%, transparent); }
.empty .pb-ref { margin-top: 4px; }
/* the Diagnostics list (the same rows on the ticket's Diagnostics line, chat 08, the portal's Diagnostics card and the staff Get help sheet): label · value, 13 sp */
.pb-diag { display: grid; grid-template-columns: minmax(80px, 104px) minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: calc(13px * var(--font-scale)); line-height: 1.4; }
.pb-diag dt { color: var(--text-secondary); } .pb-diag dd { margin: 0; overflow-wrap: anywhere; }
.pb-diag dd.pb-diag-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }   /* the reference row */
/* ---------- skeleton + bottom sheet / dialog ---------- */
.skel { border-radius: 24px; background: linear-gradient(90deg, var(--surface), color-mix(in srgb, var(--border) 60%, var(--surface)), var(--surface)); background-size: 200% 100%; animation: sh 1.2s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
/* bottom sheet (.sheet2, .grab) and toast: theme.css */
@media (prefers-reduced-motion: reduce) { .st { animation: none; opacity: 1; transform: none; } .pulse, .skel { animation: none; } }
/* ---------- list item (tokens §7 "List item"; Flutter ListTile): leading tile or avatar, two lines, trailing control ----------
   The row is a div: the tappable area is .open (a button) and the trailing control is its own button, never nested. */
/* the row bleeds 8 dp past the content edge so its tile and text sit on that edge while the hover/press highlight has room */
.lrow { display: flex; align-items: center; gap: 4px; border-radius: 20px; margin-inline: -8px; }
.lrow .open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px; text-align: start; color: var(--text-primary); border-radius: 16px; text-decoration: none; }   /* a row may be a link (2026-10-03) */
a.open { text-decoration: none; }   /* a row that is a link (Profile activity and certificates, 2026-10-03) */
.lrow .ltile { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent, var(--primary)) 16%, transparent); color: var(--accent, var(--primary)); }
.lrow .ltile .mi { font-size: 22px; }

.lrow .tx b { font-size: calc(15px * var(--font-scale)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .tx span { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .tx .wait { color: var(--warning-text); font-weight: 600; }
.lrow .trail { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; padding-inline-end: 4px; }
.lrow .trail button { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.lrow .trail button:hover { background: var(--bg); }
.lrow .trail .mi { font-size: 20px; }
.lrow.pending .ltile { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning-text); }
.lrow.busy .ltile .mi { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.lrow.gone { opacity: 0; transform: translateX(-24px); transition: opacity 300ms ease, transform 300ms ease; }
.lsec { margin: 8px 0 0; font-size: calc(12px * var(--font-scale)); font-weight: 800; letter-spacing: .04em; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.lsec .mi { font-size: 16px; }
.lday { margin: 18px 0 2px; font-size: calc(13px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); }   /* the heading of a day group in a list (Notifications, the learner's center and the portal's inbox): on the page, never a card; the first group's top margin is the page's (.nt-grp:first-child .lday, .in-grp:first-child .lday) */
@media (prefers-reduced-motion: reduce) { .lrow.busy .ltile .mi { animation: none; } .lrow.gone { transition: none; } }

/* ---------- selectable chips (single select; .multi = a multi-select group), from stepper.css on 2026-10-11 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.multi { margin-top: 20px; } /* multi-select group under a question (05-interests) */
.chip { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; min-height: var(--dn-control, 48px); padding: 0 var(--dn-x, 16px); border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); color: var(--text-primary); font: inherit; font-size: calc(var(--dn-ctl-text, 14px) * var(--font-scale)); font-weight: 600; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip.suggest { min-height: 40px; font-weight: 500; }
.chip .mi { font-size: 16px; margin-inline-end: 8px; flex: none; line-height: 1; }   /* a leading icon on a chip (the tick on a chosen chip, the kind glyph on a lesson-type chip): one size and one gap everywhere; it was the default 24 dp with no gap, as tall as the label's line and glued to it (2026-10-27; the portal's filter bar had patched it alone) */
.chip .mi:last-child { margin-inline-end: 0; }
/* the tag field (PBTagField, tagfield.js; redrawn 2026-10-20): one ordinary field, small chips before the cursor, "n/max" at the end, the suggestions as a list under the cursor */
.tgf-host { position: relative; }
.tgf { flex-wrap: wrap; align-items: center; gap: 6px; padding-block: 4px; cursor: text; }
.tgf-c { display: inline-flex; align-items: center; gap: 2px; min-height: 26px; padding: 0 2px 0 10px; 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: 600; line-height: 1; }
.tgf-x { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.tgf-x::after { content: ""; position: absolute; inset: -11px; }   /* the 44 dp hit area */
.tgf-x .mi { font-size: 14px; }
.tgf .tgf-in { flex: 1 1 96px; min-width: 80px; height: auto; min-height: 26px; }
.tgf-n { flex: none; font-size: calc(12px * var(--font-scale)); font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.tgf-dd { position: absolute; inset-inline: 0; top: 100%; z-index: 30; margin-top: 4px; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px color-mix(in srgb, var(--text-primary) 14%, transparent), inset 0 0 0 1px var(--border); }
.tgf-dd .opt { min-height: 36px; padding: 4px 10px; gap: 10px; font-size: calc(14px * var(--font-scale)); } .tgf-dd .opt .mi { font-size: 18px; color: var(--text-secondary); } .tgf-dd .opt.on { background: color-mix(in srgb, var(--primary) 8%, transparent); } .tgf-dd .opt:hover .tx b { color: var(--primary-text); }   /* the keyboard pick is a fill (a selection), the hover the recipe's coloured title */
.tgf-dd .opt .tx b { font-weight: 500; }
.chip [data-ph="caret-down"], .chip [data-ph="caret-up-down"] { font-size: 16px; margin-inline-start: 4px; flex: none; line-height: 1; }   /* a dropdown chip: the flex row centres the chevron on the label, one size and one gap everywhere (it was inline on the text baseline: 2 dp low in a filter bar, 5 dp low in an editor field) */
.chip small { font-weight: 700; margin-inline-start: 6px; opacity: .8; font-variant-numeric: tabular-nums; }   /* a count on a filter chip (the portal's queues) */
.chip[aria-checked="true"] small, .chip[aria-pressed="true"] small { opacity: 1; }   /* the count on the selected chip is full strength: .8 of the on-primary text on the primary fill was 3.9:1 */

/* ---------- option row (PbOptionRow): a full-width row with an icon, for sheets and pickers; from stepper.css on 2026-10-11 ---------- */
.opt { display: flex; align-items: center; gap: var(--dn-opt-gap, 16px); width: 100%; min-height: var(--dn-opt, 56px); padding: 8px 4px; text-align: start; border-radius: 8px; font-size: calc(var(--dn-field-text, 16px) * var(--font-scale)); }   /* the portal's check and radio rows (People 02, Access) are this row: 40 dp under Compact */
.opt svg { width: 24px; height: 24px; color: var(--primary-text); flex-shrink: 0; }
.opt.danger, .opt.danger svg { color: var(--error-text); }
.opt .mi { font-size: var(--dn-opt-icon, 24px);  color: var(--primary-text) }

/* ---------- checkbox (PbInput): a 44 dp target around an 18 dp box; the native input covers the target, invisible, so it stays keyboard and screen-reader
   accessible (2026-10-11, first used by the portal's queues) ---------- */
.cbox { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--dn-toggle, 44px); height: var(--dn-toggle, 44px); cursor: pointer; }
.cbox input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cbox::before { content: ""; width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--outline); background: var(--surface); box-sizing: border-box; transition: background-color 150ms ease, border-color 150ms ease; }
.cbox:has(input:checked)::before { background: var(--primary); border-color: var(--primary); }
.cbox:has(input:checked)::after { content: ""; position: absolute; top: calc((var(--dn-toggle, 44px) - 18px) / 2 + 2px); inset-inline-start: calc((var(--dn-toggle, 44px) - 18px) / 2 + 6px); width: 5px; height: 10px; border: solid var(--on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cbox:has(input:focus-visible)::before { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- variants and density added with the portal (2026-10-11) ---------- */
.btn-tonal { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-text); }   /* the secondary action in a dense row (PbSecondaryButton) */
.btn-ghost { background: transparent; color: var(--text-secondary); }   /* a text-like button with the button's box (PbTextButton) */
.btn-ghost:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--text-primary); }
/* ---------- the dense scope (tokens §3.3; Density setting, 2026-10-19): a .pb-dense region (the portal's main column; PBUI.sheet gives the portal's sheets the class) sets the
   --dn-* custom properties that the recipes read (the button, chip, field, label, helper, check and switch rules here, in theme.css and in the portal's patterns.css). Outside a
   .pb-dense region they are unset and every recipe keeps the regular size in its var() fallback, so the learner and the website never move. Two conditions switch the scale on,
   and the lists must say the same as tokens §3.3 (control 36, field 36, toggle 36 ...):
   - Expanded (>= 1024 dp), whatever the Density setting (the behaviour before the setting existed, so Comfortable is unchanged; the page, not its sheets): the controls, 36 dp;
   - Compact (the portal's Density setting: html[data-density="compact"], the default) from 768 dp and a fine pointer: the controls and the form (field, textarea, label,
     helper, check and switch rows, the editor section's padding). A touch screen (pointer: coarse) keeps 44 and 48 dp at every width. ---------- */
@media (min-width: 1024px) { .pb-dense:not(.sheet2) { --dn-control: 36px; --dn-btn-x: 14px; --dn-x: 12px; --dn-ctl-text: 13px; } }   /* a sheet was never dense in this condition (Comfortable is unchanged): it takes the scale under Compact only */
@media (min-width: 768px) and (pointer: fine) {
  :root[data-density="compact"] .pb-dense { --dn-control: 36px; --dn-btn-x: 14px; --dn-x: 12px; --dn-ctl-text: 13px;
    --dn-field: 36px; --dn-field-text: 13px; --dn-label: 13px; --dn-field-gap: 12px; --dn-text-gap: 4px; --dn-textarea: 72px; --dn-toggle: 36px; --dn-section: 12px;
    --dn-opt: 40px; --dn-opt-gap: 12px; --dn-opt-icon: 20px; }
}

/* ---------- the organisation's logo tile (PbAvatar, the organisation variant; 2026-10-11): the first letter on the kind's tint until a logo exists. The learner's organisation page (profile 09), the portal's list, detail header and editor draw it; --size and --accent are set inline ---------- */
.orgtile { --size: 40px; width: var(--size); height: var(--size); border-radius: calc(var(--size) * .28); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent, var(--primary)) 16%, var(--surface)); color: var(--accent-text, var(--accent, var(--primary-text))); font-weight: 800; font-size: calc(var(--size) * .44); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--primary)) 30%, transparent); }
.orgtile img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---------- Settings recipes shared by the learner and the portal (moved from learner/shared/settings.css on 2026-10-13, rules unchanged: the portal's Settings page
   composes the same section, option discs and settings row; the classes keep the se- prefix; catalog: PbOptionDisc and the Settings row of list-rows.md) ---------- */
/* ---------- section: the heading on the page with the panel under it (as Profile and Today), an optional hint line under the panel ---------- */
.se-sec { margin-top: 4px; }
.se-sec .sec-h { margin-bottom: 10px; }   /* the heading is the shared .sec-h h2 (20 sp), as Profile and Today; the 16 sp override went on 2026-10-19 */
.se-hint { margin: 10px 2px 0; font-size: calc(12px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.se-hint a { color: var(--primary-text); font-weight: 600; }   /* a cross-link in a hint (Career preferences, Notification preferences, Edit profile): moved from notifications.css */

/* ---------- option discs (tokens §7): one exclusive choice as a row of 56 dp discs with a 12 sp caption; the chosen one carries a 2 dp primary ring
   3 dp out (the outline is the focus ring too). role="radio" + aria-checked; arrows move the choice. 3 or 4 across, space-between ---------- */
.se-opts { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.se-opt { flex: 1 1 0; min-width: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0; border-radius: 12px; color: var(--text-secondary); font-size: calc(12px * var(--font-scale)); font-weight: 600; text-align: center; line-height: 1.25; }
.se-opt .se-disc { width: 56px; height: 56px; 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: var(--text-primary); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 150ms ease, transform 150ms ease, background-color 150ms ease, color 150ms ease; }
.se-opt .se-disc .mi { font-size: 24px; }
/* question block (moved here 2026-10-19 from pursue .pu-q and events .ev-q, which never shared a stylesheet): a 15 sp question over its answer (option discs, chips, a field, a
   direct-child amount input); blocks stack with a straight 1 dp line between them; the discs sit 2 across, 4 from 400 dp (the Option disc rule), 3 with .three */
.qblock { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; }
.qblock + .qblock { position: relative; }
.qblock + .qblock::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--border); pointer-events: none; }
.qblock > b { font-size: calc(15px * var(--font-scale)); font-weight: 600; line-height: 1.4; }
.qblock > input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--outline); background: var(--field-bg); color: var(--text-primary); font: inherit; font-size: calc(16px * var(--font-scale)); font-variant-numeric: tabular-nums; }   /* one number (an amount), 48 dp high */
.qblock > input:focus { outline: none; border: 2px solid var(--primary); padding: 0 11px; }
.qblock .se-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
.qblock .se-opt { min-width: 0; text-align: center; overflow-wrap: break-word; }
@media (min-width: 400px) { .qblock .se-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qblock .se-opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.se-opt:hover .se-disc { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.se-opt:active .se-disc { transform: scale(.94); }
.se-opt[aria-checked="true"] { color: var(--text-primary); }
.se-opt[aria-checked="true"] .se-disc { outline-color: var(--primary); background: var(--primary-grad); color: var(--on-primary); box-shadow: none; }
.se-opt:focus-visible { outline: none; } .se-opt:focus-visible .se-disc { outline-color: var(--primary); }
/* theme swatch: the disc is that theme's primary in the current mode (--accent set inline from the swatch tokens); chosen = ring in the same colour + a spring-in check */
.se-opt.se-swatch .se-disc, .se-opt.se-swatch:hover .se-disc { background: var(--accent); color: var(--on-primary); box-shadow: none; }
.se-opt.se-swatch .se-disc .mi { opacity: 0; transform: scale(.4); transition: opacity 150ms ease, transform 300ms cubic-bezier(.34, 1.56, .64, 1); }
.se-opt.se-swatch[aria-checked="true"] .se-disc { outline-color: var(--accent); }
.se-opt.se-swatch[aria-checked="true"] .se-disc .mi { opacity: 1; transform: none; }
/* glyph discs: "Aa" in the font family itself (tokens §2.1), "A" at the step's size in fixed px so the three steps differ whatever the current scale */
.se-aa { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.se-f-poppins { font-family: "Poppins", sans-serif; } .se-f-inter { font-family: "Inter", sans-serif; } .se-f-jakarta { font-family: "Plus Jakarta Sans", sans-serif; } .se-f-dmsans { font-family: "DM Sans", sans-serif; }
.se-a1 { font-size: 15px; font-weight: 700; } .se-a2 { font-size: 20px; font-weight: 700; } .se-a3 { font-size: 28px; font-weight: 700; }

/* ---------- settings rows (tokens §7 List item): 40 dp icon tile in the row's --accent, title 15 sp that wraps, 12 sp hint, a chevron or a switch at the end;
   a 1 dp divider between rows. A row is a button or a link when it opens something, a div when the control at its end is the action ---------- */
.se-rows { display: flex; flex-direction: column; margin: -6px 0; }
.se-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; width: 100%; box-sizing: border-box; text-align: start; color: var(--text-primary); text-decoration: none; border-radius: 12px; }
.se-row + .se-row::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--border); pointer-events: none; }   /* a straight divider (an inset shadow followed the 12 dp hover radius and curved at the ends) */
.se-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent, var(--primary)) 16%, transparent); color: var(--accent, var(--primary)); }
.se-ic .mi { font-size: 22px; }
.se-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.se-tx b { font-size: calc(15px * var(--font-scale)); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.se-tx span { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); line-height: 1.4; overflow-wrap: anywhere; }
.se-tx b span { font: inherit; color: inherit; line-height: inherit; }   /* a title with inline parts (a number, a template) keeps the title's size */
.se-go { flex-shrink: 0; color: var(--text-secondary); display: inline-flex; } .se-go .mi { font-size: 20px; }
.se-go.se-slot.sw-col { width: 52px; } @media (min-width: 1024px) { .se-go.se-slot.sw-col { width: 48px; } }   /* the always-on lock takes the portal switch's column (52 dp, 48 from 1024 dp), so it sits under the switches' centre (2026-10-19) */
.se-go.se-slot { width: 44px; height: 44px; align-items: center; justify-content: center; }   /* the lock takes the 44 dp slot of the round button above it, so its centre sits in the same column (2026-10-19: it hugged the edge, 12 dp off) */

@media (max-width: 359px) { .se-opt .se-disc { width: 52px; height: 52px; } .se-opts { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .se-opt .se-disc, .se-opt.se-swatch .se-disc .mi { transition: none; } }
.se-tx .se-live { color: var(--success-text); font-weight: 600; } .se-live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: 5px; border-radius: 999px; background: currentColor; vertical-align: 1px; }
.se-tx .se-ok { color: var(--success-text); font-weight: 600; } .se-tx .se-warn { color: var(--warning-text); font-weight: 600; }
button.se-row:disabled, .se-opt:disabled { opacity: .5; pointer-events: none; }   /* offline: rows and discs that wait for a connection */
.se-hint.se-lead { margin: 4px 2px 14px; font-size: calc(13px * var(--font-scale)); }
.se-ic.se-init { font-size: calc(16px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); background: color-mix(in srgb, var(--text-secondary) 14%, transparent); }
/* ---------- the question card and the option rows, shared by the learner and the portal (moved from learner/shared/practice.css on 2026-10-13, rules unchanged:
   the attempt (practice 04), the result review (07), the challenge (09, 10) and the portal's question previews (admin/practice 01, 03) compose them; catalog: PbAttemptChrome, PbRadioGroup) ---------- */
.pr-q { display: flex; flex-direction: column; gap: 12px; }
.pr-q .k { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); }
.pr-q .k .marks { display: inline-flex; gap: 8px; } .pr-q .k .marks .neg { color: var(--error-text); }
.pr-q p { margin: 0; font-size: calc(17px * var(--font-scale)); line-height: 1.5; white-space: pre-wrap; -webkit-user-select: none; user-select: none; }
.pr-q .media { border-radius: 16px; overflow: hidden; height: 160px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--primary)) 30%, var(--surface)), color-mix(in srgb, var(--accent, var(--primary)) 10%, var(--surface))); color: var(--accent, var(--primary)); }
.pr-q .media .mi { font-size: 48px; }
.pr-opts { display: flex; flex-direction: column; gap: 8px; }
.pr-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--outline); background: var(--surface); color: var(--text-primary); text-align: start; font-size: calc(15px * var(--font-scale)); line-height: 1.4; width: 100%; box-sizing: border-box; transition: border-color 150ms ease, background 150ms ease; }
.pr-opt .l { width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: calc(12px * var(--font-scale)); font-weight: 800; background: color-mix(in srgb, var(--text-secondary) 14%, transparent); color: var(--text-secondary); }
.pr-opt .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pr-opt .mi { font-size: 20px; flex-shrink: 0; }
.pr-opt[aria-checked="true"], .pr-opt.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.pr-opt.on .l, .pr-opt[aria-checked="true"] .l { background: var(--primary); color: var(--on-primary); }
.pr-opt.ok { border-color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); } .pr-opt.ok .l { background: var(--success); color: var(--on-primary); }
.pr-opt.bad { border-color: var(--error); background: color-mix(in srgb, var(--error) 8%, var(--surface)); } .pr-opt.bad .l { background: var(--error); color: var(--on-error); }
.pr-opt[disabled] { opacity: 1; }
.pr-opt.ok .mi { color: var(--success-text); } .pr-opt.bad .mi { color: var(--error-text); }   /* the check / cross at the end of a reviewed option */
@media (prefers-reduced-motion: reduce) { .pr-opt { transition: none; } }

/* ---------- the feed card, the poll, the accepted answer, the score card and the comment, shared by the learner and the portal (moved from learner/shared/feed.css on 2026-10-13,
   rules unchanged: Adda 00, 02, 06 and 07, Profile 01, Saved and the Topic page draw them; the portal's Adda 00 and 01 show a feed and its comments as the learner sees them; catalog: PbFeedCard, PbPoll,
   PbAcceptedAnswer, PbScoreCard, PbComment). The reaction picker, the comment bar and the embedded Around-you kinds stay the learner's (feed.css). ---------- */
/* ---------- feed card ---------- */
.fd { position: relative; background: var(--surface); border-radius: 20px; padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 0 0 1px var(--edge); }
.fd.around { padding-bottom: 16px; }   /* an Around-you card ends with its embedded card, not the 44 dp action row, so it gets the sides' padding underneath */
.fd .hd { display: flex; align-items: center; gap: 10px; }
.fd .hd .pb-avatar { width: 40px; height: 40px; flex-shrink: 0; }
/* story ring: only around the avatar of a buddy with unseen activity; it opens the story and goes away once seen */
.sring { display: inline-flex; border-radius: 999px; flex-shrink: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); transition: box-shadow 300ms ease; }
.sring.seen { box-shadow: none; }
.fd .hd .oa { width: 40px; height: 40px; flex-shrink: 0; }
.fd .hd .who { flex: 1; min-width: 0; }
.fd .hd b { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: calc(14px * var(--font-scale)); line-height: 1.3; overflow-wrap: anywhere; }   /* the card's name line wraps: a name or a label never ends in an ellipsis (Tamil "Fits your path", 2026-11-15) */
.fd .hd b .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fd .hd b .mi { font-size: 16px; color: var(--primary-text); flex-shrink: 0; }
.fd .hd .sub { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }   /* up to two lines on phones so the group suffix survives (Flutter: maxLines 2); 2026-10-03 */
.fd .hd .sub .grp { color: var(--primary-text); font-weight: 600; }
.fd .more { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); margin-inline-end: -10px; flex-shrink: 0; }
.fd .more .mi { font-size: 22px; }
.fd .kind { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: color-mix(in srgb, var(--accent, var(--primary)) 14%, transparent); color: var(--accent-text, var(--accent, var(--primary-text))); align-self: flex-start; }
.fd .kind .mi { font-size: 14px; }
.fd .txt { margin: 0; font-size: calc(15px * var(--font-scale)); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.fd .txt.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.fd .morelink { align-self: flex-start; color: var(--primary-text); font-weight: 600; font-size: calc(14px * var(--font-scale)); margin-top: -6px; }
.fd .tr { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.fd .tr button { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-text); font-weight: 600; font-size: calc(13px * var(--font-scale)); min-height: 32px; }
.fd .tr button .mi { font-size: 16px; }
.fd .media { border-radius: 16px; overflow: hidden; display: grid; gap: 3px; }
.fd .media.one { grid-template-columns: 1fr; aspect-ratio: 16 / 10; }
.fd .media.two { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.fd .media.three { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; } .fd .media.three .im:first-child { grid-row: 1 / 3; }
.fd .media.four { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1; }
.fd .media .im { position: relative; 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))); min-height: 0; }
.fd .media .im .mi { font-size: 48px; color: var(--accent); }
.fd .media .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }   /* a real photo (one edited in the composer) in place of the drawn tile */
.fd .media .im .plus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--media-ink) 45%, transparent); color: var(--on-media); font-weight: 800; font-size: calc(24px * var(--font-scale)); }
.fd .tags { display: flex; gap: 10px; flex-wrap: wrap; }
.fd .tags a { font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--primary-text); }
.fd .sum { display: flex; align-items: center; gap: 8px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); min-height: 20px; }
.fd .sum .ico { display: inline-flex; }
.fd .sum .ico i { width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; margin-inline-start: -6px; box-shadow: 0 0 0 1.5px var(--surface); font-style: normal; color: var(--on-media); }
.fd .sum .ico i:first-child { margin-inline-start: 0; }
.fd .sum .ico i .mi { font-size: 12px; }
.fd .sum .cmt { margin-inline-start: auto; }
.fd .act { display: flex; align-items: stretch; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); margin: 0 -6px; padding-top: 2px; }
.fd .act button { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; padding: 0 2px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--text-secondary); transition: color 150ms ease, background-color 150ms ease; }
.fd .act button .mi { font-size: 22px; }
.fd .act button .lbl { display: none; } .fd .act button { gap: 0; }   /* icon-only at every width (2026-10-05): the aria-label and the tooltip carry the name (the action rule: icon-only for universal actions) */
.fd .act button:hover { background: color-mix(in srgb, var(--text-secondary) 8%, transparent); }
.fd .act button.on { color: var(--rx, var(--primary)); }
.fd .act button.on .mi { transform: scale(1.1); }
/* the card's states: fresh (a feed that just arrived rises in; a comment too) and gone (removed from a list: unsave, Not interested, unpublished) */
.fd.fresh, .comment.fresh { animation: fresh 500ms cubic-bezier(.16, 1, .3, 1); }
.fd.gone { opacity: 0; transform: translateX(-24px); transition: opacity 300ms ease, transform 300ms ease; } /* removed from a list (Bookmarks unsave, Not interested) */
.comment.pinned { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.fd.hl { box-shadow: inset 0 0 0 2px var(--primary); transition: box-shadow 300ms ease; }
@keyframes fresh { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fd.fresh, .comment.fresh { animation: none; } .fd.gone { transition: none; } }

.poll { display: flex; flex-direction: column; gap: 8px; }
.poll .choice { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--outline); background: var(--bg); font-size: calc(14px * var(--font-scale)); font-weight: 600; overflow: hidden; text-align: start; color: var(--text-primary); }
.poll .choice i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: color-mix(in srgb, var(--primary) 16%, transparent); transition: width 500ms cubic-bezier(.16, 1, .3, 1); }
.poll .choice span { position: relative; } .poll .choice .pct { font-variant-numeric: tabular-nums; color: var(--text-secondary); font-weight: 700; }
.poll .choice.win { border-color: var(--primary); } .poll .choice.win .pct { color: var(--primary-text); }
.poll .choice.mine > i + span::after { content: " ✓"; color: var(--primary-text); }   /* your pick (the first child is the bar <i>, so :first-child never matched) */
.poll .meta { display: block; font-size: calc(12px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }   /* a sentence, not the spaced row of cards.css .meta */
/* the Icebreaker (PrepBuddy's daily question, no right answer): one line under the options until you answer, "Answering keeps your streak today" */
.poll .ice-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: calc(12px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.poll .ice-note .mi { font-size: 16px; color: var(--reward); flex-shrink: 0; margin-top: 1px; }
.ans { border-radius: 16px; background: var(--bg); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ans .ok { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--success-text); }
.ans .ok .mi { font-size: 14px; }
.ans .by { display: flex; align-items: center; gap: 8px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); } .ans .by .pb-avatar { width: 24px; height: 24px; } .ans .by b { color: var(--text-primary); }
.ans p { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.5; }
.ansrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.score { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--cat-green) 22%, var(--bg)), color-mix(in srgb, var(--cat-cyan) 10%, var(--bg))); }
.score .rg { --p: 0; width: 72px; height: 72px; border-radius: 999px; flex-shrink: 0; background: conic-gradient(var(--cat-green) calc(var(--p) * 1%), color-mix(in srgb, var(--text-secondary) 20%, transparent) 0); display: flex; align-items: center; justify-content: center; }
.score .rg i { width: 56px; height: 56px; border-radius: 999px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: calc(18px * var(--font-scale)); letter-spacing: -0.02em; }
.score .inf { flex: 1 1 120px; min-width: 0; } /* with an action (composer: Change) the card wraps the button under the text on phones */ .score .btn, .score .tbtn { margin-inline-start: auto; } .score .inf b { display: block; font-size: calc(14px * var(--font-scale)); } .score .inf span { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }

.chead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chead h2 { margin: 0; font-size: calc(16px * var(--font-scale)); font-weight: 800; letter-spacing: -0.01em; }
.chead .sort { display: flex; gap: 6px; }
.comments { display: flex; flex-direction: column; gap: 2px; }
.comment { display: flex; gap: 10px; padding: 10px 8px; border-radius: 16px; transition: background-color 300ms ease; }
.comment.hl { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.comment .pb-avatar { width: 32px; height: 32px; flex-shrink: 0; }
.comment .cbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.comment .cwho { display: flex; align-items: center; gap: 6px; font-size: calc(13px * var(--font-scale)); min-width: 0; }
.comment .cwho b { font-weight: 700; white-space: nowrap; }
.comment .cwho .csub { color: var(--text-secondary); min-width: 0; overflow-wrap: anywhere; }   /* the path, the college and the time wrap: an ellipsis hid when the comment was written (2026-11-15) */
.comment .ctext { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.comment .ctext a { color: var(--primary-text); font-weight: 600; text-decoration: none; }
.comment .cimg { width: 160px; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--bg)), color-mix(in srgb, var(--accent2) 24%, var(--bg))); }
.comment .cimg .mi { font-size: 32px; color: var(--accent); }
.comment .tr { display: flex; align-items: center; gap: 6px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.comment .tr button { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-text); font-weight: 600; font-size: calc(12px * var(--font-scale)); min-height: 28px; }
.comment .tr .mi { font-size: 14px; }
.comment .cacts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-inline-start: -8px; }   /* wraps: long labels (Tamil, with Accept, at 360) never push ⋯ off screen */
.comment .cacts button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border-radius: 999px; font-size: calc(12px * var(--font-scale)); font-weight: 600; color: var(--text-secondary); }
.comment .cacts button:hover { background: var(--surface); }
.comment .cacts .mi { font-size: 16px; }
.comment .cacts .hb.on { color: var(--cat-green-text); }
.comment .cacts .accept { color: var(--primary-text); }
.comment .cacts .dots { margin-inline-start: auto; width: 36px; justify-content: center; padding: 0; }
.comment.accepted { background: color-mix(in srgb, var(--success) 10%, transparent); }
.comment.accepted .ok { display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--success-text); }
.comment.accepted .ok .mi { font-size: 16px; }
.replies { margin-inline-start: 42px; padding-inline-start: 8px; border-inline-start: 2px solid var(--border); display: flex; flex-direction: column; }
.replies .comment { padding-block: 8px; }
.replies .comment .pb-avatar { width: 28px; height: 28px; }
.viewmore { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; margin-inline-start: 38px; color: var(--primary-text); font-weight: 600; font-size: calc(13px * var(--font-scale)); border-radius: 999px; }
.viewmore .mi { font-size: 16px; }
.coff { text-align: center; font-size: calc(13px * var(--font-scale)); color: var(--text-secondary); padding: 12px; }
/* ---------- the key-value rows and the refund timeline, shared by the learner and the portal (moved from learner/shared/payments.css on 2026-10-13, rules unchanged:
   the learner's receipt (payments 03), refund (04), Settings 08 and the events dashboard draw them; the portal's Payments 01 draws a payment's ids with the rows and its
   event timeline as the timeline's audit variant, catalog PbKeyValueRow and PbRefundTimeline). A 52 dp row, the key at the start, the value at the end, a copy button
   kept with its value; a long value moves under its key (.long). The timeline is vertical because the dates matter: a 28 dp dot per stage (done, current, refused, pending),
   a 2 dp connector, the state as a screen-reader word (.py-vh) ---------- */
.py-kvs { display: flex; flex-direction: column; }
.py-kv { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 52px; padding: 6px 0; box-sizing: border-box; }   /* a value too long for the line moves under its key (an email, an address at 320 dp or 1.43) */
.py-kv + .py-kv { box-shadow: inset 0 1px 0 var(--border); }
.py-val { min-width: 0; overflow-wrap: break-word; }
.py-k { flex-shrink: 0; max-width: 45%; font-size: calc(13px * var(--font-scale)); color: var(--text-secondary); }
.py-kv.long { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 0; }   /* an address: the value under its key, start-aligned, at every width */
.py-kv.long .py-k { max-width: none; }
.py-kv.long .py-v { justify-content: flex-start; text-align: start; }
.py-v { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; text-align: end; font-size: calc(14px * var(--font-scale)); font-weight: 600; line-height: 1.45; overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
.py-tl { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; }
.py-tl li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 16px; }
.py-tl li:last-child { padding-bottom: 0; }
.py-tl li:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 999px; background: var(--border); }
.py-tl li.done:not(:last-child)::before { background: var(--success); }
.py-dot { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); --duo: var(--border); /* no disc, two-tone (2026-10-27) */ color: var(--text-secondary);  color: var(--text-secondary); }
.py-dot .mi { font-size: 22px; }
.py-tl .done .py-dot { color: var(--success); --duo: color-mix(in srgb, var(--success) 45%, transparent); }
.py-tl .cur .py-dot { background: var(--warning-container); box-shadow: none; color: var(--warning-text); }
.py-tl .no .py-dot { background: var(--error-container); box-shadow: none; color: var(--error-text); }
.py-tl .py-tx > b { font-size: calc(14px * var(--font-scale)); }
.py-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Notification row (learner Notifications 00; the portal's Notifications 01 draws it as the Learner sees it): a 48 dp lead (avatar, tile or company tile) with its category badge, the sentence, one context line, the time last, the unread dot; moved here 2026-10-18 ---------- */
.nt-row { display: flex; align-items: center; gap: 12px; }
.nt-lead { position: relative; width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; align-self: flex-start; margin-top: 12px; }
.nt-tile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.nt-tile .mi { font-size: 22px; }
.nt-co { font-weight: 800; font-size: calc(18px * var(--font-scale)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--surface)), color-mix(in srgb, var(--accent) 16%, var(--surface))); color: var(--text-primary); }
.nt-cat { position: absolute; inset-inline-end: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 22%, var(--bg)); color: var(--accent-text, var(--accent)); box-shadow: 0 0 0 2px var(--bg); }
.nt-cat .mi { font-size: 13px; }
.nt-open { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 8px; min-height: 72px; box-sizing: border-box; padding: 12px 0; text-align: start; color: var(--text-primary); box-shadow: inset 0 -1px 0 var(--border); border-radius: 0; }
.nt-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-t { font-size: calc(15px * var(--font-scale)); line-height: 1.4; font-weight: 500; overflow-wrap: break-word; }
.nt-t b { font-weight: 700; }
.nt-row.unread .nt-t { font-weight: 700; }
.nt-ctx { font-size: calc(13px * var(--font-scale)); line-height: 1.4; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.nt-when { font-size: calc(12px * var(--font-scale)); line-height: 1.4; color: var(--text-secondary); }
.nt-row.unread .nt-when { color: var(--primary-text); font-weight: 600; }
.nt-dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 7px; border-radius: 999px; background: var(--primary); display: block; }
@media (prefers-reduced-motion: reduce) { .nt-row, .nt-open { transition: none; } }

/* ---------- the hover recipe (tokens 4.4, owner 2026-10-18): the ONE hover of rows and clickable cards, on every web layout ----------
   No background fill, no lift. A row: its title takes primary, a trailing chevron or arrow moves 2 dp toward its direction (translate, so RTL mirrors),
   a row without a trailing icon changes the title colour only (never an underline: it reads as a link). A card: its 1 dp edge ring becomes primary 55% over edge (--hover-ring-pct; a bordered card: its border colour).
   Pointer devices only; the same signal on :focus-visible. Buttons, round icon buttons, chips, tabs, the rail and the bottom bar keep their own hover (not here).
   A row opts in by being listed below; a new row class is added to the list, never given a hover of its own (audit.py fails a background in a row or card :hover). */
:root { --hover-nudge: 2px; --hover-ring-pct: 55%; }   /* the card ring: primary over edge; a theme that needs a quieter ring overrides the percentage here, never a literal in a rule */
@media (prefers-reduced-motion: reduce) { :root { --hover-nudge: 0px; } }
@media (hover: hover) and (pointer: fine) {
  :is(.se-row .se-tx b, .pf-step .pf-tx b, .pu-head .pu-name, a.q-row .t b, .cu-l[data-href] .cu-t b, .lrow .tx b, .opt, .nt-row .nt-t, .cht-cc :is(.cht-tx, .cht-chat) b, .cht-person.tap .cht-tx b, .pr-res .tx b, .pp-les .tx > span:first-child, .mk-y .tx b, .mk-cat .lb, .mk-qreason, .fd .rfline b, .rfc-mi, .py-row .py-tx > b, .pt-table tr.rowlink :is(td a b, td > a:not(:has(b))), a.an .t, a.cal-row .t b, .q-row.item .t b, .side .mini a, .res b, .ed-going .ev-tx b, .ce-sug .ev-tx b, .rp-res button .pf-tx b) { transition: color 150ms ease-in-out; }
  .se-row:is(:hover, :focus-visible, :has(:focus-visible)) .se-tx b { color: var(--primary-text); }
  .se-row:is(:hover, :focus-visible, :has(:focus-visible)) .se-go { translate: var(--hover-nudge) 0; }
  .pf-step:is(:hover, :focus-visible, :has(:focus-visible)) .pf-tx b { color: var(--primary-text); }
  .pf-step:is(:hover, :focus-visible, :has(:focus-visible)) .pf-go { translate: var(--hover-nudge) 0; }
  .pu-head:is(:hover, :focus-visible, :has(:focus-visible)) .pu-name { color: var(--primary-text); }
  .pu-head:is(:hover, :focus-visible, :has(:focus-visible)) > .mi:last-child { translate: var(--hover-nudge) 0; }
  a.q-row:is(:hover, :focus-visible, :has(:focus-visible)) .t b { color: var(--primary-text); }
  a.q-row:is(:hover, :focus-visible, :has(:focus-visible)) > .ico:last-child { translate: var(--hover-nudge) 0; }
  .cu-l[data-href]:is(:hover, :focus-visible, :has(:focus-visible)) .cu-t b { color: var(--primary-text); }
  .cu-l[data-href]:is(:hover, :focus-visible, :has(:focus-visible)) .cu-acts .mi { translate: var(--hover-nudge) 0; }
  .lrow:is(:hover, :focus-visible, :has(:focus-visible)) .tx b { color: var(--primary-text); }
  .opt:is(:hover, :focus-visible, :has(:focus-visible)) { color: var(--primary-text); }
  .nt-row:is(:hover, :focus-visible, :has(:focus-visible)) .nt-t { color: var(--primary-text); }
  .cht-cc:is(:hover, :focus-visible, :has(:focus-visible)) :is(.cht-tx, .cht-chat) b { color: var(--primary-text); }
  .cht-person.tap:is(:hover, :focus-visible, :has(:focus-visible)) .cht-tx b { color: var(--primary-text); }
  .pr-res:is(:hover, :focus-visible, :has(:focus-visible)) .tx b { color: var(--primary-text); }
  .pp-les:is(:hover, :focus-visible, :has(:focus-visible)) .tx > span:first-child { color: var(--primary-text); }
  .mk-y:is(:hover, :focus-visible, :has(:focus-visible)) .tx b { color: var(--primary-text); }
  .mk-cat:is(:hover, :focus-visible, :has(:focus-visible)) .lb { color: var(--primary-text); }
  .mk-qreason:is(:hover, :focus-visible, :has(:focus-visible)) { color: var(--primary-text); }
  .fd .rfline:is(:hover, :focus-visible, :has(:focus-visible)) b { color: var(--primary-text); }
  .rfc-mi:is(:hover, :focus-visible, :has(:focus-visible)) { color: var(--primary-text); }
  .py-row:is(:hover, :focus-visible, :has(:focus-visible)) .py-tx > b { color: var(--primary-text); }
  .pt-table tr.rowlink:is(:hover, :focus-visible, :has(:focus-visible)) :is(td a b, td > a:not(:has(b))) { color: var(--primary-text); }
  a.an:is(:hover, :focus-visible, :has(:focus-visible)) .t { color: var(--primary-text); }
  a.cal-row:is(:hover, :focus-visible, :has(:focus-visible)) .t b { color: var(--primary-text); }
  .q-row.item:is(:hover, :focus-visible, :has(:focus-visible)) .t b { color: var(--primary-text); }
  .side .mini a:is(:hover, :focus-visible, :has(:focus-visible)) { color: var(--primary-text); }
  .res:is(:hover, :focus-visible, :has(:focus-visible)) b { color: var(--primary-text); }
  .ed-going:is(:hover, :focus-visible, :has(:focus-visible)) .ev-tx b { color: var(--primary-text); }
  .ce-sug:is(:hover, :focus-visible, :has(:focus-visible)) .ev-tx b { color: var(--primary-text); }
  .rp-res button:is(:hover, :focus-visible, :has(:focus-visible)) .pf-tx b { color: var(--primary-text); }
  .pp-csec > button:is(:hover, :focus-visible) b { color: var(--primary-text); }   /* a disclosure chevron rotates, it does not move */
  :is(.se-go, .pf-go, .pu-head > .mi:last-child, a.q-row > .ico:last-child, .cu-acts .mi) { transition: translate 150ms ease-in-out; }
  :dir(rtl) :is(.se-row:is(:hover, :focus-visible, :has(:focus-visible)) .se-go, .pf-step:is(:hover, :focus-visible, :has(:focus-visible)) .pf-go, .pu-head:is(:hover, :focus-visible, :has(:focus-visible)) > .mi:last-child, a.q-row:is(:hover, :focus-visible, :has(:focus-visible)) > .ico:last-child, .cu-l[data-href]:is(:hover, :focus-visible, :has(:focus-visible)) .cu-acts .mi) { translate: calc(var(--hover-nudge) * -1) 0; }
  /* cards: an inset ring; a card whose picture covers the ring (course, listing, event, feed) draws it on an overlay (::after) instead */
  :is(.card:is([data-pb="PbJobCard"], [data-pb="PbChallengeCard"], [data-pb="PbContinueCard"], [data-pb="PbCourseRow"], [data-pb="PbReplyCard"]), .pp-cat, .pp-hub, .mk-hub, .pf-tile, .fd .qemb, .lv a, a.st-tile, button.st-tile, .st-tile[data-href]) { transition: box-shadow 150ms ease-in-out; }
  :is(.card:is([data-pb="PbJobCard"], [data-pb="PbChallengeCard"], [data-pb="PbContinueCard"], [data-pb="PbCourseRow"], [data-pb="PbReplyCard"]):is(:hover, :focus-visible, :has(:focus-visible)), .pp-cat:is(:hover, :focus-visible, :has(:focus-visible)), .pp-hub:is(:hover, :focus-visible, :has(:focus-visible)), .mk-hub:is(:hover, :focus-visible, :has(:focus-visible)), .pf-tile:is(:hover, :focus-visible, :has(:focus-visible)), .fd .qemb:is(:hover, :focus-visible, :has(:focus-visible)), .lv a:is(:hover, :focus-visible, :has(:focus-visible)), a.st-tile:is(:hover, :focus-visible, :has(:focus-visible)), button.st-tile:is(:hover, :focus-visible, :has(:focus-visible)), .st-tile[data-href]:is(:hover, :focus-visible, :has(:focus-visible))) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) var(--hover-ring-pct), var(--edge)); }
  :is(.card:is([data-pb="PbCourseCard"], [data-pb="PbListingCard"], [data-pb="PbEventCard"]):is(:hover, :focus-visible, :has(:focus-visible)), .fd[data-pb="PbFeedCard"]:is(:hover, :focus-visible, :has(:focus-visible)))::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) var(--hover-ring-pct), var(--edge)); }
  :is(.pr-opt:not(.on, .ok, .bad, [aria-checked="true"], [disabled]), .lang-tile:not(.on)):is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--primary) var(--hover-ring-pct), var(--edge)); }   /* bordered cards */
}

/* ---------- recipes the learner modules had each copied (moved here 2026-10-19: one recipe, one file; the pages that drew them never loaded a common module stylesheet) ---------- */
/* accent icon tile (was practice .pr-ic, payments .py-tile, search .gs-tile; .lrow .ltile draws the same tile): 44 dp on the row's --accent at 16 %, radius 12, a 22 px icon.
   Sizes: .xs 36 / 18, .sm 40 / 20, .lg 48 / 24, .xl 64 / 32 (radius 20, a state tile on a full-width block) */
.ic-tile { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent, var(--primary)) 16%, transparent); color: var(--accent, var(--primary)); }
.ic-tile .mi { font-size: 22px; }
.ic-tile.xs { width: 36px; height: 36px; } .ic-tile.xs .mi { font-size: 18px; }
.ic-tile.sm { width: 40px; height: 40px; } .ic-tile.sm .mi { font-size: 20px; }
.ic-tile.lg { width: 48px; height: 48px; } .ic-tile.lg .mi { font-size: 24px; }
.ic-tile.xl { width: 64px; height: 64px; border-radius: 20px; } .ic-tile.xl .mi { font-size: 32px; }
/* centred state column (was profile .in-state and .pf-bdet, payments .py-doc): a badge, tile or spinner, a 20 sp title, a 14 sp secondary line of at most 320 dp, centred */
.state-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 8px 0 4px; }
.state-col h2 { margin: 0; font-size: calc(20px * var(--font-scale)); letter-spacing: -0.01em; }
.state-col p { margin: 0; color: var(--text-secondary); font-size: calc(14px * var(--font-scale)); line-height: 1.5; max-width: 320px; }
/* progress steps (PbStepLine; was profile .in-steps / .in-step at 40 dp and pursue .pu-steps / .pu-step): 3 across (.two, .four), 44 dp nodes, two-tone icons without a disc since 2026-10-27 joined by a 3 dp line;
   done = success, cur = primary, no = error, gold = reward; a 13 sp b label and a 12 sp .s or small line under each */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; }
.steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.state-col + .steps { margin-top: 16px; }   /* the step line under a status title */
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); min-width: 0; }
.step .c { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; background: var(--surface); color: var(--text-secondary); --duo: var(--border); }   /* no disc (2026-10-27): the icon carries the state, two-tone; the surface fill only hides the connector behind it */
.step .c .mi { font-size: 32px; }
.step b { display: block; font-size: calc(13px * var(--font-scale)); color: var(--text-primary); overflow-wrap: break-word; }   /* Label Dense: "Prepare / Practice / Apply" and their Tamil words fit a third of 320 dp without breaking */
.step span.s { display: block; overflow-wrap: break-word; }
.step small { display: block; font-weight: 500; color: var(--text-secondary); }
.step.done .c { color: var(--success); --duo: color-mix(in srgb, var(--success) 45%, transparent); }
.step.cur .c { color: var(--primary); --duo: var(--tertiary); }
.step.no .c { color: var(--error); --duo: color-mix(in srgb, var(--error) 45%, transparent); } .step.no b { color: var(--error-text); }
.step.gold .c { color: var(--reward); --duo: color-mix(in srgb, var(--reward) 50%, transparent); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 22px; inset-inline-start: calc(50% + 26px); width: calc(100% - 52px); height: 3px; border-radius: 999px; background: var(--border); }
.step.done:not(:last-child)::after { background: var(--success); }
.step.gold:not(:last-child)::after { background: var(--reward); }
/* progress bar (PbProgressBar; from stepper.css, and was profile .pf-bar, practice .pr-bar, pursue .pu-bar): a 6 dp border track clips the primary fill; .lg is 8 dp on text-secondary 22 %;
   .accent and .reward colour the fill; a fill a script animates (data-w) starts empty */
.progress { flex: 1; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width 300ms cubic-bezier(.16,1,.3,1); }
.progress > i[data-w] { width: 0; }
.progress.lg { height: 8px; background: color-mix(in srgb, var(--text-secondary) 22%, transparent); }
.progress.accent > i { background: var(--accent, var(--primary)); }
.progress.reward > i { background: var(--reward); }
@media (prefers-reduced-motion: reduce) { .progress > i { transition: none; } }
/* full-screen media viewer (PbPictureViewer; was feed .pv and avatar .cht-full): a fixed media-ink screen that fades in with .open; the bar and the picture inside are the opener's */
.viewer { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--media-ink); color: var(--on-media); opacity: 0; transition: opacity 150ms ease; }
.viewer.open { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .viewer { transition: none; } }
/* saved and selected toggles (was events .ev-save, news .nw-unsave, pursue .pu-save, profile .pf-chip.on): .tog reads secondary at rest; .on = primary text on a 40 % primary ring over the surface
   (the primary tint, not the green done state of .tbtn.on); .tint.on fills the 12 % primary tint as well (a chip, or a bookmark that stays tinted) */
.tog { color: var(--text-secondary); }
.tog.on { color: var(--primary-text); }   /* a toggle on a round icon button: selected is the fill-weight glyph in primary, no ring or tint (2026-10-27; it had a 40 % primary ring until then) */
.tint.on { color: var(--primary-text); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 40%, var(--surface)); }   /* a chosen chip (Profile): the 12 % tint and the 40 % ring; never on a round icon button since 2026-10-27 */
/* accent underline tile (was market .mk-hub::after and practice .pr-tile::after): a card with a 40 x 3 dp accent line at its bottom start, clipped to its radius */
.tab-tile { position: relative; overflow: hidden; }
.tab-tile::after, .bt::after { content: ''; position: absolute; inset-inline-start: 16px; bottom: 0; width: 40px; height: 3px; border-radius: 4px 4px 0 0; background: var(--accent); }
/* bento (2026-11-03, one recipe; was today .tile, market .mk-hub, profile .pf-tile, prepare .pp-hub, each with its own radius, wash and bar inset): .bento is the grid (two across, .c3 three from 600 dp, .c4 four from 1024 dp, 12 dp gap),
   .bt the tile shell (radius 20, 16 dp padding, the 9 % accent wash over the surface, the edge hairline, the 40 x 3 dp accent bar at the bottom start); the tile's inner layout (kicker, big number, signal line) stays with its module; the accent is set per tile (--accent, tokens section 8 rule 9) */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .bento.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bento.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bt { position: relative; overflow: hidden; box-sizing: border-box; min-width: 0; padding: 16px; border-radius: 20px; text-align: start; text-decoration: none; color: var(--text-primary); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); box-shadow: inset 0 0 0 1px var(--edge); }
/* side card (was market .mk-sidecard, events .ev-sidecard): the web layout's aside card: a tile, a title, a 13 sp line, a button under them */
.sidecard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sidecard p { margin: 0; font-size: calc(13px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
.sidecard .btn { margin-top: 4px; }
/* row-open link (was market .mk-ropen, events .ev-next-open): the tappable body of a row, a thumbnail and the text 12 dp apart, beside the row's own controls */
.row-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--text-primary); text-decoration: none; border-radius: 12px; }
/* centred call-to-action row (was market .mk-ctas, payments .py-acts): icon calls to action side by side, 24 dp apart, wrapping */
.cta-row { display: flex; justify-content: center; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
/* switch row (was feed .lk-row and .rfc-top, market .mk-alsw, pursue .pu-swrow, events .ev-swrow, profile .pf-swrow at 48 dp): a 56 dp row, its text and its switch 12 dp apart */
.sw-row { display: flex; align-items: center; gap: 12px; min-height: 56px; }
/* text column (the list item's .tx, bare since 2026-10-19: 41 module rules said the same): the row's text fills the width, its lines 2 dp apart; a module rule keeps only what differs (a gap, a flex basis) */
.tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* fieldset stack (was profile .pf-fs, settings .se-fs): fields 16 dp apart under a sheet title, each with its small uppercase label 8 dp above */
.fs-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.fs-stack .f-label { display: block; margin: 0 0 8px; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
/* small note (was feed .ins-note, market .mk-qn, pursue .pu-disc, news .nw-disc): a 12 sp secondary line with no margin of its own (the stepper's .note is the same line 16 dp under a form) */
.small-note { margin: 0; font-size: calc(12px * var(--font-scale)); line-height: 1.5; color: var(--text-secondary); }
/* four-line clamp (was market .mk-desc.clamp, pursue .pu-sec p.clamp and the Event and Organisation pages' copies): a description cut at four lines until More; the feed card's .txt.clamp keeps five */
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* accent scope (2026-10-20, PB / PR 14 port): a row, tile or head takes its accent from a class instead of an inline style="--accent: ..."; the names are the category and status tokens, so a screen picks a colour and never writes one */
.acc-primary { --accent: var(--primary); --accent-text: var(--primary-text); }
.acc-success { --accent: var(--success); --accent-text: var(--success-text); }
.acc-warning { --accent: var(--warning); --accent-text: var(--warning-text); }
.acc-error { --accent: var(--error); --accent-text: var(--error-text); }
.acc-cat-red { --accent: var(--cat-red); --accent-text: var(--cat-red-text); }
.acc-cat-blue-grey { --accent: var(--cat-blue-grey); --accent-text: var(--cat-blue-grey-text); }
.acc-cat-green { --accent: var(--cat-green); --accent-text: var(--cat-green-text); }
.acc-cat-deep-orange { --accent: var(--cat-deep-orange); --accent-text: var(--cat-deep-orange-text); }
.acc-cat-purple { --accent: var(--cat-purple); --accent-text: var(--cat-purple-text); }
.acc-cat-pink { --accent: var(--cat-pink); --accent-text: var(--cat-pink-text); }
.acc-cat-cyan { --accent: var(--cat-cyan); --accent-text: var(--cat-cyan-text); }
