:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#1f2937;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#fff7ed;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}.visually-hidden{clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}body{background:radial-gradient(circle at 0 0,#f472b638,#0000 34rem),radial-gradient(circle at 100% 0,#3b82f62e,#0000 33rem),linear-gradient(135deg,#fff7ed 0%,#eff6ff 52%,#fdf2f8 100%);min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{color:#1f2937;cursor:pointer;background:#e0f2fe;border:0;border-radius:999px;padding:.72rem 1rem;transition:transform .15s,box-shadow .15s,background .15s;box-shadow:0 7px 16px #0f172a1a}button:hover:not(:disabled),button:focus-visible:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 22px #0f172a24}button:disabled{cursor:not-allowed;opacity:.52}button.primary{color:#fff;background:linear-gradient(135deg,#7c3aed,#ec4899)}button.ghost{background:#fff;box-shadow:inset 0 0 0 1px #0f172a1f}button.danger{color:#991b1b}input,select,textarea{color:#111827;background:#ffffffe6;border:1px solid #0f172a29;border-radius:1rem;outline:none;width:100%;padding:.7rem .85rem;transition:border .15s,box-shadow .15s}input[type=checkbox]{accent-color:#7c3aed;width:auto}textarea{resize:none;overflow:hidden}input:focus,select:focus,textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 4px #8b5cf624}.speech-field{width:100%;display:grid;position:relative}.speech-field input,.speech-field textarea{padding-right:3rem}.mic-button{color:#5b21b6;background:#ede9fe;border-radius:999px;place-items:center;width:2.05rem;min-width:2.05rem;height:2.05rem;padding:0;font-size:1rem;line-height:1;display:grid;position:absolute;top:50%;right:.45rem;transform:translateY(-50%);box-shadow:inset 0 0 0 1px #7c3aed2e}.mic-button:hover:not(:disabled),.mic-button:focus-visible:not(:disabled){background:#ddd6fe;transform:translateY(-50%)scale(1.05);box-shadow:0 8px 16px #7c3aed2e}.mic-button.listening{color:#fff;background:#ef4444;box-shadow:0 0 0 4px #ef444421}.speech-field-textarea .mic-button{top:.45rem;transform:none}.speech-field-textarea .mic-button:hover:not(:disabled),.speech-field-textarea .mic-button:focus-visible:not(:disabled){transform:scale(1.05)}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.07em;margin-bottom:0;font-size:clamp(2.1rem,4vw,4.6rem);line-height:.95}h2{margin-bottom:0;font-size:1.05rem}h3{margin-bottom:.45rem;font-size:.95rem}.app-shell{width:min(1500px,100% - 28px);margin:0 auto;padding:1.2rem 0 3rem}.hero{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#ffffffa8;border:1px solid #fffc;border-radius:2rem;grid-template-columns:1fr;align-items:start;gap:.45rem;margin:.7rem 0 1rem;padding:clamp(.9rem,2.2vw,1.35rem);display:grid;box-shadow:0 24px 60px #0f172a1f}.hero-brand{align-items:center;gap:clamp(.75rem,1.6vw,1.15rem);display:flex}.hero-logo{border-radius:1.35rem;flex:none;width:clamp(4rem,7vw,5.75rem);height:clamp(4rem,7vw,5.75rem);box-shadow:0 14px 28px #7c3aed2e}.hero-title-copy{min-width:0}.eyebrow,.section-kicker{color:#7c3aed;letter-spacing:.12em;text-transform:uppercase;margin-bottom:.22rem;font-size:.75rem;font-weight:800}.hero-copy{color:#475569;max-width:64rem;margin-bottom:0;font-size:1rem}.hero-actions,.button-grid,.mini-actions,.line-actions,.scene-actions{flex-wrap:wrap;gap:.6rem;display:flex}.hero-actions{justify-content:flex-end}.community-nav{justify-content:space-between;align-items:center;gap:.8rem;margin-top:.5rem;display:flex}.view-switcher{background:#e2e8f0b8;border-radius:999px;flex-wrap:wrap;gap:.45rem;padding:.3rem;display:flex}.view-switcher button{min-height:2.7rem;box-shadow:none;padding:.58rem .95rem;font-weight:850}.view-switcher button.selected{color:#fff;background:linear-gradient(135deg,#7c3aed,#ec4899);box-shadow:0 7px 16px #7c3aed33}.player-chip{text-align:left;background:#ffffffdb;border:1px solid #7c3aed29;border-radius:999px;grid-template-columns:auto auto;align-items:center;column-gap:.5rem;min-width:9rem;padding:.48rem .85rem;display:grid;box-shadow:0 7px 16px #0f172a14}.player-chip:hover:not(:disabled),.player-chip:focus-visible:not(:disabled){background:#fff;box-shadow:0 12px 26px #4c1d9524,0 0 0 4px #8b5cf61a}.player-chip>.player-avatar-visual{grid-row:1/span 2;width:2.35rem;height:2.7rem}.player-chip strong,.player-chip small{line-height:1.05}.player-chip small{color:#64748b;text-transform:uppercase;font-size:.68rem;font-weight:750}.local-studio-chip{color:#0f172a;background:#f0fdfae6;border:1px solid #0f766e2e;border-radius:999px;grid-template-columns:auto auto;align-items:center;column-gap:.5rem;min-width:12rem;padding:.55rem .9rem;display:grid;box-shadow:0 7px 16px #0f172a0f}.local-studio-chip>span{grid-row:1/span 2;font-size:1.35rem}.local-studio-chip strong,.local-studio-chip small{line-height:1.08}.local-studio-chip small{color:#0f766e;text-transform:uppercase;font-size:.68rem;font-weight:750}.profile-editor-backdrop{z-index:50;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#1e293b85;place-items:center;padding:1rem;display:grid;position:fixed;inset:0;overflow-y:auto}.profile-editor-card{background:#fffffff7;border:1px solid #ffffffe0;border-radius:2rem;width:min(52rem,100%);max-height:calc(100dvh - 2rem);padding:clamp(1rem,3vw,2rem);overflow-y:auto;box-shadow:0 30px 90px #1e293b4d}.profile-editor-heading{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;display:flex}.profile-editor-heading h2{margin:.15rem 0 0;font-size:clamp(1.45rem,4vw,2.4rem)}.profile-editor-actions{justify-content:flex-end;gap:.65rem;display:flex}.community-gate{place-items:center;min-height:100dvh;padding:1.2rem;display:grid}.app-shell>.community-gate{min-height:calc(100dvh - 12rem)}.welcome-card{-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);text-align:center;background:#ffffffd1;border:1px solid #ffffffdb;border-radius:2rem;width:min(42rem,100%);padding:clamp(1.25rem,4vw,2.5rem);box-shadow:0 28px 80px #4c1d952e}.welcome-card h1{margin-bottom:.8rem;font-size:clamp(2.25rem,8vw,4.4rem)}.welcome-logo{border-radius:1.7rem;width:clamp(5rem,18vw,7rem);height:clamp(5rem,18vw,7rem);margin-bottom:.8rem;box-shadow:0 18px 38px #7c3aed38}.welcome-copy{color:#475569;max-width:34rem;margin:0 auto 1.2rem;font-size:1.02rem;line-height:1.55}.continue-studio-button{margin-top:1rem}.gate-privacy-note{color:#64748b;max-width:30rem;margin:.7rem auto 0;font-size:.82rem;line-height:1.45}.family-code-note{color:#64748b;margin-top:.35rem;font-size:.78rem;font-weight:700;display:block}.local-preview-note{color:#713f12;text-align:left;background:#fef3c7;border-radius:1rem;gap:.15rem;margin:0 auto 1.2rem;padding:.75rem .9rem;font-size:.82rem;display:grid}.welcome-form{text-align:left;gap:1rem;display:grid}.welcome-library-transfer{color:#475569;text-align:left;background:#f5f3ffb8;border:1px dashed #6d28d94d;border-radius:1rem;gap:.45rem;margin-top:1.2rem;padding:1rem;font-size:.85rem;line-height:1.45;display:grid}.welcome-library-transfer strong{color:#4c1d95}.welcome-library-transfer button{justify-self:start;margin-top:.25rem}.welcome-form>label>span,.avatar-builder legend{color:#334155;margin-bottom:.4rem;font-size:.8rem;font-weight:850;display:block}.avatar-builder{border:0;margin:0;padding:0}.profile-avatar-builder{background:#f5f3ffb3;border-radius:1.3rem;grid-template-columns:150px minmax(0,1fr);align-items:start;gap:1rem;padding:.85rem;display:grid;box-shadow:inset 0 0 0 1px #7c3aed1f}.profile-avatar-preview-card{color:#4c1d95;text-align:center;justify-items:center;gap:.35rem;min-width:0;display:grid}.profile-avatar-options{text-align:left}.player-avatar-visual{flex:none;place-items:center;width:3rem;height:3rem;display:grid;overflow:hidden}.legacy-player-avatar{font-size:1.65rem}.custom-player-avatar .avatar{align-content:end;width:100%;height:100%}.custom-player-avatar .avatar-svg.compact{width:100%;height:100%}.custom-player-avatar .avatar-name{display:none}.profile-avatar-preview{width:8.2rem;height:12rem;overflow:visible}.join-button{min-height:3.2rem;font-weight:900}.gate-error,.board-error{color:#9d174d;background:#fce7f3;border:1px solid #be185d29;border-radius:1rem;margin:0;padding:.75rem .9rem;font-weight:750}.connection-card{justify-items:center;display:grid}.connection-icon{margin-bottom:.7rem;font-size:4.5rem}.bobbing{animation:1.2s ease-in-out infinite alternate bob}@keyframes bob{to{transform:translateY(-.5rem)rotate(3deg)}}.board-shell{gap:1rem;width:min(1500px,100% - 28px);margin:0 auto;padding-bottom:3rem;display:grid}.board-intro{justify-content:space-between;align-items:center;gap:1.2rem;display:flex}.board-intro h2{margin-bottom:.35rem;font-size:clamp(1.45rem,3vw,2.35rem)}.board-intro p:last-child{color:#64748b;max-width:52rem;margin-bottom:0}.board-intro-actions,.post-actions{flex-wrap:wrap;gap:.55rem;display:flex}.board-intro-actions{justify-content:flex-end}.board-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem;display:grid}.board-post{align-content:start;gap:.85rem;display:grid}.post-author{align-items:center;gap:.65rem;display:flex}.post-avatar{background:#ede9fe;border-radius:1rem;place-items:center;width:3rem;height:3rem;font-size:1.65rem;display:grid}.post-author div{gap:.15rem;display:grid}.post-author time{color:#64748b;font-size:.74rem}.post-poster{color:#fff;text-align:center;background:radial-gradient(circle at 20% 20%,#ffffff47,#0000 30%),linear-gradient(145deg,#7c3aed,#db2777 58%,#f97316);border-radius:1.35rem;place-content:center;gap:.35rem;min-height:12rem;padding:1.2rem;display:grid;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff38}.post-poster span{font-size:2.6rem}.post-poster strong{overflow-wrap:anywhere;font-size:1.2rem}.post-poster small{color:#ffffffc7}.board-thumbnail{aspect-ratio:16/9;border-radius:1.35rem;width:100%;min-height:12rem;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff40,0 12px 26px #0f172a1f}.board-thumbnail-card{text-align:center;place-items:center;padding:1.2rem}.board-thumbnail-card span{overflow-wrap:anywhere;white-space:pre-wrap;font-size:clamp(1.25rem,4vw,2rem);font-weight:950;line-height:1.05}.board-thumbnail-cast{z-index:2;justify-content:center;align-items:flex-end;gap:.1rem;display:flex;position:absolute;bottom:.2rem;left:3%;right:3%}.board-thumbnail-cast .avatar{flex:0 26%;min-width:0}.board-thumbnail-cast .avatar-svg.compact{width:min(100%,92px)}.board-thumbnail-cast .avatar-name{text-overflow:ellipsis;white-space:nowrap;max-width:5rem;margin-top:-.65rem;padding:.2rem .4rem;font-size:.58rem;overflow:hidden}.post-summary{gap:.18rem;display:grid}.post-summary strong{overflow-wrap:anywhere;font-size:1.12rem}.post-summary small{color:#64748b}.post-actions{margin-top:auto}.post-actions .primary{flex:8rem}.like-button.selected{color:#fff;background:linear-gradient(135deg,#2563eb,#7c3aed);box-shadow:0 7px 16px #2563eb38}.like-count{color:#5b21b6;font-weight:850}.like-list{color:#475569;background:#ede9fec7;border-radius:1rem;padding:.75rem .85rem;font-size:.82rem}.like-list>strong{color:#4c1d95;margin-bottom:.45rem;display:block}.like-list ul{flex-wrap:wrap;gap:.4rem .7rem;margin:0;padding:0;list-style:none;display:flex}.like-list li{align-items:center;gap:.3rem;font-weight:750;display:inline-flex}.like-avatar{width:1.65rem;height:1.9rem}.board-viewer-backdrop{z-index:100;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0f172ab8;place-items:center;padding:1rem;display:grid;position:fixed;inset:0;overflow-y:auto}.board-viewer{background:#fffffff5;gap:.8rem;width:min(980px,100%);margin:auto;display:grid}.board-viewer-heading{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.board-viewer-heading h2{margin-bottom:.2rem;font-size:clamp(1.35rem,4vw,2.25rem)}.board-viewer-heading span{color:#64748b;font-size:.86rem;font-weight:750}.board-viewer-author{align-items:center;gap:.35rem;display:flex}.board-viewer-author-avatar{width:1.8rem;height:2.1rem}.board-viewer-stage{min-height:min(56vh,520px)}.board-viewer-caption{margin-top:0}.board-viewer-controls{flex-wrap:wrap;gap:.6rem;display:flex}.board-viewer-controls .primary{min-width:10rem}.empty-board{text-align:center;place-content:center;justify-items:center;min-height:20rem;display:grid}.empty-board>span{font-size:4.4rem}.empty-board h2{margin:.8rem 0 .35rem;font-size:1.35rem}.empty-board p{color:#64748b;margin:0}@media (width<=720px){.community-nav,.board-intro{flex-direction:column;align-items:stretch}.view-switcher{border-radius:1rem;grid-template-columns:1fr 1fr;display:grid}.player-chip,.local-studio-chip{align-self:flex-start}.profile-editor-backdrop{align-items:start;padding:.35rem}.profile-editor-card{border-radius:1.2rem;max-height:calc(100dvh - .7rem)}.profile-editor-heading{flex-direction:column;align-items:stretch}.profile-editor-heading>button,.profile-editor-actions button{width:100%}.profile-editor-actions{grid-template-columns:1fr 1fr;display:grid}.profile-avatar-builder{grid-template-columns:1fr}.profile-avatar-preview-card{text-align:left;grid-template-columns:auto 1fr;place-items:center start}.profile-avatar-preview{width:5rem;height:7rem}.board-intro-actions{grid-template-columns:auto 1fr;display:grid}.board-viewer-backdrop{padding:.35rem}.board-viewer{border-radius:1.1rem;padding:.7rem}.board-viewer-heading{flex-direction:column;align-items:stretch}.board-viewer-heading>button,.board-viewer-controls button{width:100%}.board-viewer-stage{border-width:5px;border-radius:1rem;min-height:min(48vh,420px)}}.workspace{grid-template-columns:minmax(280px,.85fr) minmax(520px,1.45fr);align-items:start;gap:1rem;display:grid}.workspace-column{align-content:start;gap:1rem;min-width:0;display:grid}.panel{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffbd;border:1px solid #ffffffbf;border-radius:1.7rem;padding:1rem;box-shadow:0 18px 44px #0f172a1a}.stage-panel,.script-panel,.character-panel,.project-panel,.scene-panel{grid-column:auto}.panel-heading{margin-bottom:.9rem}.inline-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.project-panel-heading{align-items:flex-start}.studio-post-button{white-space:normal;flex:0 auto;min-width:min(100%,14.5rem)}.field-label,.form-grid label span,.scene-editor label span,.script-line label span{color:#334155;margin:0 0 .35rem;font-size:.78rem;font-weight:800;display:block}.hint{color:#64748b;margin:.45rem 0 .85rem;font-size:.85rem}.button-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:.9rem 0 .45rem;display:grid}.autosave-badge{color:#166534;background:#dcfce7;border-radius:999px;place-items:center;min-height:2.85rem;padding:.72rem 1rem;font-weight:900;display:grid;box-shadow:inset 0 0 0 1px #1665341f}.autosave-badge.error{color:#9a3412;background:#ffedd5;box-shadow:inset 0 0 0 1px #9a341229}.autosave-hint{margin-bottom:.85rem}.saved-list{border-top:1px dashed #0f172a2e;padding-top:.7rem}.library-transfer{border-bottom:1px dashed #0f172a1f;margin-bottom:.8rem;padding-bottom:.75rem}.library-transfer .hint{margin-bottom:0}.saved-project{background:#f8fafce6;border-radius:1.1rem;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem;display:flex}.saved-project+.saved-project{margin-top:.55rem}.saved-project strong,.saved-project span{display:block}.saved-project span{color:#64748b;margin-top:.2rem;font-size:.78rem}.pill{color:#334155;white-space:nowrap;background:#f1f5f9;border-radius:999px;align-items:center;min-height:2rem;padding:.35rem .7rem;font-size:.78rem;font-weight:700;display:inline-flex}.stage-pills{flex-wrap:wrap;justify-content:flex-end;gap:.45rem;display:flex}.movie-stage{border:8px solid #ffffffb3;border-radius:1.5rem;min-height:520px;position:relative;overflow:hidden;box-shadow:inset 0 -28px 80px #0f172a1f}.cast-row{z-index:2;justify-content:center;align-items:flex-end;gap:clamp(.3rem,2.4vw,1.9rem);display:flex;position:absolute;bottom:1.15rem;left:5%;right:5%}.cast-row.cast-count-3{gap:clamp(.3rem,2vw,1.4rem)}.cast-row.cast-count-4{gap:clamp(.2rem,1.5vw,1rem)}.cast-row.cast-count-3 .avatar-svg{width:clamp(126px,15vw,190px)}.cast-row.cast-count-4 .avatar-svg{width:clamp(104px,12vw,150px)}.cast-row.cast-count-4 .avatar-name{text-overflow:ellipsis;white-space:nowrap;max-width:6.5rem;font-size:.78rem;overflow:hidden}.caption-box{color:#0f172a;background:#ffffffe0;border-radius:1.2rem;align-items:center;gap:.6rem;min-height:3.6rem;margin-top:.7rem;padding:.8rem 1rem;display:flex;box-shadow:inset 0 0 0 1px #0f172a14}.caption-box strong{color:#7c3aed;flex:none}.caption-box span{flex:auto}.caption-box em{color:#9f1239;text-transform:capitalize;background:#ffe4e6;border-radius:999px;flex:none;padding:.3rem .55rem;font-size:.75rem;font-style:normal;font-weight:800}.status-strip{color:#475569;background:#f8fafcd1;border-radius:1rem;justify-content:space-between;gap:1rem;margin-top:.8rem;padding:.75rem .9rem;font-size:.9rem;display:flex}.status-strip strong{color:#b91c1c}.background-props{z-index:1;pointer-events:none;position:absolute;inset:0}.background-props span{display:block;position:absolute}.bg-park{background:radial-gradient(circle at 21% 18%,#fff 0 7%,#0000 7.4%),radial-gradient(circle at 31% 16%,#fff 0 8%,#0000 8.4%),radial-gradient(circle at 73% 21%,#fff 0 6%,#0000 6.4%),linear-gradient(#89d8ff 0 58%,#67c56c 58% 100%)}.bg-park .prop.one{background:#15803d;border-radius:999px 999px 16px 16px;width:90px;height:90px;bottom:5rem;left:8%;box-shadow:38px 9px #16a34a}.bg-park .prop.two{background:#92400e;width:14px;height:86px;bottom:7.5rem;right:12%;box-shadow:0 -45px 0 38px #22c55e}.bg-park .prop.three{background:#fde047;border-radius:999px;width:78px;height:78px;top:3rem;right:39%}.bg-space{background:radial-gradient(circle at 15% 22%,#fff 0 2px,#0000 3px),radial-gradient(circle at 33% 16%,#fff 0 2px,#0000 3px),radial-gradient(circle at 72% 21%,#fff 0 2px,#0000 3px),radial-gradient(circle at 88% 39%,#fff 0 1px,#0000 2px),linear-gradient(#120a3d 0 100%)}.bg-space:after{content:"";z-index:0;clip-path:polygon(0 8%,12% 6.6%,26% 3.8%,50% 0,74% 3.8%,88% 6.6%,100% 8%,100% 100%,0 100%);background:#5b21b6;height:39%;position:absolute;bottom:-1px;left:-7%;right:-7%}.bg-space .prop.one{background:#fef3c7;border-radius:999px;width:88px;height:88px;top:3rem;left:12%;box-shadow:inset -18px -12px #f59e0b}.bg-space .prop.two{background:#60a5fa;border-radius:999px;width:128px;height:128px;top:6rem;right:11%;box-shadow:inset -24px -18px #2563eb}.bg-space .prop.three{background:#ffffff38;border-radius:50%;height:26px;bottom:5.4rem;left:8%;right:8%;transform:scaleY(.55)}.bg-bedroom{background:linear-gradient(90deg,#ffffff3d 1px,#0000 1px) 0 0/54px 54px,linear-gradient(#f9a8d4 0 64%,#d6a772 64% 100%)}.bg-bedroom .prop.one{background:#93c5fd;border-radius:18px 18px 6px 6px;width:140px;height:82px;bottom:6.5rem;right:10%;box-shadow:0 26px #1d4ed8}.bg-bedroom .prop.two{background:#fef3c7;border:10px solid #7c2d12;border-radius:14px;width:116px;height:86px;top:4rem;left:9%}.bg-bedroom .prop.three{background:#ffffff94;border-radius:999px;width:180px;height:44px;bottom:3.7rem;left:34%}.bg-beach{background:radial-gradient(circle at 78% 17%,#fde047 0 8%,#0000 8.5%),linear-gradient(#7dd3fc 0 49%,#38bdf8 49% 56%,#fde68a 56% 100%)}.bg-beach .prop.one{background:#22c55e;border-radius:999px 999px 12px 12px;width:84px;height:84px;bottom:5.6rem;left:9%;box-shadow:34px 8px #16a34a}.bg-beach .prop.two{background:repeating-conic-gradient(#ef4444 0 18deg, #fff 18deg 36deg);border-radius:999px 999px 0 0;width:108px;height:54px;bottom:5.4rem;right:10%}.bg-beach .prop.three{background:#92400e;width:6px;height:62px;bottom:3.4rem;right:17%}.bg-city{background:radial-gradient(circle at 12% 18%,#ffffffc7 0 2px,#0000 3px),radial-gradient(circle at 45% 12%,#ffffffc7 0 2px,#0000 3px),radial-gradient(circle at 76% 16%,#ffffffc7 0 2px,#0000 3px),linear-gradient(#111827 0 62%,#312e81 62% 100%)}.bg-city .prop.one,.bg-city .prop.two,.bg-city .prop.three{background:#0f172a;width:95px;bottom:4.9rem}.bg-city .prop.one{height:190px;left:7%;box-shadow:110px 42px #1e293b,220px -20px #0f172a}.bg-city .prop.two{height:156px;right:20%;box-shadow:108px -34px #020617}.bg-city .prop.three{background:#ffffff40;border-radius:999px;width:48px;height:26px;right:4%}.bg-restaurant{background:radial-gradient(circle at 72% 18%,#fff4beeb 0 5%,#0000 5.5%),linear-gradient(90deg,#ffffff24 1px,#0000 1px) 0 0/52px 52px,linear-gradient(#f7c98b 0 64%,#b86b45 64% 68%,#d59a68 68% 100%)}.bg-restaurant .prop.one{background:linear-gradient(150deg,#8dd9ff 0 58%,#f9b66f 58% 100%);border:11px solid #7c3f24;border-radius:10px 10px 4px 4px;width:132px;height:136px;top:3.5rem;left:8%;box-shadow:0 8px #5b2d1647}.bg-restaurant .prop.one:before{content:"";background:linear-gradient(90deg,#0000 46%,#7c3f24 46% 54%,#0000 54%),linear-gradient(#0000 46%,#7c3f24 46% 54%,#0000 54%);position:absolute;inset:0}.bg-restaurant .prop.two{background:#8b4a2f;border-radius:50%;width:214px;height:76px;bottom:5.4rem;right:8%;box-shadow:0 11px #64321f,inset 0 8px #ffffff29}.bg-restaurant .prop.two:before,.bg-restaurant .prop.two:after{content:"";background:#64321f;border-radius:6px;width:20px;height:86px;position:absolute;top:60px}.bg-restaurant .prop.two:before{left:50px}.bg-restaurant .prop.two:after{right:50px}.bg-restaurant .prop.three{filter:drop-shadow(0 10px 12px #facc155c);background:linear-gradient(90deg,#0000 47%,#713f12 47% 53%,#0000 53%);border-bottom:28px solid #facc15;border-radius:0 0 50% 50%;width:72px;height:92px;top:0;right:25%}.bg-castle{background:radial-gradient(circle at 17% 17%,#fff7c2 0 7%,#0000 7.5%),radial-gradient(at 75% 20%,#ffffffc7 0 9%,#0000 9.5%),linear-gradient(#8ed7ff 0 67%,#78c96f 67% 100%)}.bg-castle .prop.one{background:radial-gradient(at 50% 100%,#6d28d9 0 19%,#0000 19.5%),linear-gradient(90deg,#0000 15%,#ffffff42 15% 20%,#0000 20%),#c4b5fd;border-radius:8px 8px 0 0;width:188px;height:180px;bottom:4.8rem;left:50%;transform:translate(-50%);box-shadow:-116px 31px 0 -4px #a78bfa,116px 31px 0 -4px #a78bfa}.bg-castle .prop.one:before{content:"";background:repeating-linear-gradient(90deg,#8b5cf6 0 28px,#0000 28px 42px);height:32px;position:absolute;top:-24px;left:-1px;right:-1px}.bg-castle .prop.one:after{content:"";background:#60a5fa;border-radius:999px 999px 4px 4px;width:24px;height:38px;position:absolute;top:45px;left:42px;box-shadow:80px 0 #60a5fa}.bg-castle .prop.two{clip-path:polygon(50% 0,100% 100%,0 100%);filter:drop-shadow(296px 0 #f472b6);background:#f472b6;width:92px;height:78px;bottom:14.6rem;left:calc(50% - 194px)}.bg-castle .prop.three{background:#713f12;width:6px;height:72px;bottom:19rem;left:calc(50% - 151px);box-shadow:296px 0 #713f12}.bg-castle .prop.three:before{content:"";clip-path:polygon(0 0,100% 26%,0 100%);filter:drop-shadow(296px 0 #facc15);background:#fb7185;width:48px;height:30px;position:absolute;top:0;left:6px}.bg-spooky-night{background:radial-gradient(circle at 14% 18%,#fff 0 2px,#0000 3px),radial-gradient(circle at 42% 12%,#fff 0 2px,#0000 3px),radial-gradient(circle at 79% 24%,#fff 0 1px,#0000 2px),linear-gradient(#170f3d 0 66%,#263629 66% 100%)}.bg-spooky-night .prop.one{background:#fff4b8;border-radius:999px;width:112px;height:112px;top:3.2rem;right:10%;box-shadow:inset -22px -11px #e4d699,0 0 32px #fff4b866}.bg-spooky-night .prop.two{background:linear-gradient(90deg,#0000 18%,#facc15 18% 30%,#0000 30% 68%,#facc15 68% 80%,#0000 80%),#312e48;width:190px;height:158px;bottom:4.9rem;left:9%;box-shadow:0 12px #121827}.bg-spooky-night .prop.two:before{content:"";clip-path:polygon(50% 0,100% 100%,0 100%);background:#201b36;width:234px;height:92px;position:absolute;top:-80px;left:-22px}.bg-spooky-night .prop.two:after{content:"";background:#171426;border-radius:999px 999px 0 0;width:48px;height:76px;position:absolute;bottom:0;right:71px}.bg-spooky-night .prop.three{clip-path:polygon(0 48%,18% 14%,36% 53%,50% 22%,64% 53%,82% 14%,100% 48%,80% 42%,63% 88%,50% 52%,37% 88%,20% 42%);filter:drop-shadow(88px 52px #090914)drop-shadow(-74px 68px #090914);background:#090914;width:50px;height:26px;top:22%;left:39%}.bg-forest{background:radial-gradient(circle at 52% 20%,#fff3a5 0 7%,#0000 7.5%),linear-gradient(#8ed7ff 0 58%,#78c96f 58% 100%)}.bg-forest .prop.one,.bg-forest .prop.two{background:#7c4a2d;border-radius:12px 12px 0 0;width:30px;height:205px;bottom:4.2rem}.bg-forest .prop.one{left:10%;box-shadow:-50px 24px 0 -4px #6b3f28,72px 48px 0 -5px #8b5a35}.bg-forest .prop.two{height:236px;right:12%;box-shadow:-72px 54px 0 -5px #8b5a35,58px 30px 0 -4px #6b3f28}.bg-forest .prop.one:before,.bg-forest .prop.two:before{content:"";background:#238636;border-radius:48% 52% 46% 54%;width:146px;height:132px;position:absolute;top:-84px;left:-58px;box-shadow:-48px 22px #2ea043,52px 29px #1f7a32,5px -35px #34a853}.bg-forest .prop.three{background:#b7f17eb8;border-radius:50%;height:56px;bottom:3.5rem;left:30%;right:30%;box-shadow:-120px 13px 0 -18px #166534,128px 6px 0 -16px #15803d}.bg-forest .prop.three:before{content:"";background:#f472b6;border-radius:999px;width:10px;height:10px;position:absolute;top:8px;left:38%;box-shadow:34px 10px #fde047,74px -3px #c084fc,115px 12px #fb7185}.bg-living-room{background:radial-gradient(at 48% 91%,#fcd34db8 0 23%,#0000 23.5%),repeating-linear-gradient(90deg,#0000 0 70px,#5b341e21 70px 73px),linear-gradient(#f8d7b2 0 66%,#a76f4d 66% 100%)}.bg-living-room .prop.one{background:radial-gradient(circle at 76% 22%,#fff7ad 0 12%,#0000 12.5%),linear-gradient(#8ddcff 0 63%,#8dd47a 63% 100%);border:11px solid #fff7ed;border-radius:10px;width:142px;height:132px;top:3.2rem;left:7%;box-shadow:0 0 0 5px #a16245,0 9px #5b341e33}.bg-living-room .prop.one:before{content:"";background:linear-gradient(90deg,#0000 47%,#fff7ed 47% 53%,#0000 53%),linear-gradient(#0000 47%,#fff7ed 47% 53%,#0000 53%);position:absolute;inset:0}.bg-living-room .prop.two{background:linear-gradient(90deg,#0000 48%,#7c3f5873 48% 52%,#0000 52%),#f472b6;border:8px solid #7c3f58;border-radius:28px 28px 13px 13px;width:242px;height:102px;bottom:4.7rem;right:7%;box-shadow:inset 0 -19px #db5c9d,0 13px 0 -7px #64324a}.bg-living-room .prop.two:before,.bg-living-room .prop.two:after{content:"";background:#e866a9;border:7px solid #7c3f58;border-radius:24px;width:52px;height:108px;position:absolute;top:-31px}.bg-living-room .prop.two:before{left:-31px}.bg-living-room .prop.two:after{right:-31px}.bg-living-room .prop.three{background:#7c4a2d;border-radius:999px;width:10px;height:196px;top:4.7rem;left:48%;box-shadow:0 181px 0 15px #7c4a2d}.bg-living-room .prop.three:before{content:"";clip-path:polygon(20% 0,80% 0,100% 100%,0 100%);filter:drop-shadow(0 8px 10px #facc153d);background:#fde68a;border-radius:46% 46% 18% 18%;width:92px;height:72px;position:absolute;top:-18px;left:-41px}.bg-classroom{background:repeating-linear-gradient(90deg,#ffffff29 0 2px,#0000 2px 72px),linear-gradient(#fff1bd 0 66%,#b9dbe8 66% 70%,#dfb477 70% 100%)}.bg-classroom .prop.one{background:#24604d;border:12px solid #9a6139;border-radius:8px;width:254px;height:142px;top:3rem;left:7%;box-shadow:inset 0 0 22px #052e2373,0 9px #5b341e2e}.bg-classroom .prop.one:before{content:"";opacity:.9;background:linear-gradient(165deg,#0000 0 22%,#e8f7e8 23% 26%,#0000 27% 48%,#ffe8a3 49% 52%,#0000 53%),linear-gradient(8deg,#0000 0 66%,#ffffffd1 67% 70%,#0000 71%);height:68px;position:absolute;top:30px;left:28px;right:28px}.bg-classroom .prop.one:after{content:"";background:#f3f4f6;border-radius:999px;width:60px;height:8px;position:absolute;bottom:-16px;right:18px;box-shadow:-72px 0 #f9a8d4}.bg-classroom .prop.two{background:#dd8c4b;border-radius:9px 9px 4px 4px;width:218px;height:54px;bottom:6rem;right:9%;box-shadow:0 10px #a65f31,inset 0 8px #ffffff2e}.bg-classroom .prop.two:before,.bg-classroom .prop.two:after{content:"";background:#64748b;border-radius:4px;width:18px;height:92px;position:absolute;top:50px}.bg-classroom .prop.two:before{left:29px;box-shadow:42px -22px 0 -3px #64748b}.bg-classroom .prop.two:after{right:29px;box-shadow:-42px -22px 0 -3px #64748b}.bg-classroom .prop.three{background:linear-gradient(90deg,#0000 48%,#334155 48% 52%,#0000 52%),linear-gradient(30deg,#0000 48%,#334155 48% 52%,#0000 52%),#d9f1ff;border:8px solid #fffaf0;border-radius:999px;width:76px;height:76px;top:3.1rem;right:9%;box-shadow:0 0 0 4px #64748b}.bg-classroom .prop.three:after{content:"";background:#334155;border-radius:999px;width:10px;height:10px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.avatar{transform-origin:bottom;justify-items:center;margin:0;transition:transform .18s,filter .18s;display:grid;position:relative}.avatar.active{filter:drop-shadow(0 16px 22px #7c3aed3d);transform:translateY(-8px)scale(1.03)}.avatar.offstage{visibility:hidden;pointer-events:none}.avatar-svg{width:clamp(150px,16vw,230px);height:auto}.avatar-svg.compact{width:135px}.avatar-name{color:#fff;background:#0f172ad1;border-radius:999px;margin-top:-.45rem;padding:.35rem .7rem;font-size:.85rem;font-weight:900}.scene-list{gap:.55rem;margin-bottom:.95rem;display:grid}.scene-card{text-align:left;background:#f8fafce6;border-radius:1.1rem;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:.7rem;width:100%;padding:.7rem;transition:border-color .18s,background .18s,box-shadow .18s,opacity .18s,transform .18s;display:grid;position:relative;box-shadow:inset 0 0 0 1px #0f172a14}.scene-card.selected{color:#fff;background:linear-gradient(135deg,#2563eb,#7c3aed);box-shadow:0 12px 26px #2563eb33}.scene-card.dragging{opacity:.55;transform:scale(.995)}.scene-card.drop-before,.scene-card.drop-after{box-shadow:0 14px 30px #7c3aed1a}.scene-card.drop-before:before,.scene-card.drop-after:after{content:"";background:#7c3aed;border-radius:999px;height:4px;position:absolute;left:1rem;right:1rem;box-shadow:0 4px 14px #7c3aed52}.scene-card.drop-before:before{top:-.45rem}.scene-card.drop-after:after{bottom:-.45rem}.scene-select-button{width:100%;min-width:0;color:inherit;box-shadow:none;text-align:left;background:0 0;border-radius:.85rem;padding:.32rem .2rem;display:block}.scene-select-button:hover:not(:disabled),.scene-select-button:focus-visible:not(:disabled){box-shadow:none;background:#ffffff2e;transform:none}.scene-card:not(.selected) .scene-select-button:hover:not(:disabled),.scene-card:not(.selected) .scene-select-button:focus-visible:not(:disabled){background:#e2e8f080}.scene-number{color:#fff;background:#0f172ac7;border-radius:999px;place-items:center;width:34px;height:34px;font-weight:900;display:grid}.scene-card.selected .scene-number{color:#7c3aed;background:#fff}.scene-order-cell,.scene-summary{min-width:0}.scene-summary strong,.scene-summary em{display:block}.scene-summary strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.scene-summary em{color:#64748b;margin-top:.15rem;font-size:.78rem;font-style:normal;font-weight:700}.scene-card.selected .scene-summary em{color:#ffffffd1}.scene-editor{border-top:1px dashed #0f172a2e;gap:.75rem;padding-top:.9rem;display:grid}.cast-checkboxes{gap:.5rem;display:grid}.cast-checkbox{background:#f8fafcdb;border:1px solid #0f172a14;border-radius:1rem;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.55rem;padding:.62rem .7rem;display:grid}.cast-checkbox.selected{background:#ede9fec2;border-color:#7c3aed47}.cast-checkbox.disabled{opacity:.58;cursor:not-allowed}.cast-checkbox.disabled span,.cast-checkbox.disabled small{color:#94a3b8}.cast-checkbox span{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:800;overflow:hidden}.cast-checkbox small{color:#64748b;font-size:.75rem;font-weight:800}.scene-actions{padding-top:.1rem}.scene-actions button{padding:.58rem .72rem}.bottom-add-row{justify-content:flex-end;margin:-.15rem 0 .95rem;display:flex}.bottom-add-row button{min-width:128px}.script-add-row{margin:.9rem 0 0}.script-scene-hint{margin-top:-.3rem}.character-tabs{flex-wrap:wrap;gap:.5rem;max-height:12rem;margin-bottom:.9rem;padding-right:.2rem;display:flex;overflow-y:auto}.character-tabs button{background:#f8fafc;box-shadow:inset 0 0 0 1px #0f172a14}.character-tabs button.selected{color:#fff;background:linear-gradient(135deg,#2563eb,#7c3aed)}.character-editor{grid-template-columns:170px minmax(0,1fr);align-items:start;gap:1rem;display:grid}.avatar-preview-card{background:#f8fafc;border-radius:1.25rem;justify-items:center;gap:.75rem;padding:.7rem;display:grid}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.form-grid label{min-width:0}.form-grid .full-width,.slider-field{grid-column:1/-1}.slider-field{grid-template-columns:82px 1fr 56px;align-items:center;gap:.6rem;display:grid}.slider-field span{margin:0}.slider-field input{accent-color:#8b5cf6;padding:0}.slider-field output{color:#475569;font-variant-numeric:tabular-nums;text-align:right;font-size:.8rem}.character-editor>.danger{grid-column:1/-1;justify-self:start}.script-lines{gap:.8rem;display:grid}.script-line{background:#f8fafcdb;border:1px solid #0f172a17;border-radius:1.2rem;grid-template-columns:74px minmax(120px,.7fr) minmax(120px,.6fr) minmax(260px,1.6fr) auto;align-items:end;gap:.75rem;padding:.75rem;transition:border-color .18s,background .18s,box-shadow .18s,opacity .18s,transform .18s;display:grid;position:relative}.script-line.now-playing{background:#ede9fee0;border-color:#7c3aed80}.script-line.dragging{opacity:.55;transform:scale(.995)}.script-line.drop-before,.script-line.drop-after{border-color:#7c3aed8c;box-shadow:0 14px 30px #7c3aed1a}.script-line.drop-before:before,.script-line.drop-after:after{content:"";background:#7c3aed;border-radius:999px;height:4px;position:absolute;left:1rem;right:1rem;box-shadow:0 4px 14px #7c3aed52}.script-line.drop-before:before{top:-.45rem}.script-line.drop-after:after{bottom:-.45rem}.line-order-cell{align-content:center;justify-items:center;gap:.35rem;min-width:0;display:grid}.drag-handle{color:#5b21b6;cursor:grab;letter-spacing:-.01em;-webkit-user-select:none;user-select:none;background:#f5f3ffeb;border:1px dashed #7c3aed73;border-radius:999px;place-items:center;width:100%;min-height:34px;padding:.38rem .45rem;font-size:.72rem;font-weight:900;display:inline-grid}.drag-handle:hover,.drag-handle:focus-visible{background:#ede9fe;border-color:#7c3aedbf}.drag-handle:active{cursor:grabbing}.drag-handle:disabled{cursor:not-allowed;opacity:.5}.line-number{color:#fff;background:#7c3aed;border-radius:999px;place-items:center;width:34px;height:34px;font-weight:900;display:grid}.line-text textarea{min-height:76px}.line-actions{justify-content:flex-end;align-items:center;padding-bottom:.08rem}.line-actions button{padding:.58rem .72rem}.empty-state{text-align:center;background:#ffffffa6;border:2px dashed #7c3aed40;border-radius:1.5rem;padding:2rem}.empty-state p{color:#64748b;margin-bottom:0}@media (width<=1120px){.workspace{grid-template-columns:1fr}.workspace-column{display:contents}.stage-panel,.scene-panel,.script-panel,.character-panel,.project-panel{grid-column:1}.stage-panel{order:-1}.script-line{grid-template-columns:74px 1fr 1fr}.line-text,.line-actions{grid-column:2/-1}}@media (width<=760px){.app-shell{width:min(100% - 18px,1500px)}.hero,.inline-heading,.character-editor,.status-strip,.caption-box{grid-template-columns:1fr}.hero{align-items:start}.hero-brand{align-items:flex-start}.hero-logo{border-radius:1rem;width:3.5rem;height:3.5rem}.hero-actions{justify-content:stretch}.hero-actions button,.button-grid button{flex:auto}.project-panel-heading{flex-direction:column;align-items:stretch}.studio-post-button{width:100%}.button-grid,.form-grid{grid-template-columns:1fr}.movie-stage{min-height:460px}.cast-row{gap:0}.avatar-svg{width:clamp(94px,28vw,138px)}.script-line{grid-template-columns:74px 1fr}.script-line label,.line-text,.line-actions{grid-column:2/-1}.caption-box{align-items:start;display:grid}.stage-pills{justify-content:flex-start}.scene-card{grid-template-columns:74px minmax(0,1fr)}.cast-checkbox{grid-template-columns:auto minmax(0,1fr)}.cast-checkbox small{grid-column:2}}.outfit-hint{color:#64748b;background:#f8fafc;border-radius:.85rem;margin:-.15rem 0 .15rem;padding:.55rem .7rem;font-size:.82rem}.voice-picker{gap:.45rem;display:grid}.inline-checkbox{color:#334155;align-items:center;gap:.45rem;width:fit-content;font-size:.84rem;font-weight:800;display:inline-flex}.inline-checkbox span{margin:0}.voice-hint{margin:-.1rem 0 0}.stage-controls{background:#ffffffc7;border-radius:1.15rem;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:.7rem;margin-top:.8rem;padding:.75rem .9rem;display:grid;box-shadow:inset 0 0 0 1px #0f172a14}.playback-toggle{min-width:112px;padding-inline:1.15rem;font-weight:900}.playback-toggle.pause{background:linear-gradient(135deg,#0f766e,#2563eb)}.cc-toggle{color:#475569;background:#f1f5f9;min-width:88px;padding-inline:.9rem;font-weight:900;box-shadow:inset 0 0 0 1px #0f172a1a}.cc-toggle.active{color:#fff;background:#111827;box-shadow:0 8px 18px #0f172a2e}.scene-scrubber{--scrubber-progress:0%;gap:.42rem;min-width:0;display:grid}.scrubber-topline{color:#334155;justify-content:space-between;align-items:baseline;gap:.75rem;font-size:.86rem;display:flex}.scrubber-topline label{color:#7c3aed;letter-spacing:.08em;text-transform:uppercase;font-size:.76rem;font-weight:900}.scrubber-topline strong{text-overflow:ellipsis;white-space:nowrap;text-align:right;min-width:0;overflow:hidden}.scene-start-slider{width:100%;height:1.65rem;box-shadow:none;accent-color:#7c3aed;appearance:none;background:0 0;border:0;padding:0}.scene-start-slider::-webkit-slider-runnable-track{background:linear-gradient(to right, #7c3aed 0 var(--scrubber-progress), #94a3b847 var(--scrubber-progress) 100%);border-radius:999px;height:.5rem}.scene-start-slider::-moz-range-track{background:#94a3b847;border-radius:999px;height:.5rem}.scene-start-slider::-moz-range-progress{background:#7c3aed;border-radius:999px;height:.5rem}.scene-start-slider::-webkit-slider-thumb{appearance:none;background:#7c3aed;border:3px solid #fff;border-radius:999px;width:1.25rem;height:1.25rem;margin-top:-.375rem;box-shadow:0 5px 12px #0f172a38}.scene-start-slider::-moz-range-thumb{background:#7c3aed;border:3px solid #fff;border-radius:999px;width:1.05rem;height:1.05rem;box-shadow:0 5px 12px #0f172a38}.scene-ticks{color:#64748b;min-height:1.8rem;font-size:.75rem;font-weight:900;position:relative}.scene-ticks:before,.scene-ticks:after{content:"";border-radius:999px;height:3px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.scene-ticks:before{background:#94a3b847;right:0}.scene-ticks:after{z-index:1;width:var(--scrubber-progress,0%);background:#7c3aed;box-shadow:0 4px 12px #7c3aed33}.scene-ticks button{z-index:2;color:#64748b;cursor:pointer;background:#f1f5f9;border:0;border-radius:999px;place-items:center;min-width:1.55rem;height:1.55rem;padding:0;font-family:inherit;font-size:.75rem;font-weight:900;display:grid;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:inset 0 0 0 1px #0f172a17}.scene-ticks button:first-child{transform:translateY(-50%)}.scene-ticks button:hover:not(:disabled),.scene-ticks button:focus-visible:not(:disabled){color:#5b21b6;background:#ede9fe;transform:translate(-50%,-50%)scale(1.06);box-shadow:0 6px 14px #7c3aed29}.scene-ticks button:first-child:hover:not(:disabled),.scene-ticks button:first-child:focus-visible:not(:disabled){transform:translateY(-50%)scale(1.06)}.scene-ticks button.selected{color:#fff;background:#7c3aed}@media (width<=760px){.stage-controls{grid-template-columns:1fr}.playback-toggle,.cc-toggle{width:100%}.scrubber-topline{flex-direction:column;align-items:flex-start;gap:.25rem}.scrubber-topline strong{text-align:left}}.story-card-item:not(.selected){background:#faf5ffeb;box-shadow:inset 0 0 0 1px #7c3aed1f}.story-item-type{color:#6d28d9;letter-spacing:.08em;text-transform:uppercase;background:#ede9fef2;border-radius:999px;width:fit-content;margin-bottom:.18rem;padding:.16rem .45rem;font-size:.66rem;font-weight:900;display:inline-flex}.scene-card.selected .story-item-type{color:#312e81;background:#ffffffe6}.dual-add-row{justify-content:stretch;gap:.55rem}.dual-add-row button{flex:1 1 0}.card-editor{gap:.9rem}.card-text-field{display:grid}.card-color-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.color-field{grid-template-columns:3.2rem minmax(0,1fr);align-items:center;gap:.55rem;display:grid}.color-field input[type=color]{cursor:pointer;border-radius:.9rem;width:3.2rem;height:2.75rem;padding:.2rem}.color-field code{color:#475569;text-overflow:ellipsis;background:#f8fafc;border-radius:.75rem;padding:.45rem .55rem;font-size:.78rem;overflow:hidden}.mini-card-preview{text-align:center;white-space:pre-wrap;border-radius:1.25rem;place-items:center;min-height:9rem;padding:1rem;display:grid;box-shadow:inset 0 0 0 1px #ffffff47,0 14px 30px #0f172a1f}.mini-card-preview span{max-width:100%;font-size:clamp(1.15rem,3vw,1.85rem);font-weight:900;line-height:1.12}.story-card-stage{text-align:center;place-items:center;min-height:520px;padding:clamp(1.25rem,4vw,3rem);display:grid;box-shadow:inset 0 0 0 1px #ffffff2e,inset 0 -28px 80px #0f172a2e}.story-card-stage-text{z-index:2;white-space:pre-wrap;letter-spacing:-.04em;text-shadow:0 10px 24px #0f172a2e;max-width:90%;font-size:clamp(2.3rem,6vw,5rem);font-weight:950;line-height:1.04;position:relative}.story-card-sparkles{z-index:1;pointer-events:none;position:absolute;inset:0;overflow:hidden}.story-card-sparkles span{color:#fff7b2;opacity:0;text-shadow:0 0 8px #fffffffa,0 0 20px #facc15c2;animation:.76s cubic-bezier(.2,.8,.2,1) both story-card-sparkle;position:absolute}.story-card-sparkles span:first-child{font-size:clamp(1.7rem,4vw,3.2rem);top:18%;left:16%}.story-card-sparkles span:nth-child(2){font-size:clamp(1.3rem,3vw,2.4rem);animation-delay:90ms;top:25%;right:17%}.story-card-sparkles span:nth-child(3){font-size:clamp(1.5rem,3.5vw,2.8rem);animation-delay:.18s;bottom:24%;right:10%}.story-card-sparkles span:nth-child(4){font-size:clamp(1.2rem,2.7vw,2.1rem);animation-delay:.24s;bottom:18%;left:20%}.story-card-sparkles span:nth-child(5){font-size:clamp(1rem,2.4vw,1.9rem);animation-delay:.14s;top:11%;left:48%}.story-card-sparkles span:nth-child(6){font-size:clamp(1.2rem,3vw,2.3rem);animation-delay:.3s;bottom:12%;left:54%}@keyframes story-card-sparkle{0%{opacity:0;transform:translateY(8px)rotate(-18deg)scale(.2)}35%{opacity:1;transform:translateY(0)rotate(4deg)scale(1)}70%{opacity:.92}to{opacity:0;transform:translateY(-12px)rotate(18deg)scale(1.45)}}@media (prefers-reduced-motion:reduce){.story-card-sparkles span{animation-duration:1ms;animation-delay:0s}}.empty-stage{color:#64748b;background:#f8fafcd1;font-weight:800}.scene-ticks button.card-marker{color:#6d28d9;background:#f5f3ff;border-radius:.5rem}.scene-ticks button.card-marker.selected{color:#fff;background:#a21caf}@media (width<=760px){.card-color-grid,.dual-add-row{grid-template-columns:1fr}.dual-add-row{display:grid}}.action-palette{background:linear-gradient(135deg,#f5f3fff2,#e0f2feb8);border:1px solid #7c3aed29;border-radius:1.25rem;gap:.75rem;margin:.9rem 0 1rem;padding:.85rem;display:grid}.action-actor-row{grid-template-columns:minmax(180px,.55fr) minmax(0,1fr);align-items:end;gap:.9rem;display:grid}.action-actor-row .hint{margin:0 0 .2rem}.action-palette-grid{grid-template-columns:repeat(auto-fit,minmax(116px,1fr));gap:.55rem;display:grid}.action-palette-button{color:#4c1d95;min-height:3.1rem;box-shadow:none;cursor:grab;background:#ffffffd6;border:1px dashed #7c3aed61;border-radius:1rem;justify-content:center;padding:.55rem .7rem;font-size:.88rem}.action-palette-button span{font-size:1.15rem}.action-palette-button:active{cursor:grabbing}.action-palette-button:hover:not(:disabled),.action-palette-button:focus-visible:not(:disabled){background:#fff;border-color:#7c3aedbd;transform:translateY(-1px)}.timeline-lines{gap:.4rem}.timeline-step-wrapper{gap:.35rem;display:grid}.action-drop-gap{color:#7c3aed;opacity:.7;background:#f5f3ff85;border:1px dashed #7c3aed42;border-radius:999px;place-items:center;min-height:32px;padding:.35rem .75rem;font-size:.76rem;font-weight:900;transition:background .16s,border-color .16s,opacity .16s,transform .16s;display:grid}.action-drop-gap.drop-active{opacity:1;background:#ede9fe;border-color:#7c3aedd9;transform:scale(1.01)}.action-drop-gap.final-gap{margin-top:.15rem}.timeline-step{grid-template-columns:74px minmax(110px,.64fr) minmax(110px,.56fr) minmax(250px,1.35fr) minmax(190px,.9fr) auto}.timeline-step.action-only-step{background:#fff7ede6;border-color:#f9731638;grid-template-columns:74px minmax(260px,1fr) minmax(220px,.9fr);align-items:center}.action-only-copy{gap:.2rem;display:grid}.action-only-copy span{color:#9a3412;text-transform:uppercase;letter-spacing:.04em;font-size:.78rem;font-weight:900}.action-only-copy strong{color:#1f2937}.action-only-copy p{color:#64748b;margin:0;font-size:.84rem}.action-side-drop{background:#ffffffb8;border:1px dashed #7c3aed47;border-radius:1rem;align-content:center;align-self:stretch;gap:.45rem;min-height:74px;padding:.58rem;transition:border-color .16s,background .16s,box-shadow .16s;display:grid}.action-side-drop.drop-active{background:#ede9fe;border-color:#7c3aedd9;box-shadow:inset 0 0 0 2px #7c3aed1f}.action-side-drop p{color:#7c3aed;margin:0;font-size:.8rem;font-weight:800}.action-side-label{color:#475569;letter-spacing:.04em;text-transform:uppercase;font-size:.72rem;font-weight:900}.action-chip-list{flex-wrap:wrap;gap:.35rem;display:flex}.action-chip{color:#4c1d95;cursor:grab;background:#ede9fe;border-radius:999px;align-items:center;gap:.3rem;max-width:100%;padding:.35rem .45rem;font-size:.78rem;font-weight:900;display:inline-flex}.action-chip:active{cursor:grabbing}.action-chip strong,.action-chip em{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.action-chip em{color:#6d28d9;font-style:normal;font-weight:800}.action-chip button{color:#7f1d1d;width:1.25rem;height:1.25rem;min-height:0;box-shadow:none;background:#ffffffd9;border:0;border-radius:999px;place-items:center;padding:0;font-size:.95rem;line-height:1;display:grid}.avatar.action-jump .avatar-svg{animation:.62s ease-in-out infinite avatar-jump}.avatar.action-clap .avatar-svg{animation:.52s ease-in-out infinite avatar-clap-bounce}.avatar.action-clap:after,.avatar.action-wave:after,.avatar.action-sweat:after{z-index:4;filter:drop-shadow(0 6px 10px #0f172a38);font-size:clamp(1.8rem,3.5vw,3.1rem);animation:.56s ease-in-out infinite alternate avatar-pop;position:absolute;top:11%;right:8%}.avatar.action-clap:after{content:"👏"}.avatar.action-wave:after{content:"👋"}.avatar.action-sweat:after{content:"💧"}.avatar.action-enter-stage-left{animation:1.05s ease-out both avatar-enter-stage-left}.avatar.action-enter-stage-right{animation:1.05s ease-out both avatar-enter-stage-right}.avatar.action-exit-stage-left{animation:1.05s ease-in both avatar-exit-stage-left}.avatar.action-exit-stage-right{animation:1.05s ease-in both avatar-exit-stage-right}.avatar.action-smile .avatar-svg,.avatar.action-hearts .avatar-svg,.avatar.action-blush .avatar-svg{animation:.7s ease-in-out infinite avatar-happy-bounce}.avatar.action-frown .avatar-svg{animation:.9s ease-in-out infinite avatar-sad-sway}.movie-stage.playback-paused .avatar,.movie-stage.playback-paused .avatar .avatar-svg,.movie-stage.playback-paused .avatar:after{animation-play-state:paused}@keyframes avatar-jump{0%,to{transform:translateY(0)scaleY(1)}45%{transform:translateY(-32px)scaleY(1.02)}70%{transform:translateY(0)scaleY(.94)}}@keyframes avatar-clap-bounce{0%,to{transform:translateY(0)rotate(0)}50%{transform:translateY(-8px)rotate(2deg)}}@keyframes avatar-pop{0%{transform:translateY(0)rotate(-6deg)scale(.92)}to{transform:translateY(-10px)rotate(8deg)scale(1.08)}}@keyframes avatar-enter-stage-left{0%{opacity:0;transform:translate(-115vw)translateY(-8px)scale(1.03)}25%{opacity:1}to{opacity:1;transform:translate(0)translateY(-8px)scale(1.03)}}@keyframes avatar-enter-stage-right{0%{opacity:0;transform:translate(115vw)translateY(-8px)scale(1.03)}25%{opacity:1}to{opacity:1;transform:translate(0)translateY(-8px)scale(1.03)}}@keyframes avatar-exit-stage-left{0%{opacity:1;transform:translate(0)translateY(-8px)scale(1.03)}75%{opacity:1}to{opacity:0;transform:translate(-115vw)translateY(-8px)scale(1.03)}}@keyframes avatar-exit-stage-right{0%{opacity:1;transform:translate(0)translateY(-8px)scale(1.03)}75%{opacity:1}to{opacity:0;transform:translate(115vw)translateY(-8px)scale(1.03)}}@keyframes avatar-happy-bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes avatar-sad-sway{0%,to{transform:translateY(4px)rotate(-1deg)}50%{transform:translateY(10px)rotate(1deg)}}@media (width<=900px){.action-actor-row,.timeline-step,.timeline-step.action-only-step{grid-template-columns:1fr}.action-side-drop{min-height:64px}}.timeline-editor-layout{grid-template-columns:minmax(168px,220px) minmax(0,1fr);align-items:start;gap:.9rem;display:grid}.timeline-editor-layout.no-action-palette{grid-template-columns:minmax(0,1fr)}.timeline-main-column{gap:.75rem;min-width:0;display:grid}.timeline-editor-layout .action-palette{align-self:start;max-height:calc(100vh - 1.5rem);margin:0;padding:.75rem;position:sticky;top:.75rem;overflow-y:auto}.timeline-editor-layout .action-actor-row{grid-template-columns:1fr;gap:.5rem}.timeline-editor-layout .action-actor-row .hint{margin:0;font-size:.78rem;line-height:1.35}.timeline-editor-layout .action-palette-grid{grid-template-columns:1fr;gap:.48rem}.timeline-editor-layout .action-palette-button{text-align:left;justify-content:flex-start;width:100%;min-height:2.7rem;padding:.5rem .62rem}.timeline-editor-layout .action-palette-button strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.timeline-editor-layout .script-add-row{margin-top:.15rem}@media (width<=1180px){.timeline-editor-layout{grid-template-columns:minmax(150px,190px) minmax(0,1fr)}.timeline-editor-layout .action-palette-button{padding-inline:.5rem;font-size:.82rem}}@media (width<=900px){.timeline-editor-layout{grid-template-columns:1fr}.timeline-editor-layout .action-palette{max-height:none;position:static;overflow:visible}.timeline-editor-layout .action-palette-grid{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}.timeline-editor-layout .action-palette-button{text-align:center;justify-content:center}}html,body,#root{max-width:100%}.panel,.script-panel,.timeline-editor-layout,.timeline-main-column,.timeline-lines,.timeline-step-wrapper,.timeline-step,.timeline-step label,.line-text,.action-side-drop{min-width:0}.timeline-editor-layout{grid-template-columns:minmax(150px,190px) minmax(0,1fr)}.timeline-step.line-step{grid-template-columns:64px minmax(82px,.56fr) minmax(82px,.5fr) minmax(170px,1.28fr) minmax(132px,.82fr);align-items:end}.timeline-step.line-step .line-order-cell{grid-area:1/1/span 2}.timeline-step.line-step .line-text{grid-column:4}.timeline-step.line-step .action-side-drop{grid-area:1/5}.timeline-step.line-step .line-actions{grid-area:2/2/auto/-1;justify-content:flex-end;padding-top:.25rem}.timeline-step.line-step select,.timeline-step.line-step textarea,.timeline-step.line-step input{min-width:0}.action-side-drop{overflow:hidden}.action-chip-list,.action-chip{min-width:0}@media (width<=1280px){.timeline-editor-layout{grid-template-columns:1fr}.timeline-editor-layout .action-palette{max-height:none;position:static;overflow:visible}.timeline-editor-layout .action-palette-grid{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}.timeline-editor-layout .action-palette-button{text-align:center;justify-content:center}}@media (width<=760px){.timeline-step.line-step{grid-template-columns:64px minmax(0,1fr)}.timeline-step.line-step .line-order-cell{grid-row:1/span 5}.timeline-step.line-step label,.timeline-step.line-step .line-text,.timeline-step.line-step .action-side-drop,.timeline-step.line-step .line-actions{grid-column:2}.timeline-step.line-step .action-side-drop,.timeline-step.line-step .line-actions{grid-row:auto}}body{overflow-x:hidden}.script-panel{overflow:visible}@supports (overflow:clip){body{overflow-x:clip}.script-panel{overflow:clip visible}}.timeline-editor-layout .action-palette{z-index:8;overscroll-behavior:contain;align-self:start;max-height:calc(100dvh - 1.5rem);position:sticky;top:.75rem;overflow:hidden auto}@media (width<=1280px){.timeline-editor-layout .action-palette{max-height:min(42vh,22rem);position:sticky;top:.5rem;overflow:hidden auto}}@media (width<=760px){.timeline-editor-layout .action-palette{max-height:min(46vh,20rem)}}
