:root{--bg:#020713;--bg-2:#041126;--panel:#081a36;--panel-2:#0d2a50;--panel-soft:#0c254aeb;--ink:#fff;--muted:#bdc8dc;--muted-2:#7f91b2;--ruby:#ff164f;--ruby-2:#ff3a69;--ruby-deep:#d9083f;--pink:#ff6b9c;--gold:#ffd36f;--blue-line:#7099d652;--card-line:#6d96d047;--glow:0 0 16px #ff18508c, 0 0 40px #ff18502e;--shadow:0 24px 72px #00000075}*{box-sizing:border-box}html{background:var(--bg);min-height:100%}body{min-height:100%;color:var(--ink);-webkit-font-smoothing:antialiased;background:radial-gradient(circle at 50% -10%,#194c9440,#0000 34rem),radial-gradient(circle at 90% 25%,#890a4829,#0000 28rem),#020713;margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,textarea,select{font:inherit}button{-webkit-tap-highlight-color:transparent}button,input,textarea,select{transition:none!important}.story-studio{background:radial-gradient(circle at 50% -12%,#15458b40,#0000 32rem),#020713;min-height:100svh}.story-studio-shell{background:#030916;width:min(100%,430px);min-height:100svh;margin:0 auto;overflow:hidden}.story-screen{--stage-progress:0%;isolation:isolate;min-height:100svh;padding:max(26px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));background:radial-gradient(circle at 50% 8%,#0c32664d,#0000 26rem),linear-gradient(#06132d 0%,#020714 78%);flex-direction:column;gap:14px;display:flex;position:relative;overflow-x:hidden}.story-screen:not(.home-screen):before{content:"";z-index:5;top:max(27px, env(safe-area-inset-top));background:linear-gradient(90deg, var(--ruby) 0 var(--stage-progress), #48658e var(--stage-progress) 100%);border-radius:999px;width:148px;height:4px;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 0 12px #ff184f40}.story-screen:not(.home-screen):after{content:"";z-index:-1;pointer-events:none;background:radial-gradient(circle at 94% 35%,#9c0d501f,#0000 13rem),radial-gradient(circle at 4% 86%,#104c9624,#0000 15rem);position:absolute;inset:0}.title-screen{--stage-progress:27%}.characters-screen{--stage-progress:48%}.world-screen{--stage-progress:67%}.generation-screen{--stage-progress:82%}.chapter-screen,.approval-screen,.rest-generation-screen,.chapter-edit-screen{--stage-progress:100%}h1,h2,h3,p{margin-top:0}h1,h2,h3{color:var(--ink);margin-bottom:0}h1{letter-spacing:-.04em;font-size:clamp(2rem,9vw,2.75rem);font-weight:850;line-height:1.03}h2{letter-spacing:-.035em;text-align:center;font-size:clamp(1.75rem,7vw,2.22rem);font-weight:830;line-height:1.08}h3{font-size:1rem}.eyebrow{color:var(--gold);letter-spacing:.14em;text-align:center;text-transform:uppercase;margin:25px 0 0;font-size:.68rem;font-weight:850}.screen-subtitle{color:#d4dced;text-align:center;max-width:340px;margin:-5px auto 0;font-size:.82rem;line-height:1.4}.primary-button,.secondary-button,.adjustment-actions button,.text-button,.visual-style-card{cursor:pointer;border:0}.primary-button{color:#fff;width:100%;min-height:56px;box-shadow:var(--glow), inset 0 1px 0 #ffffff47;letter-spacing:-.01em;background:linear-gradient(#ff315e,#ed073f);border:1px solid #ff98adcc;border-radius:18px;margin-top:auto;padding:15px 20px;font-weight:850}.primary-button:after{content:"›";float:right;font-size:1.55rem;line-height:.72}.primary-button:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}.secondary-button{color:#0000;background:#071a37d6;border:1px solid #8facde2b;border-radius:50%;align-self:flex-start;min-width:42px;min-height:42px;padding:10px 13px;font-size:0}.secondary-button:before{content:"←";color:#fff;font-size:1.35rem;line-height:1}.screen-actions{margin-top:auto;display:flex}label{color:#f8fbff;gap:7px;font-size:.78rem;font-weight:720;display:grid}input,textarea,select{color:#fff;resize:vertical;background:linear-gradient(#0b2b53fa,#071f3efa);border:1px solid #538bcf59;border-radius:12px;outline:none;width:100%;padding:12px 13px;font-size:.92rem;line-height:1.45;box-shadow:inset 0 1px #ffffff08}input::placeholder,textarea::placeholder{color:#8092b3}input:focus,textarea:focus,select:focus{border-color:var(--ruby-2);box-shadow:0 0 0 2px #ff174f21,0 0 22px #ff174f1f}textarea{min-height:104px}select{min-height:48px}input[type=file]{color:#aab7cf;min-height:42px;padding:8px;font-size:.72rem}input[type=file]::file-selector-button{color:#fff;background:#ff174f2e;border:0;border-radius:9px;margin-right:8px;padding:8px 10px;font-weight:760}.home-screen{text-align:center;background:linear-gradient(#0307121a 0%,#02071314 46%,#020713 82%),radial-gradient(circle at 22% 22%,#0e74b36b,#0000 13rem),radial-gradient(circle at 76% 24%,#cd124975,#0000 12rem),linear-gradient(145deg,#071a39 0%,#120916 58%,#07030c 100%);justify-content:flex-end;gap:13px;padding:34px 18px 24px}.home-screen:before{content:"";z-index:-1;background:radial-gradient(circle at 50% 30%,#ff705629,#0000 8rem),radial-gradient(at 50% 34%,#0000000a 0 16%,#0000 17%),linear-gradient(165deg,#0000 0 62%,#a90b362e 63%,#0000 75%);position:absolute;inset:0}.home-brand{text-shadow:0 2px 16px #000000b3;display:grid;position:absolute;top:52px;left:50%;transform:translate(-50%)}.home-brand span{font-family:Georgia,Times New Roman,serif;font-size:3rem;font-weight:700;line-height:.9}.home-brand span:after{content:"♥";color:var(--ruby-2);font-size:1.8rem}.home-brand small{letter-spacing:.34em;margin-top:5px;font-size:.9rem;font-weight:750}.home-visual{z-index:-1;background:radial-gradient(circle at 43% 28%,#ffcdb147,#0000 16%),radial-gradient(circle at 59% 34%,#f397793d,#0000 18%),radial-gradient(at 46% 60%,#740e2dbf,#0000 34%),radial-gradient(at 64% 60%,#08223acc,#0000 36%),linear-gradient(145deg,#115881cc,#5b0824b3);border-radius:46% 54% 42% 58%/60% 48% 52% 40%;width:320px;height:360px;position:absolute;top:118px;left:50%;transform:translate(-50%);box-shadow:inset 0 -60px 80px #00000059,0 30px 70px #00000040}.home-heart{color:#ff2d5c47;filter:drop-shadow(0 0 24px #ff144a40);font-size:7rem;position:absolute;top:35%;left:50%;transform:translate(-50%,-50%)}.home-copy{gap:10px;margin-top:440px;display:grid}.home-copy h1{max-width:340px;margin:0 auto}.home-copy p{color:#eef4ff;max-width:330px;margin:0 auto;font-size:.92rem;line-height:1.45}.home-screen .primary-button{margin-top:8px}.title-screen{padding-top:max(26px, env(safe-area-inset-top))}.title-visual{color:#ffadc773;background:radial-gradient(circle at 51% 48%,#ff256c47,#0000 16%),radial-gradient(circle at 38% 60%,#28367d73,#0000 22%),linear-gradient(#09183b,#0c1532 52%,#0207131a);place-items:center;height:190px;margin:18px -18px 0;font-size:3.2rem;display:grid}.title-visual:before,.title-visual:after{content:"";clip-path:polygon(50% 0,65% 38%,100% 45%,78% 56%,85% 100%,50% 83%,15% 100%,22% 56%,0 45%,35% 38%);opacity:.58;background:linear-gradient(#1a2760,#5b144f);width:90px;height:130px;position:absolute;top:120px}.title-visual:before{left:calc(50% - 80px)}.title-visual:after{right:calc(50% - 80px);transform:scaleX(-1)}.title-screen .eyebrow{opacity:0;pointer-events:none;position:absolute}.title-screen h2{margin-top:2px}.title-screen label:first-of-type{color:#0000;margin-top:12px;font-size:0}.title-screen label:first-of-type input{min-height:58px;box-shadow:var(--glow);color:#fff;background:#340b28c2;border-color:#ff4570e6;border-radius:18px;padding-inline:17px;font-size:.98rem}.title-screen label:nth-of-type(2){color:#aebbd2;margin-top:8px;font-size:.69rem}.title-screen label:nth-of-type(2) textarea{min-height:88px}.title-screen .primary-button{margin-top:auto}.characters-screen h2,.world-screen h2{max-width:360px;margin-inline:auto}.character-grid{gap:12px;display:grid}.character-card{border:1px solid var(--card-line);background:linear-gradient(145deg,#0b2346fa,#051730fa);border-radius:17px;grid-template-columns:98px minmax(0,1fr);gap:7px 10px;min-height:164px;padding:10px;display:grid;position:relative;box-shadow:0 12px 32px #0003,inset 0 1px #ffffff06}.character-card:before{content:"";background:radial-gradient(circle at 50% 25%,#ffc4a638,#0000 18%),radial-gradient(at 50% 72%,#9014378c,#0000 40%),linear-gradient(150deg,#15416a,#251027 62%,#0b1427);border:1px solid #ff3b6c8c;border-radius:13px;grid-area:1/1/span 7;min-height:145px}.character-card>:not(.reference-preview){grid-column:2}.character-card .reference-preview{z-index:2;grid-area:1/1/span 7;height:100%;min-height:145px;margin:0}.card-heading{color:#fff;justify-content:space-between;align-items:center;gap:6px;font-size:.7rem;display:flex}.text-button{color:#ff9ab7;background:0 0;font-size:.65rem;font-weight:760}.character-card label{gap:3px;font-size:.62rem}.character-card input,.character-card textarea,.character-card select{border-radius:9px;padding:7px 8px;font-size:.72rem}.character-card textarea{min-height:54px}.character-card input[type=file]{min-height:36px;padding:5px;font-size:.58rem}.character-card>div:last-child{gap:5px;display:grid}.characters-screen>.add-character-button{color:#f6f8ff;background:#0b2a52;border-color:#527cb547;border-radius:14px;width:100%;min-height:46px;font-size:.86rem;font-weight:790}.characters-screen>.add-character-button:before{content:"+";color:#ff97b5;margin-right:8px;font-size:1rem}.characters-screen .screen-actions .primary-button{margin-top:0}.world-visual{background:radial-gradient(circle at 73% 20%,#ffce87b8,#0000 14%),radial-gradient(at 50% 75%,#2f7955c7,#0000 38%),linear-gradient(145deg,#183f3e,#4d572c 42%,#17332c 72%,#081522);border:1px solid #f6efdad1;border-radius:14px;min-height:140px;position:relative;overflow:hidden;box-shadow:0 14px 35px #00000042}.world-visual:before,.world-visual:after{content:"";background:linear-gradient(#0e37271a,#051e18db);border-radius:70% 20% 50% 10%;width:100px;height:150px;position:absolute;bottom:-15px}.world-visual:before{left:-20px;transform:rotate(18deg)}.world-visual:after{right:-20px;transform:rotate(-18deg)scaleX(-1)}.world-visual span{color:#ffe3a5;font-size:1.3rem;position:absolute;top:14px;right:18px}.world-screen>label:first-of-type textarea{min-height:84px}.visual-style-fieldset{border:0;margin:0;padding:0}.visual-style-fieldset legend{color:#f8fbff;margin-bottom:8px;font-size:.75rem;font-weight:750}.visual-style-grid{grid-template-columns:repeat(3,1fr);gap:7px;display:grid}.visual-style-card{color:#fff;background:#081832f2;border:1px solid #5d82b84d;border-radius:12px;gap:5px;min-width:0;padding:5px;display:grid}.visual-style-card.is-selected{border-color:var(--ruby-2);box-shadow:0 0 15px #ff174f59}.visual-style-card strong{text-overflow:ellipsis;white-space:nowrap;font-size:.65rem;overflow:hidden}.visual-style-thumb{background:radial-gradient(circle at 50% 28%,#ffb99159,#0000 18%),linear-gradient(145deg,#71334a,#152b55);border-radius:8px;height:54px;display:block}.visual-style-thumb-1{background:linear-gradient(145deg,#ef8d56,#724560 44%,#172f57)}.visual-style-thumb-2{background:linear-gradient(145deg,#126a7d,#1b3d7a 48%,#581f58)}.world-screen>div:not(.world-visual):not(.screen-actions) label:first-child{margin-top:0}.world-screen .reference-preview{min-height:120px}.reference-preview{background:#071325;border:1px solid #f1efdab8;border-radius:13px;width:100%;overflow:hidden;box-shadow:0 12px 30px #0000003d}.reference-preview img{width:100%;height:100%;min-height:inherit;object-fit:cover;display:block}.generation-screen,.rest-generation-screen{text-align:center;background:radial-gradient(circle at 50% 55%,#ff2e6742,#0000 13rem),radial-gradient(circle at 14% 62%,#2353ae66,#0000 13rem),radial-gradient(circle at 88% 68%,#b0378f4d,#0000 14rem),linear-gradient(#071a3b,#061129 58%,#030814)}.generation-screen .eyebrow,.rest-generation-screen .eyebrow{opacity:0;position:absolute}.generation-screen h2,.rest-generation-screen h2{margin-top:36px}.generation-visual,.rest-generation-visual{place-items:center;min-height:170px;margin:6px -18px 0;display:grid;position:relative}.generation-visual strong,.rest-generation-visual strong{z-index:2;filter:drop-shadow(0 18px 28px #00000052);font-size:6rem;line-height:1}.generation-visual span,.rest-generation-visual span{z-index:3;color:#ff315f;text-shadow:0 0 28px #ff295fa6;font-size:4rem;position:absolute;top:8px}.generation-visual:before,.rest-generation-visual:before{content:"";filter:blur(8px);background:radial-gradient(circle,#ff59847a,#0000 65%);border-radius:50%;position:absolute;inset:14px 34px}.generation-progress{background:#312b6a;border-radius:999px;height:8px;margin:0 18px;overflow:hidden}.generation-progress span{border-radius:inherit;background:linear-gradient(90deg,#ff164f,#ff6b95,#fff);height:100%;display:block;box-shadow:0 0 14px #ff2256a6}.generation-checklist{text-align:left;box-shadow:var(--shadow);background:#0b234be6;border:1px solid #557dbd47;border-radius:15px;gap:8px;padding:15px 14px;display:grid}.generation-checklist div{color:#e6ecf8;align-items:center;gap:9px;font-size:.77rem;display:flex}.generation-checklist span{color:#7f93be;border:2px solid #5f75a3;border-radius:50%;place-items:center;width:20px;height:20px;font-size:.7rem;display:grid}.generation-checklist .is-done span{color:#fff;background:#ff174f;border-color:#ff305e;box-shadow:0 0 12px #ff174f73}.generation-checklist .is-active span{color:#ff315f;border-color:#ff315f;box-shadow:0 0 12px #ff174f47}.generation-context{color:#94a6c6;justify-content:space-between;gap:12px;font-size:.68rem;display:flex}.generation-context strong{color:#fff}.generation-screen .primary-button{margin-top:2px}.demo-note{color:#8fa4c5;margin:0;font-size:.73rem;line-height:1.4}.chapter-screen{gap:10px;padding-inline:0}.chapter-screen>*{margin-inline:18px}.chapter-screen>.secondary-button{margin-left:18px}.chapter-heading{text-align:center;gap:2px;display:grid}.chapter-heading .eyebrow{color:#fff;letter-spacing:0;margin:0;font-size:.95rem}.chapter-heading h2{color:#e3e9f4;font-size:.84rem;font-weight:560}.demo-badge{color:var(--gold);letter-spacing:.06em;border:1px solid #ffd27c40;border-radius:999px;justify-self:center;margin-top:3px;padding:3px 7px;font-size:.55rem}.chapter-hero{background:#0b2131;width:100%;min-height:235px;margin:3px 0 0;overflow:hidden}.chapter-hero img{object-fit:cover;width:100%;height:235px;display:block}.chapter-hero-fallback{color:#ffddac8c;background:radial-gradient(circle at 57% 24%,#ffcd9b45,#0000 15%),radial-gradient(circle at 39% 42%,#37846f6b,#0000 26%),linear-gradient(145deg,#143d43,#2f422b 42%,#572633 78%,#140b1a);place-items:center;min-height:235px;font-size:2.2rem;display:grid;position:relative}.chapter-summary{color:#95a6c1;margin-top:5px;margin-bottom:0;font-size:.72rem;line-height:1.4}.chapter-copy{color:#f5f7fc;padding:0 0 6px;font-size:.91rem;line-height:1.62}.chapter-screen .primary-button{width:calc(100% - 36px);margin:auto 18px 0}.production-outputs{gap:10px;display:grid}.production-outputs img,.production-outputs video{background:#000;border-radius:12px;width:100%}.production-outputs audio{width:100%}.approval-screen{background:radial-gradient(circle at 50% 23%,#ff9f4c1c,#0000 10rem),radial-gradient(circle at 50% 55%,#88103d29,#0000 17rem),linear-gradient(#071123,#070914 76%);justify-content:center}.approval-screen>.secondary-button{top:max(26px, env(safe-area-inset-top));position:absolute;left:18px}.approval-sparkles{color:var(--gold);text-align:center;text-shadow:0 0 18px #ffbe4c59;margin:auto 0 0;font-size:1.7rem}.approval-screen .eyebrow{opacity:0;position:absolute}.approval-screen h2{margin-top:8px}.approval-screen .screen-subtitle{max-width:300px}.approval-actions{gap:10px;margin-top:16px;display:grid}.approval-actions .primary-button{margin-top:0}.approval-actions .secondary-button{color:#fff;text-align:left;background:linear-gradient(#111f3d,#0b1831);border:1px solid #6082b947;border-radius:15px;width:100%;min-height:58px;font-size:.91rem;font-weight:800}.approval-actions .secondary-button:before{content:"✎";color:#f5dde4;margin-right:12px;font-size:.95rem}.adjustment-actions{gap:9px;display:grid}.adjustment-actions button{color:#fff;text-align:left;background:linear-gradient(#101e3c,#0a1730);border:1px solid #5e7eb247;border-radius:14px;min-height:54px;padding:12px 15px;font-size:.86rem;font-weight:760}.approval-screen .notice{margin-bottom:auto}.rest-generation-screen{justify-content:flex-start}.rest-generation-screen h2{margin-top:48px}.rest-generation-visual{min-height:190px;margin-top:6px}.rest-generation-visual strong{font-size:6.4rem}.rest-progress{margin-top:-3px}.rest-checklist{margin-top:8px}.notice{color:#ffd7e2;background:#610c2b40;border:1px solid #ff507a38;border-radius:12px;margin:0;padding:11px 13px;font-size:.76rem;font-weight:650;line-height:1.4}.access-screen,.chapter-edit-screen{justify-content:center}.access-screen form{gap:13px;margin-top:12px;display:grid}.chapter-edit-screen textarea{min-height:min(46svh,390px)}@media (min-width:431px){.story-studio{padding:22px}.story-studio-shell{border:1px solid #7495c92e;border-radius:28px;min-height:calc(100svh - 44px);box-shadow:0 30px 90px #0000007a}.story-screen{border-radius:28px;min-height:calc(100svh - 44px)}}@media (max-width:370px){.story-screen{gap:12px;padding-inline:15px}.character-card{grid-template-columns:88px minmax(0,1fr);padding:9px}.character-card:before,.character-card .reference-preview{min-height:136px}h2{font-size:1.62rem}.home-copy{margin-top:420px}}.story-studio-shell{background:#020713;width:min(100%,398px)}.story-screen{background:radial-gradient(circle at 50% 5%,#0a2f6445,#0000 24rem),linear-gradient(#06132e 0%,#020713 80%);gap:11px;padding-left:16px;padding-right:16px}.story-screen:not(.home-screen):before{top:max(25px, env(safe-area-inset-top));width:142px;height:4px}.secondary-button{background:#071934c2;min-width:38px;min-height:38px;padding:8px 11px}h2{font-size:clamp(1.6rem,6.4vw,2.05rem);line-height:1.04}.screen-subtitle{margin-top:-3px;font-size:.76rem;line-height:1.34}.primary-button{border-radius:16px;min-height:54px;box-shadow:0 0 14px #ff185094,0 0 34px #ff185033,inset 0 1px #ffffff4d}.home-visual,.title-visual,.world-visual,.generation-visual,.rest-generation-visual,.chapter-hero-fallback,.visual-style-thumb{background-repeat:no-repeat}.home-screen{background:radial-gradient(circle at 14% 24%,#0c65a361,#0000 12rem),radial-gradient(circle at 85% 24%,#c60f4661,#0000 12rem),linear-gradient(#061329 0%,#080710 73%,#12040a 100%);border:1px solid #ff476fb8;padding:20px 15px;box-shadow:inset 0 0 34px #ff184f14}.home-brand{display:none}.home-visual{z-index:0;width:366px;height:430px;box-shadow:none;opacity:1;border-radius:0;top:20px;-webkit-mask-image:linear-gradient(#000 0 76%,#0000 100%);mask-image:linear-gradient(#000 0 76%,#0000 100%)}.home-heart{display:none}.home-copy{z-index:1;gap:8px;margin-top:425px}.home-copy h1{text-shadow:0 2px 14px #000000b3;max-width:325px;font-size:1.9rem;line-height:1.08}.home-copy p{text-shadow:0 2px 12px #000000a6;max-width:315px;font-size:.88rem;line-height:1.42}.home-screen .primary-button{border-radius:19px;min-height:58px;margin-top:5px}.title-screen{background:radial-gradient(circle at 54% 31%,#ff165d2e,#0000 9rem),linear-gradient(#06142d,#040b1b 70%,#060712);padding-inline:16px}.title-visual{color:#0000;height:225px;margin:7px -16px 0;box-shadow:inset 0 -42px 38px #040b1b}.title-visual span,.title-visual:before,.title-visual:after{display:none}.title-screen h2{margin-top:-2px;font-size:1.8rem}.title-screen label:first-of-type{margin-top:7px}.title-screen label:first-of-type input{background:radial-gradient(circle at 92%,#ffb85724,#0000 26px),#360a29c7;border-radius:15px;min-height:56px}.title-screen label:nth-of-type(2){opacity:.62;margin-top:1px;font-size:.62rem}.title-screen label:nth-of-type(2) textarea{background:#071831d1;min-height:66px;max-height:72px;font-size:.72rem}.characters-screen{gap:8px;padding-inline:14px}.characters-screen>.add-character-button:first-child{margin-left:0}.characters-screen h2{margin-top:1px;font-size:1.55rem}.characters-screen .screen-subtitle{max-width:290px;font-size:.7rem}.character-grid{gap:9px;margin-top:5px}.character-card{min-height:140px;box-shadow:none;background:0 0;border:0;border-radius:12px;grid-template-columns:104px minmax(0,1fr);gap:5px 9px;padding:7px}.character-card:before{background-color:#0b1b30;background-position:50%;background-size:cover;border:1px solid #ff3c6cd6;border-radius:11px;grid-row:1/span 6;min-height:136px;box-shadow:0 0 13px #ff1f552e}.character-card:first-child:before{background-image:url(/camila-portrait.webp)}.character-card:nth-child(2):before{background-image:url(/kaue-portrait.webp);border-color:#6b91be75}.card-heading{min-height:4px;font-size:0}.card-heading strong{display:none}.character-card label{gap:2px;font-size:.65rem;font-weight:760}.character-card input,.character-card textarea,.character-card select{background:#0c2e58;border-radius:8px;min-height:30px;padding:5px 8px;font-size:.72rem}.character-card textarea{min-height:58px;max-height:58px;line-height:1.3}.character-card>div:last-child{z-index:4;pointer-events:none;width:104px;height:136px;display:block;position:absolute;top:7px;left:7px}.character-card>div:last-child>label:first-child{display:none}.character-card>div:last-child>label:nth-child(2){pointer-events:auto;font-size:0;display:block;position:absolute;inset:0}.character-card>div:last-child>label:nth-child(2):after{content:"✎";color:#071120;background:#fff;border-radius:50%;place-items:center;width:24px;height:24px;font-size:.75rem;font-weight:900;display:grid;position:absolute;bottom:5px;right:5px;box-shadow:0 2px 7px #00000059}.character-card>div:last-child input[type=file]{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.character-card>div:last-child>div{pointer-events:auto;position:absolute;inset:0}.character-card>div:last-child .reference-preview{border-radius:11px;width:100%;height:100%;min-height:136px}.character-card>div:last-child small{display:none}.character-card>div:last-child .text-button{z-index:6;color:#0000;background:#020713b8;border-radius:50%;width:22px;height:22px;font-size:0;position:absolute;top:4px;right:4px;overflow:hidden}.character-card>div:last-child .text-button:after{content:"×";color:#fff;font-size:1rem}.characters-screen>.add-character-button{border-radius:12px;min-height:43px;font-size:.82rem}.characters-screen .primary-button{min-height:51px}.world-screen{gap:8px;padding-inline:14px}.world-screen h2{margin-top:1px;font-size:1.55rem}.world-screen .screen-subtitle{font-size:.7rem}.world-visual{border-radius:12px;min-height:136px;margin-top:3px;overflow:hidden;box-shadow:0 12px 28px #00000042}.world-visual:before,.world-visual:after,.world-visual>span{display:none}.world-visual>div{position:absolute;inset:0}.world-visual>div>label{z-index:4;font-size:0;position:absolute;inset:0}.world-visual>div>label input[type=file]{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.world-visual>div>label:after{content:"✎";color:#071120;background:#fff;border-radius:50%;place-items:center;width:27px;height:27px;font-size:.8rem;font-weight:900;display:grid;position:absolute;bottom:7px;right:7px;box-shadow:0 2px 8px #00000057}.world-visual>div>div{z-index:3;position:absolute;inset:0}.world-visual .reference-preview{border:0;border-radius:11px;width:100%;height:100%;min-height:136px}.world-visual small{display:none}.world-visual .text-button{z-index:7;color:#0000;background:#020713b8;border-radius:50%;width:22px;height:22px;font-size:0;position:absolute;top:6px;right:6px;overflow:hidden}.world-visual .text-button:after{content:"×";color:#fff;font-size:1rem}.world-screen>label:first-of-type textarea{border-radius:9px;min-height:74px;max-height:74px;font-size:.75rem;line-height:1.35}.visual-style-fieldset legend{margin-bottom:6px;font-size:.68rem}.visual-style-card{border-radius:9px;gap:3px;padding:4px}.visual-style-card strong{font-size:.59rem}.visual-style-thumb{height:50px}.visual-style-thumb-1{background-image:url(/kamila-title-castle.webp)}.visual-style-thumb-2{background-image:url(/kamila-world-jungle.webp)}.world-screen .primary-button{min-height:51px}.generation-screen{gap:9px;padding-inline:16px}.generation-screen .screen-subtitle{max-width:270px;font-size:.7rem}.generation-visual{min-height:183px;margin:2px -16px 0;box-shadow:inset 0 -22px 28px #051129ad}.generation-visual:before,.generation-visual span,.generation-visual strong{display:none}.generation-progress{height:7px;margin:-2px 18px 0}.generation-progress:after{content:attr(aria-label);display:none}.generation-checklist div{gap:8px;font-size:.72rem}.generation-checklist span{width:18px;height:18px}.generation-context{display:none}.generation-screen .primary-button{min-height:49px;margin-top:0;font-size:.82rem}.chapter-screen{gap:7px}.chapter-heading .eyebrow{font-size:.92rem}.chapter-heading h2{margin-top:1px;font-size:.72rem}.chapter-hero{min-height:240px}.chapter-hero img,.chapter-hero-fallback{height:240px;min-height:240px}.chapter-hero-fallback{color:#0000}.chapter-hero-fallback span,.chapter-summary{display:none}.chapter-copy{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.86rem;line-height:1.55}.chapter-copy p{margin-bottom:8px}.approval-screen{gap:10px;padding-inline:17px}.approval-sparkles{margin-top:auto;margin-bottom:2px;font-size:1.65rem}.approval-screen h2{margin-top:2px;font-size:1.55rem}.approval-screen .screen-subtitle{max-width:270px;font-size:.72rem}.approval-actions{gap:10px;margin-top:16px;margin-bottom:auto;display:grid}.approval-actions .primary-button{text-align:left;grid-template-columns:30px 1fr 18px;align-items:center;min-height:58px;margin:0;display:grid;position:relative}.approval-actions .primary-button:after{content:"›";float:none;justify-self:end}.approval-icon{color:#fff;border-radius:50%;place-items:center;width:24px;height:24px;font-size:.82rem;font-weight:900;display:grid}.approval-actions .primary-button .approval-icon{color:#e70d44;background:#fff}.approval-option{color:#fff;text-align:left;background:linear-gradient(#101e3c,#0a1730);border:1px solid #5c7eb445;border-radius:14px;grid-template-columns:30px 1fr 18px;align-items:center;min-height:58px;padding:12px 15px;font-size:.85rem;font-weight:780;display:grid}.approval-option .approval-icon{color:#f6e4e8;background:0 0}.approval-chevron{justify-self:end;font-size:1.45rem;line-height:1}.approval-screen .notice{margin-top:-4px;margin-bottom:auto}.rest-generation-screen{gap:9px;padding-inline:16px}.rest-generation-screen .screen-subtitle{max-width:285px;font-size:.7rem}.rest-generation-visual{min-height:188px;margin:2px -16px 0;box-shadow:inset 0 -24px 30px #041026a6}.rest-generation-visual:before,.rest-generation-visual span,.rest-generation-visual strong{display:none}.rest-progress{height:7px;margin-top:-1px}.rest-checklist{gap:8px;margin-top:8px;padding:14px 13px}@media (max-width:370px){.home-visual{width:340px}.home-copy{margin-top:410px}.character-card{grid-template-columns:94px minmax(0,1fr)}.character-card:before,.character-card>div:last-child{width:94px}}.home-visual{background-image:url(/kamila-home.webp);background-position:50% 18%;background-size:cover}.title-visual{background-image:url(/kamila-title-castle.webp);background-position:50%;background-size:cover}.world-visual{background-image:url(/kamila-world-jungle.webp);background-position:50%;background-size:cover}.generation-visual{background-image:url(/kamila-generation-book.webp);background-position:50%;background-size:cover}.chapter-hero-fallback{background-image:url(/kamila-chapter-hero.webp);background-position:50%;background-size:cover}.rest-generation-visual{background-image:url(/kamila-rest-books.webp);background-position:50%;background-size:cover}.visual-style-thumb{background-image:url(/camila-portrait.webp);background-position:top;background-size:cover}.visual-style-thumb-1{background-image:url(/kamila-title-castle.webp);background-position:50%;background-size:cover}.visual-style-thumb-2{background-image:url(/kamila-world-jungle.webp);background-position:50%;background-size:cover}.character-card>label:nth-of-type(3){grid-template-columns:44px minmax(0,1fr);align-items:center;gap:5px;font-size:.54rem;display:grid}.character-card>label:nth-of-type(3) select{min-height:24px;padding:2px 5px;font-size:.58rem}.chapter-screen .primary-button{color:#0000;width:44px;min-height:28px;box-shadow:none;background:0 0;border:0;align-self:center;margin:auto auto 0;padding:0;font-size:0;display:block}.chapter-screen .primary-button:after{content:"⌄";float:none;color:#fff;text-align:center;font-size:1.65rem;line-height:1;display:block}.home-screen{background:radial-gradient(at 50% 87%,#b0072b54,#0000 34%),radial-gradient(circle at 13% 84%,#8b0c2c59,#0000 13rem),radial-gradient(circle at 88% 78%,#9a082e54,#0000 13rem),linear-gradient(#06132c 0%,#08070e 70%,#100308 100%);border:1px solid #ff537bd1;border-radius:27px;justify-content:flex-start;min-height:100svh;padding:0 16px 20px;overflow:hidden;box-shadow:inset 0 0 28px #ff184f14,0 0 0 1px #19436838}.home-screen:before{opacity:1;filter:blur(2px);background:radial-gradient(at 14% 58%,#760822bf 0 10%,#0000 11%),radial-gradient(at 27% 72%,#ac082d94 0 11%,#0000 12%),radial-gradient(at 76% 68%,#a4072a9c 0 12%,#0000 13%),radial-gradient(at 91%,#6c0720b8 0 10%,#0000 11%),linear-gradient(#0000,#24010cd1);height:290px;inset:auto -45px -64px}.home-visual{z-index:0;width:390px;height:404px;box-shadow:none;opacity:1;background-image:url(/kamila-home.webp);background-position:top;background-repeat:no-repeat;background-size:390px 404px;border-radius:26px 26px 0 0;position:absolute;top:0;left:50%;transform:translate(-50%);-webkit-mask-image:none;mask-image:none}.home-copy{z-index:2;gap:9px;margin-top:487px;position:relative}.home-copy h1{letter-spacing:-.03em;text-shadow:0 3px 14px #000000e6,0 0 18px #ff2c531f;max-width:330px;font-size:1.78rem;font-weight:860;line-height:1.08}.home-copy p{color:#f5f6fa;text-shadow:0 3px 12px #000000db;max-width:326px;font-size:.88rem;font-weight:520;line-height:1.42}.home-screen .primary-button{z-index:2;background:linear-gradient(#ff315e 0%,#f30b42 68%,#e70439 100%);border:1px solid #ffd3dbe6;border-radius:22px;width:calc(100% - 6px);min-height:60px;margin:20px auto 57px;padding-inline:24px 18px;font-size:.95rem;position:relative;box-shadow:0 0 9px #ffffff2e,0 0 19px #ff164bd1,0 0 38px #ff164b47,inset 0 1px #ffffff47}.title-screen{min-height:100svh;padding:max(27px, env(safe-area-inset-top)) 16px 20px;background:radial-gradient(circle at 50% 41%,#9b0b4d26,#0000 13rem),radial-gradient(circle at 50% 78%,#19366026,#0000 16rem),linear-gradient(#07142f 0%,#03091a 65%,#050711 100%);border:1px solid #5e74a885;border-radius:27px;gap:9px;position:relative;overflow:hidden}.title-screen:after{background:radial-gradient(at 13% 77%,#580a3238,#0000 11rem),radial-gradient(at 89% 80%,#0c315733,#0000 12rem)}.title-screen>.secondary-button{z-index:6;background:#041735cc;border-radius:50%;width:38px;min-width:38px;height:38px;min-height:38px;margin-top:4px;position:relative;box-shadow:0 8px 24px #00000038}.title-screen:before{top:max(30px, env(safe-area-inset-top));background:linear-gradient(90deg,#ff174f 0 27%,#fa6892f2 27% 31%,#7185ae 31% 100%);width:150px;height:4px;box-shadow:0 0 13px #ff174f40}.title-visual{background-image:url(/kamila-title-castle.webp);background-position:bottom;background-repeat:no-repeat;background-size:120%;height:250px;min-height:250px;margin:-2px -16px 0;position:relative;overflow:visible;box-shadow:inset 0 -42px 34px #03091a,0 12px 34px #00000026}.title-visual:before{display:none}.title-visual:after{content:"•••";z-index:7;color:#fff;letter-spacing:.08em;background:#041735c7;border-radius:50%;place-items:center;width:38px;height:38px;font-size:.83rem;font-weight:900;display:grid;position:absolute;top:-51px;right:14px;box-shadow:0 8px 24px #00000038}.title-visual span{display:none}.title-screen h2{z-index:2;letter-spacing:-.035em;text-shadow:0 2px 15px #00000080;margin-top:2px;font-size:1.77rem;font-weight:850;line-height:1.06;position:relative}.title-screen label:first-of-type{z-index:2;margin-top:11px;position:relative}.title-screen label:first-of-type:after{content:"✦";color:#ffc06f;text-shadow:0 0 12px #ffaa4875;pointer-events:none;font-size:.92rem;position:absolute;bottom:18px;right:18px}.title-screen label:first-of-type input{background:linear-gradient(#470c30ed,#310825ed);border:1px solid #ff6e90f5;border-radius:18px;min-height:62px;padding:14px 47px 14px 18px;font-size:.98rem;font-weight:560;box-shadow:0 0 0 1px #ff295b47,0 0 15px #ff1850ad,0 0 34px #ff185033,inset 0 1px #ffffff1f}.title-screen label:nth-of-type(2){z-index:2;color:#a7b5cfa1;width:92%;margin:4px auto 0;font-size:.59rem;font-weight:640;position:relative}.title-screen label:nth-of-type(2) textarea{color:#dfe7f4bf;min-height:51px;max-height:51px;box-shadow:none;opacity:.72;background:#05152d6b;border-color:#3f69a13d;border-radius:11px;padding:9px 11px;font-size:.67rem;line-height:1.25}.title-screen label:nth-of-type(2) textarea:focus{opacity:1;background:#081b36d1;border-color:#ff346385;box-shadow:0 0 0 2px #ff174f14}.title-screen .primary-button{background:linear-gradient(#ff2856,#ef073e);border:1px solid #ff6d90d1;border-radius:20px;min-height:60px;margin-top:auto;margin-bottom:1px;font-size:.97rem;position:relative;box-shadow:0 0 16px #ff185099,0 0 34px #ff185033,inset 0 1px #ffffff3d}.title-screen .primary-button:before{content:"✦";color:#ffd36f;text-shadow:0 0 10px #ffb85380;font-size:.82rem;position:absolute;top:50%;left:calc(50% + 45px);transform:translateY(-53%)}.title-screen .primary-button:disabled{opacity:.72;filter:saturate(.75)}.story-screen{border:1px solid #7791c26b;border-radius:27px}.story-screen>*{min-width:0}.home-screen{border-color:#ff537bd1}.home-visual{background-position:50% 42%;background-size:cover;width:100%;height:650px;-webkit-mask-image:linear-gradient(#000 0 62%,#0000 100%);mask-image:linear-gradient(#000 0 62%,#0000 100%)}.home-brand{z-index:2;top:max(48px, env(safe-area-inset-top));white-space:nowrap;text-shadow:0 3px 18px #020713,0 0 28px #010819cc;display:grid}.home-brand span{font-size:3.25rem}.home-brand small{margin-top:8px;font-size:.94rem}.home-copy{margin-top:514px}.home-copy h1{max-width:320px;font-size:1.8rem}.home-copy p{max-width:322px;font-size:.9rem}.home-screen .primary-button{margin-top:24px;margin-bottom:24px}.title-visual{background-position:50% 34%;background-size:100%;height:270px;min-height:270px;box-shadow:inset 0 -32px 28px #03091a}.title-screen label:nth-of-type(2){color:#bdc8dc;opacity:1;width:100%;margin-top:9px;font-size:.74rem}.title-screen label:nth-of-type(2) textarea{color:#eef3fc;opacity:1;background:#081b36c7;min-height:74px;max-height:none;font-size:.8rem;line-height:1.4}.characters-screen h2,.world-screen h2{font-size:1.6rem;line-height:1.12}.characters-screen .eyebrow,.world-screen .eyebrow{opacity:0;pointer-events:none;position:absolute}.characters-screen .screen-subtitle,.world-screen .screen-subtitle{max-width:322px;font-size:.8rem;line-height:1.4}.character-grid{gap:12px}.character-card{grid-template-columns:112px minmax(0,1fr);gap:6px 10px}.character-card:before{background-position:50% 25%;border-radius:13px;grid-row:1/span 4;width:112px;min-height:151px}.character-card label{font-size:.72rem}.character-card input,.character-card textarea{font-size:.8rem}.character-card textarea{min-height:64px;max-height:none}.character-card>label:nth-of-type(3){grid-template-columns:40px minmax(0,1fr);font-size:.62rem}.character-card>label:nth-of-type(3) select{min-height:28px;font-size:.67rem}.character-card>.character-portrait{z-index:1;pointer-events:none;width:112px;height:151px;position:absolute;top:7px;left:7px}.character-portrait .reference-preview{border:0;border-radius:13px;width:100%;height:100%;min-height:0}.character-portrait img{object-position:center 25%}.character-card>.character-reference-editor{pointer-events:auto;grid-column:1/-1;width:auto;height:auto;margin-top:3px;position:static}.character-reference-editor summary{color:#bdc8dc;cursor:pointer;background:#0a203fb8;border:1px solid #5d8ccc40;border-radius:10px;justify-content:space-between;align-items:center;min-height:34px;padding:7px 10px;font-size:.72rem;font-weight:650;list-style:none;display:flex}.character-reference-editor summary::-webkit-details-marker{display:none}.character-reference-editor summary span{color:#f1dde5;font-size:.95rem}.character-reference-editor[open] summary{border-color:#ff4f7880;margin-bottom:10px}.character-card .character-reference-editor>div{width:auto;height:auto;margin-bottom:10px;position:static}.reference-fields{grid-template-columns:1fr;gap:8px;display:grid}.character-card .reference-fields select{min-height:40px;font-size:.8rem}.character-card .reference-fields input[type=file]{opacity:1;width:100%;height:auto;min-height:42px;font-size:.7rem;position:static}.character-card .character-reference-editor small{color:#bdc8dc;margin:6px 0;font-size:.7rem;display:block}.character-card .character-reference-editor .reference-preview{width:100%;height:144px;min-height:0}.character-card .character-reference-editor .text-button{color:#f7bdcc;background:#ff164f1a;border-radius:9px;width:auto;height:auto;min-height:32px;margin-top:5px;padding:7px 10px;font-size:.72rem;position:static}.character-card .character-reference-editor .text-button:after{content:none}.characters-screen>.add-character-button{min-height:46px;font-size:.84rem}.world-visual{background-position:50% 45%;border:1px solid #e4dbcf85;min-height:164px}.world-screen>label:first-of-type{font-size:.76rem}.world-screen>label:first-of-type textarea{min-height:86px;max-height:none;font-size:.82rem}.visual-style-fieldset legend{font-size:.76rem}.visual-style-grid{gap:7px}.visual-style-card{border-radius:12px;min-width:0;padding:5px}.visual-style-card strong{white-space:normal;min-height:25px;font-size:.64rem;line-height:1.2}.visual-style-thumb{background-position:50% 25%;border-radius:8px;height:46px}.visual-style-thumb-1{background-position:50% 36%}.visual-style-thumb-2{background-position:50% 45%}.visual-style-thumb-3{background-image:url(/kamila-generation-book.webp);background-position:50% 58%}.visual-style-thumb-4{background-image:url(/kamila-home.webp);background-position:50% 42%}.generation-visual{height:272px;min-height:272px;box-shadow:none;background-position:50%;background-size:100%;-webkit-mask-image:linear-gradient(#0000,#000 12% 88%,#0000);mask-image:linear-gradient(#0000,#000 12% 88%,#0000)}.generation-screen h2{margin-top:24px;font-size:1.62rem}.generation-screen .screen-subtitle,.rest-generation-screen .screen-subtitle{font-size:.8rem;line-height:1.4}.generation-checklist{border-radius:18px;gap:10px;padding:18px 16px}.generation-checklist div{font-size:.83rem}.generation-checklist span{flex-shrink:0;width:21px;height:21px}.generation-screen .primary-button{min-height:54px;margin-top:10px}.chapter-screen{padding-inline:0}.chapter-hero img,.chapter-hero-fallback{object-fit:cover;object-position:center 30%;background-position:50% 30%;height:286px;min-height:286px}.chapter-copy{font-size:.95rem;line-height:1.58}.approval-actions{gap:12px;margin-top:24px}.approval-option,.approval-actions .primary-button{border-radius:18px;min-height:70px;font-size:.93rem}.approval-screen .screen-subtitle{font-size:.82rem;line-height:1.4}.rest-generation-screen h2{margin-top:32px;font-size:1.62rem}.rest-generation-visual{height:292px;min-height:292px;box-shadow:none;background-position:50%;background-size:100%;-webkit-mask-image:linear-gradient(#0000,#000 12% 88%,#0000);mask-image:linear-gradient(#0000,#000 12% 88%,#0000)}button:focus-visible,summary:focus-visible{outline-offset:4px;outline:2px solid #ffd36f}@media (max-width:370px){.character-card{grid-template-columns:94px minmax(0,1fr)}.character-card:before,.character-card>.character-portrait{width:94px}.home-copy{margin-top:490px}}.screen-artwork{object-fit:cover;pointer-events:none;width:100%;height:100%;min-height:0;display:block;position:absolute;inset:0}.home-visual,.title-visual,.world-visual,.generation-visual,.rest-generation-visual,.chapter-hero-fallback{background-image:none}.home-visual .screen-artwork{object-position:center 42%}.title-visual .screen-artwork{object-position:center 34%}.world-visual .screen-artwork{object-position:center 45%}.generation-visual .screen-artwork,.rest-generation-visual .screen-artwork{object-position:center 50%}.chapter-hero-fallback{position:relative;overflow:hidden}.chapter-hero-fallback .screen-artwork{object-position:center 30%}.character-card:first-child:before,.character-card:nth-child(2):before{background-image:none}.character-portrait{border-radius:13px;overflow:hidden}.character-portrait .screen-artwork{object-position:center 25%}.character-portrait .reference-preview{z-index:1;position:absolute;inset:0}.title-screen label:nth-of-type(2) textarea,.world-screen>label:first-of-type textarea{resize:vertical;height:86px;min-height:86px;font-weight:500}.world-screen .screen-actions{margin-top:auto}.approval-sparkles{margin-top:clamp(50px,8svh,76px)}.access-screen{background:radial-gradient(at 50% 26%,#9f0f413b,#0000 24rem),linear-gradient(#07142f,#030916 72%,#120613);gap:16px;padding-inline:24px}.access-screen>.secondary-button{position:absolute;top:28px;left:18px}.access-brand{justify-items:center;gap:8px;margin:0 0 10px;display:grid}.access-heart{color:#ff416d;width:62px;height:62px;box-shadow:var(--glow);background:#ff164f1a;border:1px solid #ff6b9c;border-radius:20px;place-items:center;font-size:2rem;display:grid}.access-brand strong{letter-spacing:-.04em;font-family:Georgia,Times New Roman,serif;font-size:3rem;font-style:italic}.access-brand small{color:#ffc4d5;letter-spacing:.3em;font-size:.75rem;font-weight:700}.access-screen .eyebrow{color:#ff9fbc;margin:8px 0 0;font-size:.6rem}.access-screen h2{font-size:1.8rem}.access-copy{color:#c4cfe2;text-align:center;margin:0;font-size:.88rem;line-height:1.6}.access-screen form{box-shadow:var(--shadow);background:#081a36d1;border:1px solid #ff6b9c3d;border-radius:22px;gap:20px;margin-top:6px;padding:22px 18px}.access-screen input{min-height:52px;font-size:16px}.access-screen form .primary-button{margin-top:0;font-size:.88rem}.access-footnote{color:#abbad4;text-align:center;margin:0;font-size:.72rem;line-height:1.5}.story-studio-shell>.secondary-button{color:#ffd7e2;background:#101e3c;border:1px solid #ff6b9c66;border-radius:16px;width:calc(100% - 32px);min-height:48px;margin:12px 16px 20px;padding:12px 18px;font-size:.86rem;font-weight:700;display:block}.story-studio-shell>.secondary-button:disabled{opacity:.5;cursor:not-allowed}.production-status{color:#473426;background:#fff8ed;border:1px solid #c6aa79;border-radius:14px;margin:1rem 0;padding:1rem}.production-status p{margin:.4rem 0}.production-status progress{accent-color:#927344;width:100%}.production-status small{display:block}.production-outputs video{background:#171717;width:100%;max-height:70vh}.premium-pilot-import{background:#101b31;border:1px solid #c6aa7966;border-radius:16px;margin:16px;padding:16px;position:relative}.premium-pilot-import h2{margin:0;font-size:1.25rem}.premium-pilot-import p{margin:0;line-height:1.5}.premium-pilot-import .primary-button{width:100%;min-height:54px;margin:4px 0;padding:12px}.premium-pilot-import input[hidden]{display:none}.premium-pilot-import .premium-import-status{color:#fff1cb;background:#293247;border:1px solid #c6aa79;border-radius:10px;padding:12px;font-weight:600}.story-library{gap:1rem;padding:0;list-style:none;display:grid}.story-library li{background:#14172b;border:1px solid #a88d61;border-radius:14px;padding:1rem}.story-library h3{margin:0 0 .8rem}.story-library a{color:#f5d08b;text-decoration:underline}.panel-studio{padding:0}.panel-studio .story-studio-shell{width:min(100%,960px);box-shadow:none;border:0;border-radius:0;overflow:visible}.central-panel{min-height:100svh;padding-bottom:calc(116px + env(safe-area-inset-bottom));color:#fff;background:radial-gradient(at 0 45%,#59112622,#0000 45%),#020711;outline:none;position:relative}.central-panel button,.central-panel a{-webkit-tap-highlight-color:transparent}.central-panel button{cursor:pointer;color:inherit}.central-panel a{color:inherit;text-decoration:none}.central-panel :is(button,a):focus-visible{outline-offset:5px;outline:3px solid #ffd36f}.central-panel svg{flex-shrink:0;width:26px;height:26px}.panel-hero{background-image:linear-gradient(90deg,#020711e8 0%,#02071160 39%,#0000 68%),linear-gradient(#0000 62%,#020711),url(/kamila-home.webp);background-position:50%,50%,50% 29%;background-size:cover;border-radius:0 0 30px 30px;height:clamp(245px,42vw,390px);padding:clamp(34px,6vw,66px) clamp(20px,5vw,48px);position:relative}.panel-brand{text-shadow:0 3px 24px #000a;width:max-content;position:relative}.panel-brand h1,.panel-wordmark{letter-spacing:-.055em;font-family:Georgia,Times New Roman,serif;font-weight:700}.panel-brand h1{font-size:clamp(45px,7.5vw,76px);line-height:1}.panel-brand h1 span,.panel-wordmark span{color:#ff2865;vertical-align:top;text-shadow:0 0 20px #ff164faa;margin:.08em 0 0 .08em;font-family:sans-serif;font-size:.7em;display:inline-block}.panel-brand>div{letter-spacing:.35em;margin:5px 0 0 15%;font-size:clamp(13px,2.2vw,21px)}.panel-brand p{color:#ffd381;letter-spacing:.24em;margin:21px 0 0;font-size:clamp(10px,1.7vw,15px);font-weight:700;line-height:1.85}.panel-crown{color:#ffd36f;background:#060b1499;border:1px solid #ffe2aaa0;border-radius:50%;place-items:center;width:45px;height:45px;font-size:30px;display:grid;position:absolute;top:28px;right:clamp(18px,4vw,42px)}.panel-content{padding:0 clamp(16px,5vw,48px);position:relative}.panel-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(9px,2vw,20px);margin:-31px 0 30px;display:grid}.panel-action{isolation:isolate;aspect-ratio:1.12;text-align:left;background:#07101e;border:1px solid #9aafcf88;border-radius:clamp(17px,3vw,28px);flex-direction:column;justify-content:flex-end;min-width:0;padding:clamp(11px,2.1vw,20px);display:flex;position:relative;overflow:hidden;box-shadow:0 14px 30px #0006}.panel-action .action-art{z-index:-1;background-position:50% 42%;background-size:cover;position:absolute;inset:0}.panel-action .action-art:after{content:"";background:linear-gradient(#0000,#02071130 45%,#01040bf5 100%);position:absolute;inset:0}.action-new{border-color:#ff417fa6;box-shadow:0 0 25px #ff164f20,inset 0 0 20px #ff164f11}.action-new .action-art{background-image:url(/kamila-generation-book.webp);background-position:50% 48%}.action-new .action-art:after{background:linear-gradient(#69092620 40%,#51001bf5)}.action-characters .action-art{background-image:url(/camila-portrait.webp),url(/kaue-portrait.webp);background-position:0 27%,right 27%;background-repeat:no-repeat;background-size:62%,60%}.action-world .action-art{background-image:url(/kamila-world-jungle.webp)}.action-caption{letter-spacing:-.04em;text-shadow:0 2px 8px #000;justify-content:space-between;align-items:center;gap:4px;font-size:clamp(12px,2.5vw,23px);font-weight:750;line-height:1.15;display:flex}.action-caption b{background:#28507a90;border:1px solid #e7f0ff60;border-radius:50%;flex:none;place-items:center;width:clamp(23px,4vw,40px);height:clamp(23px,4vw,40px);font-size:clamp(23px,3.5vw,34px);font-weight:400;display:grid}.action-new .action-caption b{background:#ec0a49;border-color:#ff96b090}.panel-action>small{color:#e7d4ba;letter-spacing:.04em;margin-top:5px;font-size:clamp(9px,1.3vw,12px)}.panel-section-title{justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px;display:flex}.panel-section-title :is(h1,h2){letter-spacing:-.035em;text-align:left;margin:0;font-size:clamp(22px,3.6vw,31px);font-weight:750;line-height:1.15}.panel-section-title button{color:#ffd381;white-space:nowrap;background:0 0;border:0;min-height:44px;padding:4px 0 4px 8px;font-size:clamp(12px,2vw,17px)}.panel-section-title button span{vertical-align:-2px;padding-left:6px;font-size:25px}.panel-stories{margin-bottom:30px}.panel-story-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,2vw,20px);display:grid}.panel-story{background:linear-gradient(145deg,#17213c,#050911 72%);border:1px solid #7f96b76b;border-radius:20px;flex-direction:column;min-width:0;min-height:215px;display:flex;position:relative;overflow:hidden}.panel-cover-placeholder{color:#b4b9d2;background:radial-gradient(#79244a40,#0000 72%);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;min-height:85px;padding:22px 10px 14px;display:flex}.panel-cover-placeholder svg{color:#e2afc8;width:34px;height:34px}.panel-story-copy{background:linear-gradient(#0000,#03060cf7);padding:clamp(11px,2vw,20px)}.panel-story h3{letter-spacing:-.035em;overflow-wrap:anywhere;margin:0 0 8px;font-size:clamp(13px,2.4vw,22px);line-height:1.24}.panel-story p{color:#bac1d4;margin:0 0 13px;font-size:clamp(10px,1.5vw,13px);line-height:1.45}.panel-story-copy>span{color:#ff9dbb;justify-content:space-between;align-items:center;gap:3px;font-size:clamp(10px,1.6vw,14px);display:flex}.panel-story-copy b{font-size:24px;line-height:.7}.panel-create{text-align:center;background:#02071170;border:1px dashed #53618399;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-width:0;min-height:215px;padding:18px 10px;font-size:clamp(13px,2.3vw,19px);line-height:1.35;display:flex;color:#b3b9d4!important}.panel-create>span{color:#ff9eb7;background:radial-gradient(circle,#7d1a3b55,#220d1c66);border:1px solid #ee5d8d77;border-radius:50%;place-items:center;width:clamp(44px,7vw,64px);height:clamp(44px,7vw,64px);display:grid}.panel-create svg{width:28px;height:28px}.panel-empty,.panel-stories [role=status],.panel-stories [role=alert]{color:#cbd1e2;background:#10182a70;border:1px solid #7083a533;border-radius:14px;margin:0 0 16px;padding:16px;font-size:14px;line-height:1.55}.panel-stories [role=alert] button{background:#731b3d;border:1px solid #ff8fac;border-radius:10px;min-height:44px;margin-top:8px;padding:8px 12px}.panel-resource-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,2vw,18px);display:grid}.panel-resource{--resource-color:#ff5388;border:1px solid color-mix(in srgb, var(--resource-color), transparent 50%);background:radial-gradient(ellipse at 50% 12%, color-mix(in srgb, var(--resource-color), transparent 88%), transparent 80%), #050912;text-align:center;border-radius:19px;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-width:0;min-height:123px;padding:14px 5px;display:flex}.panel-resource svg{width:clamp(25px,5vw,39px);height:clamp(25px,5vw,39px);color:var(--resource-color);filter:drop-shadow(0 0 10px color-mix(in srgb, var(--resource-color), transparent 65%))}.panel-resource>span{font-size:clamp(10px,1.8vw,16px);line-height:1.3}.panel-resource small{color:#aab2c8;font-size:9px}.resource-styles{--resource-color:#b37cff}.resource-learn{--resource-color:#5ac7ff}.resource-help{--resource-color:#ffd38a}.panel-bottom-nav{z-index:20;width:min(100%,960px);min-height:calc(83px + env(safe-area-inset-bottom));padding:9px 12px calc(10px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(145deg,#101322f5,#020711fa 70%);border:1px solid #8c97b255;border-bottom:0;border-radius:28px 28px 0 0;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:4px;display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%);box-shadow:0 -12px 30px #0006}.panel-bottom-nav button{color:#9ca9c8;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;min-height:56px;padding:3px 0;display:flex;position:relative}.panel-bottom-nav button>span{font-size:clamp(10px,1.8vw,14px)}.panel-bottom-nav button[aria-current=page]{color:#ff6795}.panel-bottom-nav button[aria-current=page] svg{color:#ff1654;filter:drop-shadow(0 0 8px #ff164f80)}.panel-bottom-nav button[aria-current=page]:after{content:"";background:#ff1654;border-radius:2px;width:26px;height:2px;position:absolute;bottom:-7px;box-shadow:0 0 9px #ff1654}.panel-bottom-nav .panel-nav-create{color:#fff;background:linear-gradient(145deg,#ff1460,#ed003f);border:1px solid #ff9fb9;border-radius:50%;justify-self:center;width:clamp(55px,8vw,72px);height:clamp(55px,8vw,72px);padding:0;box-shadow:0 0 28px #ff164f66,inset 0 1px 3px #ffd8e7aa}.panel-nav-create svg{width:32px;height:32px}.panel-inner-header{min-height:106px;padding:max(22px, env(safe-area-inset-top)) clamp(16px, 5vw, 48px) 22px;background:radial-gradient(at 70% 0,#5c1c3d55,#0000 65%);align-items:center;gap:18px;display:flex}.panel-inner-header>button{background:#121b2d;border:1px solid #8f9bb555;border-radius:50%;width:44px;height:44px;font-size:32px;line-height:1}.panel-wordmark{font-size:30px}.panel-wordmark small{letter-spacing:.35em;margin:3px 0 0 14%;font-family:ui-sans-serif,sans-serif;font-size:9px;display:block}.panel-coming{text-align:center;max-width:490px;margin:auto;padding:35px 0}.panel-feature-icon{background:radial-gradient(circle,#71345a66,#081121);border:1px solid #a77abb77;border-radius:26px;place-items:center;width:100px;height:100px;margin:0 auto 24px;display:grid}.panel-feature-icon svg{color:#e9b3cd;width:48px;height:48px}.panel-kicker{color:#ffd381;letter-spacing:.2em;margin-bottom:12px;font-size:11px}.panel-coming h1{margin:0 0 20px;font-size:clamp(29px,5vw,40px)}.panel-coming>p:not(.panel-kicker),.panel-help p{color:#bdc5d9;font-size:15px;line-height:1.65}.panel-solid{background:linear-gradient(#ff265b,#da0b40);border:1px solid #ff809f;border-radius:16px;width:100%;min-height:50px;margin-top:16px;padding:13px 20px;font-weight:700;box-shadow:0 8px 25px #ff164f22}.panel-solid span{float:right}.panel-help{background:linear-gradient(135deg,#261b1d80,#08101c);border:1px solid #a57a4344;border-radius:20px;margin-top:28px;padding:22px;scroll-margin-top:20px}.panel-help h2{text-align:left;margin:0 0 16px;font-size:24px}.panel-help p:last-child{margin-bottom:0}@media (min-width:600px){.panel-studio{padding:20px 20px 0}.panel-studio .story-studio-shell,.panel-hero{border-radius:30px 30px 0 0}.panel-action{aspect-ratio:1.3}.panel-story,.panel-create{min-height:255px}.panel-resource{min-height:145px}.panel-bottom-nav{width:min(100% - 40px,960px)}}@media (max-width:360px){.panel-content{padding:0 13px}.panel-actions{gap:7px}.panel-action{aspect-ratio:.85;padding:10px 8px}.action-caption{font-size:12px}.action-caption b{display:none}.panel-story-grid,.panel-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:480px){.action-characters .action-caption b{display:none}}.characters-screen{gap:18px;padding:28px 18px 26px}.characters-screen h2{margin:8px auto 0;font-size:clamp(25px,7vw,30px);line-height:1.16}.characters-screen .screen-subtitle{color:#bec6dc;max-width:330px;margin:0 auto;font-size:14px;line-height:1.55}.character-fields{border:0;min-width:0;margin:0;padding:0}.characters-screen .character-grid{gap:18px;display:grid}.characters-screen .character-card{background:radial-gradient(at 0 0,#64274433,#0000 55%),linear-gradient(145deg,#131b30,#080f1f);border:1px solid #7e8bab50;border-radius:23px;flex-direction:column;gap:16px;min-width:0;min-height:0;padding:18px;display:flex;box-shadow:0 12px 36px #0003}.characters-screen .character-card:before,.characters-screen .character-card:after{content:none;display:none}.characters-screen .character-card>*{grid-column:auto}.characters-screen .character-card .card-heading{color:#f7d3e2;min-height:28px;font-size:14px;display:flex}.characters-screen .card-heading strong{letter-spacing:.01em;font-size:14px;font-weight:750;display:block}.characters-screen .card-heading .text-button{color:#ffa0bc;border:0;border-radius:10px;flex-shrink:0;min-height:44px;padding:8px;font-size:12px}.characters-screen .character-card label{color:#d7deed;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0;margin:0;font-size:13px;font-weight:650;line-height:1.4;display:grid}.characters-screen .character-card :is(input,textarea,select){color:#f8faff;background:#060d1b;border:1px solid #7589b14d;border-radius:12px;width:100%;min-width:0;min-height:48px;margin:0;padding:12px;font-size:16px;font-weight:450;line-height:1.4}.characters-screen .character-card textarea{resize:vertical;height:100px;min-height:100px;max-height:none}.characters-screen .character-card :is(input,textarea,select):focus{outline-offset:2px;border-color:#ff77a1;outline:2px solid #ff528a}.characters-screen .character-card>.character-photo-editor{pointer-events:auto;border-top:1px solid #7589b133;width:100%;height:auto;min-height:0;margin:0;padding:16px 0 0;display:block;position:static}.characters-screen .character-photo-editor>.character-photo-toolbar{grid-template-columns:minmax(0,1fr);gap:12px;width:100%;height:auto;padding:0;display:grid;position:static}.characters-screen .character-card input.character-photo-input{display:none}.characters-screen .character-photo-button{color:#ffe9f0;cursor:pointer;background:linear-gradient(145deg,#7b254aaa,#36182e);border:1px solid #ff6d9c80;border-radius:13px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:48px;padding:12px 16px;font-size:15px;font-weight:750;display:flex;box-shadow:inset 0 1px #ffbbd422}.characters-screen .character-photo-button>span{font-size:23px;line-height:.8}.characters-screen .character-photo-hint{color:#9da9c4;margin:10px 0 0;font-size:11px;line-height:1.6}.characters-screen .character-card .character-photo-empty{color:#bcc7dd;background:#071020;border:1px dashed #7589b14d;border-radius:13px;align-items:center;gap:12px;width:100%;min-height:78px;margin:14px 0 0;padding:14px;position:static;inset:auto;display:flex!important}.character-photo-empty>span{color:#f4adca;background:#47223a;border-radius:12px;flex-shrink:0;place-items:center;width:38px;height:38px;font-size:26px;display:grid}.character-photo-empty p{margin:0;font-size:13px;line-height:1.5}.characters-screen .character-card .character-photo-empty small{color:#9da9c4;margin:4px 0 0;font-size:11px;display:block}.characters-screen .character-card .character-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;height:auto;margin:16px 0 0;position:static;display:grid!important}.character-photo-item{background:#070e1b;border:1px solid #7589b14d;border-radius:13px;flex-direction:column;min-width:0;margin:0;display:flex;overflow:hidden}.characters-screen .character-card .character-photo-item .reference-preview{width:100%;height:150px;min-height:0;box-shadow:none;border:0;border-radius:0;margin:0;display:block;position:relative}.characters-screen .character-card .character-photo-item img{object-fit:contain;background:#040913;width:100%;height:100%;min-height:0;position:static}.character-photo-item figcaption{color:#d1d9e9;padding:10px 10px 0;font-size:11px;line-height:1.4}.characters-screen .character-card .character-photo-item small{color:#dda6bf;margin:4px 0 0;font-size:10px;display:block}.characters-screen .character-remove-photo{color:#ff9dbb;cursor:pointer;background:#6d26422b;border:0;border-radius:9px;min-height:44px;margin:6px;padding:8px 4px;font-size:11px}.character-photo-unavailable{color:#ffd391;padding:12px;font-size:12px;line-height:1.5}.characters-screen .add-character-button{color:#ecc5d8;cursor:pointer;background:#192035;border:1px dashed #9583a47a;border-radius:15px;width:100%;min-height:50px;margin:18px 0 0;padding:12px 14px;font-size:14px;font-weight:650;display:block}.characters-screen .add-character-button:before{content:"+";color:#ff8fb5;margin-right:8px;font-size:20px}.character-save-status{color:#a5b2cb;text-align:center;margin:0;font-size:12px;line-height:1.6}.character-feedback{color:#ffe1ed;background:#40213855;border:1px solid #a47a9855;border-radius:12px;margin:0;padding:12px;font-size:13px;line-height:1.6}.character-actions{grid-template-columns:1fr;gap:12px;margin-top:auto;display:grid}.characters-screen .primary-button,.character-save-button{cursor:pointer;border-radius:16px;width:100%;min-height:52px;margin:0;padding:14px 18px;font-size:15px;font-weight:750}.character-save-button{color:#e6eafa;background:linear-gradient(145deg,#29314b,#151e33);border:1px solid #9baac460}.characters-screen button:disabled,.characters-screen fieldset:disabled{opacity:.6;cursor:wait}.characters-screen button:focus-visible{outline-offset:3px;outline:3px solid #ffd381}@media (max-width:360px){.characters-screen{padding-inline:13px}.characters-screen .character-card{padding:14px}}.characters-screen .character-card>label:nth-of-type(3){grid-template-columns:minmax(0,1fr);font-size:13px}.characters-screen .character-card>label:nth-of-type(3) select{min-height:48px;font-size:16px}.title-screen label:nth-of-type(2){color:#d1d9e9;width:100%;font-size:13px}.title-screen label:nth-of-type(2) textarea{opacity:1;color:#f4f6ff;background:#080f20;border:1px solid #7589b160;height:180px;min-height:180px;max-height:none;padding:14px;font-size:16px;line-height:1.6}.world-screen>label:first-of-type textarea{height:140px;min-height:140px;font-size:16px;line-height:1.6}.draft-save-actions{z-index:2;gap:10px;width:100%;margin:12px 0 0;display:grid;position:relative}.draft-save-actions .character-save-button,.production-review .character-save-button,.world-reference-editor .character-save-button{border-radius:14px;width:100%;min-height:50px;padding:12px;font-size:15px}.draft-save-actions .notice{margin:0}.world-reference-area{width:100%}.world-reference-editor{background:#0c1427;border:1px solid #7589b14d;border-radius:20px;gap:12px;padding:16px;display:grid}.world-reference-editor input.world-photo-input{display:none}.world-reference-editor>p{color:#b9c6df;margin:0;font-size:12px;line-height:1.5}.world-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.world-reference-grid figure{border:1px solid #7589b144;border-radius:12px;min-width:0;margin:0;overflow:hidden}.world-reference-grid .reference-preview{border:0;border-radius:0;width:100%;height:145px;min-height:0}.world-reference-grid img{object-fit:contain;height:100%;min-height:0}.world-reference-grid figcaption{color:#c5d1e7;padding:8px;font-size:11px}.production-review{background:linear-gradient(145deg,#1b2037,#080f20);border:1px solid #7589b14d;border-radius:20px;gap:14px;width:100%;min-width:0;padding:18px;display:grid}.production-review h3{color:#ffe1ee;overflow-wrap:anywhere;margin:0;font-size:20px}.production-review p,.generation-safety p{color:#c2cde2;margin:0;font-size:13px;line-height:1.6}.production-review .review-style{color:#e8a3c3}.production-review ul{gap:12px;margin:0;padding:0;list-style:none;display:grid}.production-review li{color:#d9e1f3;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;font-size:13px;display:grid}.production-review li>span:first-child{color:#ffc6de}.production-review li strong{color:#d8b6cb;font-size:11px}.production-review details{border-top:1px solid #7589b144;padding-top:12px}.production-review summary{cursor:pointer;color:#ffcedf;min-height:44px;font-size:14px}.production-review h4{margin:16px 0 8px;font-size:14px}.production-review .review-story{white-space:pre-wrap;overflow-wrap:anywhere}.review-edit-button{color:#f0c7dd;cursor:pointer;background:#162139;border:1px solid #7589b14d;border-radius:12px;width:100%;min-height:44px;padding:10px;font-size:13px}.generation-safety{background:#48213a44;border:1px solid #c68aa850;border-radius:16px;padding:16px}.generation-safety strong{color:#ffd8e7;margin-bottom:8px;font-size:14px;display:block}.generation-screen{gap:16px}.generation-screen .eyebrow{opacity:1;font-size:12px;position:static}.generation-screen .primary-button{min-height:52px;font-size:15px}.draft-save-actions button:disabled,.production-review button:disabled{opacity:.6;cursor:wait}.story-home-footer{justify-content:flex-end;padding:16px 22px 24px;display:flex}.story-home-link{color:#c5b6cd;font:inherit;cursor:pointer;background:0 0;border:0;padding:12px 0 12px 16px;font-size:.78rem}.story-home-link:hover{color:#fff0d4}.story-home-link:focus-visible{outline-offset:4px;border-radius:8px;outline:2px solid #e7b979}.story-home-link:disabled{opacity:.5;cursor:wait}.live-generation-screen .generation-visual{animation:4s ease-in-out infinite story-book-float}@keyframes story-book-float{50%{transform:translateY(-8px)}}@media (prefers-reduced-motion:reduce){.live-generation-screen .generation-visual{animation:none}}.chapter-composer{color:#e8eaf4;background:#0c1427;border:1px solid #7589b14d;border-radius:20px;gap:16px;margin:20px;padding:22px;display:grid}.chapter-composer h2,.chapter-composer p{margin:0}.chapter-composer p{font-size:14px;line-height:1.6}.chapter-composer label{gap:8px;font-size:14px;display:grid}.chapter-composer textarea,.chapter-composer input,.chapter-composer select{box-sizing:border-box;color:#f4f6ff;width:100%;min-height:44px;font:inherit;background:#080f20;border:1px solid #7589b160;border-radius:12px;padding:12px}.chapter-composer textarea{resize:vertical;font-family:monospace}.chapter-composer pre{max-height:300px;font-size:12px;overflow:auto}.chapter-settings{grid-template-columns:1fr 1fr;gap:16px;display:grid}.chapter-script-preview{overflow-wrap:anywhere}.chapter-script-preview ol{gap:16px;padding-left:24px;display:grid}.chapter-script-preview p{white-space:pre-wrap}.chapter-visual-direction{color:#aebad3}.chapter-composer summary{cursor:pointer;min-height:44px}.chapter-composer button:disabled{opacity:.55;cursor:default}.chapter-composer .secondary-button{color:#e8eaf4;border-radius:12px;width:100%;min-height:44px;font-size:14px}.chapter-composer .secondary-button:before{content:none}@media (max-width:420px){.chapter-settings{grid-template-columns:1fr}.chapter-composer{margin:12px;padding:16px}}.story-screen .reference-guidance{color:#b7c3da;text-align:left;margin:10px 0;font-size:13px;line-height:1.6}.story-generation-controls{text-align:left;gap:14px;margin-top:20px;display:grid}.story-generation-controls .secondary-button{color:#e8eaf4;border-radius:12px;min-height:44px;padding:10px 14px;font-size:14px}.story-generation-controls .secondary-button:before{content:none}.story-generation-controls .chapter-settings{flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:10px;display:flex}.story-generation-controls .chapter-settings>label,.story-generation-controls .duration-selector{background:#17233c;border:1px solid #33425c;border-radius:16px;width:auto;min-width:120px;padding:8px 12px;font-size:13px}.story-generation-controls select{color:#f4f5fa;background:0 0;border:0;width:auto;min-height:36px;padding:6px}.story-generation-controls select option{background:#17233c}.story-generation-controls summary{cursor:pointer;padding:6px;list-style:none}.story-generation-controls details input[type=range]{accent-color:#e773b9;width:200px;max-width:100%}.story-generation-controls .duration-labels{justify-content:space-between;font-size:12px;display:flex}.story-generation-controls textarea{color:#f4f5fa;background:#111d33;border:1px solid #33425c;border-radius:14px;width:100%;min-height:74px;margin-top:7px;padding:12px;display:block}.story-generation-controls p{color:#b7c3da;font-size:13px;line-height:1.5}.story-generation-controls input[type=checkbox]{width:auto;margin-right:8px}.story-generation-settings{justify-content:center;align-items:flex-start;gap:10px;display:flex}.story-duration-menu,.story-quality-control{background:#17233c;border:1px solid #33425c;border-radius:16px;min-width:110px;padding:6px 12px}.story-duration-menu{position:relative}.story-duration-menu summary{text-align:center;justify-content:center;align-items:center;gap:12px;min-height:36px;display:flex}.story-duration-popover{z-index:5;background:#17233c;border:1px solid #46516a;border-radius:16px;width:230px;padding:18px;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 12px 32px #0008}.story-duration-popover label{font-size:13px}.story-duration-popover input{margin-top:18px;display:block}.story-duration-stops,.story-duration-endpoints{color:#9cabc3;justify-content:space-between;font-size:12px;display:flex}.story-duration-stops .is-selected{color:#fff}.story-quality-control select{margin:0}.story-time-control{gap:4px;display:grid}.story-time-label{color:#c8d1e2;padding-left:10px;font-size:12px}.story-generation-settings{align-items:end}.story-generation-controls select.story-duration-menu{background:#17233c;border:1px solid #33425c;max-width:170px;padding:12px}.story-quality-control select{max-width:170px}.story-budget-summary{gap:6px;display:grid}.story-budget-summary p{margin:0}.story-budget-summary .secondary-button{justify-self:start;padding:6px 10px;font-size:12px}.story-generation-settings{flex-wrap:wrap}.simple-creation-screen h2{max-width:290px;margin-inline:auto;line-height:1.2}.simple-creation-screen .generation-visual{height:clamp(280px,42svh,360px);min-height:0;margin-block:0}.simple-creation-screen .generation-visual .screen-artwork{object-fit:contain;object-position:center}.simple-creation-screen .story-generation-controls{margin-top:0}.simple-creation-screen .story-generation-settings{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:12px;display:grid}.simple-creation-screen .story-time-control,.simple-creation-screen .story-quality-control{background:0 0;border:0;gap:6px;min-width:0;padding:0;display:grid}.simple-creation-screen .story-generation-settings label>span{color:#c8d1e2;padding-left:4px;font-size:12px}.simple-creation-screen .story-generation-settings select{background:#17233c;border:1px solid #33425c;border-radius:14px;width:100%;max-width:none;min-height:50px;margin:0;padding:10px;font-size:15px}.panel-story-grid{align-items:start}.panel-story-card{min-width:0}.panel-story-edit{color:#f0c7dd;justify-content:center;align-items:center;min-height:44px;margin-top:6px;font-size:13px;display:flex}.panel-story-artwork{position:relative}.panel-story-cover{aspect-ratio:4/3;background:#080f1e;width:100%;display:block;position:relative;overflow:hidden}.panel-story-cover>img{object-fit:cover;width:100%;height:100%;display:block}.panel-story-cover .panel-cover-placeholder{text-align:center;width:100%;height:100%;min-height:0;padding:18px 8px}.panel-story-cover .panel-cover-placeholder small{overflow-wrap:anywhere}.panel-edit-cover{color:#ffcee0;cursor:pointer;background:#10182aeb;border:1px solid #d8b1ca99;border-radius:50%;place-items:center;width:44px;height:44px;padding:10px;display:grid;position:absolute;top:8px;right:8px;box-shadow:0 3px 12px #0005}.panel-edit-cover svg{width:22px;height:22px}.panel-delete-story{color:#ffb0c6;cursor:pointer;background:#3d192c55;border:1px solid #aa6d8544;border-radius:12px;justify-content:center;align-items:center;gap:7px;width:100%;min-height:44px;margin-top:6px;padding:8px;font-size:12px;display:flex}.panel-delete-story svg{flex-shrink:0;width:16px;height:16px}.panel-story-confirm{background:#181c30;border:1px solid #b47e9855;border-radius:14px;margin-top:8px;padding:12px}.panel-story-confirm p{color:#ecd5e0;overflow-wrap:anywhere;margin:0 0 10px;font-size:12px;line-height:1.5}.panel-story-confirm>div{gap:8px;display:grid}.panel-story-confirm button{color:#ffe5ef;overflow-wrap:anywhere;cursor:pointer;background:#29233d;border:1px solid #9c779466;border-radius:10px;min-height:44px;padding:8px;font-size:12px;line-height:1.4}.panel-story-confirm button:last-child{background:#702342}.panel-story-card .panel-story-feedback{overflow-wrap:anywhere;margin:8px 0 0;padding:10px;font-size:12px}.panel-story-card :is(button,a):focus-visible{outline-offset:3px;outline:3px solid #ffd381}.panel-story-card button:disabled{opacity:.55;cursor:wait}@media (max-width:540px){.panel-story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.production-status.production-progress-card{box-sizing:border-box;text-align:left;color:#f6edf6;background:radial-gradient(at 100% 0,#5b345b55,#0000 70%),linear-gradient(145deg,#23253e,#111a2f);border:1px solid #b995d34a;border-radius:24px;width:100%;min-width:0;margin:0;padding:22px;box-shadow:0 14px 40px #04091838}.production-progress-heading{align-items:center;gap:12px;display:flex}.production-progress-heading>div{min-width:0}.production-progress-heading strong{margin-top:4px;font-size:18px;line-height:1.35;display:block}.production-progress-emblem{color:#f3c5e0;background:#e2a2cd15;border:1px solid #e5b1d538;border-radius:15px;flex:0 0 44px;place-items:center;height:44px;font-size:25px;display:grid}.production-progress-kicker{color:#d5b5d1;letter-spacing:.12em;font-size:9px;font-weight:700}.production-status p.production-progress-stage{color:#e4d9ea;overflow-wrap:anywhere;margin:18px 0;font-size:14px;line-height:1.6}.production-progress-summary{color:#c2bdd2;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;margin-bottom:10px;font-size:12px;display:flex}.production-progress-summary strong{color:#f2c2dd;font-variant-numeric:tabular-nums;font-size:19px}.production-confirmed-stages{color:#bce8d5;flex-wrap:wrap;gap:6px 12px;margin:14px 0;padding:0;font-size:12px;line-height:1.6;list-style:none;display:flex}.production-confirmed-stages .is-paused{color:#f3d1ae}.production-progress-card[data-state=review_required] .production-progress-track>span{background:#8e7b9c;transition:none}.production-progress-track{background:#070e2080;border:1px solid #c2a3d526;border-radius:999px;height:10px;overflow:hidden}.production-progress-track>span{border-radius:inherit;background:linear-gradient(90deg,#b594ed,#eea2cd,#f3d1ae);height:100%;transition:width .7s;display:block}.production-status small.production-progress-help{color:#b8b5ca;margin-top:12px;font-size:11px;line-height:1.65}.production-progress-track.is-indeterminate>span{width:35%;animation:2.4s ease-in-out infinite alternate production-awaiting}.production-progress-card[data-state=completed] .production-progress-emblem{color:#bce8d5;background:#75bca51a;border-color:#75bca54a}.production-progress-card[data-state=failed] .production-progress-emblem{color:#ffc6d1;background:#d369831a;border-color:#d369834a}.production-progress-card[data-state=failed] .production-progress-track>span,.production-progress-card[data-state=cancelled] .production-progress-track>span{background:#8e7b9c}@keyframes production-awaiting{0%{transform:translate(0)}to{transform:translate(185%)}}@media (max-width:360px){.production-status.production-progress-card{padding:17px}.production-progress-heading strong{font-size:16px}}@media (prefers-reduced-motion:reduce){.production-progress-track>span{transition:none}.production-progress-track.is-indeterminate>span{animation:none}}.story-part-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:.75rem;margin:1rem 0;display:flex}.story-part-actions>.primary-button{margin:0}.previous-part-reuse{margin:.75rem 0 1.25rem}.previous-part-reuse>section{border:1px solid var(--blue-line,#49638a);background:var(--panel,#081a36);border-radius:16px;margin-top:.75rem;padding:1rem}.previous-part-reuse>section button{margin:.3rem}.story-part{margin:1.25rem 0}.story-part+.story-part{border-top:1px solid var(--blue-line,#49638a);padding-top:1rem}.story-part .secondary-button,.previous-part-reuse .secondary-button,.delivered-story-actions .secondary-button{border:1px solid var(--blue-line,#49638a);width:auto;height:auto;min-height:48px;color:var(--ink,#fff);background:var(--panel-2,#0d2a50);border-radius:12px;justify-content:center;align-items:center;padding:.65rem 1rem;font-size:.95rem;display:inline-flex}.story-part .secondary-button:before,.previous-part-reuse .secondary-button:before,.delivered-story-actions .secondary-button:before{content:none}.private-character-library .character-card{margin:0 0 18px}.private-character-library .character-photo-item img{object-fit:contain;background:#040913;width:100%;height:140px;display:block}.private-character-library .character-photo-item figcaption{padding-bottom:10px}.private-character-library fieldset{text-align:start;gap:12px;padding:16px;display:grid}.private-character-library label{gap:5px;min-width:0;display:grid}.private-character-library input{max-width:100%}.central-panel{flex-direction:column;padding-bottom:0;display:flex}.panel-content{padding-inline:clamp(.8rem,3.5vw,2rem);flex:1;padding-bottom:1rem}.panel-hero{height:auto;min-height:clamp(15rem,40vw,24rem)}.panel-brand{width:fit-content;max-width:88%}.panel-brand p{font-size:1rem}.panel-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:1.75rem}.panel-action{aspect-ratio:auto;min-height:clamp(8.75rem,21vw,15rem);padding:.8rem}.action-caption{overflow-wrap:anywhere;font-size:clamp(1rem,2.7vw,1.5rem);line-height:1.2}.action-caption b{flex-shrink:0}.panel-section-title{flex-wrap:wrap;gap:.25rem .75rem}.panel-section-title :is(h1,h2){font-size:clamp(1.6rem,4.5vw,2.6rem)}.panel-section-title button{font-size:1rem}.panel-story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.7rem,2.6vw,1.5rem)}.panel-story{min-height:0}.panel-story h3{font-size:clamp(1.125rem,2.8vw,1.5rem);line-height:1.25}.panel-story p{overflow-wrap:anywhere;margin-bottom:.6rem;font-size:1rem}.panel-story-copy>.panel-story-arrow{justify-content:flex-end;font-size:1.5rem;line-height:1}.panel-cover-placeholder small{letter-spacing:.07em;opacity:1;font-size:.875rem}.panel-story-card :is(.panel-story-edit,.panel-delete-story){text-align:center;overflow-wrap:anywhere;min-height:48px;padding:.5rem;font-size:1rem}.panel-story-card .panel-story-edit{background:#3d192c77;border:1px solid #aa6d8577;border-radius:12px}.panel-story-confirm :is(p,button),.panel-story-card .panel-story-feedback,.panel-stories :is(.panel-empty,[role=status],[role=alert]){font-size:1rem}.panel-story-utilities{flex-wrap:wrap;gap:.75rem;margin-top:1.25rem;display:flex}.panel-story-utilities a{color:#e2e9fb;background:#101a31;border:1px solid #7686a86e;border-radius:12px;align-items:center;gap:.5rem;min-height:44px;padding:.5rem .75rem;font-size:1rem;display:inline-flex}.panel-story-utilities svg{width:1.25rem;height:1.25rem}.panel-bottom-nav{width:100%;min-height:0;padding:.45rem .4rem calc(.55rem + env(safe-area-inset-bottom));grid-template-columns:repeat(3,minmax(0,1fr));position:sticky;bottom:0;left:auto;transform:none}.panel-bottom-nav button{color:#c5cfe7;gap:.35rem;width:100%;min-height:60px;padding:.3rem .15rem}.panel-bottom-nav button>span{overflow-wrap:anywhere;font-size:1rem;font-weight:700;line-height:1.2}.panel-bottom-nav button[aria-current=page]:after{bottom:0}.panel-bottom-nav button:focus-visible{outline-offset:-2px}.central-panel :is(a,button){scroll-margin-bottom:6rem}@media (max-width:30rem){.panel-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-actions .action-new{grid-column:1/-1}.action-caption b{display:none}}@media (max-width:21rem){.panel-story-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr))}}.story-studio:not(.panel-studio) .story-studio-shell:has(>.wizard-step){width:min(100%,38rem)}.story-screen.wizard-step{min-height:0;padding:max(1.2rem, env(safe-area-inset-top)) clamp(.85rem, 4vw, 1.5rem) 1.1rem;gap:.9rem;overflow:visible}.wizard-step>h2{text-wrap:balance;margin:.25rem auto .1rem;font-size:clamp(1.8rem,5.4vw,2.55rem);line-height:1.14}.wizard-step>.secondary-button{width:48px;min-width:48px;height:48px;min-height:48px}.wizard-step.title-screen .title-visual{height:clamp(7rem,30vw,12rem);min-height:0;margin:0}.wizard-step.title-screen .title-visual:after{content:none}.wizard-step :is(label,p:not(.eyebrow),figcaption){font-size:1rem}.wizard-step :is(input:not([type=file]),textarea,select){min-width:0;min-height:48px;font-size:1rem}.wizard-step :is(input:not([type=file]),textarea){scroll-margin:1rem}.wizard-step :is(button,input,textarea,select,a):focus-visible{outline:3px solid var(--gold);outline-offset:2px}.wizard-step .character-card .card-heading{flex-wrap:wrap;gap:.35rem;font-size:1.2rem}.wizard-step .character-card label,.wizard-step.world-screen>label:first-of-type{font-size:1rem;font-weight:700}.wizard-step.world-screen>label:first-of-type textarea{color:#fff;background:#0b2547;border-color:#8bafd1}.wizard-step .character-card .character-photo-item figcaption,.wizard-step .character-card .character-photo-item small,.wizard-step :is(.character-photo-button,.character-remove-photo,.add-character-button,.character-save-button,.review-edit-button){font-size:1rem;line-height:1.35}.wizard-step .character-card .text-button{min-width:44px;min-height:44px;padding:.5rem;font-size:1rem}.wizard-step .character-photo-item .character-remove-photo{overflow-wrap:anywhere}.wizard-step .character-actions,.wizard-step .screen-actions{margin-top:.2rem}.wizard-step .primary-button{min-height:56px;margin-top:0;font-size:1.125rem}.wizard-step .primary-button:disabled{color:#ece5ed;opacity:.72;box-shadow:none}.wizard-library-actions{gap:.65rem;width:100%;display:grid}.wizard-library-actions>*{min-width:0;margin:0}.wizard-library-actions>*>button.secondary-button:first-child{color:#fff;background:#0e2a50;border:1px solid #789cc8;border-radius:12px;width:100%;min-height:48px;margin:0;padding:.65rem 1rem;font-size:1rem;font-weight:700;line-height:1.35;display:block}.wizard-library-actions button.secondary-button:first-child:before{content:none}.wizard-library-actions button:disabled{opacity:.65;cursor:not-allowed}.wizard-step .world-reference-editor{gap:.75rem;padding:.75rem}.wizard-step .world-reference-grid{grid-template-columns:minmax(0,1fr)}.wizard-step .world-reference-grid figure{grid-template-columns:minmax(0,7rem) minmax(0,1fr);align-items:center;gap:.75rem;padding:.65rem;display:grid}.wizard-step .world-reference-grid .reference-preview{aspect-ratio:4/3;background:#070e1d;border-radius:8px;height:auto}.wizard-step .world-reference-grid figcaption{color:#e1eafd;gap:.55rem;min-width:0;padding:0;font-weight:650;display:grid}.wizard-audio{min-width:0}.wizard-audio fieldset{min-inline-size:0;margin-inline:0}.wizard-audio :is(legend,h3){font-size:1.125rem}.wizard-audio :is(button,label,small){min-width:0;font-size:1rem}.wizard-audio button{overflow-wrap:anywhere;min-height:44px}.story-studio-shell:has(>.wizard-step) .story-home-footer{justify-content:flex-start;padding:0 clamp(.85rem,4vw,1.5rem) 1.25rem}.story-studio-shell:has(>.wizard-step) .story-home-link{color:#e1d8eb;min-height:44px;padding:.5rem 0;font-size:1rem}@media (max-width:23rem){.wizard-step .world-reference-grid figure{grid-template-columns:minmax(0,1fr)}.wizard-step .world-reference-grid .reference-preview{max-width:10rem}}
