/* start.css: the Start stage (Movie door) on the CoS kit. Page-only classes are st-. */
.st-work { gap: 10px; }
.st-hello { flex: none; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.st-hello h2 { font: 600 28px/1.05 var(--cond); }
.st-hello p { color: var(--text-2); font-size: 14.5px; }
.st-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr); gap: 12px; }
.st-pane { min-height: 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-screen); display: flex; flex-direction: column; overflow: hidden; }

/* three ways in */
.st-ways { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 12px 0; }
.st-way { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); min-width: 0; }
.st-way b { font: 600 15px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.st-way span { font-size: 12.5px; color: var(--text-2); line-height: 1.3; }
.st-way:hover { border-color: var(--accent-line); }
.st-way[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.st-box { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 12px 0; }
.st-box textarea { flex: 1; min-height: 0; resize: none; font: 400 17px/1.6 var(--ui); padding: 12px 14px; }
.st-box-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.st-box-tools input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.st-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; }
.st-bar .st-count { font-size: 14px; color: var(--text-2); flex: 1; }
.st-bar .st-count b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.st-bar .btn.primary { height: 42px; padding: 0 20px; font-size: 15px; }

/* drop a video */
.st-vdrop { flex: 1; min-height: 0; border: 1.5px dashed var(--faint); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; color: var(--text-2); }
.st-vdrop.sf-over { border-color: var(--accent); background: var(--accent-soft); }
.st-vdrop h3 { font: 600 20px var(--cond); color: var(--text); }
.st-vdrop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.st-va { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.st-va-file { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.st-va-file img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: #000; }
.st-va-file b { display: block; font-size: 15px; word-break: break-all; }
.st-va-file small { color: var(--text-2); font-size: 13px; }
.st-va h4 { font: 600 14px var(--ui); color: var(--text); display: flex; gap: 8px; align-items: center; }
.st-va ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.st-va li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: baseline; font-size: 14px; padding: 5px 8px; border-radius: 8px; background: var(--bg-2); }
.st-va li i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-va li span { color: var(--text-2); }
.st-va li em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.st-va .st-who { font-size: 14px; color: var(--text-2); }

/* the plan */
.st-plan-in { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.st-ph { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.st-ph h3, .st-plan-h h3 { font: 600 20px var(--cond); color: var(--text); }
.st-ph ul { margin: 6px 0 0 18px; }
.st-choices { font-size: 13.5px; color: var(--text-2); line-height: 1.45; padding: 8px 10px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.st-choices b { color: var(--text); font-weight: 600; }
.st-plan-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-plan-h .sf-grow { flex: 1; }
.st-rows { display: flex; flex-direction: column; gap: 3px; }
.st-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 8px; background: var(--bg-2); font-size: 13.5px; line-height: 1.35; }
.st-row > b { font-weight: 600; color: var(--text); }
.st-row > span { color: var(--text-2); }
.st-row > strong { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; font-size: 14px; }
.st-row.st-over > strong { color: var(--need); }
.st-row .st-capnote { display: block; color: var(--need); font-size: 12px; }
.st-stop { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 8px; border: 1px dashed var(--accent-line); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.st-stop::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); flex: none; }
.st-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 2px 0; border-top: 1px solid var(--line-soft); }
.st-total span { color: var(--text-2); font-size: 13.5px; }
.st-total b { font: 600 26px var(--cond); font-variant-numeric: tabular-nums; }
.st-approve { height: 46px; font-size: 15.5px; width: 100%; }
.st-fine { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* the auto-film run view */
.st-run-rows { display: flex; flex-direction: column; gap: 4px; }
.st-rr { display: grid; grid-template-columns: 22px 74px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px; background: var(--bg-2); font-size: 13.5px; }
.st-rr > i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--faint); display: inline-block; }
.st-rr[data-state="run"] > i { border-color: var(--run); border-top-color: transparent; animation: sfspin .8s linear infinite; }
.st-rr[data-state="done"] > i { border-color: var(--done); background: var(--done); }
.st-rr[data-state="stop"] > i { border-color: var(--accent); background: var(--accent); border-radius: 3px; }
.st-rr > b { font-weight: 600; }
.st-rr .st-rr-t { color: var(--text-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-rr .st-bar2 { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.st-rr .st-bar2 > span { display: block; height: 100%; width: 0; background: var(--run); transition: width .15s linear; }
.st-rr[data-state="done"] .st-bar2 > span { background: var(--done); }
.st-rr > strong { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.st-stopcard { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.st-stopcard h3 { font: 600 20px var(--cond); color: var(--text); }
.st-stopcard p { font-size: 14px; color: var(--text); line-height: 1.45; }
.st-stopcard .sf-row .btn { height: 40px; }
.st-spent { font-size: 14px; color: var(--text-2); }
.st-spent b { color: var(--text); font-variant-numeric: tabular-nums; }

/* panel bits */
.st-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.st-pick button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 4px; border-radius: 17px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font: 500 13px var(--ui); }
.st-pick button img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.st-pick button.st-noimg { padding-left: 10px; }
.st-pick button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.st-sub { font: 600 13px var(--ui); color: var(--text); margin: 4px 0 6px; }
.st-sub + .st-pick { margin-top: 0; }
.st-sep { height: 1px; background: var(--line-soft); margin: 10px 0; }
.st-how { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.4; }
.st-grid { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.st-grid .st-gr { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px; align-items: center; margin: 0; }
.st-grid .st-gr .sf-lab { margin: 0; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; color: var(--text-2); font-size: 13px; }
.st-grid .st-gr .sf-filled { margin-left: 0; }
.st-grid select.sf-field, .st-grid input.sf-field { height: 30px; padding: 0 6px; font-size: 12.5px; }
.st-grid label { color: var(--text-2); }
.st-capsum { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.st-capsum b { color: var(--text); }
.st-engsaid { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.4; }
.st-engsaid:empty { display: none; }

@media (max-width: 1100px) { .st-panes { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); } .st-way span { display: none; } }
@media (max-width: 760px) {
  .st-hello { display: none; }
  .st-panes { grid-template-columns: minmax(0, 1fr); }
  .st-panes .st-plan { display: none; }
  .st-panes.st-show-plan .st-plan { display: flex; }
  .st-panes.st-show-plan .st-words { display: none; }
  .st-ways { padding: 8px 8px 0; gap: 5px; }
  .st-way { padding: 6px 8px; }
  .st-way b { font-size: 13px; white-space: normal; }
  .st-way span { display: none; }
  .st-box { padding: 8px 8px 0; }
  .st-box textarea { font-size: 15px; }
  .st-bar { padding: 8px; }
  .st-plan-in { padding: 10px; }
  .st-row { grid-template-columns: 60px 1fr auto; font-size: 12.5px; }
  .st-rr { grid-template-columns: 18px 60px 1fr auto; font-size: 12.5px; }
}

/* 20:00: approved state; hands-on fits (who/where collapses, engines one per row, caps two per row) */
.st-approvedbox { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--done); background: var(--done-soft); }
.st-approved { font-size: 14.5px; color: var(--text); }
.st-approved b { font-weight: 600; }
.st-whosum { display: none; width: 100%; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 500 13.5px var(--ui); text-align: left; }
.st-whosum #whoSum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-whomore { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
html[data-sf-mode="handson"] .st-whosum { display: flex; }
html[data-sf-mode="handson"] #gWho:not(.st-open) .st-whobody { display: none; }
html[data-sf-mode="handson"] #gWho.st-open .st-whobody { margin-top: 8px; }
html[data-sf-mode="handson"] #gHow .st-how { display: none; }
#engGrid { gap: 7px; }
.st-er { margin: 0; }
.st-er .sf-lab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-bottom: 3px; color: var(--text-2); font-size: 12.5px; }
.st-er .sf-lab b { color: var(--text); font-weight: 600; font-size: 13px; }
.st-er .st-engcap { color: var(--muted); font-size: 12px; }
.st-er .sf-filled { margin-left: 0; }
.st-er select.sf-field { height: 30px; font-size: 13px; }
#capGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.st-cr { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 62px; align-items: center; gap: 6px; }
.st-cr + .st-cr { margin-top: 0; }
.st-cr .sf-lab { margin: 0; font-size: 12.5px; color: var(--text-2); display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.st-cr .sf-filled { margin-left: 0; height: 15px; font-size: 10px; padding: 0 5px; }
.st-cr input.sf-field { height: 28px; padding: 0 6px; font-size: 13px; }

/* the way back from the Assistant: a large, plain Close (CTO/QA 20:00) */
.sf-assist .sf-as-close { height: 40px; font-size: 15px; font-weight: 600; padding: 0 16px; border-color: var(--accent-line); }

/* hands-on fit at 1440×900: format rows inline; one line per engine label; the caps fold to their total */
.st-er .sf-lab { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.st-er .st-engcap { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.st-er .sf-filled { order: 3; flex: none; height: 16px; font-size: 10.5px; padding: 0 6px; }
.st-capsum-b { display: flex; margin-bottom: 4px; }
#gCap .st-capsum { margin-top: 4px; }
.st-checks-b { display: flex; margin-top: 2px; }
#engChecks { display: flex; flex-direction: column; gap: 7px; }
#gFormat { position: relative; }
#gFormat .st-fmtmark { position: absolute; right: 14px; top: 14px; margin: 0; }
#gFormat .sf-fld { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 6px; margin: 0; }
#gFormat .sf-fld + .sf-fld { margin-top: 6px; }
#gFormat .sf-lab { margin: 0; }
#engGrid { gap: 5px; }
.st-er select.sf-field { height: 28px; }
.st-next { font-size: 13px; color: var(--text); line-height: 1.4; padding: 6px 9px; border-left: 3px solid var(--run); background: var(--run-soft); border-radius: 0 8px 8px 0; }
.st-way b { white-space: normal; }
.st-plan-in > * { flex: none; }
.st-total span { flex: 1; min-width: 0; }
.st-total b { white-space: nowrap; }
