*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",Arial,sans-serif;background:#f5f7fb;color:#172033}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}.shell{display:flex;min-height:100vh}.side{width:240px;background:#111827;color:#fff;padding:20px 14px;position:fixed;inset:0 auto 0 0}.brand{font-size:18px;font-weight:700;padding:10px 12px 24px}.nav button{display:block;width:100%;text-align:left;background:transparent;color:#cbd5e1;padding:11px 12px;border-radius:8px;margin:4px 0}.nav button.active,.nav button:hover{background:#253047;color:#fff}.nav button:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}.sidefoot{position:absolute;bottom:20px;left:14px;right:14px}.main{margin-left:240px;flex:1;padding:24px;max-width:1500px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.top h1{margin:0;font-size:24px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:18px;box-shadow:0 2px 8px #00000008}.stat{font-size:28px;font-weight:700;margin-top:8px}.muted{color:#6b7280;font-size:13px}.row{display:flex;gap:10px;align-items:center}.between{justify-content:space-between}.input,.textarea,select{width:100%;border:1px solid #d7dce5;border-radius:8px;padding:10px;background:#fff}.textarea{min-height:140px;resize:vertical}.primary{background:#2563eb;color:#fff;padding:10px 15px;border-radius:8px}.secondary{background:#e9eef7;color:#24324a;padding:10px 15px;border-radius:8px}.danger{background:#fee2e2;color:#b91c1c;padding:8px 12px;border-radius:8px}.small{padding:7px 10px;font-size:13px}.project{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #edf0f4}.project:last-child{border-bottom:0}.pill{display:inline-block;padding:3px 8px;border-radius:999px;background:#e8f0ff;color:#2456ad;font-size:12px}.chat{display:flex;flex-direction:column;gap:12px;max-height:58vh;overflow:auto;padding:4px}.msg{max-width:86%;padding:12px 14px;border-radius:12px;white-space:pre-wrap;line-height:1.6}.user{align-self:flex-end;background:#dbeafe}.assistant{align-self:flex-start;background:#f0f2f6}.composer{margin-top:14px;display:flex;gap:10px}.composerbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px;min-height:20px}.asyncchk{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#6b7280;cursor:pointer;user-select:none;white-space:nowrap}.asyncchk input{width:auto;margin:0;cursor:pointer}#composer-hint{font-size:12px;color:#2456ad;background:#eef4ff;padding:2px 8px;border-radius:6px}.composer textarea{min-height:90px}.hidden{display:none!important}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eef4ff,#f8fafc)}.loginbox{width:min(430px,92vw);background:#fff;padding:28px;border-radius:16px;box-shadow:0 20px 60px #0001}.loginbox h1{margin-top:0}.notice{padding:10px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;color:#9a3412;margin:10px 0}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.section{margin-top:18px}.kv{display:grid;grid-template-columns:150px 1fr;gap:8px;font-size:14px}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;word-break:break-all}.empty{text-align:center;padding:40px;color:#8a93a3}.toast{position:fixed;right:20px;bottom:20px;background:#111827;color:#fff;padding:11px 15px;border-radius:8px;z-index:99}@media(max-width:900px){.side{width:72px;padding:16px 10px}.brand{font-size:0;text-align:center;padding:8px 0 20px}.brand:after{content:"AI";font-size:17px;font-weight:700;letter-spacing:.5px}.nav button{font-size:0;text-align:center;padding:12px 0;line-height:1;position:relative}.nav button:before{content:"";display:block;width:22px;height:22px;margin:0 auto;background:center/contain no-repeat}.nav button:nth-child(1):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10 12 3l9 7'/%3E%3Cpath d='M5 8.5V21h14V8.5'/%3E%3C/svg%3E")}.nav button:nth-child(2):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E")}.nav button:nth-child(3):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h6'/%3E%3C/svg%3E")}.nav button:nth-child(4):before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13'/%3E%3Cpath d='M3.5 6h.01M3.5 12h.01M3.5 18h.01'/%3E%3C/svg%3E")}.sidefoot{bottom:16px;left:10px;right:10px}.sidefoot button{font-size:0;padding:10px 0}.sidefoot button:before{content:"";display:block;width:20px;height:20px;margin:0 auto;background:center/contain no-repeat;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E")}.main{margin-left:72px;padding:18px 14px}.grid{grid-template-columns:1fr}.kv{grid-template-columns:1fr}.composer{flex-direction:column;align-items:stretch}.composer button{align-self:stretch!important}.composerbar{flex-direction:column;align-items:flex-start;gap:6px}.top{flex-wrap:wrap;gap:10px}.msg{max-width:94%}}
@media(max-width:480px){.side{width:60px;padding:14px 8px}.main{margin-left:60px;padding:14px 10px}.top h1{font-size:20px}.stat{font-size:22px}.kv{grid-template-columns:1fr;gap:4px}}
/* ===== 短剧跑批：剧本导入 / 进度条 / 选项卡片 / 决策登记册 ===== */
.sectitle{display:flex;gap:10px;align-items:baseline;margin-bottom:12px}
.drop{border:2px dashed #c7d2e5;border-radius:12px;padding:26px 18px;text-align:center;background:#fafcff;cursor:pointer;transition:.15s}
.drop:hover,.drop.over{border-color:#2563eb;background:#f0f6ff}
.scripthead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.eplist{margin-top:12px;border-top:1px solid #edf0f4}
.eprow{display:flex;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #f3f5f9}
.eprow:last-child{border-bottom:0}
.eptitle{flex:1;font-weight:500}
.runbarhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.pbar{height:8px;background:#e8eef8;border-radius:99px;margin-top:12px;overflow:hidden}
.pbar i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#60a5fa);border-radius:99px;transition:width .4s}
.pill.ok{background:#dcfce7;color:#15803d}
.pill.bad{background:#fee2e2;color:#b91c1c}
.pendhead,.ledhead{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px;gap:10px;flex-wrap:wrap}
.qcard{border:1px solid #dbe4f3;border-radius:12px;padding:16px;margin-bottom:12px;background:#fafcff}
.qcard:last-child{margin-bottom:0}
.qhead{font-weight:700;margin-bottom:6px}
.qbody{color:#334155;margin-bottom:12px;line-height:1.6}
.opts{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.opt{display:flex;flex-direction:column;gap:3px;text-align:left;padding:11px 13px;border:1px solid #cfdcef;border-radius:9px;background:#fff;transition:.15s}
.opt:hover{border-color:#2563eb;background:#f4f8ff}
.opt.rec{border-color:#93b4f5;background:#eef4ff}
.opt:disabled{opacity:.55;cursor:default}
.optlab{font-weight:600;display:flex;align-items:center;gap:6px}
.optdesc{font-size:12px;color:#6b7280;line-height:1.5}
.rectag{font-size:11px;background:#2563eb;color:#fff;border-radius:99px;padding:1px 7px;font-weight:500}
.freewrap{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.freewrap .input{flex:1;min-width:200px}
.ledlist{margin-top:4px}
.ledrow{display:grid;grid-template-columns:64px 72px 90px 1fr;gap:10px;align-items:center;padding:8px 10px;border-radius:8px;font-size:13px;border-bottom:1px solid #f3f5f9}
.ledrow:last-child{border-bottom:0}
.ledrow .did{font-weight:700;font-family:ui-monospace,Menlo,monospace}
.ledrow .dstage,.ledrow .dstat{color:#6b7280;font-size:12px}
.ledrow .dval{color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ledrow.ok{background:#f2fcf5}
.ledrow.ok .dstat{color:#15803d;font-weight:600}
.ledrow.open{background:#fff9ed}
.ledrow.open .dstat{color:#b45309;font-weight:600}
.ledrow.def{background:#f7f9fc}
.ledrow.off{opacity:.6}
.ledlist.dim{background:#fbfcfe;border-radius:8px;padding:4px}
.ledfold{margin-top:12px}
.ledfold summary{cursor:pointer;color:#4b5563;font-size:13px;padding:6px 0}
@media(max-width:720px){.ledrow{grid-template-columns:56px 1fr;grid-auto-rows:auto}.ledrow .dstage,.ledrow .dstat{grid-column:2}.ledrow .dval{grid-column:2;white-space:normal}}
