/* edit-states.css - the Editing screen as a process (web/edit-states.js; Grady, 2026-11-06: "make it look just like Format Finder").
   One yellow (#f7c429), cream, near-black, Montserrat 900 for the headline (fonts.css), pill buttons; no gradient, no glow, no blobs
   and no mascot while this screen is up. Every move is transform or opacity (selfcheck-screens.js). */
.es { --y: #f7c429; margin: 12px 0; padding: 16px; border-radius: 18px; background: #ffffff; border: 1px solid #0000001a; color: #0a0a0a; }
.es-head { display: flex; justify-content: space-between; align-items: center; }
.es-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5a554d; }
.es-kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--y); vertical-align: 1px; }
.es-pct { font-variant-numeric: tabular-nums; font-weight: 700; }
.es-bar { height: 6px; margin: 10px 0 14px; border-radius: 99px; background: #eee9de; overflow: hidden; }
.es-fill { display: block; width: 100%; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.es-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.es-row { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #8f8a83; }
.es-check { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d9d3c5; }
.es-row.on { color: #0a0a0a; }
.es-row.on .es-check { border-color: #27ae60; background: #27ae60; animation: es-pop .35s var(--ease-out); }
.es-row.on .es-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.es-line { margin: 12px 0 0; font-size: .9rem; color: #5a554d; }
/* the done state: the poster in a phone-shaped box with the black pill over it */
.es-stage { position: relative; width: min(100%, 220px); aspect-ratio: 9 / 16; margin: 14px auto 0; border-radius: 16px; overflow: hidden; background: #111; animation: es-in .3s var(--ease-out); }
.es-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.es-pill { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: #0a0a0a; color: #fff; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.es-done { position: relative; height: 36px; margin: 14px 0 0; animation: es-in .3s var(--ease-out); }   /* the pill alone: a draft shows no poster */
.es-done .es-pill { bottom: 0; }
.es-h1 { font-family: Montserrat, Inter, sans-serif; font-weight: 900; letter-spacing: -.02em; background: none; color: #0a0a0a; -webkit-text-fill-color: #0a0a0a; }
/* the page under it: flat cream, no edge glow, no blobs, the one button yellow, the timeline's own chips off (the card says them)
   (Grady, 11-06: one yellow; the gradient reads as AI) */
body.es-plain::after { display: none; }
html:has(body.es-plain) { background: #f8f6f1; }
html:has(body.es-plain)::before { display: none; }
/* the one main button is the one yellow, flat, since the Format Finder pass of 2026-11-07 (style.css button.primary) */
body.es-plain .ed-build .ed-steps { display: none; }
body.es-plain .ed-build:not(:has(.ed-build-lane > *)) { display: none; }   /* the timeline only once the worker has laid a clip in */
/* the drop state (film-end.js): the takes as chips in a dashed box, the one yellow pill */
.cap .cap-end.es-end { background: #f8f6f1; color: #0a0a0a; }
.es-say { margin: 0; text-align: center; font-family: Montserrat, Inter, sans-serif; font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; }
.es-drop { border: 2px dashed #c9c2b2; border-radius: 18px; padding: 14px; text-align: center; font-weight: 700; }
.es-takes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.es .es-takes { justify-content: flex-start; margin: -4px 0 12px; }
.es-chip { padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line-strong); font-size: .8rem; font-weight: 700; color: #0a0a0a; }
.cap .es-end .cap-chip { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }   /* the shot list's chip, on the page's own colours */
.cap .es-end .cap-name { border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--ink); }   /* the Cut name box was cream on cream here (2026-11-13) */
@keyframes es-pop { from { transform: scale(.6); } }
@keyframes es-in { from { opacity: 0; transform: scale(.96); } }
@media (prefers-color-scheme: dark) {
  .es { background: #1a1816; border-color: #2a2724; color: #f3efe6; } .es-row.on { color: #f3efe6; } .es-bar { background: #2a2724; } .es-check { border-color: #3a362f; }
  html:has(body.es-plain) { background: #121110; } .cap .cap-end.es-end { background: #121110; color: #f3efe6; } .es-chip { background: #121110; color: #f3efe6; }
  .es-h1 { color: #f3efe6; -webkit-text-fill-color: #f3efe6; }
}
@media (prefers-reduced-motion: reduce) { .es *, .es-stage { animation: none !important; transition: none !important; } }
