:root{--bg:#f5f7f2;--surface:#fff;--surface-soft:#f9fbf7;--text:#17211d;--muted:#68756f;--line:#dfe7dc;--teal:#087f72;--teal-soft:#e3f4ef;--blue:#2563eb;--blue-soft:#e7efff;--amber:#b7791f;--amber-soft:#fff3d7;--rose:#c24155;--rose-soft:#ffe7ea;--green:#2f855a;--green-soft:#e3f3e8;--shadow:0 18px 38px #202e2717;color:var(--text);background:var(--bg);font-synthesis:none;letter-spacing:0;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Microsoft YaHei,PingFang SC,Noto Sans CJK SC,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;overflow:hidden}button,input,select,textarea{font:inherit;letter-spacing:0}button{cursor:pointer}button:disabled{cursor:wait;opacity:.72}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}#app{height:100vh;min-height:0}.app-shell{flex-direction:column;height:100vh;min-height:0;padding:20px;display:flex;overflow:hidden}.topbar{flex:none;justify-content:space-between;align-items:center;gap:16px;width:min(1440px,100%);margin:0 auto 18px;display:flex}.brand{align-items:center;gap:12px;min-width:0;display:flex}.brand-logo{background:var(--surface);width:44px;height:44px;box-shadow:var(--shadow);border-radius:8px;flex:none}.brand strong,.brand small{display:block}.brand strong{font-size:19px;line-height:1.25}.brand small{color:var(--muted);margin-top:2px;font-size:13px}.quick-links{align-items:center;gap:8px;display:flex}.quick-links a,.quick-links button{height:40px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:8px;align-items:center;gap:7px;padding:0 12px;display:inline-flex;box-shadow:0 8px 20px #202e270d}.user-chip{color:#075a51;background:var(--teal-soft);border:1px solid #b7dcd5;border-radius:8px;align-items:center;gap:7px;min-height:40px;padding:0 12px;font-weight:800;display:inline-flex}.workspace{grid-template-columns:400px minmax(0,1fr);align-items:stretch;gap:18px;width:min(1440px,100%);min-height:0;margin:0 auto;display:grid}.auth-shell{flex:auto;place-items:center;width:min(1440px,100%);min-height:0;margin:0 auto;display:grid}.auth-panel{background:var(--surface);border:1px solid var(--line);width:min(460px,100%);box-shadow:var(--shadow);border-radius:8px;gap:16px;padding:24px;display:grid}.auth-panel h1{font-size:28px;line-height:1.2}.auth-panel p,.panel-head p{color:var(--muted);line-height:1.55}.admin-gate-backdrop{z-index:50;background:#0b14117a;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.admin-gate-dialog{background:var(--surface);border:1px solid var(--line);border-radius:8px;gap:16px;width:min(420px,100%);padding:22px;display:grid;box-shadow:0 24px 80px #0b141138}.admin-gate-dialog h2{font-size:24px;line-height:1.2}.admin-gate-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.logout-dialog{width:min(520px,100vw - 32px)}.logout-note{color:var(--muted);line-height:1.65}.logout-actions{grid-template-columns:1fr 1fr;gap:9px;display:grid}.logout-actions .secondary{grid-column:1/-1}.auth-tabs{background:#eef3f0;border-radius:8px;grid-template-columns:1fr 1fr;gap:4px;padding:4px;display:grid}.auth-tabs button{min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:6px;font-weight:800}.auth-tabs button.active{color:#075a51;background:var(--surface);box-shadow:0 3px 10px #202e2714}.intake-panel,.preview-panel,.task-panel,.project-band{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px}.intake-panel{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;overflow-y:auto}.project-workspace{align-content:start}.panel-head{gap:10px;padding:20px 20px 0;display:grid}.panel-title-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.help-badge{color:#075a51;background:var(--teal-soft);border:1px solid #b7dcd5;border-radius:999px;place-items:center;width:26px;height:26px;font-weight:900;display:grid}.help-badge[aria-expanded=true]{color:#fff;background:var(--teal);border-color:var(--teal)}.help-tags{flex-wrap:wrap;gap:8px;display:flex}.help-tags span{color:#354940;border:1px solid var(--line);background:#eef4ee;border-radius:8px;padding:6px 8px;font-size:12px;line-height:1.35}.panel-head h1{font-size:24px;line-height:1.24}.section-title,.block-label{color:var(--teal);align-items:center;gap:8px;font-weight:800;display:inline-flex}.form-stack{gap:18px;padding:20px;display:grid}.project-list-panel{gap:14px;padding:20px;display:grid}.new-project-button{color:#075a51;background:var(--teal-soft);border:1px solid #b7dcd5;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:44px;font-weight:900;display:inline-flex}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.field,.control-block{gap:8px;display:grid}.field span{color:var(--muted);font-size:13px;line-height:1.3}.field-title{justify-content:space-between;align-items:center;gap:10px;display:flex}.mini-action{color:#075a51;background:var(--teal-soft);border:1px solid #b7dcd5;border-radius:8px;align-items:center;gap:5px;min-height:28px;padding:0 8px;font-size:12px;font-weight:900;display:inline-flex}.wide{grid-column:1/-1}input,select,textarea{width:100%;color:var(--text);background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;outline:none}input,select{height:42px;padding:0 11px}.file-input{padding:8px 11px}.file-input::file-selector-button{color:#075a51;background:var(--teal-soft);border:1px solid #b7dcd5;border-radius:6px;height:26px;margin-right:10px;font-weight:800}textarea{resize:vertical;min-height:156px;padding:11px;line-height:1.55}.script-assistant{border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:12px;padding:14px 0;display:grid}.script-assistant-head,.script-composer{justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.script-assistant-head strong,.script-assistant-head span{display:block}.script-head-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.script-assistant-head strong{font-size:15px}.script-assistant-head span{color:var(--muted);margin-top:3px;font-size:12px}.script-stage-tabs{background:#e7eeea;border-radius:8px;grid-template-columns:repeat(3,minmax(0,1fr));padding:3px;display:grid}.script-stage-tabs button{min-height:68px;color:var(--muted);text-align:left;background:0 0;border-radius:6px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 7px;padding:8px 10px;display:grid}.script-stage-tabs button:disabled{cursor:not-allowed;opacity:.55}.script-stage-tabs button strong{font-size:13px}.script-stage-tabs button small{grid-column:2;font-size:11px;font-weight:500;line-height:1.35}.stage-number{color:#fff;background:#7c8b84;border-radius:50%;grid-row:1/span 2;justify-content:center;align-items:center;width:24px;height:24px;font-size:12px;font-weight:900;display:inline-flex}.script-stage-tabs button.active .stage-number,.script-stage-tabs button.completed .stage-number{background:var(--teal)}.stage-guide{color:#075a51;background:var(--teal-soft);border-left:3px solid var(--teal);justify-content:space-between;align-items:center;gap:10px;padding:9px 11px;display:flex}.stage-guide span{color:var(--muted);font-size:12px}.stage-advance{color:#fff;background:var(--teal);border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:40px;font-weight:900;display:inline-flex}.stage-advance:disabled{cursor:not-allowed;opacity:.5}.script-principles{flex-wrap:wrap;gap:7px;display:flex}.script-principles span{color:#75500b;background:var(--amber-soft);border:1px solid #edd69d;border-radius:6px;padding:4px 8px;font-size:12px;font-weight:800}.script-conversation{border:1px solid var(--line);background:#edf2ef;border-radius:8px;gap:10px;max-height:420px;padding:12px;display:grid;overflow:auto}.script-message{border:1px solid var(--line);background:#fff;border-radius:8px;width:min(86%,720px);padding:10px 12px}.script-message.user{color:#fff;background:#087f72;border-color:#087f72;justify-self:end}.script-message.selected{border-color:var(--amber);box-shadow:0 0 0 3px #b47a1329}.script-select{cursor:pointer;align-items:center;gap:6px;margin-bottom:7px;font-size:12px;font-weight:800;display:flex}.script-select input{width:16px;height:16px;accent-color:var(--amber);padding:0}.script-message small{color:var(--muted);margin-bottom:5px;font-weight:800;display:block}.script-message.user small{color:#ccebe5}.script-message p{white-space:pre-wrap;margin:0;line-height:1.65}.apply-script{color:#075a51;background:var(--teal-soft);border:1px solid #b7dcd5;border-radius:6px;align-items:center;gap:5px;min-height:30px;margin-top:9px;padding:0 8px;font-size:12px;font-weight:900;display:inline-flex}.apply-script.adopted:disabled{color:var(--green);cursor:default;background:var(--green-soft);opacity:1;border-color:#b9dcc8}.script-message-actions{flex-wrap:wrap;gap:7px;display:flex}.script-paused{color:var(--muted);justify-self:center;margin:0;font-size:12px}.script-composer textarea{min-height:88px}.script-composer-actions{flex:0 0 132px;gap:7px;width:132px;display:grid}.memory-status{color:var(--muted);text-align:center;font-size:11px}.script-composer .primary-action,.script-composer .secondary{width:100%}.chip-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.chip{min-height:38px;color:var(--text);text-align:center;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;padding:7px 8px}.chip.active{color:#075a51;background:var(--teal-soft);border-color:var(--teal);font-weight:800}.primary-action{color:#fff;background:var(--teal);border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:46px;font-weight:800;display:inline-flex;box-shadow:0 12px 22px #087f723d}.link-button{min-height:38px;color:var(--teal);background:0 0;border:0;border-radius:8px;font-weight:800}.link-button:hover{background:var(--teal-soft)}.primary-action:disabled{cursor:not-allowed;opacity:1;box-shadow:none;background:#aab4af}.error-line{color:#8a1f31;background:var(--rose-soft);border:1px solid #f4b9c2;border-radius:8px;margin:16px 20px 0;padding:12px 14px}.result-stack{overscroll-behavior:contain;scrollbar-gutter:stable;align-content:start;gap:14px;min-width:0;height:100%;min-height:0;padding-right:4px;display:grid;overflow-y:auto}.status-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.metric{width:100%;min-height:86px;color:var(--text);text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:8px;align-items:center;gap:12px;padding:16px;display:flex;box-shadow:0 10px 26px #202e270d}.metric svg{flex:none}.metric strong{font-size:25px;line-height:1.1;display:block}.metric span{color:var(--muted);margin-top:3px;font-size:13px;display:block}.metric small{color:var(--muted);margin-top:4px;font-size:12px;line-height:1.3;display:block}.metric.active{border-color:var(--teal);box-shadow:0 0 0 3px #087f721f}.metric.neutral svg{color:var(--blue)}.metric.rush svg{color:var(--amber)}.metric.stable svg{color:var(--teal)}.metric.safe svg{color:var(--green)}.lead-result{border:1px solid var(--line);background:linear-gradient(135deg,#fff 0%,#f3faf6 55%,#eef4ff 100%);border-radius:8px;justify-content:space-between;align-items:center;gap:14px;min-height:108px;padding:18px;display:flex}.eyebrow{color:var(--muted);margin-bottom:4px;font-size:13px;line-height:1.35;display:block}.lead-result h2{font-size:24px;line-height:1.25}.lead-result p{color:var(--muted);margin-top:6px;line-height:1.5}.score-badge{color:#075a51;white-space:nowrap;background:var(--teal-soft);border-radius:8px;align-items:center;gap:8px;min-height:42px;padding:9px 12px;font-weight:800;display:inline-flex}.preview-panel,.task-panel,.project-band,.matrix-panel,.integration-panel{gap:14px;padding:16px;display:grid}.matrix-panel,.integration-panel{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px}.matrix-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.matrix-card{min-height:210px;color:var(--text);text-align:left;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;align-content:start;gap:10px;padding:14px;display:grid}.matrix-directory .matrix-card{min-height:260px}.matrix-detail{align-content:start}.matrix-card:hover,.matrix-card:focus-visible,.matrix-card.active{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px #087f721f}.matrix-card svg{color:var(--teal)}.matrix-card-head{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.matrix-card-head strong{font-size:16px;line-height:1.3}.matrix-card p{color:#354940;font-size:13px;line-height:1.55}.tool-panel{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;gap:14px;padding:16px;display:grid}.custom-duration{margin-top:9px}.advanced-settings{border:1px solid var(--line);background:#eef3f0;border-radius:8px;padding:10px 12px}.advanced-settings summary{color:var(--text);cursor:pointer;font-weight:900}.advanced-settings[open] summary{margin-bottom:12px}.setting-hint{color:var(--muted);font-size:12px;line-height:1.55}.matrix-abilities{flex-wrap:wrap;gap:6px;display:flex}.matrix-abilities span{color:#075a51;background:var(--teal-soft);border-radius:999px;padding:4px 7px;font-size:12px;font-weight:800}.integration-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.integration-card{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;display:grid}.integration-card strong,.integration-card span{display:block}.integration-card span{color:var(--muted);margin-top:4px;font-size:13px;line-height:1.45}.assist-note{color:#354940;border:1px solid var(--line);background:#eef4ee;border-radius:8px;padding:11px 12px;font-size:13px;line-height:1.55}.section-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.section-row>span:last-child{color:var(--muted);white-space:nowrap;font-size:13px}.matrix-page-actions{flex-wrap:wrap;gap:8px;display:flex}pre{color:#2e3a35;white-space:pre-wrap;word-break:break-word;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;min-height:160px;max-height:260px;margin:0;padding:14px;font-family:Microsoft YaHei,PingFang SC,system-ui,sans-serif;font-size:14px;line-height:1.65;overflow:auto}.job-list,.project-list{gap:12px;display:grid}.job{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;gap:12px;padding:14px;display:grid}.job.done{background:#f8fcf9}.job-head,.project{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;display:grid}.project-item{cursor:pointer}.project-item.active{border-color:var(--teal);background:var(--teal-soft);box-shadow:0 0 0 3px #087f721a}.job strong,.job span,.project strong,.project span{display:block}.job span,.project span{color:var(--muted);margin-top:4px;font-size:13px;line-height:1.35}progress{width:100%;height:8px;accent-color:var(--teal);overflow:hidden}.job-actions{flex-wrap:wrap;gap:10px;display:flex}.secondary,.danger,.job a{border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:34px;padding:0 12px;font-weight:800;display:inline-flex}.secondary{color:var(--text);background:#eef3f0;border:1px solid #d8e0da}.danger{color:#9d2639;background:var(--rose-soft);border:1px solid #f4b9c2;font-weight:800}.job a{color:var(--amber);background:var(--amber-soft)}.job-error{color:#8a2d18;font-size:13px;line-height:1.5}.project{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;grid-template-columns:minmax(0,1fr) auto auto;min-height:62px;padding:12px 14px}.inline-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:inline-flex}.wide-action{width:100%}mark{color:var(--text);white-space:nowrap;background:#eef2ec;border-radius:8px;padding:6px 9px;font-size:12px;font-weight:800;line-height:1.2}.status-failed{color:#9d2639;background:var(--rose-soft)}.empty-results{color:var(--muted);text-align:center;border:1px dashed var(--line);border-radius:8px;padding:28px}.side-note{color:#354940;border:1px solid var(--line);background:#eef4ee;border-radius:8px;align-items:flex-start;gap:9px;margin:20px;padding:13px;line-height:1.55;display:flex}.side-note svg{color:var(--teal);flex:none;margin-top:2px}.muted-text{min-height:34px;color:var(--muted);align-items:center;font-size:13px;display:inline-flex}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=1120px){body{overflow:auto}#app,.app-shell{height:auto;min-height:100vh;overflow:visible}.workspace{grid-template-columns:1fr;min-height:auto}.intake-panel,.result-stack{overscroll-behavior:auto;height:auto;padding-right:0;overflow:visible}}@media (width<=760px){.app-shell{padding:12px}.topbar,.lead-result{flex-direction:column;align-items:stretch}.quick-links{width:100%}.quick-links a,.quick-links button{flex:1;justify-content:center}.status-strip,.field-grid,.matrix-grid,.integration-grid{grid-template-columns:1fr}.chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-row{flex-direction:column;align-items:flex-start}.job-head,.project{grid-template-columns:1fr}.inline-actions{justify-content:flex-start}.script-stage-tabs,.script-composer{grid-template-columns:1fr}.script-composer{flex-direction:column;align-items:stretch}.script-composer .primary-action,.script-composer .secondary,.script-composer-actions,.script-message{width:100%}}:root{--bg:#050812;--surface:#0d1427db;--surface-soft:#101a31c2;--text:#edf5ff;--muted:#8fa4bd;--line:#7eb0ff29;--teal:#41e9d0;--teal-soft:#41e9d01c;--blue:#6c8cff;--blue-soft:#6c8cff21;--amber:#ffcf6e;--amber-soft:#ffcf6e1f;--rose:#ff6f91;--rose-soft:#ff6f911f;--green:#56e39f;--green-soft:#56e39f1f;--shadow:0 24px 70px #00000057, inset 0 1px 0 #ffffff09;font-family:Segoe UI Variable,Microsoft YaHei UI,PingFang SC,Bahnschrift,system-ui,sans-serif}body{color:var(--text);background:radial-gradient(circle at 12% 8%,#495aff33,#0000 31%),radial-gradient(circle at 88% 16%,#1bdbc721,#0000 28%),linear-gradient(145deg,#060914 0%,#080d1b 48%,#050711 100%);position:relative}body:before,body:after{z-index:-1;pointer-events:none;content:"";position:fixed;inset:0}body:before{opacity:.32;background-image:linear-gradient(#74a1ff0e 1px,#0000 1px),linear-gradient(90deg,#74a1ff0e 1px,#0000 1px);background-size:48px 48px;-webkit-mask-image:linear-gradient(#000,#0000 82%);mask-image:linear-gradient(#000,#0000 82%)}body:after{opacity:.18;background:repeating-linear-gradient(0deg,#0000 0 3px,#ffffff06 4px)}button,input,select,textarea,.project,.job,.metric,.matrix-card,.integration-card{transition:border-color .18s,background .18s,box-shadow .18s,transform .18s}.app-shell{padding:18px 22px 22px}.topbar{width:min(1540px,100%);min-height:56px;margin-bottom:16px;padding:0 4px;position:relative}.topbar:after{content:"";background:linear-gradient(90deg,#0000,#41e9d08c,#6c8cff73,#0000);height:1px;position:absolute;bottom:-9px;left:0;right:0}.brand-logo{background:linear-gradient(145deg,#41e9d02b,#6c8cff29);border:1px solid #6defe042;border-radius:14px;width:46px;height:46px;padding:5px;box-shadow:0 0 28px #41e9d021}.brand strong{letter-spacing:.04em;font-size:18px}.brand small{color:#7493b8;letter-spacing:.24em;text-transform:uppercase;font-size:10px;font-weight:700}.quick-links a,.quick-links button,.secondary{color:#c6d7ea;box-shadow:none;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#0e172bb8;border-color:#7ca7e52b}.user-chip,.system-live{color:#bffcf2;background:#41e9d014;border:1px solid #41e9d038;border-radius:10px}.system-live{letter-spacing:.14em;align-items:center;gap:8px;min-height:40px;padding:0 11px;font-size:10px;font-weight:800;display:inline-flex}.system-live i{background:var(--teal);width:7px;height:7px;box-shadow:0 0 0 4px #41e9d014, 0 0 16px var(--teal);border-radius:50%;animation:1.8s ease-in-out infinite signal-pulse}.system-live.offline{color:#ffd2dc;border-color:#ff6f9147}.system-live.offline i{background:var(--rose);box-shadow:0 0 14px var(--rose)}.workspace,.auth-shell,.topbar{width:min(1540px,100%)}.workspace{grid-template-columns:390px minmax(0,1fr);gap:16px}.intake-panel,.result-stack{scrollbar-color:#4c7bb57a transparent}.panel-head h1,.lead-result h2,.auth-panel h1,.admin-gate-dialog h2{letter-spacing:-.025em;font-weight:680}.section-title,.block-label{color:var(--teal);letter-spacing:.055em;font-size:12px}.section-title:after{content:"";background:linear-gradient(90deg,#41e9d0cc,#0000);width:24px;height:1px}input,select,textarea,pre{color:#e9f3ff;background:#0409149e;border-color:#79a5e22e;border-radius:10px}.primary-action,.stage-advance{color:#031613;background:linear-gradient(105deg,#4af1d7,#73c9ff);border:0;border-radius:10px;box-shadow:0 12px 34px #32dcd22b}.primary-action:hover:not(:disabled),.stage-advance:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 16px 42px #32dcd242}.project,.job,.metric,.matrix-card,.integration-card,.tool-panel,.lead-result,.script-message{color:var(--text);background:linear-gradient(145deg,#131e37b3,#0a1122c7);border-color:#78a7e726;border-radius:12px}.project-item.active,.metric.active{box-shadow:inset 3px 0 0 var(--teal), 0 0 26px #41e9d00f;background:linear-gradient(130deg,#41e9d021,#5969ff1a);border-color:#41e9d080}.chip,.auth-tabs,.script-stage-tabs,.script-conversation{color:var(--text);background:#0409148f;border-color:#78a7e724}.integration-card{position:relative;overflow:hidden}.integration-card:before{content:"";background:linear-gradient(var(--teal), var(--blue));width:2px;box-shadow:0 0 16px var(--teal);position:absolute;top:0;bottom:0;left:0}.script-thinking{color:#dffcff;background:linear-gradient(90deg,#41e9d017,#6c8cff12),#070e1df0;border:1px solid #41e9d03d;border-radius:14px;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:14px;width:min(92%,760px);max-width:100%;padding:14px 16px;animation:2.4s ease-in-out infinite thinking-glow;display:grid;overflow:visible;box-shadow:0 0 34px #41e9d014,inset 0 0 24px #6c8cff0a}.thinking-core{width:48px;height:48px;color:var(--teal);place-items:center;display:grid;position:relative}.thinking-core:before{content:"";background:#41e9d014;border-radius:50%;width:28px;height:28px;position:absolute;box-shadow:0 0 22px #41e9d04d}.thinking-core svg{z-index:2;filter:drop-shadow(0 0 8px #41e9d0bf);animation:1.6s ease-in-out infinite core-breathe}.thinking-orbit{border:1px solid #0000;border-top-color:var(--teal);border-right-color:#41e9d02e;border-radius:50%;animation:1.7s linear infinite spin;position:absolute;inset:2px}.thinking-orbit.orbit-two{border-top-color:#0000;border-right-color:var(--blue);animation-duration:1.05s;animation-direction:reverse;inset:8px}.thinking-copy{gap:3px;min-width:0;display:grid}.thinking-copy small{color:#62decf;letter-spacing:0;overflow-wrap:anywhere;font-size:9px;font-weight:800}.thinking-copy strong{letter-spacing:0;overflow-wrap:anywhere;font-size:13px}.thinking-copy span{color:#8199b4;overflow-wrap:anywhere;font-size:11px;line-height:1.45}.thinking-wave{align-items:center;gap:3px;height:28px;display:flex}.thinking-wave i{background:linear-gradient(var(--teal), var(--blue));width:2px;height:6px;animation:1s ease-in-out infinite neural-wave;animation-delay:calc(var(--wave-index) * -70ms);border-radius:99px;box-shadow:0 0 7px #41e9d073}@keyframes signal-pulse{50%{opacity:.55;transform:scale(.78)}}@keyframes core-breathe{50%{opacity:.55;transform:scale(.88)}}@keyframes thinking-glow{50%{border-color:#6c8cff61;box-shadow:0 0 38px #5d7eff1f}}@keyframes neural-wave{0%,to{opacity:.45;height:5px}50%{opacity:1;height:25px}}@media (width<=1120px){body{overflow:auto}#app,.app-shell{height:auto;min-height:100vh;overflow:visible}.workspace{grid-template-columns:minmax(0,1fr);min-height:auto}.intake-panel,.result-stack{height:auto;padding-right:0;overflow:visible}}@media (width<=760px){.app-shell{padding:12px}.topbar{align-items:stretch}.quick-links{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.quick-links button,.user-chip{justify-content:center;width:100%}.system-live{display:none}.script-thinking{grid-template-columns:44px minmax(0,1fr);gap:10px 12px;width:100%;padding:12px}.thinking-wave{grid-column:1/-1;justify-content:center;width:100%;height:24px;display:flex}}:root{--bg:#fff;--surface:#fff;--surface-soft:#f7f9f8;--text:#17211d;--muted:#68756f;--line:#dfe7e2;--teal:#087f72;--teal-soft:#e6f4f1;--blue:#2563eb;--blue-soft:#eaf0ff;--amber:#a8670d;--amber-soft:#fff3d7;--rose:#b9344d;--rose-soft:#ffe9ed;--green:#287a52;--green-soft:#e6f4eb;--shadow:0 8px 24px #1c2c2512}body{color:var(--text);background:#fff}body:before,body:after{display:none}.app-shell{background:#fff}.topbar:after,.section-title:after,.integration-card:before{display:none}.brand-logo{border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;border-radius:8px;padding:0}.brand strong,.brand small,.section-title,.block-label{letter-spacing:0}.brand small{color:var(--muted);font-size:12px}.quick-links a,.quick-links button,.secondary{color:var(--text);border-color:var(--line);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff}.quick-links button:hover,.secondary:hover{color:#075a51;background:var(--teal-soft);border-color:#acd8d0}.user-chip,.system-live{color:#075a51;background:var(--teal-soft);border-color:#b7dcd5;border-radius:8px}.auth-panel,.intake-panel,.preview-panel,.task-panel,.project-band,.matrix-panel,.integration-panel,.admin-gate-dialog{color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow);-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff;border-radius:8px}.panel-head h1,.lead-result h2,.auth-panel h1,.admin-gate-dialog h2{letter-spacing:0}.section-title,.block-label{color:#087f72}input,select,textarea,pre{color:var(--text);border-color:var(--line);background:#fff;border-radius:8px}input::placeholder,textarea::placeholder{color:#8b9691}input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #087f721f}.primary-action,.stage-advance{color:#fff;background:var(--teal);box-shadow:none;border:0;border-radius:8px}.primary-action:hover:not(:disabled),.stage-advance:hover:not(:disabled){box-shadow:none;background:#066c62;transform:none}.primary-action:disabled{color:#7b8781;background:#e8eeeb}.new-project-button,.mini-action,.apply-script,.help-badge{color:#075a51;background:var(--teal-soft);border-color:#b7dcd5}.project,.job,.metric,.matrix-card,.integration-card,.tool-panel,.lead-result,.script-message{color:var(--text);border-color:var(--line);background:#fff;border-radius:8px}.tool-panel{background:#f8faf9}.matrix-card:hover,.matrix-card:focus-visible,.project-item:hover,.metric:hover{border-color:#9dccbf;transform:none;box-shadow:0 0 0 3px #087f7214}.project-item.active,.metric.active{background:var(--teal-soft);border-color:var(--teal);box-shadow:inset 3px 0 0 var(--teal)}.lead-result{background:#f6faf8}.score-badge,.matrix-abilities span,.chip.active{color:#075a51;background:var(--teal-soft);border-color:#b7dcd5}.chip,.auth-tabs,.script-stage-tabs,.script-conversation{color:var(--text);border-color:var(--line);background:#f1f5f3}.script-stage-tabs button.active{color:#075a51;background:#fff;box-shadow:inset 0 0 0 1px #b7dcd5}.script-message.user{color:#fff;background:var(--teal);border-color:var(--teal)}.stage-guide,.assist-note,.side-note,.help-tags span{color:#354940;background:#eef6f3;border-color:#cfe3dc}.stage-guide strong,.stage-guide span,.matrix-card p,.assist-note,.side-note{color:#51615a}.danger{color:var(--rose);background:var(--rose-soft);border-color:#f2bdc7}mark{color:#50615a;background:#edf2ef;border-radius:6px}.status-completed{color:var(--green);background:var(--green-soft)}.status-generating,.status-running,.status-queued{color:var(--amber);background:var(--amber-soft)}.status-failed,.error-line{color:var(--rose);background:var(--rose-soft);border-color:#f2bdc7}.script-thinking{color:var(--text);box-shadow:none;background:#f3f8f6;border-color:#b7dcd5;border-radius:8px}.thinking-copy small,.thinking-copy span{color:var(--muted)}@media (width<=760px){.topbar{gap:12px}.quick-links{gap:7px}.quick-links button,.user-chip{min-height:38px}}.stage-advance.completed:disabled{color:var(--green);cursor:default;background:var(--green-soft);opacity:1;border:1px solid #b9dcc8}.script-finalized{color:var(--green);background:var(--green-soft);border:1px solid #b9dcc8;border-radius:8px;align-items:center;gap:7px;margin:0;padding:9px 11px;font-size:13px;font-weight:800;display:flex}.creation-prompt{order:1}.creation-assistant{order:2}.creation-script-versions{order:3}.creation-lock{order:4}.creation-category{order:5}.creation-style{order:6}.creation-specs{order:7}.creation-advanced{order:8}.creation-reference{order:9}.creation-summary{order:10}.creation-generate{order:11}.script-versions{border:1px solid var(--line);background:#fff;border-radius:8px;gap:12px;padding:12px;display:grid}.final-script-field>span{color:var(--green);font-weight:900}.workflow-lock-note{color:var(--amber);background:var(--amber-soft);border:1px solid #eed49d;border-radius:8px;margin:0;padding:10px 12px;font-size:13px;line-height:1.55}.locked{opacity:.52}.locked.advanced-settings{pointer-events:none}.creation-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.creation-actions button{min-height:44px}@media (width<=760px){.creation-actions{grid-template-columns:1fr}}.pipeline-stage{color:#334155;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;font-size:13px;display:flex}.shot-list{background:#e2e8f0;border:1px solid #e2e8f0;gap:1px;margin-top:10px;display:grid}.shot-row{background:#fff;grid-template-columns:32px minmax(0,1fr) auto;align-items:start;gap:10px;padding:10px;display:grid}.shot-index{color:#0f766e;background:#e6fffb;border-radius:50%;place-items:center;width:28px;height:28px;font-weight:700;display:grid}.shot-row div{min-width:0}.shot-row small,.shot-row p{color:#64748b;margin:3px 0 0;font-size:12px;display:block}.shot-row p{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (width<=720px){.pipeline-stage{flex-direction:column;align-items:flex-start}.shot-row{grid-template-columns:28px minmax(0,1fr)}.shot-row>a{grid-column:2}}.production-pipeline{background:#fff;border-top:1px solid #dbe5e7;gap:0;margin-top:24px;display:grid}.production-head{padding:18px 0 12px}.production-stages{background:#dbe5e7;border:1px solid #dbe5e7;grid-template-columns:repeat(5,minmax(120px,1fr));gap:1px;display:grid;overflow-x:auto}.production-stages span{color:#64748b;white-space:nowrap;background:#f8fafc;justify-content:center;align-items:center;gap:6px;min-height:42px;padding:8px 10px;font-size:13px;display:flex}.production-stages span.active{color:#0f766e;background:#e6fffb;font-weight:700}.production-stages span.completed{color:#115e59;background:#f0fdfa}.production-step{border-bottom:1px solid #e2e8f0;gap:16px;padding:22px 0;display:grid}.production-step.locked{opacity:.58}.production-step-head,.character-title,.inline-actions,.selection-line,.shot-audio-summary{align-items:center;display:flex}.shot-audio-player{width:100%;height:38px}.production-step-head{justify-content:space-between;gap:16px}.production-step-head>div:first-child{gap:4px;display:grid}.production-step-head span{color:#64748b;font-size:13px}.inline-actions{justify-content:flex-end;gap:8px}.wrap-actions{flex-wrap:wrap;justify-content:flex-start}.character-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;display:grid}.character-empty-note{color:#47645f;background:#f4fbf9;border:1px dashed #9fd6ce;border-radius:10px;margin:0;padding:18px}.character-level-one{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;display:grid}.character-object-button{color:#12332f;text-align:left;cursor:pointer;background:#f5fbfa;border:1px solid #b9dcd6;border-radius:10px;grid-template-columns:1fr auto;gap:5px 10px;min-height:112px;padding:16px;display:grid}.character-object-button:hover{border-color:#058778;transform:translateY(-1px);box-shadow:0 8px 22px #0587781a}.character-object-button strong,.character-object-button>span:not(.character-object-index){grid-column:1}.character-object-button mark{grid-area:1/2/span 2;align-self:start}.character-object-index{color:#078475;font-size:12px;font-weight:700}.character-detail-page{max-width:980px}.character-detail-head{grid-template-columns:auto 1fr auto;align-items:center;gap:14px;display:grid}.character-detail-head>div{gap:2px;display:grid}.character-detail-layout{grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:18px;display:grid}.character-detail-layout img,.character-detail-layout .character-placeholder{aspect-ratio:3/4;object-fit:cover;width:100%}.character-detail-fields{align-content:start;gap:10px;display:grid}@media (width<=760px){.character-detail-head,.character-detail-layout{grid-template-columns:1fr}}.character-design{background:#fff;border:1px solid #dbe5e7;border-radius:6px;align-content:start;gap:10px;padding:14px;display:grid}.character-design>img,.character-placeholder{aspect-ratio:3/4;object-fit:cover;background:#f1f5f9;width:100%}.character-placeholder{color:#64748b;place-content:center;justify-items:center;gap:8px;display:grid}.selection-line{color:#475569;gap:8px;font-size:13px}.character-title{justify-content:space-between;gap:8px}.shot-table-wrap{border:1px solid #dbe5e7;width:100%;overflow-x:auto}.shot-table{border-collapse:collapse;table-layout:fixed;background:#fff;width:100%;min-width:1240px}.shot-table th,.shot-table td{vertical-align:top;text-align:left;border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;padding:8px}.shot-table th{color:#334155;background:#f8fafc;font-size:12px}.shot-table th:first-child{width:54px}.shot-table th:nth-child(2){width:120px}.shot-table th:nth-child(3){width:140px}.shot-table th:nth-child(4){width:72px}.shot-table th:nth-child(5){width:250px}.shot-table th:nth-child(6){width:180px}.shot-table th:nth-child(7){width:200px}.shot-table th:nth-child(8){width:180px}.shot-table th:nth-child(9){width:48px}.shot-table input,.shot-table textarea{color:#1e293b;width:100%;font:inherit;resize:vertical;background:0 0;border:1px solid #0000;border-radius:3px;margin:0 0 5px;padding:6px}.shot-table input:focus,.shot-table textarea:focus{background:#f0fdfa;border-color:#5eead4;outline:none}.shot-number-button{color:#0f766e;background:#e6fffb;border:0;border-radius:50%;width:32px;height:32px;font-weight:700}.keyframe-layout{grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);gap:20px;display:grid}.keyframe-preview{background:#f8fafc;border:1px solid #dbe5e7;min-height:340px;position:relative;overflow:hidden}.keyframe-preview>img{object-fit:contain;width:100%;height:100%}.keyframe-preview>div:not(.keyframe-badges){color:#64748b;place-content:center;justify-items:center;gap:8px;height:100%;min-height:340px;display:grid}.keyframe-badges{gap:6px;display:flex;position:absolute;bottom:10px;right:10px}.keyframe-controls{align-content:start;gap:12px;display:grid}.shot-navigator{gap:6px;display:flex}.character-picks{flex-wrap:wrap;gap:8px;display:flex}.character-picks label{background:#fff;border:1px solid #dbe5e7;border-radius:4px;grid-template-columns:auto 30px auto;align-items:center;gap:6px;padding:5px 8px;display:grid}.character-picks img{object-fit:cover;width:30px;height:30px}.shot-audio-summary{color:#334155;background:#f0fdfa;border-left:3px solid #14b8a6;align-items:flex-start;gap:8px;padding:10px;font-size:13px}@media (width<=900px){.production-step-head{flex-direction:column;align-items:flex-start}.keyframe-layout{grid-template-columns:1fr}}
