:root{--ink:#18211b;--muted:#657068;--paper:#f5f6f1;--card:#fff;--line:#dfe4dc;--green:#2f6d4f;--green2:#dff0e5;--lime:#d8ff72;--amber:#a76814;--amberbg:#fff0d7;--red:#a44545;--redbg:#fde9e7;--shadow:0 16px 45px rgba(31,45,34,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.shell{max-width:1440px;margin:auto;min-height:100vh;padding:0 34px 70px}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--ink);color:var(--lime);font-weight:900}.brand strong,.brand small{display:block}.brand small{color:var(--muted);font-size:12px}.top-actions{display:flex;align-items:center;gap:18px}.top-actions form{margin:0}.text-button,.back{border:0;background:none;color:var(--muted);cursor:pointer;text-decoration:none;font:inherit}.text-button:hover,.back:hover{color:var(--ink)}main{padding-top:46px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(34px,4vw,55px);line-height:1.03;letter-spacing:-.045em;margin-bottom:14px}h2{font-size:25px;letter-spacing:-.025em;margin-bottom:6px}p{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.13em;color:var(--green);font-size:11px;font-weight:800}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:11px;padding:12px 18px;font-weight:750;text-decoration:none;cursor:pointer;font:inherit;white-space:nowrap}.button.primary{background:var(--ink);color:white}.button.primary:hover{background:var(--green)}.button.secondary{background:white;border-color:var(--line);color:var(--ink)}.button.wide{width:100%}.hero-row{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:34px}.hero-row p{font-size:17px;max-width:690px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.metric{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;align-items:flex-end;justify-content:space-between;min-height:102px}.metric span{color:var(--muted);max-width:140px}.metric strong{font-size:36px;line-height:1}.metric.warn{background:var(--amberbg)}.panel,.form-card{background:var(--card);border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow);padding:26px;margin-bottom:20px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.project-list{border-top:1px solid var(--line)}.project-row{display:flex;align-items:center;justify-content:space-between;padding:17px 4px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}.project-row:hover{background:#f9faf7}.project-main,.project-side{display:flex;align-items:center;gap:13px}.project-icon{width:38px;height:38px;border-radius:12px;background:var(--green2);display:grid;place-items:center;color:var(--green)}.project-main strong,.project-main small{display:block}.project-main small{color:var(--muted);margin-top:2px}.chevron{font-size:28px;color:#a7afa8}.status{display:inline-flex;border-radius:999px;padding:6px 10px;background:#edf0eb;color:#556159;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.status-script_review,.status-final_review{background:var(--amberbg);color:var(--amber)}.status-production,.status-drafting_script,.status-revising_script,.status-correcting{background:#e1eaf8;color:#315f9a}.status-needs_attention{background:var(--redbg);color:var(--red)}.status-approved_for_publishing{background:var(--green2);color:var(--green)}.status.large{padding:9px 14px}.empty{text-align:center;padding:65px 20px}.empty-icon{font-size:32px;margin:auto auto 12px;width:60px;height:60px;display:grid;place-items:center;border-radius:18px;background:var(--green2)}.page-head{max-width:850px;margin-bottom:32px}.page-head .back{display:inline-block;margin-bottom:34px}.title-line{display:flex;justify-content:space-between;align-items:flex-end;gap:30px}.title-line h1{margin-bottom:0}.form-card{max-width:1050px}.form-section{padding:8px 0 30px;margin-bottom:24px;border-bottom:1px solid var(--line)}.form-section h2{margin-bottom:18px}.field-grid,.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.stack{display:grid;gap:16px}label{display:grid;gap:7px;font-weight:700}input,textarea{width:100%;border:1px solid #cfd6ce;border-radius:10px;padding:12px 13px;background:#fbfcfa;font:inherit;color:var(--ink)}input:focus,textarea:focus{outline:3px solid rgba(47,109,79,.14);border-color:var(--green)}.upload{border:1px dashed #aab6ab;border-radius:14px;padding:21px;background:#fafbf8}.upload small,label small{color:var(--muted);font-weight:400}.upload input{border:0;padding:10px 0 0;background:transparent}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:20px}.form-footer strong,.form-footer small{display:block}.form-footer small{color:var(--muted)}.timeline{display:flex;align-items:center;background:white;border:1px solid var(--line);border-radius:18px;padding:18px 22px;margin-bottom:20px}.timeline-step{display:flex;align-items:center;gap:10px;min-width:190px;opacity:.52}.timeline-step>span{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#e7eae5;font-weight:800}.timeline-step strong,.timeline-step small{display:block}.timeline-step small{color:var(--muted);font-size:11px}.timeline-step.active,.timeline-step.done{opacity:1}.timeline-step.active>span{background:var(--lime)}.timeline-step.done>span{background:var(--green);color:white}.timeline-line{height:1px;background:var(--line);flex:1;margin:0 16px}.working{display:flex;align-items:center;gap:18px;background:#f0f5ff}.pulse{width:18px;height:18px;border-radius:50%;background:#4784cf;box-shadow:0 0 0 0 rgba(71,132,207,.5);animation:pulse 1.8s infinite}@keyframes pulse{70%{box-shadow:0 0 0 13px rgba(71,132,207,0)}}.working h2{margin-bottom:3px}.working p{margin-bottom:4px}.comparison-wrap{overflow:auto;border:1px solid var(--line);border-radius:13px}.comparison{border-collapse:collapse;width:100%;min-width:1200px;font-size:13px}.comparison th{background:#f1f3ef;text-align:left;padding:12px;position:sticky;top:0}.comparison td{vertical-align:top;padding:13px 12px;border-top:1px solid var(--line);max-width:280px}.comparison td small,.comparison td span{display:block}.comparison td small{color:var(--muted);margin-top:5px}.line-no{font-weight:900;color:var(--green)}.decision{display:inline-flex!important;background:#edf0eb;border-radius:999px;padding:4px 7px;font-size:10px;text-transform:uppercase;font-weight:800}.review-actions{display:grid;grid-template-columns:1.4fr .8fr;gap:18px;margin-top:22px}.feedback-form,.approve-box{border:1px solid var(--line);border-radius:14px;padding:19px}.feedback-form button{margin-top:12px}.approve-box{background:var(--green2)}.approve-box p{font-size:13px}.final-grid{display:grid;grid-template-columns:1fr 320px;gap:22px}.video-frame{background:#111;border-radius:14px;overflow:hidden;display:flex;justify-content:center;min-height:450px}.video-frame video{max-width:100%;max-height:72vh}.qc-card{border:1px solid var(--line);border-radius:14px;padding:22px}.pass{display:inline-block;padding:6px 10px;border-radius:999px;background:var(--green2);color:var(--green);font-weight:800;text-transform:uppercase}.document,.log{white-space:pre-wrap;overflow:auto;background:#111b15;color:#dce9df;border-radius:12px;padding:17px;max-height:480px;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}.alert{padding:13px;border-radius:10px;margin-bottom:14px}.alert.danger,.attention{background:var(--redbg);border-color:#f2c5c0}.success-panel{display:flex;align-items:center;gap:18px;background:var(--green2)}.success-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--green);color:#fff;font-size:25px}.details summary{font-weight:800;cursor:pointer}.details[open] summary{margin-bottom:18px}.login-wrap{min-height:calc(100vh - 170px);display:grid;place-items:center}.login-card{width:min(460px,100%);background:white;border:1px solid var(--line);border-radius:22px;padding:38px;box-shadow:var(--shadow)}.login-card h1{font-size:40px;margin-top:8px}
@media(max-width:900px){.shell{padding:0 18px 50px}.metric-grid{grid-template-columns:1fr 1fr}.timeline{display:grid;grid-template-columns:1fr;align-items:start;gap:8px}.timeline-step{min-width:0}.timeline-line{width:1px;height:18px;min-width:0;margin:-3px 0 -3px 16px}.review-actions,.final-grid{grid-template-columns:1fr}.field-grid,.upload-grid{grid-template-columns:1fr}.hero-row,.title-line,.form-footer{align-items:flex-start;flex-direction:column}.comparison-wrap{margin-left:-14px;margin-right:-14px}.topbar{height:72px}.top-actions .secondary{display:none}}@media(max-width:540px){main{padding-top:30px}.metric-grid{grid-template-columns:1fr}.project-side .status{display:none}.panel,.form-card{padding:18px}.timeline-step{min-width:0}.timeline-step small{max-width:none}}
