:root{color-scheme:dark;font-family:Inter,Arial,sans-serif;color:#f5f3fa;background:#0c0b10;--muted:#a8a3b8;--purple:#a987ff;--line:#302b3e}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}aside{position:fixed;inset:0 auto 0 0;width:240px;background:#121017;border-right:1px solid var(--line);padding:36px 26px;display:flex;flex-direction:column}aside strong{font-size:30px;letter-spacing:-1px}aside small{display:block;font-size:12px;letter-spacing:4px;color:var(--purple)}aside p{font-size:14px;color:var(--muted);margin:10px 0 44px}nav{display:grid;gap:10px}nav button{text-align:left;background:transparent;border:0;padding:14px 16px}nav .active{background:#2b2043;color:#d6c5ff}.aside-bottom{margin-top:auto;font-size:14px;color:var(--muted)}.aside-bottom span{font-size:12px}main{margin-left:240px;padding:0 48px;max-width:1600px}header{height:96px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px}header>span,.eyebrow{font-size:12px;letter-spacing:2px;color:var(--muted)}header div{display:flex;gap:10px}button,input,textarea,select{font:inherit}button{border:1px solid var(--line);border-radius:9px;background:#19151f;padding:10px 17px;color:#eae5f3;cursor:pointer;font-size:14px;transition:background .15s}button:hover{background:#30253f}button:disabled{opacity:.45;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--purple);outline-offset:3px}.primary{background:#a987ff;color:#170d29;font-weight:700;border-color:#a987ff}.primary:hover{background:#c1a9ff}.title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:38px 0 30px}h1{font-size:clamp(30px,3.5vw,48px);letter-spacing:-2px;line-height:1.15;margin:10px 0}h2{font-size:18px;margin:0 0 24px}.title p{color:var(--muted);margin:12px 0 0}.eyebrow{color:var(--purple)}.pill{font-size:14px;padding:8px 16px;border:1px solid #534366;border-radius:30px;color:#d0baff}.workspace{display:grid;grid-template-columns:1fr 1.2fr;gap:24px}.panel,.scene{border:1px solid var(--line);background:#141119;border-radius:16px;padding:28px}label{display:block;font-size:14px;color:#cdc6da;margin-bottom:20px}input,textarea,select{display:block;width:100%;margin-top:8px;border:1px solid #3a3247;background:#0e0c13;border-radius:8px;padding:12px 14px;color:#f4effc;font-size:16px}input::placeholder,textarea::placeholder{color:#787084}textarea{resize:vertical;min-height:95px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}.upload{padding:22px;border:1px dashed #62507d;border-radius:12px;background:#1b1526}.upload span{display:block;color:var(--muted);font-size:12px;margin-top:12px}img{max-width:100%;max-height:260px;object-fit:contain;display:block;margin-top:16px;border-radius:10px}img[hidden]{display:none}.optional,.hint{color:var(--muted);font-size:12px}.hint{margin-bottom:0}#generate{width:100%;padding:15px}.scene{margin-bottom:22px}.scene-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.scene-top strong{color:var(--purple);font-size:18px}.scene-tools{display:flex;gap:6px;flex-wrap:wrap}.scene-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.scene-fields label:last-child{grid-column:1/-1}.bottom-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:22px}.bottom-actions button:first-child{margin-right:auto}#prompt{min-height:460px;line-height:1.7;font-family:ui-monospace,monospace;font-size:14px}#notice{margin-top:18px;color:#dccdff;min-height:24px}#notice.error{color:#ffb5b5}footer{display:flex;justify-content:space-between;padding:36px 0;color:var(--muted);font-size:12px}[hidden]{display:none!important}@media(max-width:1000px){aside{width:190px;padding:26px 18px}main{margin-left:190px;padding:0 24px}.workspace{grid-template-columns:1fr}}@media(max-width:650px){aside{position:static;width:auto;padding:18px;border-bottom:1px solid var(--line)}aside strong{font-size:24px}aside small{display:inline;margin-left:10px;letter-spacing:2px}aside p,.aside-bottom{display:none}nav{display:flex;margin-top:16px;gap:4px}nav button{padding:9px;font-size:13px}main{margin-left:0;padding:0 18px}header{height:76px}header>span{display:none}.title{margin-top:26px}.pill{display:none}.panel,.scene{padding:20px}.pair,.scene-fields{grid-template-columns:1fr}.scene-top{align-items:flex-start;flex-direction:column}h1{letter-spacing:-1px}.title p{font-size:14px}header div{width:100%}header button{flex:1}footer span{display:none}}

.field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.field-heading label{margin:0}.enhance{color:#d6c5ff;font-size:13px;padding:6px 12px}.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.reference-grid:empty{display:none}.reference-card{min-width:0;border:1px solid var(--line);padding:10px;border-radius:10px}.reference-card img{width:100%;height:130px;margin:0 0 8px;object-fit:contain}.reference-card button{width:100%;font-size:12px}.access-hint{margin:-10px 0 20px}

.workflow-strip{border:1px solid var(--line);padding:14px 20px;margin-bottom:22px;border-radius:10px;font-size:14px;color:#d6c5ff}.workflow-strip span{padding:0 12px}#access-settings{margin:20px 0;border:1px solid var(--line);border-radius:10px;padding:12px 18px}#access-settings label{margin-top:12px;max-width:500px}summary{cursor:pointer;color:#d6c5ff;font-size:14px}.scene-details{margin-top:24px}.scene-details summary{margin-bottom:20px}#storyboard-image{max-height:none;width:100%;max-width:1000px;margin:20px auto}#generated-character{max-height:650px;width:100%;object-fit:contain}#gen-character,#make-prompts{margin-top:20px;width:100%}#gen-description{margin-bottom:20px}#character-gen,#repair,#board,#master{scroll-margin-top:20px}#notice{position:sticky;top:0;z-index:5;background:#0c0b10;padding:8px 0}#notice:empty{padding:0}.prompt-card{margin-bottom:20px}.prompt-card textarea{min-height:200px}#repair-notes{white-space:pre-wrap}#gen-reference-preview{max-height:160px}
