/* project-plan.css — 25 Oct 2026, rebuilt 26 Oct 2026. THE PROJECT PLAN page (src/ProjectPlanPage.jsx): ABOUT (what
   the project is), the FILMS (a card per film; its detail opens in the reader), the DOCUMENTS (reader documents first,
   the working files folded) and the reader. ONE SCREEN (Hugo: "I don't want to have to scroll ... Why is this not
   extending all the way to the bottom, the document panel?"): the documents block takes the rest of the page's height,
   and only the film grid, the document list and the reader scroll, inside themselves. Its own pp-* classes only
   (.pp-ct on a film card = the skins' glass card, skin-glass.css). Colours are tokens (the separation ladder: a section
   is --sep-panel-fill on the page, a card --sep-card-fill on it, a row --sep-row-fill on that), so every skin repaints
   it and none resizes it. FIXED SIZES (invariant 20): the cards and the rows have fixed heights and clamped lines, and
   opening a film or a document changes only what is inside the reader. */
.view-page.pp-page { gap: 10px; }
/* the two views: the app's own page tabs (.vp-tabs / .vp-tab, views-pages.css) */
.pp-tabs { flex: none; }
.pp-scroll { flex: 1 0 auto; display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; }

.pp-note {
  flex: none;
  padding: 10px 14px;
  font-size: var(--fs-13);
  line-height: 1.45;
  color: var(--ink);
  background: var(--sep-card-fill);
  border-left: 3px solid var(--warn);
  border-radius: var(--r-sm);
}

/* ── a section ── */
.pp-sec {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--sep-panel-fill);
  border-radius: var(--r-md);
}
.pp-sec-head { display: flex; align-items: baseline; gap: 12px; min-width: 0; height: 18px; flex: none; }
.pp-h { font-size: var(--fs-11); font-weight: var(--fw-bold); letter-spacing: var(--track-12); text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-empty { font-size: var(--fs-13); line-height: 1.5; color: var(--sep-panel-ink-muted); }

/* ── 1. about: plain lines in columns, short enough to read whole ── */
.pp-about-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 28px; min-width: 0; }
.pp-about-col { min-width: 0; }
.pp-about-h {
  height: 20px;
  margin-bottom: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  line-height: 20px;
  color: var(--ink);
}
.pp-about-list { margin: 0; padding: 0 0 0 16px; font-size: var(--fs-13-5); line-height: 1.45; color: var(--ink); }
.pp-about-list li { margin: 0 0 3px; }
.pp-about-list li::marker { color: var(--sep-panel-ink-muted); }

/* ── 2. the films: fixed cards in a grid on the left, the picked film's whole detail on the right (26 Oct 2026), both
   one fixed height: four rows of cards (more scroll inside the grid), and the detail's body scrolls inside itself, so
   a click changes nothing but what is inside the detail ── */
.pp-films-intro {
  max-height: calc(2 * 1.45em);
  font-size: var(--fs-13);
  line-height: 1.45;
  color: var(--sep-panel-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pp-films-body {
  display: grid;
  grid-template-columns: minmax(520px, 5fr) minmax(0, 7fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  height: calc(4 * 118px + 3 * 10px + 6px);   /* four rows of cards, the three gaps, and the 2 + 4 px of padding below */
  min-width: 0;
}
.pp-film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 118px;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 6px 4px 2px;
  scrollbar-width: thin;
}
.pp-film {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  height: 118px;
  box-sizing: border-box;
  padding: 10px 12px;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--sep-card-fill);
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.pp-film:hover .pp-film-name { text-decoration: underline; }
.pp-film.is-active { outline: 2px solid var(--leaf); outline-offset: -2px; }
.pp-film-eye {
  flex: none;
  height: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-11);
  font-weight: var(--fw-semi);
  line-height: 15px;
  letter-spacing: var(--track-04);
  color: var(--sep-panel-ink-muted);
}
.pp-film-name { flex: none; height: 21px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-15); font-weight: var(--fw-bold); line-height: 21px; }
.pp-film-log {
  flex: none;
  font-size: var(--fs-12-5);
  line-height: 1.4;
  height: calc(3 * 1.4em);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pp-film-log.is-none,
.pp-fd-log.is-none { color: var(--sep-panel-ink-muted); }

/* a HERO card (the containers belong to groups: a reels project's heroes): the hero big, its episodes inside, one line each
   (one episode: its logline too); a hero with more episodes spans whole grid rows, set from the data */
.pp-film.pp-hero { gap: 2px; cursor: default; }
.pp-hero-name {
  flex: none;
  height: 30px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  font: inherit;
  font-family: var(--font-display);
  font-size: var(--fs-24);
  line-height: 30px;
  letter-spacing: var(--track-02);
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.pp-hero-ep {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  height: 26px;
  box-sizing: border-box;
  padding: 0 6px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: var(--r-xs);
  cursor: pointer;
}
.pp-hero-ep:hover { background: var(--sep-row-fill-hover); }
.pp-hero-ep.is-active { border-left-color: var(--leaf); background: color-mix(in srgb, var(--leaf) 14%, transparent); }
.pp-hero-ep.is-one { height: 62px; }
.pp-hero-ep-name { flex: none; height: 26px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-13-5); font-weight: var(--fw-bold); line-height: 26px; }
.pp-hero-ep-log {
  flex: none;
  height: calc(2 * 1.35em);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: var(--fs-12-5);
  line-height: 1.35;
}
.pp-hero-ep-log.is-none { color: var(--sep-panel-ink-muted); }

/* the film's detail: who drives it big, the title, then the body (its own scroll) */
.pp-fdet { min-height: 0; }
.pp-fdet-head { flex: none; display: flex; align-items: center; gap: 10px; height: 54px; min-width: 0; }
.pp-fdet-head.has-hero { height: 88px; }
.pp-fdet-id { flex: 1 1 auto; min-width: 0; }
.pp-fdet-eye {
  height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-11);
  font-weight: var(--fw-bold);
  line-height: 16px;
  letter-spacing: var(--track-12);
  text-transform: uppercase;
  color: var(--sep-panel-ink-muted);
}
.pp-fdet-hero {
  height: 40px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-size: var(--fs-28);
  line-height: 40px;
  letter-spacing: var(--track-02);
  text-transform: uppercase;
  color: var(--ink);
}
.pp-fdet-name { height: 32px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-22); font-weight: var(--fw-bold); line-height: 32px; color: var(--ink); }
.pp-fdet-head.has-hero .pp-fdet-name { font-size: var(--fs-18); }
.pp-fdet-head .media-expand-pill { flex: none; margin-top: 0; font-family: inherit; }
.pp-fdet-head .media-expand-pill:disabled { cursor: default; opacity: 0.45; }
.pp-fdet-body { flex: 1 1 auto; min-height: 0; margin-top: 10px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; color: var(--ink); }
.pp-fdet-body .pp-fd-log { margin: 0 0 16px; font-size: var(--fs-20); font-weight: var(--fw-semi); line-height: 1.4; }
.pp-fd-block { margin: 0 0 16px; }

/* goal, lesson, key words, the rule: tiles that read first */
.pp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 0 0 16px; }
.pp-fact { min-width: 0; padding: 10px 12px 12px; background: var(--sep-row-fill); border-left: 3px solid var(--leaf); border-radius: var(--r-sm); }
.pp-fact-h { margin: 0 0 5px; font-size: var(--fs-10-5); font-weight: var(--fw-bold); letter-spacing: var(--track-12); text-transform: uppercase; color: var(--sep-panel-ink-muted); }
.pp-fact-t { font-size: var(--fs-15); font-weight: var(--fw-semi); line-height: 1.45; }
.pp-fact-kw .pp-fact-t { margin-top: 6px; font-size: var(--fs-14); font-weight: var(--fw-med); }
.pp-pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 30px;
  box-sizing: border-box;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  color: var(--ink);
  background: color-mix(in srgb, var(--leaf) 18%, var(--sep-card-fill));
  border-radius: var(--r-pill);
}
/* a key word can be a phrase ("many hands make light work"): it wraps, never cut off */
.pp-fact-kw .pp-pill { height: auto; min-height: 36px; padding: 6px 16px; white-space: normal; line-height: 1.3; font-size: var(--fs-17); }

/* lead / with / when and where (and a character's own lines): a label column and the words */
.pp-pairs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 16px; }
.pp-pairs dt { font-size: var(--fs-10-5); font-weight: var(--fw-bold); line-height: 21px; letter-spacing: var(--track-12); text-transform: uppercase; color: var(--sep-panel-ink-muted); }
.pp-pairs dd { margin: 0; min-width: 0; font-size: var(--fs-14); line-height: 1.5; }

/* the reels in one sentence each, and the tracker's own reels with their shots */
.pp-reels li { margin: 0 0 8px; }
.pp-reels-c { display: block; margin-top: 2px; font-size: var(--fs-13); color: var(--sep-panel-ink-muted); }
.pp-reels-cl { margin-right: 6px; font-size: var(--fs-10-5); font-weight: var(--fw-bold); letter-spacing: var(--track-08); text-transform: uppercase; }
.pp-reels-l { margin-right: 8px; font-weight: var(--fw-bold); }
.pp-rows { display: flex; flex-direction: column; gap: 4px; }
.pp-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) max-content; align-items: baseline; gap: 10px; min-height: 30px; padding: 5px 10px; box-sizing: border-box; background: var(--sep-row-fill); border-radius: var(--r-xs); font-size: var(--fs-13); line-height: 1.45; }
.pp-row-n { font-weight: var(--fw-bold); color: var(--sep-panel-ink-muted); }
.pp-row-t { min-width: 0; }
.pp-row-s { font-size: var(--fs-11-5); font-weight: var(--fw-semi); color: var(--sep-panel-ink-muted); white-space: nowrap; }

/* the 30-second shorts: one small card each (hook, middle, cliffhanger, end card) */
.pp-shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pp-short { min-width: 0; padding: 10px 12px; background: var(--sep-card-fill); border-radius: var(--r-sm); }
.pp-short-head { display: flex; align-items: baseline; gap: 8px; height: 20px; margin: 0 0 6px; }
.pp-short-n { font-size: var(--fs-13-5); font-weight: var(--fw-bold); }
.pp-short-secs { font-size: var(--fs-11); font-weight: var(--fw-semi); color: var(--sep-panel-ink-muted); }
.pp-short-part { margin: 0 0 5px; font-size: var(--fs-13); line-height: 1.45; }
.pp-short-l { display: block; font-size: var(--fs-10-5); font-weight: var(--fw-bold); letter-spacing: var(--track-08); text-transform: uppercase; color: var(--sep-panel-ink-muted); }

/* ── 3 + 4. the cast and the decisions: one row of fixed height, side by side when both exist ── */
.pp-row2 { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; height: 400px; min-width: 0; }
.pp-row2.is-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pp-row2 > .pp-sec { min-height: 0; }
.pp-h-n { font-size: var(--fs-11); font-weight: var(--fw-semi); color: var(--sep-panel-ink-muted); }

/* the cast: a strip of cards, and the picked one whole under it */
.pp-cast-strip { flex: none; display: flex; gap: 10px; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 6px; scrollbar-width: thin; }
.pp-cast-card {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 200px;
  height: 94px;
  box-sizing: border-box;
  padding: 10px 12px;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--sep-card-fill);
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.pp-cast-card.is-active { outline: 2px solid var(--leaf); outline-offset: -2px; }
.pp-cast-card:hover .pp-cast-name { text-decoration: underline; }
.pp-cast-top { flex: none; display: flex; align-items: center; gap: 8px; height: 20px; min-width: 0; }
.pp-swatch { flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 28%, transparent); }
.pp-swatch.is-none { background: color-mix(in srgb, var(--sep-panel-ink-muted) 30%, transparent); }
.pp-swatch-big { width: 20px; height: 20px; }
.pp-cast-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-14); font-weight: var(--fw-bold); }
.pp-cast-rep {
  flex: none;
  height: calc(2 * 1.35em);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: var(--fs-12);
  line-height: 1.35;
}
.pp-cast-col { flex: none; height: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-11); line-height: 15px; color: var(--sep-panel-ink-muted); }
.pp-cast-det { flex: 1 1 auto; min-height: 0; }
.pp-cast-det-head { flex: none; display: flex; align-items: center; gap: 10px; height: 30px; min-width: 0; }
.pp-cast-det-name { flex: none; max-width: 50%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-18); font-weight: var(--fw-bold); color: var(--ink); }
.pp-cast-det-rep { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-13); color: var(--sep-panel-ink-muted); }
.pp-cast-det-body { flex: 1 1 auto; min-height: 0; margin-top: 8px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; color: var(--ink); }
.pp-why { margin: 0 0 12px; padding: 10px 12px; background: var(--sep-row-fill); border-left: 3px solid var(--leaf); border-radius: var(--r-sm); }
.pp-why .pp-fd-p { font-size: var(--fs-15); font-weight: var(--fw-med); }
.pp-why .pp-fd-p:last-child { margin-bottom: 0; }

/* the decisions: the open questions ("Waiting for you") and what is decided, each list scrolling inside itself */
.pp-dec-body { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 14px; min-height: 0; min-width: 0; }
.pp-dec-body.is-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pp-dec-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pp-dec-h {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
  margin: 0 0 8px;
  font-size: var(--fs-11);
  font-weight: var(--fw-bold);
  letter-spacing: var(--track-12);
  text-transform: uppercase;
  color: var(--sep-panel-ink-muted);
}
.pp-dec-open .pp-dec-h { color: var(--ink); }
.pp-dec-n { font-weight: var(--fw-semi); color: var(--sep-panel-ink-muted); }
.pp-dec-list { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.pp-dec-item { flex: none; min-width: 0; padding: 10px 12px; background: var(--sep-row-fill); border-left: 3px solid transparent; border-radius: var(--r-sm); color: var(--ink); }
.pp-dec-q { background: color-mix(in srgb, var(--warn) 12%, var(--sep-card-fill)); border-left-color: var(--warn); }
.pp-dec-topic { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: var(--fs-14); font-weight: var(--fw-bold); line-height: 1.35; }
.pp-dec-tt { min-width: 0; }
.pp-dec-when { flex: none; margin-left: auto; font-size: var(--fs-11); font-weight: var(--fw-semi); color: var(--sep-panel-ink-muted); white-space: nowrap; }
.pp-dec-what { margin-top: 4px; font-size: var(--fs-13-5); line-height: 1.45; }
.pp-dec-why { margin-top: 4px; font-size: var(--fs-12-5); line-height: 1.45; color: var(--sep-panel-ink-muted); }
.pp-dec-l { margin-right: 6px; font-size: var(--fs-10-5); font-weight: var(--fw-bold); letter-spacing: var(--track-08); text-transform: uppercase; color: var(--sep-panel-ink-muted); }
.pp-dec-opts { margin-top: 8px; }
/* an option can be a sentence: it wraps (an option is never cut off) */
.pp-opt { height: auto; min-height: 28px; padding: 5px 12px; white-space: normal; line-height: 1.35; font-size: var(--fs-13); font-weight: var(--fw-semi); background: var(--sep-row-fill); border-radius: var(--r-sm); }
.pp-opt.is-pick { background: color-mix(in srgb, var(--leaf) 24%, var(--sep-row-fill)); box-shadow: inset 0 0 0 1.5px var(--leaf); font-weight: var(--fw-bold); }
.pp-opt-tag { font-size: var(--fs-10); font-weight: var(--fw-heavy); letter-spacing: var(--track-04); text-transform: uppercase; color: var(--sep-panel-ink-muted); }

/* ── HOW WE MAKE IT: one document, full width, filling the page, its text scrolling inside; big headings ── */
.pp-how { flex: 1 1 0; min-height: 480px; }
.pp-how-body { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 2px 12px 8px 2px; scrollbar-width: thin; }
.pp-how .pp-md { max-width: 1180px; font-size: var(--fs-16); line-height: 1.65; }
.pp-how .pp-md .agent-md-h[data-level="1"] { margin: 0 0 14px; font-size: var(--fs-28); line-height: 1.25; }
.pp-how .pp-md .agent-md-h[data-level="2"] { margin: 28px 0 8px; font-size: var(--fs-22); letter-spacing: var(--track-01); }
.pp-how .pp-md .agent-md-h[data-level="2"]:first-child { margin-top: 0; }
.pp-how .pp-md .agent-md-h[data-level="3"],
.pp-how .pp-md .agent-md-h[data-level="4"] { margin: 18px 0 6px; font-size: var(--fs-18); }
.pp-how .pp-md .agent-md-p { margin: 0 0 12px; }
.pp-how .pp-md .agent-md-ul,
.pp-how .pp-md .agent-md-ol { margin: 0 0 12px; }
.pp-how .pp-pre { font-size: var(--fs-16); line-height: 1.65; }

/* ── 5. documents: the list and the reader side by side, filling the rest of the screen ── */
.pp-docsec { flex: 1 0 auto; min-height: 340px; }
.pp-docs { flex: 1 1 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 12px; min-height: 0; min-width: 0; }
.pp-doclist { display: flex; flex-direction: column; gap: 4px; min-height: 0; min-width: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.pp-docgroup { flex: none; display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-top: 6px; }
.pp-docgroup-head {
  height: 16px;
  padding: 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-10-5);
  font-weight: var(--fw-bold);
  line-height: 16px;
  letter-spacing: var(--track-12);
  text-transform: uppercase;
  color: var(--sep-panel-ink-muted);
}
.pp-doc {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  box-sizing: border-box;
  min-width: 0;
  padding: 0 10px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--sep-row-fill);
  border: 0;
  border-left: 3px solid transparent;
  border-radius: var(--r-xs);
  cursor: pointer;
}
.pp-doc:hover { background: var(--sep-row-fill-hover); }
.pp-doc.is-active { background: color-mix(in srgb, var(--leaf) 16%, var(--sep-row-fill)); border-left-color: var(--leaf); }
.pp-doc-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); font-weight: var(--fw-semi); }
.pp-doc-work { height: 34px; }
.pp-doc-work .pp-doc-title { font-size: var(--fs-12-5); font-weight: var(--fw-med); }
.pp-tag {
  flex: none;
  display: inline-block;
  height: 15px;
  padding: 0 5px;
  font-size: var(--fs-10);
  font-weight: var(--fw-bold);
  line-height: 15px;
  letter-spacing: var(--track-04);
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: var(--r-xs);
}
.pp-tag-old { background: color-mix(in srgb, var(--sep-panel-ink-muted) 22%, transparent); }

/* the one control the working files fold under */
.pp-work {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  box-sizing: border-box;
  min-width: 0;
  margin-top: 8px;
  padding: 0 10px 0 13px;
  font: inherit;
  font-size: var(--fs-11);
  font-weight: var(--fw-bold);
  letter-spacing: var(--track-12);
  text-transform: uppercase;
  text-align: left;
  color: var(--sep-panel-ink-muted);
  background: none;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--sep-panel-ink-muted) 30%, transparent);
  cursor: pointer;
}
.pp-work:first-child { margin-top: 0; border-top-color: transparent; }
.pp-work:hover { color: var(--ink); }
.pp-work-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-work-count { flex: none; font-weight: var(--fw-semi); }
.pp-work-chev { flex: none; width: 12px; height: 12px; margin-left: auto; transition: transform 0.15s ease; }
.pp-work.is-open .pp-work-chev { transform: rotate(180deg); }

/* the reader: a document, or a film's detail */
.pp-reader {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 12px 16px 14px;
  background: var(--sep-card-fill);
  border-radius: var(--r-sm);
}
.pp-reader-head { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; min-width: 0; }
.pp-reader-id { flex: 1 1 auto; min-width: 0; }
.pp-reader-title { display: flex; align-items: center; gap: 8px; height: 26px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: var(--fs-17); font-weight: var(--fw-bold); color: var(--ink); }
.pp-reader-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pp-reader-head .media-expand-pill { flex: none; margin-top: 0; font-family: inherit; }
.pp-reader-head .media-expand-pill:disabled { cursor: default; opacity: 0.45; }
.pp-reader-note { flex: none; height: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-11); line-height: 16px; color: var(--sep-panel-ink-muted); }
.pp-reader-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.pp-reader-empty { margin: auto; }

/* the Markdown of a document (src/agentMarkdown.js classes, scoped to this page) */
.pp-md { max-width: 920px; font-size: var(--fs-14); line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.pp-md .agent-md-h { margin: 14px 0 6px; font-weight: var(--fw-bold); color: var(--ink); }
.pp-md .agent-md-h:first-child { margin-top: 0; }
.pp-md .agent-md-h[data-level="1"] { font-size: var(--fs-20); }
.pp-md .agent-md-h[data-level="2"] { font-size: var(--fs-15); letter-spacing: var(--track-04); }
.pp-md .agent-md-h[data-level="3"],
.pp-md .agent-md-h[data-level="4"] { font-size: var(--fs-14); }
.pp-md .agent-md-p { margin: 0 0 8px; }
.pp-md .agent-md-ul,
.pp-md .agent-md-ol { margin: 0 0 8px; }
.pp-md .agent-md-quote { margin: 0 0 8px; }
.pp-md .agent-md-hr { margin: 12px 0; }
.pp-pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: var(--fs-13-5); line-height: 1.55; color: var(--ink); }

/* the words of a film's detail and a character's: a label, paragraphs, a bullet list */
.pp-fd-h { margin: 0 0 6px; font-size: var(--fs-11); font-weight: var(--fw-bold); letter-spacing: var(--track-12); text-transform: uppercase; color: var(--sep-panel-ink-muted); }
.pp-fd-list { margin: 0; padding: 0 0 0 18px; font-size: var(--fs-14); line-height: 1.55; }
.pp-fd-list li { margin: 0 0 4px; }
.pp-fd-p { margin: 0 0 8px; font-size: var(--fs-14); line-height: 1.55; }
.pp-fd-block .pp-fd-p:last-child { margin-bottom: 0; }

/* ── the phone: one column, a 16 px gutter; the films one sideways row; the list above a reader of fixed height ── */
/* the phone's .main-content already insets the page by 10 px (mobile.css): 10 + 6 = the 16 px gutter to the sections */
body[data-ui-tier="s"] .view-page.pp-page { padding-left: 6px; padding-right: 6px; }
body[data-ui-tier="s"] .pp-scroll { flex: none; padding-bottom: 76px; }
body[data-ui-tier="s"] .pp-sec { padding: 12px; }
body[data-ui-tier="s"] .pp-about-cols { grid-template-columns: minmax(0, 1fr); }
body[data-ui-tier="s"] .pp-films-body { display: flex; flex-direction: column; gap: 10px; height: auto; }
body[data-ui-tier="s"] .pp-film-grid { flex: none; display: flex; gap: 8px; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
body[data-ui-tier="s"] .pp-film { flex: 0 0 260px; width: 260px; }
body[data-ui-tier="s"] .pp-film.pp-hero { height: 118px; overflow-y: auto; }
body[data-ui-tier="s"] .pp-fdet { flex: none; height: 560px; padding: 10px 12px 12px; scroll-margin-top: 8px; }
body[data-ui-tier="s"] .pp-fdet-head { flex-wrap: wrap; height: auto; min-height: 54px; row-gap: 6px; }
body[data-ui-tier="s"] .pp-fdet-id { flex: 1 1 100%; }
body[data-ui-tier="s"] .pp-row2,
body[data-ui-tier="s"] .pp-row2.is-two { display: flex; flex-direction: column; height: auto; }
body[data-ui-tier="s"] .pp-row2 > .pp-sec { height: 460px; }
body[data-ui-tier="s"] .pp-dec-body.is-two { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
body[data-ui-tier="s"] .pp-docsec { flex: none; min-height: 0; }
body[data-ui-tier="s"] .pp-docs { flex: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: 300px 520px; }
body[data-ui-tier="s"] .pp-reader { padding: 10px 12px 12px; scroll-margin-top: 8px; }
body[data-ui-tier="s"] .pp-reader-head { height: auto; min-height: 40px; flex-wrap: wrap; row-gap: 6px; }
body[data-ui-tier="s"] .pp-reader-id { flex: 1 1 100%; }

/* ══ 1 Nov 2026 — THE PLAN PAGE REBUILT (src/ProjectPlanPage.jsx, the .pp-v2 page): WAITING FOR YOU (question cards he
   clicks to answer), THE FILMS (counted progress, home blue / attackers red), THE EPISODES, then STUCK · NEXT · DECIDED.
   Every row of cards and every list has a FIXED height and scrolls inside itself (invariant 20): answering a question,
   ticking a step or picking a decision changes only what is inside a card. Colours are tokens; the team colours read
   the palette's own blue and red. ══ */
.pp-v2 .pp-scroll { gap: 12px; }
/* THE TEAM COLOURS are FIXED, like the health colours (tokens.css --status-*): home is blue and the attackers red in every
   skin (the skins re-point --blue-* to their own ramp, which turned "blue = home" orange on Maya Dark). The red reads the
   fixed --status-bad; no fixed blue exists, so the page keeps its one here. */
.pp-v2, .pp-modal { --pp-team-home: var(--team-home); --pp-team-away: var(--team-attack); }

/* the top line */
.pp-head { flex: none; display: flex; align-items: center; gap: 18px; height: 56px; min-width: 0; padding: 0 4px; }
.pp-head-id { flex: 1 1 auto; min-width: 0; }
.pp-head-name { height: 32px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-display); font-size: var(--fs-28); line-height: 32px; letter-spacing: var(--track-04); text-transform: uppercase; color: var(--ink); }
.pp-head-line { height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-13-5); line-height: 20px; color: var(--sep-panel-ink-muted); }
.pp-head-chips { flex: none; display: flex; align-items: center; gap: 8px; }
.pp-head-chips .media-expand-pill { margin-top: 0; font-family: inherit; }
.pp-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: var(--fw-semi); white-space: nowrap; color: var(--ink); background: var(--sep-card-fill); }
.pp-chip.is-wait { background: color-mix(in srgb, var(--warn) 30%, var(--sep-card-fill)); }
.pp-chip.is-stuck { background: color-mix(in srgb, var(--danger-soft) 26%, var(--sep-card-fill)); }

/* 1 · waiting for you: one fixed row of question cards, four wide, more scroll sideways */
/* 1 Nov 2026 (review) — every open question on screen: a fixed block of two rows of four (no sideways scroll that hid the 5th and 6th); a 9th+ question scrolls inside the block */
.pp-q-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 258px; gap: 12px; height: calc(2 * 258px + 12px); overflow-x: hidden; overflow-y: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pp-q-row > .pp-empty { grid-column: 1 / -1; align-self: start; }
.pp-q { display: flex; flex-direction: column; gap: 8px; min-width: 0; height: 250px; box-sizing: border-box; padding: 12px 14px; background: var(--sep-card-fill); border-radius: var(--r-sm); }
.pp-q-head { flex: none; display: flex; align-items: flex-start; gap: 8px; height: 40px; min-width: 0; }
.pp-q-topic { flex: 1 1 auto; min-width: 0; font-size: var(--fs-14); font-weight: var(--fw-bold); line-height: 20px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-q-about { flex: none; height: 22px; padding: 0 9px; font: inherit; font-size: var(--fs-11); font-weight: var(--fw-semi); white-space: nowrap; color: var(--ink); background: var(--sep-row-fill); border: 0; border-radius: var(--r-pill); cursor: pointer; }
.pp-q-about:hover { background: var(--sep-row-fill-hover); }
.pp-q-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.pp-q-opts { display: flex; flex-direction: column; gap: 4px; }
.pp-q-opt { display: flex; align-items: center; gap: 8px; height: 28px; flex: none; min-width: 0; padding: 0 10px; font: inherit; font-size: var(--fs-13); text-align: left; color: var(--ink); background: var(--sep-row-fill); border: 0; border-radius: var(--r-xs); cursor: pointer; }
.pp-q-opt:hover:not(:disabled) { background: var(--sep-row-fill-hover); }
.pp-q-opt:disabled { cursor: default; }
.pp-q-opt.is-on { box-shadow: inset 0 0 0 var(--hairline-w) var(--leaf); background: color-mix(in srgb, var(--leaf) 18%, var(--sep-row-fill)); }
.pp-q-dot { flex: none; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--sep-panel-ink-muted); }
.pp-q-opt.is-on .pp-q-dot { background: var(--leaf); box-shadow: inset 0 0 0 1.5px var(--leaf); }
.pp-q-opt-t { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-q-pick { flex: none; font-size: var(--fs-10-5); font-weight: var(--fw-bold); letter-spacing: var(--track-04); text-transform: uppercase; color: var(--sep-panel-ink-muted); }
.pp-q-other { width: 100%; height: 100%; min-height: 96px; box-sizing: border-box; resize: none; padding: 8px 10px; font: inherit; font-size: var(--fs-13); line-height: 1.45; color: var(--ink); background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--r-xs); }
.pp-q-why { flex: none; height: 34px; font-size: var(--fs-12); line-height: 17px; color: var(--sep-panel-ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-q-foot { flex: none; display: flex; align-items: center; gap: 8px; height: 30px; }
.pp-q-foot .media-expand-pill { margin-top: 0; font-family: inherit; }
.pp-q-foot .media-expand-pill:disabled { cursor: default; opacity: 0.45; }
.pp-q-asked { margin-left: auto; font-size: var(--fs-11); white-space: nowrap; color: var(--sep-panel-ink-muted); }
.pp-decide { flex: none; height: 30px; padding: 0 18px; font: inherit; font-size: var(--fs-13); font-weight: var(--fw-bold); color: var(--cta-ink); background: var(--cta-bg); border: 0; border-radius: var(--r-pill); cursor: pointer; }
.pp-decide:disabled { cursor: default; opacity: 0.4; }

/* 2 · the films: one card each, fixed height; a click opens the film on the Shots page */
.pp-sec-head .pp-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-11); color: var(--sep-panel-ink-muted); white-space: nowrap; }
.pp-legend .pp-team:not(:first-child) { margin-left: 8px; }
.pp-team { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sep-panel-ink-muted); }
.pp-team.is-home { background: var(--pp-team-home); }
.pp-team.is-away { background: var(--pp-team-away); }
.pp-team.is-none { background: color-mix(in srgb, var(--sep-panel-ink-muted) 50%, transparent); }
.pp-fc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); grid-auto-rows: 212px; gap: 10px; max-height: calc(2 * 212px + 10px); overflow-y: auto; scrollbar-width: thin; }
.pp-fc { display: flex; flex-direction: column; gap: 6px; min-width: 0; height: 212px; box-sizing: border-box; padding: 11px 13px; font: inherit; text-align: left; color: var(--ink); background: var(--sep-card-fill); border: 0; border-radius: var(--r-sm); }
button.pp-fc { cursor: pointer; }
button.pp-fc:hover { box-shadow: inset 0 0 0 var(--hairline-w) color-mix(in srgb, var(--leaf) 60%, transparent); }
.pp-fc.is-flash { box-shadow: inset 0 0 0 2px var(--warn); }
.pp-fc-eye { flex: none; height: 16px; font-size: var(--fs-11); font-weight: var(--fw-bold); line-height: 16px; letter-spacing: var(--track-12); text-transform: uppercase; color: var(--sep-panel-ink-muted); }
.pp-fc-style { flex: none; height: 22px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-15); font-weight: var(--fw-bold); line-height: 22px; }
.pp-fc-sides { flex: none; display: flex; flex-direction: column; gap: 2px; height: 42px; }
.pp-side { display: flex; align-items: center; gap: 7px; height: 20px; min-width: 0; font-size: var(--fs-13); }
.pp-side-n { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--fw-semi); }
.pp-side-r { flex: none; margin-left: auto; font-size: var(--fs-11); color: var(--sep-panel-ink-muted); }
.pp-side-q { font-size: var(--fs-11); color: var(--sep-panel-ink-muted); }
.pp-fc-bars, .pp-ep-bars { flex: none; display: flex; flex-direction: column; gap: 3px; }
.pp-bar { display: grid; grid-template-columns: 46px minmax(0, 1fr) 62px; align-items: center; gap: 6px; height: 15px; font-size: var(--fs-11); }
.pp-bar-l { color: var(--sep-panel-ink-muted); }
.pp-bar-track { height: 5px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--sep-panel-ink-muted) 24%, transparent); overflow: hidden; }
.pp-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--leaf); }
.pp-bar.is-full .pp-bar-fill { background: var(--ok); }
.pp-bar-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.pp-fc-state { flex: none; height: 34px; margin-top: auto; font-size: var(--fs-12); line-height: 17px; color: var(--sep-panel-ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-fc-state.is-q { color: var(--ink); }

/* 3 · the episodes: one fixed card each, side by side */
.pp-ep-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); grid-auto-rows: 270px; gap: 12px; max-height: 270px; overflow-y: auto; scrollbar-width: thin; }
.pp-ep-row > .pp-empty { grid-column: 1 / -1; }
.pp-ep { display: flex; flex-direction: column; gap: 6px; min-width: 0; height: 270px; box-sizing: border-box; padding: 12px 14px; background: var(--sep-card-fill); border-radius: var(--r-sm); color: var(--ink); }
.pp-ep-head { flex: none; display: flex; align-items: center; gap: 10px; height: 24px; min-width: 0; }
.pp-ep-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-17); font-weight: var(--fw-bold); line-height: 24px; text-transform: uppercase; letter-spacing: var(--track-04); }
.pp-ep-status { flex: none; height: 20px; padding: 0 9px; font-size: var(--fs-11); font-weight: var(--fw-bold); line-height: 20px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ok) 26%, var(--sep-row-fill)); }
.pp-ep-status.is-plan { background: color-mix(in srgb, var(--warn) 32%, var(--sep-row-fill)); }
.pp-ep-line { flex: none; height: 38px; font-size: var(--fs-13); line-height: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-ep-facts { flex: none; height: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-12); line-height: 18px; color: var(--sep-panel-ink-muted); }
.pp-ep-mid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.pp-ep-outline { display: flex; flex-wrap: wrap; gap: 4px 6px; height: 52px; overflow: hidden; align-content: flex-start; }
.pp-ep-step { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 24px; padding: 0 9px 0 4px; font-size: var(--fs-12); white-space: nowrap; border-radius: var(--r-pill); background: var(--sep-row-fill); }
.pp-ep-step-n { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; font-size: var(--fs-10); font-weight: var(--fw-bold); border-radius: 50%; background: var(--sep-card-fill); }
.pp-ep-check { display: flex; gap: 14px; height: 20px; overflow: hidden; }
.pp-ep-tick { display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 20px; font-size: var(--fs-12); white-space: nowrap; }
.pp-ep-box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 14px; height: 14px; box-sizing: border-box; font-size: var(--fs-10); font-weight: var(--fw-bold); border-radius: var(--r-xs); box-shadow: inset 0 0 0 1.5px var(--sep-panel-ink-muted); }
.pp-ep-tick.is-done .pp-ep-box { color: var(--ink-on-accent); background: var(--ok); box-shadow: none; }
.pp-ep-tick-a { min-width: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: var(--sep-panel-ink-muted); }
.pp-ep-next { flex: none; height: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-12-5); line-height: 18px; }
.pp-ep-next-l, .pp-lbl { margin-right: 6px; font-size: var(--fs-10-5); font-weight: var(--fw-bold); letter-spacing: var(--track-12); text-transform: uppercase; color: var(--sep-panel-ink-muted); }
.pp-ep-foot { flex: none; display: flex; gap: 8px; height: 28px; }
.pp-ep-foot .media-expand-pill { margin-top: 0; font-family: inherit; }

/* 4 · stuck · next · decided: three fixed columns, each list scrolls inside */
.pp-low { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: 330px; min-width: 0; }
.pp-low-col { min-height: 0; }
.pp-low-list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.pp-low-note { flex: none; height: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-11); line-height: 16px; color: var(--danger-soft); }
.pp-stuck { flex: none; padding: 8px 10px; background: var(--sep-card-fill); border-radius: var(--r-xs); color: var(--ink); }
.pp-stuck-what { display: flex; align-items: center; gap: 8px; font-size: var(--fs-13); font-weight: var(--fw-bold); line-height: 19px; }
.pp-stuck-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--danger-soft); }
.pp-stuck-l { margin-top: 3px; padding-left: 16px; font-size: var(--fs-12); line-height: 17px; }
.pp-next { flex: none; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 6px 4px 10px; background: var(--sep-card-fill); border-radius: var(--r-xs); color: var(--ink); }
.pp-next-n { flex: none; width: 16px; font-size: var(--fs-12); font-weight: var(--fw-bold); color: var(--sep-panel-ink-muted); }
.pp-who { flex: none; width: 52px; height: 20px; font-size: var(--fs-10-5); font-weight: var(--fw-bold); line-height: 20px; text-align: center; letter-spacing: var(--track-04); text-transform: uppercase; border-radius: var(--r-pill); background: var(--sep-row-fill); }
.pp-who.is-you { background: color-mix(in srgb, var(--warn) 34%, var(--sep-row-fill)); }
.pp-next-t { flex: 1 1 auto; min-width: 0; font-size: var(--fs-13); line-height: 18px; }
.pp-next .pp-next-done { flex: none; margin-top: 0; font-family: inherit; }
.pp-dec2 { gap: 2px; }
.pp-dec2-row { flex: none; display: grid; grid-template-columns: 48px minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 8px; height: 28px; padding: 0 8px; font: inherit; font-size: var(--fs-12-5); text-align: left; color: var(--ink); background: none; border: 0; border-radius: var(--r-xs); cursor: pointer; }
.pp-dec2-row:hover { background: var(--sep-row-fill); }
.pp-dec2-row.is-active { background: var(--sep-card-fill); }
.pp-dec2-when { min-width: 0; overflow: hidden; font-size: var(--fs-11); white-space: nowrap; color: var(--sep-panel-ink-muted); }
.pp-dec2-t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--fw-semi); }
.pp-dec2-a { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--sep-panel-ink-muted); }
.pp-dec2-det { flex: none; position: relative; height: 76px; box-sizing: border-box; padding: 8px 10px; background: var(--sep-card-fill); border-radius: var(--r-xs); color: var(--ink); overflow: hidden; }
.pp-dec2-det-a { padding-right: 64px; font-size: var(--fs-12-5); font-weight: var(--fw-semi); line-height: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-dec2-det-w { margin-top: 3px; font-size: var(--fs-12); line-height: 17px; color: var(--sep-panel-ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-dec2-det .pp-dec2-undo { position: absolute; top: 8px; right: 8px; margin-top: 0; font-family: inherit; }

/* the reader, in place over the page */
.pp-modal { position: fixed; inset: 0; z-index: var(--z-backdrop); display: flex; align-items: center; justify-content: center; padding: 24px; background: color-mix(in srgb, var(--ink-deep) 55%, transparent); }
.pp-modal-panel.pp-reader { width: min(980px, 100%); height: min(860px, 100%); box-sizing: border-box; padding: 14px 20px 18px; background: var(--panel-raised); border-radius: var(--r-md); }
.pp-modal-head { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; min-width: 0; }
.pp-modal-title { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-18); font-weight: var(--fw-bold); color: var(--ink); }
.pp-modal-head .media-expand-pill { flex: none; margin-top: 0; font-family: inherit; }
.pp-modal-body { flex: 1 1 auto; min-height: 0; margin-top: 8px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }

/* the phone: one column; the question and film rows scroll sideways, the low lists stack */
body[data-ui-tier="s"] .pp-head { flex-wrap: wrap; height: auto; row-gap: 8px; }
body[data-ui-tier="s"] .pp-head-chips { flex-wrap: wrap; }
body[data-ui-tier="s"] .pp-q-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; grid-auto-rows: auto; height: 258px; overflow-x: auto; overflow-y: hidden; }
body[data-ui-tier="s"] .pp-fc-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 220px; max-height: none; overflow-x: auto; overflow-y: hidden; }
body[data-ui-tier="s"] .pp-ep-row { grid-template-columns: minmax(0, 1fr); max-height: calc(2 * 270px + 12px); }
body[data-ui-tier="s"] .pp-low { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, 330px); height: auto; }

/* 1 Nov 2026 (review) — a film waiting for Film 1's new framings: its old counts read grey, not "done" green */
.pp-fc.is-waiting .pp-fc-bars { opacity: 0.45; filter: grayscale(1); }

/* ── 0. THE BRIEF of each episode (7 Nov 2026). Hugo: "we should be seeing really big, really clear what the brief says,
   what the goal is, what the website is, what the requests are, what the original images are". One tab per episode; the
   brief's sections as big cards on the left, its links, files and original pictures on the right. ONE fixed height
   (invariant 20): a tab changes only what is inside; each side scrolls inside itself. ── */
.pp-brief-tabs { display: flex; flex-wrap: wrap; gap: 22px; flex: none; }
.pp-brief-tabs .vp-tab { font-size: var(--fs-16); }
.pp-brief-body { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr); gap: 14px; height: clamp(560px, 72vh, 980px); min-width: 0; }
.pp-brief-main, .pp-brief-side { min-height: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; }
.pp-brief-title { flex: none; font-family: var(--font-display); font-size: var(--fs-28); letter-spacing: var(--track-005); line-height: 1.15; color: var(--ink); }
.pp-brief-intro { flex: none; color: var(--sep-panel-ink-muted); }
.pp-brief-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; align-items: start; }
.pp-brief-card, .pp-brief-box { padding: 14px 16px; background: var(--sep-card-fill); border-radius: var(--r-sm); min-width: 0; }
.pp-brief-card-h, .pp-brief-h { margin-bottom: 8px; font-family: var(--font-display); font-size: var(--fs-18); letter-spacing: var(--track-005); line-height: 1.2; color: var(--ink); }
.pp-brief-md { font-size: var(--fs-15); line-height: 1.55; color: var(--ink); }
.pp-brief-md p { margin: 0 0 8px; }
.pp-brief-md ul, .pp-brief-md ol { margin: 0 0 8px; padding-left: 20px; }
.pp-brief-md li { margin: 0 0 4px; }
.pp-brief-md a { color: var(--leaf); }
.pp-brief-link { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; margin: 0 0 6px; border-radius: var(--r-sm); background: var(--sep-row-fill); text-decoration: none; color: var(--ink); }
.pp-brief-link:hover { background: color-mix(in srgb, var(--leaf) 18%, var(--sep-row-fill)); }
.pp-brief-link-t { font-size: var(--fs-14); font-weight: var(--fw-semi); line-height: 1.35; }
.pp-brief-link-s { font-size: var(--fs-12); color: var(--sep-panel-ink-muted); }
.pp-brief-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pp-brief-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-xs); background: var(--sep-row-fill); }
.pp-brief-pic img, .pp-brief-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-brief-pic:hover { box-shadow: 0 0 0 2px var(--leaf); }
body[data-ui-tier="s"] .pp-brief-body { grid-template-columns: minmax(0, 1fr); height: auto; }
/* (7 Nov 2026, later) the pictures open in the app's Lightbox; a hover lifts them. A client video plays in a window over the
   page (the PDF opens in the tracker's own PDF viewer, src/PackagingViewer.jsx). Cards get a hairline and a soft shadow. */
.pp-brief-card, .pp-brief-box { box-shadow: 0 0 0 var(--hairline-w, 1px) color-mix(in srgb, var(--ink) 12%, transparent), var(--shadow-card); }
button.pp-brief-link { width: 100%; border: none; font: inherit; text-align: left; cursor: pointer; }
.pp-brief-pic { padding: 0; border: none; cursor: zoom-in; transition: transform var(--dur-1, 160ms) ease, box-shadow var(--dur-1, 160ms) ease; }
.pp-brief-pic:hover { transform: scale(1.04); box-shadow: 0 0 0 2px var(--leaf), var(--shadow-card); position: relative; z-index: 1; }
.pp-brief-doc-back { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ink) 70%, transparent); }
.pp-brief-doc { display: flex; flex-direction: column; gap: 10px; width: min(1400px, 92vw); height: 88vh; padding: 14px; border-radius: var(--r-md); background: var(--sep-panel-fill); box-shadow: var(--shadow-card); }
.pp-brief-doc-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-brief-doc-t { font-family: var(--font-display); font-size: var(--fs-18); color: var(--ink); }
.pp-brief-doc-v { flex: 1; min-height: 0; width: 100%; background: var(--ink); border-radius: var(--r-sm); }
/* (7 Nov 2026, later) ONE GRID filling the page to the bottom: no page scroll, every cell the same height (Hugo: "Put it all
   the way down. I asked for all the panels to be the same height"). Three columns of the brief's sections, a fourth for
   the links and the pictures; a cell's text scrolls inside the cell only if it is longer than the cell. */
.pp-brief-wrap { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 640px; }
.pp-brief-wrap:empty { display: none; }
.pp-brief { flex: 1 1 auto; min-height: 0; }
.pp-brief-grid { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(320px, 0.9fr); gap: 12px; }
.pp-brief-grid > .pp-brief-card, .pp-brief-grid > .pp-brief-box { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pp-brief-card-b { flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.pp-brief-grid .pp-brief-box .pp-brief-pics { flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; align-content: start; }
body[data-ui-tier="s"] .pp-brief-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none !important; }
body[data-ui-tier="s"] .pp-brief-grid > * { grid-column: auto !important; grid-row: auto !important; }

/* ══ 8 Nov 2026 — THE PROJECT PLAN PAGE, the mockup design (src/ProjectPlanPage.jsx ProjectPlanPage + Pv*, services/planPage.js;
   docs/superpowers/specs/2026-11-08-project-plan-page-design.md). The project's photo as a big hero with its name in the
   display face and the pitch; four pastel fact cards (tints of four chart tokens) whose panel opens under the row; the
   films as glass cards, four to a row, ONE fixed height per row (the pictures get shorter while a panel is open, so the
   page still fits); Setting it up, Done | Left. A film's page: a slim bar, the film's hero card, then its sections by
   shape. Every colour a token; every size fixed: a hover or a tick changes no height (invariant 20). ══ */
.view-page.pv-page { gap: 14px; padding: 0 22px 20px; }
.pv-page { --pv-gap: 14px; --pv-pic-h: 250px; --pv-hero-h: 270px; }
.pv-page.is-12 { --pv-pic-h: 150px; }
/* 13-15 films: five to a row, 16 and more: six (three rows fit the screen with Setting it up under them); the pictures
   shrink with the columns so a card keeps its proportions */
.pv-page.is-c5 { --pv-cols: 5; --pv-pic-h: 120px; }
.pv-page.is-c6 { --pv-cols: 6; --pv-pic-h: 100px; }
.pv-page.has-panel { --pv-pic-h: 84px; }
.pv-page.is-film { --pv-hero-h: 190px; }
.pv-glass {
  background: var(--sep-panel-fill);
  color: var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 0 0 var(--hairline-w, 1px) color-mix(in srgb, var(--ink) 10%, transparent), var(--shadow-card);
}
.pv-loading { padding: 24px 4px; font-size: var(--fs-15); color: var(--sep-panel-ink-muted); }

/* ── the hero ── */
.pv-hero { position: relative; flex: none; height: var(--pv-hero-h); margin: 0 -22px; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.pv-hero.is-slim { height: 120px; }
.pv-hero-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.pv-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--mix-dark) 72%, transparent) 0%, color-mix(in srgb, var(--mix-dark) 38%, transparent) 42%, transparent 70%),
    linear-gradient(0deg, color-mix(in srgb, var(--mix-dark) 55%, transparent) 0%, transparent 45%);
}
.pv-hero.is-slim::after { background: color-mix(in srgb, var(--mix-dark) 55%, transparent); }
.pv-hero-t { position: relative; z-index: 1; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 0 44px 22px; min-width: 0; }
.pv-crumb { font-family: var(--font-display); font-size: var(--fs-20); letter-spacing: var(--track-04); text-transform: uppercase; color: var(--ink-on-dark); }
.pv-name { font-family: var(--font-display); font-size: 92px; line-height: 0.98; letter-spacing: 0.005em; text-transform: uppercase; color: var(--ink-on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-hero.is-slim .pv-name { font-size: var(--fs-48); }
.pv-page.is-film .pv-name { font-size: 76px; }
.pv-pitch {
  max-width: 1700px; height: calc(2 * 1.45em); margin-top: 10px; overflow: hidden;
  font-size: var(--fs-18); line-height: 1.45; color: var(--ink-on-dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pv-tabs { position: absolute; z-index: 2; top: 16px; right: 22px; display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--mix-dark) 45%, transparent); }
.pv-tab { height: 32px; padding: 0 16px; border: none; border-radius: var(--r-pill); background: transparent; color: var(--ink-on-dark); font: inherit; font-size: var(--fs-14); font-weight: var(--fw-semi); cursor: pointer; }
.pv-tab.is-on { background: var(--sep-panel-fill); color: var(--ink); }
.pv-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }

/* ── the fact cards ── */
.pv-facts { flex: none; display: grid; grid-template-columns: repeat(var(--pv-n), minmax(0, 1fr)); gap: 16px; }
.pv-fact {
  --pv-tone: var(--chart-2);
  display: flex; align-items: center; gap: 18px; height: 128px; box-sizing: border-box; min-width: 0; padding: 0 18px 0 20px;
  border: none; border-radius: var(--r-card); font: inherit; text-align: left; color: var(--ink);
  background: color-mix(in srgb, var(--pv-tone) 24%, var(--sep-panel-fill));
  box-shadow: 0 0 0 var(--hairline-w, 1px) color-mix(in srgb, var(--ink) 10%, transparent), var(--shadow-card);
}
.pv-fact.is-green, .pv-panel.is-green { --pv-tone: var(--chart-1); }
.pv-fact.is-gold, .pv-panel.is-gold { --pv-tone: var(--chart-3); }
.pv-fact.is-violet, .pv-panel.is-violet { --pv-tone: var(--chart-4); }
.pv-panel.is-blue { --pv-tone: var(--chart-2); }
.pv-fact.is-click { cursor: pointer; }
.pv-fact.is-click:hover { background: color-mix(in srgb, var(--pv-tone) 34%, var(--sep-panel-fill)); }
.pv-fact.is-open { box-shadow: 0 0 0 3px var(--pv-tone), var(--shadow-card); }
.pv-fact:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.pv-fact-ic { flex: none; width: 82px; height: 82px; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 70%, transparent); color: var(--ink); }
.pv-fact-ic svg { width: 40px; height: 40px; }
.pv-fact-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pv-fact-l { height: 22px; font-family: var(--font-display); font-size: var(--fs-18); line-height: 22px; letter-spacing: var(--track-04); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-fact-v {
  max-height: calc(2 * 1em); font-family: var(--font-display); font-size: var(--fs-34); line-height: 1; text-transform: uppercase; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.pv-fact-s { height: 24px; margin-top: 4px; font-size: var(--fs-16); line-height: 24px; color: var(--sep-panel-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-fact-chev { flex: none; width: 24px; height: 24px; color: var(--ink); }
.pv-fact-chev svg { transition: transform var(--dur-1, 160ms) ease; }
.pv-fact-chev.is-up svg { transform: rotate(-90deg); }

/* ── a fact card's panel ── */
.pv-panel { --pv-tone: var(--chart-2); flex: none; display: flex; flex-direction: column; gap: 14px; padding: 16px 26px 20px; }
.pv-panel-head { display: flex; align-items: center; gap: 18px; min-width: 0; height: 40px; }
.pv-panel-tag { flex: none; height: 30px; padding: 0 16px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--pv-tone) 55%, var(--sep-panel-fill)); font-family: var(--font-display); font-size: var(--fs-18); line-height: 30px; letter-spacing: var(--track-04); text-transform: uppercase; color: var(--ink); }
.pv-panel-hl { flex: 1 1 auto; min-width: 0; font-family: var(--font-display); font-size: var(--fs-32); line-height: 1.1; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-x { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.pv-x:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pv-panel-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pv-steps { display: grid; grid-template-columns: repeat(var(--pv-n), minmax(0, 1fr)); gap: 36px; }
.pv-step { position: relative; display: flex; align-items: center; gap: 14px; height: 68px; box-sizing: border-box; padding: 0 16px 0 10px; min-width: 0; border-radius: var(--r-md); background: color-mix(in srgb, var(--chart-3) 30%, var(--sep-panel-fill)); }
.pv-step + .pv-step::before { content: ""; position: absolute; left: -36px; width: 36px; top: 50%; height: 2px; background: var(--blue); }
.pv-step-n, .pv-tile .pv-step-n { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue); color: var(--ink-on-dark); font-family: var(--font-display); font-size: var(--fs-24); }
.pv-step-t { min-width: 0; display: flex; flex-direction: column; }
.pv-step-h { font-family: var(--font-display); font-size: var(--fs-24); line-height: 1.1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.pv-step-s { font-size: var(--fs-15); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.pv-tiles { display: grid; grid-template-columns: repeat(min(var(--pv-n), 12), minmax(0, 1fr)); gap: 8px; }
.pv-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 132px; box-sizing: border-box; padding: 10px 8px; min-width: 0; text-align: center; border-radius: var(--r-md); background: color-mix(in srgb, var(--chart-3) 22%, var(--sep-panel-fill)); }
.pv-tile .pv-step-n { width: auto; height: 26px; border-radius: 0; background: none; color: var(--ink); font-size: var(--fs-26); }
.pv-tile .pv-step-t { align-items: center; width: 100%; }
.pv-tile .pv-step-h { font-size: var(--fs-18); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-tile .pv-step-s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: var(--fs-13); color: var(--sep-panel-ink-muted); }
.pv-months { position: relative; display: grid; grid-template-columns: repeat(min(var(--pv-n), 12), minmax(0, 1fr)); gap: 8px; }
.pv-month { display: flex; flex-direction: column; align-items: center; height: 110px; box-sizing: border-box; overflow: hidden; border-radius: var(--r-md); background: color-mix(in srgb, var(--chart-3) 14%, var(--sep-panel-fill)); text-align: center; }
.pv-month-m { width: 100%; height: 40px; line-height: 40px; background: color-mix(in srgb, var(--chart-3) 34%, var(--sep-panel-fill)); font-family: var(--font-display); font-size: var(--fs-24); text-transform: uppercase; color: var(--ink); }
.pv-month-dot { width: 10px; height: 10px; margin: -5px 0 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chart-3) 34%, var(--sep-panel-fill)); }
.pv-month-t { padding: 0 6px; font-size: var(--fs-16); line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-pchip { height: 36px; padding: 0 18px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--chart-3) 26%, var(--sep-panel-fill)); font-size: var(--fs-16); line-height: 36px; color: var(--ink); white-space: nowrap; }
.pv-plabel { font-family: var(--font-display); font-size: var(--fs-22); text-transform: uppercase; color: var(--ink); }
.pv-ptext { font-size: var(--fs-17); line-height: 1.45; color: var(--ink); }
.pv-lines { display: flex; flex-direction: column; }
.pv-line { padding: 7px 0; font-size: var(--fs-17); line-height: 1.4; color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.pv-line:last-child { border-bottom: none; }
.pv-field { display: flex; align-items: center; gap: 18px; min-width: 0; height: 48px; }
.pv-field-l { flex: none; max-width: 280px; font-family: var(--font-display); font-size: var(--fs-22); text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-field-in { flex: 1 1 auto; min-width: 0; height: 42px; box-sizing: border-box; padding: 0 16px; border: 1px solid var(--input-border); border-radius: var(--r-sm); background: var(--input-bg); color: var(--ink); font: inherit; font-size: var(--fs-17); }
.pv-field-in:focus { outline: 2px solid var(--amber); outline-offset: 0; }
.pv-field-in::placeholder { color: var(--sep-panel-ink-muted); }
.pv-field-s { flex: none; width: 90px; font-size: var(--fs-13); color: var(--sep-panel-ink-muted); }
.pv-field.is-error .pv-field-s { color: var(--danger); }

/* ── the films ── */
.pv-films-h { flex: none; height: 50px; font-family: var(--font-display); font-size: var(--fs-48); line-height: 50px; text-transform: uppercase; color: var(--ink); }
.pv-films { flex: none; display: grid; grid-template-columns: repeat(var(--pv-cols, 4), minmax(0, 1fr)); grid-auto-rows: calc(var(--pv-pic-h) + 142px); gap: var(--pv-gap); }
.pv-film { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 0; overflow: hidden; border: none; font: inherit; text-align: left; cursor: pointer; }
.pv-film:hover { box-shadow: 0 0 0 3px var(--amber), var(--shadow-card); }
.pv-film:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.pv-film-pic { flex: none; display: block; height: var(--pv-pic-h); background: color-mix(in srgb, var(--ink) 14%, var(--sep-panel-fill)); overflow: hidden; }
.pv-film-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
/* no picture of its own: a soft tint of the card's tone and the film's number, large and faint (the picture's size) */
.pv-film-pic.is-empty { --pv-tone: var(--chart-2); display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--pv-tone) 22%, var(--sep-panel-fill)); }
.pv-film-pic.is-green { --pv-tone: var(--chart-1); }
.pv-film-pic.is-gold { --pv-tone: var(--chart-3); }
.pv-film-pic.is-violet { --pv-tone: var(--chart-4); }
.pv-film-ghost { font-family: var(--font-display); font-size: calc(var(--pv-pic-h) * 0.72); line-height: 1; color: color-mix(in srgb, var(--pv-tone) 45%, var(--ink) 14%); opacity: 0.55; user-select: none; }
.pv-film-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 12px; }
.pv-film-h { flex: none; height: 34px; font-family: var(--font-display); font-size: var(--fs-30); line-height: 34px; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-film-n { margin-right: 10px; }
.pv-film-log, .pv-film-facts { flex: none; height: calc(3 * 1.3em); overflow: hidden; font-size: var(--fs-15); line-height: 1.3; color: var(--ink); }
.pv-film-log { height: calc(2 * 1.3em); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-film-facts { display: flex; flex-direction: column; }
.pv-film-fact { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-film-log b, .pv-film-fact b { font-weight: var(--fw-bold); text-transform: uppercase; }
.pv-film-foot { flex: none; height: 26px; margin-top: auto; display: flex; align-items: center; }
.pv-chip { display: inline-block; height: 26px; min-width: 92px; max-width: 180px; box-sizing: border-box; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--fs-13); font-weight: var(--fw-bold); line-height: 26px; letter-spacing: var(--track-06); text-align: center; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, var(--sep-panel-fill)); }
.pv-chip.is-none { visibility: hidden; }
.pv-chip.is-done { background: color-mix(in srgb, var(--ok) 50%, var(--sep-panel-fill)); }
.pv-chip.is-blue { background: color-mix(in srgb, var(--blue-5) 48%, var(--sep-panel-fill)); }
.pv-chip.is-blue2 { background: color-mix(in srgb, var(--blue-5) 30%, var(--sep-panel-fill)); }

/* ── setting it up ── */
.pv-setup { --pv-su-row: 38px; flex: none; display: grid; grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 18px; column-gap: 36px; box-sizing: border-box; padding: 18px 26px 8px; }
.pv-su-h { font-family: var(--font-display); font-size: var(--fs-44); line-height: 1; text-transform: uppercase; color: var(--ink); }
.pv-su-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.pv-su-col + .pv-su-col { padding-left: 36px; border-left: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.pv-su-tag { align-self: flex-start; height: 30px; padding: 0 18px; border-radius: var(--r-pill); font-size: var(--fs-16); font-weight: var(--fw-bold); line-height: 30px; letter-spacing: var(--track-06); text-transform: uppercase; color: var(--ink); }
.pv-su-tag.is-done { background: color-mix(in srgb, var(--ok) 50%, var(--sep-panel-fill)); }
.pv-su-tag.is-left { background: color-mix(in srgb, var(--warn) 55%, var(--sep-panel-fill)); }
.pv-su-list { flex: none; height: calc(var(--pv-su-rows, 6) * var(--pv-su-row)); overflow-y: auto; scrollbar-width: thin; }
.pv-su-row { display: flex; align-items: center; gap: 16px; width: 100%; height: var(--pv-su-row); box-sizing: border-box; padding: 0 12px; border: none; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 0; background: transparent; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.pv-su-row:disabled { cursor: default; }
.pv-su-row:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pv-su-row.is-first { border-radius: var(--r-pill); border-bottom-color: transparent; background: color-mix(in srgb, var(--warn) 32%, transparent); }
.pv-su-ic { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.pv-su-row.is-done .pv-su-ic { color: var(--ok); }
.pv-su-t { min-width: 0; font-size: var(--fs-17); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-su-err { grid-column: 2 / 4; height: 18px; font-size: var(--fs-13); line-height: 18px; color: var(--danger); }

/* ── a film's page ── */
.pv-film-view { display: flex; flex-direction: column; gap: var(--pv-gap); min-width: 0; }
.pv-bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 12px 0 16px; border-radius: var(--r-md); }
.pv-back { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: none; border-radius: var(--r-sm); background: transparent; font: inherit; font-size: var(--fs-18); color: var(--ink); cursor: pointer; }
.pv-back:hover, .pv-arrow:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pv-bar-arrows { display: flex; gap: 10px; }
.pv-arrow { width: 48px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer; }
.pv-arrow:disabled { opacity: 0.35; cursor: default; }
.pv-film-hero { position: relative; flex: none; height: 340px; overflow: hidden; border-radius: var(--r-card); background: color-mix(in srgb, var(--mix-dark) 80%, var(--sep-panel-fill)); box-shadow: 0 0 0 var(--hairline-w, 1px) color-mix(in srgb, var(--ink) 14%, transparent), var(--shadow-card); }
.pv-film-hero-pic { position: absolute; top: 0; right: 0; width: 76%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.pv-film-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--mix-dark) 92%, transparent) 0%, color-mix(in srgb, var(--mix-dark) 80%, transparent) 24%, color-mix(in srgb, var(--mix-dark) 20%, transparent) 46%, transparent 62%); }
.pv-film-hero-t { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; width: 42%; height: 100%; box-sizing: border-box; padding: 26px 36px; color: var(--ink-on-dark); }
.pv-eyebrow { font-family: var(--font-display); font-size: var(--fs-26); text-transform: uppercase; }
.pv-film-title { max-height: calc(2 * 1em); font-family: var(--font-display); font-size: 72px; line-height: 1; text-transform: uppercase; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-film-when { height: 28px; font-size: var(--fs-22); line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-film-when b { font-family: var(--font-display); font-weight: normal; text-transform: uppercase; }
.pv-film-chip { height: 30px; display: flex; align-items: center; }
.pv-film-chip .pv-chip { height: 30px; line-height: 30px; font-size: var(--fs-15); }
.pv-film-logline { font-size: var(--fs-18); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pv-sec { flex: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 22px 18px; box-sizing: border-box; }
.pv-sh { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.pv-sh-t { flex: none; max-width: 100%; font-family: var(--font-display); font-size: var(--fs-34); line-height: 1.05; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-sh-i { min-width: 0; font-size: var(--fs-15); font-style: italic; color: var(--sep-panel-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-text-b { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-18); line-height: 1.4; color: var(--ink); }
.pv-text-b p { margin: 0; }
.pv-row2 { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pv-band { flex: none; display: flex; align-items: center; gap: 24px; min-height: 56px; box-sizing: border-box; padding: 8px 22px; border-radius: var(--r-md); }
.pv-band-h { flex: none; max-width: 40%; padding-right: 24px; border-right: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); font-family: var(--font-display); font-size: var(--fs-30); line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.pv-band-t { min-width: 0; font-size: var(--fs-18); line-height: 1.4; color: var(--ink); }
.pv-strip-row { position: relative; display: grid; grid-template-columns: repeat(var(--pv-cols, var(--pv-n)), minmax(0, 1fr)); }
/* more than 8 steps: rows of 8, no connecting line, each row starts without a divider */
.pv-strip-row.is-wrap { row-gap: 18px; }
.pv-strip-row.is-wrap::before { display: none; }
.pv-strip-row.is-wrap > .pv-strip-it:nth-child(8n + 1) { border-left: none; }
.pv-strip-row::before { content: ""; position: absolute; top: 17px; left: calc(50% / var(--pv-n)); right: calc(50% / var(--pv-n)); height: 3px; background: var(--amber); }
.pv-strip-it { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0 14px; }
.pv-strip-it + .pv-strip-it { border-left: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.pv-strip-n { position: relative; z-index: 1; align-self: center; flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--amber); color: var(--ink-on-amber); font-family: var(--font-display); font-size: var(--fs-22); }
.pv-strip-pic { flex: none; display: block; height: 150px; border-radius: var(--r-sm); overflow: hidden; background: color-mix(in srgb, var(--ink) 12%, var(--sep-panel-fill)); }
.pv-strip-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.pv-strip-h { flex: none; font-family: var(--font-display); font-size: var(--fs-24); line-height: 1.05; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-strip-t { font-size: var(--fs-17); line-height: 1.3; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.pv-strip-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; min-height: 0; }
.pv-strip-foot:empty { display: none; }
.pv-link { padding: 0; border: none; background: none; font: inherit; font-size: var(--fs-16); color: var(--blue); cursor: pointer; }
.pv-link:hover { text-decoration: underline; }
.pv-cards-row { display: grid; grid-template-columns: repeat(var(--pv-n), minmax(0, 1fr)); gap: 12px; }
.pv-pcard { display: flex; min-width: 0; height: 190px; overflow: hidden; border-radius: var(--r-md); background: var(--sep-card-fill); box-shadow: 0 0 0 var(--hairline-w, 1px) color-mix(in srgb, var(--ink) 10%, transparent); }
.pv-pcard-pic { flex: 0 0 56%; display: block; overflow: hidden; }
/* the lead (first person): a wider card with an accent outline, same height */
.pv-cards-row.has-lead { grid-template-columns: minmax(0, 1.6fr) repeat(var(--pv-rest), minmax(0, 1fr)); }
.pv-pcard.is-first { box-shadow: 0 0 0 2px var(--amber); }
.pv-pcard-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.pv-pcard-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 18px; }
.pv-pcard-h { font-family: var(--font-display); font-size: var(--fs-30); line-height: 1.02; text-transform: uppercase; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-pcard-s { font-size: var(--fs-16); line-height: 1.3; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.pv-cards-row.is-many .pv-pcard { flex-direction: column; height: 220px; }
.pv-cards-row.is-many .pv-pcard-pic { flex: 0 0 120px; }
.pv-cards-row.is-many .pv-pcard-t { justify-content: flex-start; padding: 8px 14px; gap: 2px; }
.pv-cards-row.is-many .pv-pcard-h { font-size: var(--fs-22); -webkit-line-clamp: 1; }
.pv-cards-row.is-many .pv-pcard-s { font-size: var(--fs-14); -webkit-line-clamp: 3; }
.pv-cards-row.is-many .pv-pcard.no-pic .pv-pcard-t { justify-content: center; padding: 14px 18px; gap: 8px; }
.pv-cards-row.is-many .pv-pcard.no-pic .pv-pcard-h { font-size: var(--fs-26); -webkit-line-clamp: 2; }
.pv-cards-row.is-many .pv-pcard.no-pic .pv-pcard-s { -webkit-line-clamp: 6; }
.pv-shorts-row { display: grid; grid-template-columns: repeat(var(--pv-n), minmax(0, 1fr)); gap: 16px; }
.pv-short { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r-md); background: var(--sep-card-fill); box-shadow: 0 0 0 var(--hairline-w, 1px) color-mix(in srgb, var(--ink) 10%, transparent); }
.pv-short-pic { flex: none; display: block; height: 150px; overflow: hidden; }
.pv-short-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.pv-short-tag { align-self: center; margin: 10px 0 6px; height: 32px; padding: 0 18px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--amber) 55%, var(--sep-card-fill)); font-family: var(--font-display); font-size: var(--fs-22); line-height: 32px; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.pv-short-parts { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.pv-short-part { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.pv-short-pill { flex: none; height: 24px; padding: 0 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--amber) 45%, var(--sep-card-fill)); font-size: var(--fs-13); font-weight: var(--fw-bold); line-height: 24px; color: var(--ink); }
.pv-short-t { min-width: 0; font-size: var(--fs-15); line-height: 1.35; color: var(--ink); }
.pv-bottom { flex: none; display: grid; grid-template-columns: repeat(var(--pv-n), minmax(0, 1.25fr)) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pv-bottom.no-main { grid-template-columns: minmax(0, 1fr); }
.pv-bottom.no-main .pv-aside { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.pv-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pv-qs-list { display: flex; flex-direction: column; }
.pv-q { position: relative; display: flex; flex-direction: column; padding: 6px 10px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.pv-q:last-child { border-bottom: none; }
.pv-q-row { display: flex; align-items: center; gap: 14px; min-height: 36px; }
.pv-q-t { flex: 1 1 auto; min-width: 0; font-size: var(--fs-17); line-height: 1.3; color: var(--ink); }
.pv-q-btn { flex: none; width: 124px; height: 32px; border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent); border-radius: var(--r-pill); background: transparent; font: inherit; font-size: var(--fs-15); color: var(--ink); cursor: pointer; }
.pv-q-btn.is-next { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 55%, var(--sep-panel-fill)); }
.pv-q-btn.is-done { border-color: color-mix(in srgb, var(--ok) 70%, transparent); background: color-mix(in srgb, var(--ok) 26%, var(--sep-panel-fill)); }
/* the pick / the saved answer: one line in a fixed slot, so answering changes no height (invariant 20) */
.pv-q-sub { height: 22px; box-sizing: border-box; padding: 0 0 0 10px; border-left: 3px solid transparent; font-size: var(--fs-14); line-height: 22px; color: var(--sep-panel-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-q-sub.is-answer { border-left-color: var(--ok); font-size: var(--fs-15); color: var(--ink); background: color-mix(in srgb, var(--ok) 10%, transparent); }
/* the answer box floats over the rows below it (takes no room in the list) */
.pv-q-box { position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 6; display: flex; flex-direction: column; gap: 8px; padding: 10px; box-sizing: border-box; border-radius: var(--r-md); background: var(--panel-raised); box-shadow: 0 0 0 var(--hairline-w, 1px) color-mix(in srgb, var(--ink) 14%, transparent), var(--shadow-card); }
.pv-q-in { width: 100%; height: 96px; box-sizing: border-box; padding: 10px 12px; resize: none; border: 1px solid var(--input-border); border-radius: var(--r-sm); background: var(--input-bg); color: var(--ink); font: inherit; font-size: var(--fs-16); line-height: 1.4; }
.pv-q-in:focus { outline: 2px solid var(--amber); outline-offset: 0; }
.pv-q-box-foot { display: flex; align-items: center; gap: 10px; }
.pv-q-box-foot .media-expand-pill { margin-top: 0; }
.pv-q-err { flex: 1 1 auto; min-width: 0; font-size: var(--fs-13); color: var(--danger); }
.pv-save { height: 32px; padding: 0 20px; border: none; border-radius: var(--r-pill); background: var(--cta-bg); color: var(--cta-ink); font: inherit; font-size: var(--fs-15); font-weight: var(--fw-semi); cursor: pointer; }
.pv-save:disabled { opacity: 0.5; cursor: default; }
.pv-kw { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.pv-kw .pv-sh-t { font-size: var(--fs-30); }
.pv-kw-row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pv-kw-chip { height: 30px; padding: 0 14px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ok) 34%, var(--sep-panel-fill)); font-size: var(--fs-15); line-height: 30px; color: var(--ink); white-space: nowrap; }
.pv-film-hero.is-loading { background: color-mix(in srgb, var(--ink) 12%, var(--sep-panel-fill)); }
/* the Decisions tab: the page as it was, under the slim hero */
.pv-page .pp-board { display: flex; flex-direction: column; min-width: 0; }

/* the phone: one column, the hero smaller */
body[data-ui-tier="s"] .view-page.pv-page { padding: 0 6px 76px; }
body[data-ui-tier="s"] .pv-hero { margin: 0 -6px; height: 200px; }
body[data-ui-tier="s"] .pv-hero-t { padding: 0 16px 14px; }
body[data-ui-tier="s"] .pv-name { font-size: var(--fs-44); }
body[data-ui-tier="s"] .pv-pitch { font-size: var(--fs-14); }
body[data-ui-tier="s"] .pv-facts, body[data-ui-tier="s"] .pv-films { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body[data-ui-tier="s"] .pv-fact { height: 96px; gap: 10px; padding: 0 10px; }
body[data-ui-tier="s"] .pv-fact-ic { width: 44px; height: 44px; }
body[data-ui-tier="s"] .pv-fact-v { font-size: var(--fs-20); }
body[data-ui-tier="s"] .pv-films { --pv-pic-h: 110px; }
body[data-ui-tier="s"] .pv-setup { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; row-gap: 12px; }
body[data-ui-tier="s"] .pv-su-col + .pv-su-col { padding-left: 0; border-left: none; }
body[data-ui-tier="s"] .pv-su-list { flex: none; height: auto; max-height: calc(8 * var(--pv-su-row)); }
body[data-ui-tier="s"] .pv-su-err { grid-column: auto; }
body[data-ui-tier="s"] .pv-steps, body[data-ui-tier="s"] .pv-row2, body[data-ui-tier="s"] .pv-bottom, body[data-ui-tier="s"] .pv-strip-row, body[data-ui-tier="s"] .pv-cards-row, body[data-ui-tier="s"] .pv-shorts-row { grid-template-columns: minmax(0, 1fr); }
body[data-ui-tier="s"] .pv-step + .pv-step::before, body[data-ui-tier="s"] .pv-strip-row::before { display: none; }
body[data-ui-tier="s"] .pv-tiles, body[data-ui-tier="s"] .pv-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-ui-tier="s"] .pv-film-hero-t { width: 100%; }
body[data-ui-tier="s"] .pv-film-title { font-size: var(--fs-44); }
/* (8 Nov 2026, live check) a step with no picture: the same soft tint + faint number as an empty film card, never a grey box;
   up to 10 steps stay on one row (the AoE shot list has 10) */
.pv-strip-pic:has(.pv-strip-ghost) { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--chart-2) 22%, var(--sep-panel-fill)); }
.pv-strip-ghost { font-family: var(--font-display); font-size: 96px; line-height: 1; color: color-mix(in srgb, var(--chart-2) 45%, var(--ink) 14%); opacity: 0.55; user-select: none; }

/* (8 Nov 2026, Hugo's first look) "you've added the header of the project and the title in the page. What are you doing?"
   -> the app's header already names the project: the page's own "Projects >" + name are gone, the photo band carries the
   pitch only (lower). "everything's all the font is too big ... a big chunk of text everywhere" -> every size below is
   about three quarters of the first build. "there's empty space underneath [Setting it up] ... utilize the space" -> the
   setup panel takes the rest of the page's height and its two lists fill it (a long list scrolls inside it). */
.pv-page { --pv-hero-h: 150px; }
.pv-page.is-film { --pv-hero-h: 0px; }
.pv-page.is-film .pv-hero { height: 52px; }
.pv-page.is-film .pv-hero-pic { display: none; }
.pv-hero-t { padding: 0 44px 18px; }
.pv-pitch { font-size: var(--fs-15); line-height: 1.4; }
.pv-fact-l { font-size: var(--fs-14); height: 18px; line-height: 18px; }
.pv-fact-v { font-size: var(--fs-26); }
.pv-fact-s { font-size: var(--fs-13); height: 20px; line-height: 20px; }
.pv-panel-tag { font-size: var(--fs-14); height: 26px; line-height: 26px; }
.pv-panel-hl { font-size: var(--fs-24); }
.pv-step-h { font-size: var(--fs-18); }
.pv-step-s { font-size: var(--fs-13); }
.pv-month-m { font-size: var(--fs-18); height: 32px; line-height: 32px; }
.pv-month-t { font-size: var(--fs-13); }
.pv-pchip { font-size: var(--fs-13); height: 30px; line-height: 30px; }
.pv-plabel, .pv-field-l { font-size: var(--fs-17); }
.pv-ptext, .pv-line, .pv-field-in { font-size: var(--fs-14); }
.pv-films-h { font-size: var(--fs-34); height: 40px; line-height: 40px; }
.pv-films { grid-auto-rows: calc(var(--pv-pic-h) + 118px); }
.pv-film-h { font-size: var(--fs-22); height: 28px; line-height: 28px; }
.pv-film-log, .pv-film-facts { font-size: var(--fs-13); }
.pv-chip { font-size: var(--fs-11); height: 22px; line-height: 22px; min-width: 80px; }
/* the films take the free height (their pictures grow), Setting it up is as tall as its lines (up to 14 a side) */
.pv-films { flex: 1 1 auto; min-height: 0; grid-auto-rows: minmax(calc(var(--pv-pic-h) + 118px), 1fr); }
.pv-film-pic { flex: 1 1 var(--pv-pic-h); min-height: var(--pv-pic-h); height: auto; }
.pv-film-body { flex: none; }
.pv-setup { flex: none; --pv-su-row: 32px; }
.pv-su-h { font-size: var(--fs-34); }
.pv-su-tag { font-size: var(--fs-13); height: 26px; line-height: 26px; }
.pv-su-t { font-size: var(--fs-14); }
.pv-back { font-size: var(--fs-15); }
.pv-eyebrow { font-size: var(--fs-20); }
.pv-film-title { font-size: 56px; }
.pv-film-when { font-size: var(--fs-17); height: 24px; line-height: 24px; }
.pv-film-logline { font-size: var(--fs-15); }
.pv-sh-t { font-size: var(--fs-26); }
.pv-sh-i { font-size: var(--fs-13); }
.pv-text-b, .pv-band-t { font-size: var(--fs-15); }
.pv-band-h { font-size: var(--fs-22); }
.pv-strip-h { font-size: var(--fs-18); }
.pv-strip-t { font-size: var(--fs-13); }

/* (8 Nov 2026) Hugo: "now the header has no place to be really unless it's in Pitches where I have multiple
   briefs/projects": a project without job briefs has no photo band - only a slim row with the Plan | Decisions tabs */
.pv-hero.is-bare { height: 44px; margin-bottom: -6px; border-radius: 0; background: none; }
.pv-hero.is-bare::after, .pv-hero.is-bare .pv-hero-pic, .pv-hero.is-bare .pv-hero-t { display: none; }
.pv-page.is-film .pv-hero.is-bare { height: 44px; }
.pv-hero.is-bare .pv-tabs { top: 2px; right: 0; }
/* (8 Nov 2026) a project with only a few films (one row, is-few) (Evil Ray: 2 products) must not stretch its cards into tall tiles: a
   picture grows to at most 1.6x its base height; the rows stay at the top and Setting it up takes what is left (its
   lists fill the panel and scroll inside it when they are longer) */
.pv-page.is-few .pv-films { flex: none; align-content: start; grid-auto-rows: auto; }
.pv-page.is-few .pv-film-pic { max-height: calc(var(--pv-pic-h) * 1.6); }
.pv-page.is-few:not(.is-film) > .pv-setup { flex: 1 1 auto; min-height: calc(var(--pv-su-rows, 6) * var(--pv-su-row) + 96px); grid-template-rows: minmax(0, 1fr) 18px; }
.pv-page.is-few .pv-setup .pv-su-list { flex: 1 1 auto; height: auto; min-height: 0; }

/* (8 Nov 2026) THE DELIVERABLES CARD: a glass panel between the films and Setting it up; one column per product, one
   fixed-height row per deliverable (number, what, spec, status chip); the chip opens the six statuses in place */
.pv-dl { flex: none; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; padding: 16px 26px 14px; }
.pv-dl-head { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.pv-dl-count { font-size: var(--fs-13); color: var(--sep-panel-ink-muted); white-space: nowrap; }
.pv-dl-err { flex: 1 1 auto; min-width: 0; height: 18px; text-align: right; font-size: var(--fs-13); color: var(--danger); }
.pv-dl-groups { display: grid; grid-template-columns: repeat(var(--pv-dl-cols, 1), minmax(0, 1fr)); column-gap: 36px; }
.pv-dl-group { display: flex; flex-direction: column; min-width: 0; }
.pv-dl-group + .pv-dl-group { padding-left: 36px; border-left: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.pv-dl-gname { height: 30px; font-family: var(--font-display); font-size: var(--fs-20); line-height: 30px; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-dl-row { display: grid; grid-template-columns: 26px minmax(0, 1.2fr) minmax(0, 1fr) 150px; align-items: center; column-gap: 12px; height: 38px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.pv-dl-n { font-family: var(--font-display); font-size: var(--fs-18); color: var(--sep-panel-ink-muted); text-align: center; }
.pv-dl-what { min-width: 0; font-size: var(--fs-14); font-weight: var(--fw-semi); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-dl-spec { min-width: 0; font-size: var(--fs-13); color: var(--sep-panel-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-dl-st { position: relative; display: flex; justify-content: flex-end; }
.pv-dl-chip { width: 150px; height: 26px; padding: 0 10px; border: none; border-radius: var(--r-pill); font: inherit; font-size: var(--fs-11); font-weight: var(--fw-bold); letter-spacing: var(--track-06); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, var(--sep-panel-fill)); }
.pv-dl-chip:disabled { cursor: default; }
.pv-dl-chip:focus-visible, .pv-dl-opt:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.pv-dl-chip.is-in_progress, .pv-dl-opt.is-in_progress { background: color-mix(in srgb, var(--warn) 45%, var(--sep-panel-fill)); }
.pv-dl-chip.is-ready_for_review, .pv-dl-opt.is-ready_for_review { background: color-mix(in srgb, var(--chart-2) 45%, var(--sep-panel-fill)); }
.pv-dl-chip.is-changes_requested, .pv-dl-opt.is-changes_requested { background: color-mix(in srgb, var(--danger) 40%, var(--sep-panel-fill)); }
.pv-dl-chip.is-approved, .pv-dl-opt.is-approved { background: color-mix(in srgb, var(--ok) 45%, var(--sep-panel-fill)); }
.pv-dl-chip.is-delivered, .pv-dl-opt.is-delivered { background: var(--ok); color: var(--sep-panel-fill); }
.pv-dl-menu { position: absolute; z-index: 30; top: 30px; right: 0; display: flex; flex-direction: column; gap: 4px; width: 170px; padding: 6px; border-radius: var(--r-sm); background: var(--panel-raised); box-shadow: var(--shadow-card); }
.pv-dl-opt { height: 28px; padding: 0 10px; border: none; border-radius: var(--r-pill); font: inherit; font-size: var(--fs-11); font-weight: var(--fw-bold); letter-spacing: var(--track-06); text-transform: uppercase; text-align: left; cursor: pointer; color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, var(--sep-panel-fill)); }
.pv-dl-opt.is-on { box-shadow: inset 0 0 0 2px var(--amber); }

/* (8 Nov 2026) THE FILES CARD (documents/job-files.md): the groups as a rail on the left, the open group's files on the
   right, both one fixed height (--pv-jf-rows rows of 38px: at least 8, or as many as there are groups) whichever group
   is open; the list scrolls inside itself. The Open / Folder / View slots are .jf-acts (styles/review.css). */
.pv-jf { flex: none; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; padding: 16px 26px 16px; }
.pv-jf-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 24px; height: calc(var(--pv-jf-rows, 8) * 38px); }
.pv-jf-rail { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; padding-right: 12px; border-right: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.pv-jf-tab {
  flex: none; display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; column-gap: 8px; height: 34px; padding: 0 10px;
  border: none; border-radius: var(--r-sm); font: inherit; text-align: left; cursor: pointer; color: var(--ink); background: transparent;
}
.pv-jf-tab:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pv-jf-tab.is-on { background: color-mix(in srgb, var(--ink) 12%, var(--sep-panel-fill)); box-shadow: inset 3px 0 0 var(--amber); }
.pv-jf-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.pv-jf-tab-t { min-width: 0; font-size: var(--fs-14); font-weight: var(--fw-semi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-jf-tab-n { font-size: var(--fs-12); text-align: right; color: var(--sep-panel-ink-muted); }
.pv-jf-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; }
.pv-jf-row {
  flex: none; display: grid; grid-template-columns: 62px minmax(0, 1.3fr) minmax(0, 1fr) 96px 70px 222px; align-items: center; column-gap: 12px;
  height: 38px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.pv-jf-row.is-off .pv-jf-label, .pv-jf-row.is-off .pv-jf-name { opacity: 0.55; }
.pv-jf-kind {
  height: 22px; border-radius: var(--r-xs); font-size: var(--fs-11); font-weight: var(--fw-bold); letter-spacing: var(--track-06); line-height: 22px; text-align: center;
  color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, var(--sep-panel-fill)); white-space: nowrap; overflow: hidden;
}
.pv-jf-kind.is-psd { background: color-mix(in srgb, var(--chart-2) 40%, var(--sep-panel-fill)); }
.pv-jf-kind.is-pdf { background: color-mix(in srgb, var(--danger) 30%, var(--sep-panel-fill)); }
.pv-jf-kind.is-image, .pv-jf-kind.is-video { background: color-mix(in srgb, var(--ok) 32%, var(--sep-panel-fill)); }
.pv-jf-kind.is-scene, .pv-jf-kind.is-glb, .pv-jf-kind.is-cad, .pv-jf-kind.is-mesh { background: color-mix(in srgb, var(--warn) 38%, var(--sep-panel-fill)); }
.pv-jf-label { min-width: 0; font-size: var(--fs-14); font-weight: var(--fw-semi); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-jf-note { font-weight: normal; color: var(--sep-panel-ink-muted); }
.pv-jf-name { min-width: 0; font-size: var(--fs-13); color: var(--sep-panel-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-jf-date, .pv-jf-size { font-size: var(--fs-13); color: var(--sep-panel-ink-muted); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
/* (8 Nov 2026) Hugo: "Why is there the fifth card overlapping the deliverables?" The films grid was flex 1 1 auto with
   min-height: 0, so with 5+ films and the Deliverables card it shrank below its own rows and the second row spilled over
   the next panel. A grid never shrinks below its content (the page scrolls instead). */
.pv-page:not(.is-film) > .pv-films { min-height: min-content; flex-shrink: 0; }
