/* PrepBuddy shared: Prepare module (prepare). The continue card, hub and category tiles, the save bookmark on a course card, the course row, fact chips, the sticky action bar,
   the rating pieces, the curriculum and the course-card grid. Tokens only; classes prefixed pp- (the course card itself is .card.sug in cards.css, shared with Today; a course's state
   or price is the shared status pill, cards.css .spill, since 2026-10-04). Flutter: ContinueCard, HubTile, CategoryTile, CourseRow, FactChip, PbActionBar, RatingSummary, ReviewTile,
   Curriculum (tokens §7). */
.pp-cont { display: flex; gap: 16px; align-items: center; padding: 16px; }   /* 2026-10-27: the card's 16 dp (one padding for every card on a canvas) */
.pp-cont .th { width: 100px; height: 100px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.pp-cont .th .mi { font-size: 48px; color: var(--accent); }
.pp-cont .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pp-cont b { font-size: calc(16px * var(--font-scale)); line-height: 1.35; }
.pp-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 25%, transparent); overflow: hidden; margin: 8px 0 8px; }
.pp-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 500ms cubic-bezier(.16, 1, .3, 1); }
.pp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px; border-radius: 999px; font-size: calc(12px * var(--font-scale)); font-weight: 700; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text-primary); }
.pp-pill .mi { font-size: 16px; }
/* the save bookmark on a course card's thumbnail (the listing card's .fav recipe) */
.pp-save { position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 78%, transparent); display: flex; align-items: center; justify-content: center; color: var(--text-primary); }
.pp-save::after { content: ""; position: absolute; inset: -4px; }   /* a 40 dp round icon keeps the 48 dp touch target, as .btn-sm does */
.pp-save .mi { font-size: 20px; } .pp-save.on { color: var(--primary-text); }
a.thumb, a.body { width: 100%; text-align: start; font: inherit; color: inherit; text-decoration: none; box-sizing: border-box; }   /* the card's thumbnail and body are links to 02 Course details (2026-10-03) */
/* hub tiles: three across */
.pp-hubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* the grid is the shared .bento; three across at every width */
.pp-hub { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic count" "label label" "sub sub"; align-items: center; column-gap: 12px; row-gap: 8px; cursor: pointer; }   /* 2026-10-27, the owner: the count sits beside the icon on the top row, the label under both (was a standing column icon / count / label with the count in its own 20 sp row) */
.pp-hub > .pf-ic { grid-area: ic; } .pp-hub > b { grid-area: count; justify-self: end; } .pp-hub > span:where(:not(.pf-ic)):not(.sub) { grid-area: label; } .pp-hub > .sub { grid-area: sub; margin-top: -4px; }
.pp-hub .pf-ic { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); } .pp-hub .pf-ic .mi { color: inherit; }
.pp-hub b { font-size: calc(20px * var(--font-scale)); font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-hub > span:where(:not(.pf-ic)) { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); line-height: 1.25; max-width: 100%; }   /* 2026-10-18: the label wraps (was one line with an ellipsis: "My preparati…" at 390 and in Tamil); the label (and a .sub line) only: `.pp-hub span` also hit the icon tile and greyed its accent icon (2026-10-04); :where keeps the old weight, so a page's .sub still wins */
/* category tiles: icon on top, name (2 lines), count; two across (four from 600 dp); a button, so start-aligned */
.pp-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(calc(50% - 6px), calc(128px * var(--font-scale))), 1fr)); gap: 12px; }   /* half the 12 px gap: 50% - 5px left two tiles 2 px too wide for a 358 dp column and the grid went one across (2026-10-27, the owner: "mostly vacant spaces") */
@media (min-width: 600px) { .pp-cats { grid-template-columns: repeat(auto-fit, minmax(max(calc(25% - 9px), calc(128px * var(--font-scale))), 1fr)); }   /* three gaps over four tiles */ }
/* two across (four from 600 dp) at text scale 1.0 and 1.1; a tile is never narrower than 128 dp × the scale, so at 1.43 a phone shows one across (two from 600) and
   "Communication" stays one word (2026-10-04: two 139 dp tiles at 320 dp split it "Communi|cation"); below 360 dp the tile's side padding is 8, so the word fits two across at 1.0 */
.pp-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 64px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text-primary); min-width: 0; text-align: start; }
.pp-cat .pf-ic { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.pp-cat .tx { flex: initial; max-width: 100%; }
.pp-cat b { font-size: calc(14px * var(--font-scale)); font-weight: 700; line-height: 1.25; }
.pp-cat .tx span { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
@media (max-width: 359px) { .pp-cat, .pp-hub { padding-inline: 12px; } .pp-hub b { font-size: calc(18px * var(--font-scale)); } }   /* the one exception to the card padding (2026-10-27): below 360 dp a three-across tile keeps 12 dp sides so "Applications" and "Communication" fit; every tile on the canvas otherwise shares .card's 16 dp and radius 20 (the owner saw five paddings on one page) */
.pp-hub { text-align: start; } a.pp-hub { text-decoration: none; }
/* Tamil words are long and have no hyphenation rule. Until 2026-11-14 a word that did not fit the three-across tile ended in an ellipsis (integrator 2026-10-18), and at 360 dp
   that left "விண்ண…" for விண்ணப்பங்கள் (100 dp of word in a 69 dp tile): unreadable on Pursue's and Prepare's hubs. A cut label is worse than a continued one, and Tamil print
   continues a word on the next line at a letter boundary with no hyphen, so the label now does the same: two lines, whole, never an ellipsis. */
@media (max-width: 839px) { :lang(ta) .pp-hub > span:where(:not(.pf-ic)) { overflow-wrap: anywhere; hyphens: manual; white-space: normal; } }
.pp-cat b, .pp-cat .tx span, .pp-hub > b, .pp-hub > span:where(:not(.pf-ic)) { min-width: 0; overflow-wrap: break-word; hyphens: auto; }   /* grid tracks never grow past the column at 1.43 text scale (2026-10-03); a word too long for the tile breaks at a syllable with a hyphen (the document's lang), never mid-word as overflow-wrap: anywhere did ("Communi|cation", 2026-10-04) */
/* from 840 dp the hub tile lies down (2026-10-03, the user on Pursue at 1280: "very empty and long", then at tablet width: "contents are shrinked toward left side"): the icon tile,
   the label, the count at the end, 60 dp instead of 118; the tiles are 228 dp and wider there (148–183 dp below 840 keep the standing tile). The accent stays on the icon tile,
   so the bottom bar goes. One recipe for Prepare, Practice and Pursue home. Flutter: HubTile switches on the width (LayoutBuilder) */
@media (min-width: 840px) {
  .pp-hub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic label count" "ic sub count"; align-items: center; column-gap: 12px; row-gap: 0; padding: 12px 16px; }
  .pp-hub::after { content: none; }
  .pp-hub > .pf-ic { grid-area: ic; }
  .pp-hub > b { grid-area: count; justify-self: auto; font-size: calc(20px * var(--font-scale)); }
  .pp-hub > span:not(.pf-ic):not(.sub) { grid-area: label; align-self: end; font-size: calc(14px * var(--font-scale)); font-weight: 600; color: var(--text-primary); white-space: normal; overflow-wrap: break-word; hyphens: auto; }   /* at text scale 1.43 a long word breaks at a syllable */
  .pp-hub > span:not(.pf-ic):last-child { grid-row: 1 / span 2; align-self: center; }   /* no sub line: the label is centred on the icon */
  .pp-hub > .sub { grid-area: sub; align-self: start; }
}
/* the course row (03 My courses, 07 Saved, 10 Instructor): 72 dp thumbnail, title, Instructor, a progress bar and one meta line, one round icon button at the end. Flutter: CourseRow (ListTile) */
.pp-crow { display: flex; align-items: center; gap: 12px; padding: 16px; }   /* 2026-10-27: the card's 16 dp (one padding for every card on a canvas) */
.pp-crow .th { width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; text-decoration: none; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.pp-crow .th .mi { font-size: 32px; color: var(--accent); }
.pp-crow .tx { gap: 4px; text-decoration: none; color: inherit; }
.pp-crow .tx b { font-size: calc(15px * var(--font-scale)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-crow .pp-bar { margin: 4px 0 2px; }
/* the meta line is .pp-meta, never cards.css .meta: that one is space-between and pushed "· 15%" and the status pill to the row's far end (2026-10-04). One line that wraps, start-aligned */
.pp-crow .pp-meta { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); display: flex; align-items: center; justify-content: flex-start; gap: 4px; flex-wrap: wrap; }
.pp-crow .pp-meta .mi { font-size: 14px; } .pp-crow .pp-meta > .ok { color: var(--success-text); display: inline-flex; align-items: center; gap: 4px; } .pp-crow .pp-meta > .warn { color: var(--warning-text); display: inline-flex; align-items: center; gap: 4px; }
.pp-crow .pp-meta:has(> .spill) { flex-direction: column; align-items: flex-start; gap: 8px; }   /* the status pill is the row's last line, start-aligned, in every row (tokens §7 Status pill): it no longer sits after the rating in one row and under it in the next */
.pp-crow .pp-meta .spill { max-width: 100%; box-sizing: border-box; white-space: normal; }   /* a long translated state wraps inside its pill */
.pp-crow.exp .th { filter: saturate(.4); }
.pp-crow { transition: opacity 300ms ease, transform 300ms ease, box-shadow 150ms ease; } .pp-crow.gone { opacity: 0; transform: translateX(-24px); }   /* a removed row (Saved: Remove, with Undo) slides out */
   /* the card hover of the category tile: a 1 dp accent ring (2026-10-04) */
@media (prefers-reduced-motion: reduce) { .pp-crow { transition: none; } }
.pp-crow .tx b { overflow-wrap: break-word; hyphens: auto; }   /* a long word breaks at a syllable, never mid-word (2026-10-04, was anywhere: "Communica|tion" at 320 dp and 1.43) */
/* large text (tokens §2.3): when the text column would be narrower than a long title word (130 dp × the text scale holds "Communication"), the round button moves under the
   text, at the row's end, and the title takes the width (2026-10-04: browsers never hyphenate a capitalised word, so 320 dp at 1.43 split it mid-word). At 1.0 and 1.1 the
   row stays one line. Flutter: CourseRow lays out with a LayoutBuilder on the text scale */
.pp-crow { flex-wrap: wrap; row-gap: 4px; }
.pp-crow > .tx { flex: 1 1 0; min-width: min(100%, calc(130px * var(--font-scale))); }
.pp-crow > .tbtn { margin-inline-start: auto; }
@media (max-width: 359px) { .pp-crow { gap: 12px; } .pp-crow .th { width: 56px; height: 56px; border-radius: 12px; } .pp-crow .th .mi { font-size: 24px; } }   /* Compact (small): a long course name still fits the 124 dp text column (2026-10-03) */
/* the rating pieces 02 Course details and 09 Reviews share (PBPrepare.stars, ratingSummary, reviewCard) */
.pp-stars { display: inline-flex; gap: 2px; } .pp-stars .mi { font-size: 16px; color: var(--reward); }
.pp-rsum { display: flex; gap: 16px; align-items: center; }
.pp-rsum .big { font-size: calc(32px * var(--font-scale)); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-rsum .sb { display: flex; flex-direction: column; gap: 4px; align-items: center; flex-shrink: 0; }
.pp-bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pp-rb { display: flex; align-items: center; gap: 8px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.pp-rb i { flex: 1; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 20%, transparent); overflow: hidden; } .pp-rb i::after { content: ''; display: block; height: 100%; width: var(--p); background: var(--reward); border-radius: 999px; } .pp-rb span:last-child { min-width: 34px; text-align: end; }
.pp-rev { display: flex; flex-direction: column; gap: 8px; }
.pp-rev .who { display: flex; align-items: center; gap: 12px; } .pp-rev .who b { font-size: calc(14px * var(--font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-rev .pp-sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; } .pp-rev .pp-sub small { color: var(--text-secondary); font-size: calc(12px * var(--font-scale)); }
.pp-rev p { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.55; }
.pp-rev.mine { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 45%, var(--surface)); }
.pp-rev[data-rid] { cursor: pointer; }   /* a review with a comment opens its replies (09, 02) */
.pp-rf { display: flex; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); }   /* card footer: replies at the start, Helpful · n at the end (2026-10-07) */
.pp-rf button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 8px; border-radius: 999px; font-size: calc(12px * var(--font-scale)); font-weight: 600; color: var(--text-secondary); } .pp-rf button:hover { background: var(--bg); }
.pp-rf .mi { font-size: 16px; } .pp-rf .pp-rrep { margin-inline-start: -8px; } .pp-rf .pp-help { margin-inline-start: auto; margin-inline-end: -8px; } .pp-rf .pp-help.on { color: var(--rx, var(--primary)); }
/* the course's state or price as one pill (07 Saved, 10 Instructor, 08 Certificates, 02's lessons and plans, 04, 06) is the shared status pill, cards.css .spill on the semantic
   container (2026-10-04: the 14 % .pp-cpill measured 4.2–4.5:1); the bookmark at the end of a course row is .tbtn.save (theme.css) */
/* the fact chip (.pp-facts, .pp-fact) is shared/factchip.css since 2026-10-19 */
/* the sticky action bar (02: the enrol bar; 06: Back · Next / Submit): the screen's one primary action at the end, above the safe area. The shared Pinned action bar
   (page.css .pin-bar) in its price-first form: the background spans the window, the content lines up with the 680 dp reading column from 600 dp, as the page bar
   and the column do (2026-10-04: the price and the button sat 20–300 dp outside it, at the window edges) */
.pp-foot { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); box-shadow: inset 0 1px 0 var(--border); }
.pp-foot .btn { flex: 0 0 auto; min-height: 48px; padding: 0 24px; }
@media (min-width: 600px) { .pp-foot { padding-inline: max(24px, calc((100% - 680px) / 2)); } }
.pp-footbox { position: sticky; bottom: 0; z-index: 10; }   /* the bar's wrapper, a direct child of .page-wrap: the wrapper sticks (a bar inside a wrapper as tall as itself cannot) */
/* web: the bar follows the content, as .pin-bar does inside the column, and still pins to the window bottom when the page is longer than the window
   (06's intro left Start quiz 400 dp under its content at 1280 × 800) */
@media (min-width: 1024px) {
  .page-wrap:has(> .pp-footbox) > .page-body { flex: 0 0 auto; }
  .pp-foot { border-top-color: transparent; background-image: linear-gradient(var(--border), var(--border)); background-size: min(680px, 100%) 1px; background-position: top center; background-repeat: no-repeat; }   /* the divider spans the column it closes, not the window */
}
/* the curriculum (tokens §7 Curriculum; PBPrepare.curriculumHtml + wireCurriculum): one recipe for 02 Course details and 04's Curriculum sheet and side panel (2026-10-04;
   04 drew its own grey labels and discs, and 02's discs had no accent). Sections are expansion tiles (56 dp: the title, "{n} lessons · Done | In progress", a chevron);
   a lesson row is 52 dp: a 32 dp kind disc on the course accent @ 14 % (a success check once done), the title and its facts, a Preview pill, a lock; the current lesson
   sits on primary @ 8 %. Hover: primary @ 6 % on rows and section headers. Flutter: ExpansionTile sections of ListTile lessons */
.pp-cur { display: flex; flex-direction: column; gap: 12px; }
.pp-csec { padding: 0; overflow: hidden; }
.pp-csec > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; text-align: start; min-height: 56px; color: var(--text-primary); }
.pp-csec > button b { flex: 1; min-width: 0; font-size: calc(14px * var(--font-scale)); }
.pp-csec > button small { color: var(--text-secondary); font-size: calc(12px * var(--font-scale)); white-space: nowrap; } .pp-csec > button small .ok { color: var(--success-text); } .pp-csec > button small .mi { font-size: 14px; vertical-align: -2px; margin-inline-end: 4px; }
.pp-csec > button .chev { font-size: 20px; color: var(--text-secondary); transition: transform 150ms ease; }
.pp-csec.open > button .chev { transform: rotate(180deg); }
.pp-lessons { display: none; flex-direction: column; box-shadow: inset 0 1px 0 var(--border); }
.pp-csec.open .pp-lessons { display: flex; }
.pp-les { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 16px; text-align: start; color: var(--text-primary); }
.pp-les + .pp-les, .pp-dfs + .pp-les { box-shadow: inset 0 1px 0 var(--border); }
.pp-les .ic { width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex-shrink: 0; } .pp-les .ic .mi { font-size: 18px; }

.pp-les .tx span { font-size: calc(14px * var(--font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-les .tx small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.pp-les .spill { flex-shrink: 0; }
.pp-att { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; } .pp-les .tx small .pp-att .mi { font-size: 14px; }   /* supporting files on a lesson row */
.pp-dfs { display: none; flex-direction: column; border-top: 1px solid var(--border); padding-block: 4px; padding-inline-start: 36px; background: transparent; } .pp-dfs.open { display: flex; }   /* 02: the lesson's documents as a tree under its row, opened by the "n files" chip */
.pp-df { position: relative; display: flex; align-items: center; gap: 10px; width: calc(100% - 4px); min-height: 40px; padding: 4px 16px 4px 22px; text-align: start; color: var(--text-primary); }
.pp-df::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; border-inline-start: 1.5px solid var(--border); }
.pp-df:last-child::before { bottom: 50%; }
.pp-df::after { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 14px; border-top: 1.5px solid var(--border); }
.pp-df .ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); flex-shrink: 0; } .pp-df .ic .mi { font-size: 16px; }
.pp-df .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pp-df .tx span { font-size: calc(13px * var(--font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pp-df .tx small { font-size: calc(11px * var(--font-scale)); color: var(--text-secondary); }
.pp-df > .mi, .pp-df .lock { color: var(--text-secondary); display: inline-flex; flex-shrink: 0; } .pp-df > .mi, .pp-df .lock .mi { font-size: 18px; }   /* same size as the row's lock */
.pp-att[role=button] { cursor: pointer; min-height: 44px; margin-block: -12px; color: var(--primary-text); font-weight: 400; }   /* the chip keeps a 44 dp target inside the row's small text */ .pp-att[role=button] .mi:last-child { transition: transform .15s; } .pp-att.open .mi:last-child { transform: rotate(180deg); }
@media (hover: hover) { .pp-df:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); } }
.pp-res { display: flex; flex-direction: column; gap: 10px; } .pp-res h2 { margin: 0; font-size: calc(16px * var(--font-scale)); font-weight: 700; } .pp-res .lrow.card { margin-inline: 0; }   /* Resources: 04 and 06 */
.pp-les .lock { display: inline-flex; color: var(--text-secondary); flex-shrink: 0; } .pp-les .lock .mi { font-size: 18px; }
.pp-les.done .ic { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success-text); }
.pp-les.now { background: color-mix(in srgb, var(--primary) 8%, transparent); } .pp-les.now .tx span { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pp-csec > button .chev { transition: none; } }
/* course cards in a grid on the web (10 Instructor): as many 232 dp columns as fit, two at 1024 and three from 1280, so the card keeps its content on one line each
   (2026-10-04: three fixed columns squeezed it to 181 dp at 1024 and wrapped the rating line). Paged by PBPrepare.PAGE, a multiple of the column count */
.pp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 12px; }
.pp-cards > .sug { width: auto; min-width: 0; }
/* right to left: Previous and Next lesson (04's lesson row and end card, 06's result) step through the course, so their skip icons mirror with the row, as back and forward
   do (tokens §10); the seek bar stays left to right. Prepare is the only screen with these glyphs; theme.css's mirror list is their app-wide home once another module uses them */
[dir="rtl"] .ph-skip-back, [dir="rtl"] .ph-skip-forward { display: inline-block; transform: scaleX(-1); }
/* tablet and web (2026-10-03, after "course details ux for web is not good"): Prepare's list and destination pages are full pages, never the dialog card.
   From 1024 dp the column widens to 1160 dp and course rows sit two across (03 My courses, 07 Saved, 08 Certificates) */
@media (min-width: 1024px) {
  body.pp-wide .page-col { max-width: 1160px; }
  body.pp-wide .page-bar { padding: 0 max(12px, calc((100% - 1160px) / 2 - 12px)); }
  body.pp-wide .pp-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  body.pp-wide .pp-cont { max-width: calc(50% - 6px); }   /* the continue card lines up with the first column of rows, never a 1160 dp progress bar */
}

/* replies open under the review card, in place (Instagram look): the name and text in one line, time and likes under it, a heart at the end */
.pp-thr-in { flex-basis: 100%; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 4px; }
.pp-thr-in .pp-cbar-inl { position: static; margin: 4px 0 0; padding: 8px 0 0; background: transparent; }
.pp-ig { align-items: flex-start; } .pp-ig .ctext b { font-weight: 700; margin-inline-end: 4px; }
.pp-igm { display: flex; gap: 12px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.pp-igm button { position: relative; font: inherit; font-weight: 600; color: var(--text-secondary); min-height: 24px; } .pp-igm button::after { content: ""; position: absolute; inset: -10px -6px; } .pp-igm button:hover { color: var(--primary-text); }
.pp-at { color: var(--primary-text); font-weight: 600; }
/* "Replying to Name ×" above the reply bar (answering a reply, not the review) */
.pp-rto { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 12px; margin-bottom: 6px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 8%, transparent); font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); } .pp-rto[hidden] { display: none; } .pp-rto b { color: var(--text-primary); } .pp-rto .ib { width: 32px; height: 32px; } .pp-rto .mi { font-size: 16px; }
.pp-igl { width: 32px; height: 32px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--text-secondary); } .pp-igl .mi { font-size: 18px; } .pp-igl.on { color: var(--rx, var(--primary)); }
/* the Feed's reaction picker (feed.css .rxp) over a review card or a reply */
.pp-rev { position: relative; } .pp-ig { position: relative; }
.pp-rev > .rxp, .pp-ig > .rxp { inset-inline-start: auto; inset-inline-end: 0; bottom: 100%; max-width: 100%; transform-origin: 90% 100%; }
.pp-rev > .rxp { bottom: 48px; inset-inline-end: 8px; }
.pp-rev .rxp button, .pp-ig .rxp button { width: 52px; height: 52px; }
/* ---- learning tools (2026-10-08): the streak card, the AI and message bubbles, the downloads and notes rows. Flutter: StreakCard, AiChatBubble, InstructorMessageSheet, DownloadTile */
.pp-st { display: flex; flex-direction: column; gap: 12px; padding: 16px; --accent: var(--cat-deep-orange); }
.pp-st .top, .pp-st.sm { display: flex; align-items: center; gap: 12px; }
.pp-st.sm { flex-direction: row; text-decoration: none; color: inherit; padding: 10px 14px; }
.pp-st .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-st .tx b { font-size: calc(15px * var(--font-scale)); } .pp-st .tx small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.pp-st-fire { position: relative; width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.pp-st-fire .mi { font-size: 26px; } .pp-st-fire b { position: absolute; bottom: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 11px; line-height: 18px; text-align: center; }
.pp-st-ring { --p: 0; width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), color-mix(in srgb, var(--text-secondary) 22%, transparent) 0); }
.pp-st-ring i { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); font-style: normal; font-weight: 800; font-size: calc(13px * var(--font-scale)); font-variant-numeric: tabular-nums; }
.pp-st-ring.met { background: var(--success); } .pp-st-ring.met i { color: var(--success); } .pp-st-ring i .mi { font-size: 18px; }
.pp-st-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pp-st-week span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: calc(11px * var(--font-scale)); font-weight: 700; color: var(--text-secondary); }
.pp-st-week i { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--edge); font-style: normal; }
.pp-st-week .on i { background: var(--accent); box-shadow: none; color: var(--surface); } .pp-st-week i .mi { font-size: 14px; }
.pp-st-week .now { color: var(--text-primary); } .pp-st-week .now i { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-st-foot { display: flex; align-items: center; gap: 8px; } .pp-st-foot .xs { flex: 1; min-width: 0; }
.pp-st-goal { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-text); font-weight: 700; font-size: calc(13px * var(--font-scale)); white-space: nowrap; }
.pp-st-goal .mi { font-size: 16px; }
/* the AI tutor and Message the Instructor sheets */
.pp-ai-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .pp-ai-head .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pp-ai-head small { color: var(--text-secondary); font-size: calc(12px * var(--font-scale)); }
.pp-ai-head h2 { margin: 0; font-size: calc(18px * var(--font-scale)); }
.pp-ai-av { width: 28px; height: 28px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--tertiary)); color: var(--on-primary); } .pp-ai-av .mi { font-size: 16px; }
.pp-ai-head .pp-ai-av { width: 40px; height: 40px; } .pp-ai-head .pp-ai-av .mi { font-size: 22px; }
.pp-ai-note { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 8px; line-height: 1.45; } .pp-ai-note .mi { font-size: 16px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.pp-ai-log { display: flex; flex-direction: column; gap: 10px; min-height: 40px; max-height: 46vh; overflow-y: auto; padding: 4px 0 8px; }
.pp-ai-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; } .pp-ai-msg.me { align-self: flex-end; }
.pp-ai-b { padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font-size: calc(14px * var(--font-scale)); line-height: 1.5; }
.pp-ai-msg.me .pp-ai-b { border-radius: 16px 16px 4px 16px; background: var(--primary); color: var(--on-primary); box-shadow: none; }
.pp-ai-b p { margin: 0; } .pp-ai-b p + p, .pp-ai-b ul { margin-top: 6px; } .pp-ai-b ul { margin-bottom: 0; padding-inline-start: 18px; }
.pp-ai-b code { padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--primary) 12%, transparent); font-size: .92em; }
.pp-ai-who { display: block; margin-bottom: 2px; font-size: calc(11px * var(--font-scale)); font-weight: 700; color: var(--primary); }
.pp-ai-ts { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin-top: 8px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 700; font-size: calc(12px * var(--font-scale)); text-decoration: none; }
.pp-ai-ts .mi { font-size: 14px; }
.pp-ai-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-inline-start: 36px; }
.pp-ai-acts .fc { min-height: 36px; font-size: calc(13px * var(--font-scale)); }
.pp-ai-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pp-ai-opts button { min-height: 40px; padding: 6px 12px; border-radius: 12px; text-align: start; box-shadow: inset 0 0 0 1px var(--edge); background: var(--bg); font: inherit; color: var(--text-primary); }
.pp-ai-opts button.ok { box-shadow: inset 0 0 0 2px var(--success); color: var(--success); font-weight: 700; } .pp-ai-opts button.no { box-shadow: inset 0 0 0 2px var(--error); color: var(--error); }
.pp-ai-typing { display: flex; gap: 4px; padding: 4px 0; } .pp-ai-typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--text-secondary); animation: pp-ai-dot 500ms infinite ease-in-out; } .pp-ai-typing i:nth-child(2) { animation-delay: .15s; } .pp-ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pp-ai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .pp-ai-typing i { animation: none; } }
.pp-ai-sugs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; } .pp-ai-sugs::-webkit-scrollbar { display: none; }
.pp-ai-in { display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.pp-ai-in textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; padding: 10px 14px; border: 0; border-radius: 20px; resize: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font: inherit; font-size: calc(15px * var(--font-scale)); color: var(--text-primary); outline: 0; box-sizing: border-box; }
.pp-ai-in textarea:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.pp-ai-in .tbtn[disabled] { opacity: .45; }
/* downloads and notes rows (My preparation's sheets, the player's Notes sheet) */
.pp-dl-sum { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.pp-dl-sum .pp-bar { flex: 1; margin: 0; --accent: var(--primary); }
.pp-dl-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pp-dl-row:last-child { border-bottom: 0; }
.pp-dl-row .ltile { flex-shrink: 0; } .pp-dl-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.pp-dl-row .tx b { font-size: calc(14px * var(--font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pp-dl-row .tx small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.pp-dl-row .tx p { margin: 0; font-size: calc(14px * var(--font-scale)); line-height: 1.45; }
.pp-dl-h { margin: 12px 0 2px; font-size: calc(13px * var(--font-scale)); color: var(--text-secondary); }
.pp-dl-row .ltile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent, var(--primary)) 16%, transparent); color: var(--primary-text); font-size: calc(11px * var(--font-scale)); font-weight: 800; font-variant-numeric: tabular-nums; } .pp-dl-row .ltile .mi { font-size: 20px; }

.pp-ai-head .ib { width: 44px; height: 44px; }   /* the sheet's Close keeps the 44 dp target (harness, 2026-10-20) */
