#stage0.stage{max-width:none!important;width:100%;margin:0;padding:0}
#stage0 p{margin:0;color:inherit}
#stage0 h1,#stage0 h2,#stage0 h3{color:var(--c-bg-subtle,#eef1f4)}
#scroll:has(#stage0:not([hidden])){display:flex;flex-direction:column;overflow:hidden}
#stage0:not([hidden]){display:flex!important;flex-direction:column;flex:1;min-height:0;overflow:auto}
#stage0 .st2-head{display:flex;align-items:flex-end;gap:20px;margin:0 0 16px}
#stage0 .st2-kicker{color:#a395ff;letter-spacing:1.9px;font-size:10px;font-weight:800}
#stage0 .st2-head h1{font-size:clamp(25px,2.8vw,34px);letter-spacing:-1.15px;margin:6px 0 2px;line-height:1.3}
#stage0 .st2-head p{font-size:12px;color:var(--d-text-2,#aab4ca)}
#stage0 .st2-layout{display:grid!important;grid-template-columns:244px minmax(0,1fr) 320px!important;gap:13px;align-items:stretch;flex:1;min-height:0}
#stage0 .st2-panel{min-width:0;background:var(--d-surface,#121725);border:1px solid var(--d-border,#2c3446);border-radius:15px}
#stage0 .st2-left{padding:18px;overflow:auto}
#stage0 .st2-tag{color:#a89cff;font-weight:800;font-size:10px;letter-spacing:1.2px;margin:0 0 9px}
#stage0 .st2-field{margin:0 0 24px}
#stage0 .st2-field label{font-size:11px;font-weight:750;color:var(--c-border-strong,#dbe2ea);display:block;margin-bottom:8px}
#stage0 .st2-field label span{font-weight:450;color:var(--d-text-3,#8492ad)}
#stage0 .st2-field input[type=text],#stage0 .st2-field select,#stage0 .st2-field textarea{width:100%;background:var(--d-surface,#121725);border:1px solid #3a4960;color:var(--c-primary-soft,#eef4ff);border-radius:8px;padding:10px 12px;outline:none}
#stage0 .st2-field input:focus,#stage0 .st2-field select:focus,#stage0 .st2-field textarea:focus{border-color:#887dff}
#stage0 .st2-field input::placeholder,#stage0 .st2-field textarea::placeholder{color:var(--d-text-3,#8492ad)}
#stage0 .st2-tip{color:var(--d-text-3,#8492ad);font-size:10px;margin:7px 0 0}
#stage0 .st2-card{background:var(--c-navy,#172140);border:1px solid #385078;border-radius:11px;padding:14px;min-height:145px}
#stage0 .st2-card .st2-small{font-size:9px;color:#b7b7ff;font-weight:800;letter-spacing:1px}
#stage0 .st2-card h3{font-size:14px;margin:10px 0 5px;line-height:1.4;overflow-wrap:anywhere}
#stage0 .st2-card p{font-size:11px;line-height:1.6;color:var(--c-gray-300,#c5cbe0);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#stage0 .st2-film{height:21px;display:flex;gap:3px;align-items:end;margin-top:12px;opacity:.7}
#stage0 .st2-film i{width:4px;height:9px;background:#9a8dff;border-radius:2px;display:block}
#stage0 .st2-film i:nth-child(3n){height:17px}
#stage0 .st2-film i:nth-child(4n){height:13px}
#stage0 .st2-lab{font-size:10px;color:var(--d-text-2,#aab4ca);font-weight:750;margin:19px 0 10px}
#stage0 .st2-lab span{float:right;color:var(--d-violet,#b4a8ff)}
#stage0 .st2-timeline{display:flex;gap:4px}
#stage0 .st2-timeline span{height:4px;flex:1;border-radius:4px;background:var(--d-border,#2c3446)}
#stage0 .st2-timeline .on{background:#8570ff}
#stage0 .st2-flow{display:grid;gap:8px;margin-top:13px}
#stage0 .st2-flow div{display:flex;align-items:center;gap:8px;color:var(--d-text-2,#aab4ca);font-size:10px}
#stage0 .st2-flow .on{color:var(--c-primary-tint,#dbe4ff)}
#stage0 .st2-flow b{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;border:1px solid var(--d-text-3,#8492ad);font-size:9px;font-weight:700}
#stage0 .st2-flow .on b{background:var(--c-violet,#6a4cf0);border-color:var(--c-violet,#6a4cf0);color:#fff}
#stage0 .st2-note{background:var(--c-navy,#172140);border:1px solid #394b68;border-radius:9px;padding:11px;margin-top:18px;color:var(--d-text-2,#aab4ca);font-size:10px;line-height:1.6}
#stage0 .st2-note strong{color:var(--d-text,#e8edf7)}
#stage0 .st2-composer{padding:20px 22px;min-height:0;overflow:auto}
#stage0 .st2-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:15px}
#stage0 .st2-top h2{font-size:16px;margin:3px 0 0;letter-spacing:-.3px}
#stage0 .st2-top small{color:var(--d-text-3,#8492ad);font-size:10px}
#stage0 .st2-storywrap{margin-bottom:15px}
#stage0 .st2-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
#stage0 .st2-row button{background:var(--d-border,#2c3446);border:1px solid #425377;color:var(--c-primary-tint,#dbe4ff);border-radius:7px;padding:6px 9px;font-weight:700;font-size:10px}
#stage0 .st2-storywrap textarea{resize:vertical;min-height:175px;max-height:400px;line-height:1.75;font-size:12px}
#stage0 .st2-count{text-align:right;color:var(--d-text-3,#8492ad);font-size:10px;margin:5px 0 0}
#stage0 .st2-example{font-size:10px;color:#9aadd1;background:var(--c-navy,#172140);border-left:2px solid #8b7cff;border-radius:0 6px 6px 0;padding:7px 9px;margin:8px 0 0}
#stage0 .st2-settings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 10px;padding-top:3px}
#stage0 .st2-settings .st2-field{margin-bottom:12px}
#stage0 .st2-settings .st2-field select{height:38px;padding:0 9px;font-size:11px}
#stage0 .st2-settings-tip{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:9px;color:var(--d-text-2,#aab4ca);font-size:10px;border-bottom:1px solid var(--d-border,#2c3446);padding:0 0 14px}
#stage0 .st2-settings-tip span{color:#d6caff;font-weight:750;white-space:nowrap}
#stage0 .st2-refhead{display:flex;align-items:center;gap:9px;margin:14px 0 9px}
#stage0 .st2-refhead b{font-size:11px;color:var(--c-bg-subtle,#eef1f4)}
#stage0 .st2-refhead small{font-size:10px;color:var(--d-text-3,#8492ad)}
#stage0 .st2-refdrop{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-height:69px}
#stage0 #refs{display:contents}
#stage0 .st2-ref-add{height:62px;width:70px;background:var(--d-surface-2,#1d2230);border:1px dashed #526482;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--c-gray-300,#c5cbe0);font-size:10px;padding:0}
#stage0 .st2-ref-add strong{font-size:19px;line-height:1}
#stage0 .st-thumb{width:70px;height:62px;position:relative;overflow:hidden;border-radius:8px;border:1px solid #344862;background:var(--d-surface-2,#1d2230);margin:0}
#stage0 .st-thumb img{width:100%;height:100%;object-fit:cover}
#stage0 .st-thumb span{position:absolute;left:0;right:0;bottom:0;background:#101a2bba;color:#fff;font-size:8px;padding:2px 3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#stage0 .st-thumb button{position:absolute;right:2px;top:2px;background:#101829d9;border-radius:5px;color:#fff;width:17px;height:17px;line-height:17px;padding:0;border:0}
#stage0 .st2-refnote{color:var(--d-text-3,#8492ad);font-size:9px;margin:5px 0 0}
#stage0 .st2-build{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--d-border,#2c3446);padding-top:14px;margin-top:13px}
#stage0 .st2-build p{color:var(--d-text-3,#8492ad);font-size:10px;line-height:1.5}
#stage0 .st2-primary{border:0;background:linear-gradient(105deg,var(--c-violet,#6a4cf0),var(--c-primary,#1b64da));border-radius:8px;color:#fff;padding:9px 12px;font-size:11px;font-weight:750;white-space:nowrap}
#stage0 .st2-primary:hover{filter:brightness(1.1)}
#stage0 .st2-primary:disabled{opacity:.45}
#stage0 .st2-right{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#stage0 .st2-sidehead{padding:17px 17px 14px;border-bottom:1px solid var(--d-border,#2c3446);display:flex;justify-content:space-between;align-items:center;gap:8px}
#stage0 .st2-sidehead h2{margin:0;font-size:13px;color:var(--c-bg-subtle,#eef1f4)}
#stage0 .st2-sidehead small{color:var(--d-violet,#b4a8ff);font-size:10px}
#stage0 .st2-summary{display:flex;flex-direction:column;min-height:0;flex:1;padding:0 13px 14px}
#stage0 .st2-summary-title{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:12px 4px}
#stage0 .st2-summary-title strong{font-size:11px;color:var(--c-bg-subtle,#eef1f4)}
#stage0 .st2-summary-title small{color:var(--d-text-2,#aab4ca);font-size:10px}
#stage0 #stSceneList{display:grid;align-content:start;gap:8px;flex:1;min-height:0;max-height:515px;overflow:auto;scrollbar-color:#455676 transparent;scrollbar-width:thin}
#stage0 .st2-empty{background:var(--d-surface-2,#1d2230);border:1px dashed #425675;border-radius:10px;padding:24px 12px;text-align:center;color:var(--d-text-2,#aab4ca);font-size:11px;line-height:1.6}
#stage0 .st2-empty strong{display:block;color:var(--d-text,#e8edf7);margin-bottom:5px}
#stage0 .st-scene{border:1px solid #354a68;background:var(--d-surface-2,#1d2230);border-radius:10px;padding:11px}
#stage0 .st-scene header{height:auto;display:flex;justify-content:space-between;align-items:center;padding:0;background:transparent;border:0;gap:8px;font-size:11px}
#stage0 .st-scene header span{color:var(--d-text-2,#aab4ca);font-size:9px}
#stage0 .st-scene textarea{width:100%;height:76px;resize:vertical;border:1px solid #344963;background:var(--d-surface,#121725);color:var(--d-text,#e8edf7);border-radius:7px;margin-top:9px;padding:8px;font-size:10px;line-height:1.55}
#stage0 .st-scene-actions{display:flex;gap:4px;margin-top:7px}
#stage0 .st-scene-actions button{background:var(--d-border,#2c3446);color:var(--c-gray-300,#c5cbe0);border-radius:5px;font-size:9px;padding:4px 7px;border:0}
#stage0 .st2-actions{display:flex;gap:6px;margin-top:10px}
#stage0 .st2-actions button{flex:1;padding:7px 8px;font-size:10px;font-weight:750;border:1px solid var(--c-text-2,#4e5968);background:var(--d-surface-2,#1d2230);border-radius:8px;color:var(--d-text,#e8edf7)}
#stage0.st-focused .st2-storywrap{position:fixed;z-index:40;inset:7vh 10vw;background:var(--d-surface-2,#1d2230);border:1px solid #6878a7;padding:25px;border-radius:16px;box-shadow:0 0 0 100vmax #03050bbf;display:flex;flex-direction:column}
#stage0.st-focused .st2-storywrap textarea{flex:1;max-height:none;min-height:0}
@media(min-width:1101px){
  #stage0 .st2-layout{min-height:calc(100dvh - 270px)}
  #stage0 .st2-right{height:calc(100dvh - 270px);min-height:610px}
  #stage0 #stSceneList{max-height:none}
  #stage0 .st2-composer{min-height:610px}
}
@media(max-width:1100px){
  #stage0 .st2-layout{grid-template-columns:235px minmax(0,1fr)!important}
  #stage0 .st2-right{grid-column:1/-1;min-height:350px;height:auto}
  #stage0 #stSceneList{grid-template-columns:repeat(2,minmax(0,1fr));max-height:400px}
}
@media(max-width:730px){
  #stage0 .st2-layout{display:flex!important;flex-direction:column}
  #stage0 .st2-left,#stage0 .st2-composer,#stage0 .st2-right{width:100%}
  #stage0 .st2-left{order:1}
  #stage0 .st2-composer{order:2}
  #stage0 .st2-right{order:3}
  #stage0 .st2-settings{grid-template-columns:repeat(2,minmax(0,1fr))}
  #stage0 .st2-settings-tip{align-items:flex-start;flex-direction:column}
  #stage0 .st2-storywrap textarea{min-height:210px}
  #stage0 #stSceneList{grid-template-columns:1fr;max-height:370px}
  #stage0 .st2-build{align-items:stretch;flex-direction:column}
  #stage0 .st2-primary{width:100%}
  #stage0.st-focused .st2-storywrap{inset:8px;padding:15px}
}
