:root,:root[data-theme=dark-glass]{--bg:#0a0e1a;--bg-2:#111827;--surface:#ffffff12;--surface-strong:#ffffff1f;--border:#ffffff29;--text:#f4f6fb;--muted:#f4f6fb9e;--accent:#3b82f6;--accent-2:#8b5cf6;--cyan:#22d3ee;--danger:#ef4444;--success:#22c55e;--radius:20px;--radius-sm:14px;--blur:blur(18px);--shadow:0 8px 32px #00000059}:root[data-theme=light-glass]{--bg:#e8edf7;--bg-2:#dbe3f2;--surface:#ffffff8c;--surface-strong:#ffffffbf;--border:#ffffffb3;--text:#101828;--muted:#10182899;--accent:#2563eb;--accent-2:#7c3aed;--cyan:#0891b2;--danger:#dc2626;--success:#16a34a;--shadow:0 8px 28px #10182824}*{box-sizing:border-box}html,body,#root{min-height:100%}body{background:radial-gradient(1200px 600px at 80% -10%, #8b5cf647, transparent 60%), radial-gradient(900px 500px at 0% 110%, #3b82f640, transparent 60%), var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,sans-serif}[dir=rtl] body,[dir=rtl]{font-family:Noto Nastaliq Urdu,Noto Naskh Arabic,system-ui,sans-serif}h1,h2,h3{margin:0 0 8px;font-weight:700}p{margin:0 0 10px;line-height:1.55}.muted{color:var(--muted)}.app-shell{flex-direction:column;height:100dvh;display:flex}.app-main{flex:1;width:100%;max-width:860px;min-height:0;margin:0 auto;padding:20px 16px 24px;overflow-y:auto}.screen{flex-direction:column;gap:16px;display:flex}.screen-title{font-size:26px}.row{align-items:center;gap:10px;display:flex}.row.wrap{flex-wrap:wrap}.card-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;display:grid}.glass-card,.glass-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);-webkit-backdrop-filter:var(--blur);box-shadow:inset 0 1px 0 #ffffff1f, var(--shadow)}.glass-card{padding:16px;transition:transform .15s,box-shadow .15s}.glass-card:hover{transform:translateY(-2px)}.glass-panel{padding:18px}.glass-panel-title{margin-bottom:12px;font-size:17px}.glass-btn{border:1px solid var(--border);background:var(--surface-strong);min-height:44px;color:var(--text);cursor:pointer;-webkit-backdrop-filter:var(--blur);border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:10px 18px;font-size:15px;font-weight:600;transition:transform .15s,box-shadow .15s,opacity .15s;display:inline-flex}.glass-btn:hover{box-shadow:var(--shadow);transform:translateY(-1px)}.glass-btn:active{transform:scale(.97)}.glass-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.glass-btn-primary{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;border-color:#0000}.glass-btn-destructive{color:#fca5a5;background:#ef44442e;border-color:#ef444466}.glass-btn-icon{border-radius:50%;min-width:44px;padding:10px}.glass-btn-fab{right:20px;bottom:calc(96px + env(safe-area-inset-bottom));background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;width:60px;height:60px;box-shadow:var(--shadow);z-index:30;border:none;border-radius:50%;position:fixed}.is-loading{opacity:.7}.glass-input,.glass-select{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);padding:12px 14px;font-family:inherit;font-size:15px}.glass-textarea{resize:vertical;min-height:140px;line-height:1.6}.glass-btn:focus-visible,.dock-item:focus-visible,.timeline-cell:focus-visible,.tab:focus-visible,.scene-card-head:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.glass-input:focus,.glass-select:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}input[type=range]{width:100%;accent-color:var(--accent);cursor:pointer;height:28px}select.glass-select option{color:#101828;background:#fff}.field{flex-direction:column;gap:6px;margin-bottom:12px;font-size:14px;display:flex}.field.checkbox{flex-direction:row;align-items:center;gap:10px}.field input[type=checkbox]{width:20px;height:20px}.glass-selector{flex-direction:column;gap:6px;font-size:14px;display:flex}.glass-selector-label{color:var(--muted)}.glass-file{border:1px dashed var(--border);background:var(--surface);cursor:pointer;border-radius:999px;align-items:center;gap:8px;min-height:44px;padding:10px 18px;font-size:15px;font-weight:600;display:inline-flex}.glass-modal-backdrop{z-index:60;background:#04060e99;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.glass-modal{background:var(--bg-2);border:1px solid var(--border);border-radius:24px 24px 0 0;width:100%;max-width:640px;max-height:88dvh;padding:18px;overflow:auto}.glass-modal-head{justify-content:space-between;align-items:center;display:flex}.glass-modal-body{flex-direction:column;gap:12px;margin-top:8px;display:flex}.glass-progress{background:var(--surface);border:1px solid var(--border);border-radius:999px;height:26px;position:relative;overflow:hidden}.glass-progress-bar{background:linear-gradient(90deg, var(--accent), var(--accent-2), var(--cyan));height:100%;transition:width .3s}.glass-progress-label{justify-content:center;align-items:center;font-size:12px;font-weight:600;display:flex;position:absolute;inset:0}.toast-stack{left:50%;top:calc(12px + env(safe-area-inset-top));z-index:70;flex-direction:column;gap:8px;width:min(640px,100% - 32px);display:flex;position:fixed;transform:translate(-50%)}.toast{border-radius:var(--radius-sm);background:var(--surface-strong);border:1px solid var(--border);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--shadow);cursor:pointer;padding:12px 16px;font-size:14px}.toast-success{border-color:#22c55e80}.toast-error{border-color:#ef444480}.floating-dock{width:max-content;max-width:calc(100% - 24px);margin:0 auto calc(12px + env(safe-area-inset-bottom));background:var(--surface-strong);border:1px solid var(--border);-webkit-backdrop-filter:var(--blur);box-shadow:var(--shadow);z-index:50;border-radius:999px;flex-shrink:0;gap:4px;padding:8px;display:flex;position:static;transform:none}.dock-item{min-width:60px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:999px;flex-direction:column;align-items:center;gap:2px;padding:8px 6px;font-size:11px;transition:background .15s,color .15s;display:flex}.dock-item:hover{color:var(--text)}.dock-item-active{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff}.home-hero{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:28px 8px 8px;display:flex}.logo-mark{width:64px;height:64px;box-shadow:var(--shadow);border-radius:22px;overflow:hidden}.logo-mark img{width:64px;height:64px;display:block}.home-hero h1{margin:0;font-size:34px}.scene-card{padding:0;overflow:hidden}.scene-card-head{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:12px;padding:12px;display:flex}.scene-card-thumb{object-fit:cover;border-radius:12px;flex-shrink:0;width:64px;height:64px}.scene-card-thumb-empty{background:var(--surface-strong);color:var(--muted);justify-content:center;align-items:center;display:flex}.scene-card-title{flex-direction:column;gap:2px;display:flex}.scene-card-title small{color:var(--muted);font-weight:400}.scene-card-body{padding:0 14px 14px}.scene-card-actions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.audio-player{width:100%}.video-preview{border-radius:var(--radius);aspect-ratio:9/16;object-fit:cover;background:#000;width:100%;max-height:60dvh}.video-timeline{align-items:center;gap:10px;margin-top:12px;display:flex}.timeline-track{flex:1;gap:6px;padding:4px 0;display:flex;overflow-x:auto}.timeline-cell{border:1px solid var(--border);background:var(--surface);min-width:40px;height:40px;color:var(--text);cursor:pointer;border-radius:12px;font-weight:700}.timeline-cell-active{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;border-color:#0000}.kb-list{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.kb-chip{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:4px 10px;font-size:12px}.kb-chip-active{border-color:var(--accent)}.caption-preview{border-radius:var(--radius-sm);color:#fff;text-align:center;background:#000;padding:16px}.caption-preview p{background:#00000073;border-radius:8px;margin:4px;padding:4px 10px;display:inline-block}.pipeline-steps{scrollbar-width:none;gap:6px;padding:2px;display:flex;overflow-x:auto}.pipeline-steps::-webkit-scrollbar{display:none}.pipeline-step{border:1px solid var(--border);background:var(--surface);min-width:max-content;color:var(--muted);cursor:pointer;white-space:nowrap;border-radius:999px;flex:1;justify-content:center;align-items:center;gap:6px;padding:8px 10px;font-size:13px;font-weight:600;display:flex}.pipeline-step-done{color:var(--success);border-color:#22c55e80}.pipeline-step-current{color:#fff;background:linear-gradient(135deg, var(--accent), var(--accent-2));border-color:#0000;animation:2s ease-in-out infinite step-pulse}.pipeline-step-dot{background:var(--surface-strong);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;display:flex}.pipeline-step-current .pipeline-step-dot{background:#ffffff40}@keyframes step-pulse{0%,to{box-shadow:0 0 #3b82f673}50%{box-shadow:0 0 0 5px #3b82f600}}.render-progress{flex-direction:column;gap:12px;display:flex}.render-frame{border-radius:var(--radius);background:#000;width:100%;max-height:52dvh;margin:0 auto;position:relative;overflow:hidden}.render-orb{filter:blur(28px);opacity:.85;border-radius:50%;animation:6s ease-in-out infinite orb-float;position:absolute}.orb-1{aspect-ratio:1;background:#3b82f6;width:45%;top:12%;left:8%}.orb-2{aspect-ratio:1;background:#8b5cf6;width:55%;animation-delay:2s;bottom:8%;right:-5%}.orb-3{aspect-ratio:1;background:#22d3ee;width:30%;animation-delay:4s;top:42%;left:38%}@keyframes orb-float{0%,to{transform:translate(0)scale(1)}50%{transform:translate(18px,-22px)scale(1.15)}}.render-shimmer{background:linear-gradient(90deg,#0000,#ffffff1a,#0000);width:45%;animation:2.4s linear infinite shimmer-move;position:absolute;top:0;bottom:0;left:0}@keyframes shimmer-move{0%{transform:translate(-120%)}to{transform:translate(260%)}}.render-bar{height:26px}.render-label{text-align:center;margin:0}:root[data-reduced-effects=true] .render-orb,:root[data-reduced-effects=true] .render-shimmer,:root[data-reduced-effects=true] .pipeline-step-current{animation:none!important}.tab-bar{background:var(--surface);border:1px solid var(--border);border-radius:999px;gap:6px;padding:6px;display:flex;overflow-x:auto}.tab{min-width:max-content;color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:999px;flex:1;padding:9px 14px;font-size:14px;font-weight:600}.tab-active{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff}.character-editor{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);margin-bottom:12px;padding:14px}.project-thumb{object-fit:cover;border-radius:12px;width:100%;height:120px;margin-bottom:10px}.home-hero h1{background:linear-gradient(135deg,#fff,#a5b4fc);color:#0000;-webkit-background-clip:text;background-clip:text;margin:0;font-size:34px}:root[data-theme=light-glass] .home-hero h1{background:linear-gradient(135deg,#1e3a8a,#7c3aed);-webkit-background-clip:text;background-clip:text}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}:root[data-reduced-effects=true] .glass-card,:root[data-reduced-effects=true] .glass-panel,:root[data-reduced-effects=true] .glass-btn,:root[data-reduced-effects=true] .floating-dock,:root[data-reduced-effects=true] .toast{-webkit-backdrop-filter:none}:root[data-reduced-effects=true] *{transition:none!important}@media (width>=900px){.app-main{max-width:1020px}.glass-modal-backdrop{align-items:center}.glass-modal{border-radius:24px}}
