:root { --bg: #121212; --panel: #1a1a1a; --text: #f5f5f5; --muted: #b5b5b5; --border: #363636; --accent: #f97316; color-scheme: dark; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
[hidden] { display: none !important; }
a { color: #ffb579; text-underline-offset: 4px; overflow-wrap: anywhere; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--border); }
.brand { color: var(--text); font-size: 19px; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.brand span { font-weight: 450; color: var(--muted); margin-left: 8px; }
main { max-width: 1180px; margin: 28px auto 64px; padding: 0 24px; }
.pilot-banner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; border-left: 3px solid var(--accent); padding: 10px 16px; background: #21180f; }
.pilot-banner strong { color: #ffb579; }
#team-actor { overflow-wrap: anywhere; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 14px; }
h1 { font-size: 30px; line-height: 1.15; margin: 4px 0; letter-spacing: -.035em; }
h2 { font-size: 19px; line-height: 1.35; margin: 0 0 12px; overflow-wrap: anywhere; }
h3 { font-size: 14px; margin: 24px 0 8px; color: #e3e3e3; }
h4 { margin: 16px 0 6px; font-size: 15px; }
p { margin: 8px 0; }
.eyebrow { font-size: 11px; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.muted { color: var(--muted); font-size: 13px; }
.identifier { color: var(--muted); overflow-wrap: anywhere; font-size: 12px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.panel { background: var(--panel); border: 1px solid var(--border); padding: 24px; border-radius: 10px; margin-bottom: 18px; min-width: 0; }
.review-status { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.review-status > p { grid-column: 1 / -1; margin: 0; }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.source { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 14px 16px; border: 1px solid #333; border-radius: 6px; background: #141414; font-family: inherit; font-size: 14px; line-height: 1.75; }
#team-characters pre, #team-draft pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
.asset-list { margin: 16px 0 0; padding-left: 20px; }
.asset-list li { margin: 8px 0; overflow-wrap: anywhere; }
.asset-list span { color: var(--muted); font-size: 12px; }
button { min-height: 42px; padding: 10px 15px; border: 1px solid #545454; border-radius: 6px; color: var(--text); background: #282828; font: inherit; font-weight: 600; cursor: pointer; }
button:hover:not(:disabled) { background: #353535; border-color: #858585; }
button.primary { background: var(--accent); color: #160c03; border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: #ff8c32; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, a:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #ffb579; outline-offset: 4px; }
aside button { width: 100%; }
label { display: block; font-size: 13px; margin: 22px 0 8px; }
textarea { display: block; width: 100%; resize: vertical; background: #121212; color: var(--text); font: inherit; border: 1px solid #545454; border-radius: 6px; padding: 12px; margin-bottom: 12px; }
textarea:disabled { opacity: .6; }
.prepare-action { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
#team-notice { padding: 8px 0 16px; color: #ffca9b; min-height: 32px; }
#team-recovery { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 12px; font-size: 13px; }
.gates { padding-left: 18px; margin: 0; color: var(--muted); font-size: 13px; }
.gates li { margin: 10px 0; }
.timeline { padding: 0; margin: 0; list-style: none; }
.timeline li { border-top: 1px solid var(--border); padding: 14px 0; overflow-wrap: anywhere; }
.timeline strong { font-size: 12px; }
.timeline p { font-size: 13px; white-space: pre-wrap; }
.timeline time { font-size: 11px; color: var(--muted); }
.metadata { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; color: var(--muted); }
summary { cursor: pointer; min-height: 44px; padding: 8px 0; font-weight: 600; }
.review-details { min-width: 0; max-width: 100%; margin: 4px 0; }
.review-details summary { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
#team-package pre, .questions pre, .checklist pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; margin: 4px 0 12px; }
#team-package strong, .checklist strong { font-size: 12px; color: var(--muted); }
.beat-card { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 16px; margin: 14px 0; }
.beat-card h4, .shot-panel h4 { margin-top: 0; }
.script-line { border-left: 2px solid #666; padding-left: 12px; margin: 12px 0; }
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.voices article { border-bottom: 1px solid var(--border); }
.plan-scroll { overflow-x: auto; }
.shot-plan { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 10px; }
.shot-panel { border: 1px solid var(--border); padding: 12px; border-radius: 6px; min-width: 0; }
.plan-notice { color: #ffca9b; border-left: 3px solid var(--accent); padding-left: 12px; }
.questions li { margin: 16px 0; }
#team-workflow-start, #team-workflow-retry, #team-approve-script { margin-bottom: 10px; }
#team-legacy { font-size: 13px; }
.brief-selection { max-width: 660px; margin-bottom: 24px; }
.brief-selection label { margin-top: 0; }
.brief-selection select { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--panel); color: var(--text); border: 1px solid #545454; border-radius: 6px; font: inherit; }
.brief-selection select:disabled { opacity: .6; cursor: not-allowed; }
.brief-selection select:focus-visible { outline: 2px solid #ffb579; outline-offset: 4px; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } .review-status { grid-template-columns: 1fr; } .panel { padding: 20px; } main { padding: 0 16px; } .page-heading { align-items: flex-start; } }

/* Pipeline board (shared look with the author's board). Cards needing the team pulse; author-owned cards are locked but open. */
.board { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 16px; align-items: start; }
.board-column { background: var(--color-surface-2, rgba(255,255,255,.03)); border: 1px solid var(--color-border, #2a2a2a); border-radius: 10px; padding: 10px; min-height: 120px; }
.board-column h3 { margin: 0 0 8px; font: 600 11px/1.3 var(--font-mono, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-dim, #8a8a8a); }
.board-card { display: block; width: 100%; text-align: left; background: var(--color-surface, #141414); border: 1px solid var(--color-border, #2a2a2a); border-radius: 8px; padding: 10px; margin: 0 0 8px; cursor: pointer; color: inherit; font: inherit; }
.board-card strong { display: block; font-size: 13px; line-height: 1.35; }
.board-card .board-step { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--color-text-secondary, #bdbdbd); }
.board-card .board-chip { display: inline-block; margin-top: 6px; font: 600 10px/1.4 var(--font-mono, inherit); letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; border: 1px solid currentColor; }
.board-card.mine { border-color: var(--color-accent, #f5a623); animation: card-pulse 2.2s ease-in-out infinite; }
.board-card.mine .board-chip { color: var(--color-accent, #f5a623); }
.board-card.locked { opacity: .72; } .board-card.locked strong::before { content: '🔒 '; font-size: 11px; }
.board-card.done { opacity: .6; } .board-card.current { outline: 2px solid var(--color-accent, #f5a623); outline-offset: 1px; cursor: default; }
@keyframes card-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); } 50% { box-shadow: 0 0 0 4px rgba(245,166,35,.25); } }
@media (prefers-reduced-motion: reduce) { .board-card.mine { animation: none; box-shadow: 0 0 0 2px rgba(245,166,35,.35); } }
@media (max-width: 959px) { .board { grid-template-columns: repeat(2, minmax(140px, 1fr)); } }
.team-selector-legacy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
details.advanced > summary { cursor: pointer; color: var(--color-text-dim, #8a8a8a); font-size: 12px; margin: 10px 0 6px; }
#team-margin { display: inline-block; margin: 0 0 12px; }

/* Compact chrome above the board: the board is the page. */
.board-page .pilot-banner { padding: 6px 12px; font-size: 13px; gap: 8px 18px; }
.board-page #team-account, .board-page #team-client { display: inline-block; margin: 4px 16px 0 0; font-size: 12px; color: var(--color-text-dim, #8a8a8a); }
.board-page .board-heading { margin: 10px 0 2px; } .board-page .board-heading h1 { font-size: 22px; margin: 0; } .board-page .board-heading .eyebrow { margin: 0; }
.board-page #team-notice { padding: 2px 0 6px; min-height: 0; font-size: 13px; }
.board-page .board { height: calc(100vh - 250px); }
