[hidden]{display:none!important}
*{box-sizing:border-box} :root{--bg:#090812;--panel:#12111e;--panel2:#181627;--line:#29263c;--text:#f7f5ff;--muted:#a6a1bb;--purple:#9b6bff;--pink:#c16cff;--cyan:#71d7ff} body{margin:0;background:radial-gradient(ellipse at 85% -10%,#24134a 0,transparent 35%),var(--bg);color:var(--text);font-family:"Cairo",system-ui,sans-serif;min-height:100vh}.app-shell{max-width:1240px;margin:auto;padding:0 22px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12}.brand{display:flex;gap:11px;align-items:center;color:inherit;text-decoration:none}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#a56cff,#5a37bc);font-size:25px;font-weight:900;box-shadow:0 8px 30px #8b5cf655}.brand b{display:block;font-size:18px;line-height:1.1}.brand small{font:9px Arial;letter-spacing:2px;color:#aaa2c5}.top-actions{display:flex;align-items:center;gap:14px}.status-pill{font-size:11px;color:#c9c3dc;border:1px solid var(--line);border-radius:30px;padding:7px 12px}.status-pill i{display:inline-block;width:7px;height:7px;background:#62dda8;border-radius:50%;margin-left:5px}.ghost-btn,.secondary-btn{background:#1a1828;color:#e9e5f7;border:1px solid #38334d;border-radius:10px;padding:9px 15px;font:700 12px inherit;cursor:pointer}.hero{padding:48px 0 30px;max-width:780px}.eyebrow{color:#c5a7ff;font-size:13px;font-weight:700}.spark{font-size:18px;margin-left:5px}.hero h1{font-size:clamp(30px,5vw,54px);line-height:1.25;margin:12px 0;font-weight:900;letter-spacing:-1px}.hero h1 span{background:linear-gradient(90deg,#c5a2ff,#8e7aff,#6bd8ff);background-clip:text;color:transparent}.hero p{color:var(--muted);max-width:660px;line-height:1.9;font-size:14px;margin:0}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.panel{background:linear-gradient(155deg,#171525,#100f19);border:1px solid var(--line);border-radius:19px;padding:21px;box-shadow:0 16px 50px #0002}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.panel-head>div{display:flex;align-items:center;gap:10px}.panel-head h2{font-size:17px;margin:0;font-weight:800}.step-no{width:27px;height:27px;display:grid;place-items:center;background:#8d61e526;border:1px solid #a47aff55;color:#c7aaff;border-radius:9px;font:700 11px Arial}.micro-label{font:9px Arial;letter-spacing:1.5px;color:#817b99}.panel label{display:block;color:#c8c3d8;font-size:12px;font-weight:700;margin:13px 0 7px}.panel textarea,.panel input[type=text],.panel select{width:100%;background:#0d0c16;border:1px solid #302b43;border-radius:10px;color:#f4f0ff;padding:12px;font:13px "Cairo",sans-serif;outline:none}.panel textarea{resize:vertical;line-height:1.8}.panel textarea:focus,.panel input:focus,.panel select:focus{border-color:#9166ed;box-shadow:0 0 0 3px #9166ed20}.settings-grid,.voice-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.prompt-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px}.hint,.fine-print,.demo-note{font-size:10px;color:#89839d;line-height:1.7}.primary-btn{border:0;border-radius:11px;background:linear-gradient(110deg,#8e5bf0,#7046cb);color:white;font:800 12px "Cairo",sans-serif;padding:12px 16px;cursor:pointer;box-shadow:0 8px 24px #7746d833}.primary-btn:disabled{opacity:.4;cursor:not-allowed}.primary-btn:hover:not(:disabled){filter:brightness(1.12)}.status-message{min-height:20px;margin-top:10px;font-size:11px;color:#c6aaff}.demo-note{border-top:1px solid #ffffff10;padding-top:10px;margin-top:8px}.stage-wrap{background:#08070e;border:1px solid #302b42;border-radius:14px;padding:12px;display:flex;justify-content:center;min-height:340px}.stage{position:relative;width:min(100%,245px);aspect-ratio:9/16;background:#100d20;border-radius:9px;overflow:hidden;box-shadow:0 12px 40px #0008}.stage.landscape{width:min(100%,440px);aspect-ratio:16/9}.stage.square{width:min(100%,330px);aspect-ratio:1}.stage canvas{width:100%;height:100%;display:block}.stage-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:radial-gradient(circle at 50% 40%,#34205c,#100d20 65%);text-align:center}.stage-empty b{font-size:13px}.stage-empty span{font-size:10px;color:#aaa2c0}.empty-orbit{width:58px;height:58px;border:1px solid #b28bff77;border-radius:50%;display:grid;place-items:center;color:#d6bfff;font-size:27px;box-shadow:0 0 35px #8f58ff55;margin-bottom:8px}.player-controls{display:flex;align-items:center;gap:12px;margin-top:14px}.round-btn{width:34px;height:34px;border-radius:50%;border:1px solid #7654b7;background:#2a2042;color:white;cursor:pointer}.progress-track{height:5px;background:#302b41;border-radius:10px;flex:1;overflow:hidden}.progress-track div{height:100%;width:0;background:linear-gradient(90deg,#8d5cf0,#6bd8ff)}#timeLabel{font:10px Arial;color:#aaa4bc;direction:ltr}.export-row{display:flex;gap:8px;margin-top:15px}.compact{padding:9px 14px}.fine-print{margin:10px 0 0}.scenes-panel{margin-top:18px}.scene-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.scene-placeholder{padding:22px;text-align:center;border:1px dashed #39334d;border-radius:12px;color:#928ba7;font-size:12px;line-height:1.8}.scene-card{background:#0e0d17;border:1px solid #302b43;border-radius:12px;padding:12px;text-align:right;color:inherit;cursor:pointer;min-width:0}.scene-card.active{border-color:#9b70f4;background:#211a34;box-shadow:0 0 0 2px #9b70f422}.scene-card .scene-top{display:flex;justify-content:space-between;color:#a78ce5;font-size:10px}.scene-card b{display:block;font-size:12px;margin:8px 0 4px}.scene-card p{font-size:10px;color:#9b95ae;line-height:1.6;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.section-desc{font-size:11px;color:#9e98b2;margin:-10px 0 12px}.voice-unavailable{display:flex;gap:10px;align-items:center;background:#211b31;border:1px solid #483565;border-radius:12px;padding:12px;margin:14px 0}.voice-unavailable>span{font-size:20px;color:#c5a1ff}.voice-unavailable b,.voice-unavailable small{display:block}.voice-unavailable b{font-size:11px}.voice-unavailable small{font-size:10px;color:#a49bb8;line-height:1.6;margin-top:3px}.upload-label{margin-top:12px!important}.panel input[type=file]{font-size:11px;color:#bcb5ce;max-width:100%}.audio-name{font-size:10px;color:#8f89a3;margin-top:8px}.panel audio{width:100%;margin-top:10px;height:35px}.editor-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}footer{text-align:center;color:#77718a;font-size:10px;padding:30px 0 22px}footer span{color:#9c72ef;margin:0 7px}@media(max-width:850px){.workspace,.lower-grid{grid-template-columns:1fr}.hero{padding-top:35px}.prompt-footer{align-items:flex-start;flex-direction:column}.primary-btn{width:100%}.export-row .primary-btn{width:auto}.panel{padding:17px}.stage-wrap{min-height:300px}}@media(max-width:420px){.app-shell{padding:0 12px}.topbar{height:66px}.status-pill{font-size:9px;padding:6px 8px}.hero h1{font-size:32px}.settings-grid{gap:0 8px}.panel-head h2{font-size:15px}}

.connection-box{margin-top:12px;border:1px solid #302b43;border-radius:11px;padding:10px 12px;background:#0d0c16}.connection-box summary{cursor:pointer;color:#c7b0f7;font-size:11px;font-weight:700}.connection-box input{direction:ltr;text-align:left}.connection-box button{margin-top:9px}.connection-box small{display:block;color:#8f89a3;font-size:9px;line-height:1.7;margin-top:7px}
