/* ============================================================
   .plan.shock — app-specific styles
   Loads AFTER shock.css + suite-app.css. Only the bits the shared
   app shell doesn't already provide: the engine banner, shot-list
   rows, booking tables, priority + release chips, budget tracker,
   the printable call sheet, and per-tab rail summary.
   ============================================================ */

/* ---------- engine / suggestion note banner ---------- */
.plan-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-left: 3px solid var(--info);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.45;
}
.plan-note b { color: var(--text); font-weight: 600; }
.plan-note__icon { color: var(--info); flex-shrink: 0; margin-top: 1px; }

/* ---------- section head inside the scroll ---------- */
.plan-sechead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.plan-sechead h2 { font-size: 17px; margin: 0; }
.plan-sechead p { color: var(--dim); font-size: 12px; margin: 2px 0 0; max-width: 60ch; }
.plan-sechead__spacer { flex: 1 1 auto; }

/* ---------- project setup form — POLISH: improved dialog spacing --------- */
.plan-form { max-width: 720px; }
.plan-form .app-field { margin-bottom: 22px; }
.plan-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .plan-form .row2 { grid-template-columns: 1fr; } }
.plan-sect-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--faint); margin: 28px 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--app-line);
}
.plan-sect-title:first-child { margin-top: 0; }
.plan-hint { font-size: 12px; color: var(--faint); margin-top: 8px; line-height: 1.5; }

/* ---------- chips (priority + release status + approval) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: default;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
/* priority */
.chip--must   { color: var(--reject); border-color: rgba(200,7,10,.45);  background: rgba(200,7,10,.12); }
.chip--should { color: var(--unsure); border-color: rgba(217,166,10,.4); background: rgba(217,166,10,.10); }
.chip--nice   { color: var(--info);   border-color: rgba(74,143,255,.4); background: rgba(74,143,255,.10); }
/* release status */
.chip--signed   { color: var(--pick);   border-color: rgba(63,185,80,.4);  background: rgba(63,185,80,.10); }
.chip--awaiting { color: var(--unsure); border-color: rgba(217,166,10,.4); background: rgba(217,166,10,.10); }
.chip--draft    { color: var(--info);   border-color: rgba(74,143,255,.4); background: rgba(74,143,255,.10); }
.chip--none     { color: var(--faint);  border-color: var(--app-line);     background: var(--app-surface2); }
/* booking confirmation */
.chip--confirmed { color: var(--pick);   border-color: rgba(63,185,80,.4);  background: rgba(63,185,80,.10); }
.chip--pending   { color: var(--unsure); border-color: rgba(217,166,10,.4); background: rgba(217,166,10,.10); }
/* plain type chip (no dot) */
.chip--type { color: var(--dim); border-color: var(--app-line); background: var(--app-surface2); }
.chip--type::before { display: none; }
/* a chip rendered as a button (clickable toggle) */
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--line2); }

/* ---------- generic data table — POLISH: refined hover & selection --------- */
.plan-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plan-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--faint); font-weight: 600; padding: 0 10px 8px; border-bottom: 1px solid var(--app-line);
}
.plan-table td { padding: 9px 10px; border-bottom: 1px solid var(--app-line); vertical-align: middle; color: var(--text); transition: background-color .12s; }
.plan-table tr {
  transition: background-color .12s;
}
.plan-table tr:hover td {
  background: rgba(var(--accent-rgb, 99, 102, 241), 0.06);
}
.plan-table tr:hover td:first-child {
  background: linear-gradient(90deg, var(--accent) 3px, rgba(var(--accent-rgb, 99, 102, 241), 0.06) 3px);
  padding-left: 7px;
}
.plan-table tr.is-selected td { background: var(--app-surface2); border-left: 3px solid var(--accent); padding-left: 7px; }
.plan-table .num { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.plan-table .muted { color: var(--dim); }
.plan-table .actions { white-space: nowrap; text-align: right; }
.plan-table tfoot td { border-bottom: none; padding-top: 12px; font-weight: 700; }

/* ---------- shot list rows — POLISH: enhanced interaction states --------- */
.shot-list { display: flex; flex-direction: column; gap: 6px; }
.shot-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
  position: relative;
}
.shot-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 6px 0 0 6px;
  transition: background-color .15s;
}
.shot-row:hover {
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb, 99, 102, 241), 0.04);
}
.shot-row:hover::before { background-color: var(--accent); }
.shot-row.is-selected { border-color: var(--info); box-shadow: 0 0 0 2px var(--info); }
.shot-row__n { font-family: var(--font-mono); color: var(--faint); font-size: 12px; text-align: center; }
.shot-row__main { min-width: 0; }
.shot-row__title { font-size: 13px; color: var(--text); line-height: 1.4; }
.shot-row__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.shot-row__tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 1px 7px; border-radius: 3px; border: 1px solid var(--app-line); color: var(--dim);
}
.shot-row__tag.on-model { color: var(--info); border-color: rgba(74,143,255,.4); }
.shot-row__tag.on-loc   { color: var(--pick); border-color: rgba(63,185,80,.4); }
.shot-row__acts { display: flex; gap: 4px; align-items: center; }

/* row action icon-buttons */
.ico-btn {
  background: none; border: 1px solid transparent; color: var(--dim); border-radius: var(--radius);
  padding: 3px 8px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.ico-btn:hover { color: var(--text); border-color: var(--app-line); background: var(--app-surface2); }
.ico-btn.danger:hover { color: var(--reject); border-color: rgba(200,7,10,.4); }
.ico-btn[disabled] { opacity: .3; pointer-events: none; }

/* ---------- empty card inside a tab ---------- */
.plan-empty-card {
  text-align: center; color: var(--dim);
  border: 1px dashed var(--app-line); border-radius: 10px;
  padding: 36px 28px; background: var(--app-surface);
}
.plan-empty-card p { margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.plan-empty-card__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- budget tracker ---------- */
.budget-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--app-surface); border: 1px solid var(--app-line);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 16px;
}
.budget-bar__big { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--text); }
.budget-bar__big small { font-size: 13px; color: var(--dim); font-weight: 400; }
.budget-bar__track { flex: 1 1 160px; height: 8px; background: var(--app-surface2); border-radius: 4px; overflow: hidden; min-width: 120px; }
.budget-bar__fill { height: 100%; background: var(--pick); border-radius: 4px; transition: width .3s var(--ease); }
.budget-bar__fill.over { background: var(--reject); }
.budget-bar__state { font-family: var(--font-mono); font-size: 12px; }
.budget-bar__state.under { color: var(--pick); }
.budget-bar__state.over  { color: var(--reject); }

/* ---------- coverage line (releases tab) ---------- */
.cov-line {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--app-surface); border: 1px solid var(--app-line);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 16px;
}
.cov-line__big { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--text); }
.cov-line__big small { font-size: 13px; color: var(--dim); font-weight: 400; }
.cov-line__track { flex: 1 1 160px; height: 8px; background: var(--app-surface2); border-radius: 4px; overflow: hidden; min-width: 120px; }
.cov-line__fill { height: 100%; background: var(--pick); border-radius: 4px; transition: width .3s var(--ease); }

/* ---------- rail per-tab summary ---------- */
.plan-summary { padding: 0 10px 8px; }
.plan-summary__row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--app-line); }
.plan-summary__row .k { color: var(--faint); }
.plan-summary__row .v { color: var(--text); font-family: var(--font-mono); }
.plan-summary__row:last-child { border-bottom: none; }

/* ---------- inspector bits ---------- */
.insp-kv { font-family: var(--font-mono); font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.insp-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--app-line); }
.insp-kv .k { color: var(--faint); }
.insp-kv .v { color: var(--text); text-align: right; word-break: break-word; }
.insp-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.2; }
.insp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.insp-notes { background: var(--app-surface2); border: 1px solid var(--app-line); border-radius: 5px; padding: 10px 12px; font-size: 13px; color: var(--dim); margin-bottom: 14px; line-height: 1.45; }

/* ---------- CALL SHEET — printable ---------- */
.callsheet { max-width: 820px; margin: 0 auto; }
.callsheet__masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--app-line); padding-bottom: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.callsheet__masthead h2 { font-size: 22px; margin: 0; }
.callsheet__masthead .sub { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.callsheet__block { margin-bottom: 22px; }
.callsheet__block h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); border-bottom: 1px solid var(--app-line); padding-bottom: 6px; margin: 0 0 10px; }
.callsheet__row { display: grid; grid-template-columns: 160px 1fr; gap: 4px 16px; font-size: 13px; padding: 3px 0; }
.callsheet__row .k { color: var(--dim); }
.callsheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
.callsheet th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 4px 8px; border-bottom: 1px solid var(--app-line); }
.callsheet td { padding: 6px 8px; border-bottom: 1px solid var(--app-line); color: var(--text); }
.callsheet td.app-mono { font-family: var(--font-mono); }

@media print {
  html.app-mode, html.app-mode body { height: auto; overflow: visible; }
  .app-topbar, .app-rail, .app-toolbar, .app-footbar, .app-toasts, .app-inspector,
  .app-dialog, #cs-toolbar, .plan-note { display: none !important; }
  body.app-body { background: #fff; color: #111; display: block; height: auto; }
  .app-body-grid { display: block; }
  .app-main, .app-scroll { display: block; overflow: visible; background: #fff; padding: 0; }
  .callsheet { color: #111; }
  .callsheet__masthead, .callsheet__block h3, .callsheet th, .callsheet td,
  .callsheet__row { border-color: #bbb; color: #111; }
  .callsheet__masthead .sub, .callsheet__row .k, .callsheet th { color: #555; }
  .chip { color: #333 !important; border-color: #999 !important; background: none !important; }
  .callsheet__foot { color: #555 !important; border-color: #bbb !important; }
}

/* ── unification touches: drag-to-open, live engine pill ── */
.app-empty.is-dragover { outline: 2px dashed var(--red); outline-offset: -10px; border-radius: var(--radius); }
.app-empty.is-dragover .app-dropzone { border-color: var(--red); background: rgba(200, 7, 10, .06); }
.app-engine--on { border-color: rgba(34, 197, 94, .4); color: var(--text); }
.app-engine--on .app-engine__dot { box-shadow: 0 0 6px rgba(34, 197, 94, .7); }

/* ── #1 undo toast ── */
.app-toast--action { display: flex; align-items: center; gap: 12px; }
.app-toast__action { background: none; border: 1px solid var(--app-line); color: var(--red); font: inherit; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius); cursor: pointer; }
.app-toast__action:hover { background: rgba(200, 7, 10, .1); border-color: var(--red); }

/* ── #2 drag-to-reorder ── */
.drag-grip { cursor: grab; opacity: .35; font-size: 12px; user-select: none; padding: 0 2px; }
.drag-grip:active { cursor: grabbing; }
.shot-row.is-dragging, tr.is-dragging { opacity: .45; }
.shot-row.drag-over { box-shadow: inset 0 2px 0 var(--red); }
tr.drag-over td { box-shadow: inset 0 2px 0 var(--red); }

/* ── #3 mobile nav toggles + scrim ── */
.app-nav-toggle { display: none; }
.app-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 35; }
.app-scrim[hidden] { display: none; }
@media (max-width: 960px) { .app-nav-toggle { display: inline-flex; } }

/* ── #5 inspector cross-app line ── */
.insp-xref { font-size: 11px; color: var(--dim); margin: -4px 0 10px; display: flex; flex-direction: column; gap: 3px; }

/* ── #7 rail filter ── */
.app-rail__filter { width: calc(100% - 28px); margin: 0 14px 8px; padding: 6px 9px; font-size: 12px; background: var(--app-bg); color: var(--text); border: 1px solid var(--app-line); border-radius: var(--radius); }
.app-rail__filter:focus { outline: none; border-color: var(--red); }

/* ── shot reference images ── */
.shot-row__ref { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--app-line); flex: none; }
.shot-ref { display: flex; align-items: center; gap: 10px; }
.shot-ref img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--app-line); }
.shot-ref-drop { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 10px; font-size: 12px; color: var(--dim); border: 1px dashed var(--app-line); border-radius: 8px; cursor: pointer; }
.shot-ref-drop:hover, .shot-ref-drop.is-dragover { border-color: var(--red); color: var(--text); background: rgba(200, 7, 10, .05); }
.callsheet .cs-ref { width: 40px; height: 28px; object-fit: cover; border-radius: 4px; vertical-align: middle; border: 1px solid var(--app-line); }
@media print { .callsheet .cs-ref { width: 48px; height: 32px; } }

/* ── shot type badges ── */
.shot-type-video { background: rgba(0, 115, 230, .12); color: #0073e6; }
.shot-type-broll { background: rgba(0, 168, 107, .12); color: #00a86b; }
.shot-type-interview { background: rgba(139, 92, 246, .12); color: #8b5cf6; }
.shot-look { background: rgba(236, 72, 153, .10); color: #ec4899; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── permit status chips ── */
.permit-chip { display: inline-block; font-size: 10px; font-family: var(--font-mono); padding: 1px 5px; border-radius: 3px; margin-left: 5px; vertical-align: middle; background: var(--app-surface); border: 1px solid var(--app-line); }
.permit-chip.permit-required { background: rgba(239, 68, 68, .12); color: #ef4444; border-color: rgba(239, 68, 68, .3); }
.permit-chip.permit-applied { background: rgba(245, 158, 11, .12); color: #d97706; border-color: rgba(245, 158, 11, .3); }
.permit-chip.permit-ok { background: rgba(0, 168, 107, .12); color: #00a86b; border-color: rgba(0, 168, 107, .3); }

/* ── client approval stages ── */
.approval-stages { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; max-width: 720px; margin-bottom: 18px; }
@media (max-width: 620px) { .approval-stages { grid-template-columns: 1fr; } }
.approval-stage { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.approval-stage__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 600; }
.approval-stage__sel { font-size: 12px; background: var(--app-bg); color: var(--text); border: 1px solid var(--app-line); border-radius: var(--radius); padding: 4px 6px; }
.approval-stage__date { font-size: 12px; background: var(--app-bg); color: var(--text); border: 1px solid var(--app-line); border-radius: var(--radius); padding: 4px 6px; font-family: var(--font-mono); }

/* ── pre-production checklist ── */
.prep-tasks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.prep-task { display: flex; align-items: center; gap: 10px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 6px; padding: 8px 12px; }
.prep-task__text { flex: 1; font-size: 13px; }
.prep-task__text.done { text-decoration: line-through; color: var(--dim); }
.prep-task__due { font-size: 11px; font-family: var(--font-mono); color: var(--faint); white-space: nowrap; }
.prep-task__del { margin-left: auto; flex-shrink: 0; }

/* ── mood board grid ── */
.mood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-width: 720px; margin-bottom: 18px; }
.mood-cell { position: relative; border-radius: 8px; overflow: hidden; background: var(--app-surface); border: 1px solid var(--app-line); aspect-ratio: 3/2; }
.mood-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mood-cell__del { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 14px; line-height: 22px; text-align: center; cursor: pointer; padding: 0; }
.mood-cell--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; border: 1px dashed var(--app-line); font-size: 20px; color: var(--dim); aspect-ratio: 3/2; }
.mood-cell--add:hover { border-color: var(--red); color: var(--text); background: rgba(200, 7, 10, .04); }

/* ── itemized budget ── */
.text-over { color: #ef4444; }

/* ── day-of schedule ── */
.schedule-list { display: flex; flex-direction: column; gap: 6px; max-width: 720px; margin-bottom: 18px; }
.schedule-block { display: flex; align-items: center; gap: 12px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 6px; padding: 8px 14px; font-size: 13px; }
.schedule-time { font-family: var(--font-mono); font-size: 13px; min-width: 52px; color: var(--text); }
.schedule-dur { font-family: var(--font-mono); font-size: 11px; color: var(--faint); min-width: 44px; }
.schedule-desc { flex: 1; }
.schedule-acts { display: flex; gap: 4px; margin-left: auto; }

/* ── plan-sect-title used outside the form ── */
.plan-sect-outside { margin-top: 22px; }

/* ── call-sheet run-of-show print ── */
@media print { .approval-stages, .prep-tasks, .mood-grid, .schedule-acts, .dood-wrap p { display: none; } }

/* ── shot row new tags ── */
.shot-row__tag.shot-intExt { background: rgba(99,102,241,.15); color: #6366f1; border: 1px solid rgba(99,102,241,.3); }
.shot-row__tag.shot-dn { background: rgba(16,185,129,.12); color: #059669; border: 1px solid rgba(16,185,129,.3); }
.shot-row__tag.shot-dn--night, .shot-row__tag.shot-dn--twilight { background: rgba(99,102,241,.15); color: #6366f1; border-color: rgba(99,102,241,.3); }
.shot-row__tag.shot-dn--golden { background: rgba(245,158,11,.15); color: #d97706; border-color: rgba(245,158,11,.3); }
.shot-row__tag.shot-setup { background: rgba(14,165,233,.12); color: #0284c7; border: 1px solid rgba(14,165,233,.3); }
.shot-row__tag.shot-license { background: rgba(139,92,246,.12); color: #7c3aed; border: 1px solid rgba(139,92,246,.3); }
.shot-row__tag.shot-arc { background: rgba(6,182,212,.12); color: #0891b2; border: 1px solid rgba(6,182,212,.3); }
.shot-row__tag.shot-risk { background: rgba(239,68,68,.12); color: #dc2626; border: 1px solid rgba(239,68,68,.3); font-weight: 600; }

/* ── story arc checker ── */
.arc-checker { max-width: 720px; margin-bottom: 18px; }
.arc-grid { display: flex; gap: 10px; margin-bottom: 8px; }
.arc-cell { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border: 1px solid; }
.arc-cell span { font-size: 18px; font-weight: 700; }
.arc-ok { background: rgba(0,168,107,.1); color: #00a86b; border-color: rgba(0,168,107,.25); }
.arc-miss { background: rgba(239,68,68,.08); color: #dc2626; border-color: rgba(239,68,68,.2); }
.arc-hint { font-size: 12px; color: var(--dim); margin: 0; }
.arc-hint--ok { color: #059669; }

/* ── shoot days chips ── */
.shootdays-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shootday-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 20px; padding: 4px 10px; font-size: 12px; font-family: var(--font-mono); }
.shootday-del { background: none; border: none; cursor: pointer; color: var(--dim); font-size: 14px; line-height: 1; padding: 0; }
.shootday-del:hover { color: var(--red); }

/* ── revision history ── */
.rev-list { display: flex; flex-direction: column; gap: 4px; max-width: 720px; margin-bottom: 18px; }
.rev-item { display: flex; align-items: baseline; gap: 12px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 6px; padding: 7px 12px; font-size: 13px; }
.rev-ts { font-family: var(--font-mono); font-size: 11px; color: var(--faint); white-space: nowrap; flex-shrink: 0; }
.rev-note { flex: 1; color: var(--text); }

/* ── golden hour calculator ── */
.gh-result { margin-top: 4px; }
.gh-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.gh-grid > div { display: flex; flex-direction: column; gap: 2px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 8px; padding: 10px 14px; min-width: 110px; }
.gh-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.gh-val { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--text); }

/* ── DOOD matrix ── */
.dood-wrap { max-width: 720px; overflow-x: auto; margin-bottom: 18px; }
.dood-table { border-collapse: collapse; font-size: 12px; }
.dood-table th, .dood-table td { border: 1px solid var(--app-line); padding: 6px 10px; }
.dood-table th { background: var(--app-surface); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.dood-cell { text-align: center; cursor: pointer; color: var(--dim); }
.dood-cell.dood-work { background: rgba(0,168,107,.12); color: #059669; font-weight: 700; }

/* ── strip board ── */
.strip-board { display: flex; flex-direction: column; gap: 4px; max-width: 720px; margin-bottom: 18px; }
.strip-row { display: flex; align-items: center; gap: 10px; border-radius: 6px; padding: 7px 12px; border-left: 4px solid transparent; background: var(--app-surface); border-top: 1px solid var(--app-line); border-right: 1px solid var(--app-line); border-bottom: 1px solid var(--app-line); cursor: pointer; }
.strip-row.strip--must { border-left-color: var(--red); }
.strip-row.strip--should { border-left-color: #d97706; }
.strip-row.strip--nice { border-left-color: #059669; }
.strip-n { font-family: var(--font-mono); font-size: 11px; color: var(--faint); min-width: 22px; }
.strip-ref { width: 32px; height: 22px; object-fit: cover; border-radius: 3px; }
.strip-title { font-size: 13px; font-weight: 500; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.strip-badges { display: flex; flex-wrap: wrap; gap: 4px; flex-shrink: 0; }
.strip-badge { font-size: 10px; padding: 1px 6px; border-radius: 3px; background: var(--app-line); color: var(--dim); white-space: nowrap; }
.strip-badge--time { background: rgba(14,165,233,.12); color: #0284c7; }
.strip-badge--model { background: rgba(239,68,68,.12); color: #dc2626; }
.strip-badge--loc { background: rgba(245,158,11,.12); color: #d97706; }
.strip-badge--lic { background: rgba(139,92,246,.12); color: #7c3aed; }

/* ── shot dialog section label ── */
.sf-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 600; margin: 16px 0 8px; border-top: 1px solid var(--app-line); padding-top: 12px; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 6px; }
.sf-section-label::before { content: "▾"; font-size: 9px; color: var(--dim); transition: transform .12s; }
.sf-section-label.is-collapsed::before { transform: rotate(-90deg); }
.sf-section-label:hover { color: var(--text); }

/* #7 — rail item flagged as a shot-content match */
.rail-shot-hit { color: var(--info, #3b82f6); margin-left: 4px; flex: none; font-size: 11px; font-weight: 700; }

/* #2 — "show all shots" row when the render cap is in effect */
.shot-list-more { text-align: center; padding: 10px 0 4px; }

/* command palette (Ctrl/Cmd+K) */
.cmdk-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 10000; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmdk { width: min(560px, 92vw); background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.45); overflow: hidden; }
.cmdk-input { width: 100%; border: 0; border-bottom: 1px solid var(--app-line); background: transparent; color: var(--text); font-size: 15px; padding: 14px 16px; outline: none; box-sizing: border-box; }
.cmdk-list { max-height: 52vh; overflow: auto; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; font-size: 13px; }
.cmdk-item.is-active { background: var(--app-line); }
.cmdk-kind { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); min-width: 54px; flex: none; }
.cmdk-label { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-hint { color: var(--faint); font-size: 11px; flex: none; }
.cmdk-empty { padding: 16px; color: var(--faint); font-size: 13px; text-align: center; }
.sf-flags-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 6px; padding: 4px 0; }
.sf-flag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0; cursor: pointer; }

/* ── dialog scrollable ── */
.app-dialog__panel { max-height: 92vh; overflow-y: auto; }

/* ── safety block on call sheet ── */
.callsheet__safety { border: 1px solid #ef4444 !important; background: rgba(239,68,68,.06); border-radius: 6px; padding: 10px 12px; }
.callsheet__safety h3 { color: #dc2626; }

/* ── submission chips ── */
.chip--sub-planned { background: var(--app-surface); color: var(--dim); border: 1px solid var(--app-line); padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.chip--sub-submitted { background: rgba(14,165,233,.12); color: #0284c7; border: 1px solid rgba(14,165,233,.3); padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.chip--sub-accepted { background: rgba(0,168,107,.12); color: #059669; border: 1px solid rgba(0,168,107,.3); padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.chip--sub-rejected { background: rgba(239,68,68,.12); color: #dc2626; border: 1px solid rgba(239,68,68,.3); padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.chip--sub-exclusive { background: rgba(139,92,246,.12); color: #7c3aed; border: 1px solid rgba(139,92,246,.3); padding: 2px 8px; border-radius: 20px; font-size: 11px; }

@media print { .strip-board, .arc-checker, .rev-list, .gh-result, .dood-wrap p, .shootdays-list, .sf-section-label { display: none; } }

/* ── #12 priority accent bars on shot rows ── */
.shot-row.prio-must   { border-left-width: 3px; border-left-color: var(--reject); padding-left: 10px; }
.shot-row.prio-should { border-left-width: 3px; border-left-color: #d97706;      padding-left: 10px; }
.shot-row.prio-nice   { border-left-width: 3px; border-left-color: var(--info);   padding-left: 10px; }

/* ── #13 coverage rollup ── */
.cov-rollup { display:flex; align-items:center; gap:8px; margin-bottom:8px; font-size:12px; flex-wrap:wrap; }
.cov-rollup__bar { flex:1; min-width:120px; height:5px; border-radius:3px; overflow:hidden; background:var(--app-surface2); display:flex; }
.cov-rollup__seg { height:100%; transition:width .3s; }
.cov-rollup__seg.cap  { background:#059669; }
.cov-rollup__seg.resh { background:#d97706; }
.cov-rollup__seg.nogo { background:#dc2626; }
.cov-rollup__leg { display:flex; gap:10px; color:var(--dim); flex-wrap:wrap; }
.cov-rollup__leg span { display:inline-flex; align-items:center; gap:3px; }
.cov-rollup__dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.cov-rollup__dot.cap  { background:#059669; }
.cov-rollup__dot.resh { background:#d97706; }
.cov-rollup__dot.nogo { background:#dc2626; }
.cov-rollup__dot.pend { background:var(--app-surface2); border:1px solid var(--faint); }

/* ── #14 strip board shoot-day colour lanes ── */
.strip-row.strip--day-0 { border-left-color:#6366f1; }
.strip-row.strip--day-1 { border-left-color:#0891b2; }
.strip-row.strip--day-2 { border-left-color:#059669; }
.strip-row.strip--day-3 { border-left-color:#d97706; }
.strip-row.strip--day-4 { border-left-color:#dc2626; }
.strip-row.strip--day-5 { border-left-color:#7c3aed; }

/* ── #7 footbar secondary pills (hidden on narrow screens) ── */
.pill--secondary { display: inline-flex; }
@media (max-width: 780px) { .pill--secondary { display: none; } }

/* ── #8 inspector project health ── */
.insp-health { padding: 6px 0; }
.insp-health__row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--app-line); }
.insp-health__row .k { color: var(--faint); }
.insp-health__row .v { font-family: var(--font-mono); color: var(--text); }
.insp-health__bar { height: 5px; border-radius:3px; overflow:hidden; background:var(--app-surface2); margin-top:10px; }
.insp-health__bar-fill { height:100%; border-radius:3px; background: var(--pick); transition:width .3s; }
.insp-health__bar-fill.over { background: var(--reject); }
.insp-health__hint { font-size:11px; color:var(--faint); margin-top:6px; line-height:1.4; }

/* ── coverage status badges ── */
.shot-row__tag.shot-cov { font-weight: 600; }
.shot-row__tag.cov-captured { background: rgba(0,168,107,.13); color: #059669; border: 1px solid rgba(0,168,107,.35); }
.shot-row__tag.cov-reshooting { background: rgba(245,158,11,.13); color: #b45309; border: 1px solid rgba(245,158,11,.35); }
.shot-row__tag.cov-nogo { background: rgba(239,68,68,.12); color: #dc2626; border: 1px solid rgba(239,68,68,.3); }

/* ── shoot-day & linked badges ── */
.shot-row__tag.shot-day { background: rgba(99,102,241,.1); color: #6366f1; border: 1px solid rgba(99,102,241,.25); font-variant-numeric: tabular-nums; }
.shot-row__tag.shot-linked { background: rgba(14,165,233,.1); color: #0284c7; border: 1px solid rgba(14,165,233,.25); }

/* ── bulk selection ── */
.shot-row.is-bulk-sel { background: rgba(99,102,241,.06); outline: 1px solid rgba(99,102,241,.3); }

/* ── shot filter bar ── */
.shot-filter-bar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 0 6px; border-bottom: 1px solid var(--app-line); margin-bottom: 6px;
}
.shot-filter__search {
  flex: 1; min-width: 160px; height: 32px; padding: 0 10px;
  background: var(--app-bg); border: 1px solid var(--app-line);
  border-radius: var(--radius); color: var(--text); font-size: 13px;
}
.shot-filter__search:focus { outline: 2px solid var(--accent); border-color: transparent; }
.shot-filter__sel {
  height: 32px; padding: 0 8px; background: var(--app-bg);
  border: 1px solid var(--app-line); border-radius: var(--radius);
  color: var(--text); font-size: 12px; cursor: pointer;
}

/* ── bulk action bar ── */
.shot-bulk-bar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.25);
  border-radius: var(--radius); padding: 6px 12px; margin-bottom: 6px; font-size: 13px;
}
.shot-bulk-bar span { font-weight: 600; color: #6366f1; }

/* ── budget summary visual ── */
.budg-summary { padding: 14px 16px; }
.budg-totals { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.budg-total-cell { flex: 1; min-width: 130px; padding: 10px 14px; background: var(--app-card, var(--app-bg)); border: 1px solid var(--app-line); border-radius: var(--radius); }
.budg-total-cell.budg-total-grand { border-color: var(--accent); background: rgba(var(--accent-rgb, 99,102,241), .06); }
.budg-total-label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.budg-total-val { font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.budg-total-val.text-over { color: #dc2626; }
.budg-cats { display: flex; flex-direction: column; gap: 6px; }
.budg-cat-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.budg-cat-name { min-width: 110px; color: var(--dim); }
.budg-cat-bar { flex: 1; height: 8px; background: var(--app-line); border-radius: 4px; overflow: hidden; }
.budg-cat-fill { height: 100%; background: var(--accent, #6366f1); border-radius: 4px; transition: width .3s; }
.budg-cat-pct { min-width: 32px; text-align: right; color: var(--dim); }

/* ── print: call sheet ── */
@media print {
  .shot-filter-bar, .shot-bulk-bar, .shot-row__acts, .drag-grip, .shot-bulk-cb,
  .budg-summary, #btn-export-brief, #btn-sync-cull, #btn-strip-toggle, #btn-build-schedule,
  #btn-fetch-weather, .plan-sechead button:not(.ab--primary), nav.app-tabs { display: none !important; }
  .shot-row { break-inside: avoid; padding: 4px 0; border-bottom: 1px solid #eee; }
  .shot-row__tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .callsheet { max-width: 100%; font-size: 11px; }
  .callsheet__safety { border: 1px solid #dc2626; }
  .callsheet .cs-ref { width: 48px; height: 32px; }
}

/* ── story-arc checker: clickable missing tiles ── */
.arc-cell[data-arc-add] { cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.arc-cell[data-arc-add]:hover { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.4); transform: translateY(-1px); }
.arc-cell[data-arc-add]:focus-visible { outline: 2px solid var(--accent, #6366f1); outline-offset: 2px; }

/* ── schedule day sub-headers (multi-day shoots) ── */
.schedule-day-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding: 12px 2px 2px; border-top: 1px solid var(--app-line); margin-top: 4px; }
.schedule-day-head:first-child { border-top: none; margin-top: 0; padding-top: 2px; }

/* ── colour palette (campaign key tones) ── */
.palette-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pal-swatch { position: relative; display: inline-flex; align-items: center; gap: 7px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 20px; padding: 4px 10px 4px 6px; font-size: 12px; }
.pal-chip { width: 18px; height: 18px; border-radius: 50%; background: var(--pal); border: 1px solid rgba(0,0,0,.18); flex-shrink: 0; }
.pal-hex { color: var(--dim); text-transform: uppercase; }
.pal-del { background: none; border: none; cursor: pointer; color: var(--dim); font-size: 14px; line-height: 1; padding: 0 0 0 2px; }
.pal-del:hover { color: var(--red); }
.palette-add { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.palette-add input[type=color] { width: 38px; height: 30px; padding: 0; border: 1px solid var(--app-line); border-radius: 6px; background: var(--app-surface); cursor: pointer; }
.palette-hex-in { width: 110px; padding: 6px 8px; border: 1px solid var(--app-line); border-radius: var(--radius, 6px); background: var(--app-bg); color: var(--text); font-size: 12px; text-transform: uppercase; }

/* ── delivered coverage status ── */
.cov-delivered { background: #0d9488; color: #fff; }

/* ── quick-shot bar ── */
.quick-shot-bar { padding: 6px 0 4px; }
.quick-shot-bar input {
  width: 100%; box-sizing: border-box;
  padding: 7px 12px; background: var(--app-bg);
  border: 1px dashed var(--app-line); border-radius: var(--radius);
  color: var(--text); font-size: 13px; outline: none; transition: border-color .15s;
}
.quick-shot-bar input:focus { border-color: var(--accent, #6366f1); border-style: solid; }
.quick-shot-bar input::placeholder { color: var(--faint); }

/* ── project health ring ── */
:root { --health-track: rgba(128,128,128,.18); }
.health-ring { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.health-ring.health--hi { color: #16a34a; }
.health-ring.health--mid { color: #ca8a04; }
.health-ring.health--lo { color: #dc2626; }
.app-rail__item { display: flex; align-items: center; gap: 5px; }
.plan-summary__health {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0 6px; font-size: 13px; color: var(--dim);
  border-bottom: 1px solid var(--app-line); margin-bottom: 4px;
}

/* ── shot tag badges ── */
.shot-tag { background: rgba(99,102,241,.12); color: #6366f1; border-color: rgba(99,102,241,.25); }
.shot-risk-score { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 99px; border: 1px solid; }
.shot-risk-score--lo { background: rgba(22,163,74,.1); color: #16a34a; border-color: rgba(22,163,74,.3); }
.shot-risk-score--mid { background: rgba(202,138,4,.1); color: #ca8a04; border-color: rgba(202,138,4,.3); }
.shot-risk-score--hi { background: rgba(220,38,38,.1); color: #dc2626; border-color: rgba(220,38,38,.3); }

/* ── today dashboard ── */
.today-row {
  padding: 12px 0; border-bottom: 1px solid var(--app-line);
}
.today-row:last-child { border-bottom: none; }
.today-row--today { background: rgba(99,102,241,.04); border-radius: var(--radius); padding: 12px 10px; margin: 0 -10px; }
.today-row__head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.today-row__client { color: var(--dim); font-size: 13px; }
.today-row__day { margin-left: auto; font-size: 12px; color: var(--dim); }
.today-warn { margin: 4px 0 0 0; padding-left: 14px; font-size: 12px; color: #ca8a04; }
.today-warn li + li { margin-top: 2px; }

/* ── archived rail items ── */
.app-rail__item.is-archived { opacity: .45; font-style: italic; }

/* ── AI concept fill button in shot dialog ── */
.sf-concepts-wrap { display: flex; gap: 6px; align-items: flex-end; }
.sf-concepts-wrap input { flex: 1; }

/* ── dependency checklist in shot dialog ── */
.sf-dep-list { display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow-y: auto; padding: 4px 0; }
.sf-dep-list label { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0; cursor: pointer; }
.sf-dep-list label:hover { color: var(--accent); }

/* ── shot annotation thread ── */
.shot-comments { display: flex; flex-direction: column; gap: 0; }
.shot-comments__head { font-size: 12px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; }
.shot-comment { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--app-line); font-size: 13px; }
.shot-comment:last-of-type { border-bottom: none; }
.shot-comment__ts { flex-shrink: 0; color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.shot-comment__text { flex: 1; color: var(--text); }
.shot-comment__del { flex-shrink: 0; background: none; border: none; color: var(--dim); cursor: pointer; font-size: 11px; padding: 0 2px; opacity: .5; }
.shot-comment__del:hover { opacity: 1; color: #dc2626; }
.shot-comment-input { display: flex; gap: 8px; margin-top: 8px; }
.shot-comment-input input { flex: 1; }

/* ── shot row dependency + comment badges ── */
.shot-dep { background: rgba(99,102,241,.1); color: #6366f1; border-color: rgba(99,102,241,.25); font-size: 10px; }
.shot-comment-badge { background: rgba(202,138,4,.1); color: #ca8a04; border-color: rgba(202,138,4,.25); font-size: 10px; }

/* ── kanban board ── */
.kanban-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kanban-col { flex: 0 0 220px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--radius); display: flex; flex-direction: column; }
.kanban-col__head { padding: 10px 12px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); border-bottom: 1px solid var(--app-line); display: flex; align-items: center; gap: 6px; }
.kanban-col__head .count { margin-left: auto; font-size: 11px; font-weight: 400; background: var(--app-line); border-radius: 99px; padding: 0 6px; }
.kanban-col__body { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 60px; }
.kanban-col__add { margin: 6px 8px 8px; font-size: 11px; }
.kanban-card { background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 6px; padding: 8px 10px; cursor: pointer; transition: border-color .15s; }
.kanban-card:hover { border-color: var(--accent); }
.kanban-card__title { font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--text); }
.kanban-card__meta { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.kanban-card__acts { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.kanban-mv { font-size: 11px; padding: 2px 4px; border: 1px solid var(--app-line); border-radius: 4px; background: var(--app-surface); color: var(--text); cursor: pointer; }

/* ── on-set mode ── */
.onset-panel { max-width: 700px; width: 96vw; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; padding: 0 !important; }
.onset-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--app-line); }
.onset-header h2 { margin: 0; font-size: 16px; }
.onset-shots { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.onset-shot { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 8px; transition: opacity .2s; }
.onset-shot--done { opacity: .45; }
.onset-shot--done .onset-shot__title { text-decoration: line-through; }
.onset-shot__info { flex: 1; }
.onset-shot__title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.onset-shot__meta { font-size: 12px; color: var(--dim); margin-top: 3px; }
.onset-shot__status { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.onset-cov-btns { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }

/* ── conflict chips ── */
.conflict-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px; }
.conflict-chip { background: rgba(220,38,38,.08); color: #dc2626; border: 1px solid rgba(220,38,38,.2); border-radius: 99px; font-size: 11px; padding: 2px 10px; }

/* ── ready-to-shoot checklist ── */
.ready-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ready-checklist__item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; padding: 8px 10px; border-radius: 6px; background: var(--app-surface); border: 1px solid var(--app-line); }
.ready-checklist__item.is-done { background: rgba(22,163,74,.06); border-color: rgba(22,163,74,.2); color: #16a34a; }
.ready-checklist__item:not(.is-done) { color: #dc2626; }

/* ── coverage gap list ── */
.gap-list { display: flex; flex-direction: column; gap: 8px; }
.gap-item { background: rgba(202,138,4,.07); border: 1px solid rgba(202,138,4,.2); border-radius: 6px; padding: 10px 12px; font-size: 13px; }

/* ── project comparison grid ── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 8px; padding: 14px; }
.compare-col__head { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.compare-col__sub { font-size: 12px; color: var(--dim); margin-bottom: 12px; }
.compare-col table { width: 100%; font-size: 13px; border-collapse: collapse; }
.compare-col td { padding: 5px 4px; border-bottom: 1px solid var(--app-line); }
.compare-col td:first-child { color: var(--dim); }

/* ── priority caps warning ── */
.plan-caps-warning { background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.18); border-radius: 6px; padding: 8px 12px; font-size: 13px; color: #dc2626; margin-bottom: 8px; }

/* ── footbar countdown pill ── */
.pill--info { background: rgba(99,102,241,.12); color: #6366f1; border-color: rgba(99,102,241,.25); font-size: 12px; font-weight: 600; }

/* ── budget CSV drop zone ── */
.budget-csv-drop { border: 2px dashed var(--app-line); border-radius: 8px; padding: 18px; text-align: center; font-size: 13px; color: var(--dim); cursor: pointer; transition: border-color .15s, background .15s; margin: 12px 0; }
.budget-csv-drop:hover, .budget-csv-drop.is-dragover { border-color: var(--accent); background: rgba(99,102,241,.05); color: var(--accent); }

/* ── day notes in schedule ── */
.day-note-row { background: rgba(99,102,241,.05); border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; font-size: 13px; }
.day-note-row textarea { width: 100%; resize: vertical; font-size: 13px; background: transparent; border: none; color: var(--text); padding: 0; outline: none; }

/* ── priority caps editor ── */
.priority-caps-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 8px; }
.priority-caps-row .app-field { flex: 1; min-width: 80px; margin-bottom: 0; }
.priority-caps-row label { font-size: 11px; }

/* ── quick note strip ── */
.quick-note-strip { padding: 6px 0 8px; }
.quick-note-strip textarea { width: 100%; resize: none; background: rgba(99,102,241,.05); border: 1px solid rgba(99,102,241,.15); border-radius: 6px; padding: 8px 10px; font-size: 13px; color: var(--text); outline: none; transition: border-color .15s; box-sizing: border-box; }
.quick-note-strip textarea:focus { border-color: var(--accent); }
.quick-note-strip textarea::placeholder { color: var(--faint); }

/* ── coverage completion predictor ── */
.coverage-predictor { display: flex; align-items: center; gap: 10px; padding: 8px 0 4px; font-size: 13px; }
.pred-label { font-weight: 700; flex-shrink: 0; }
.pred-bar { flex: 1; height: 6px; background: var(--app-line); border-radius: 99px; overflow: hidden; max-width: 160px; }
.pred-bar__fill { height: 100%; border-radius: 99px; transition: width .3s; }
.pred-num { color: var(--dim); font-size: 12px; flex-shrink: 0; }

/* ── cross-project conflict banner ── */
.cross-conflict-warn { background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.18); border-radius: 6px; padding: 8px 12px; font-size: 13px; color: #dc2626; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cross-conflict-warn strong { flex-basis: 100%; }

/* ── sign-off progress bar on rail item ── */
.rail-signoff-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--app-line); }
.rail-signoff-bar::after { content: ""; display: block; height: 100%; width: var(--so-pct, 0%); background: #16a34a; border-radius: 0 2px 2px 0; transition: width .3s; }
.app-rail__item { position: relative; }

/* ── shot stack groups ── */
.shot-stack-group { border: 1px solid var(--app-line); border-radius: 8px; margin-bottom: 6px; overflow: hidden; }
.shot-stack-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--app-surface); cursor: pointer; user-select: none; font-size: 13px; }
.shot-stack-head:hover { background: rgba(99,102,241,.06); }
.shot-stack-head__arrow { font-size: 10px; flex-shrink: 0; color: var(--dim); }
.shot-stack-head__label { font-weight: 600; }
.shot-stack-head__count { color: var(--dim); font-size: 12px; background: var(--app-line); border-radius: 99px; padding: 1px 7px; }
.shot-stack-body { padding: 4px 0; }
.shot-stack-body .shot-row { border-radius: 0; border-left: none; border-right: none; }
.shot-stack-body .shot-row:last-child { border-bottom: none; }

/* ── shot difficulty badge ── */
.shot-diff { font-weight: 700; font-size: 10px; padding: 1px 6px; border-radius: 3px; }
.shot-diff--1 { background: rgba(22,163,74,.12); color: #15803d; }
.shot-diff--2 { background: rgba(101,163,13,.12); color: #4d7c0f; }
.shot-diff--3 { background: rgba(234,179,8,.12); color: #a16207; }
.shot-diff--4 { background: rgba(234,88,12,.12); color: #c2410c; }
.shot-diff--5 { background: rgba(220,38,38,.12); color: #b91c1c; }

/* ── shot history entry ── */
.shot-hist-entry { display: grid; grid-template-columns: 100px 80px 60px 1fr; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--app-line); font-size: 12px; align-items: baseline; }
.shot-hist-entry:last-child { border-bottom: none; }
.shot-hist-time { color: var(--dim); font-family: var(--font-mono); }
.shot-hist-field { font-weight: 600; color: var(--text); }
.shot-hist-by { color: var(--faint); font-style: italic; }
.shot-hist-val { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── permit countdown row ── */
.permit-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0; }
.permit-chip { background: rgba(99,102,241,.08); color: #4f46e5; border: 1px solid rgba(99,102,241,.2); border-radius: 99px; font-size: 11px; padding: 2px 10px; }
.permit-chip--urgent { background: rgba(220,38,38,.1); color: #dc2626; border-color: rgba(220,38,38,.3); animation: pulse-permit 1.4s ease-in-out infinite; }
@keyframes pulse-permit { 0%,100%{ opacity:1; } 50%{ opacity:.55; } }

/* ── gear conflict row ── */
.gear-conflict-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; }

/* ── auto readiness checklist ── */
.auto-checklist { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.auto-checklist__head { font-size: 12px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.auto-checklist__bar { height: 5px; background: var(--app-line); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.auto-checklist__fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.auto-checklist__items { display: flex; flex-direction: column; gap: 3px; max-height: 160px; overflow-y: auto; }
.auto-checklist__item { font-size: 12px; color: var(--dim); padding: 2px 0; }
.auto-checklist__item.is-done { color: #16a34a; }
.auto-checklist__item:not(.is-done)::before { content: "○ "; }
.auto-checklist__item.is-done::before { content: "✓ "; }

/* ── R4: stats tab ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; padding-bottom: 32px; }
.stat-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 10px; padding: 14px 16px; }
.stat-card--wide { grid-column: 1 / -1; }
.stat-card__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-bottom: 10px; }
.stat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.stat-bar { flex: 1; height: 6px; background: var(--app-line); border-radius: 99px; overflow: hidden; }
.stat-bar__fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s; }
.stat-label { flex: 0 0 auto; width: 160px; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-val { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--text); font-family: var(--font-mono); white-space: nowrap; }

/* ── R4: deliverables progress ── */
.deliv-progress { display: flex; flex-direction: column; gap: 4px; }
.deliv-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.deliv-pct { color: var(--dim); font-weight: 400; }
.deliv-bar { height: 5px; background: var(--app-line); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.deliv-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.deliv-item { font-size: 13px; padding: 2px 0; }
.deliv-item label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); }
.deliv-item.is-done label { text-decoration: line-through; color: var(--dim); }

/* ── R4: scouting checklist ── */
.scout-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--app-line); color: var(--text); cursor: pointer; }
.scout-item input[type=checkbox] { accent-color: var(--accent); }

/* ── R4: offline + macro pills ── */
.pill--warn { background: rgba(234,179,8,.15); color: #92400e; border: 1px solid rgba(234,179,8,.3); }

/* ── R4: shot cost allocation badge ── */
.shot-alloc { background: rgba(99,102,241,.08); color: #4338ca; border: 1px solid rgba(99,102,241,.2); }

/* ── R4: competitor gap / casting notes ── */
.plan-note--gap { background: rgba(99,102,241,.06); border: 1px solid rgba(99,102,241,.35); padding: 10px 12px; border-radius: 6px; margin: 8px 0; }
.plan-note--cast { background: rgba(16,163,74,.06); border: 1px solid rgba(16,163,74,.35); padding: 10px 12px; border-radius: 6px; margin: 8px 0; }

/* ── R4: collapsible section headers ── */
.collapsible-head .collapse-arrow { font-size: 10px; color: var(--dim); transition: transform .2s; user-select: none; }
.collapsible-head.is-collapsed .collapse-arrow { color: var(--accent); }

/* ── R5: tag filter pills ── */
.shot-tag-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 4px; max-width: 720px; }
.shot-tag-pill { font-size: 11px; padding: 3px 10px; border-radius: 99px; background: var(--app-surface); border: 1px solid var(--app-line); color: var(--dim); cursor: pointer; user-select: none; transition: background .15s, color .15s; }
.shot-tag-pill:hover { background: var(--app-line); color: var(--text); }
.shot-tag-pill.is-active { background: var(--accent); color: #fff; border-color: transparent; }

/* ── R5: grade preset badge ── */
.shot-grade { background: rgba(99,102,241,.08); color: #4338ca; border: 1px solid rgba(99,102,241,.2); }

/* ── R5: viability score badge ── */
.shot-viab { border: 1px solid; }
.shot-viab--hi { background: rgba(22,163,74,.1); color: #166534; border-color: rgba(22,163,74,.25); }
.shot-viab--mid { background: rgba(202,138,4,.1); color: #854d0e; border-color: rgba(202,138,4,.25); }
.shot-viab--lo { background: rgba(220,38,38,.1); color: #991b1b; border-color: rgba(220,38,38,.25); }

/* ── R5: AI chat panel scrollbar ── */
#ai-chat-panel { scrollbar-width: thin; scrollbar-color: var(--app-line) transparent; }
#ai-chat-panel #chat-msgs::-webkit-scrollbar { width: 4px; }
#ai-chat-panel #chat-msgs::-webkit-scrollbar-thumb { background: var(--app-line); border-radius: 99px; }

/* ── R5: concept autocomplete ── */
.concept-sug-item { padding: 5px 10px; cursor: pointer; border-radius: 4px; transition: background .12s; }
.concept-sug-item:hover { background: var(--app-line); }

/* ── R6: grade preset pills (shot dialog) ── */
.grade-pill { font-size: 12px; padding: 4px 12px; border-radius: 99px; background: var(--app-surface); border: 1px solid var(--app-line); color: var(--dim); cursor: pointer; user-select: none; transition: background .15s, color .15s, border-color .15s; }
.grade-pill:hover { background: var(--app-line); color: var(--text); }
.grade-pill.is-active { background: var(--accent); color: #fff; border-color: transparent; }

/* ── R6: ready banner (brief tab sticky footer) ── */
.ready-banner { position: sticky; bottom: 0; left: 0; right: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 8px 16px; background: var(--app-bg); border-top: 1px solid var(--app-line); font-size: 12px; z-index: 10; }
.ready-banner__chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-weight: 500; }
.ready-banner__chip--ok { background: rgba(22,163,74,.1); color: #15803d; }
.ready-banner__chip--warn { background: rgba(202,138,4,.1); color: #92400e; }
.ready-banner__chip--risk { background: rgba(220,38,38,.1); color: #991b1b; }

/* ── R6: focus mode (brief tab) ── */
#shot-list.is-focus-mode .shot-row { opacity: .3; transition: opacity .18s; pointer-events: none; }
#shot-list.is-focus-mode .shot-row.is-focus-selected { opacity: 1; pointer-events: auto; box-shadow: 0 0 0 2px var(--accent); border-radius: 6px; }

/* ── R6: dependency graph + gantt (stats tab) ── */
.dep-graph-svg text { fill: var(--text); font-size: 11px; font-family: inherit; }
.dep-graph-svg .dep-node { fill: var(--app-surface); stroke: var(--app-line); }
.dep-graph-svg .dep-node--active { fill: var(--accent); stroke: transparent; }
.dep-graph-svg .dep-edge { stroke: var(--app-line); stroke-width: 1.5; fill: none; marker-end: url(#dep-arrow); }
.gantt-bar { border-radius: 3px; height: 18px; }
.gantt-label { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }

/* ── R6: shoot time estimator bars ── */
.time-est-bar { height: 10px; border-radius: 99px; background: var(--accent); opacity: .7; }

/* ── R7: locked shot ── */
.shot-row.is-locked { opacity: .55; }
.shot-row.is-locked .shot-row__title::after { content: " 🔒"; font-size: 10px; }
.shot-locked { opacity: .7; }
.shot-ainotes { color: var(--info, #3b82f6); font-size: 11px; }

/* ── R7: rail group headers ── */
.rail-group-hdr { width: 100%; text-align: left; background: none; border: none; border-top: 1px solid var(--app-line); padding: 5px 10px 4px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.rail-group-hdr:hover { color: var(--text); }
.rail-group-count { margin-left: auto; font-size: 10px; background: var(--app-line); border-radius: 99px; padding: 1px 6px; font-weight: 400; }

/* ── R7: notification bell badge ── */
.notif-badge { position: absolute; top: 2px; right: 2px; min-width: 14px; height: 14px; border-radius: 99px; background: var(--accent, #c8070a); color: #fff; font-size: 9px; font-weight: 700; line-height: 14px; text-align: center; padding: 0 3px; pointer-events: none; }

/* ── R7: contextual empty states ── */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px; text-align: center; color: var(--dim); }
.empty-state--rail { padding: 24px 12px; }
.empty-state__icon { font-size: 36px; line-height: 1; }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; }
.empty-state p { font-size: 13px; margin: 0; max-width: 320px; line-height: 1.5; }
.empty-state--rail .empty-state__icon { font-size: 24px; }
.empty-state--rail h3 { font-size: 13px; }
.empty-state--rail p { font-size: 12px; }

/* ── R7: momentum arrow in rail ── */
.momentum-up { color: var(--pick, #46a758); font-weight: 700; }
.momentum-down { color: var(--reject, #e5484d); font-weight: 700; }
.momentum-flat { color: var(--dim); }

/* ── R8: template gallery grid ── */
.tmpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.tmpl-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border: 1px solid var(--app-line); border-radius: 8px; background: var(--app-surface); cursor: pointer; transition: border-color .15s, background .15s; }
.tmpl-card:hover { border-color: var(--accent); background: rgba(var(--accent-rgb,200,7,10),.05); }
.tmpl-card__icon { font-size: 28px; line-height: 1; }
.tmpl-card__name { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3; color: var(--text); }
.tmpl-card__count { font-size: 10px; color: var(--dim); }

/* ── R8: on-set weather tile ── */
#onset-weather:empty { display: none; }

/* ── R8: coverage-gap heatmap modal table ── */
.dlg-info-modal table { border-collapse: collapse; width: 100%; }
.dlg-info-modal th, .dlg-info-modal td { padding: 5px 8px; }

/* ── R9: parking lot ── */
.parking-lot { border: 1px solid var(--app-line); border-radius: 8px; margin: 8px 0 16px; max-width: 720px; }
.parking-lot__hdr { padding: 8px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--dim); display: flex; align-items: center; gap: 6px; list-style: none; }
.parking-lot__hdr::-webkit-details-marker { display: none; }
.parking-lot__list { padding: 4px 10px 6px; }
.parking-lot__item { display: flex; align-items: center; gap: 8px; padding: 5px 2px; border-bottom: 1px solid var(--app-line); font-size: 12px; }
.parking-lot__item:last-child { border-bottom: none; }
.parking-lot__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parking-lot__meta { font-size: 11px; color: var(--dim); flex-shrink: 0; }

/* ── R9: project tags ── */
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 0; }
.proj-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; background: rgba(var(--accent-rgb,200,7,10),.08); border: 1px solid rgba(var(--accent-rgb,200,7,10),.2); border-radius: 12px; font-size: 11px; color: var(--text); }
.proj-tag__del { background: none; border: none; cursor: pointer; color: var(--dim); padding: 0; line-height: 1; font-size: 11px; }
.proj-tag__input { border: 1px solid var(--app-line); border-radius: 4px; padding: 2px 8px; font-size: 11px; background: var(--app-bg); color: var(--text); min-width: 130px; }
.proj-tag__input:focus { outline: none; border-color: var(--accent); }

/* ── R9: shot weather flag ── */
.shot-wx-flag { font-size: 12px; display: inline-block; }
.shot-wx-flag--rain { color: #2563eb; }
.shot-wx-flag--warn { color: #ca8a04; }
.shot-wx-flag--ok { color: #16a34a; }
.shot-hero-badge { background: linear-gradient(135deg, #f59e0b, #ca8a04) !important; color: #fff !important; font-weight: 700; letter-spacing: .02em; }
.plan-note--countdown { background: rgba(220,38,38,.07); border: 1px solid color-mix(in srgb, var(--reject) 45%, transparent); color: var(--text); padding: 7px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 8px; max-width: 720px; }
/* R11 */
.filter-pill-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 0 2px; max-width: 720px; }
.filter-pill { border: 1px solid var(--app-line); background: var(--app-surface); color: var(--dim); border-radius: 20px; padding: 3px 10px; font-size: 11px; cursor: pointer; transition: background .12s, color .12s; white-space: nowrap; }
.filter-pill:hover { border-color: var(--accent); color: var(--text); }
.filter-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-pill__n { font-weight: 700; margin-left: 3px; }
.shot-waiting { background: rgba(245,158,11,.12); color: #92400e; border: 1px solid rgba(245,158,11,.3); }
.shot-tod { background: rgba(124,58,237,.08); color: #6d28d9; border: 1px solid rgba(124,58,237,.2); font-size: 10px; }
.shot-cconf { font-weight: 700; font-size: 10px; }
.shot-cconf--hi { background: rgba(22,163,74,.1); color: #166534; border: 1px solid rgba(22,163,74,.3); }
.shot-cconf--mid { background: rgba(37,99,235,.08); color: #1e40af; border: 1px solid rgba(37,99,235,.2); }
.shot-cconf--lo { background: rgba(220,38,38,.08); color: #991b1b; border: 1px solid rgba(220,38,38,.2); }
.swipe-menu { display: flex; gap: 6px; padding: 6px 10px; background: var(--app-surface); border-bottom: 1px solid var(--app-line); }
.swipe-menu__btn { border: 1px solid var(--app-line); background: var(--app-bg); border-radius: 6px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.swipe-menu__btn--cap { border-color: rgba(22,163,74,.4); color: #16a34a; }
.swipe-menu__btn--skip { border-color: rgba(202,138,4,.4); color: #ca8a04; }
.swipe-menu__btn--del { border-color: rgba(220,38,38,.4); color: #dc2626; }
.inline-note { padding: 6px 12px 8px; background: var(--app-surface); border-bottom: 1px solid var(--app-line); }
.inline-note__ta { width: 100%; box-sizing: border-box; border: 1px solid var(--accent); border-radius: 6px; padding: 6px 8px; font-size: 12px; font-family: inherit; background: var(--app-bg); color: var(--text); resize: vertical; min-height: 56px; }
/* R12 */
.plan-note--conflict { background: rgba(234,88,12,.07); border: 1px solid rgba(234,88,12,.4); color: var(--text); padding: 7px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 8px; max-width: 720px; }
/* Strip board */
.strip-columns { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.strip-col { min-width: 160px; max-width: 200px; flex-shrink: 0; border: 1px solid var(--app-line); border-radius: 8px; overflow: hidden; background: var(--app-surface); }
.strip-col__hdr { background: var(--accent); color: #fff; padding: 6px 10px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.strip-col__n { background: rgba(255,255,255,.25); border-radius: 10px; padding: 0 7px; font-size: 11px; }
.strip-col__body { min-height: 60px; padding: 6px; display: flex; flex-direction: column; gap: 4px; transition: background .15s; }
.strip-col__drop-over .strip-col__body, .strip-col__body.strip-col__drop-over { background: rgba(var(--accent-rgb,99,102,241),.12); }
.strip-card { border: 1px solid var(--app-line); border-radius: 6px; padding: 5px 8px; font-size: 11px; background: var(--app-bg); cursor: grab; }
.strip-card:active { cursor: grabbing; }
/* Pinboard */
.pinboard-sidebar { position: fixed; right: 0; top: 0; bottom: 0; width: 200px; background: var(--app-surface); border-left: 1px solid var(--app-line); z-index: 90; display: flex; flex-direction: column; box-shadow: -2px 0 8px rgba(0,0,0,.1); transform: translateX(100%); transition: transform .2s; }
.pinboard-sidebar.is-open { transform: none; }
.pinboard__hdr { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--app-line); font-weight: 700; font-size: 13px; }
.pinboard__sect { padding: 6px 10px 2px; font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.pinboard__item { padding: 6px 10px; border-bottom: 1px solid var(--app-line); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.pinboard__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinboard__empty { color: var(--dim); font-size: 12px; padding: 12px 10px; }
/* Hero shot */
.shot-hero-badge { background: rgba(234,179,8,.15); color: #92400e; border: 1px solid rgba(234,179,8,.4); padding: 2px 6px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.is-hero-shot { background: rgba(234,179,8,.05); }
/* Arc group */
.arc-group { margin-bottom: 10px; }
.arc-group__hdr { display: flex; align-items: center; gap: 6px; padding: 4px 0 4px 2px; border-bottom: 1px solid var(--app-line); margin-bottom: 4px; }
.arc-group__label { font-weight: 700; font-size: 12px; color: var(--accent); }
.arc-group__count { font-size: 11px; color: var(--dim); }
.arc-group__list { display: flex; flex-direction: column; gap: 2px; }
/* Confidence micro-bar */
[data-cc]::before { content: ""; display: inline-block; width: calc(var(--cc,0) * 1%); height: 3px; background: currentColor; border-radius: 2px; vertical-align: middle; margin-right: 4px; opacity: .5; }
/* R13 */
/* simple info dialog body */
.simple-info__body { padding: 14px 18px; max-height: 60vh; overflow-y: auto; font-size: 13px; line-height: 1.6; color: var(--text); }
.simple-info__body p { margin: 0 0 10px; }
.simple-info__body h4 { font-size: 13px; margin: 12px 0 4px; color: var(--accent); }
.simple-info__body code { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
/* rejection-pattern banner */
.plan-note--reject-pattern { background: rgba(220,38,38,.06); border: 1px solid color-mix(in srgb, var(--reject,#dc2626) 45%, transparent); color: var(--text); padding: 7px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 8px; }
/* call-sheet audio script */
.csa-script { max-height: 200px; overflow-y: auto; font-size: 12px; line-height: 1.5; color: var(--text); background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 6px; padding: 8px 10px; }
/* per-day summary footer */
.day-summary-footer { max-width: 720px; margin: 16px 0 8px; border-top: 1px solid var(--app-line); padding-top: 10px; }
.dsf-title { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); margin-bottom: 6px; }
.dsf-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.dsf-cell { flex: 1; min-width: 90px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 8px; padding: 7px 9px; }
.dsf-cell--empty { opacity: .55; }
.dsf-day { font-size: 12px; font-weight: 700; }
.dsf-bar { height: 4px; background: var(--app-line); border-radius: 2px; overflow: hidden; margin: 4px 0; }
.dsf-bar span { display: block; height: 100%; background: var(--accent); }
.dsf-n { font-size: 11px; color: var(--dim); }
.dsf-hrs { font-size: 11px; color: var(--text); font-weight: 600; }
/* momentum strip */
.momentum-strip { margin: 8px 0 12px; }
.mom-head { font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.mom-bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--app-line); }
.mom-seg { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; min-width: 0; transition: width .3s; }
.mom-seg--pending { background: #9ca3af; } .mom-seg--captured { background: #2563eb; } .mom-seg--reshooting { background: #ca8a04; } .mom-seg--delivered { background: #16a34a; }
.mom-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 5px; font-size: 11px; color: var(--dim); }
.mom-leg { display: inline-flex; align-items: center; gap: 4px; }
.mom-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
/* countdown clock */
.countdown-clock { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; margin: 0 0 10px; border: 1px solid var(--app-line); background: var(--app-surface); }
.countdown-clock.cdc--green { border-color: rgba(22,163,74,.5); color: #166534; }
.countdown-clock.cdc--amber { border-color: rgba(202,138,4,.5); color: #92400e; }
.countdown-clock.cdc--red { border-color: rgba(220,38,38,.5); color: #991b1b; }
.cdc-val { font-variant-numeric: tabular-nums; }
.cdc-label { font-weight: 400; color: var(--dim); font-size: 11px; }
/* strip-board mini timeline */
.shot-mini-timeline { position: relative; height: 16px; margin: 2px 6px 4px; border-bottom: 1px solid var(--app-line); }
.smt-block { position: absolute; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); cursor: pointer; }
.smt-block:hover { box-shadow: 0 0 0 2px rgba(99,102,241,.3); }
.smt-tick { position: absolute; bottom: -1px; font-size: 8px; color: var(--faint); transform: translateX(-50%); }
/* model direction cards print only — styles inline in print window */
/* retouch hand-off list */
.rho-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--app-line); border-radius: 6px; }
.rho-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--app-line); font-size: 12px; cursor: pointer; }
.rho-item:last-child { border-bottom: 0; }
/* shot template manager */
.stm-body { padding: 10px 14px; max-height: 50vh; overflow-y: auto; }
.stm-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--app-line); }
.stm-name { flex: 1; min-width: 0; border: 1px solid var(--app-line); border-radius: 5px; padding: 4px 7px; font-size: 12px; background: var(--app-bg); color: var(--text); }
.stm-meta { font-size: 11px; color: var(--dim); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stm-empty { padding: 18px 14px; color: var(--dim); font-size: 13px; }
/* version-compare dialog */
.svc-body { padding: 10px 16px; max-height: 56vh; overflow-y: auto; }
.svc-entry { border: 1px solid var(--app-line); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.svc-when { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.svc-field { font-size: 11px; padding: 2px 0; }
.svc-f { font-weight: 700; color: var(--accent); }
.svc-from { color: var(--dim); text-decoration: line-through; }
.svc-to { color: #16a34a; }
/* stats verdict badge */
.stats-verdict-badge { background: rgba(37,99,235,.12); color: #1e40af; border: 1px solid rgba(37,99,235,.3); border-radius: 12px; padding: 2px 10px; font-size: 11px; font-weight: 700; }
/* accessibility panel */
.a11y-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--app-line); }
.a11y-row:last-of-type { border-bottom: 0; }
/* accessibility global modes (applied to <html>) */
.plan-a11y-reduce-motion * { animation: none !important; transition: none !important; }
.plan-a11y-font-1 .shot-row__title { font-size: 15px; } .plan-a11y-font-2 .shot-row__title { font-size: 17px; } .plan-a11y-font-3 .shot-row__title { font-size: 19px; }
.plan-a11y-font-1 .shot-row__meta, .plan-a11y-font-2 .shot-row__meta, .plan-a11y-font-3 .shot-row__meta { font-size: 12px; }
.plan-a11y-contrast .shot-row { border-color: var(--text) !important; }
.plan-a11y-contrast .chip { outline: 1px solid var(--text); }
/* R14 */
/* projected-wrap clock */
.finish-clock { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; margin: 0 0 10px 8px; border: 1px solid var(--app-line); background: var(--app-surface); color: var(--text); }
.finish-clock .fc-sub { font-weight: 400; color: var(--dim); font-size: 11px; }
/* coverage progress ring (shot title) */
.shot-ring { display: inline-flex; vertical-align: middle; margin-right: 6px; }
/* per-shot prep checklist badge */
.shot-checklist { font-weight: 700; }
.shot-checklist--part { background: rgba(202,138,4,.1); color: #92400e; border: 1px solid rgba(202,138,4,.3); }
.shot-checklist--full { background: rgba(22,163,74,.12); color: #166534; border: 1px solid rgba(22,163,74,.35); }
/* camera capture-count badge */
.shot-capcount { background: rgba(37,99,235,.1); color: #1e40af; border: 1px solid rgba(37,99,235,.25); font-weight: 700; }
/* filter preset chips */
.filter-preset-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 4px 0; max-width: 720px; }
.filter-preset-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; padding: 2px 4px 2px 10px; font-size: 11px; cursor: pointer; }
.filter-preset-chip:hover { border-color: var(--accent); }
.fpc-del { border: none; background: none; color: var(--dim); cursor: pointer; font-size: 13px; line-height: 1; padding: 0 4px; }
.fpc-del:hover { color: var(--reject); }
/* rail project colour dot */
.rail-color-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; margin-right: 2px; }
/* multi-project timeline */
.mpt-wrap { padding: 4px 0; }
.mpt-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); margin-bottom: 6px; }
.mpt-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.mpt-label { width: 140px; flex: none; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.mpt-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mpt-track { position: relative; flex: 1; height: 16px; background: var(--app-line); border-radius: 4px; }
.mpt-bar { position: absolute; top: 2px; width: 10px; height: 12px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); }
.mpt-bar--clash { background: var(--reject, #dc2626); box-shadow: 0 0 0 2px rgba(220,38,38,.25); }
/* inline bulk-edit grid */
.ibg-wrap { max-height: 56vh; overflow-y: auto; padding: 0 4px; }
.ibg-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ibg-table th { position: sticky; top: 0; background: var(--app-surface); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--app-line); font-size: 11px; color: var(--dim); }
.ibg-table td { padding: 4px 8px; border-bottom: 1px solid var(--app-line); }
.ibg-table .ibg-title { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibg-table select { width: 100%; border: 1px solid var(--app-line); border-radius: 4px; padding: 3px 5px; font-size: 12px; background: var(--app-bg); color: var(--text); }
/* reference lightbox */
.ref-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; }
.ref-lightbox .rlb-stage { max-width: 88vw; max-height: 88vh; text-align: center; }
.ref-lightbox .rlb-stage img { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.ref-lightbox .rlb-cap { color: #fff; font-size: 13px; margin-top: 10px; }
.rlb-close { position: absolute; top: 16px; right: 18px; background: rgba(255,255,255,.12); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.rlb-close:hover { background: rgba(255,255,255,.25); }
.rlb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: none; width: 44px; height: 64px; font-size: 32px; cursor: pointer; border-radius: 8px; }
.rlb-nav:hover { background: rgba(255,255,255,.25); }
.rlb-prev { left: 16px; } .rlb-next { right: 16px; }
/* R15 */
/* per-shot time-budget badge */
.shot-timebudget { font-weight: 700; }
.shot-timebudget--over { background: rgba(220,38,38,.1); color: #991b1b; border: 1px solid rgba(220,38,38,.28); }
.shot-timebudget--under { background: rgba(22,163,74,.1); color: #166534; border: 1px solid rgba(22,163,74,.3); }
.shot-timebudget--ok { background: rgba(120,120,120,.1); color: var(--dim); border: 1px solid var(--app-line); }
/* shoot-day chip drop target */
.shootday-chip--drop { outline: 2px dashed var(--accent); outline-offset: 1px; background: rgba(99,102,241,.12); }
/* contact-sheet / archive: print-only styles inline in their windows */
/* compact density mode (applied to <html>) */
.plan-compact .shot-row { padding-top: 3px; padding-bottom: 3px; }
.plan-compact .shot-row__ref { width: 30px; height: 30px; }
.plan-compact .shot-row__meta { gap: 3px; }
.plan-compact .shot-row__title { font-size: 13px; }
.plan-compact .shot-row__acts .ico-btn { padding: 2px 5px; }
.plan-compact .shot-row__meta .shot-row__tag { font-size: 9px; padding: 0 4px; }

/* ============================================================
   COMPREHENSIVE POLISH PASS — Production-Grade Refinements
   ============================================================ */

/* ── Button Styling Refinement ── */
.ab {
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  letter-spacing: .01em;
}
.ab:hover:not(:disabled) { transform: translateY(-1px); }
.ab:active:not(:disabled) { transform: translateY(0); }
.ab--primary {
  background: var(--accent, #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.ab--primary:hover:not(:disabled) {
  background: var(--accent-dark, #4f46e5);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.ab--primary:active:not(:disabled) { box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15); }
.ab--ghost:hover:not(:disabled) {
  background: var(--app-surface);
  border-color: var(--accent);
  color: var(--accent);
}
.ab:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Form Field Styling Enhancement ── */
.app-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.app-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}
.app-field input[type="text"],
.app-field input[type="number"],
.app-field input[type="date"],
.app-field input[type="email"],
.app-field input[type="password"],
.app-field input[type="search"],
.app-field textarea,
.app-field select {
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  background: var(--app-bg);
  color: var(--text);
  font-size: 13px;
  transition: all .15s;
  font-family: inherit;
}
.app-field input::placeholder,
.app-field textarea::placeholder {
  color: var(--faint);
}
.app-field input:focus,
.app-field textarea:focus,
.app-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--app-surface);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.app-field input:disabled,
.app-field textarea:disabled,
.app-field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Empty State Polish ── */
.app-dropzone {
  text-align: center;
  padding: 64px 40px 48px;
}
.app-dropzone__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  opacity: 0.6;
  color: var(--dim);
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.app-dropzone:hover .app-dropzone__icon { opacity: 1; transform: scale(1.08); }
.app-dropzone h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -.02em;
}
.app-dropzone > p {
  font-size: 14px;
  color: var(--dim);
  margin: 0 0 28px;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.app-dropzone__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.app-dropzone__hint {
  font-size: 12px;
  color: var(--faint);
  margin: 0;
  line-height: 1.5;
}

/* ── Section Header Refinement ── */
.plan-sechead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--app-line);
}
.plan-sechead h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
  color: var(--text);
}
.plan-sechead p {
  color: var(--dim);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  max-width: 60ch;
}

/* ── Dialog Panel Refinement ── */
.app-dialog__panel {
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--app-line) transparent;
}
.app-dialog__panel h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -.02em;
}
.app-dialog__panel > .sub {
  font-size: 14px;
  color: var(--dim);
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ── Transition & Motion Polish ── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Color Token Consistency ── */
input::-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--app-bg) inset;
  -webkit-text-fill-color: var(--text);
}
input::-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--app-surface) inset, 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ── Icon Consistency ── */
.ab::before { margin-right: 4px; }
.ab--sm { padding: 6px 10px; font-size: 12px; }
.ab--sm::before { margin-right: 3px; }

/* ── Nested Dialog Shadows ── */
.app-dialog { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }

/* ── Link Styling ── */
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark, #4f46e5); text-decoration: underline; }

/* ── Select Element Refinement ── */
select { appearance: none; padding-right: 28px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236366f1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 12px; }

/* ── Label Focus State ── */
label { cursor: pointer; }

/* ── Checkbox & Radio Polish ── */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent, #6366f1);
  cursor: pointer;
  transition: all .15s;
}
input[type="checkbox"]:hover,
input[type="radio"]:hover { transform: scale(1.1); }

/* ── Textarea Refinement ── */
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
