/* The Producer side: its own palette, a production office at night. A green-black ground, white paper
   for the pages, and bright green only where something is greenlit or go. Green is also a revision color
   and the EXT. night strip color, so it never fills a big surface. The current revision's color stays
   the accent. Its values are in tokens.css on body.producer. Everything here is typed: no legal pad, cork or handwriting. */
.producer {
  background: var(--desk);
  font-family: var(--font-ui);
}

.producer .toolbar { background: var(--desk-light); border-bottom: 1px solid var(--producer-line); box-shadow: none; }
.producer .toolbar .button--quiet:hover:not(:disabled) { background: var(--producer-raise); }
.producer .title-page__heading { font-weight: 700; }

/* The switch between the sides. */
.producer .modes { background: var(--desk); border-color: var(--producer-line); }
.producer .modes a { font: 600 0.85rem var(--font-ui); letter-spacing: 0; text-transform: none; }

/* On the Writer side of a production script, a thin strip in the revision color is the only production chrome. */
.toolbar__revision-strip { position: absolute; inset: auto 0 -1px; height: 3px; background: var(--revision-color); pointer-events: none; }

/* Under the Producer toolbar: where the script stands, in the current revision's color. */
.band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0.6rem 16px;
  background: var(--revision-color, var(--typed-paper));
  color: var(--typed-ink);
  font: 0.85rem var(--font-typed);
  letter-spacing: 0.04em;
}

/* The Producer's read: the numbers on a sheet, and the greenlight beside them. */
.read { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.75rem; max-width: 76rem; margin: 0 auto; }
.read__sheet { flex: 999 1 36rem; min-width: 0; width: auto; }
.read__kicker, .read__label {
  margin: 0;
  color: var(--sheet-soft);
  font: 700 0.75rem var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.read__kicker { color: var(--go-ink); }
.read__label { margin-top: 1.5rem; margin-bottom: 0.4rem; }

.read__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 1rem 0 0; }
.read__stat { display: flex; flex-direction: column-reverse; gap: 0.15rem; padding: 0.85rem 1rem; border: 1px solid var(--sheet-rule); border-radius: 8px; background: var(--field); }
.read__stat dt { color: var(--sheet-soft); font-size: 0.8rem; font-weight: 600; }
.read__stat dd { margin: 0; font: 700 1.8rem/1.1 var(--font-typed); }
.read__stat dd small { font-size: 0.6em; }
.read__stat--days { border-color: var(--primary-on-paper); background: var(--primary-on-paper); color: var(--primary-on-paper-ink); }
.read__stat--days dt { color: var(--primary-on-paper-ink); }
.read__stat--days dd { color: var(--signal); }
@container (max-width: 34rem) { .read__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pace { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px; background: var(--sheet-tint); font-weight: 600; }
.pace__stepper { display: inline-flex; align-items: center; border: 1px solid var(--sheet-ink); border-radius: 999px; overflow: hidden; }
.pace__step { display: grid; place-items: center; width: 2.75rem; height: 2.5rem; color: var(--sheet-ink); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.pace__step:hover { background: var(--sheet-rule); }
.pace__stepper output { min-width: 2.2em; text-align: center; font: 700 1.1rem var(--font-typed); }
.pace__note { color: var(--sheet-soft); font-size: 0.85rem; font-weight: 400; }

.split { display: flex; height: 1.75rem; overflow: hidden; border: 1px solid #111; border-radius: 6px; }
.split__part { display: flex; align-items: center; flex: 0 0 calc(var(--share) * 1%); min-width: 0; padding-left: 0.6rem; background: var(--typed-paper); color: #111; font: 700 0.8rem var(--font-typed); white-space: nowrap; overflow: hidden; }
.split__part--ext { background: #fff59d; }
.split__part--night { background: #1f2a44; color: #fff; }

.read__flags { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.read__flags li { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.75rem 0.9rem; border: 1px solid var(--sheet-rule); border-radius: 6px; background: var(--sheet-tint); }
.read__flags b { flex: none; min-width: 2.4em; font: 700 1.25rem var(--font-typed); }

.read__tables { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.read__table-wrap { flex: 3 1 20rem; min-width: 0; }
.read__table-wrap + .read__table-wrap { flex: 2 1 13rem; }
.read__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.read__table th, .read__table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--sheet-rule); text-align: left; font-weight: 400; }
.read__table thead th { border-bottom: 2px solid var(--sheet-ink); color: var(--sheet-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.read__table .report__number { text-align: right; font-family: var(--font-typed); white-space: nowrap; }

.greenlight {
  position: relative;
  flex: 1 1 19rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  padding: 2.25rem 1.75rem 1.75rem;
  border: 1px solid var(--producer-line);
  border-radius: 8px;
  background: var(--desk-light);
  color: var(--chrome);
  font-family: var(--font-ui);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
}
.greenlight::before { content: ""; position: absolute; inset: 0 0 auto; height: 1rem; background: repeating-linear-gradient(-45deg, var(--typed-paper) 0 1rem, #111 1rem 2rem); }
.greenlight__kicker { margin: 0; color: var(--signal); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.greenlight__heading { margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.greenlight__steps { display: grid; gap: 0.6rem; margin: 0; padding: 0 0 0 1.4rem; line-height: 1.45; }
.greenlight__steps li::marker { color: var(--signal); font-weight: 700; }
.greenlight__warning { margin: 0; padding: 0.85rem 1rem; border: 1px solid var(--producer-line); border-radius: 8px; background: var(--producer-raise); line-height: 1.5; }
.greenlight .button.greenlight__button { justify-content: center; width: 100%; min-height: 3.25rem; border-color: var(--signal); background: var(--signal); color: var(--signal-ink); font: 700 1.05rem var(--font-ui); }
.greenlight form.button_to, .greenlight__form { display: grid; gap: 0.5rem; }
.greenlight__form label { color: var(--chrome-muted); font-size: 0.85rem; }
.greenlight__later { align-self: center; color: var(--chrome-muted); }
.taken { margin: 0; color: var(--chrome-muted); font-size: 0.85rem; }
.title-page .taken { color: var(--sheet-soft); }

/* The greenlight moment: a big slate claps, the green light comes on, the room flashes green and
   settles to a faint glow, and the GREENLIT stamp lands. It plays once. */
.moment { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; overflow: hidden; min-height: calc(100dvh - 4rem); padding-top: 3.5rem; }
.moment__flash { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 25%, rgb(61 220 132) 0%, rgb(61 220 132 / 0.35) 40%, transparent 75%); opacity: 0.16; pointer-events: none; animation: moment-flash 2.4s ease-out 1 both; }
.moment__scene { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.25rem; width: min(56rem, 100%); }
.moment__lamp { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.moment__housing { display: grid; place-items: center; width: 8.25rem; height: 8.25rem; border: 6px solid #2a2f2c; border-radius: 50%; background: #0b0f0d; box-shadow: 0 10px 24px rgb(0 0 0 / 0.6); }
.moment__lens { width: 6rem; height: 6rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 50px 14px rgb(61 220 132 / 0.55), inset 0 -6px 14px rgb(0 0 0 / 0.25); animation: moment-lamp 2s ease-out 1 both; }
.moment__lamp-label { color: var(--chrome-muted); font: 700 0.8rem var(--font-typed); letter-spacing: 0.2em; }

.slate { position: relative; flex: 0 1 37.5rem; min-width: 0; }
.slate__arm { height: 4rem; border: 4px solid #111; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(-60deg, var(--typed-paper) 0 2.25rem, #111 2.25rem 4.5rem); transform-origin: 0.5rem 100%; animation: slate-clap 1.4s cubic-bezier(0.3, 0.7, 0.2, 1) 1 both; }
.slate__board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem 0; padding: 1.4rem 1.6rem 1.75rem; border: 4px solid #111; border-top: 0; background: #111; color: #b9b9b9; font: 700 0.85rem var(--font-typed); letter-spacing: 0.12em; box-shadow: 0 18px 40px rgb(0 0 0 / 0.55); }
.slate__title { grid-column: 1 / -1; color: var(--typed-paper); font: 3rem/1.1 "Permanent Marker", var(--font-hand); letter-spacing: 0; overflow-wrap: anywhere; }
.slate__cell { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.6rem 0.9rem; border-left: 2px solid var(--typed-paper); }
.slate__cell span { color: var(--typed-paper); font: 1.9rem "Permanent Marker", var(--font-hand); letter-spacing: 0; }
.slate__stamp { position: absolute; right: -1.1rem; bottom: -1.6rem; padding: 0.5rem 1.25rem; border: 5px solid var(--signal); border-radius: 8px; background: rgb(10 14 12 / 0.9); color: var(--signal); font: 700 2.4rem var(--font-typed); letter-spacing: 0.18em; transform: rotate(-8deg); animation: slate-stamp 1.8s ease-out 1 both; }

.moment__card { position: relative; width: min(45rem, 100%); animation: moment-rise 2.2s ease-out 1 both; }
.moment__done { display: grid; gap: 0.6rem; margin: 0.5rem 0 1.25rem; padding: 0; list-style: none; }
.moment__done li::before { content: "✓"; margin-right: 0.75rem; color: #1d7a43; font-weight: 700; }
.moment__card .button.moment__open { justify-content: center; width: 100%; min-height: 3.25rem; font-size: 1.05rem; }

@keyframes slate-clap { 0%, 50% { transform: rotate(-24deg); } 62% { transform: rotate(2deg); } 70% { transform: rotate(-1.5deg); } 78%, 100% { transform: rotate(0); } }
@keyframes moment-flash { 0%, 40% { opacity: 0; } 48% { opacity: 0.75; } 100% { opacity: 0.16; } }
@keyframes moment-lamp {
  0%, 40% { background: #16301f; box-shadow: inset 0 4px 10px rgb(0 0 0 / 0.7); }
  46% { background: #eafff2; box-shadow: 0 0 90px 40px rgb(61 220 132 / 0.9); }
  100% { background: var(--signal); box-shadow: 0 0 50px 14px rgb(61 220 132 / 0.55), inset 0 -6px 14px rgb(0 0 0 / 0.25); }
}
@keyframes slate-stamp { 0%, 58% { opacity: 0; transform: rotate(-8deg) scale(1.8); } 72% { opacity: 1; transform: rotate(-8deg) scale(0.94); } 80%, 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes moment-rise { 0%, 70% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .moment__flash, .moment__lens, .slate__arm, .slate__stamp, .moment__card { animation: none; }
}

/* The top sheet: what changed and what it touches, the first-run list, and the doors to the tools. */
.top-sheet { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.75rem; max-width: 76rem; margin: 0 auto; }
.top-sheet__main { flex: 999 1 34rem; min-width: 0; display: grid; gap: 1.5rem; }
.top-sheet__main .title-page { width: auto; }
.top-sheet__side { flex: 1 1 18rem; display: grid; gap: 1.5rem; justify-items: stretch; }
.top-sheet__facts { display: grid; gap: 0.5rem; margin: 0.5rem 0 0; }
.top-sheet__facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.top-sheet__facts dt { color: var(--sheet-soft); font-weight: 600; }
.top-sheet__facts dd { margin: 0; font-family: var(--font-typed); }

.checklist { padding: 1.75rem 1.9rem; border-radius: 8px; background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 18px 40px rgb(0 0 0 / 0.35); }
.checklist__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.checklist__heading { margin: 0; font-size: 1.45rem; }
.checklist__count { font: 700 0.95rem var(--font-typed); }
.checklist__progress { height: 0.5rem; margin: 0.75rem 0 0.5rem; overflow: hidden; border-radius: 999px; background: var(--sheet-rule); }
.checklist__progress span { display: block; height: 100%; background: var(--go); }
.checklist__steps { margin: 0; padding: 0; list-style: none; }
.checklist__step { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.85rem 0; border-top: 1px solid var(--sheet-rule); }
.checklist__tick { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 2px solid var(--sheet-ink); border-radius: 6px; color: var(--go-ink); font-weight: 700; }
.checklist__what { flex: 1 1 auto; display: grid; gap: 0.15rem; }
.checklist__what span { color: var(--sheet-soft); font-size: 0.92rem; }
.checklist__step--done strong { color: var(--sheet-soft); text-decoration: line-through; text-decoration-color: var(--go-ink); }
.checklist__go { flex: none; align-self: center; color: var(--go-ink); font-weight: 700; }
.checklist__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.85rem; border-top: 1px solid var(--sheet-rule); color: var(--sheet-soft); font-size: 0.85rem; }
.checklist__footer .button--quiet { color: var(--go-ink); border-color: var(--sheet-line); font-family: var(--font-ui); }

/* The shooting script as a bound stack on the top sheet: a true US Letter page (8.5 × 11), its
   thickness showing the revision pages' colored edges, and two brads in the top and bottom holes
   with the middle hole empty, the way scripts are bound. */
.stack { position: relative; display: block; width: min(20rem, 100%); margin: 0 auto 1.5rem; container-type: inline-size; color: var(--typed-ink); text-decoration: none; }
.stack__page { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; aspect-ratio: 8.5 / 11; padding: 34% 12% 0 17.6%; background: var(--typed-paper); font-family: var(--font-typed); text-align: center; box-shadow: 0 18px 40px rgb(0 0 0 / 0.5); }
.stack__title { font-size: 6cqi; font-weight: 700; text-decoration: underline; }
.stack__byline { margin-top: 4cqi; font-size: 4.5cqi; }
.stack__label { margin-top: auto; margin-bottom: 9%; font-size: 4cqi; }
.stack__edge { position: absolute; transform-origin: 0 0; background:
  repeating-linear-gradient(var(--edge-angle), transparent 0 1.5px, rgb(0 0 0 / 0.14) 1.5px 2px),
  linear-gradient(var(--edge-angle), var(--revision-color, #fffffb) 0 2px, #fffffb 2px 4px, #cfe3ff 4px 5px, #fffffb 5px 7px, var(--revision-color, #fffffb) 7px 8px, #fffffb 8px 11px, #cfe3ff 11px 12px, #fffffb 12px 14px); }
.stack__edge--side { --edge-angle: 90deg; top: 0; left: 100%; width: 14px; height: 100%; transform: skewY(45deg); filter: brightness(0.88); }
.stack__edge--foot { --edge-angle: 180deg; top: 100%; left: 0; width: 100%; height: 14px; transform: skewX(45deg); filter: brightness(0.72); }
.stack__brad, .stack__hole { position: absolute; z-index: 2; left: calc(100cqi / 8.5 * 0.42); width: calc(100cqi / 8.5 * 0.3); aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; }
.stack__brad { background: radial-gradient(circle at 35% 30%, #fbe7a1, #c9962f 55%, #7a5714); box-shadow: 0 1px 2px rgb(0 0 0 / 0.6); }
.stack__brad--top { top: calc(100cqi / 8.5 * 1.25); }
.stack__hole { top: calc(100cqi / 8.5 * 5.5); background: var(--desk); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.7); }
.stack__brad--bottom { top: calc(100cqi / 8.5 * 9.75); }
.stack__open { position: absolute; z-index: 2; left: 50%; bottom: 30%; translate: -50% 0; padding: 0.4rem 0.9rem; border-radius: 6px; background: var(--desk); color: var(--chrome); font: 600 0.9rem var(--font-ui); white-space: nowrap; opacity: 0; transition: opacity 150ms; }
.stack:is(:hover, :focus-visible) .stack__open { opacity: 1; }

.doors { display: grid; gap: 0.5rem; }
.doors__door { display: grid; gap: 0.1rem; padding: 0.85rem 1rem; border: 1px solid var(--producer-line); border-radius: 8px; background: var(--desk-light); color: var(--chrome); text-decoration: none; }
.doors__door:hover { background: var(--producer-raise); }
.doors__door span { color: var(--chrome-muted); font-size: 0.85rem; }
.back-to-writing { width: auto; padding: 1.25rem 1.4rem; }
.back-to-writing .button--quiet { color: var(--sheet-ink); border-color: var(--sheet-ink); font-family: var(--font-ui); }

/* The shooting script: typed pages, read-only. */
.shooting-script { display: flex; justify-content: center; }

/* The import form's question: writing this, or producing it? */
.door { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; border: 0; }
.door__choice { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.8rem 0.9rem; border: 2px solid var(--sheet-rule); border-radius: 8px; cursor: pointer; line-height: 1.45; }
.door__choice:has(input:checked) { border-color: var(--sheet-ink); background: var(--sheet-tint); }
.door__choice input { flex: none; margin-top: 0.25rem; accent-color: var(--sheet-ink); color-scheme: var(--paper-scheme); }
.door__choice strong { display: block; }

/* Where the pages stand: the revision in progress, edged in its color, and the way to issue it. */
.issue { display: grid; gap: 0.6rem; margin: 1.25rem 0; padding: 1rem 1.15rem; border: 1px solid var(--sheet-line); border-left: 6px solid var(--revision-color, var(--sheet-line)); border-radius: 8px; background: var(--field); color: var(--sheet-ink); }
.issue__heading { margin: 0; font: 700 1.1rem/1.3 var(--font-ui, inherit); }
.issue__note { margin: 0; color: var(--sheet-soft); font-size: 0.95rem; line-height: 1.5; }
.issue__form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.issue__label { font-weight: 600; font-size: 0.95rem; }
.issue__form input[type="date"] { min-height: 44px; }
.issue__button { min-height: 44px; }
.top-sheet__waiting { margin: 0; font-weight: 600; }
.issue__form input[type="date"] { padding: 0 0.6rem; border: 1px solid var(--sheet-line); border-radius: 6px; background: var(--field); color: var(--sheet-ink); color-scheme: var(--paper-scheme); font: 1rem var(--font-ui); }
.top-sheet__main > .issue { margin: 0; box-shadow: 0 18px 40px rgb(0 0 0 / 0.35); }
.producer .issue .button:not(.button--quiet) { border-color: var(--desk); background: var(--desk); color: var(--chrome); font-family: var(--font-ui); }

/* Bringing in a new draft: what it changes, on the typed pages, with each scene's match beside its label. */
.incoming { display: grid; justify-items: center; gap: 2rem; }
.incoming__count { margin: 0.25rem 0 0.75rem; font: 600 1rem/1.4 var(--font-ui, inherit); }
.incoming__summary .title-page__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.incoming__pages .comparison__label { font-family: var(--font-ui, system-ui); letter-spacing: normal; }
.incoming__match { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem;
  margin: 0.4em 0 1em; font: 0.8rem/1.3 var(--font-ui, system-ui); letter-spacing: normal; color: var(--sheet-soft); }
.incoming__match select { max-width: min(22rem, 100%); font: inherit; padding: 0.3rem 0.4rem; border: 1px solid var(--sheet-line); border-radius: 6px; background: var(--field); color: var(--sheet-ink); }
.incoming__match .button { font: 600 0.8rem/1.2 var(--font-ui, system-ui); color: var(--sheet-ink); border-color: var(--sheet-ink); }
:is(.title-page, .sheet-part) > .button.new-draft__link { justify-self: start; }

/* The stripboard (P6). Strips in Movie Magic Scheduling's colors on a raised board, each day closed by a
   grey end-of-day strip, the scenes not scheduled yet underneath. Strips are typed, in Courier Prime. */
.strip--int-day { --strip: #fffffb; }
.strip--ext-day { --strip: #fff59d; }
.strip--int-night { --strip: #c8ecae; }
.strip--ext-night { --strip: #bfe2f6; }
.strip--morning { --strip: #f9c6d6; }
.strip--evening { --strip: #fbcf9a; }
.strip--omitted { --strip: #d9d9d9; }
.strip--banner { --strip: #e9e2f5; }

.stripboard-page { display: flex; flex-direction: column; gap: 1.1rem; width: min(74rem, 100%); margin: 0 auto; padding: 1.75rem 16px 3.5rem; box-sizing: border-box; color: var(--chrome); }
.stripboard-page__header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; }
.stripboard-page__heading { margin: 0; font: 700 1.75rem/1.2 var(--font-ui); }
.stripboard-page__summary { margin: 0.35rem 0 0; color: var(--chrome-muted); font-size: 0.95rem; }
.stripboard-page__actions, .stripboard-page__sorts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.stripboard-page__sorts span { color: var(--chrome-muted); font-size: 0.9rem; }
.stripboard-page__sorts [aria-current] { background: var(--chrome); color: var(--desk); }
.stripboard-page .button { font-family: var(--font-ui); }
.stripboard-page__flagged { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.75rem 0.9rem; border: 1px solid var(--revision-color); border-radius: 8px; background: var(--desk-light); }
.stripboard-page__flagged p { flex: 1 1 20rem; margin: 0; }
.stripboard-page__key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0; padding: 0; list-style: none; color: var(--chrome-muted); font-size: 0.85rem; }
.stripboard-page__key li { display: flex; align-items: center; gap: 0.5rem; }
.stripboard-page__key i { width: 22px; height: 14px; border: 1px solid rgb(0 0 0 / 0.5); background: var(--strip); }
.stripboard-page__hint { margin-left: auto; }
.stripboard-page__hint a, .stripboard-page__flagged a { color: var(--chrome); }
.stripboard-page__empty { margin: 0; padding: 1rem; border: 1px dashed var(--producer-line); border-radius: 8px; color: var(--chrome-muted); }
.stripboard-page__banner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.stripboard-page__banner input, .stripboard-page__banner select { min-height: 2.5rem; font: 1rem var(--font-ui); }
.stripboard-page__waiting { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.stripboard-page__waiting .title-page__label { margin: 0; color: var(--chrome-muted); }

.stripboard, .strips--waiting { border: 8px solid var(--producer-raise); border-radius: 6px; background: var(--producer-raise); }
.strips { min-height: 2.75rem; margin: 0; padding: 0; list-style: none; }
.strips--waiting { min-height: 3rem; }

.strip {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 3.25rem 7.5rem minmax(0, 1fr) 3.75rem 8.5rem auto;
  align-items: center;
  gap: 0.6rem 0.9rem;
  min-height: 2.75rem;
  padding: 0.2rem 0.6rem 0.2rem 0.5rem;
  border-bottom: 1px solid rgb(0 0 0 / 0.22);
  background: var(--strip);
  color: #111;
  font: 0.95rem "Courier Prime", monospace;
}
.strip--flagged { box-shadow: inset 6px 0 0 color-mix(in srgb, var(--revision-color) 60%, #000); }
.strip__grip { color: rgb(0 0 0 / 0.5); font: 1rem/1 var(--font-ui); letter-spacing: -2px; cursor: grab; touch-action: none; user-select: none; }
.strip__number { font-weight: 700; }
.strip__set { min-width: 0; }
.strip__set > b, .strip__what { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.strip__what { color: #3d3d3d; font-size: 0.82rem; }
.strip__pages { text-align: right; }
.strip__banner { grid-column: 2 / 7; font-weight: 700; letter-spacing: 0.08em; text-align: center; }
.strip__flag { display: inline-block; padding: 0.05rem 0.4rem; border: 1px solid rgb(0 0 0 / 0.35); border-radius: 3px; background: var(--revision-color); color: #111; font: 700 0.7rem var(--font-ui); letter-spacing: 0.04em; vertical-align: 1px; }
.strip--ghost { opacity: 0.4; }
.strip--dragging { box-shadow: 0 8px 24px rgb(0 0 0 / 0.45); }

.strip__move { position: relative; font-family: var(--font-ui); }
.strip__move summary { padding: 0.35rem 0.5rem; border-radius: 4px; color: #333; font-size: 0.8rem; font-weight: 600; cursor: pointer; list-style: none; }
.strip__move summary::-webkit-details-marker { display: none; }
.strip__move summary:hover { background: rgb(0 0 0 / 0.08); }
.strip__moves { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: flex; flex-direction: column; gap: 0.4rem; width: max-content; min-width: 14rem; padding: 0.75rem; border: 1px solid var(--producer-line); border-radius: 8px; background: var(--desk-light); color: var(--chrome); box-shadow: 0 12px 30px rgb(0 0 0 / 0.45); }
.strip__moves p { margin: 0; }
.strip__moves .button { width: 100%; }
.strip__to { display: flex; gap: 0.4rem; }
.strip__to select { flex: 1 1 auto; min-height: 2.5rem; font: 0.95rem var(--font-ui); }
.strip__to .button { width: auto; }

.end-of-day { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.45rem 0.85rem; background: #9a9a9a; color: #000; font: 700 0.9rem "Courier Prime", monospace; letter-spacing: 0.06em; }
.end-of-day + .strips { border-top: 8px solid var(--producer-raise); }
.end-of-day__settings { position: relative; font-family: var(--font-ui); letter-spacing: 0; }
.end-of-day__settings summary { padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.8rem; cursor: pointer; list-style: none; }
.end-of-day__settings summary::-webkit-details-marker { display: none; }
.end-of-day__settings[open] { display: flex; flex-direction: column; gap: 0.5rem; flex-basis: 100%; padding: 0.5rem 0; }
.end-of-day__form { display: grid; gap: 0.35rem; max-width: 26rem; font-weight: 500; }
.end-of-day__form input, .end-of-day__form textarea { font: 1rem var(--font-ui); }
.end-of-day__notes { flex-basis: 100%; margin: 0; font: 400 0.85rem var(--font-ui); letter-spacing: 0; }
.end-of-day__sides { padding: 0.25rem 0.5rem; border-radius: 4px; color: #000; font: 600 0.8rem var(--font-ui); letter-spacing: 0; }
.end-of-day__sides:hover, .end-of-day__settings summary:hover { background: rgb(0 0 0 / 0.12); }

/* Sides: choose a day or scenes, whose, and the size, then print. */
.sides-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; align-items: start; }
.sides-form__part { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--producer-line); border-radius: 8px; background: var(--desk-light); }
.sides-form__part legend { padding: 0 0.35rem; font-weight: 700; }
.sides-form__choice { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 2.75rem; padding: 0.45rem 0.6rem; border: 1px solid var(--producer-line); border-radius: 6px; background: var(--producer-raise); cursor: pointer; }
.sides-form__choice:has(:checked) { border-color: var(--signal); }
.sides-form__choice input { margin-top: 0.25rem; accent-color: var(--signal); }
.sides-form__choice span { display: flex; flex-direction: column; min-width: 0; }
.sides-form__choice small, .sides-form__note { color: var(--chrome-muted); font-size: 0.85rem; }
.sides-form__note { margin: 0; }
.sides-form__note a { color: var(--chrome); }
.sides-form__label { margin-top: 0.25rem; font-size: 0.9rem; }
.sides-form select, .sides-form input[type=text] { min-height: 2.75rem; width: 100%; box-sizing: border-box; font: 1rem var(--font-ui); }
.sides-form__scenes summary { padding: 0.35rem 0; color: var(--chrome-muted); cursor: pointer; }
.sides-form__scenes ul { max-height: 22rem; overflow-y: auto; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.sides-form__scenes label { display: flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; font: 0.9rem "Courier Prime", monospace; cursor: pointer; }
.sides-form__number { flex: none; min-width: 2.5rem; font-weight: 700; }
.sides-form__go { grid-column: 1 / -1; }

/* On a phone a strip takes two lines: number, set and pages, then INT/EXT, time and cast. */
@media (max-width: 40rem) {
  .strip { grid-template-columns: 1rem 2.6rem auto minmax(0, 1fr) auto auto; grid-template-areas: "grip number set set pages move" "grip number when cast cast move"; gap: 0 0.5rem; min-height: 3.5rem; }
  .strip__grip { grid-area: grip; }
  .strip__number { grid-area: number; }
  .strip__set { grid-area: set; }
  .strip__when { grid-area: when; font-size: 0.8rem; }
  .strip__pages { grid-area: pages; font-weight: 700; }
  .strip__cast { grid-area: cast; font-size: 0.8rem; text-align: right; }
  .strip__move { grid-area: move; }
  .strip__what { display: none; }
  .strip__banner { grid-column: 2 / 6; grid-row: 1 / 3; }
  .stripboard-page__hint { margin-left: 0; }
}

/* The day-out-of-days, with the cast list beside it. */
.dood-page { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.75rem; width: min(74rem, 100%); margin: 0 auto; padding: 1.75rem 16px 3.5rem; box-sizing: border-box; color: var(--chrome); }
.dood-page__cast { flex: 1 1 18rem; max-width: 24rem; margin: 0; }
.dood-page__report { flex: 999 1 36rem; min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.dood-page__report a { color: var(--chrome); }
.dood-page__members { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.dood-page__members li { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0.25rem 0; border-top: 1px solid var(--sheet-rule); font-family: "Courier Prime", monospace; }
.dood-page__who { min-width: 0; }
.dood-page__who span { display: block; color: var(--sheet-soft); font-size: 0.8rem; }
.dood-page .button { font-family: var(--font-ui); }
.dood-page__renumber { display: flex; gap: 0.3rem; }
.dood-page__renumber { flex: none; }
.title-page .dood-page__renumber input { width: 3.5rem; padding: 0.2rem; min-height: 2.25rem; font: 700 1rem "Courier Prime", monospace; text-align: center; }
.dood-page__renumber .button { padding: 0.2em 0.5em; color: var(--sheet-ink); border-color: var(--sheet-line); font-size: 0.8rem; }
.dood { overflow-x: auto; padding: 0.75rem; border-radius: 8px; background: #fffffb; }
.dood__table { width: 100%; border-collapse: collapse; color: #111; font: 0.85rem "Courier Prime", monospace; }
.dood__table th, .dood__table td { height: 2.1rem; padding: 0 0.4rem; border: 1px solid #cfc9bc; text-align: center; white-space: nowrap; }
.dood__table thead th { background: #f3f0e8; font-size: 0.75rem; line-height: 1.2; }
.dood__table tbody th { text-align: left; }
.dood__solid { background: #111; color: #fff; font-weight: 700; }

/* Cast and crew, and who has the latest pages. */
.crew-page .title-page { margin: 0; }
.crew-page .guest .button { min-height: 2.75rem; }
.crew-invite select, .crew-invite input[type=email] { min-height: 2.75rem; width: 100%; max-width: 28rem; box-sizing: border-box; font: 1rem var(--font-ui); }
.pages-out__list { margin: 0; padding-left: 1.2rem; }
.pages-out__list li { padding: 0.15rem 0; }

/* A production paused without a plan: what still works and what waits, on the top sheet. */
.paused { border-top: 4px solid var(--signal); }
.paused__lists { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.paused__lists > div { flex: 1 1 14rem; }
.paused__list { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; line-height: 1.4; }
.paused__list li { display: flex; gap: 0.6rem; }
.paused__list i { flex: none; width: 1.1rem; font-style: normal; font-weight: 700; color: var(--go-ink); }
.paused__list--waits i { color: var(--sheet-muted); }
.paused__waiting { margin: 1rem 0 0; padding: 0.75rem 1rem; border-left: 6px solid var(--revision-color, #ccc); border-radius: 6px; background: var(--sheet-tint); line-height: 1.45; }
.paused__exports { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 1rem 0 0; }
.paused__exports span { color: var(--sheet-soft); font-size: 0.9rem; }
.paused__hear { flex: none; margin-bottom: 1rem; }
.issue__button[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Cast and crew on a laptop: the people beside the form to invite more. */
@media (min-width: 64rem) {
  .crew-page { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; column-gap: 1.75rem; }
  .crew-page > .stripboard-page__header { grid-column: 1 / -1; }
  .crew-page > .title-page { width: auto; }
}
