/* PRODUCTION CHECKLIST (render/production-checklist.ts; docs/visual/PRODUCTION-CHECKLIST.md). Site tokens only, prefix pc-.
   Founder direction, 2026-10-17: a streaming-style gallery where "the imagery should do most of the work"; no card
   borders, nothing under a picture beyond its title and resource count; few numbers, no stray sentences. Each task opens
   in a drawer beside the gallery (wide screens) or over it (narrow). Spacing is the site scale (--s*), type the ramp. */

:root { --pc-drawer: min(38rem, 46vw); }

/* 1 · introduction: title and sentence on the left, the one count on the right */
.pc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s7); margin: 0 0 var(--s7); }
.pc-head__a { min-width: 0; max-width: 40rem; }
.pc-head__h { margin: 0; }
.pc-head__line { margin: var(--s3) 0 0; font: var(--t-md)/1.4 var(--ui); color: var(--ink-2); }
.pc-prog { display: grid; gap: var(--s2); min-width: 9rem; padding-bottom: var(--s2); }
.pc-prog__n { margin: 0; font: var(--t-base)/1 var(--ui); color: var(--ink-2); }
.pc-prog__n b { font-weight: 600; color: var(--brand); }
.pc-prog__bar { display: block; height: var(--s1); background: var(--rule-firm); border-radius: 2px; overflow: hidden; }
.pc-prog__bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .5s cubic-bezier(.2,.7,.3,1); }

/* 2 · the gallery: four across while each picture keeps 13rem, then three, two; a rule, not breakpoints */
.pc-grid { display: grid; gap: var(--s6) var(--s4); margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(max(13rem, calc((100% - 3 * var(--s4)) / 4)), 1fr)); }
@media (max-width: 30rem) { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); } }
.pc-item { min-width: 0; scroll-margin-top: var(--s6); }
.pc-item__a { display: block; color: var(--ink); text-decoration: none; border-radius: var(--r-soft); }
.pc-item__a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.pc-item__pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-soft); background: var(--paper-3);
  outline: 1px solid var(--rule); outline-offset: -1px; }
.pc-item__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .2s ease; }
.pc-item__img--none { display: grid; place-items: center; font: var(--t-sm)/1 var(--mono); color: var(--ink-2); }
.pc-item__img--none code { font: inherit; background: none; }
.pc-item__a:hover .pc-item__img { filter: brightness(1.12); }
.pc-item.is-open .pc-item__pic, .pc-item__a:hover .pc-item__pic { outline: 2px solid var(--brand); outline-offset: -2px; }
/* the play glyph: a dark disc with a white triangle, centred, as on the video itself */
.pc-item__play { position: absolute; left: 50%; top: 50%; width: 2.75rem; height: 2.75rem; translate: -50% -50%; border-radius: 50%;
  background: rgb(5 6 10 / .62); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); }
.pc-item__play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid;
  border-width: .5rem 0 .5rem .8rem; border-color: transparent transparent transparent #fff; }
.pc-item__rt { position: absolute; right: var(--s2); bottom: var(--s2); padding: 2px var(--s2); border-radius: 2px; background: rgb(5 6 10 / .78);
  font: 500 var(--t-xs)/1.3 var(--mono); color: #fff; }
/* the done ring: a checkbox on the picture's top-right corner. The label is the 44px target; the ring inside is 22px.
   One ring everywhere (gallery and drawer): a white edge on a dark disc, with a dark outer hairline so it reads on a
   white thumbnail as well as a dark one; ticked, it fills with the brand purple and a dark check. */
.pc-item { position: relative; }
.pc-item__ring { position: absolute; right: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; }
.pc-item__ring input, .pc-tick input { appearance: none; position: relative; flex: 0 0 auto; width: 1.375rem; height: 1.375rem; margin: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; background: rgb(5 6 10 / .62); box-shadow: 0 0 0 1px rgb(5 6 10 / .55); }
.pc-item__ring:hover input, .pc-tick:hover input { background: rgb(5 6 10 / .8); }
.pc-item__ring input:checked, .pc-tick input:checked { border-color: var(--brand); background: var(--brand); }
.pc-item__ring input:focus-visible, .pc-tick input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pc-item__ring input:checked::after, .pc-tick input:checked::after { content: ""; position: absolute; left: 50%; top: 45%; width: .3rem; height: .6rem;
  translate: -50% -50%; rotate: 45deg; border: solid #0B0D12; border-width: 0 2px 2px 0; }
.pc-item__rt--guide { font-family: var(--ui); font-weight: 600; letter-spacing: .01em; }
.pc-item__t { display: block; margin-top: var(--s3); font: 600 var(--t-md)/1.25 var(--ui); letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.pc-item__a:hover .pc-item__t { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.pc-item__m { display: block; margin-top: var(--s1); font: var(--t-xs)/1.4 var(--mono); color: var(--ink-3); }
@media (max-width: 30rem) { .pc-item__t { font-size: var(--t-base); } .pc-item__play { width: 2.25rem; height: 2.25rem; } }

/* 3 · completion: one line, and a small link to the next phase */
.pc-done { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3) var(--s6);
  margin: var(--s7) 0 var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.pc-done__p { margin: 0; max-width: 44rem; font: var(--t-sm)/var(--lh-body) var(--ui); color: var(--ink-3); }
.pc-done[data-pc-complete="true"] [data-pc-when="done"] { color: var(--ink); }
.pc-done__next { display: inline-block; padding: .75rem 0; font: 600 var(--t-sm)/1 var(--ui); text-underline-offset: .25em;
  text-decoration-thickness: 1px; white-space: nowrap; } /* inline-block, not flex: the underline runs under the arrow too */
.ia .pc-done__next { color: var(--brand); } /* .ia links inherit their colour; this one is the site's purple */
.ia .pc-done__next:hover { color: var(--brand-lift); }
.pc-done__next:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* the task view: a drawer, inset from the window's edges, beside the gallery */
.pc-dlg { position: fixed; inset: var(--s5) var(--s5) var(--s5) auto; z-index: 60; width: var(--pc-drawer); max-width: none; height: auto; max-height: none;
  margin: 0; padding: 0; color: var(--ink); background: var(--paper-deep); border: 1px solid var(--rule-firm); border-radius: var(--r-soft);
  flex-direction: column; overflow: hidden; }
.pc-dlg[open] { display: flex; }
.pc-dlg::backdrop { background: rgb(5 6 10 / .72); }
/* while the drawer is open the page makes room for it, so the gallery reflows beside it instead of under it */
@media (min-width: 64rem) {
  html.pc-drawer-open main { padding-right: calc(var(--pc-drawer) + var(--s5)); }
  html.pc-drawer-open .pc-head { flex-direction: column; align-items: flex-start; }
}
.pc-dlg__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding: var(--s6) var(--s6) var(--s4); position: relative; }
.pc-dlg__t:focus { outline: none; } /* focus lands here when a task opens, for screen readers; no ring on a heading */
.pc-dlg__t { margin: 0; font: 700 var(--t-lg)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.pc-dlg__x { position: absolute; top: var(--s2); right: var(--s2); width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  font: var(--t-lg)/1 var(--ui); color: var(--ink-2); background: none; border: 0; cursor: pointer; border-radius: var(--r-soft); }
.pc-dlg__x:hover { color: var(--ink); }
.pc-dlg__body { position: relative; /* absolutely placed things inside (visually hidden labels) scroll with the body instead of stretching the drawer */
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s6) var(--s7); }
.pc-dlg__video video, .pc-dlg__video .pc-item__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-soft); }
.pc-dlg__task { margin-top: var(--s6); }
.pc-dlg__h { margin: 0; font: 700 var(--t-md)/1.2 var(--display); color: var(--ink); }
.pc-dlg__do { margin: var(--s5) 0 0; font: var(--t-md)/1.45 var(--ui); color: var(--ink); max-width: 36rem; }
.pc-dlg__lk, .pc-k { margin: var(--s4) 0 var(--s2); font: var(--t-xs)/var(--lh-meta) var(--mono); color: var(--ink-3); }
.pc-dlg__when { margin: 0; padding: 0 0 0 var(--s5); font: var(--t-sm)/var(--lh-body) var(--ui); color: var(--ink-2); }
.pc-dlg__when li + li { margin-top: var(--s1); }
.pc-dlg__when code { font-size: .9em; }

/* help, practice and the transcript: collapsed, one line each */
.pc-acc { margin-top: var(--s3); border: 1px solid var(--rule); border-radius: var(--r-soft); }
.pc-acc:first-of-type { margin-top: var(--s5); }
.pc-acc--done .pc-dlg__when { margin-top: 0; }
.pc-acc > summary { display: flex; align-items: center; min-height: 2.75rem; padding: var(--s2) var(--s4); cursor: pointer; list-style: none;
  font: 600 var(--t-base)/1.3 var(--ui); color: var(--ink); }
.pc-acc > summary::-webkit-details-marker { display: none; }
.pc-acc > summary::after { content: "+"; content: "+" / ""; margin-left: auto; padding-left: var(--s3); font: var(--t-md)/1 var(--mono); color: var(--ink-3); }
.pc-acc[open] > summary::after { content: "\2212"; content: "\2212" / ""; }
.pc-acc > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pc-acc__b { padding: 0 var(--s4) var(--s4); }
.pc-tr p { margin: var(--s3) 0 0; font: var(--t-sm)/var(--lh-body) var(--ui); color: var(--ink-2); }

/* contents drawn inside a resource or a question */
.pc-steps { margin: 0; padding: 0 0 0 var(--s5); font: var(--t-base)/var(--lh-body) var(--ui); color: var(--ink); }
.pc-steps li + li { margin-top: var(--s1); }
.pc-dlg__p { margin: var(--s3) 0 0; font: var(--t-base)/var(--lh-body) var(--ui); color: var(--ink-2); }
.pc-dlg__p:first-child { margin-top: 0; }
.pc-dlg__p a { color: var(--ink); }
.pc-panel .vis-file, .pc-panel .stg-tech__files, .pc-panel .fnd-tree, .pc-panel .fnd-swap { margin-top: var(--s4); }
.pc-panel > .vis-file:first-child, .pc-panel > .stg-tech__files:first-child, .pc-panel > .fnd-tree:first-child { margin-top: 0; }
.pc-dlg .fnd-swap td { font: 600 var(--t-md)/1.3 var(--ui); letter-spacing: 0; }
.pc-dlg .pc-ex { margin: 0; padding: 0; border: 0; background: none; }
.pc-ex__h { margin: 0 0 var(--s3); font: 600 var(--t-base)/1.3 var(--ui); color: var(--ink); }

/* the tick: a ring, as on the gallery, beside the title */
.pc-tick { display: inline-flex; align-items: center; gap: var(--s2); min-height: 2.75rem; font: var(--t-sm)/1.2 var(--ui); color: var(--ink); cursor: pointer; white-space: nowrap; }

/* the foot: the skill page; previous and next */
.pc-dlg__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4);
  padding: var(--s4) var(--s6); border-top: 1px solid var(--rule); background: var(--paper-deep); }
.pc-dlg__meta { margin: var(--s2) 0 0; font: var(--t-xs)/1.4 var(--mono); color: var(--ink-3); }
.pc-dlg__meta a { color: var(--ink-2); }
.pc-dlg__nav { display: flex; gap: var(--s2); margin-left: auto; }
.pc-dlg__foot { justify-content: space-between; }
.pc-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 2.75rem; padding: 0 var(--s4); border-radius: var(--r-soft);
  font: 600 var(--t-sm)/1 var(--ui); text-decoration: none; color: var(--paper); background: var(--brand); }
.pc-btn--quiet { color: var(--ink-2); background: none; }
/* the page sits inside .ia, whose links inherit their colour; the buttons keep theirs */
.ia .pc-dlg .pc-btn { color: var(--paper); }
.ia .pc-dlg .ia .pc-dlg .pc-btn--quiet { color: var(--ink-2); }
.ia .pc-dlg .pc-btn--quiet:hover { color: var(--ink); }
.pc-btn:hover { background: var(--brand-lift); }
.pc-btn--quiet:hover { color: var(--ink); background: var(--paper-3); }
.pc-btn:focus-visible, .pc-dlg__x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* narrow screens: the task takes the whole screen */
@media (max-width: 63.99rem) {
  .pc-dlg { inset: 0; width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .pc-dlg__head { padding: var(--s5) var(--s4) var(--s3); }
  .pc-dlg__t { padding-right: var(--s7); }
  .pc-dlg__body { padding: 0 var(--s4) var(--s5); }
  .pc-dlg__foot { padding: var(--s3) var(--s4); }
}
html:has(.pc-dlg[open]:modal) { overflow: hidden; }

/* THE WHOLE GALLERY AT ONCE (Annie, 2026-11-02: "I want each page to show the entire gallery all at once. so if that means
   the pages have to scroll so be it"). Four across on a desktop, every card at its natural size; the page scrolls. This
   retires the one-screen rule (founder, 2026-10-17), which capped the gallery's width by the window's height. */
@media (min-width: 64rem) {
  main:has(.pc-list) .topbar { display: none; }
  .pc-head { margin-bottom: var(--s5); }
  .pc-grid { row-gap: var(--s6); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pc-done { margin: var(--s5) 0 0; }
  /* the line sits where the floating Feedback button does (site.css): keep the next-phase link clear of it */
  body:has(.site-feedback) .pc-done { padding-right: 9.5rem; }
}

/* the completion moment (production-checklist.js celebrate): confetti never takes a click, a scroll or focus */
.pc-confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; contain: strict; }
.pc-confetti i { position: absolute; display: block; will-change: transform, opacity; }
/* the next-phase link, lit briefly in purple when the phase completes */
.pc-done__next { border-radius: var(--r-soft); transition: background-color .6s ease, box-shadow .6s ease; }
.pc-done__next.is-lit { background: var(--brand-wash); box-shadow: 0 0 0 .5rem var(--brand-wash), 0 0 0 calc(.5rem + 1px) var(--brand-edge); }
@media (prefers-reduced-motion: reduce) {
  .pc-prog__bar span, .pc-done__next, .pc-item__img { transition: none; }
}
/* with a task open beside it, as many columns as fit at a readable width (three at 1440, two at 1280, one at 1024) */
@media (min-width: 64rem) {
  html.pc-drawer-open .pc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
}

/* ---------- FINAL REFINEMENTS (founder, 2026-10-17): drawn thumbnails, tabs, one preview area, a visible "Done when" ---------- */

/* a drawn picture of the skill, for a task with no tool-independent video yet: a page in the site's hand, scaled to its
   frame (container units), one purple mark. Never a fake video frame: no play glyph, and "Lesson coming soon" on it. */
.pc-item__pic, .pc-dlg__video--soon { container-type: inline-size; }
.pc-art { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, var(--brand-wash), transparent 60%), var(--paper-3); font-size: clamp(6px, 3.3cqi, 15px); }
.pc-art__page { display: grid; gap: .55em; width: 62%; padding: 1em 1.2em; background: var(--paper); border: 1px solid var(--rule-firm);
  border-radius: 3px; box-shadow: 0 .6em 1.6em rgb(0 0 0 / .25); transform: translateY(4%); }
.pc-art__t { font: 600 1.05em/1.2 var(--ui); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-art__rows { display: grid; gap: .45em; }
.pc-art__r { display: flex; align-items: center; gap: .6em; font: .82em/1.2 var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.pc-art__r > span { overflow: hidden; text-overflow: ellipsis; }
.pc-art--doc .pc-art__r i { order: 2; flex: 1; height: 1px; background: var(--rule-firm); }
.pc-art--doc .pc-art__r i::before { content: none; }
.pc-art__r.is-mark { color: var(--brand); }
.pc-art--doc .pc-art__r.is-mark i { background: var(--brand); }
.pc-art--timeline .pc-art__rows { position: relative; padding-left: .2em; }
.pc-art--timeline .pc-art__rows::before { content: ""; position: absolute; left: .55em; top: .5em; bottom: .5em; width: 1px; background: var(--rule-firm); }
.pc-art--timeline .pc-art__r i { position: relative; flex: none; width: .7em; height: .7em; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink-3); }
.pc-art--timeline .pc-art__r.is-mark i { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 .25em var(--brand-wash); }
.pc-art--timeline .pc-art__r:last-child { color: var(--ink); }
.pc-art--plan .pc-art__r b { flex: none; width: 1.2em; font-weight: 400; color: var(--ink-3); }
.pc-art--plan .pc-art__r.is-mark span { text-decoration: line-through; text-decoration-color: var(--brand); text-decoration-thickness: .14em; color: var(--ink-3); }
.pc-item__soon { position: absolute; left: var(--s2); bottom: var(--s2); padding: 2px var(--s2); border-radius: 2px; background: rgb(5 6 10 / .78);
  font: 600 var(--t-xs)/1.3 var(--ui); color: #fff; }

/* A · the drawer's picture when the lesson is coming */
.pc-dlg__video--soon .pc-art { aspect-ratio: 21 / 9; border-radius: var(--r-soft); font-size: clamp(9px, 2.2cqi, 15px); }
.pc-dlg__soon { margin: var(--s2) 0 0; font: var(--t-sm)/1.45 var(--ui); color: var(--ink-2); }
.pc-dlg__soon b { color: var(--ink); font-weight: 600; }

/* B · Template / Completed example: tabs, actions on the same line, one preview area that scrolls inside a set height
   and hands the scroll back to the drawer at its ends (no trap) */
.pc-res { margin-top: var(--s5); }
.pc-res__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2) var(--s4); border-bottom: 1px solid var(--rule); }
.pc-tabs { display: flex; gap: var(--s4); }
.pc-tab { min-height: 2.75rem; padding: 0 var(--s1); margin-bottom: -1px; font: 600 var(--t-sm)/1 var(--ui); color: var(--ink-2); background: none; border: 0;
  border-bottom: 2px solid transparent; cursor: pointer; }
.pc-tab:hover { color: var(--ink); }
.pc-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.pc-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 2px; }
.pc-res__acts { display: flex; gap: var(--s2); padding-bottom: var(--s2); }
.pc-res__acts[hidden] { display: none; }
.pc-act { min-height: 2.25rem; padding: 0 var(--s3); font: 600 var(--t-xs)/1 var(--ui); color: var(--ink); background: var(--paper-3); border: 1px solid var(--rule-firm);
  border-radius: var(--r-soft); cursor: pointer; }
.pc-act:hover { border-color: var(--brand); }
.pc-act:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pc-res__panel { max-height: min(20rem, 42dvh); overflow-y: auto; overscroll-behavior: auto; padding: var(--s4) var(--s1) var(--s2) 0; }
.pc-res__panel:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pc-res__note { margin: var(--s3) 0 0; font: var(--t-sm)/var(--lh-body) var(--ui); color: var(--ink-2); } /* ink-3 on the panel was 4.37:1 in dark (axe, lane LU 2026-11-01) */

/* the template and the example, readable: a titled page of lines, not a code block */
.pc-doc__t { margin: 0 0 var(--s3); font: 600 var(--t-md)/1.25 var(--ui); color: var(--ink); }
.pc-doc__h { margin: var(--s4) 0 var(--s2); font: 600 var(--t-base)/1.3 var(--ui); color: var(--ink); }
.pc-doc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); }
.pc-doc li { position: relative; padding-left: var(--s4); font: var(--t-base)/1.45 var(--ui); color: var(--ink); }
.pc-doc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.pc-doc__f { display: flex; align-items: baseline; gap: var(--s3); }
.pc-doc__f > span { flex: none; max-width: 70%; }
.pc-doc__f > i { flex: 1; min-width: 2rem; border-bottom: 1px dashed var(--rule-firm); transform: translateY(-.2em); }
.pc-doc dl { margin: 0; display: grid; gap: var(--s3); }
.pc-doc dl > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--s1) var(--s4); }
.pc-doc dt { font: var(--t-sm)/1.45 var(--ui); color: var(--ink-3); }
.pc-doc dd { margin: 0; font: var(--t-base)/1.45 var(--ui); color: var(--ink); }
.pc-doc .is-struck s { color: var(--ink-3); text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.pc-doc .is-struck em { display: block; font-style: normal; font-size: var(--t-sm); color: var(--brand); }
@media (max-width: 30rem) { .pc-doc dl > div { grid-template-columns: 1fr; } }

/* C · Done when: visible, one sentence, the line the learner checks their work against */
.pc-dlg__done { position: relative; margin: var(--s5) 0 0; padding: var(--s3) var(--s4) var(--s3) calc(var(--s4) + 1.5rem); font: var(--t-base)/1.5 var(--ui); color: var(--ink);
  background: var(--brand-wash); border-left: 2px solid var(--brand); border-radius: 0 var(--r-soft) var(--r-soft) 0; }
.pc-dlg__done::before { content: ""; position: absolute; left: var(--s4); top: calc(var(--s3) + .2em); width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid var(--brand); }
.pc-dlg__done::after { content: ""; position: absolute; left: calc(var(--s4) + .38rem); top: calc(var(--s3) + .38em); width: .3rem; height: .55rem; rotate: 45deg; border: solid var(--brand); border-width: 0 1.5px 1.5px 0; }
.pc-dlg__done b { font-weight: 600; }

/* D · More: one quiet heading, compact disclosures */
.pc-more { margin-top: var(--s6); }
.pc-more__h { margin: 0 0 var(--s2); font: var(--t-xs)/1.4 var(--mono); color: var(--ink-3); }
.pc-more .pc-acc { margin-top: 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; }
.pc-more .pc-acc:last-child { border-bottom: 1px solid var(--rule); }
.pc-more .pc-acc > summary { padding-inline: 0; font-weight: 500; }
.pc-more .pc-acc__b { padding: 0 0 var(--s4); }
.pc-more .pc-acc:first-of-type { margin-top: 0; }

/* ---------- WORKSHEETS (founder, 2026-10-17: "learning by doing over reading") ----------
   The Template tab is the deliverable, filled in on the page; the Completed example is the same worksheet, filled by the
   fictional client. Field by field they line up. */
.pc-ws__t { margin: 0 0 var(--s3); font: 600 var(--t-md)/1.25 var(--ui); color: var(--ink); }
.pc-ws__h { margin: var(--s4) 0 var(--s2); font: 600 var(--t-sm)/1.3 var(--ui); color: var(--ink-2); }
.pc-ws__g { margin: var(--s2) 0; font: var(--t-sm)/1.5 var(--ui); color: var(--ink-2); }
.pc-ws__f { display: grid; gap: var(--s1); margin: 0 0 var(--s3); }
.pc-ws__l { font: 500 var(--t-sm)/1.35 var(--ui); color: var(--ink); }
textarea.pc-ws__v { display: block; width: 100%; min-height: 2.5rem; padding: var(--s2) var(--s3); resize: vertical; field-sizing: content; max-height: 12rem;
  font: var(--t-base)/1.45 var(--ui); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-firm); border-radius: var(--r-soft); }
textarea.pc-ws__v:hover { border-color: var(--ink-3); }
textarea.pc-ws__v:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.pc-ws--done .pc-ws__v { display: block; min-height: 2.5rem; padding: var(--s2) var(--s3); font: var(--t-base)/1.45 var(--ui); color: var(--ink);
  background: var(--brand-wash); border: 1px solid var(--brand-edge); border-radius: var(--r-soft); }
.pc-ws__table { display: grid; gap: var(--s3); }
.pc-ws__row { margin: 0; padding: var(--s3) var(--s3) 0; border: 1px solid var(--rule); border-radius: var(--r-soft);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); column-gap: var(--s3); }
.pc-ws__row legend { padding: 0 var(--s1); font: var(--t-xs)/1 var(--mono); color: var(--ink-2); } /* ink-3 fails AA at this size on the night drawer */
.pc-ws__add { margin-top: var(--s3); }
/* the worksheet is the work: the preview area gets more room than a reference panel would */
.pc-res__panel { max-height: min(26rem, 50dvh); }

/* A · no video yet: a neutral, compact line, so the worksheet is close to the top */
.pc-dlg__video--soon { padding: 0; }
.pc-dlg__soon { display: flex; align-items: center; gap: var(--s3); margin: 0; padding: var(--s3) var(--s4); font: 500 var(--t-sm)/1.3 var(--ui); color: var(--ink-2);
  background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--r-soft); }
.pc-dlg__soon-i { position: relative; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.pc-dlg__soon-i::after { content: ""; position: absolute; left: 55%; top: 50%; translate: -50% -50%; border-style: solid; border-width: .3rem 0 .3rem .45rem;
  border-color: transparent transparent transparent var(--ink-3); }


/* ---------- WATCH → MAKE → CHECK OFF (founder, 2026-10-17) ----------
   One scroll: the drawer body. The worksheet panel no longer scrolls on its own and its boxes grow with what's written
   (field-sizing, with a script fallback), so nothing scrolls inside anything else. The workspace gets the strongest
   surface in the drawer; More is quiet. */
.pc-res__panel { max-height: none; overflow: visible; padding: var(--s4); background: var(--paper-3); border: 1px solid var(--rule-firm);
  border-top: 0; border-radius: 0 0 var(--r-soft) var(--r-soft); }
.pc-res__bar { padding: 0 var(--s2) 0 var(--s3); background: var(--paper-3); border: 1px solid var(--rule-firm); border-bottom-color: var(--rule);
  border-radius: var(--r-soft) var(--r-soft) 0 0; }
.pc-res__bar .pc-res__acts { padding-top: var(--s2); }
textarea.pc-ws__v { max-height: none; overflow: hidden; resize: none; }
.pc-more__h { margin-top: var(--s2); }
.pc-more .pc-acc > summary { min-height: 2.5rem; font-size: var(--t-sm); color: var(--ink-2); }
.pc-more .pc-acc[open] > summary { color: var(--ink); }

/* the completed example says it's fictional, and what kind of statement each answer is (founder, 2026-10-17) */
.pc-ws__fic { margin-left: var(--s2); padding: 2px var(--s2); vertical-align: middle; font: 500 var(--t-xs)/1.3 var(--mono); color: var(--ink-2);
  border: 1px solid var(--rule-firm); border-radius: 2px; white-space: nowrap; }
.pc-ws__k { display: inline-block; margin-left: var(--s2); padding: 1px var(--s2); font: 500 var(--t-xs)/1.4 var(--mono); color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--rule-firm); border-radius: 2px; white-space: nowrap; }
.pc-ws__k--ai { color: var(--brand); border-color: var(--brand-edge); }
.pc-ws__k--decision { color: var(--ink); border-color: var(--ink-3); }
.pc-ws__k--unverified, .pc-ws__k--open { border-style: dashed; }
.pc-ws__row legend .pc-ws__k { margin-left: var(--s2); }
/* a save that can't happen is said plainly */
.pc-warn { color: var(--ink) !important; font-weight: 500; }
.pc-res__note.pc-warn, .pc-done__p .pc-warn { padding: var(--s2) var(--s3); background: var(--paper-3); border-left: 2px solid var(--brand); }
.pc-save { min-height: 1.5em; }
.pc-art--tree .pc-art__r { padding-left: calc(var(--d, 0) * 1.1em); }
.pc-art--tree .pc-art__r i { flex: none; width: .55em; height: .55em; border: 1px solid var(--ink-3); border-radius: 1px; }
.pc-art--tree .pc-art__r.is-mark i { background: var(--brand); border-color: var(--brand); }
.pc-qs { margin: 0; display: grid; gap: var(--s3); }
.pc-qs dt { font: 600 var(--t-base)/1.35 var(--ui); color: var(--ink); }
.pc-qs dd { margin: var(--s1) 0 0; font: var(--t-sm)/var(--lh-body) var(--ui); color: var(--ink-2); }
.pc-acc__b .il-stage { margin: var(--s4) 0 0; }
.pc-loop td { font: var(--t-base)/1.4 var(--ui) !important; }
.pc-loop td + td { color: var(--brand); }

/* Modules kept from the old stage pages (the mistakes drawings, the before-and-after) were laid out for the page's full
   width. In a drawer's More they take the form they have in a narrow window; phones keep their own rules. */
@media (min-width: 44.01rem) {
  .pc-acc__b .ba__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-acc__b .ba__mid { grid-column: 1 / -1; grid-row: 1; }
  .pc-acc__b .ba__below { grid-template-columns: 1fr; gap: var(--s5); }
  .pc-acc__b .stg-mx--drawn .stg-mx__list { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .pc-acc__b .stg-mx--text li { grid-template-columns: minmax(0, 1fr); }
  .pc-acc__b .stg-mx__looks, .pc-acc__b .stg-mx--text .stg-mx__what, .pc-acc__b .stg-mx--text .stg-mx__src { grid-column: 1; }
  .pc-acc__b .rg-group { grid-template-columns: 1fr; gap: var(--s4); } /* the tool gallery, stacked as in a narrow window */
}
/* worked examples kept from the old stage pages, at the drawer's scale: the swimming school's pull quote never outranks
   the drawer's own title, and the plumber's page stacks above its reading order */
.pc-acc__b .rsch-quote blockquote p { font-size: var(--t-lg); line-height: 1.1; letter-spacing: -.02em; }
.pc-acc__b .iag-page { grid-template-columns: minmax(0, 1fr); }
/* example files: one per row, and a long path breaks rather than leaving the drawer */
.pc-acc__b .stg-tech__files { grid-template-columns: minmax(0, 1fr); }
.pc-acc__b .vis-file__path { max-width: 100%; overflow-wrap: anywhere; }
/* Kiln Lane's year (maintain-stage.css) in a drawer about 34rem wide: its own narrow form, label above each track,
   month initials only, no marker labels */
.pc-acc__b .mnt-year { --label: 10rem; --gap: var(--s5); }
.pc-acc__b .mnt-year__head { grid-template-columns: 1fr; }
.pc-acc__b .mnt-year__head > span:first-child { display: none; }
.pc-acc__b .mnt-ov__row { grid-template-columns: 1fr; row-gap: var(--s2); padding: var(--s3) 0 var(--s4); }
.pc-acc__b .mnt-months i { display: none; }
.pc-acc__b .mnt-months span { padding-left: 2px; }
.pc-acc__b .mnt-months span[data-y]::before { content: "’" attr(data-ys); }
.pc-acc__b .mnt-mk__l, .pc-acc__b .mnt-track__note { display: none; }
.pc-acc__b .mnt-cmp, .pc-acc__b .mnt-defs, .pc-acc__b .mnt-sum { grid-template-columns: 1fr; }
/* the reader lines (own, make, teach), stacked: the drawer is too narrow for the stage page's three columns */
.pc-acc__b .stg-seats { grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin: 0; padding-top: 0; border-top: 0; }
.pc-acc__b .stg-seats dd { max-width: none; }
/* the gallery's group headings step down to h4 inside a drawer; they keep the gallery's own heading style */
.pc-acc__b .rg-group__head h4 { margin: 0 0 var(--s2); font: 700 var(--t-md)/1.15 var(--display); letter-spacing: -.015em; color: var(--ink); }

/* ---------- LEARN DELIVERABLES (lane LU, 2026-11-01; render/learn-deliverables.ts) ----------
   The card's deliverable label, the drawer's "What you'll make" and record line, the phase overview, the introduction.
   House tokens only; the same quiet mono meta voice as the card's resource count and More's heading. */

/* the card: the deliverable's name takes the meta line (in place of the resource count, which every task shares) */
.pc-item__m--d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }

/* the overview: Starts with → Produces → Feeds into, three columns across the header under the phase's line and count.
   Short names only (content/learn/phase-io.json, 32 characters an item), so on a desktop each column takes at most two
   lines and the one-screen gallery below keeps a known height (the clamp is a guard; the journey test fails if it cuts).
   Phones stack it as three labelled rows. */
.pc-io { flex: 1 0 100%; align-self: stretch; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: var(--s4) var(--s6); margin: 0; }
.pc-io > div { position: relative; min-width: 0; }
.pc-io > div + div::before { content: "→"; position: absolute; left: calc(-1 * var(--s6) + .5rem); top: 0; font: var(--t-xs)/1.5 var(--mono); color: var(--brand); }
.pc-io dt { font: var(--t-xs)/1.5 var(--mono); color: var(--ink-3); }
.pc-io dd { margin: var(--s1) 0 0; font: var(--t-sm)/1.4 var(--ui); color: var(--ink-2); }
.pc-io a { color: var(--ink); font-weight: 600; text-underline-offset: .2em; }
.pc-io__sep, .pc-io__note { color: var(--ink-3); }
@media (min-width: 64rem) { .pc-io dd { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } }
@media (max-width: 40rem) {
  .pc-io { grid-template-columns: 1fr; gap: var(--s2); }
  .pc-io > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s2); align-items: baseline; }
  .pc-io > div + div::before { content: none; }
  .pc-io dd { margin: 0; }
}

/* the introduction: the first card in the gallery, the lessons' own card with "Introduction" on its meta line, where a
   lesson names its deliverable, and no done ring (Annie, 2026-11-02). Nothing else differs, so it needs no rule here. */
.pc-dlg--intro .pc-io { margin-top: var(--s5); }

}

/* the drawer: What you'll make, one quiet heading and a two-column list */
.pc-wym { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); max-width: 40rem; }
.pc-wym__h { margin: 0 0 var(--s3); font: var(--t-xs)/1.4 var(--mono); color: var(--ink-3); }
.pc-wym__dl { margin: 0; display: grid; gap: var(--s3); }
.pc-wym__dl > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: var(--s1) var(--s4); }
.pc-wym__dl dt { font: var(--t-sm)/1.45 var(--ui); color: var(--ink-3); }
.pc-wym__dl dd { margin: 0; font: var(--t-base)/1.45 var(--ui); color: var(--ink); }
.pc-wym__dl ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s1); }
.pc-wym__go { margin-left: var(--s1); padding: 0; font: inherit; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.pc-wym__go:hover { color: var(--ink); }
.pc-wym__go:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 30rem) { .pc-wym__dl > div { grid-template-columns: 1fr; } }

/* the record: ticked, saved, watched, told apart in one line under "Done when" */
.pc-rec { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin: var(--s3) 0 0; font: var(--t-xs)/1.5 var(--mono); color: var(--ink-3); }
.pc-rec[hidden] { display: none; }
.pc-rec__k { color: var(--ink-2); }
.pc-rec .is-yes { color: var(--ink); }
.pc-rec [data-pc-rec-saved].is-yes { color: var(--brand); font-weight: 600; } /* made: Outputs' violet (2026-11-04) */
.pc-rec a { color: var(--ink-2); }

/* a task's second and third videos (2026-11-02): one folded line each, under the instruction */
.pc-also { margin-top: var(--s4); max-width: 40rem; }
.pc-also .pc-k { margin-top: 0; }
.pc-also__rt { font: var(--t-xs)/1 var(--mono); color: var(--ink-3); margin-left: var(--s2); }

/* THE FINISH LINE (2026-11-02): after Improve's last task, where the path ends and what to do next. A quiet ruled block
   in the page's own voice, visible from the start as the destination. */
.pc-finish { margin-top: var(--s7); padding: var(--s5) 0 0; border-top: 1px solid var(--rule); max-width: 44rem; }
.pc-finish__h { margin: 0 0 var(--s2); }
.pc-finish__p { margin: 0; font: var(--t-md)/1.4 var(--ui); color: var(--ink); }
.pc-finish__n, .pc-finish__live { margin: var(--s3) 0 0; font: var(--t-sm)/1.5 var(--ui); color: var(--ink-2); }
.pc-finish__live[hidden] { display: none; }
.pc-finish__live span { color: var(--ink); font-family: var(--mono); overflow-wrap: anywhere; }
.pc-finish__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin: var(--s4) 0 0; }
.pc-finish__acts .pc-btn { border: 0; cursor: pointer; }
.pc-finish__acts .pc-btn:disabled { opacity: .7; cursor: progress; }
.pc-finish__again { font: 600 var(--t-sm)/1 var(--ui); color: var(--ink); text-underline-offset: .25em; }
.pc-finish__note { margin: var(--s3) 0 0; font: var(--t-xs)/1.5 var(--ui); color: var(--ink-2); }
.pc-finish__note a { color: var(--ink); }
