html{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#eef2f7;--bg-soft:#f4f6fa;--surface:#fff;--surface-2:#f7f8fb;--surface-3:#eef1f6;--surface-hover:#f3f0ff;--text:#1d2433;--muted:#667085;--muted-2:#98a2b3;--line:#2029391a;--line-strong:#2029392b;--accent:#7657d6;--accent-strong:#6544c5;--accent-soft:#7657d61a;--cyan:#169db2;--green:#17966f;--yellow:#c88714;--red:#d94b59;--shadow:0 20px 54px #212b411c;--shadow-soft:0 8px 28px #212b4113;--radius:16px;--radius-sm:11px}*{box-sizing:border-box}html,body{min-height:100%;margin:0}html{background:var(--bg)}body{color:var(--text);-webkit-font-smoothing:antialiased;background:radial-gradient(900px 560px at 78% -10%,#7757d621,#0000 64%),radial-gradient(820px 580px at 12% 4%,#2dbdd217,#0000 62%),linear-gradient(150deg,#f6f8fb 0%,#edf1f6 54%,#e9edf4 100%);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow-x:hidden}body:before{content:"";pointer-events:none;opacity:.22;background-image:linear-gradient(#ffffff05 1px,#0000 1px),linear-gradient(90deg,#ffffff05 1px,#0000 1px);background-size:42px 42px;position:fixed;inset:0;-webkit-mask-image:linear-gradient(#00000080,#0000 68%);mask-image:linear-gradient(#00000080,#0000 68%)}::selection{background:#8b5cf657}*{scrollbar-width:thin;scrollbar-color:#94a3b842 transparent}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#94a3b83d padding-box content-box;border:3px solid #0000;border-radius:999px}::-webkit-scrollbar-thumb:hover{background:#94a3b861 padding-box content-box}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{flex:none}.shell{grid-template-columns:auto minmax(0,1fr);min-height:100vh;display:grid}.sidebar{z-index:40;border-right:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#fafbfdf0;flex-direction:column;width:76px;height:100vh;padding:14px 10px;transition:width .18s;display:flex;position:sticky;top:0}.sidebar.expanded{width:224px}.brand{min-height:50px;color:var(--text);white-space:nowrap;align-items:center;gap:12px;padding:0 8px;display:flex;overflow:hidden}.brand-mark{color:#fff;background:radial-gradient(circle at 30% 20%,#ffffff3d,#0000 32%),linear-gradient(135deg,#9b6cff,#6f41df 65%,#5632bb);border:1px solid #ffffff1f;border-radius:12px;place-items:center;width:38px;height:38px;display:grid;box-shadow:0 12px 28px #6637d247}.brand-label{letter-spacing:-.015em;font-size:15px;font-weight:760;display:none}.expanded .brand-label{display:block}.nav{gap:6px;margin-top:18px;display:grid}.nav-link,.nav-button{white-space:nowrap;width:100%;height:44px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:12px;align-items:center;gap:12px;padding:0 13px;transition:color .14s,background .14s,border-color .14s,transform .14s;display:flex;position:relative;overflow:hidden}.nav-link:hover,.nav-button:hover{color:#fff;border-color:var(--line);background:#ffffff09}.nav-link.active,.nav-button.active{color:#fff;background:linear-gradient(90deg,#8b5cf62b,#8b5cf611);border-color:#8b5cf62e}.nav-link.active:before,.nav-button.active:before{content:"";background:linear-gradient(180deg, var(--cyan), var(--accent));border-radius:0 5px 5px 0;width:3px;position:absolute;top:10px;bottom:10px;left:0;box-shadow:0 0 14px #8b5cf673}.nav-icon{width:19px;height:19px}.nav-label{text-align:left;flex:1;min-width:0;font-size:13px;font-weight:650;display:none}.nav-label-between{justify-content:space-between;align-items:center}.expanded .nav-label{display:flex}.nav-subitem{height:38px;margin-left:7px}.nav-subdot{background:var(--accent);border-radius:999px;width:6px;height:6px;margin-left:7px;box-shadow:0 0 0 4px #8b5cf61f}.sidebar-spacer{flex:1}.collapse,.icon-button{border:1px solid var(--line);color:var(--muted);background:#ffffff09;place-items:center;transition:border-color .14s,background .14s,color .14s,transform .14s;display:inline-grid}.collapse{border-radius:12px;width:44px;height:42px;margin:0 auto}.collapse:hover,.icon-button:hover{color:#fff;border-color:var(--line-strong);background:#ffffff12;transform:translateY(-1px)}.main{min-width:0}.topbar{z-index:30;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#090c12c7;justify-content:space-between;align-items:center;gap:20px;min-height:70px;padding:0 22px;display:flex;position:sticky;top:0}.top-kicker{color:var(--muted-2);letter-spacing:.12em;text-transform:uppercase;margin-bottom:2px;font-size:10px;font-weight:720}.top-title{letter-spacing:-.02em;font-size:18px;font-weight:740}.top-actions{align-items:center;gap:10px;display:flex}.icon-button{border-radius:12px;width:40px;height:40px}.notification-button{position:relative}.bell-count{background:var(--accent);color:#fff;border:2px solid #0c0f16;border-radius:999px;place-items:center;min-width:17px;height:17px;padding:0 4px;font-size:9px;font-weight:800;display:grid;position:absolute;top:-4px;right:-3px}.user-chip{border:1px solid var(--line);background:#ffffff08;border-radius:13px;align-items:center;gap:10px;min-height:42px;padding:5px 10px 5px 6px;display:flex}.user-avatar,.avatar{color:#d7ccff;background:linear-gradient(145deg,#8b5cf638,#22d3ee14);border:1px solid #ffffff1a;border-radius:10px;place-items:center;width:32px;height:32px;display:grid}.user-copy{line-height:1.08;display:grid}.user-copy strong{font-size:12px}.user-copy small{color:var(--muted);margin-top:3px;font-size:9px}.content{z-index:1;width:min(1720px,100%);margin:0 auto;padding:18px;position:relative}.dashboard-grid{grid-template-columns:minmax(0,1fr) 320px;gap:14px;display:grid}.main-grid,.right-column,.form-grid,.artifact-list,.notifications,.progress-list{gap:12px;display:grid}.right-column{align-content:start}.panel{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft);background:linear-gradient(#121620f0,#0e121bf0)}.panel:hover{border-color:#ffffff1b}.panel-pad{padding:18px}.project-hero{grid-template-columns:164px minmax(0,1fr) 410px;gap:0;min-height:196px;padding:14px;display:grid}.poster{background:radial-gradient(circle at 62% 28%,#c5987b57,#0000 18%),radial-gradient(circle at 33% 32%,#8b5cf647,#0000 24%),linear-gradient(145deg,#243041,#121722 52%,#090c12);border:1px solid #ffffff14;border-radius:12px;align-items:flex-end;min-height:166px;padding:14px;display:flex;position:relative;overflow:hidden}.poster:before,.poster:after{content:"";filter:drop-shadow(0 15px 20px #0006);background:linear-gradient(#55463e,#141923 62%);border-radius:50% 50% 34% 34%;width:46px;height:92px;position:absolute;bottom:38px}.poster:before{left:30px}.poster:after{right:28px;transform:scale(.94)}.poster-title{z-index:2;letter-spacing:.04em;text-align:center;text-transform:uppercase;width:100%;font-size:12px;font-weight:850;line-height:1.18;position:relative}.hero-info{padding:12px 20px}.eyebrow,.tag{color:#c4b5fd;background:#8b5cf61b;border:1px solid #8b5cf62e;border-radius:999px;align-items:center;width:fit-content;font-size:10px;font-weight:720;display:inline-flex}.eyebrow{letter-spacing:.025em;padding:5px 9px}.tag{padding:4px 8px}.tag.green{color:#7ce7bd;background:#34d3991a;border-color:#34d3992e}.tag.yellow{color:#f9cf63;background:#fbbf241a;border-color:#fbbf2433}.hero-info h1{letter-spacing:-.035em;margin:14px 0 7px;font-size:22px;line-height:1.08}.hero-info p{color:var(--muted);margin:0;font-size:12px;line-height:1.5}.hero-stats{border:1px solid var(--line);background:#ffffff05;border-radius:13px;grid-template-columns:repeat(4,minmax(0,1fr));align-self:center;display:grid;overflow:hidden}.hero-stat{text-align:center;border-right:1px solid var(--line);align-content:center;justify-items:center;min-height:112px;padding:10px;display:grid}.hero-stat:last-child{border-right:0}.hero-stat small{color:var(--muted);margin-bottom:10px;font-size:10px}.hero-stat strong{font-size:14px;font-weight:760}.circle-progress{--progress:0%;background:conic-gradient(var(--accent) var(--progress), #ffffff12 0);border-radius:50%;place-items:center;width:70px;height:70px;display:grid;position:relative}.circle-progress:after{content:"";background:var(--surface);border-radius:50%;position:absolute;inset:6px}.circle-progress strong{z-index:2;font-size:14px;position:relative}.two-col{grid-template-columns:1.1fr .9fr;gap:14px;display:grid}.section-head,.workspace-title{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.section-head{align-items:center;margin-bottom:14px}.section-head h2,.section-head h3{letter-spacing:-.02em;margin:0;font-size:15px}.button{border:1px solid var(--line);color:#eef2f8;background:#ffffff09;border-radius:10px;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:8px 13px;font-size:12px;font-weight:690;transition:transform .14s,border-color .14s,background .14s;display:inline-flex}.button:hover{border-color:var(--line-strong);background:#ffffff12;transform:translateY(-1px)}.button.primary{background:linear-gradient(135deg,#8b5cf6,#7040df);border-color:#8b5cf67a;box-shadow:0 10px 24px #5f33be38}.button.primary:hover{background:linear-gradient(135deg,#976cff,#7950e6)}.button.success{color:#86efc7;background:#34d3991c;border-color:#34d39933}.button:disabled{cursor:not-allowed;opacity:.52;transform:none}.stage-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;display:grid}.stage-card{border:1px solid var(--line);text-align:center;background:#ffffff05;border-radius:12px;align-content:center;justify-items:center;gap:8px;min-height:104px;padding:12px 8px;transition:border-color .14s,background .14s,transform .14s;display:grid}.stage-card:hover{border-color:var(--line-strong);background:#ffffff09;transform:translateY(-1px)}.stage-card.active{background:linear-gradient(#8b5cf62b,#8b5cf612);border-color:#8b5cf66b;box-shadow:inset 0 1px #ffffff0a,0 10px 28px #3d20782b}.stage-icon-wrap{border:1px solid var(--line);color:#c4b5fd;background:#8b5cf614;border-radius:10px;place-items:center;width:32px;height:32px;display:grid}.stage-card strong{font-size:11px}.stage-card small{color:var(--muted);font-size:9px}.stage-card .done{color:var(--green)}.progress-item{color:var(--muted);grid-template-columns:138px minmax(0,1fr) 46px;align-items:center;gap:10px;font-size:11px;display:grid}.track{background:#ffffff12;border-radius:999px;height:5px;overflow:hidden}.fill{border-radius:inherit;background:linear-gradient(90deg,#7c4ce6,#a275ff);height:100%;box-shadow:0 0 12px #8b5cf63d}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.metric{border:1px solid var(--line);background:#ffffff05;border-radius:12px;min-height:116px;padding:13px}.metric-icon-wrap,.thumb,.notification-icon{color:#c4b5fd;background:#8b5cf618;border:1px solid #8b5cf621;place-items:center;display:grid}.metric-icon-wrap{border-radius:9px;width:30px;height:30px}.metric small{color:var(--muted);margin:12px 0 5px;font-size:10px;display:block}.metric strong{letter-spacing:-.035em;font-size:20px}.artifact,.notification{grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;display:grid}.artifact{padding:4px 0}.thumb,.notification-icon{border-radius:10px;width:40px;height:40px}.artifact p,.notification p{margin:0;font-size:11px;line-height:1.3}.artifact small,.notification small{color:var(--muted);margin-top:3px;font-size:9px;line-height:1.35;display:block}.notifications-panel{padding:16px}.notification{padding:7px 0}.notification+.notification{border-top:1px solid #ffffff0d}.notification-kind-warning .notification-icon{color:#f7cb68;background:#fbbf2414;border-color:#fbbf2426}.notification-kind-success .notification-icon{color:#80e5be;background:#34d39914;border-color:#34d39926}.timeline{grid-template-columns:minmax(0,1fr) 250px;align-items:center;gap:20px;min-height:92px;margin-top:14px;padding:14px 18px;display:grid}.timeline-steps{grid-template-columns:repeat(6,minmax(0,1fr));display:grid;position:relative}.timeline-steps:before{content:"";background:#ffffff13;height:2px;position:absolute;top:31px;left:5%;right:5%}.timeline-step{z-index:1;text-align:center;position:relative}.timeline-step strong{font-size:10px;display:block}.timeline-step span{color:var(--muted);font-size:9px}.timeline-dot{border:3px solid var(--surface);background:#374151;border-radius:50%;width:12px;height:12px;margin:8px auto;box-shadow:0 0 0 1px #ffffff14}.timeline-step.complete .timeline-dot{background:var(--green)}.timeline-step.active .timeline-dot{background:var(--accent);box-shadow:0 0 0 5px #8b5cf61f}.overall-box strong{letter-spacing:-.04em;font-size:21px}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.project-card{min-height:160px;padding:16px;transition:transform .14s,border-color .14s,background .14s}.project-card:hover{background:linear-gradient(#1a1f2df2,#10141ef5);border-color:#8b5cf640;transform:translateY(-2px)}.project-card h3{letter-spacing:-.02em;margin:12px 0 7px;font-size:16px}.project-card p{min-height:48px;color:var(--muted);margin:0 0 14px;font-size:11px;line-height:1.5}.workspace{grid-template-columns:242px minmax(0,1fr);gap:14px;display:grid}.stage-tabs{align-self:start;padding:8px}.stage-tab{width:100%;color:var(--muted);text-align:left;background:0 0;border:1px solid #0000;border-radius:10px;margin-bottom:4px;padding:12px;transition:color .14s,background .14s,border-color .14s;display:block}.stage-tab:hover,.stage-tab.active{color:#fff;background:#8b5cf61a;border-color:#8b5cf629}.stage-tab strong{font-size:12px}.stage-tab small{color:var(--muted);font-size:9px}.workspace-main{min-height:570px;padding:20px}.workspace-title{margin-bottom:20px}.workspace-title h1{letter-spacing:-.045em;margin:7px 0 5px;font-size:25px}.workspace-title p{color:var(--muted);margin:0;font-size:12px}.field{gap:7px;display:grid}.field label{color:var(--muted);font-size:11px;font-weight:620}.field input,.field textarea,.field select{border:1px solid var(--line);width:100%;min-height:42px;color:var(--text);background:#06090f8c;border-radius:10px;outline:none;padding:10px 12px;transition:border-color .14s,box-shadow .14s,background .14s}.field textarea{resize:vertical;min-height:132px;line-height:1.5}.field input::placeholder,.field textarea::placeholder{color:#596477}.field input:focus,.field textarea:focus,.field select:focus{background:#090c13d1;border-color:#8b5cf694;box-shadow:0 0 0 3px #8b5cf61a}input[type=checkbox]{width:16px;height:16px;min-height:auto;accent-color:var(--accent)}input[type=range]{accent-color:var(--accent);padding:0}.constraint-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.status-line{border:1px solid var(--line);min-height:48px;color:var(--muted);background:#ffffff05;border-radius:11px;align-items:center;gap:9px;padding:11px 13px;font-size:11px;display:flex}.quick-models{flex-wrap:wrap;gap:7px;margin-top:8px;display:flex}.quick-model{border:1px solid var(--line);min-height:30px;color:var(--muted);background:#ffffff06;border-radius:9px;padding:6px 10px;font-size:10px;font-weight:680}.quick-model:hover,.quick-model.active{color:#fff;background:#8b5cf61c;border-color:#8b5cf647}.admin-layout{grid-template-columns:210px minmax(0,1fr);gap:14px;display:grid}.admin-menu{align-self:start;padding:8px}.admin-link{min-height:40px;color:var(--muted);border-radius:10px;align-items:center;gap:9px;padding:10px 11px;font-size:11px;font-weight:630;display:flex}.admin-link:hover,.admin-link.active{color:#fff;background:#8b5cf61a}.connection-grid{grid-template-columns:minmax(0,1fr) 290px;gap:16px;display:grid}.connection-summary{align-content:start;gap:10px;display:grid}.summary-card{border:1px solid var(--line);background:#ffffff05;border-radius:12px;padding:14px}.summary-card span{color:var(--muted);font-size:10px}.summary-card strong{overflow-wrap:anywhere;margin-top:6px;font-size:12px;line-height:1.35;display:block}.muted{color:var(--muted)}.error{color:#fca5a5}.success-text{color:#79e5ba}.viewer-header{border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#090c1299;justify-content:space-between;align-items:center;min-height:68px;padding:0 4vw;display:flex}.viewer-header .brand-label{display:block}.viewer-main{width:min(1400px,100%);margin:0 auto;padding:34px 4vw 60px}.viewer-hero{grid-template-columns:1.15fr .85fr;align-items:center;gap:24px;min-height:390px;display:grid}.viewer-copy h1{letter-spacing:-.06em;max-width:760px;margin:14px 0 20px;font-size:clamp(42px,6vw,72px);line-height:.98}.viewer-copy p{max-width:720px;color:var(--muted);margin:0;font-size:16px;line-height:1.55}.viewer-art{border:1px solid var(--line);background:radial-gradient(circle at 62% 30%,#cca17e7a,#0000 18%),radial-gradient(circle at 35% 42%,#8b5cf652,#0000 25%),linear-gradient(145deg,#263446,#111720 56%,#090c12);border-radius:24px;height:360px;position:relative;overflow:hidden;box-shadow:0 34px 80px #00000047}.viewer-art:after{content:"";background:linear-gradient(#0000 55%,#05080db8);position:absolute;inset:0}.recommendations{margin-top:42px}.recommendations h2{letter-spacing:-.03em;font-size:21px}.viewer-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.viewer-card{background:linear-gradient(#0000,#070a10f2),radial-gradient(circle at 48% 20%,#8b5cf63d,#0000 36%),#141a26;flex-direction:column;justify-content:flex-end;min-height:190px;padding:16px;display:flex}.viewer-card h3{margin:12px 0 7px}@media (max-width:1220px){.dashboard-grid{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr}.project-hero{grid-template-columns:145px 1fr}.hero-stats{grid-column:1/-1;margin-top:12px}.connection-grid{grid-template-columns:1fr}.viewer-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:900px){.sidebar{width:66px}.sidebar.expanded{width:210px}.two-col,.workspace,.admin-layout,.viewer-hero{grid-template-columns:1fr}.stage-row,.timeline-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.timeline{grid-template-columns:1fr}.timeline-steps:before{display:none}.metrics,.cards,.constraint-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.viewer-art{height:300px}}@media (max-width:600px){.content{padding:10px}.topbar{padding:0 12px}.user-copy{display:none}.project-hero{grid-template-columns:1fr}.poster{display:none}.hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.right-column,.stage-row,.metrics,.cards,.constraint-grid,.viewer-cards{grid-template-columns:1fr}.viewer-main{padding:26px 16px 48px}.viewer-header{padding:0 16px}.progress-item{grid-template-columns:110px minmax(0,1fr) 42px}}@keyframes spin{to{transform:rotate(360deg)}}html{--bg:#eef2f7;--bg-soft:#f4f6fa;--surface:#fff;--surface-2:#f7f8fb;--surface-3:#eef1f6;--surface-hover:#f3f0ff;--text:#1d2433;--muted:#667085;--muted-2:#98a2b3;--line:#2029391a;--line-strong:#2029392b;--accent:#7657d6;--accent-strong:#6544c5;--accent-soft:#7657d61a;--cyan:#169db2;--green:#17966f;--yellow:#c88714;--red:#d94b59;--shadow:0 20px 54px #212b411c;--shadow-soft:0 8px 28px #212b4113}html body{background:radial-gradient(900px 560px at 78% -10%,#7757d621,#0000 64%),radial-gradient(820px 580px at 12% 4%,#2dbdd217,#0000 62%),linear-gradient(150deg,#f6f8fb 0%,#edf1f6 54%,#e9edf4 100%)}html body:before{opacity:.28;background-image:linear-gradient(#28344906 1px,#0000 1px),linear-gradient(90deg,#28344906 1px,#0000 1px)}html .sidebar{border-right-color:var(--line);background:#fafbfde6;box-shadow:12px 0 34px #333d5009}html .brand{color:var(--text)}html .brand-mark{color:#fff;background:radial-gradient(circle at 28% 20%,#ffffff61,#0000 34%),linear-gradient(135deg,#9a7aeb,#7657d6 62%,#5a3bb3);border-color:#ffffff80;box-shadow:0 11px 26px #6244bc33}html .nav-link:hover,html .nav-button:hover{color:var(--text);border-color:var(--line);background:#7657d60e}html .nav-link.active,html .nav-button.active{color:#3f2c7c;background:linear-gradient(90deg,#7657d621,#7657d60b);border-color:#7657d629}html .collapse,html .icon-button{color:#596579;border-color:var(--line);background:#ffffffc2}html .collapse:hover,html .icon-button:hover{color:#3d2a76;background:#fff;border-color:#7657d638}html .topbar{border-bottom-color:var(--line);background:#f7f9fcd6;box-shadow:0 5px 22px #27314309}html .bell-count{border-color:#f7f9fc}html .user-chip{background:#ffffffb3}html .user-avatar,html .avatar{color:#6849bf;background:linear-gradient(145deg,#7657d621,#1faec412);border-color:#7657d626}html .panel{border-color:var(--line);box-shadow:var(--shadow-soft);background:linear-gradient(#fffffff5,#f9fafcf2)}html .panel:hover{border-color:#404b6026}html .eyebrow,html .tag{color:#6749b8;background:#7657d614;border-color:#7657d629}html .tag.green{color:#137a5d;background:#17966f14;border-color:#17966f2e}html .tag.yellow{color:#99640e;background:#c8871417;border-color:#c887142e}html .button{color:#30394a;border-color:var(--line);background:#ffffffc7;box-shadow:0 3px 10px #28324609}html .button:hover{background:#fff;border-color:#7657d638}html .button.primary{color:#fff;background:linear-gradient(135deg,#8a69df,#6847c5);border-color:#6544c559;box-shadow:0 10px 24px #5b3eb22e}html .stage-card,html .metric,html .summary-card,html .status-line,html .hero-stats,html .quick-model{background:#f7f8fbd9}html .stage-card:hover{background:#fff}html .stage-card.active{background:linear-gradient(#7657d61f,#7657d60b);border-color:#7657d647;box-shadow:0 10px 28px #43317814}html .stage-icon-wrap,html .metric-icon-wrap,html .thumb,html .notification-icon,html .section-icon,html .empty-icon{color:#6849bf;background:#7657d613;border-color:#7657d624}html .track{background:#303c5017}html .circle-progress{background:conic-gradient(var(--accent) var(--progress), #303c5017 0)}html .timeline-steps:before{background:#313d511a}html .timeline-dot{border-color:var(--surface);background:#cbd2dc;box-shadow:0 0 0 1px #303c501f}html .project-card:hover{background:linear-gradient(#fff,#f8f7fe)}html .stage-tab:hover,html .stage-tab.active,html .admin-link:hover,html .admin-link.active,html .quick-model:hover,html .quick-model.active{color:#493285;background:#7657d617}html .field input,html .field textarea,html .field select{color:var(--text);border-color:var(--line);background:#ffffffeb}html .field input::placeholder,html .field textarea::placeholder{color:#9aa4b3}html .field input:focus,html .field textarea:focus,html .field select:focus{background:#fff;border-color:#7657d66b;box-shadow:0 0 0 3px #7657d617}html .notification+.notification{border-top-color:#2a354812}html .notification-kind-warning .notification-icon{color:#a36a0e}html .notification-kind-success .notification-icon{color:#167a5d}html .viewer-header{background:#f7f9fccc}html .viewer-art{box-shadow:0 32px 70px #2d384d26}html .viewer-card{color:#fff}html pre{color:#2f394a;background:#f4f6f9}html{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.page-title{letter-spacing:-.035em;margin:12px 0 7px;font-size:28px}.page-description{max-width:820px;margin:0;line-height:1.6}.section-icon,.empty-icon{border:1px solid var(--line);border-radius:13px;place-items:center;width:42px;height:42px;display:grid}.connection-grid{margin-top:22px}.checkbox-field label{color:var(--text);align-items:center;gap:9px;display:flex}.button-row{flex-wrap:wrap;gap:9px;display:flex}.summary-security{color:var(--green);align-items:center;gap:7px;display:flex!important}.status-success-icon{color:var(--green)}.empty-dashboard{text-align:center;align-content:center;place-items:center;gap:14px;min-height:430px;padding:40px;display:grid}.empty-dashboard h1{letter-spacing:-.045em;margin:4px 0 0;font-size:clamp(28px,4vw,42px)}.empty-dashboard p{max-width:620px;color:var(--muted);margin:0 0 8px;line-height:1.6}.empty-inline{color:var(--muted);padding:18px 4px;font-size:12px}.project-hero-clean{grid-template-columns:minmax(0,1fr) 480px}.hero-label{letter-spacing:.08em;text-transform:uppercase;font-weight:700;margin-top:18px!important;font-size:10px!important}.hero-goal{color:var(--text)!important;margin-top:6px!important}.overall-progress-row{align-items:center;gap:15px;margin-top:8px;display:flex}.overall-progress-row .track{flex:1}.unread-dot{background:var(--accent);border-radius:999px;width:7px;height:7px;box-shadow:0 0 0 4px #7657d61a}@media (max-width:1220px){.project-hero-clean{grid-template-columns:1fr}}.viewer-empty{text-align:center;align-content:center;place-items:center;gap:14px;min-height:520px;padding:42px;display:grid}.viewer-empty h1{letter-spacing:-.06em;margin:4px 0 0;font-size:clamp(40px,6vw,68px);line-height:1}.viewer-empty p{max-width:650px;color:var(--muted);margin:0 0 8px;line-height:1.6}.viewer-actions{margin-top:25px}.project-empty-card{align-content:center;min-height:190px}.project-empty-card .section-icon{margin-bottom:12px}.episode-head-panel{padding-bottom:15px}.episode-title{letter-spacing:-.035em;margin:12px 0 6px;font-size:27px}.stage-tab-title{align-items:center;gap:9px;display:flex}.ai-workspace-main{min-width:0}.workspace-progress{text-align:right;width:190px}.workspace-progress strong{font-size:25px}.workspace-progress .track{margin-top:8px}.stage-editor-grid{grid-template-columns:minmax(0,1fr) 330px;gap:16px;margin-top:20px;display:grid}.stage-editor-column{min-width:0}.stage-fields,.stage-control-grid,.stage-save-row{margin-top:20px}.ai-assistant-panel,.subpanel{border:1px solid var(--line);background:#ffffff06;border-radius:14px}.ai-assistant-panel{align-self:start;gap:14px;padding:15px;display:grid;position:sticky;top:92px}.ai-assistant-head{border-bottom:1px solid var(--line);align-items:center;gap:11px;padding-bottom:12px;display:flex}.ai-assistant-head>div:last-child{gap:3px;display:grid}.ai-assistant-head strong{font-size:13px}.ai-assistant-head small{color:var(--muted);font-size:10px}.ai-assistant-icon,.ai-tool-item-icon{color:#c8b8ff;background:linear-gradient(145deg,#8b5cf62e,#22d3ee0e);border:1px solid #8b5cf62e;border-radius:11px;place-items:center;width:34px;height:34px;display:grid}.ai-tool-summary{border:1px solid var(--line);background:#ffffff05;border-radius:11px;flex-wrap:wrap;gap:7px;padding:11px;display:flex}.ai-tool-summary p{width:100%;color:var(--muted);margin:2px 0 0;font-size:10px;line-height:1.5}.context-source-chips{flex-wrap:wrap;gap:6px;display:flex}.context-chip{border:1px solid var(--line);color:var(--muted);background:#ffffff06;border-radius:7px;padding:4px 7px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9px}.vertical-buttons{display:grid}.context-preview,.candidate-json-editor{border-top:1px solid var(--line);padding-top:12px}.context-preview summary,.candidate-json-editor summary,.history-toggle{color:var(--muted);cursor:pointer;align-items:center;gap:7px;font-size:11px;font-weight:680;display:flex}.context-preview pre,.report-json{max-height:340px;margin-top:10px;overflow:auto}.ai-results-grid{grid-template-columns:minmax(0,1fr) 310px;gap:16px;margin-top:18px;display:grid}.subpanel{min-width:0;padding:15px}.compact-head{margin-bottom:11px}.candidate-tabs{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;display:grid}.candidate-tab{border:1px solid var(--line);min-height:64px;color:var(--text);text-align:left;background:#ffffff05;border-radius:11px;justify-content:space-between;align-items:center;gap:10px;padding:10px 11px;display:flex}.candidate-tab span{gap:4px;min-width:0;display:grid}.candidate-tab strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.candidate-tab small{color:var(--muted);font-size:9px}.candidate-tab.active{background:#8b5cf61a;border-color:#8b5cf659}.candidate-detail{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.candidate-meta-row{flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:12px;font-size:10px;display:flex}.candidate-compare-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.compare-column{border:1px solid var(--line);background:#ffffff04;border-radius:12px;min-width:0;padding:12px}.compare-column.accent{background:#8b5cf60e;border-color:#8b5cf63d}.compare-column h4{margin:0 0 10px;font-size:12px}.compare-field+.compare-field{margin-top:9px}.compare-field span{color:var(--muted);text-transform:uppercase;margin-bottom:4px;font-size:9px;display:block}.compare-field pre{min-height:58px;max-height:180px;margin:0;padding:9px;overflow:auto}.candidate-json-editor{margin-top:13px}.candidate-json-editor .button{margin-top:9px}.candidate-actions{margin-top:13px}.button.danger{color:#ffc1c8;background:#f8717114;border-color:#f8717133}.button.compact{min-height:30px;padding:5px 9px;font-size:10px}.history-panel{align-self:start}.history-toggle{width:100%;color:var(--text);background:0 0;border:0;justify-content:space-between}.history-toggle>span{align-items:center;gap:8px;display:flex}.history-toggle svg:last-child{transition:transform .15s}.history-toggle svg.rotated{transform:rotate(180deg)}.revision-list{gap:8px;margin-top:12px;display:grid}.revision-item{border:1px solid var(--line);background:#ffffff05;border-radius:11px;justify-content:space-between;align-items:center;gap:10px;padding:10px;display:flex}.revision-item.active{background:#34d3990e;border-color:#34d39938}.revision-main{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.revision-main small{width:100%;color:var(--muted);font-size:9px;line-height:1.35}.empty-compact{color:var(--muted);text-align:center;padding:14px;font-size:11px}.ai-admin-layout{grid-template-columns:310px minmax(0,1fr)}.ai-tool-list{align-self:start;padding:12px}.ai-tool-list-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:5px 4px 12px;display:flex}.ai-tool-list-head h2{margin:8px 0 0;font-size:15px}.ai-tool-scroll{gap:6px;max-height:calc(100vh - 190px);padding-top:10px;display:grid;overflow:auto}.ai-tool-item{width:100%;min-height:64px;color:var(--text);text-align:left;background:0 0;border:1px solid #0000;border-radius:11px;grid-template-columns:36px minmax(0,1fr) 8px;align-items:center;gap:9px;padding:9px;display:grid}.ai-tool-item:hover,.ai-tool-item.active{border-color:var(--line);background:#ffffff09}.ai-tool-item.active{background:#8b5cf616;border-color:#8b5cf642}.ai-tool-item>span:nth-child(2){gap:4px;min-width:0;display:grid}.ai-tool-item strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.ai-tool-item small{color:var(--muted);font-size:9px}.status-dot{background:var(--muted-2);border-radius:999px;width:7px;height:7px}.status-dot.online{background:var(--green);box-shadow:0 0 0 4px #34d3991a}.toggle-row{color:var(--muted);align-items:center;gap:8px;font-size:11px;display:inline-flex}.ai-tool-meta-grid{grid-template-columns:1.2fr 1.6fr 1fr 1fr 1fr;margin-bottom:14px}.ai-config-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;display:grid}.ai-config-grid .field:nth-child(3),.ai-config-grid .field:nth-child(4),.ai-config-grid .field:nth-child(5){grid-column:1/-1}.code-textarea{min-height:150px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.5}.code-textarea.tall{min-height:240px}.version-panel{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}html .ai-assistant-panel,html .subpanel,html .ai-tool-item,html .candidate-tab,html .compare-column,html .revision-item,html .ai-tool-summary,html .context-chip{background:#f7f8fbd1}html .ai-tool-item:hover,html .candidate-tab:hover{background:#fff}html .ai-tool-item.active,html .candidate-tab.active,html .compare-column.accent{background:#7657d613;border-color:#7657d63d}html .ai-assistant-icon,html .ai-tool-item-icon{color:#6849bf;background:linear-gradient(145deg,#7657d61f,#1faec40d);border-color:#7657d629}html .button.danger{color:#b82f40;background:#d94b5912;border-color:#d94b592e}@media (max-width:1280px){.stage-editor-grid,.ai-results-grid{grid-template-columns:1fr}.ai-assistant-panel{position:static}.ai-admin-layout{grid-template-columns:270px minmax(0,1fr)}.ai-tool-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:880px){.candidate-compare-grid,.ai-config-grid,.ai-admin-layout{grid-template-columns:1fr}.ai-tool-scroll{max-height:360px}}.asset-manager{gap:14px;display:grid}.asset-manager-head,.asset-head-actions,.asset-card-title-row,.asset-actions,.storage-progress-legend,.cleanup-result{align-items:center;display:flex}.asset-manager-head{justify-content:space-between;gap:18px}.asset-manager-head h2{margin:8px 0 4px}.asset-head-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.storage-pill{border:1px solid var(--line);min-height:38px;color:var(--muted);background:#ffffff06;border-radius:11px;align-items:center;gap:7px;padding:0 12px;font-size:12px;font-weight:700;display:inline-flex}.asset-upload-box{border:1px dashed var(--line-strong);background:#8b5cf609;border-radius:13px;gap:9px;padding:12px;display:grid}.asset-upload-main{grid-template-columns:minmax(160px,1.2fr) minmax(170px,1fr) minmax(150px,.7fr) minmax(130px,.65fr) auto;align-items:center;gap:9px;display:grid}.asset-upload-main input,.asset-upload-main select,.asset-actions select,.storage-cleanup-form input{min-height:40px}.asset-file-picker{border:1px solid var(--line);min-height:42px;color:var(--muted);background:var(--surface-2);cursor:pointer;border-radius:11px;align-items:center;gap:9px;padding:0 12px;display:flex;overflow:hidden}.asset-file-picker input{display:none}.asset-file-picker span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.asset-grid{grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:12px;display:grid}.asset-card{border:1px solid var(--line);background:var(--surface-2);min-width:0;box-shadow:var(--shadow-soft);border-radius:14px;overflow:hidden}.asset-card.trashed{opacity:.72;filter:saturate(.65)}.asset-preview{border-bottom:1px solid var(--line);background:linear-gradient(135deg, #8b5cf614, #22d3ee09), var(--bg-soft);place-items:center;height:170px;display:grid;overflow:hidden}.asset-preview img,.asset-preview video{object-fit:contain;background:#07090e;width:100%;height:100%}.asset-preview-audio{grid-template-columns:auto minmax(0,1fr);gap:14px;padding:18px}.asset-preview-audio audio{width:100%}.asset-preview-empty{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;align-content:center;gap:8px;font-size:11px}.asset-card-body{gap:11px;padding:13px;display:grid}.asset-card-title-row{gap:9px}.asset-card-title-row>div{flex:1;min-width:0}.asset-card-title-row h3{text-overflow:ellipsis;white-space:nowrap;margin:0 0 3px;font-size:14px;overflow:hidden}.asset-card-title-row small,.asset-meta,.asset-version-button small{color:var(--muted)}.asset-type-icon{border:1px solid var(--line);width:34px;height:34px;color:var(--accent);background:var(--accent-soft);border-radius:10px;place-items:center;display:grid}.asset-status{white-space:nowrap}.asset-status.approved,.asset-status.reference{color:var(--green);background:#34d39914;border-color:#34d39933}.asset-status.archived{color:var(--muted)}.asset-meta{flex-wrap:wrap;gap:5px 10px;font-size:10px;display:flex}.asset-meta span:first-child{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.asset-versions{border-top:1px solid var(--line);padding-top:9px}.asset-versions summary{color:var(--muted);cursor:pointer;font-size:11px}.asset-version-list{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.asset-version-button{border:1px solid var(--line);min-height:30px;color:var(--muted);background:0 0;border-radius:9px;align-items:center;gap:5px;padding:0 9px;display:inline-flex}.asset-version-button.active{color:var(--text);background:var(--accent-soft);border-color:#8b5cf64d}.asset-actions{flex-wrap:wrap;gap:7px}.asset-actions select{flex:1;min-width:120px}.small-button{min-height:36px;padding:0 10px;font-size:11px}.danger-icon{color:var(--red)}.asset-empty{border:1px dashed var(--line-strong);min-height:200px;color:var(--muted);text-align:center;border-radius:14px;grid-column:1/-1;align-content:center;place-items:center;gap:7px;padding:30px;display:grid}.asset-empty h3,.asset-empty p{margin:0}.spin{animation:.9s linear infinite md-spin}@keyframes md-spin{to{transform:rotate(360deg)}}.storage-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.storage-metric{align-content:center;gap:7px;min-height:130px;padding:18px;display:grid}.storage-metric svg{color:var(--accent)}.storage-metric span,.storage-metric small{color:var(--muted)}.storage-metric strong{font-size:22px}.storage-progress{background:#94a3b829;border-radius:999px;height:12px;overflow:hidden}.storage-progress>div{border-radius:inherit;background:linear-gradient(90deg, var(--accent), var(--cyan));height:100%}.storage-progress-legend{color:var(--muted);justify-content:space-between;margin-top:8px;font-size:11px}.storage-cleanup-form{grid-template-columns:repeat(2,minmax(160px,1fr)) auto auto;align-items:end}.cleanup-result{flex-wrap:wrap;gap:10px;margin-top:12px}.cleanup-result span{border:1px solid var(--line);color:var(--muted);background:var(--surface-2);border-radius:9px;padding:8px 10px;font-size:11px}html .asset-upload-box{background:#6847be09}html .asset-card,html .asset-file-picker,html .cleanup-result span{background:#fff}html .asset-preview{background:linear-gradient(135deg,#f5f3ff,#f8fafc)}@media (max-width:1100px){.asset-upload-main,.storage-cleanup-form,.storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:680px){.asset-manager-head,.asset-head-actions,.asset-actions{align-items:stretch}.asset-manager-head{flex-direction:column}.asset-head-actions,.asset-actions{width:100%}.asset-upload-main,.storage-cleanup-form,.storage-metrics,.asset-grid{grid-template-columns:1fr}}.workspace>*,.stage-editor-grid>*,.ai-results-grid>*,.asset-manager,.asset-manager>*,.asset-card,.asset-stage-row,.context-modal,.context-modal>*{min-width:0}.asset-manager-title{min-width:0;max-width:720px}.asset-manager-title p{margin:4px 0 0}.asset-upload-head,.asset-stage-toolbar,.asset-stage-row-title,.asset-stage-row-badges,.asset-card-buttons,.context-modal-head,.context-modal-footer{align-items:center;display:flex}.asset-upload-head,.asset-stage-toolbar,.context-modal-head{justify-content:space-between;gap:14px}.asset-upload-head>div{gap:3px;display:grid}.asset-upload-head small{color:var(--muted)}.asset-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));align-items:start}.asset-card{width:100%;min-width:0}.asset-preview{aspect-ratio:16/9;width:100%;height:auto}.asset-preview img,.asset-preview video{object-fit:cover;max-width:100%;display:block}.asset-preview.row{aspect-ratio:auto;border:1px solid var(--line);border-radius:11px;flex:0 0 112px;width:112px;height:72px}.asset-preview.row img,.asset-preview.row video{border-radius:inherit}.asset-preview-audio{grid-template-columns:30px minmax(0,1fr);min-width:0;padding:16px}.asset-preview-audio audio{min-width:0;max-width:100%}.asset-card-title-row{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;display:grid}.asset-card-title-row h3,.asset-stage-row-title h3,.asset-stage-row-title small,.asset-meta span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.asset-status{text-overflow:ellipsis;max-width:118px;overflow:hidden}.asset-meta{min-width:0}.asset-meta span:first-child{flex:100%}.asset-card-controls{grid-template-columns:minmax(0,1fr);gap:8px;display:grid}.asset-card-controls select{width:100%;min-width:0;min-height:38px}.asset-card-buttons{flex-wrap:wrap;gap:7px}.asset-card-buttons .button{white-space:normal;text-align:center;flex:132px;justify-content:center;min-width:0}.asset-card-buttons.full .button{flex-basis:150px}.asset-stage-toolbar{border:1px solid var(--line);background:var(--surface-2);border-radius:13px;padding:9px}.asset-stage-tabs{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.asset-stage-tabs button{min-height:36px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:10px;align-items:center;gap:7px;padding:0 11px;display:inline-flex}.asset-stage-tabs button span{text-align:center;background:#94a3b81f;border-radius:999px;min-width:22px;padding:2px 6px;font-size:10px}.asset-stage-tabs button.active{color:var(--text);background:var(--accent-soft);border-color:#7657d638}.asset-search{border:1px solid var(--line);min-width:210px;min-height:38px;color:var(--muted);background:var(--surface-1);border-radius:10px;align-items:center;gap:8px;padding:0 11px;display:flex}.asset-search input{background:0 0;border:0;outline:0;width:100%;min-width:0;padding:0}.project-search{width:min(100%,380px);margin-left:auto}.asset-stage-list{gap:8px;display:grid}.asset-stage-row{border:1px solid var(--line);background:var(--surface-2);border-radius:13px;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:13px;padding:10px;display:grid;overflow:hidden}.asset-stage-row-main{gap:8px;min-width:0;display:grid}.asset-stage-row-title{gap:12px;min-width:0}.asset-stage-row-title>div:first-child{flex:1;min-width:0}.asset-stage-row-title h3{margin:0 0 4px;font-size:13px}.asset-stage-row-title small{color:var(--muted);font-size:10px;display:block}.asset-stage-row-badges{flex-wrap:wrap;justify-content:flex-end;gap:6px}.asset-scope-badge,.asset-native-note{border:1px solid var(--line);min-height:25px;color:var(--muted);white-space:nowrap;background:#94a3b80f;border-radius:999px;align-items:center;padding:0 8px;font-size:10px;display:inline-flex}.asset-stage-row-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;max-width:230px;display:flex}.compact-empty{min-height:150px}.modal-backdrop{z-index:2000;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#070a1094;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.context-modal{border:1px solid var(--line-strong);background:var(--surface-1);border-radius:18px;grid-template-rows:auto minmax(0,1fr) auto;width:min(980px,100%);max-height:min(820px,100vh - 48px);display:grid;overflow:hidden;box-shadow:0 30px 100px #00000047}.context-modal-head{border-bottom:1px solid var(--line);padding:18px 20px}.context-modal-head h2{margin:8px 0 4px}.context-modal-head p{margin:0}.context-modal-body{min-width:0;min-height:0;padding:16px 20px;overflow:auto}.context-modal-body pre,.report-json,.compare-field pre,.context-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;margin:0;overflow:auto}.context-modal-body pre{border:1px solid var(--line);background:var(--bg-soft);border-radius:12px;padding:16px;font-size:12px;line-height:1.6}.context-modal-footer{border-top:1px solid var(--line);justify-content:flex-end;padding:12px 20px}@media (max-width:1100px){.asset-upload-main{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-upload-main .button.primary{grid-column:1/-1}}@media (max-width:760px){.asset-manager-head,.asset-stage-toolbar,.asset-stage-row-title{flex-direction:column;align-items:stretch}.asset-head-actions,.asset-stage-row-badges{justify-content:flex-start}.asset-search,.project-search{width:100%;min-width:0;margin:0}.asset-stage-row{grid-template-columns:86px minmax(0,1fr)}.asset-preview.row{flex-basis:86px;width:86px;height:64px}.asset-stage-row-actions{grid-column:1/-1;justify-content:flex-start;max-width:none}.asset-upload-main{grid-template-columns:1fr}.modal-backdrop{padding:10px}.context-modal{border-radius:14px;max-height:calc(100vh - 20px)}}.build-info{min-width:0;color:var(--muted-2);text-align:center;-webkit-user-select:none;user-select:none;margin:0 auto 9px}.build-info-compact{border:1px solid var(--line);text-overflow:ellipsis;white-space:nowrap;background:#ffffff06;border-radius:999px;justify-content:center;align-items:center;max-width:54px;min-height:24px;padding:3px 7px;font-size:10px;font-weight:700;display:inline-flex;overflow:hidden}.build-info-expanded{text-align:left;min-width:0;display:none}.build-info-expanded strong,.build-info-expanded small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.build-info-expanded strong{color:var(--muted);font-size:11px}.build-info-expanded small{margin-top:2px;font-size:9px}.sidebar.expanded .build-info{width:100%;padding:0 10px}.sidebar.expanded .build-info-compact{display:none}.sidebar.expanded .build-info-expanded{display:block}.preproduction-workspace{gap:14px;min-width:0;margin:2px 0 16px;display:grid}.preproduction-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;display:grid}.preproduction-summary>div{border:1px solid var(--line);background:#ffffff07;border-radius:12px;gap:4px;min-width:0;padding:11px 12px;display:grid}.preproduction-summary span{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:10px;font-weight:700}.preproduction-summary strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.preproduction-summary .over{background:#f8717111;border-color:#f871713d}.preproduction-summary .under{background:#fbbf240e;border-color:#fbbf243d}.preproduction-summary .ok{background:#34d3990d;border-color:#34d39933}.preproduction-layout{grid-template-columns:minmax(210px,.72fr) minmax(390px,1.5fr) minmax(270px,.9fr);align-items:start;gap:12px;min-width:0;display:grid}.preproduction-tree,.preproduction-editor,.requirements-panel{border:1px solid var(--line);background:#080c1357;border-radius:14px;min-width:0}.preproduction-tree,.requirements-panel{max-height:calc(100vh - 112px);position:sticky;top:86px;overflow:auto}.preproduction-editor{gap:12px;padding:13px;display:grid}.preproduction-column-head,.shot-editor-head{justify-content:space-between;align-items:center;gap:10px;min-width:0;display:flex}.preproduction-column-head{border-bottom:1px solid var(--line);padding:13px}.preproduction-column-head h3,.shot-editor-head h3{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:5px 0 0;font-size:15px;line-height:1.2;overflow:hidden}.compact-icon-row{flex:none;gap:6px;display:flex}.danger-icon:hover{color:#fecaca;background:#f871711a;border-color:#f8717140}.scene-tree-list,.shot-tree-list,.requirements-list{gap:6px;display:grid}.scene-tree-list{padding:8px}.scene-tree-item{border:1px solid #0000;border-radius:11px;min-width:0;overflow:hidden}.scene-tree-item.active{background:#8b5cf60e;border-color:#8b5cf636}.scene-tree-button,.shot-tree-button,.tree-add-button{width:100%;min-width:0;color:var(--text);background:0 0;border:0}.scene-tree-button{text-align:left;grid-template-columns:25px minmax(0,1fr) 15px;align-items:center;gap:8px;padding:10px;display:grid}.scene-tree-button:hover,.shot-tree-button:hover,.tree-add-button:hover{background:#ffffff0a}.scene-number{border:1px solid var(--line-strong);color:#d8d1ff;background:#8b5cf61a;border-radius:8px;place-items:center;width:25px;height:25px;font-size:11px;font-weight:800;display:grid}.scene-tree-copy,.shot-tree-button>span:nth-child(2){gap:3px;min-width:0;display:grid}.scene-tree-copy strong,.shot-tree-button strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.scene-tree-copy small,.shot-tree-button small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.shot-tree-list{padding:0 7px 7px 38px}.shot-tree-button{text-align:left;min-height:42px;color:var(--muted);border:1px solid #0000;border-radius:9px;grid-template-columns:32px minmax(0,1fr) 15px;align-items:center;gap:7px;padding:6px 7px;display:grid}.shot-tree-button.active{color:var(--text);background:#22d3ee0e;border-color:#22d3ee2e}.shot-tree-button>span:first-child{font-size:10px;font-weight:800}.shot-tree-button svg{color:var(--yellow)}.shot-tree-button.active svg{color:var(--green)}.tree-add-button{border:1px dashed var(--line-strong);min-height:34px;color:var(--muted);border-radius:9px;justify-content:center;align-items:center;gap:6px;font-size:10px;font-weight:700;display:flex}.tree-empty{color:var(--muted);text-align:center;padding:8px;font-size:10px}.scene-details,.shot-editor-card{border:1px solid var(--line);background:#ffffff05;border-radius:12px;min-width:0}.scene-details{padding:0 12px 12px}.scene-details summary{min-height:42px;color:var(--muted);cursor:pointer;align-items:center;gap:8px;font-size:11px;font-weight:740;display:flex}.preproduction-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;margin-bottom:11px;display:grid}.preproduction-form-grid .span-2{grid-column:span 2}.preproduction-form-grid textarea{min-height:82px}.shot-editor-card{gap:12px;padding:13px;display:grid}.shot-editor-head{border-bottom:1px solid var(--line);padding-bottom:10px}.shot-empty,.preproduction-empty,.preproduction-loading,.requirements-empty{color:var(--muted);text-align:center;place-items:center;gap:9px;display:grid}.preproduction-empty{border:1px dashed var(--line-strong);border-radius:14px;min-height:260px;padding:28px}.preproduction-empty h3,.preproduction-empty p,.shot-empty p,.requirements-empty p{margin:0}.preproduction-loading{min-height:160px}.shot-empty{min-height:170px}.shot-readiness-summary{border-bottom:1px solid var(--line);gap:6px;padding:10px 12px;display:grid}.shot-readiness-summary span{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:7px;font-size:10px;display:flex;overflow:hidden}.requirements-list{padding:9px}.requirement-card{border:1px solid var(--line);background:#ffffff06;border-left-width:3px;border-radius:10px;gap:8px;min-width:0;padding:10px;display:grid}.requirement-card.missing{border-left-color:var(--red)}.requirement-card.candidate{border-left-color:var(--yellow)}.requirement-card.ready{border-left-color:var(--green)}.requirement-card-head,.requirement-card-footer{justify-content:space-between;align-items:center;gap:7px;display:flex}.requirement-card input,.requirement-card textarea,.requirement-card select{width:100%;min-width:0}.requirement-card textarea{min-height:58px}.requirement-card-head select{width:auto;max-width:calc(100% - 36px)}.icon-button.mini{border-radius:8px;width:29px;height:29px}.requirement-title-input{font-weight:740}.requirement-asset-select{color:var(--muted);gap:5px;font-size:9px;font-weight:700;display:grid}.requirement-waive{color:var(--muted);align-items:center;gap:7px;font-size:10px;display:flex}.requirement-waive input{width:auto}.requirement-status{font-size:9px;font-weight:740}.requirement-status.missing{color:#fca5a5}.requirement-status.candidate{color:#fcd34d}.requirement-status.ready{color:#6ee7b7}.button.tiny{min-height:30px;padding:0 9px;font-size:9px}.requirements-empty{min-height:150px;padding:16px}.preproduction-support-grid{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}html .preproduction-tree,html .preproduction-editor,html .requirements-panel{background:#f8fafcbd}html .scene-tree-item.active,html .requirement-card,html .scene-details,html .shot-editor-card{background:#ffffffd1}@media (max-width:1450px){.preproduction-layout{grid-template-columns:220px minmax(420px,1fr)}.requirements-panel{grid-column:1/-1;max-height:none;position:static}.requirements-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:1050px){.preproduction-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.preproduction-layout{grid-template-columns:1fr}.preproduction-tree,.requirements-panel{max-height:none;position:static}.requirements-panel{grid-column:auto}}@media (max-width:700px){.preproduction-summary,.requirements-list,.preproduction-form-grid{grid-template-columns:1fr}.preproduction-form-grid .span-2{grid-column:auto}.preproduction-column-head,.shot-editor-head{flex-direction:column;align-items:flex-start}}.topbar.with-subtitle{min-height:82px;padding-top:8px;padding-bottom:8px}.top-context{align-items:center;gap:14px;min-width:0;display:flex}.top-copy{min-width:0}.top-back{border:1px solid var(--line);min-height:34px;color:var(--muted);background:#ffffff06;border-radius:10px;flex:none;align-items:center;gap:6px;padding:0 10px;font-size:11px;font-weight:680;transition:color .14s,border-color .14s,background .14s;display:inline-flex}.top-back:hover{color:var(--text);border-color:var(--line-strong);background:#ffffff0e}.top-title-line{align-items:center;gap:10px;min-width:0;display:flex}.top-header-meta{flex:none}.top-subtitle{max-width:min(760px,58vw);color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:11px;line-height:1.35;overflow:hidden}.project-episodes-panel{container-type:inline-size}.episode-create-inline{border:1px solid var(--line);background:#8b5cf609;border-radius:13px;grid-template-columns:minmax(150px,.8fr) minmax(240px,1.7fr) minmax(125px,.55fr) auto;align-items:end;gap:10px;margin:14px 0 18px;padding:13px;display:grid}.compact-field{gap:5px}.compact-field input,.compact-field select{min-height:38px;padding-top:8px;padding-bottom:8px}.episode-create-button{white-space:nowrap;min-height:38px}.episode-cards-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.episode-roadmap{grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:14px;padding:8px;display:grid;container-type:inline-size}.episode-roadmap-steps{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;min-width:0;display:grid}.roadmap-step{min-width:0;color:var(--muted);text-align:left;background:0 0;border:1px solid #0000;border-radius:10px;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;padding:9px 9px 12px;transition:color .14s,border-color .14s,background .14s;display:grid;position:relative;overflow:hidden}.roadmap-step:hover,.roadmap-step.active{color:var(--text);background:#8b5cf613;border-color:#8b5cf62e}.roadmap-step.complete .roadmap-step-icon{color:var(--green);background:#22c55e14;border-color:#22c55e33}.roadmap-step-icon{border:1px solid var(--line);color:#c9bcff;background:#ffffff06;border-radius:9px;place-items:center;width:28px;height:28px;display:grid}.roadmap-step-copy{gap:2px;min-width:0;display:grid}.roadmap-step-copy strong,.roadmap-step-copy small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.roadmap-step-copy strong{font-size:11px}.roadmap-step-copy small{color:var(--muted);font-size:8.5px}.roadmap-step-progress{background:#ffffff0f;border-radius:999px;height:2px;position:absolute;bottom:5px;left:8px;right:8px;overflow:hidden}.roadmap-step-progress i{border-radius:inherit;background:var(--accent);height:100%;display:block}.roadmap-overall{border-left:1px solid var(--line);align-content:center;justify-items:end;min-width:108px;padding:0 10px;display:grid}.roadmap-overall span{color:var(--muted);font-size:9px}.roadmap-overall strong{letter-spacing:-.04em;margin-top:2px;font-size:21px}.episode-workspace-panel{container-type:inline-size}.compact-workspace-title{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:14px;padding-bottom:14px;display:flex}.episode-stage-grid{grid-template-columns:minmax(0,3fr) minmax(300px,2fr);gap:14px;margin-top:0}.stage-primary-column,.stage-ai-column{align-content:start;gap:14px;min-width:0;display:grid}.stage-ai-column .ai-assistant-panel{position:static;top:auto}.stage-ai-column .candidate-tabs,.stage-ai-column .candidate-compare-grid{grid-template-columns:1fr}.stage-ai-column .candidate-detail,.stage-ai-column .report-json,.stage-ai-column .compare-field pre{min-width:0;max-width:100%}.stage-ai-column .report-json,.stage-ai-column .compare-field pre{white-space:pre-wrap;overflow-wrap:anywhere}.stage-history-wrap{margin-top:2px}.preproduction-stage-controls{border-top:1px solid var(--line);gap:14px;padding-top:14px;display:grid}@container (max-width:940px){.episode-stage-grid,.stage-ai-column{grid-template-columns:minmax(0,1fr)}}@container (max-width:820px){.episode-create-inline{grid-template-columns:repeat(2,minmax(0,1fr))}.episode-goal-field{grid-area:1/1/auto/-1}.episode-create-button{align-self:end}}@container (max-width:760px){.episode-roadmap{grid-template-columns:minmax(0,1fr)}.episode-roadmap-steps{grid-template-columns:none;grid-auto-columns:minmax(145px,1fr);grid-auto-flow:column;padding-bottom:3px;overflow-x:auto}.roadmap-overall{border-top:1px solid var(--line);border-left:0;grid-auto-flow:column;justify-content:space-between;justify-items:stretch;min-width:0;padding:8px 5px 0}}@media (max-width:760px){.topbar.with-subtitle{min-height:72px}.top-context{gap:8px}.top-back{justify-content:center;width:34px;padding:0;font-size:0}.top-subtitle,.top-header-meta{display:none}.episode-create-inline{grid-template-columns:1fr}.episode-goal-field{grid-area:auto}}html .top-back,html .episode-create-inline,html .roadmap-step-icon{background:#ffffffb8}.workflow-admin-layout{grid-template-columns:minmax(260px,340px) minmax(0,1fr)}.workflow-editor .code-textarea.tall{min-height:360px}.workflow-analysis-grid{grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:14px;margin-top:16px;display:grid}.compact-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 14px}.workflow-field-list{gap:8px;max-height:420px;padding-right:4px;display:grid;overflow:auto}.workflow-field-row{border:1px solid var(--line);background:#ffffff94;border-radius:14px;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px 12px;display:grid}.workflow-field-row strong,.workflow-field-row small{overflow-wrap:anywhere;min-width:0}.workflow-field-row span{color:var(--accent-2);background:#8b5cf61f;border-radius:999px;align-self:start;padding:4px 8px;font-size:11px;font-weight:800}.small-report{max-height:220px;font-size:11px}.shot-package-panel{border-top:1px solid var(--line);gap:10px;margin-top:14px;padding-top:14px;display:grid}.shot-package-panel .button.primary{justify-content:center;width:100%}@media (max-width:980px){.workflow-admin-layout,.workflow-analysis-grid{grid-template-columns:1fr}.compact-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}.connections-stack{gap:14px;display:grid}.comfy-auth-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 150px}.schema-form-grid{gap:10px;display:grid}.schema-form-grid .field textarea{min-height:118px}.schema-checkbox{justify-content:flex-start}.shot-generation-actions{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px;display:grid}.shot-generation-actions .button,.shot-package-panel .shot-generation-actions .button.primary{justify-content:center;width:100%}.generation-task-card{border:1px solid var(--line);background:#ffffff06;border-radius:14px;gap:10px;padding:12px;display:grid}.generation-task-card h4{margin:2px 0 0;font-size:13px}.task-status-completed{color:#7ee4b8}.task-status-error,.task-status-blocked{color:#fca5a5}.generated-output-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.generated-output{border:1px solid var(--line);min-width:0;color:var(--text);background:#00000024;border-radius:12px;gap:6px;padding:8px;display:grid}.generated-output img{object-fit:contain;background:#00000047;border-radius:9px;width:100%;max-height:220px}.generated-output span{min-height:100px;color:var(--muted);place-items:center;display:grid}.generated-output small{overflow-wrap:anywhere;min-width:0;color:var(--muted);font-size:9px}.task-history-list{gap:6px;display:grid}.task-history-row{border:1px solid var(--line);color:var(--text);text-align:left;background:#ffffff05;border-radius:10px;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;display:grid}.task-history-row span,.task-history-row small{overflow-wrap:anywhere;min-width:0}.task-history-row small{color:var(--muted);font-size:9px}@media (max-width:980px){.comfy-auth-grid,.shot-generation-actions,.generated-output-grid,.task-history-row{grid-template-columns:1fr}}.project-card-with-actions{gap:10px;padding:0;display:grid;overflow:hidden}.project-card-main{min-width:0;padding:16px 16px 0;display:block}.project-delete-button{color:#fecaca;background:#f8717111;border:1px solid #f871712e;border-radius:10px;justify-content:center;align-items:center;gap:7px;min-height:36px;margin:0 12px 12px;font-size:10px;font-weight:760;display:flex}.project-delete-button:hover{background:#f871711f;border-color:#f8717157}.workspace-title-side{justify-items:end;gap:10px;min-width:min(700px,48%);display:grid}.preproduction-header-metrics{grid-template-columns:.55fr .55fr .75fr minmax(190px,1.45fr) 1fr;gap:6px;width:min(720px,100%);display:grid}.preproduction-header-metrics span{border:1px solid var(--line);background:#ffffff06;border-radius:11px;gap:2px;min-width:0;padding:8px 9px;display:grid}.preproduction-header-metrics small{color:var(--muted);letter-spacing:.055em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;font-size:8px;font-weight:800;overflow:hidden}.preproduction-header-metrics strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;overflow:hidden}.preproduction-header-metrics .duration-metric strong{font-size:11px}.preproduction-header-metrics .ok{background:#34d3990e;border-color:#34d3992e}.preproduction-header-metrics .warning{background:#fbbf240f;border-color:#fbbf2438}.episode-stage-grid{grid-template-columns:minmax(0,1fr) clamp(300px,28%,380px)}.stage-ai-column{gap:10px}.stage-ai-column .ai-assistant-panel,.stage-ai-column .candidates-panel{padding:12px}.stage-ai-column .ai-assistant-head{margin-bottom:10px}.stage-ai-column .field textarea{min-height:82px}.stage-ai-column .candidate-tab{min-height:48px;padding:8px}.candidate-readable-summary{gap:7px;display:grid}.candidate-summary-row{border:1px solid var(--line);background:#ffffff05;border-radius:10px;gap:4px;min-width:0;padding:9px;display:grid}.candidate-summary-row span{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:9px;font-weight:800}.candidate-summary-row p{max-height:72px;color:var(--text);margin:0;font-size:11px;line-height:1.42;overflow:hidden}.manual-stage-override{border:1px dashed var(--line-strong);background:#ffffff05;border-radius:12px;padding:11px}.manual-stage-override summary,.generation-settings-panel summary,.candidate-json-editor summary{color:var(--muted);cursor:pointer;align-items:center;gap:7px;font-size:11px;font-weight:760;display:flex}.manual-stage-override[open]{gap:12px;display:grid}.preproduction-layout{grid-template-columns:minmax(230px,.56fr) minmax(430px,1.38fr) minmax(260px,.76fr)}.preproduction-tree,.requirements-panel{max-height:calc(100vh - 132px);top:92px}.scene-tree-list{gap:4px;padding:6px}.scene-tree-button{grid-template-columns:23px minmax(0,1fr) 12px;gap:6px;padding:8px}.scene-number{border-radius:7px;width:23px;height:23px;font-size:10px}.scene-tree-copy strong,.shot-tree-button strong{font-size:11px}.shot-tree-list{gap:3px;padding:0 5px 6px 25px}.shot-tree-button{border-radius:8px;grid-template-columns:28px minmax(0,1fr) 13px;gap:5px;min-height:34px;padding:4px 6px}.shot-tree-button>span:first-child{font-size:9px}.shot-tree-button small{font-size:8px}.tree-add-button{min-height:30px;font-size:9px}.shot-package-panel.comfy-quick-panel{gap:11px}.comfy-quick-copy{border:1px solid var(--line);background:#ffffff05;border-radius:12px;gap:8px;padding:11px;display:grid}.comfy-quick-copy p{color:var(--muted);margin:0;font-size:11px;line-height:1.45}.generate-grid-button{min-height:44px}.frame-generation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.frame-result-card{border:1px solid var(--line);background:#0000001f;border-radius:13px;min-width:0;overflow:hidden}.frame-result-card a,.frame-empty,.frame-loading{min-height:126px;color:var(--muted);background:linear-gradient(135deg,#8b5cf60e,#22d3ee08);place-items:center;display:grid}.frame-result-card img{object-fit:contain;background:#00000040;width:100%;height:150px}.frame-empty{text-transform:uppercase;letter-spacing:.06em;gap:6px;font-size:10px}.frame-loading{text-align:center;gap:6px;padding:14px;position:relative}.frame-loading:before{content:"";background:linear-gradient(90deg,#0000,#ffffff14,#0000);animation:1.15s linear infinite shimmer;position:absolute;inset:0;transform:translate(-100%)}.frame-loading>span{border:3px solid #8b5cf62e;border-top-color:var(--accent);border-radius:999px;width:32px;height:32px;animation:.8s linear infinite spin}.frame-loading strong,.frame-loading small{z-index:1;position:relative}.frame-loading strong{font-size:11px}.frame-loading small{overflow-wrap:anywhere;max-width:100%;color:var(--muted);font-size:9px}.frame-result-card footer{border-top:1px solid var(--line);grid-template-columns:auto minmax(0,1fr);gap:7px;min-width:0;padding:7px 8px;display:grid}.frame-result-card footer span{color:var(--text);font-size:10px;font-weight:800}.frame-result-card footer small{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:8px;overflow:hidden}.generation-settings-panel{border:1px solid var(--line);background:#ffffff05;border-radius:12px;gap:10px;padding:10px;display:grid}.generation-settings-panel[open]{gap:12px}@keyframes shimmer{to{transform:translate(100%)}}html .project-delete-button{color:#b82f40;background:#d94b5911;border-color:#d94b592e}html .preproduction-header-metrics span,html .candidate-summary-row,html .manual-stage-override,html .comfy-quick-copy,html .generation-settings-panel,html .frame-result-card{background:#ffffffc2}@media (max-width:1280px){.workspace-title-side{justify-items:stretch;width:100%;min-width:0}.compact-workspace-title{flex-direction:column}.preproduction-header-metrics{width:100%}}@media (max-width:980px){.preproduction-header-metrics,.frame-generation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:700px){.preproduction-header-metrics{grid-template-columns:1fr}}.preproduction-shell-grid{grid-template-columns:minmax(0,1fr)}.preproduction-shell-grid .stage-primary-column{min-width:0}.preproduction-layout{grid-template-columns:minmax(300px,.74fr) minmax(440px,1.12fr) minmax(300px,.74fr);gap:14px}.preproduction-tree{min-width:300px}.preproduction-right-rail{align-self:start;gap:12px;min-width:0;max-height:calc(100vh - 132px);display:grid;position:sticky;top:92px;overflow:auto}.preproduction-right-rail .requirements-panel,.preproduction-right-rail .shot-package-panel{border:1px solid var(--line);background:#080c1357;border-radius:14px;max-height:none;position:static;overflow:visible}.preproduction-left-ai{border-top:1px solid var(--line);padding:8px}.preproduction-left-ai .ai-assistant-panel{background:#8b5cf60b;border-radius:12px;gap:10px;padding:12px;position:static;top:auto}.compact-ai-assistant-panel .ai-assistant-head{margin-bottom:0;padding-bottom:10px}.compact-ai-assistant-panel .field textarea{min-height:72px}.ai-main-actions{gap:7px}.button.ghost.context-button,.button.ghost.candidates-toggle{color:var(--muted);background:#ffffff05;border-color:#94a3b821}.button.ghost.context-button{min-height:34px;font-size:10px}.candidates-toggle{justify-content:space-between}.candidates-toggle .rotated,.history-toggle .rotated{transform:rotate(180deg)}.ai-candidates-drawer{transition:max-height .32s,opacity .24s,transform .24s,margin-top .24s;overflow:hidden}.ai-candidates-drawer.closed{opacity:0;pointer-events:none;max-height:0;margin-top:-4px;transform:translateY(-4px)}.ai-candidates-drawer.open{opacity:1;max-height:1200px;margin-top:4px;transform:translateY(0)}.compact-candidate-tabs{grid-template-columns:1fr}.compact-candidate-detail{margin-top:10px;padding-top:10px}.requirements-panel{padding-bottom:0}.requirements-list{gap:7px}.requirement-card.modern{background:linear-gradient(145deg,#ffffff09,#ffffff03);border-left-width:1px;border-radius:13px;gap:0;padding:0;overflow:hidden;box-shadow:inset 0 1px #ffffff09}.requirement-card.modern.missing{border-color:#f8717138}.requirement-card.modern.candidate{border-color:#fbbf2433}.requirement-card.modern.ready{border-color:#34d39930}.requirement-summary-row{grid-template-columns:minmax(0,1fr) 30px;align-items:stretch;min-width:0;display:grid}.requirement-toggle{width:100%;min-width:0;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:10px minmax(0,1fr) auto 16px;align-items:center;gap:8px;padding:10px;display:grid}.requirement-toggle:hover{background:#ffffff09}.requirement-status-dot{background:var(--red);border-radius:999px;width:8px;height:8px;box-shadow:0 0 0 4px #f8717113}.requirement-status-dot.candidate{background:var(--yellow);box-shadow:0 0 0 4px #fbbf2413}.requirement-status-dot.ready{background:var(--green);box-shadow:0 0 0 4px #34d39913}.requirement-summary-copy{gap:2px;min-width:0;display:grid}.requirement-summary-copy small{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:8px;font-weight:820}.requirement-summary-copy strong,.requirement-summary-copy em{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.requirement-summary-copy strong{font-size:12px}.requirement-summary-copy em{color:var(--muted);font-size:10px;font-style:normal}.requirement-status-pill{color:#fca5a5;white-space:nowrap;background:#f871710e;border:1px solid #f8717124;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:820}.requirement-status-pill.candidate{color:#fcd34d;background:#fbbf240e;border-color:#fbbf2429}.requirement-status-pill.ready{color:#6ee7b7;background:#34d3990e;border-color:#34d39929}.requirement-expanded-fields{gap:9px;padding:0 10px 10px;animation:.22s both drawerReveal;display:grid}.compact-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.comfy-frame-panel{gap:11px;padding-bottom:12px;display:grid}.comfy-frame-panel .compact-head{margin-bottom:0}.generate-grid-button{width:calc(100% - 24px);min-height:46px;margin:0 12px}.pulse-dot{background:currentColor;border-radius:999px;width:9px;height:9px;animation:.8s ease-in-out infinite pulseDot}.frame-generation-grid{gap:9px;padding:0 12px}.frame-result-card{width:100%;color:var(--text);text-align:left;cursor:pointer;padding:0;transition:border-color .18s,transform .18s,background .18s}.frame-result-card:not(:disabled):hover{border-color:#8b5cf657;transform:translateY(-1px)}.frame-result-card:disabled{cursor:default}.frame-result-card.selected{border-color:#34d3998c;box-shadow:0 0 0 2px #34d3991f}.frame-image-wrap,.frame-empty,.frame-loading-react{min-height:128px;color:var(--muted);background:radial-gradient(circle at 22% 18%,#8b5cf624,#0000 32%),linear-gradient(135deg,#8b5cf60f,#22d3ee08);place-items:center;display:grid}.frame-image-wrap img{object-fit:contain;background:#0000003d;width:100%;height:150px;animation:.28s both frameImageReveal}.frame-loading-react{text-align:center;gap:8px;padding:14px;position:relative;overflow:hidden}.frame-loading-react:before{content:"";background:linear-gradient(90deg,#0000,#ffffff17,#0000);animation:1.15s linear infinite shimmer;position:absolute;inset:0;transform:translate(-100%)}.frame-scan-orb{place-items:center;width:42px;height:42px;display:grid;position:relative}.frame-scan-orb span,.frame-scan-orb i{border:1px solid #8b5cf657;border-radius:14px;animation:1.55s ease-in-out infinite scanBox;position:absolute;inset:0}.frame-scan-orb i{border-color:#22d3ee52;animation-delay:.18s;inset:9px}.frame-waveform{z-index:1;align-items:center;gap:3px;height:18px;display:flex;position:relative}.frame-waveform span{background:#d8d1ffb8;border-radius:999px;width:3px;height:8px;animation:.72s ease-in-out infinite alternate frameWave}.frame-loading-react strong,.frame-loading-react small{z-index:1;position:relative}.frame-loading-react strong{font-size:11px}.frame-loading-react small{overflow-wrap:anywhere;max-width:100%;color:var(--muted);font-size:9px}.frame-selection-actions{gap:7px;padding:0 12px;display:grid}.frame-selection-actions small{color:var(--muted);font-size:10px;line-height:1.42}@keyframes drawerReveal{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes pulseDot{0%,to{opacity:.45;transform:scale(.75)}50%{opacity:1;transform:scale(1.1)}}@keyframes frameImageReveal{0%{opacity:0;filter:blur(5px);transform:scale(.985)}to{opacity:1;filter:blur();transform:scale(1)}}@keyframes scanBox{0%,to{opacity:.35;transform:scale(.88)rotate(0)}50%{opacity:.95;transform:scale(1.08)rotate(8deg)}}@keyframes frameWave{0%{opacity:.45;height:6px}to{opacity:1;height:18px}}html .preproduction-right-rail .requirements-panel,html .preproduction-right-rail .shot-package-panel,html .preproduction-left-ai .ai-assistant-panel,html .requirement-card.modern{background:#f8fafcd1}@media (max-width:1450px){.preproduction-layout{grid-template-columns:minmax(300px,.74fr) minmax(430px,1.08fr) minmax(300px,.74fr)}.preproduction-right-rail{grid-column:auto}.preproduction-right-rail .requirements-list{grid-template-columns:1fr}}@media (max-width:1180px){.preproduction-layout{grid-template-columns:minmax(290px,.72fr) minmax(420px,1fr)}.preproduction-right-rail{grid-column:1/-1;max-height:none;position:static;overflow:visible}}@media (max-width:820px){.preproduction-layout,.compact-field-grid{grid-template-columns:1fr}.preproduction-tree,.preproduction-right-rail{min-width:0;max-height:none;position:static}}.field select,.compact-field select,.asset-upload-main select,.asset-actions select,.asset-card-controls select,.requirement-card select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 11px center;background-repeat:no-repeat;background-size:14px;padding-right:34px}.field select:hover,.compact-field select:hover,.asset-upload-main select:hover,.asset-actions select:hover,.asset-card-controls select:hover,.requirement-card select:hover{background-color:#ffffff09;border-color:#8b5cf652}select::-ms-expand{display:none}.compact-workspace-title{align-items:center;gap:12px;margin-bottom:12px;padding-bottom:12px}.workspace-title-main{gap:5px;min-width:0;display:grid}.workspace-heading-line{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.stage-title-icon,.block-title svg{color:var(--accent-2);flex:none}.workspace-heading-line h1,.block-title{align-items:center;gap:8px;min-width:0;margin:0;display:inline-flex}.workspace-heading-line h1{font-size:clamp(21px,2vw,26px)}.workspace-title-side{width:auto;min-width:120px}.preproduction-header-metrics.inline{grid-template-columns:repeat(3,minmax(58px,auto)) minmax(138px,auto) minmax(76px,auto);align-items:center;gap:5px;width:auto;min-width:0}.preproduction-header-metrics.inline span{border-radius:10px;min-height:38px;padding:6px 8px}.preproduction-header-metrics.inline small{font-size:7px}.preproduction-header-metrics.inline strong{font-size:11px}.preproduction-header-metrics.inline .duration-metric strong{font-size:10px}.unified-head{align-items:center;min-height:44px}.inline-subtitle{color:var(--muted);margin-top:3px;font-size:10px;font-weight:650;display:block}.episode-stage-grid:not(.preproduction-shell-grid){grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr)}.episode-stage-grid:not(.preproduction-shell-grid) .stage-ai-column{order:-1}.candidate-action-reveal{animation:.24s both candidateActionReveal}.single-candidate-view{grid-template-columns:1fr}.active-revision-collapsed{border:1px solid var(--line);background:#ffffff05;border-radius:12px;padding:0}.active-revision-collapsed summary{cursor:pointer;min-height:38px;color:var(--muted);justify-content:space-between;align-items:center;padding:0 10px;font-size:10px;font-weight:820;display:flex}.active-revision-collapsed[open]{padding-bottom:8px}.preproduction-right-rail{max-height:none;overflow:visible}.preproduction-right-rail .requirements-panel,.preproduction-right-rail .shot-package-panel{overflow:hidden}.preproduction-right-rail .requirements-empty{min-height:84px;padding:12px}.preproduction-right-rail .requirements-empty svg{width:20px;height:20px}.preproduction-right-rail .requirements-empty p{max-width:220px;font-size:11px;line-height:1.35}.shot-readiness-summary{padding:8px 10px}.comfy-frame-panel{padding:0 0 12px}.generate-grid-button{box-sizing:border-box;width:calc(100% - 20px);min-width:0;max-width:calc(100% - 20px);margin:0 10px}.frame-generation-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 10px;overflow:hidden}.frame-result-card{min-width:0;overflow:hidden}.frame-preview-button{width:100%;min-width:0;color:inherit;cursor:zoom-in;background:0 0;border:0;padding:0}.frame-preview-button:disabled{cursor:default}.frame-result-card footer{grid-template-columns:auto minmax(0,1fr);align-items:center}.frame-select-mini{min-width:0;min-height:26px;color:var(--muted);cursor:pointer;background:#8b5cf60e;border:1px solid #8b5cf629;border-radius:999px;justify-content:center;align-items:center;padding:0 8px;font-size:9px;font-weight:820;display:inline-flex}.frame-select-mini.active{color:#6ee7b7;background:#34d3991f;border-color:#34d3996b}.frame-select-mini:disabled{opacity:.48;cursor:default}.frame-preview-backdrop{z-index:80;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);background:#020617c2;place-items:center;padding:32px;animation:.14s both framePreviewBackdropIn;display:grid;position:fixed;inset:0}.frame-preview-modal{place-items:center;max-width:min(92vw,1100px);max-height:90vh;animation:.18s both framePreviewIn;display:grid;position:relative}.frame-preview-modal img{object-fit:contain;border-radius:18px;max-width:100%;max-height:90vh;box-shadow:0 28px 90px #0000005c}.frame-preview-close{color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0f172a8c;border:1px solid #ffffff2e;border-radius:999px;place-items:center;width:38px;height:38px;display:grid;position:absolute;top:10px;right:10px}.asset-manager-title h2{margin-top:0}@keyframes candidateActionReveal{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes framePreviewBackdropIn{0%{opacity:0}to{opacity:1}}@keyframes framePreviewIn{0%{opacity:0;filter:blur(6px);transform:scale(.985)translateY(4px)}to{opacity:1;filter:blur();transform:scale(1)translateY(0)}}@container (max-width:1100px){.preproduction-header-metrics.inline{grid-template-columns:repeat(5,minmax(0,auto))}.workspace-title-side{min-width:92px}}@container (max-width:860px){.compact-workspace-title{flex-direction:column;align-items:stretch}.workspace-title-side{justify-items:stretch;width:100%}.preproduction-header-metrics.inline{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}}@media (max-width:1180px){.episode-stage-grid:not(.preproduction-shell-grid){grid-template-columns:1fr}.episode-stage-grid:not(.preproduction-shell-grid) .stage-ai-column{order:0}}.preproduction-empty-ai{text-align:left;width:min(360px,100%);margin-top:14px}.preproduction-empty-ai .ai-assistant-panel{width:100%}.preproduction-candidates-slot{margin-top:8px}.preproduction-candidates-slot .candidates-panel{background:#ffffff05;border-radius:12px;padding:10px}.preproduction-candidates-slot .section-head.compact-head{margin-bottom:8px}.preproduction-candidates-slot .section-head.compact-head h3{font-size:12px}.preproduction-candidates-slot .candidate-tabs{grid-template-columns:1fr;gap:6px;max-height:220px;display:grid;overflow:auto}.preproduction-candidates-slot .candidate-tab{min-height:52px;padding:9px}.preproduction-candidates-slot .candidate-detail{margin-top:8px;padding-top:8px}.preproduction-candidates-slot .candidate-detail>.report-json{display:none}.candidate-structured-summary{gap:9px;display:grid}.candidate-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.candidate-summary-grid span{border:1px solid var(--line);background:#ffffff06;border-radius:10px;gap:3px;min-width:0;padding:8px 9px;display:grid}.candidate-summary-grid small{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:9px;font-weight:800}.candidate-summary-grid strong{color:var(--text);font-size:16px}.preproduction-candidates-slot .candidate-actions{display:none}.preproduction-candidates-slot .candidate-json-editor .report-json{max-height:360px}.stage-editor-grid.preproduction-shell-grid{grid-template-columns:minmax(0,1fr)}.stage-editor-grid.preproduction-shell-grid .stage-primary-column{min-width:0}.clean-stage-title{align-items:center;margin-bottom:10px;padding-bottom:10px}.clean-stage-title .workspace-title-main{gap:7px;width:100%}.clean-stage-title .workspace-heading-line{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.clean-stage-title h1{margin:0;font-size:clamp(22px,2vw,28px);line-height:1.05}.stage-progress-inline{min-height:30px;color:var(--text);background:#8b5cf612;border:1px solid #8b5cf62e;border-radius:999px;align-items:center;padding:0 10px;font-size:15px;line-height:1;display:inline-flex}.stage-status-pill,.status-badge{min-height:24px;color:var(--muted);white-space:nowrap;background:#94a3b80e;border:1px solid #94a3b82e;border-radius:999px;justify-content:center;align-items:center;padding:0 8px;font-size:10px;font-weight:780;display:inline-flex}.stage-status-pill.completed,.status-badge.accepted,.status-badge.completed,.status-badge.generated,.status-badge.ready{color:#6ee7b7;background:#34d39914;border-color:#34d39938}.stage-status-pill.in_progress,.status-badge.running,.status-badge.queued{color:#c4b5fd;background:#8b5cf614;border-color:#8b5cf63d}.compact-progress-track{background:#94a3b824;border-radius:999px;width:min(260px,100%);height:5px;overflow:hidden}.compact-progress-track i{border-radius:inherit;background:linear-gradient(90deg, var(--accent), var(--accent-2));height:100%;display:block}.stage-revision-disclosure{width:fit-content;max-width:100%;color:var(--muted);border:0}.stage-revision-disclosure summary{min-height:28px;color:var(--muted);cursor:pointer;background:#ffffff05;border:1px solid #94a3b821;border-radius:999px;align-items:center;gap:6px;padding:0 8px;font-size:10px;font-weight:760;list-style:none;display:inline-flex}.stage-revision-disclosure summary::-webkit-details-marker{display:none}.stage-revision-disclosure p{border:1px solid var(--line);background:#ffffff06;border-radius:9px;margin:6px 0 0;padding:6px 8px;font-size:10px}.preproduction-layout{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:14px}.preproduction-tree,.preproduction-editor,.preproduction-right-rail{width:100%;min-width:0}.preproduction-editor .preproduction-form-grid,.preproduction-editor .compact-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preproduction-editor textarea{min-height:80px}.preproduction-editor .shot-editor-card,.preproduction-editor .scene-details{overflow:hidden}.clean-section-head h3,.preproduction-candidates-slot .section-head.compact-head h3{align-items:center;gap:7px;margin:0;display:inline-flex}.count-label{min-width:22px;height:22px;color:var(--muted);background:#94a3b814;border-radius:999px;justify-content:center;align-items:center;font-size:10px;font-weight:780;display:inline-flex}.clean-meta-row{gap:8px}.revision-source{color:var(--muted);font-size:10px;font-weight:720}.ai-assistant-panel .ai-tool-summary,.ai-assistant-panel .context-source-chips,.preproduction-candidates-slot .eyebrow,.episode-workspace-panel .eyebrow{display:none!important}.preproduction-candidates-slot .candidate-tabs{max-height:180px}.preproduction-candidates-slot .candidate-tab{min-height:46px}.preproduction-candidates-slot .candidate-tab small{text-transform:none}.preproduction-candidates-slot .candidate-detail{max-height:520px;overflow:auto}.preproduction-stage-controls{display:none}@media (max-width:1320px){.preproduction-layout{grid-template-columns:minmax(280px,1fr) minmax(360px,1fr)}.preproduction-right-rail{grid-column:1/-1}}@media (max-width:900px){.preproduction-layout,.preproduction-editor .preproduction-form-grid,.preproduction-editor .compact-field-grid{grid-template-columns:1fr}}.preproduction-layout{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))!important}.preproduction-tree,.preproduction-editor,.preproduction-right-rail{min-width:0!important}.preproduction-tree,.preproduction-right-rail{max-height:calc(100vh - 112px)}.preproduction-editor{padding:10px}.preproduction-column-head,.shot-editor-head{min-height:56px;padding:11px 12px}.preproduction-editor .preproduction-form-grid,.preproduction-editor .compact-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.preproduction-editor .field input,.preproduction-editor .field select,.preproduction-editor .field textarea{min-width:0}.preproduction-editor .field textarea{min-height:74px}.preproduction-editor .field.span-2{grid-column:1/-1}.candidate-disclosure{border:0}.candidate-disclosure-summary{cursor:pointer;justify-content:space-between;align-items:center;gap:8px;min-height:36px;margin:0;padding:0;list-style:none;display:flex}.candidate-disclosure-summary::-webkit-details-marker{display:none}.candidate-disclosure-summary>span{align-items:center;gap:7px;min-width:0;font-size:13px;font-weight:850;display:inline-flex}.candidate-disclosure[open] .candidate-disclosure-summary{margin-bottom:8px}.preproduction-candidates-slot .candidate-tabs,.candidate-disclosure:not([open]) .candidate-tabs,.candidate-disclosure:not([open]) .candidate-detail{display:none}.candidate-disclosure[open] .candidate-tabs{display:grid}.candidate-disclosure[open] .candidate-detail{display:block}.preproduction-candidates-slot .candidate-detail{max-height:360px}.candidate-structured-summary .candidate-summary-grid{display:none}.candidate-review-disclosure .candidate-compare-grid{margin-top:10px}.stage-history-wrap .history-panel{padding:0}.history-panel .revision-list{margin-top:10px}.stage-revision-disclosure p,.revision-list,.candidate-detail,.candidate-json-editor .report-json,.candidate-json-editor .code-textarea{overflow-wrap:anywhere}@media (max-width:1100px){.preproduction-layout{grid-template-columns:minmax(0,1fr)!important}.preproduction-tree,.preproduction-right-rail{max-height:none;position:static}}.preproduction-right-rail{grid-column:auto!important}.ai-generation-active .ai-assistant-panel,.preproduction-workspace.ai-field-loading{position:relative}.ai-fill-banner{max-height:0;color:var(--text);opacity:0;background:linear-gradient(135deg,#8b5cf61a,#22d3ee0b);border:0 solid #0000;border-radius:13px;grid-template-columns:auto minmax(0,1fr) 16px 16px 16px;align-items:center;gap:9px;margin-bottom:0;padding:0 12px;font-size:12px;font-weight:760;transition:max-height .32s cubic-bezier(.22,1,.36,1),margin-bottom .26s,padding .26s,border-width .26s,opacity .22s,transform .32s cubic-bezier(.22,1,.36,1);display:grid;overflow:hidden;transform:translateY(-5px)scale(.99)}.ai-fill-banner.is-visible{opacity:1;border-width:1px;border-color:#8b5cf633;max-height:72px;margin-bottom:10px;padding:10px 12px;transform:translateY(0)scale(1)}.ai-fill-banner i{background:var(--accent);opacity:.28;border-radius:999px;width:7px;height:7px;animation:1.05s ease-in-out infinite aiTextDot}.ai-fill-banner i:nth-of-type(2){animation-delay:.14s}.ai-fill-banner i:nth-of-type(3){animation-delay:.28s}.ai-field-loading .stage-fields .field input,.ai-field-loading .stage-fields .field textarea,.ai-field-loading .stage-fields .field select,.preproduction-workspace.ai-field-loading .preproduction-editor .field input,.preproduction-workspace.ai-field-loading .preproduction-editor .field textarea,.preproduction-workspace.ai-field-loading .preproduction-editor .field select,.preproduction-workspace.ai-field-loading .scene-tree-button,.preproduction-workspace.ai-field-loading .shot-tree-button,.preproduction-workspace.ai-field-loading .requirement-card{caret-color:#0000;pointer-events:none;animation:1.7s cubic-bezier(.45,0,.55,1) infinite alternate aiSkeletonWave;color:#0000!important;background-image:linear-gradient(90deg,#94a3b814 0%,#8b5cf62e 42%,#94a3b814 84%)!important;background-size:240% 100%!important}.preproduction-workspace.ai-field-loading .scene-tree-button *,.preproduction-workspace.ai-field-loading .shot-tree-button *,.preproduction-workspace.ai-field-loading .requirement-card *{color:#0000!important;border-color:#0000!important}.ai-field-loading .stage-fields .field label,.preproduction-workspace.ai-field-loading .preproduction-editor .field label,.preproduction-workspace.ai-field-loading .preproduction-column-head,.preproduction-workspace.ai-field-loading .shot-editor-head{opacity:.72}.ai-field-loading .stage-fields .field input::placeholder,.ai-field-loading .stage-fields .field textarea::placeholder,.preproduction-workspace.ai-field-loading .preproduction-editor input::placeholder,.preproduction-workspace.ai-field-loading .preproduction-editor textarea::placeholder{color:#0000!important}.candidate-actions .button.success{min-width:160px}.candidate-actions .status-line{flex:100%}@keyframes aiSkeletonWave{0%{background-position:100% 0}to{background-position:0 0}}@keyframes aiTextDot{0%,to{opacity:.25;transform:translateY(0)}50%{opacity:.95;transform:translateY(-3px)}}.stage-fields.ai-field-loading .field input,.stage-fields.ai-field-loading .field textarea,.stage-fields.ai-field-loading .field select{caret-color:#0000;pointer-events:none;animation:1.7s cubic-bezier(.45,0,.55,1) infinite alternate aiSkeletonWave;color:#0000!important;background-image:linear-gradient(90deg,#94a3b814 0%,#8b5cf62e 42%,#94a3b814 84%)!important;background-size:240% 100%!important}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ai-run-error{color:#fecaca;overflow-wrap:anywhere;white-space:pre-wrap;background:#7f1d1d1f;border:1px solid #ef444457;border-radius:11px;align-items:flex-start;gap:9px;width:100%;padding:11px 12px;font-size:11px;line-height:1.45;display:flex}.ai-run-error>svg{flex:none;margin-top:1px}.ai-run-error>div{gap:4px;min-width:0;display:grid}.ai-run-error strong,.ai-run-error span,.ai-run-error small{display:block}.ai-run-error small{color:#fecacabd}html .ai-run-error{color:#991b1b;background:#fee2e2b8;border-color:#dc262640}html .ai-run-error small{color:#991b1bb8}.preproduction-layout,.preproduction-empty,.candidate-detail,.form-feedback{animation:.28s cubic-bezier(.22,1,.36,1) both softContentReveal}.ai-assistant-panel,.preproduction-workspace,.project-card,.episode-create-inline,.form-grid{transition:opacity .22s,transform .28s cubic-bezier(.22,1,.36,1),border-color .22s,background-color .22s,box-shadow .22s}.ai-run-warning{color:#fde68a;overflow-wrap:anywhere;white-space:pre-wrap;background:#78350f1f;border:1px solid #f59e0b57;border-radius:11px;align-items:flex-start;gap:9px;width:100%;padding:11px 12px;font-size:11px;line-height:1.45;animation:.24s ease-out both softContentReveal;display:flex}.ai-run-warning>svg{flex:none;margin-top:1px}.ai-run-warning>div{gap:4px;min-width:0;display:grid}.ai-run-warning strong,.ai-run-warning span,.ai-run-warning small{display:block}.ai-run-warning small{color:#fde68ac2}html .ai-run-warning{color:#92400e;background:#fef3c7c7;border-color:#d9770642}html .ai-run-warning small{color:#92400eb8}.project-card-managed{padding:0;position:relative;overflow:hidden}.project-card-main-link{min-height:100%;color:inherit;padding:16px;display:block}.project-card-heading{justify-content:space-between;align-items:center;gap:10px;padding-right:36px;display:flex}.project-delete-trigger{z-index:2;opacity:.58;position:absolute;top:11px;right:11px}.project-card-managed:hover .project-delete-trigger,.project-delete-trigger:focus-visible{opacity:1}.project-create-actions,.episode-create-actions,.project-delete-modal-actions{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.ai-action-button{color:#ddd6fe;background:linear-gradient(135deg,#8b5cf621,#22d3ee0f);border-color:#8b5cf64d}.ai-action-button:not(:disabled):hover{background:linear-gradient(135deg,#8b5cf638,#22d3ee17);border-color:#8b5cf685;transform:translateY(-1px)}.ai-form-transition.is-ai-loading{opacity:.82}.ai-form-transition.is-ai-loading .field input,.ai-form-transition.is-ai-loading .field textarea,.ai-form-transition.is-ai-loading .field select{background-image:linear-gradient(100deg,#94a3b80d 0%,#8b5cf624 48%,#94a3b80d 100%);background-size:240% 100%;animation:1.7s cubic-bezier(.45,0,.55,1) infinite alternate aiSkeletonWave}.form-feedback{border-radius:10px;width:100%;padding:9px 11px;font-size:11px;line-height:1.45}.form-feedback.success{color:#bbf7d0;background:#1665341a;border:1px solid #22c55e3d}.form-feedback.error{color:#fecaca;background:#7f1d1d1a;border:1px solid #ef444447}.project-delete-modal{border:1px solid var(--line-strong);background:var(--surface-1);border-radius:18px;gap:16px;width:min(560px,100%);padding:20px;animation:.26s cubic-bezier(.22,1,.36,1) both modalSoftReveal;display:grid;box-shadow:0 30px 100px #00000052}.project-delete-modal-head{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.project-delete-modal-head h2{margin:8px 0 0}.project-delete-warning{color:var(--muted);background:#7f1d1d17;border:1px solid #ef44443d;border-radius:12px;margin:0;padding:12px;font-size:12px;line-height:1.55}.project-delete-modal-actions{justify-content:flex-end}.episode-create-with-ai{grid-template-columns:minmax(150px,.8fr) minmax(240px,1.5fr) minmax(110px,.48fr)}.episode-ai-brief-field,.episode-create-actions,.episode-form-feedback{grid-column:1/-1}@keyframes softContentReveal{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes modalSoftReveal{0%{opacity:0;transform:translateY(10px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@media (prefers-reduced-motion:reduce){.ai-fill-banner,.preproduction-layout,.preproduction-empty,.candidate-detail,.form-feedback,.project-delete-modal,.ai-run-warning,.ai-field-loading .stage-fields .field input,.ai-field-loading .stage-fields .field textarea,.ai-field-loading .stage-fields .field select,.preproduction-workspace.ai-field-loading .preproduction-editor .field input,.preproduction-workspace.ai-field-loading .preproduction-editor .field textarea,.preproduction-workspace.ai-field-loading .preproduction-editor .field select,.preproduction-workspace.ai-field-loading .scene-tree-button,.preproduction-workspace.ai-field-loading .shot-tree-button,.preproduction-workspace.ai-field-loading .requirement-card,.ai-form-transition.is-ai-loading .field input,.ai-form-transition.is-ai-loading .field textarea,.ai-form-transition.is-ai-loading .field select{transition-duration:1ms!important;animation:none!important}}html .ai-action-button{color:#5b21b6}html .form-feedback.success{color:#166534;background:#dcfce7b8}html .form-feedback.error{color:#991b1b;background:#fee2e2b8}@container (max-width:820px){.episode-create-with-ai{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.episode-create-with-ai{grid-template-columns:1fr}.project-create-actions,.episode-create-actions,.project-delete-modal-actions{flex-direction:column;align-items:stretch}.project-create-actions .button,.episode-create-actions .button,.project-delete-modal-actions .button{width:100%}}.preproduction-empty-ai{contain:layout;align-items:start;gap:10px;display:grid;position:relative}.preproduction-empty-ai>*{min-width:0}.preproduction-empty-ai .ai-assistant-panel,.preproduction-empty-ai .preproduction-ai-assistant{z-index:auto;align-self:stretch;position:static!important;top:auto!important}.preproduction-empty-ai .preproduction-candidates-slot{z-index:0;margin-top:0;position:relative}.preproduction-tree,.preproduction-right-rail,.preproduction-tree.requirements-panel{overscroll-behavior:auto;max-height:none;position:static;top:auto;overflow:visible}.preproduction-workspace.ai-request-pending{transition:none;position:relative}.preproduction-workspace.ai-request-pending .preproduction-editor,.preproduction-workspace.ai-request-pending .preproduction-tree,.preproduction-workspace.ai-request-pending .preproduction-right-rail{opacity:.985}.preproduction-workspace,.preproduction-workspace .preproduction-layout,.preproduction-workspace .preproduction-empty{transition-property:none}.preproduction-ai-assistant{isolation:isolate}.ai-candidate-button{contain:paint;min-height:40px;position:relative}.ai-candidate-button>svg{flex:none}.ai-candidate-button>svg.spin{animation-duration:1.05s}@media (prefers-reduced-motion:reduce){.ai-candidate-button>svg.spin{animation:none!important}}.preproduction-column-head.stacked-control-head,.shot-editor-head.stacked-control-head{align-items:stretch;gap:7px;min-height:0;padding:8px 10px 10px;display:grid}.preproduction-head-actions{justify-content:flex-end;align-items:center;gap:5px;min-width:0;min-height:30px;display:flex}.preproduction-head-title{min-width:0}.stacked-control-head .block-title{text-overflow:clip;white-space:normal;width:100%;min-width:0;margin:0;line-height:1.28;overflow:visible}.stacked-control-head .inline-subtitle{margin-top:4px}.preproduction-toolbar-button{border:1px solid var(--line);width:30px;min-width:30px;height:30px;color:var(--muted);background:#ffffff09;border-radius:9px;place-items:center;padding:0;transition:color .14s,border-color .14s,background .14s,transform .14s;display:inline-grid}.preproduction-toolbar-button:not(:disabled):hover{color:var(--text);border-color:var(--line-strong);background:#ffffff13;transform:translateY(-1px)}.preproduction-toolbar-button:disabled{cursor:not-allowed;opacity:.44}.shot-package-panel.comfy-frame-panel{border:1px solid var(--line);background:#080c1357;border-radius:14px;margin-top:12px;padding:0 0 12px;overflow:hidden}.comfy-frame-panel .preproduction-column-head{margin:0}.frame-generation-error{margin:0 10px}.frame-generation-empty{border:1px dashed var(--line);border-radius:12px;gap:10px;margin:0 10px}.frame-generation-empty .button{min-height:32px;padding:6px 10px}.comfy-frame-panel .generate-grid-button{width:calc(100% - 20px);max-width:calc(100% - 20px);min-height:42px;margin:0 10px}.comfy-frame-panel .frame-generation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 10px;display:grid}.comfy-frame-panel .frame-result-card{border:1px solid var(--line);cursor:default;background:#ffffff05;border-radius:12px;min-width:0;overflow:hidden}.comfy-frame-panel .frame-result-card:hover{transform:none}.comfy-frame-panel .frame-preview-button{background:#0000002e;width:100%;display:block;position:relative;overflow:hidden}.comfy-frame-panel .frame-preview-button img{object-fit:contain;background:#0003;width:100%;height:164px;animation:.24s both frameImageReveal;display:block}.frame-preview-icon{color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0f172a9e;border:1px solid #ffffff2e;border-radius:9px;place-items:center;width:28px;height:28px;display:grid;position:absolute;bottom:7px;right:7px}.comfy-frame-panel .frame-empty,.comfy-frame-panel .frame-loading-react{text-align:center;gap:8px;min-height:164px;padding:12px}.comfy-frame-panel .frame-loading-react:before{display:none}.comfy-frame-panel .frame-error-state{color:#fca5a5}.comfy-frame-panel .frame-result-card footer{grid-template-columns:minmax(0,1fr) auto;align-items:center}.comfy-frame-panel .frame-select-mini{white-space:nowrap;justify-self:end;gap:4px}.frame-slot-error{color:#fca5a5;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;padding:0 8px 8px;font-size:8px;line-height:1.35;display:-webkit-box;overflow:hidden}@media (max-width:1180px){.comfy-frame-panel .frame-generation-grid{grid-template-columns:1fr}.comfy-frame-panel .frame-preview-button img,.comfy-frame-panel .frame-empty,.comfy-frame-panel .frame-loading-react{height:190px;min-height:190px}}@media (prefers-reduced-motion:reduce){.preproduction-toolbar-button,.comfy-frame-panel .frame-preview-button img,.frame-preview-backdrop,.frame-preview-modal{transition:none!important;animation:none!important}}.preproduction-column-head.stacked-control-head,.shot-editor-head.stacked-control-head{gap:6px;padding:10px 11px}.preproduction-column-head.stacked-control-head .preproduction-head-title,.shot-editor-head.stacked-control-head .preproduction-head-title{order:0}.preproduction-column-head.stacked-control-head .preproduction-head-actions,.shot-editor-head.stacked-control-head .preproduction-head-actions{order:1;justify-content:flex-start;min-height:0}.preproduction-column-head.stacked-control-head .preproduction-head-actions:empty,.shot-editor-head.stacked-control-head .preproduction-head-actions:empty{display:none}.preproduction-tree,.preproduction-editor,.preproduction-right-rail{contain:layout style}.scene-tree-list.defer-offscreen-items>.scene-tree-item{content-visibility:auto;contain-intrinsic-size:52px}.requirements-list.defer-offscreen-items>.requirement-card.modern{content-visibility:auto;contain-intrinsic-size:58px}.comfy-frame-panel .frame-result-card{contain:layout paint style}.comfy-frame-panel .frame-loading-react:before{animation:none;display:none}.comfy-frame-panel .frame-loading-react svg{animation:none!important}.frame-preview-icon{-webkit-backdrop-filter:none;backdrop-filter:none}.candidate-disclosure-body{min-width:0}.preproduction-assets-disclosure{overflow:hidden}.preproduction-assets-toggle{width:100%;min-height:64px;color:var(--text);text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.preproduction-assets-toggle:hover{background:#ffffff07}.preproduction-assets-toggle>span{align-items:center;gap:10px;min-width:0;display:flex}.preproduction-assets-toggle>span>span{gap:3px;min-width:0;display:grid}.preproduction-assets-toggle strong,.preproduction-assets-toggle small{min-width:0}.preproduction-assets-toggle small{color:var(--muted);font-size:10px;line-height:1.4}.preproduction-assets-toggle>svg{color:var(--muted);flex:none;transition:transform .16s}.preproduction-assets-toggle>svg.rotated{transform:rotate(180deg)}.preproduction-assets-content{border-top:1px solid var(--line);padding:0 12px 12px}.preproduction-assets-content .asset-manager{margin-top:12px}@media (prefers-reduced-motion:reduce){.preproduction-assets-toggle>svg{transition:none}}body.preproduction-performance-mode:before{display:none}body.preproduction-performance-mode .sidebar,body.preproduction-performance-mode .topbar{-webkit-backdrop-filter:none;backdrop-filter:none}body.preproduction-performance-mode .sidebar{background:#080b11fb}body.preproduction-performance-mode .topbar{background:#090c12fb}html body.preproduction-performance-mode .sidebar{background:#f8fafcfc}html body.preproduction-performance-mode .topbar{background:#fffffffc}.scene-tree-list:not(.defer-offscreen-items)>.scene-tree-item,.requirements-list:not(.defer-offscreen-items)>.requirement-card.modern{content-visibility:visible}body.preproduction-performance-mode .comfy-frame-panel .frame-preview-button img,body.preproduction-performance-mode .preproduction-layout,body.preproduction-performance-mode .candidate-detail{animation:none}.frame-preview-backdrop{z-index:1000;overscroll-behavior:contain;-webkit-backdrop-filter:none;backdrop-filter:none;background:#020617eb;width:100vw;height:100dvh}.frame-preview-modal{width:min(94vw,1440px);height:min(92dvh,1000px)}.frame-preview-modal img{width:100%;max-width:94vw;height:100%;max-height:92dvh}.frame-preview-close{-webkit-backdrop-filter:none;backdrop-filter:none;background:#0f172ae6}.shot-package-lazy-boundary{min-height:1px}.asset-bible-workspace{gap:14px;display:grid}.asset-bible-feedback{color:var(--green);background:#34d39914;border:1px solid #34d3993d;border-radius:12px;padding:12px 14px}.asset-bible-feedback.error{color:var(--red);background:#f8717114;border-color:#f8717147}.asset-bible-loading{justify-content:center;align-items:center;gap:10px;min-height:190px;display:flex}.asset-bible-readiness-grid{grid-template-columns:1.3fr repeat(4,minmax(120px,.8fr)) 1fr 1fr;gap:10px;display:grid}.asset-bible-readiness-card{align-content:space-between;gap:8px;min-width:0;min-height:112px;padding:14px;display:grid;overflow:hidden}.asset-bible-readiness-card span{color:var(--muted);align-items:center;gap:7px;font-size:11px;font-weight:700;display:flex}.asset-bible-readiness-card strong{letter-spacing:-.05em;font-size:28px}.asset-bible-readiness-card small{color:var(--muted-2);font-size:10px;line-height:1.35}.asset-bible-readiness-card.primary{background:linear-gradient(145deg,#8b5cf629,#11151feb)}.asset-bible-readiness-card.level-a{border-color:#f472b633}.asset-bible-readiness-card.level-b{border-color:#fbbf2433}.asset-bible-readiness-card.level-c{border-color:#22d3ee33}.asset-bible-readiness-card.level-d{border-color:#94a3b82e}.asset-bible-readiness-card.warning strong{color:var(--yellow)}.asset-bible-readiness-card.ready strong{color:var(--green)}.asset-bible-main-panel{overflow:hidden}.asset-bible-toolbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:20px;padding:20px;display:flex}.asset-bible-toolbar h2,.asset-bible-detail-card h2,.asset-bible-modal h2{margin:6px 0 4px}.asset-bible-toolbar p{max-width:760px;color:var(--muted);margin:0;line-height:1.5}.asset-bible-toolbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.asset-bible-filters{border-bottom:1px solid var(--line);background:#ffffff05;grid-template-columns:minmax(240px,1fr) auto 190px;align-items:center;gap:10px;padding:12px 16px;display:grid}.asset-bible-search{border:1px solid var(--line);min-height:40px;color:var(--muted);background:var(--bg-soft);border-radius:11px;align-items:center;gap:9px;padding:0 12px;display:flex}.asset-bible-search input{width:100%;min-width:0;color:var(--text);background:0 0;border:0;outline:0}.asset-bible-level-tabs,.asset-bible-segmented{border:1px solid var(--line);background:var(--bg-soft);border-radius:11px;align-items:center;gap:4px;padding:4px;display:flex}.asset-bible-level-tabs button,.asset-bible-segmented button{min-height:31px;color:var(--muted);background:0 0;border:0;border-radius:8px;padding:0 10px;font-size:11px;font-weight:700}.asset-bible-level-tabs button.active,.asset-bible-segmented button.active{color:var(--text);background:var(--surface-3);box-shadow:0 5px 14px #00000024}.asset-bible-filters>select{min-height:40px}.asset-bible-layout{grid-template-columns:minmax(230px,.55fr) minmax(0,1.7fr);min-height:650px;display:grid}.asset-bible-entry-list{border-right:1px solid var(--line);background:#070a1029;min-width:0}.asset-bible-entry-row{border:0;border-bottom:1px solid var(--line);width:100%;color:var(--text);text-align:left;background:0 0;grid-template-columns:28px 46px minmax(0,1fr);align-items:center;gap:9px;padding:11px 10px;transition:background .14s,box-shadow .14s;display:grid}.asset-bible-entry-row:hover{background:#ffffff07}.asset-bible-entry-row.selected{box-shadow:inset 3px 0 0 var(--accent);background:linear-gradient(90deg,#8b5cf621,#8b5cf606)}.asset-bible-level-mark{border:1px solid var(--line-strong);border-radius:9px;place-items:center;width:27px;height:27px;font-size:11px;font-weight:850;display:inline-grid}.asset-bible-level-mark.level-a{color:#f9a8d4;background:#f472b61a}.asset-bible-level-mark.level-b{color:#fcd34d;background:#fbbf241a}.asset-bible-level-mark.level-c{color:#67e8f9;background:#22d3ee1a}.asset-bible-level-mark.level-d{color:#cbd5e1;background:#94a3b817}.asset-bible-entry-thumb{border:1px solid var(--line);width:46px;height:38px;color:var(--muted);background:var(--surface-2);border-radius:10px;place-items:center;display:grid;overflow:hidden}.asset-bible-entry-thumb img,.asset-bible-reference-preview img,.asset-bible-asset-picker button>span img{object-fit:cover;width:100%;height:100%;display:block}.asset-bible-entry-copy{gap:3px;min-width:0;display:grid}.asset-bible-entry-copy small,.asset-bible-entry-copy em{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-style:normal;overflow:hidden}.asset-bible-entry-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.asset-bible-entry-row>.asset-bible-status{grid-column:3;justify-self:start}.asset-bible-status{border:1px solid var(--line);min-height:24px;color:var(--muted);white-space:nowrap;background:#94a3b812;border-radius:999px;align-items:center;padding:0 8px;font-size:9px;font-weight:750;display:inline-flex}.asset-bible-status.status-approved{color:var(--green);background:#34d39914;border-color:#34d39940}.asset-bible-status.status-review{color:var(--yellow)}.asset-bible-status.status-conflict{color:var(--red);border-color:#f8717140}.asset-bible-status.status-outdated{color:#fb923c}.asset-bible-detail{background:#ffffff02;min-width:0}.asset-bible-detail-empty,.asset-bible-empty-list,.asset-bible-reference-empty,.asset-bible-picker-empty{min-height:220px;color:var(--muted);text-align:center;align-content:center;place-items:center;gap:10px;padding:30px;display:grid}.asset-bible-detail-card{gap:18px;padding:20px;display:grid}.asset-bible-detail-card>header,.asset-bible-references-section>header{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.asset-bible-detail-title{align-items:flex-start;gap:12px;min-width:0;display:flex}.asset-bible-detail-title small,.asset-bible-detail-title span,.asset-bible-copy-section small{color:var(--muted)}.asset-bible-detail-title h2{font-size:21px}.asset-bible-detail-actions{gap:7px;display:flex}.asset-bible-detail-badges,.asset-bible-reference-badges{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.asset-bible-detail-badges>span:not(.asset-bible-status),.asset-bible-reference-badges>span{border:1px solid var(--line);min-height:25px;color:var(--muted);background:#94a3b80f;border-radius:999px;align-items:center;gap:5px;padding:0 8px;font-size:10px;display:inline-flex}.asset-bible-copy-section,.asset-bible-variation-grid>section,.asset-bible-references-section,.asset-bible-usage-section{border:1px solid var(--line);background:#ffffff04;border-radius:13px;padding:15px}.asset-bible-copy-section h3,.asset-bible-variation-grid h3,.asset-bible-references-section h3,.asset-bible-usage-section h3{margin:0 0 8px;font-size:12px}.asset-bible-copy-section p,.asset-bible-variation-grid p,.asset-bible-references-section p,.asset-bible-usage-section p{color:var(--muted);margin:0;font-size:12px;line-height:1.55}.asset-bible-variation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.asset-bible-variation-grid h3{align-items:center;gap:7px;display:flex}.asset-bible-chip-list{flex-wrap:wrap;gap:6px;display:flex}.asset-bible-chip-list span{color:#a7f3d0;background:#34d3990f;border:1px solid #34d3992e;border-radius:8px;padding:5px 8px;font-size:10px}.asset-bible-chip-list.forbidden span{color:#fecaca;background:#f871710f;border-color:#f871712e}.asset-bible-references-section>header p{margin-top:4px}.asset-bible-reference-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px;display:grid}.asset-bible-reference-card{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;min-width:0;overflow:hidden}.asset-bible-reference-card.primary{border-color:#8b5cf657;box-shadow:0 0 0 1px #8b5cf614}.asset-bible-reference-preview{aspect-ratio:16/10;width:100%;color:var(--muted);background:var(--bg-soft);border:0;place-items:center;display:grid;position:relative;overflow:hidden}.asset-bible-reference-preview>span{color:#fff;background:#05080da8;border:1px solid #ffffff21;border-radius:9px;place-items:center;width:28px;height:28px;display:grid;position:absolute;bottom:8px;right:8px}.asset-bible-reference-copy{gap:3px;min-width:0;padding:10px;display:grid}.asset-bible-reference-copy small,.asset-bible-reference-copy em{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-style:normal;overflow:hidden}.asset-bible-reference-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.asset-bible-reference-badges{padding:0 10px 8px}.asset-bible-reference-badges .primary{color:#c4b5fd}.asset-bible-reference-actions{border-top:1px solid var(--line);gap:5px;padding:8px 10px 10px;display:flex}.asset-bible-reference-actions button{border:1px solid var(--line);min-height:27px;color:var(--muted);background:0 0;border-radius:7px;padding:0 7px;font-size:9px}.asset-bible-reference-actions button:hover{color:var(--text);background:var(--surface-3)}.asset-bible-reference-actions button.danger{color:var(--red);margin-left:auto}.asset-bible-usage-section>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.asset-bible-usage-section>div span{border:1px solid var(--line);color:var(--muted);background:var(--bg-soft);border-radius:10px;gap:2px;padding:10px;font-size:10px;display:grid}.asset-bible-usage-section>div strong{color:var(--text);font-size:18px}.asset-bible-project-card{background:radial-gradient(520px 180px at 80% 0%, #8b5cf621, transparent 68%), var(--surface);grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:16px;min-height:170px;margin-top:14px;padding:20px;transition:border-color .15s,transform .15s;display:grid;position:relative;overflow:hidden}.asset-bible-project-card:hover{border-color:#8b5cf652;transform:translateY(-1px)}.asset-bible-project-card-icon{color:#c4b5fd;background:#8b5cf61a;border:1px solid #8b5cf63d;border-radius:14px;place-items:center;width:48px;height:48px;display:grid}.asset-bible-project-card-copy h2{margin:7px 0 5px;font-size:20px}.asset-bible-project-card-copy p{max-width:720px;color:var(--muted);margin:0;font-size:12px;line-height:1.5}.asset-bible-project-card-metrics{flex-wrap:wrap;align-items:center;gap:16px;margin-top:14px;display:flex}.asset-bible-project-card-metrics span{color:var(--muted);align-items:center;gap:5px;font-size:10px;display:inline-flex}.asset-bible-project-card-metrics strong{color:var(--text);font-size:14px}.asset-bible-project-card-metrics .warning{color:var(--yellow)}.asset-bible-project-card-action{color:#c4b5fd;align-items:center;gap:7px;font-size:12px;font-weight:750;display:inline-flex}.asset-bible-modal-backdrop,.asset-bible-picker-backdrop,.asset-bible-preview-backdrop{z-index:3000;background:#05080dc2;place-items:center;padding:22px;display:grid;position:fixed;inset:0}.asset-bible-modal,.asset-bible-picker-modal{border:1px solid var(--line-strong);background:var(--surface);border-radius:18px;grid-template-rows:auto minmax(0,1fr) auto;width:min(1040px,100%);max-height:calc(100vh - 44px);display:grid;overflow:hidden;box-shadow:0 30px 100px #0000006b}.asset-bible-reference-modal{width:min(920px,100%)}.asset-bible-modal>header,.asset-bible-picker-modal>header,.asset-bible-modal>footer,.asset-bible-picker-modal>footer{justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.asset-bible-modal>header,.asset-bible-picker-modal>header{border-bottom:1px solid var(--line)}.asset-bible-modal>footer,.asset-bible-picker-modal>footer{border-top:1px solid var(--line);justify-content:flex-end}.asset-bible-modal-body,.asset-bible-picker-modal-body{min-height:0;padding:16px 18px;overflow:auto}.asset-bible-form-section+.asset-bible-form-section{margin-top:20px}.asset-bible-form-section h3{margin:0 0 10px;font-size:12px}.asset-bible-segmented{width:fit-content;margin-bottom:12px}.asset-bible-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;display:grid}.asset-bible-form-grid.compact{margin-top:16px}.asset-bible-form-grid .span-2{grid-column:1/-1}.asset-bible-checkboxes{align-content:center;gap:9px;padding-top:20px;display:grid}.asset-bible-checkboxes label,.asset-bible-primary-check{color:var(--muted);align-items:center;gap:8px;font-size:11px;display:flex}.asset-bible-primary-check{border:1px solid var(--line);background:var(--bg-soft);border-radius:11px;min-height:62px;padding:10px}.asset-bible-primary-check span{gap:3px;display:grid}.asset-bible-primary-check strong{color:var(--text);font-size:11px}.asset-bible-primary-check small{font-size:9px}.asset-bible-asset-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.asset-bible-asset-picker>button{border:1px solid var(--line);min-width:0;color:var(--text);text-align:left;background:var(--surface-2);border-radius:11px;gap:6px;padding:7px;display:grid;overflow:hidden}.asset-bible-asset-picker>button.selected{border-color:#8b5cf67a;box-shadow:0 0 0 2px #8b5cf61c}.asset-bible-asset-picker>button>span{aspect-ratio:16/10;width:100%;color:var(--muted);background:var(--bg-soft);border-radius:8px;place-items:center;display:grid;overflow:hidden}.asset-bible-asset-picker strong,.asset-bible-asset-picker small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.asset-bible-asset-picker strong{font-size:10px}.asset-bible-asset-picker small{color:var(--muted);font-size:9px}.asset-bible-file-placeholder{width:100%;height:100%;color:var(--muted);align-content:center;place-items:center;gap:5px;display:grid}.asset-bible-preview-backdrop{z-index:4000}.asset-bible-preview-content{justify-items:center;gap:10px;max-width:94vw;max-height:91vh;display:grid}.asset-bible-preview-content>img{object-fit:contain;border-radius:12px;max-width:94vw;max-height:84vh;box-shadow:0 30px 90px #00000080}.asset-bible-preview-content>div{text-align:center;gap:3px;display:grid}.asset-bible-preview-content small{color:var(--muted)}.asset-bible-preview-close{position:fixed;top:18px;right:18px}.requirement-bible-summary{color:#c4b5fd;align-items:center;gap:5px;font-size:9px;display:inline-flex}.requirement-bible-summary .asset-bible-level-mark{border-radius:6px;width:19px;height:19px;font-size:8px}.requirement-bible-link-row{background:#8b5cf60e;border:1px solid #8b5cf62e;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px;display:flex}.requirement-bible-link-row>div{color:#c4b5fd;align-items:center;gap:9px;min-width:0;display:flex}.requirement-bible-link-row span{gap:2px;min-width:0;display:grid}.requirement-bible-link-row strong,.requirement-bible-link-row small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.requirement-bible-link-row strong{color:var(--text);font-size:10px}.requirement-bible-link-row small{color:var(--muted);font-size:9px}.asset-bible-picker-modal{width:min(760px,100%)}.asset-bible-requirement-options{gap:7px;margin-top:12px;display:grid}.asset-bible-requirement-option{border:1px solid var(--line);background:var(--surface-2);border-radius:11px;justify-content:space-between;align-items:center;gap:12px;padding:10px;display:flex}.asset-bible-requirement-option>div:first-child{align-items:flex-start;gap:9px;min-width:0;display:flex}.asset-bible-requirement-option>div:first-child>div{gap:3px;min-width:0;display:grid}.asset-bible-requirement-option small,.asset-bible-requirement-option p{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:9px;overflow:hidden}.asset-bible-requirement-option strong{font-size:11px}.asset-bible-requirement-option-actions{flex:none;justify-items:end;gap:6px;display:grid}.asset-bible-requirement-option-actions>span{color:var(--muted);font-size:9px}.asset-bible-requirement-option-actions>span.ready{color:var(--green)}.asset-bible-requirement-option-actions>span.missing{color:var(--yellow)}.asset-bible-picker-loading{min-height:180px;color:var(--muted);justify-content:center;align-items:center;gap:9px;display:flex}.asset-bible-ai-open{color:#d8d1ff;background:#8b5cf614;border-color:#8b5cf647;justify-content:center;min-width:152px}.asset-bible-ai-open.running{color:#6b55d7;background:#6b55d70f;border-color:#6b55d733}.asset-bible-ai-backdrop{z-index:3600}.asset-bible-ai-modal{width:min(1120px,100%)}.asset-bible-ai-modal>header p{max-width:760px;color:var(--muted);margin:0;font-size:11px;line-height:1.45}.asset-bible-ai-modal .eyebrow{align-items:center;gap:6px;display:inline-flex}.asset-bible-ai-body{align-content:start;gap:12px;min-height:0;padding:16px 18px 22px;display:grid;overflow:auto}.asset-bible-ai-request{background:linear-gradient(135deg,#8b5cf613,#ffffff05);border:1px solid #8b5cf633;border-radius:14px;grid-template-columns:minmax(220px,.72fr) minmax(360px,1.28fr) 250px;align-items:center;gap:16px;padding:16px;display:grid}.asset-bible-ai-request h3,.asset-bible-ai-candidate h3{margin:0 0 5px;font-size:13px}.asset-bible-ai-request p,.asset-bible-ai-candidate header p{color:var(--muted);margin:0;font-size:10px;line-height:1.45}.asset-bible-ai-request textarea{resize:vertical;min-height:76px}.asset-bible-ai-submit{grid-template-columns:minmax(0,1fr) 44px;align-items:stretch;gap:8px;width:250px;min-width:0;display:grid}.asset-bible-ai-submit>.button{width:100%;min-width:0;min-height:44px}.asset-bible-ai-analyze-button>span,.asset-bible-ai-cancel-button{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.asset-bible-ai-cancel-button{width:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important}.asset-bible-ai-cancel-placeholder{width:44px;height:44px}.asset-bible-ai-history-toggle{border:1px solid var(--line);width:100%;min-height:42px;color:var(--muted);background:var(--surface-2);border-radius:11px;justify-content:space-between;align-items:center;gap:10px;padding:0 12px;display:flex}.asset-bible-ai-history-toggle>span{align-items:center;gap:7px;font-size:11px;font-weight:700;display:flex}.asset-bible-ai-history-toggle em{min-width:22px;height:22px;color:var(--text);background:var(--surface-3);border-radius:999px;place-items:center;font-size:9px;font-style:normal;display:inline-grid}.asset-bible-ai-history{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.asset-bible-ai-history>button{border:1px solid var(--line);min-width:0;min-height:54px;color:var(--text);text-align:left;background:var(--surface-2);border-radius:10px;justify-content:space-between;align-items:center;gap:9px;padding:9px 10px;display:flex}.asset-bible-ai-history>button.active{background:#8b5cf614;border-color:#8b5cf661}.asset-bible-ai-history>button>span{gap:3px;min-width:0;display:grid}.asset-bible-ai-history small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.asset-bible-ai-history em,.asset-bible-ai-candidate-status{border:1px solid var(--line);min-height:23px;color:var(--muted);background:#94a3b80f;border-radius:999px;flex:none;align-items:center;padding:0 7px;font-size:8px;font-style:normal;font-weight:750;display:inline-flex}.asset-bible-ai-history em.status-applied,.asset-bible-ai-candidate-status.status-applied{color:var(--green);background:#34d39912;border-color:#34d39938}.asset-bible-ai-history em.status-rejected,.asset-bible-ai-candidate-status.status-rejected{color:var(--red);background:#f8717112;border-color:#f8717138}.asset-bible-ai-candidate{border:1px solid var(--line);background:#ffffff03;border-radius:14px;gap:12px;padding:14px;display:grid}.asset-bible-ai-candidate>header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.asset-bible-ai-candidate>header>div:first-child{min-width:0}.asset-bible-ai-candidate-status{margin-bottom:7px}.asset-bible-ai-candidate-meta{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.asset-bible-ai-candidate-meta span{border:1px solid var(--line);min-height:24px;color:var(--muted);background:var(--bg-soft);border-radius:999px;align-items:center;padding:0 8px;font-size:9px;display:inline-flex}.asset-bible-ai-counts{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;display:grid}.asset-bible-ai-counts span{border:1px solid var(--line);color:var(--muted);background:var(--bg-soft);border-radius:10px;gap:2px;padding:9px 10px;font-size:9px;display:grid}.asset-bible-ai-counts strong{color:var(--text);font-size:17px}.asset-bible-ai-warnings,.asset-bible-ai-applied-summary{color:var(--yellow);background:#fbbf240e;border:1px solid #fbbf2438;border-radius:11px;align-items:flex-start;gap:10px;padding:11px 12px;display:flex}.asset-bible-ai-warnings strong,.asset-bible-ai-applied-summary strong{font-size:10px}.asset-bible-ai-warnings p,.asset-bible-ai-applied-summary p{color:var(--muted);margin:3px 0 0;font-size:9px;line-height:1.45}.asset-bible-ai-applied-summary{color:var(--green);background:#34d3990e;border-color:#34d39938}.asset-bible-ai-item-list{gap:7px;display:grid}.asset-bible-ai-item{border:1px solid var(--line);background:var(--surface-2);border-radius:11px;grid-template-columns:29px 29px minmax(0,1fr);align-items:start;gap:9px;min-width:0;padding:10px;transition:border-color .13s,background .13s;display:grid}.asset-bible-ai-item.selected{background:#8b5cf60e;border-color:#8b5cf652}.asset-bible-ai-item-check{border:1px solid var(--line-strong);color:#fff;background:0 0;border-radius:8px;place-items:center;width:29px;height:29px;display:grid}.asset-bible-ai-item.selected .asset-bible-ai-item-check{background:var(--accent);border-color:#8b5cf680}.asset-bible-ai-item-copy{gap:5px;min-width:0;display:grid}.asset-bible-ai-item-copy>div:first-child{justify-content:space-between;align-items:center;gap:10px;display:flex}.asset-bible-ai-item-copy>div:first-child span{color:#c4b5fd;flex:none;font-size:9px;font-weight:700}.asset-bible-ai-item-copy small{color:var(--muted-2);font-size:9px}.asset-bible-ai-item-copy>p{color:var(--muted);margin:0;font-size:10px;line-height:1.45}.asset-bible-ai-item-badges{flex-wrap:wrap;gap:5px;display:flex}.asset-bible-ai-item-badges span{border:1px solid var(--line);min-height:22px;color:var(--muted);background:#94a3b80d;border-radius:999px;align-items:center;gap:4px;padding:0 7px;font-size:8px;display:inline-flex}.asset-bible-ai-item-badges span.matched{color:var(--green);border-color:#34d39933}.asset-bible-ai-item details{color:var(--muted);padding-top:3px;font-size:9px}.asset-bible-ai-item details p{margin:4px 0 0;line-height:1.45}.asset-bible-ai-deferred{border:1px dashed var(--line-strong);color:var(--muted);background:#94a3b806;border-radius:11px;padding:10px 12px}.asset-bible-ai-deferred>summary{color:var(--text);cursor:pointer;font-size:10px;font-weight:750}.asset-bible-ai-deferred>p{margin:7px 0;font-size:9px;line-height:1.45}.asset-bible-ai-deferred>div{border-top:1px solid var(--line);align-items:center;gap:8px;padding:6px 0;display:flex}.asset-bible-ai-deferred>div>span:last-child{gap:2px;display:grid}.asset-bible-ai-deferred small{color:var(--muted-2);font-size:8px}@media (max-width:900px){.asset-bible-ai-request{grid-template-columns:1fr}.asset-bible-ai-submit{grid-template-columns:minmax(0,1fr) 44px;width:min(100%,320px)}.asset-bible-ai-request>.button{width:fit-content}.asset-bible-ai-history{grid-template-columns:1fr}}@media (max-width:680px){.asset-bible-ai-candidate>header,.asset-bible-ai-item-copy>div:first-child{flex-direction:column;align-items:flex-start}.asset-bible-ai-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-bible-ai-item{grid-template-columns:29px minmax(0,1fr)}.asset-bible-ai-item>.asset-bible-level-mark{display:none}}@media (max-width:1380px){.asset-bible-readiness-grid{grid-template-columns:repeat(4,minmax(130px,1fr))}.asset-bible-readiness-card.primary{grid-column:span 2}.asset-bible-layout{grid-template-columns:minmax(220px,.58fr) minmax(0,1.58fr)}.asset-bible-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:1000px){.asset-bible-filters{grid-template-columns:1fr}.asset-bible-level-tabs{overflow-x:auto}.asset-bible-layout{grid-template-columns:1fr}.asset-bible-entry-list{border-right:0;border-bottom:1px solid var(--line)}.asset-bible-project-card{grid-template-columns:48px minmax(0,1fr)}.asset-bible-project-card-action{grid-column:2}.asset-bible-asset-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:720px){.asset-bible-readiness-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-bible-readiness-card.primary{grid-column:1/-1}.asset-bible-toolbar,.asset-bible-detail-card>header,.asset-bible-references-section>header,.asset-bible-requirement-option,.requirement-bible-link-row{flex-direction:column;align-items:stretch}.asset-bible-toolbar-actions,.asset-bible-detail-actions{justify-content:flex-start}.asset-bible-entry-row{grid-template-columns:30px 48px minmax(0,1fr)}.asset-bible-entry-row>.asset-bible-status{display:none}.asset-bible-reference-grid,.asset-bible-variation-grid,.asset-bible-form-grid,.asset-bible-usage-section>div{grid-template-columns:1fr}.asset-bible-form-grid .span-2{grid-column:auto}.asset-bible-asset-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-bible-modal-backdrop,.asset-bible-picker-backdrop{padding:8px}}html .asset-bible-entry-list,html .asset-bible-detail{background:#0f172a05}html .asset-bible-modal,html .asset-bible-picker-modal{background:#fff}.shot-readiness-card{border-bottom:1px solid var(--line);background:color-mix(in srgb, var(--panel) 86%, transparent);gap:8px;padding:11px 12px;display:grid}.shot-readiness-card-head,.shot-readiness-card-meta{justify-content:space-between;align-items:center;gap:10px;display:flex}.shot-readiness-card-head span,.shot-readiness-card-meta span{color:var(--muted);align-items:center;gap:5px;font-size:10px;display:inline-flex}.shot-readiness-card-head strong{color:var(--text);font-size:15px}.shot-readiness-track{background:color-mix(in srgb, var(--line) 72%, transparent);border-radius:999px;height:5px;overflow:hidden}.shot-readiness-track span{border-radius:inherit;background:linear-gradient(90deg,#8b5cf6,#22c55e);min-width:0;height:100%;transition:width .22s;display:block}.shot-readiness-card-meta .blocking{color:#ef4444}.shot-readiness-card-meta .ready{color:#10b981}.requirements-list.structured{gap:10px;padding:10px}.shot-requirement-level{gap:7px;min-width:0;display:grid}.shot-requirement-level>header{align-items:center;gap:8px;padding:1px 2px;display:flex}.shot-requirement-level>header div{gap:1px;min-width:0;display:grid}.shot-requirement-level>header strong{font-size:10px}.shot-requirement-level>header small{color:var(--muted);font-size:9px}.requirement-resolution-summary{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.35;overflow:hidden}@media (prefers-reduced-motion:reduce){.shot-readiness-track span{transition:none}}.requirement-composition-fields{border:1px solid color-mix(in srgb, var(--line) 82%, transparent);background:color-mix(in srgb, var(--panel) 72%, transparent);border-radius:10px;padding:9px}.ai-primary-task{background:#7657d60e;border:1px solid #7657d624;border-radius:12px;gap:4px;padding:12px 14px;display:grid}.ai-primary-task>span,.ai-primary-task>small{color:var(--muted);font-size:12px}.ai-primary-task>strong{color:var(--text);font-size:14px}.ai-advanced-tools{border-top:1px solid var(--line);padding-top:10px}.ai-advanced-tools>summary{color:var(--muted);cursor:pointer;font-size:12px;font-weight:650}.ai-advanced-tools[open]>summary{margin-bottom:9px}.automatic-progress-note{color:#4c5870;background:#17966f0e;border:1px solid #17966f24;border-radius:11px;align-items:center;gap:8px;padding:10px 12px;font-size:12px;line-height:1.45;display:flex}.project-entry-modes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;display:grid}.project-entry-mode{border:1px solid var(--line);background:var(--surface-2);min-height:94px;color:var(--text);text-align:left;border-radius:16px;align-items:flex-start;gap:12px;padding:16px;transition:border-color .14s,background .14s,transform .14s;display:flex}.project-entry-mode:hover{border-color:color-mix(in srgb, var(--accent) 38%, var(--line));transform:translateY(-1px)}.project-entry-mode.active{border-color:color-mix(in srgb, var(--accent) 62%, var(--line));background:color-mix(in srgb, var(--accent) 8%, var(--surface));box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent)}.project-entry-mode span{gap:6px;display:grid}.project-entry-mode strong{font-size:14px}.project-entry-mode small{color:var(--muted);font-size:11px;line-height:1.45}.source-file-field input[type=file],.source-upload-box input[type=file]{background:var(--surface-2);padding:8px}.project-card-meta{justify-content:space-between;align-items:center;gap:10px;display:flex}.compact-tag{min-height:24px;padding:4px 8px;font-size:9px}.source-material-panel{margin-bottom:14px}.source-material-grid{grid-template-columns:minmax(240px,.34fr) minmax(0,.66fr);gap:16px;display:grid}.source-document-list,.source-material-workspace{align-content:start;gap:10px;display:grid}.source-document-card{border:1px solid var(--line);background:var(--surface-2);width:100%;color:var(--text);text-align:left;border-radius:12px;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:12px;display:grid}.source-document-card:hover,.source-document-card.active{border-color:color-mix(in srgb, var(--accent) 52%, var(--line));background:color-mix(in srgb, var(--accent) 7%, var(--surface))}.source-document-card span{gap:4px;min-width:0;display:grid}.source-document-card strong,.source-document-card small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.source-document-card small{color:var(--muted);font-size:10px}.source-upload-box,.source-ai-box,.source-idea-editor,.source-preview{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:14px}.source-upload-box,.source-ai-box,.source-idea-editor{gap:12px;display:grid}.source-report-row{flex-wrap:wrap;gap:8px;display:flex}.source-report-row span{border:1px solid var(--line);background:var(--surface-2);color:var(--muted);border-radius:999px;padding:6px 9px;font-size:10px}.source-preview summary{cursor:pointer;font-size:12px;font-weight:700}.source-section-preview-list{gap:12px;margin-top:14px;display:grid}.source-section-preview-list article{border-top:1px solid var(--line);padding-top:12px}.source-section-preview-list article:first-child{border-top:0;padding-top:0}.source-section-preview-list strong{font-size:12px}.source-section-preview-list p{color:var(--muted);white-space:pre-wrap;margin:7px 0 0;font-size:11px;line-height:1.6}.warning-text{color:var(--yellow)!important}@media (max-width:900px){.project-entry-modes,.source-material-grid{grid-template-columns:1fr}}.auth-page{background:radial-gradient(circle at top,#8b5cf629,#0000 42%),#f6f7fb;place-items:center;min-height:100vh;padding:32px;display:grid}.auth-card{text-align:center;background:#fffffff5;border:1px solid #5c4a8a2e;border-radius:24px;width:min(460px,100%);padding:36px;box-shadow:0 24px 70px #23183e1f}.auth-brand,.auth-icon{align-items:center;gap:10px;display:inline-flex}.auth-brand{margin-bottom:28px;font-weight:760}.auth-icon{color:#6d28d9;background:#7c3aed1a;border-radius:18px;justify-content:center;width:62px;height:62px;margin:0 auto 20px}.auth-card h1{margin:10px 0 12px}.auth-card p{color:var(--muted);margin:0 0 24px;line-height:1.6}.auth-login-button{justify-content:center;width:100%}.user-logout{width:30px;height:30px;color:var(--muted);border-radius:9px;justify-content:center;align-items:center;margin-left:4px;display:inline-flex}.user-logout:hover{color:var(--text);background:#7c3aed17}.access-layout,.company-admin-layout,.project-access-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;display:grid}.access-pending-list,.company-list,.company-owner-list,.access-code-list,.join-request-list{gap:10px;margin:16px 0;display:grid}.access-pending-item,.company-item,.company-owner,.access-code-item,.join-request-item,.created-access-code{border:1px solid var(--border);background:#ffffffb8;border-radius:14px;align-items:center;gap:12px;padding:13px 14px;display:flex}.access-pending-item div,.access-code-item div,.company-item-head div,.join-request-item>div:first-child,.created-access-code>div{gap:3px;display:grid}.access-pending-item small,.access-code-item small,.company-owner small,.company-item-head small,.join-request-item small,.created-access-code small{color:var(--muted)}.company-item{display:grid}.company-item-head{justify-content:space-between;gap:12px;display:flex}.company-owner{padding:9px 11px}.company-owner small,.access-code-item .tag{margin-left:auto}.created-access-code{background:#7c3aed14;justify-content:space-between;margin-top:14px}.created-access-code strong{letter-spacing:.06em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.join-request-item{justify-content:space-between;align-items:flex-start}.join-request-item p{margin:8px 0 0}@media (max-width:980px){.access-layout,.company-admin-layout,.project-access-layout{grid-template-columns:1fr}}.company-owner-assignment{grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:10px;display:grid}.company-owner-assignment input{min-width:0}@media (max-width:720px){.company-owner-assignment{grid-template-columns:1fr}}.company-storage-card{border:1px solid var(--border);background:#0f172a06;border-radius:12px;gap:10px;padding:12px;display:grid}.company-storage-card .company-owner-assignment{margin-top:0}.structured-stage-authoring{gap:14px;display:grid}.structured-authoring-notice{border:1px solid var(--border);background:var(--panel-subtle,#0f172a06);border-radius:12px;gap:4px;padding:12px 14px;display:grid}.structured-authoring-notice span,.structured-authoring-list small{color:var(--muted);font-size:12px}.structured-authoring-section{gap:10px;display:grid}.structured-authoring-section h3{margin:2px 0 0;font-size:14px}.structured-authoring-card{border:1px solid var(--border);background:var(--panel,#fff);border-radius:14px;gap:12px;padding:14px;display:grid}.structured-authoring-card-title{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:700}.structured-authoring-field{gap:7px;display:grid}.structured-authoring-field+.structured-authoring-field{border-top:1px solid var(--border);padding-top:12px}.structured-authoring-field-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.structured-authoring-field-header>label,.structured-authoring-object-field>label{font-size:12px;font-weight:650}.structured-authoring-field-meta{align-items:center;gap:8px;display:flex}.structured-authoring-state{color:var(--muted);font-size:11px}.structured-authoring-state.stale{font-weight:650}.structured-authoring-lock,.structured-authoring-icon-button{border:1px solid var(--border);color:var(--muted);cursor:pointer;background:0 0;border-radius:9px;align-items:center;gap:5px;padding:5px 8px;display:inline-flex}.structured-authoring-lock.locked{color:var(--text);font-weight:650}.structured-authoring-lock:disabled,.structured-authoring-icon-button:disabled{cursor:default;opacity:.55}.structured-authoring-list,.structured-authoring-object{gap:8px;display:grid}.structured-authoring-list-item{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:8px;display:grid}.structured-authoring-list-index{min-width:24px;color:var(--muted);text-align:center;padding-top:8px;font-size:11px}.structured-authoring-list-body,.structured-authoring-object-field{min-width:0}.structured-authoring-object-field{gap:5px;display:grid}.structured-authoring-add{justify-self:start}.structured-authoring-checkbox{align-items:center;gap:8px;min-height:34px;display:inline-flex}@media (max-width:720px){.structured-authoring-field-header{flex-direction:column;align-items:flex-start}.structured-authoring-field-meta{justify-content:space-between;width:100%}}.structured-authoring-section-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.structured-authoring-section-heading h3{margin:0}.authoring-stage-grid{grid-template-columns:minmax(0,1fr) minmax(292px,320px);gap:12px}.authoring-stage-grid .stage-ai-column{gap:10px}.structured-stage-authoring{gap:12px}.structured-stage-authoring .structured-authoring-notice{background:linear-gradient(135deg,#7657d60e,#169db209),#ffffffc7;border-radius:12px;gap:3px;padding:10px 12px}.structured-stage-authoring .structured-authoring-notice strong{font-size:13px;font-weight:650}.structured-stage-authoring .structured-authoring-notice span{font-size:11.5px;line-height:1.45}.structured-stage-authoring .structured-authoring-section{--section-accent:var(--accent);--section-tint:#7657d60b;border:1px solid var(--line);background:linear-gradient(145deg, var(--section-tint), #ffffffc2 46%, #ffffffeb);border-radius:15px;gap:8px;padding:11px;box-shadow:0 7px 22px #212b4109}.structured-stage-authoring .structured-authoring-section.tone-story,.structured-stage-authoring .structured-authoring-group.tone-story{--section-accent:#8460c9;--section-tint:#8460c90d}.structured-stage-authoring .structured-authoring-section.tone-character,.structured-stage-authoring .structured-authoring-group.tone-character{--section-accent:#b77b30;--section-tint:#b77b300d}.structured-stage-authoring .structured-authoring-section.tone-continuity,.structured-stage-authoring .structured-authoring-group.tone-continuity{--section-accent:#2f8e82;--section-tint:#2f8e820d}.structured-stage-authoring .structured-authoring-section-heading{align-items:stretch;gap:8px}.structured-authoring-section-toggle{min-width:0;color:inherit;text-align:left;background:0 0;border:0;flex:auto;justify-content:space-between;align-items:center;gap:12px;padding:1px 2px;display:flex}.structured-authoring-section-toggle>svg{color:var(--muted);transition:transform .14s}.structured-authoring-section-toggle>svg.rotated{transform:rotate(180deg)}.structured-authoring-section-copy{gap:3px;min-width:0;display:grid}.structured-authoring-section-title-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.structured-stage-authoring .structured-authoring-section-heading h3{letter-spacing:-.015em;margin:0;font-size:15px;font-weight:680;line-height:1.2}.structured-authoring-section-copy>small{color:var(--muted);font-size:11px;line-height:1.4}.structured-authoring-progress{border:1px solid color-mix(in srgb, var(--section-accent) 20%, var(--line));min-height:22px;color:color-mix(in srgb, var(--section-accent) 72%, var(--text));background:color-mix(in srgb, var(--section-accent) 6%, #fff);white-space:nowrap;border-radius:999px;align-items:center;padding:3px 7px;font-size:10px;font-weight:650;display:inline-flex}.structured-authoring-section-body{gap:9px;display:grid}.structured-stage-authoring .structured-authoring-card{background:linear-gradient(150deg, #fffffff2, var(--section-tint)), var(--surface);box-shadow:none;border-radius:12px;gap:10px;padding:11px}.structured-authoring-collection-card{border-left:3px solid color-mix(in srgb, var(--section-accent) 58%, transparent)}.structured-stage-authoring .structured-authoring-card-title{min-height:28px;color:color-mix(in srgb, var(--section-accent) 70%, var(--muted));letter-spacing:.045em;justify-content:space-between;align-items:center;gap:8px;font-size:10.5px;font-weight:700;display:flex}.structured-authoring-group{--section-accent:var(--accent);--section-tint:#7657d609;border:1px solid color-mix(in srgb, var(--section-accent) 13%, var(--line));background:linear-gradient(135deg, var(--section-tint), #ffffffd6);border-radius:11px;gap:9px;padding:10px;display:grid}.structured-authoring-collection-card>.structured-authoring-group+.structured-authoring-group{margin-top:1px}.structured-authoring-group-heading{border-bottom:1px solid color-mix(in srgb, var(--section-accent) 10%, var(--line));grid-template-columns:minmax(0,auto) minmax(180px,1fr);align-items:center;gap:12px;padding-bottom:7px;display:grid}.structured-authoring-group-heading>div{align-items:center;gap:7px;min-width:0;display:flex}.structured-authoring-group-heading h4{letter-spacing:-.01em;margin:0;font-size:12.5px;font-weight:670}.structured-authoring-group-heading>small{max-width:560px;color:var(--muted);text-align:right;justify-self:end;font-size:10.5px;line-height:1.35}.structured-authoring-group-badge{min-height:20px;color:color-mix(in srgb, var(--section-accent) 82%, var(--text));background:color-mix(in srgb, var(--section-accent) 10%, transparent);text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;border-radius:999px;align-items:center;padding:2px 6px;font-size:9px;font-weight:700;display:inline-flex}.structured-authoring-fields-grid,.structured-stage-authoring .structured-authoring-object{grid-template-columns:repeat(12,minmax(0,1fr));align-items:start;gap:9px 10px;display:grid}.structured-stage-authoring .structured-authoring-field,.structured-stage-authoring .structured-authoring-object-field{gap:5px;min-width:0}.structured-stage-authoring .structured-authoring-field+.structured-authoring-field{border-top:0;padding-top:0}.structured-stage-authoring .field-span-compact{grid-column:span 4}.structured-stage-authoring .field-span-medium{grid-column:span 6}.structured-stage-authoring .field-span-wide{grid-column:1/-1}.structured-stage-authoring .structured-authoring-field-header{align-items:center;gap:8px;min-height:28px}.structured-stage-authoring .structured-authoring-field-header>label,.structured-stage-authoring .structured-authoring-object-field label{color:#3c4658;font-size:11px;font-weight:620;line-height:1.2}.structured-stage-authoring .structured-authoring-field-meta{gap:5px}.structured-stage-authoring .structured-authoring-state{font-size:9.5px}.structured-stage-authoring .structured-authoring-lock,.structured-stage-authoring .structured-authoring-icon-button{background:#ffffffad;border-radius:8px;min-height:28px;padding:4px 7px;font-size:10px}.structured-authoring-help{border:1px solid var(--line);width:21px;height:21px;color:var(--muted);cursor:help;background:#ffffffb8;border-radius:999px;outline:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.structured-authoring-help:hover,.structured-authoring-help:focus-visible{color:var(--accent-strong);background:#fff;border-color:#7657d647}.structured-authoring-help-popover{z-index:30;border:1px solid var(--line-strong);width:min(280px,70vw);color:var(--text);box-shadow:var(--shadow-soft);pointer-events:none;opacity:0;background:#fffffffa;border-radius:9px;padding:8px 10px;font-size:10.5px;font-weight:500;line-height:1.4;transition:opacity .12s,transform .12s;position:absolute;top:calc(100% + 7px);right:0;transform:translateY(-3px)}.structured-authoring-help:hover .structured-authoring-help-popover,.structured-authoring-help:focus-visible .structured-authoring-help-popover{opacity:1;transform:translateY(0)}.structured-authoring-object-label{justify-content:space-between;align-items:center;gap:6px;min-height:22px;display:flex}.structured-stage-authoring input[type=text],.structured-stage-authoring input[type=number],.structured-stage-authoring textarea{width:100%;min-height:36px;color:var(--text);background:linear-gradient(145deg,#fffffffa,#eef2f8d1);border:1px solid #3e485b21;border-radius:9px;outline:none;padding:7px 9px;font-size:13px;line-height:1.4;transition:border-color .14s,box-shadow .14s,background .14s}.structured-stage-authoring textarea{resize:none}.structured-stage-authoring textarea.density-long{line-height:1.48}.structured-stage-authoring input::placeholder,.structured-stage-authoring textarea::placeholder{color:#98a2b3;opacity:1}.structured-stage-authoring input:focus,.structured-stage-authoring textarea:focus{border-color:color-mix(in srgb, var(--accent) 46%, var(--line));background:#fff;box-shadow:0 0 0 3px #7657d613}.structured-stage-authoring .structured-authoring-list-item{background:linear-gradient(145deg,#ffffffd6,#f1f4f9b3);border:1px solid #3e485b17;border-radius:10px;grid-template-columns:24px minmax(0,1fr) auto;gap:6px;padding:6px}.structured-stage-authoring .structured-authoring-list-index{min-width:20px;padding-top:7px;font-size:10px}.structured-stage-authoring .structured-authoring-list-item>.structured-authoring-icon-button{margin-top:3px}.structured-stage-authoring .structured-authoring-add{min-height:32px;padding:6px 9px;font-size:10.5px}.structured-stage-authoring .structured-authoring-checkbox{min-height:36px;padding:0 2px;font-size:12px}@container (max-width:940px){.authoring-stage-grid{grid-template-columns:minmax(0,1fr)}}@container (max-width:760px){.structured-stage-authoring .field-span-compact,.structured-stage-authoring .field-span-medium{grid-column:span 6}.structured-authoring-group-heading{grid-template-columns:1fr}.structured-authoring-group-heading>small{text-align:left;justify-self:start}}@media (max-width:720px){.structured-stage-authoring .structured-authoring-section{padding:9px}.structured-stage-authoring .structured-authoring-section-heading{flex-wrap:wrap}.structured-stage-authoring .structured-authoring-section-heading>.structured-authoring-add{justify-content:center;width:100%}.structured-stage-authoring .field-span-compact,.structured-stage-authoring .field-span-medium,.structured-stage-authoring .field-span-wide{grid-column:1/-1}.structured-stage-authoring .structured-authoring-field-header{align-items:flex-start}.structured-stage-authoring .structured-authoring-field-meta{justify-content:flex-end;width:auto}}.episode-stage-grid.authoring-stage-grid:not(.preproduction-shell-grid){grid-template-columns:minmax(286px,304px) minmax(0,1fr);gap:12px}.episode-stage-grid.authoring-stage-grid:not(.preproduction-shell-grid) .stage-primary-column{min-width:0}.episode-stage-grid.authoring-stage-grid:not(.preproduction-shell-grid) .stage-ai-column{order:-1;place-self:start stretch;width:100%;min-width:0;max-width:304px}.episode-stage-grid.authoring-stage-grid:not(.preproduction-shell-grid) .stage-ai-column>*{width:100%;max-width:100%}.structured-stage-authoring input[type=text],.structured-stage-authoring input[type=number],.structured-stage-authoring textarea,.structured-stage-authoring .structured-authoring-reference-control select{box-sizing:border-box;background:linear-gradient(145deg,#edf3fbfa,#f7f4fcfa);border-color:#48567029;min-height:34px;padding:6px 9px;box-shadow:inset 0 1px #ffffffd1,0 1px 2px #2c374d06}.structured-stage-authoring textarea.structured-authoring-textarea{resize:none;height:34px;max-height:420px;padding-top:7px;padding-bottom:7px;min-height:34px!important}.structured-stage-authoring input[type=text]:focus,.structured-stage-authoring input[type=number]:focus,.structured-stage-authoring textarea:focus,.structured-stage-authoring .structured-authoring-reference-control select:focus{border-color:color-mix(in srgb, var(--accent) 48%, var(--line));background:linear-gradient(145deg,#f5f8fd,#faf7fd);box-shadow:0 0 0 3px #7657d612}.structured-stage-authoring .structured-authoring-list{gap:5px}.structured-stage-authoring .structured-authoring-list-item{background:linear-gradient(145deg,#f4f7fcc2,#f6f3fbad);grid-template-columns:22px minmax(0,1fr) auto;gap:6px;padding:5px 6px}.structured-stage-authoring .structured-authoring-list-index{padding-top:6px}.structured-stage-authoring .structured-authoring-list-body{align-self:start}.structured-stage-authoring .structured-authoring-object{gap:7px 9px}.structured-stage-authoring .structured-authoring-object.object-layout-character-pressure{grid-template-columns:minmax(150px,.72fr) minmax(190px,1fr) minmax(190px,1fr)}.structured-stage-authoring .structured-authoring-object.object-layout-character-pressure>.structured-authoring-object-field{grid-column:auto!important}.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-title,.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-location,.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-time_of_day{grid-column:span 4}.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-goal,.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-dramatic_function,.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-start_state,.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-turning_point,.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-end_state,.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-cause_and_effect{grid-column:span 6}.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc .field-key-transition_to_next{grid-column:1/-1}.structured-stage-authoring .structured-authoring-object.object-layout-location-group .field-key-canonical_location{grid-column:span 4}.structured-stage-authoring .structured-authoring-object.object-layout-location-group .field-key-zones{grid-column:span 8}.structured-stage-authoring .structured-authoring-object.object-layout-location-group .field-key-continuity_notes{grid-column:1/-1}.structured-stage-authoring .structured-authoring-object.object-layout-location-identity .field-key-canonical_location{grid-column:span 5}.structured-stage-authoring .structured-authoring-object.object-layout-location-identity .field-key-zone{grid-column:span 4}.structured-stage-authoring .structured-authoring-object.object-layout-location-identity .field-key-relation{grid-column:span 3}.structured-stage-authoring .structured-authoring-object.object-layout-temporal-continuity .field-key-time_of_day,.structured-stage-authoring .structured-authoring-object.object-layout-temporal-continuity .field-key-inherits_previous,.structured-stage-authoring .structured-authoring-object.object-layout-temporal-continuity .field-key-qualifier{grid-column:span 4}.structured-stage-authoring .structured-authoring-object.object-layout-temporal-continuity .field-key-lighting_rule{grid-column:1/-1}.structured-authoring-reference-control{grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0;display:grid;position:relative}.structured-authoring-reference-control>svg{color:color-mix(in srgb, var(--accent) 72%, var(--muted))}.structured-authoring-reference-control select{width:100%;min-width:0;color:var(--text);font:inherit;outline:none;font-size:12.5px}.structured-authoring-reference-badge{color:#39736d;white-space:nowrap;background:#43968b12;border:1px solid #34847b29;border-radius:999px;align-items:center;min-height:22px;padding:2px 6px;font-size:9px;font-weight:680;display:inline-flex}.structured-stage-authoring .structured-authoring-card,.structured-stage-authoring .structured-authoring-group{padding:9px}.structured-stage-authoring .structured-authoring-field,.structured-stage-authoring .structured-authoring-object-field{gap:4px}.structured-stage-authoring .structured-authoring-field-header{min-height:24px}@container (max-width:1120px){.structured-stage-authoring .structured-authoring-object.object-layout-character-pressure{grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr)}.structured-stage-authoring .structured-authoring-object.object-layout-character-pressure .field-key-pressure{grid-column:1/-1!important}}@container (max-width:940px){.episode-stage-grid.authoring-stage-grid:not(.preproduction-shell-grid){grid-template-columns:minmax(0,1fr)}.episode-stage-grid.authoring-stage-grid:not(.preproduction-shell-grid) .stage-ai-column{justify-self:stretch;width:100%;max-width:none}}@media (max-width:720px){.structured-stage-authoring .structured-authoring-object.object-layout-character-pressure,.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc,.structured-stage-authoring .structured-authoring-object.object-layout-location-group,.structured-stage-authoring .structured-authoring-object.object-layout-location-identity,.structured-stage-authoring .structured-authoring-object.object-layout-temporal-continuity{grid-template-columns:minmax(0,1fr)}.structured-stage-authoring .structured-authoring-object.object-layout-character-pressure>.structured-authoring-object-field,.structured-stage-authoring .structured-authoring-object.object-layout-scene-arc>.structured-authoring-object-field,.structured-stage-authoring .structured-authoring-object.object-layout-location-group>.structured-authoring-object-field,.structured-stage-authoring .structured-authoring-object.object-layout-location-identity>.structured-authoring-object-field,.structured-stage-authoring .structured-authoring-object.object-layout-temporal-continuity>.structured-authoring-object-field{grid-column:1/-1!important}.structured-authoring-reference-control{grid-template-columns:18px minmax(0,1fr)}.structured-authoring-reference-badge{grid-column:2;justify-self:start}}.authoring-stage-grid .stage-primary-column>.field input,.authoring-stage-grid .stage-primary-column>.field textarea,.authoring-stage-grid .stage-primary-column .constraint-grid .field input,.authoring-stage-grid .stage-primary-column .constraint-grid .field textarea,.authoring-stage-grid .stage-primary-column .constraint-grid .field select{background:linear-gradient(145deg,#edf3fbfa,#f7f4fcfa);border-color:#48567029}
