:root{--paper:#f8f6f0;--white:#fffefa;--ink:#29272d;--muted:#817c85;--line:#e3dfda;--accent:#dcd2ff;--accent-dark:#7760ad;--mint:#dfe8d6;--coral:#efb8ab;--yellow:#f3dc9e;--radius:14px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Hiragino Sans','Malgun Gothic',sans-serif;font-size:14px;line-height:1.7;-webkit-font-smoothing:antialiased}body:has(dialog[open]){overflow:hidden}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{outline-offset:4px}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer;color:inherit;background:none;border:0}button:disabled{cursor:not-allowed;opacity:.46}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.35;word-break:keep-all}p{word-break:keep-all}img{max-width:100%;display:block}textarea{resize:vertical}fieldset{min-width:0}input,textarea{min-width:0}[hidden]{display:none!important}.page-wrap,.nav-wrap,.site-footer{width:min(1360px,calc(100% - 80px));margin-inline:auto}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.skip-link{position:fixed;top:-100px;left:20px;z-index:90;background:var(--ink);color:#fff;padding:12px 20px}.skip-link:focus{top:12px}.site-header{height:82px;border-bottom:1px solid var(--line);background:var(--paper)}.nav-wrap{height:100%;display:flex;align-items:center;gap:54px}.brand{display:inline-flex;align-items:center;gap:6px;font-size:21px;letter-spacing:-.9px;font-weight:800;line-height:1;white-space:nowrap}.brand-toon{font-weight:500;letter-spacing:-1px}.brand-symbol{display:grid;place-items:center;background:var(--ink);width:31px;height:31px;border-radius:8px;color:var(--paper);margin-right:3px}.brand-symbol svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round}.brand-beta{font-size:7px;letter-spacing:1px;font-weight:600;border:1px solid #b7aca0;padding:3px 4px;border-radius:3px;align-self:start;margin-left:4px;margin-top:-2px;color:#8d8177}.main-nav{display:flex;align-items:center;gap:28px}.nav-link{font-size:12px;font-weight:500;color:var(--muted)}.nav-link.active,.nav-link:hover{color:var(--ink)}.nav-actions{margin-left:auto;display:flex;align-items:center;gap:25px}.language-switch select{border:0;background:transparent;font-size:11px;letter-spacing:.7px;color:#736c77;cursor:pointer;padding:8px 0}.nav-login{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.nav-login .icon{width:16px}.text-button{font-size:12px;text-decoration:underline;text-underline-offset:4px}.nav-logout{font-size:11px;color:var(--muted)}.environment-note{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 20px;background:#eee9fa;border-bottom:1px solid #dcd2ef;color:#726782;font-size:10px;line-height:1.6;text-align:center}.status-dot,.eyebrow-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.eyebrow{display:flex;align-items:center;gap:9px;font-size:9px;font-weight:600;letter-spacing:1.6px;line-height:1.7;color:#837984}.eyebrow-dot{width:5px;height:5px;color:#9280b8}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:49px;padding:13px 20px;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:600;line-height:1.6;transition:background .15s,transform .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button-primary{background:var(--ink);color:#fffef8}.button-primary:hover:not(:disabled){background:#45404c}.button-secondary{background:var(--white);border-color:#dcd7d2}.button-secondary:hover:not(:disabled){background:#eeebe6}.button-small{min-height:39px;padding:9px 13px;font-size:10px}.button-small .icon{width:15px;height:15px}.full-width{width:100%}.button-end{margin-left:auto}.muted-small{font-size:11px;color:var(--muted)}.inline-message{border:1px solid #dfd2ed;background:#f0eaf7;color:#7a658f;border-radius:8px;font-size:12px;line-height:1.8;padding:13px 16px;margin-block:16px;overflow-wrap:anywhere;word-break:keep-all}.inline-message.error{background:#fff0e9;border-color:#eacdbf;color:#a3624a}.inline-message.success{background:#edf2e6;border-color:#d1dfc1;color:#647848}.studio-spinner{display:inline-block;width:23px;height:23px;border:2px solid #ddd5e6;border-top-color:#7b669a;border-radius:50%;animation:rotate .9s linear infinite}.text-input{display:block;width:100%;border:1px solid #ddd7d5;border-radius:7px;background:#fffefa;color:var(--ink);font-size:12px;padding:12px 13px;line-height:1.8;transition:border-color .15s,box-shadow .15s}.text-input:focus{outline:0;border-color:#ad97c9;box-shadow:0 0 0 3px #dcd2ff50}.text-input::placeholder{color:#aaa2ad}.text-input:read-only{background:#f7f5f1;color:#807987}.field-label{display:block;font-size:11px;font-weight:600;margin:20px 0 8px}.input-hint{display:block;font-size:9px;color:#9a919b;margin-top:7px;line-height:1.9}.control-note{font-size:9px;color:#a198a4;line-height:1.9;text-align:center;margin-top:10px}.provider-note{font-size:9px;color:#8d7d9d;line-height:1.8;margin-top:9px;text-align:center}.check-row{display:flex;align-items:start;gap:8px;font-size:10px;line-height:1.8;color:#8a7f8c;cursor:pointer}.check-row input{margin:3px 0 0;flex-shrink:0;width:15px;height:15px;accent-color:var(--ink)}.check-row button{padding:0;text-decoration:underline;text-underline-offset:3px}
/* A small original comic, shared by the cover and the empty editor. */
.toon-hero{display:grid;grid-template-columns:1fr 1fr;gap:100px;align-items:center;min-height:740px;padding-block:72px 90px}.hero-copy{padding-bottom:12px}.hero-heading{font-size:clamp(38px,4vw,58px);font-weight:600;letter-spacing:-2.4px;line-height:1.35;margin:25px 0}.hero-heading span,.hero-description span,.how-section header h2 span{display:block}.hero-description{font-size:14px;color:#857c87;line-height:1.95;letter-spacing:-.2px}.hero-button{margin-top:30px;padding:17px 22px;min-height:55px;gap:30px;font-size:13px}.hero-note{font-size:10px;color:#a197a4;margin-top:15px}.hero-tools{margin-top:52px;display:flex;align-items:center;gap:15px;font-size:8px;letter-spacing:1.2px;color:#988e99}.hero-tools i{font-style:normal;color:#c1b3c2}.hero-toon{background:var(--white);border:1px solid #d5cccf;border-radius:12px;padding:20px;transform:rotate(2deg);box-shadow:7px 9px 0 #eae2df;position:relative;max-width:540px;width:100%;margin:auto}.hero-toon:before{content:'';position:absolute;width:105px;height:24px;background:#e1d3b65c;border-inline:1px solid #dfcba888;top:-12px;left:calc(50% - 52px);transform:rotate(-4deg);z-index:2}.comic-cover-top{display:flex;align-items:center;gap:7px;font-size:7px;letter-spacing:1.2px;color:#8a7e87;padding-bottom:14px;border-bottom:1px solid #e4dbde}.comic-editor-dot{width:6px;height:6px;border-radius:50%;background:#c5b2d4}.comic-demo-label{margin-left:auto;font-size:6px;letter-spacing:.4px}.comic-heading{position:relative;padding:22px 0 20px}.comic-edition{display:block;color:#b2a4b2;font-size:7px;letter-spacing:1.4px;margin-bottom:7px}.comic-heading h2{font-size:22px;font-weight:600;letter-spacing:-.7px}.hand-star{position:absolute;right:15px;top:25px;width:31px;height:31px;fill:#efd792;stroke:#baa674;stroke-width:.7;transform:rotate(7deg)}.sample-comic{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sample-panel{border:1.5px solid #4b424f;border-radius:3px;position:relative;overflow:hidden;aspect-ratio:1.23;background:#e7e8d8}.sample-panel>svg{width:100%;height:100%;display:block}.sample-bubble{position:absolute;top:13px;left:12px;max-width:calc(100% - 37px);border:1px solid #635669;border-radius:8px;background:#fffef9;padding:7px 10px;font-size:8px;color:#5d5261;line-height:1.6;box-shadow:1px 1px 0 #74647b20;word-break:keep-all}.sample-bubble:after{content:'';position:absolute;bottom:-5px;left:14px;background:#fffef9;width:7px;height:7px;border-right:1px solid #635669;border-bottom:1px solid #635669;transform:skewY(-30deg)}.sample-panel--3 .sample-bubble,.sample-panel--6 .sample-bubble{top:auto;bottom:11px}.sample-panel--5 .sample-bubble{left:auto;right:11px;color:#f6ebce;border:0;background:none;box-shadow:none;font-size:12px;letter-spacing:1px}.sample-panel--5 .sample-bubble:after{display:none}.panel-sequence{position:absolute;right:6px;top:5px;font-size:6px;font-weight:500;color:#615463;z-index:1}.sample-panel--5 .panel-sequence{color:#e6dbf0}.comic-cover-bottom{display:flex;align-items:center;justify-content:space-between;font-size:6px;color:#a193a3;letter-spacing:.7px;margin-top:13px}.toon-ticker{background:#e9e1f4;border-block:1px solid #d8cfe2;overflow:hidden;padding:20px 0}.toon-ticker>div{display:flex;gap:55px;align-items:center;justify-content:center;white-space:nowrap;font-size:10px;letter-spacing:2.3px;color:#897c95}.toon-ticker>div>span:nth-child(even){font-size:19px;line-height:1;color:#a48aba}.how-section{padding-block:92px 84px}.how-section header{max-width:530px}.how-section header h2{font-size:31px;font-weight:500;line-height:1.5;letter-spacing:-1px;margin:15px 0}.how-section header>p:last-child{color:#918594;font-size:12px;line-height:1.9}.feature-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;margin-top:40px}.feature-cards article{position:relative;border:1px solid var(--line);border-radius:12px;padding:27px;background:#fffdf7}.feature-number{font-size:9px;color:#ae9db3;letter-spacing:1px}.feature-cards h3{font-size:16px;font-weight:500;letter-spacing:-.4px;margin:14px 0 10px}.feature-cards p{font-size:11px;color:#918593;line-height:1.9;max-width:310px}.feature-mini{height:133px;position:relative;margin-top:13px}.feature-mini--0{border:1px solid #e2d9e5;background:#f7f2fa;border-radius:9px;padding:28px 23px;transform:rotate(-2deg);max-width:260px}.mini-line{display:block;width:90%;height:5px;background:#ded2e6;border-radius:3px;margin-bottom:13px}.mini-line.short{width:55%}.mini-cursor{position:absolute;left:calc(55% - 1px);bottom:31px;width:2px;height:16px;background:#9775b4}.feature-mini--1 svg{height:145px;width:160px;position:absolute;left:10px;bottom:-8px}.mini-speech{position:absolute;left:140px;top:12px;background:#ece4f6;border:1px solid #c5b3d7;padding:8px 25px;border-radius:20px;font-size:19px}.mini-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;width:135px;transform:rotate(4deg);margin-left:27px;padding-top:4px}.mini-grid i{display:block;height:34px;border:1px solid #9a8ca8;background:#e5dcef;border-radius:3px}.mini-grid i:nth-child(3n){background:#e3e8d7}.mini-download{position:absolute;width:43px;height:43px;border-radius:50%;background:var(--ink);color:#fffdf3;left:145px;bottom:2px;display:grid;place-items:center;border:5px solid #fffdf7;font-size:20px}.toon-price{padding:34px 37px;background:#e7e2ef;border:1px solid #d9cfe4;border-radius:12px;display:grid;grid-template-columns:1fr auto;gap:25px}.toon-price h2{font-size:23px;font-weight:500;margin:11px 0;letter-spacing:-.5px}.toon-price p:not(.eyebrow){font-size:11px;color:#8e7e9a}.price-action{display:flex;gap:40px;align-items:center}.price strong{font-size:39px;font-weight:600;letter-spacing:-1.6px}.price>span{font-size:12px;margin-left:7px}.price small{display:block;font-size:8px;color:#9d8ca9}.payment-footnote{grid-column:1/-1;font-size:9px!important;color:#a494ad!important;margin-top:-13px}
/* Story workspace */
.toon-workspace{padding-bottom:80px}.workspace-heading{padding-block:35px 27px;display:flex;justify-content:space-between;align-items:center;gap:25px}.workspace-heading h1{font-size:24px;font-weight:500;letter-spacing:-.6px;margin-top:7px}.workspace-heading-actions{display:flex;align-items:center;gap:22px}.save-status{font-size:9px;color:#9e919f;display:flex;align-items:center;gap:6px}.save-status.is-dirty{color:#bb9870}.toon-studio-grid{display:grid;grid-template-columns:324px minmax(0,1fr);gap:28px;align-items:start}.story-sidebar{border:1px solid #e2dce0;background:#fffdf9;border-radius:12px;padding:24px;position:sticky;top:22px}.sidebar-title{display:flex;align-items:center;gap:9px}.sidebar-title h2{font-size:13px;font-weight:600}.sidebar-step{display:grid;place-items:center;width:23px;height:23px;background:#eee7f4;color:#94809e;border-radius:6px;font-size:8px}.sidebar-decoration{margin-left:auto;font-size:21px;color:#b6a1c4;line-height:1}.story-input-wrap{position:relative}.story-input{height:205px;padding-bottom:34px;line-height:1.9;min-height:145px;max-height:500px;font-size:12px}.story-count{position:absolute;right:11px;bottom:10px;color:#b4a9b5;font-size:8px;pointer-events:none;font-variant-numeric:tabular-nums}.example-section{margin-top:17px}.subtle-label{font-size:9px;color:#a192a6}.example-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.example-chip{border:1px solid #e7dfe9;border-radius:20px;background:#f8f3fa;padding:5px 9px;font-size:9px;color:#a38bae;line-height:1.5}.example-chip:hover:not(:disabled){background:#eee4f5}.studio-fieldset{border:0;padding:0;margin:24px 0}.studio-fieldset legend{font-size:11px;font-weight:600;padding:0;margin-bottom:12px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:6px}.studio-fieldset legend>span{font-size:8px;font-weight:400;color:#ab9baf}.toon-style-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.toon-style-card{display:flex;flex-direction:column;cursor:pointer;min-width:0;position:relative}.toon-style-card input,.character-card input{position:absolute;opacity:0;width:1px;height:1px}.style-illustration{height:76px;display:block;border:1px solid #e2d9df;background:#e8e2d7;border-radius:6px;position:relative;overflow:hidden}.style-illustration svg{height:95px;position:absolute;bottom:-24px;left:calc(50% - 43px);width:86px;transform:rotate(-3deg)}.style-illustration--mono{background:#f2f0ef;filter:grayscale(1)}.style-illustration--pop{background:#eed293}.style-illustration--pop:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#c7a568 1px,transparent 1px);background-size:8px 8px;opacity:.45}.style-illustration i{position:absolute;right:6px;top:6px;width:12px;height:12px;border:1px solid #fffaf7aa;border-radius:50%;background:#fffaf7b5}.toon-style-card:has(input:checked) .style-illustration{outline:1.5px solid #9071aa;outline-offset:2px}.toon-style-card:has(input:checked) .style-illustration i{background:#a68bbd;border-color:#7d609a}.toon-style-card strong{font-size:9px;font-weight:500;margin-top:9px;text-align:center}.toon-style-card>span:last-child{font-size:7px;line-height:1.6;color:#ad9db4;text-align:center;display:block;margin-top:3px}.toon-style-card:has(input:focus-visible) .style-illustration,.character-card:has(input:focus-visible) .character-avatar{outline:2px solid var(--ink);outline-offset:3px}.toon-style-card:has(input:disabled),.character-card:has(input:disabled){cursor:default}.character-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.character-card{display:flex;flex-direction:column;align-items:center;cursor:pointer;position:relative}.character-avatar{display:block;width:65px;height:65px;border-radius:50%;background:#ede9df;border:1px solid #e7dce4;position:relative}.character-avatar svg{width:72px;height:80px;position:absolute;left:-4px;bottom:-8px}.character-avatar--bomi{background:#f1e4dc}.character-avatar--tori{background:#e5e0ef}.character-avatar i{position:absolute;width:16px;height:16px;border-radius:50%;bottom:0;right:0;background:#a187b7;color:white;display:none;font-style:normal;font-size:9px;text-align:center;line-height:16px;border:1px solid var(--white)}.character-card:has(input:checked) .character-avatar{outline:1.5px solid #a187b7;outline-offset:3px}.character-card:has(input:checked) i{display:block}.character-card strong{font-size:10px;font-weight:500;margin-top:9px}.story-sidebar #edit-story{margin-top:9px}.toon-stage{min-width:0;border:1px solid #e2dce0;border-radius:12px;background:#fffefa;padding:22px;overflow:hidden}.stage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:20px;border-bottom:1px solid #eee8ed;min-width:0}.stage-steps{display:flex;align-items:center;gap:12px;min-width:0}.stage-step{display:flex;align-items:center;gap:6px;font-size:9px;color:#b1a5b5;padding:4px 0;white-space:nowrap}.stage-step i{font-size:8px;font-style:normal;border:1px solid #e6deea;width:18px;height:18px;border-radius:50%;display:grid;place-items:center}.stage-step.active{color:#847091;font-weight:600}.stage-step.active i{background:#e9dff2;border-color:#e9dff2}.stage-steps>span{font-size:10px;color:#d8cddd}.project-status{font-size:8px;padding:4px 8px;border-radius:20px;background:#f0eaf5;color:#a08aaa;white-space:nowrap}.toon-empty{position:relative;min-height:735px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:25px}.empty-comic-preview{position:absolute;width:min(560px,90%);left:50%;top:48%;transform:translate(-50%,-50%) rotate(-4deg);opacity:.44}.empty-comic-preview .sample-panel{border-color:#b4a5b8}.empty-comic-preview .sample-bubble{font-size:9px}.empty-comic-fade{position:absolute;inset:-25px;background:linear-gradient(0deg,#fffefa 0%,#fffefa90 25%,#fffefaed 45%,#fffefaee 65%,#fffefa20 100%)}.empty-comic-copy{position:relative;text-align:center;max-width:300px;margin-top:-70px}.empty-story-icon{display:grid;place-items:center;width:54px;height:54px;border:1px solid #d9cce1;background:#f3ecf8;box-shadow:3px 4px 0 #e8dfee;border-radius:14px;margin:0 auto 25px;font-size:27px;color:#a284b8;transform:rotate(-8deg)}.empty-comic-copy h2{font-size:20px;letter-spacing:-.5px;font-weight:500;line-height:1.6}.empty-comic-copy p{font-size:11px;color:#a591ad;margin:12px auto 20px;line-height:1.9}.sample-tag{font-size:7px;color:#b6a5bb;border:1px solid #e8deee;border-radius:4px;padding:5px 8px}.editor-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:27px 0 22px}.editor-heading .eyebrow{font-size:7px;letter-spacing:1.4px}.editor-heading h2{font-size:19px;letter-spacing:-.5px;font-weight:500;margin-top:5px}.editor-heading p:last-child{font-size:10px;color:#a18ca9;margin-top:9px;line-height:1.8}.demo-pill{font-size:7px;border:1px solid #dfd0e8;border-radius:4px;color:#ad94b9;white-space:nowrap;padding:4px 7px;margin-top:8px}.comic-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.comic-panel-card{border:1px solid #e2d8e5;border-radius:9px;background:#fffdf9;overflow:hidden;min-width:0}.panel-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border-bottom:1px solid #eee5ef;background:#f8f3fa}.panel-card-heading strong{font-size:9px;font-weight:600;color:#9d83aa;letter-spacing:.4px}.panel-state{font-size:7px;color:#b6a3bf}.panel-script-fields{padding:1px 15px 17px}.panel-script-fields .field-label{font-size:9px;color:#a18aa9;margin-top:14px;margin-bottom:6px}.panel-script-fields .text-input{font-size:11px;background:#fffcf8;border-color:#e7dee8;padding:10px 11px;line-height:1.9}.panel-script-fields textarea[name=scene]{height:112px;min-height:80px}.panel-script-fields textarea[name=dialogue]{height:77px;min-height:65px}.panel-script-fields input[name=speaker]{height:37px;padding-block:6px}.panel-art{position:relative;background:#f0eaf4;aspect-ratio:1;display:flex;align-items:center;justify-content:center;overflow:hidden}.panel-art>img{width:100%;height:100%;object-fit:contain}.panel-art-loading{color:#b29bbd;font-size:9px;display:flex;align-items:center;gap:9px}.panel-art .panel-art-error{font-size:9px;color:#9d849f;max-width:80%;text-align:center}.panel-art-error button{display:block;margin:10px auto 0;font-size:9px;text-decoration:underline}.panel-result-fields{padding:14px 15px 15px}.panel-result-fields .field-label{font-size:9px;margin:0 0 6px;color:#a18aa9}.panel-result-fields textarea{font-size:11px;height:65px;min-height:55px;line-height:1.8;border-color:#e4dae7;background:#fffdfa}.panel-actions{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-top:10px}.panel-actions button{font-size:8px;display:flex;align-items:center;gap:4px;color:#a188ae;border:1px solid #e2d6e8;background:#fcf8ff;padding:6px 8px;border-radius:5px;min-height:31px}.panel-actions .icon{width:11px;height:11px}.panel-regenerate-fields{border-top:1px solid #e9e0ed;margin-top:12px;padding-top:10px}.panel-regenerate-fields .field-label{margin-top:0}.panel-regenerate-fields textarea{height:105px}.panel-regenerate-fields p{font-size:8px;color:#b099ba;line-height:1.7;margin:7px 0}.panel-regenerate-fields>.button{font-size:9px;padding:7px 10px;min-height:33px;width:100%;margin-top:4px}.script-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;border-top:1px solid #eee5ef;padding-top:23px;margin-top:25px}.script-actions .button{font-size:10px;padding:11px 16px;min-height:43px}.script-actions .icon{width:15px;height:15px}.script-actions p{font-size:8px;text-align:right;width:100%;color:#b29bbd;line-height:1.8}.toon-progress{min-height:730px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:45px 20px}.progress-art{position:relative;width:145px;height:155px;margin-bottom:25px;background:#eee7f2;border-radius:50%;border:1px solid #e3d7ea}.progress-art>svg{width:150px;height:175px;position:absolute;bottom:-12px;left:-3px}.progress-art>span{position:absolute;right:-10px;bottom:9px;width:44px;height:44px;background:#fff9e8;border:1px solid #e9d99b;border-radius:10px;color:#a78a38;display:grid;place-items:center;font-size:26px;transform:rotate(10deg)}.toon-progress h2{font-size:19px;font-weight:500;line-height:1.7;margin-top:22px;max-width:360px}.toon-progress>p{font-size:11px;color:#aa93b3;line-height:1.9;margin-top:10px;max-width:330px}.progress-panels{display:flex;gap:6px;margin-top:35px}.progress-panels i{display:block;width:29px;height:34px;background:#e9dfef;border:1px solid #d9c8e2;border-radius:3px;animation:panel-pulse 1.5s infinite}.progress-panels i:nth-child(2n){animation-delay:.3s}.progress-panels i:nth-child(3n){animation-delay:.6s}.toon-export{margin-top:27px;border:1px solid #ded2e6;border-radius:9px;background:#f5eff9;padding:23px}.toon-export>header{display:flex;align-items:center;gap:13px}.export-icon{display:grid;place-items:center;border:1px solid #ddcfe7;background:#ede3f4;color:#ac8fbe;width:36px;height:36px;border-radius:8px;flex-shrink:0}.export-icon .icon{width:17px;height:17px}.toon-export h2{font-size:15px;font-weight:500;letter-spacing:-.2px}.toon-export header p{font-size:9px;color:#ad94b8;margin-top:5px;line-height:1.8}.export-files{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:21px 0}.export-files>div{display:flex;align-items:center;gap:11px;background:#fffaff;border:1px solid #e6daed;padding:12px 14px;border-radius:7px}.file-format{font-size:7px;font-weight:600;border:1px solid #ddcde7;width:29px;height:34px;display:grid;place-items:center;border-radius:4px;color:#b195c0;background:#f3eaf8;flex-shrink:0}.export-files strong{font-size:10px;font-weight:500}.export-files small{display:block;font-size:7px;color:#b3a0bb;line-height:1.6;margin-top:4px}.toon-export>.check-row{font-size:9px;margin-block:14px}.toon-export>.button{font-size:11px;min-height:45px}.price-experiment{font-size:8px;color:#b19aba;text-align:center;margin-top:9px}.download-actions{display:flex;gap:10px}.download-actions>.button{flex:1;font-size:10px;min-height:45px}.toon-export>.text-button{font-size:9px;color:#ac92b9;display:block;margin:19px auto 0}
/* Account and access */
.page-heading{padding-block:40px 30px}.page-heading h1{font-size:30px;font-weight:500;letter-spacing:-1px;margin:12px 0}.page-heading>p,.page-heading>div>p:last-child{color:#948499;font-size:12px}.account-page{min-height:70vh;padding-bottom:90px}.account-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid var(--line);margin-bottom:25px}.account-heading .button{font-size:11px}.account-identity{font-size:11px;color:#a594ac;margin-bottom:25px}.account-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:250px;color:#a690ad;font-size:11px}.empty-state{text-align:center;border:1px dashed #d8ccdf;border-radius:13px;background:#f2ecf6;padding:65px 20px}.empty-icon{display:grid;place-items:center;width:48px;height:48px;background:#eae0f2;border:1px solid #d7c7e2;color:#a48ab4;border-radius:12px;margin:0 auto 20px}.empty-state h2{font-size:21px;font-weight:500;letter-spacing:-.6px}.empty-state p{font-size:12px;color:#a38bae;margin:12px 0 25px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.project-card{border:1px solid #e2d8e7;border-radius:11px;overflow:hidden;background:#fffefa;min-width:0}.project-cover{height:245px;background:#eee5f3;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.project-cover>img{width:100%;height:100%;object-fit:cover;object-position:top}.project-cover>svg{height:190px;width:185px;transform:rotate(-5deg)}.project-cover .demo-pill{position:absolute;right:13px;top:8px;background:#fffefaee}.project-card-body{padding:20px}.project-card h2{font-size:16px;font-weight:500;letter-spacing:-.3px;overflow-wrap:anywhere}.project-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:9px;color:#b29abc;margin:12px 0 19px}.project-meta .project-status{font-size:8px}.project-card-actions{display:flex;gap:8px}.project-card-actions>.button{flex:1;font-size:10px;padding:10px 12px;min-height:39px}.project-card-actions .icon{width:13px;height:13px}.auth-layout{display:grid;grid-template-columns:1fr 420px;gap:100px;max-width:1050px;padding-block:75px 95px;align-items:start}.auth-story h1{font-size:35px;font-weight:500;letter-spacing:-1.3px;margin:20px 0 15px}.auth-story>p:not(.eyebrow){font-size:12px;color:#a18aab;line-height:1.9}.auth-art{background:#e9dfef;border:1px solid #d9c9e2;border-radius:10px;margin-top:35px;padding:23px;min-height:280px;position:relative;overflow:hidden}.auth-art svg{display:block;width:100%;height:auto}.auth-art-word{font-size:35px;line-height:1.1;letter-spacing:-1.4px;color:#8a6b9f;position:absolute;left:25px;top:25px}.auth-art-caption{font-size:7px;letter-spacing:1.3px;color:#aa8bb9;position:absolute;bottom:18px;left:25px}.auth-art-star{position:absolute;right:27px;top:22px;font-size:27px;color:#b397c1}.auth-card{border:1px solid #e2d7e8;border-radius:12px;background:#fffdfa;padding:30px;box-shadow:0 8px 35px #76627b08}.auth-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.auth-card-top .eyebrow{font-size:8px;letter-spacing:1.1px;color:#ac92b8}.auth-card-top .icon{width:16px;height:16px;color:#b8a2c4}.auth-card .field-label{font-size:11px;margin-top:17px}.auth-card .text-input{height:45px;font-size:12px}.auth-terms{margin-block:20px}.auth-card .button{margin-top:21px;min-height:46px;font-size:11px}.auth-divider{display:flex;align-items:center;gap:12px;font-size:9px;color:#b8a1c2;margin:25px 0}.auth-divider:before,.auth-divider:after{content:'';height:1px;flex:1;background:#eadfed}.google-terms{margin-bottom:18px}.google-slot{min-height:43px;display:flex;justify-content:center;align-items:center;overflow:hidden;font-size:10px;color:#b19abc}.auth-switch{text-align:center;font-size:10px;color:#b09abb;margin-top:25px}.auth-switch a{color:#887192;margin-left:7px;text-decoration:underline;text-underline-offset:4px}
.site-footer{padding-block:35px 25px;border-top:1px solid var(--line)}.footer-top{display:flex;justify-content:space-between;align-items:start;gap:30px;margin-bottom:26px}.footer-brand{font-size:20px}.footer-top p{font-size:10px;color:#b29ebb;margin-top:12px}.business-info{display:flex;flex-wrap:wrap;gap:4px 13px;font-size:8px;color:#b8a8be;line-height:1.8}.business-info strong{font-weight:500}.footer-bottom{display:flex;justify-content:space-between;font-size:7px;letter-spacing:.5px;color:#beaec3;padding-top:22px;margin-top:22px;border-top:1px solid #e7dfeb}.legal-dialog{width:min(620px,calc(100% - 36px));padding:30px;background:var(--white);border:1px solid #d8cbdc;border-radius:13px;color:var(--ink);max-height:82vh}.legal-dialog::backdrop{background:#2b223666;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:22px}.dialog-top h2{font-size:21px;font-weight:500}.icon-button{display:grid;place-items:center;padding:6px;color:#a98bb8}.legal-dialog>p{white-space:pre-line;font-size:12px;line-height:2;color:#95829d}.legal-dialog>.button{margin-top:25px;min-height:43px;font-size:10px}.contact-email{display:inline-block;font-size:12px;margin-top:15px;text-decoration:underline;text-underline-offset:4px}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:100;background:var(--ink);color:#fffaf0;font-size:11px;line-height:1.7;border:1px solid #605469;border-radius:8px;padding:13px 22px;text-align:center;max-width:calc(100% - 32px);min-width:200px;box-shadow:0 8px 25px #0002}.button.is-busy>.icon{animation:rotate 1.2s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes panel-pulse{0%,100%{opacity:.45;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
@media(min-width:1600px){.toon-hero{gap:130px;min-height:800px}.hero-toon{max-width:570px}.hero-heading{font-size:62px}}
@media(max-width:1150px){.page-wrap,.nav-wrap,.site-footer{width:calc(100% - 56px)}.toon-hero{gap:55px;min-height:660px;padding-block:60px}.hero-heading{font-size:45px}.hero-description{font-size:12px}.toon-studio-grid{grid-template-columns:296px minmax(0,1fr);gap:20px}.story-sidebar{padding:20px}.toon-stage{padding:18px}.stage-steps{gap:7px}.stage-step{gap:4px;font-size:8px}.stage-steps>span{display:none}.toon-style-options{gap:6px}.style-illustration{height:69px}.character-avatar{width:59px;height:59px}.character-avatar svg{width:67px;height:76px}.comic-panel-grid{gap:13px}.panel-script-fields{padding-inline:12px}.auth-layout{gap:55px;grid-template-columns:1fr 390px}.feature-cards article{padding:23px}.price-action{gap:25px}}
@media(max-width:900px){.toon-hero{gap:35px;min-height:610px}.hero-heading{font-size:37px;letter-spacing:-1.6px}.hero-tools{margin-top:35px;gap:9px;font-size:6px}.hero-note{font-size:8px}.hero-toon{padding:15px}.comic-heading{padding:16px 0 14px}.comic-heading h2{font-size:18px}.sample-comic{gap:7px}.sample-bubble{font-size:6px;padding:5px 7px;top:10px;left:8px;max-width:calc(100% - 25px)}.comic-heading .hand-star{width:25px;height:25px;top:18px;right:5px}.toon-studio-grid{grid-template-columns:260px minmax(0,1fr);gap:17px}.story-sidebar{padding:17px}.toon-stage{padding:16px}.stage-steps{gap:10px}.stage-step{font-size:8px}.stage-step i{width:16px;height:16px;font-size:7px}.project-status{font-size:7px;padding:3px 6px}.comic-panel-grid{grid-template-columns:1fr}.toon-empty{min-height:780px;padding:15px}.empty-comic-preview{width:95%;opacity:.3}.empty-comic-copy h2{font-size:18px}.empty-comic-copy p{font-size:10px}.export-files{grid-template-columns:1fr;gap:8px}.toon-export{padding:17px}.toon-progress{min-height:780px}.workspace-heading h1{font-size:21px}.workspace-heading-actions{gap:13px}.save-status{font-size:8px}.toon-style-options{gap:6px}.style-illustration{height:59px}.toon-style-card>span:last-child{font-size:6px}.character-options{gap:8px}.character-avatar{width:54px;height:54px}.character-avatar svg{width:62px;height:70px}.feature-cards{gap:15px}.feature-cards article{padding:20px}.feature-mini{height:116px}.feature-mini--1 svg{height:135px;width:140px;left:0}.mini-speech{left:110px;font-size:15px;padding:5px 16px}.mini-grid{margin-left:10px;width:120px}.mini-download{left:113px}.feature-cards h3{font-size:14px}.feature-cards p{font-size:10px}.how-section{padding-block:65px}.toon-price{padding:28px;grid-template-columns:1fr}.price-action{justify-content:space-between}.payment-footnote{margin:0}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-layout{gap:40px;grid-template-columns:1fr 360px}.auth-story h1{font-size:29px}}
@media(max-width:700px){.page-wrap,.nav-wrap,.site-footer{width:calc(100% - 40px)}.site-header{height:69px}.nav-wrap{gap:26px}.brand{font-size:19px;gap:5px}.brand-symbol{width:27px;height:27px}.brand-symbol svg{width:19px;height:19px}.brand-beta{display:none}.main-nav{gap:18px}.nav-link{font-size:11px}.nav-actions{gap:15px}.nav-login{font-size:10px;gap:5px}.nav-login .icon{width:14px}.language-switch select{font-size:9px}.nav-logout{font-size:9px}.toon-hero{grid-template-columns:1fr;gap:50px;padding-block:44px 60px}.hero-copy{padding:0;max-width:500px}.hero-heading{font-size:45px;letter-spacing:-2px;margin:20px 0}.hero-description{font-size:13px}.hero-tools{margin-top:27px;gap:13px;font-size:7px}.hero-note{font-size:9px}.hero-button{margin-top:25px;min-height:52px;font-size:12px}.hero-toon{max-width:440px;padding:19px}.comic-heading h2{font-size:22px}.sample-bubble{font-size:8px;top:11px;left:11px;padding:6px 9px}.comic-cover-top{font-size:6px}.toon-ticker{padding-block:16px}.toon-ticker>div{gap:25px;font-size:8px}.how-section header h2{font-size:28px}.how-section header>p:last-child{font-size:11px}.feature-cards{grid-template-columns:1fr;gap:15px;margin-top:28px}.feature-cards article{display:grid;grid-template-columns:130px 1fr;column-gap:20px;padding:22px;align-items:center;min-height:180px}.feature-number{position:absolute;right:18px;top:15px;font-size:8px}.feature-mini{grid-row:1/3;margin:0;height:120px}.feature-mini--0{padding:25px 15px;height:100px}.mini-line{height:4px;margin-bottom:12px}.mini-cursor{bottom:24px}.feature-mini--1 svg{height:135px;width:140px;left:-17px}.mini-speech{left:81px;top:12px;font-size:13px;padding:4px 12px}.mini-grid{width:105px;margin-left:2px}.mini-grid i{height:29px}.mini-download{left:87px;bottom:2px}.feature-cards h3{font-size:15px;margin:0 0 9px;align-self:end}.feature-cards p{font-size:10px;align-self:start;max-width:none}.toon-price h2{font-size:22px}.price strong{font-size:36px}.workspace-heading{padding-block:27px 22px;align-items:start;gap:15px}.workspace-heading h1{font-size:21px}.workspace-heading .eyebrow{font-size:7px}.workspace-heading-actions{padding-top:2px;flex-direction:column-reverse;align-items:end;gap:8px}.workspace-heading .button-small{font-size:8px;min-height:32px;padding:6px 10px}.workspace-heading .button-small .icon{width:12px}.save-status{font-size:7px}.toon-studio-grid{grid-template-columns:1fr;gap:22px}.story-sidebar{position:static;padding:22px}.sidebar-title h2{font-size:14px}.field-label{font-size:12px}.story-input{height:170px;font-size:13px;line-height:1.85}.input-hint{font-size:10px}.story-count{font-size:9px}.example-chip{font-size:10px;padding:6px 10px}.subtle-label{font-size:10px}.studio-fieldset legend{font-size:12px}.studio-fieldset legend>span{font-size:9px}.toon-style-options{gap:12px}.style-illustration{height:90px}.style-illustration svg{height:112px;width:103px;left:calc(50% - 51px);bottom:-29px}.toon-style-card strong{font-size:11px}.toon-style-card>span:last-child{font-size:8px}.character-options{gap:18px}.character-avatar{width:70px;height:70px}.character-avatar svg{width:77px;height:85px}.character-card strong{font-size:11px;margin-top:10px}.story-sidebar .button{font-size:12px;min-height:49px}.control-note,.provider-note{font-size:10px}.toon-stage{padding:18px}.stage-steps{gap:13px}.stage-step{font-size:10px;gap:6px}.stage-step i{width:18px;height:18px;font-size:8px}.project-status{font-size:8px}.toon-empty{min-height:540px}.empty-comic-preview{width:95%;max-width:410px}.empty-comic-copy{margin-top:-40px;max-width:270px}.empty-comic-copy h2{font-size:20px}.empty-comic-copy p{font-size:11px}.empty-comic-preview .sample-bubble{font-size:6px}.empty-story-icon{width:48px;height:48px;font-size:25px;margin-bottom:20px}.sample-tag{font-size:7px}.toon-progress{min-height:500px}.toon-progress h2{font-size:18px}.editor-heading{padding-block:24px 20px}.editor-heading h2{font-size:19px}.editor-heading p:last-child{font-size:11px}.editor-heading .eyebrow{font-size:8px}.demo-pill{font-size:8px}.comic-panel-grid{gap:18px}.panel-card-heading{padding:13px 15px}.panel-card-heading strong{font-size:11px}.panel-state{font-size:8px}.panel-script-fields{padding-inline:15px}.panel-script-fields .field-label,.panel-result-fields .field-label{font-size:11px}.panel-script-fields .text-input,.panel-result-fields textarea{font-size:13px}.panel-script-fields textarea[name=scene]{height:100px}.panel-script-fields textarea[name=dialogue]{height:77px}.panel-script-fields input[name=speaker]{height:41px}.panel-result-fields{padding:15px}.panel-result-fields textarea{height:75px}.panel-actions button{font-size:10px;min-height:37px;padding:7px 10px}.panel-actions .icon{width:13px;height:13px}.panel-regenerate-fields p{font-size:10px}.panel-regenerate-fields>.button{font-size:11px;min-height:39px}.script-actions{justify-content:stretch;gap:8px}.script-actions>.button{flex:1;padding:11px 12px;font-size:11px}.script-actions p{font-size:9px;text-align:left}.toon-export{padding:20px}.toon-export h2{font-size:16px}.toon-export header p{font-size:10px}.export-files{grid-template-columns:1fr 1fr;gap:8px}.export-files>div{padding:11px;gap:8px}.export-files strong{font-size:10px}.export-files small{font-size:7px}.toon-export>.check-row{font-size:10px}.toon-export>.button{font-size:12px}.download-actions>.button{font-size:11px}.toon-export>.text-button{font-size:10px}.price-experiment{font-size:9px}.toon-workspace{padding-bottom:45px}.auth-layout{grid-template-columns:1fr;max-width:460px;gap:27px;padding-block:40px 55px}.auth-art{display:none}.auth-story h1{font-size:30px}.auth-story>p:not(.eyebrow){font-size:12px}.auth-card{padding:26px}.auth-card .text-input{font-size:13px}.auth-card .button{font-size:12px}.auth-card .check-row{font-size:11px}.auth-card .field-label{font-size:12px}.account-heading{padding-block:30px 25px}.account-heading h1{font-size:26px}.account-heading .button{font-size:10px;padding:11px 14px;min-height:42px}.project-card-body{padding:17px}.project-card h2{font-size:15px}.project-cover{height:220px}.project-card-actions>.button{font-size:9px;padding:9px 8px}.project-meta{font-size:8px}.footer-top{flex-direction:column;gap:23px}.footer-top p{font-size:10px}.business-info{font-size:8px;gap:4px 11px}.footer-bottom{font-size:7px}.legal-dialog{padding:24px}.legal-dialog>p{font-size:12px}}
@media(max-width:430px){.page-wrap,.nav-wrap,.site-footer{width:calc(100% - 32px)}.site-header{height:62px}.nav-wrap{gap:16px}.brand{font-size:16px;gap:4px}.brand-symbol{width:24px;height:24px;margin-right:2px}.brand-symbol svg{width:17px;height:17px}.brand-toon{letter-spacing:-.8px}.main-nav{gap:12px}.nav-link{font-size:9px}.nav-actions{gap:11px}.nav-login{font-size:9px;gap:3px}.nav-login .icon{width:12px}.language-switch select{font-size:8px}.nav-logout{font-size:8px}.environment-note{font-size:8px;padding:7px 14px}.toon-hero{padding-top:35px;gap:42px}.hero-heading{font-size:38px;letter-spacing:-1.8px}.hero-description{font-size:12px}.hero .eyebrow{font-size:8px}.hero-note{font-size:8px}.hero-toon{padding:15px;border-radius:9px;box-shadow:5px 6px 0 #eae2df;transform:rotate(1deg)}.comic-cover-top{font-size:5px;padding-bottom:10px;gap:5px}.comic-demo-label{font-size:5px}.comic-heading{padding-block:15px}.comic-heading h2{font-size:18px}.comic-edition{font-size:6px;margin-bottom:5px}.sample-comic{gap:7px}.sample-bubble{font-size:6px;left:8px;top:9px;padding:5px 7px;max-width:calc(100% - 27px)}.sample-panel--3 .sample-bubble,.sample-panel--6 .sample-bubble{bottom:9px}.sample-panel--5 .sample-bubble{font-size:10px}.comic-cover-bottom{font-size:5px}.hero-tools{font-size:6px;letter-spacing:1px}.how-section{padding-block:50px}.how-section header h2{font-size:25px}.feature-cards article{grid-template-columns:100px 1fr;gap:16px;padding:19px}.feature-mini--0{padding:23px 12px}.feature-mini--1 svg{width:118px;left:-17px}.mini-speech{left:61px;padding:4px 10px}.mini-grid{width:86px;margin-left:0}.mini-download{left:66px;width:37px;height:37px;font-size:16px}.feature-cards h3{font-size:13px}.feature-cards p{font-size:9px}.toon-price{padding:24px 21px}.price strong{font-size:33px}.price-action{gap:15px}.price-action>.button{font-size:10px;padding:12px 15px;gap:10px;min-height:45px}.toon-price h2{font-size:21px}.toon-price p:not(.eyebrow){font-size:10px}.toon-price .eyebrow{font-size:8px}.workspace-heading{padding-block:24px 20px}.workspace-heading h1{font-size:19px}.workspace-heading .eyebrow{font-size:6px}.workspace-heading-actions{gap:8px}.workspace-heading .button-small{font-size:7px;min-height:29px;padding:5px 8px;gap:5px}.save-status{font-size:6px}.story-sidebar{padding:20px}.toon-style-options{gap:9px}.style-illustration{height:76px}.toon-style-card>span:last-child{font-size:7px}.toon-stage{padding:15px}.stage-steps{gap:9px}.stage-step{font-size:8px;gap:4px}.stage-step i{width:17px;height:17px;font-size:7px}.project-status{font-size:7px;padding:3px 6px}.toon-empty{min-height:460px}.empty-comic-copy h2{font-size:18px}.empty-comic-copy p{font-size:10px}.editor-heading h2{font-size:17px}.editor-heading p:last-child{font-size:10px}.export-files{grid-template-columns:1fr}.toon-export{padding:17px}.project-grid{grid-template-columns:1fr}.project-cover{height:300px}.project-card-actions>.button{font-size:11px;min-height:42px}.project-card-body{padding:20px}.project-card h2{font-size:17px}.project-meta{font-size:9px}.account-heading{flex-direction:column;align-items:start;gap:17px}.account-heading>.button{width:100%;font-size:11px}.account-heading h1{font-size:26px}.account-page{padding-bottom:50px}.auth-story h1{font-size:27px}.auth-card{padding:22px}.footer-bottom>span:last-child{font-size:5px}.legal-dialog{padding:21px}.dialog-top h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
/* Readable working controls and a separate caption for the character study. */
.studio-fieldset legend{display:block}.studio-fieldset legend>span{display:block;margin-top:5px;line-height:1.7;max-width:100%}.auth-art-word{position:static;display:block;font-size:26px;line-height:1.35;margin-bottom:20px}.auth-art-caption{position:static;display:block;margin-top:15px;line-height:1.8;letter-spacing:.4px}.auth-art-star{top:24px}.auth-art svg{margin-top:2px}.toon-style-card:has(input:focus-visible) .style-illustration,.character-card:has(input:focus-visible) .character-avatar{outline:3px solid #8a70ae;outline-offset:3px}.panel-script-fields .text-input[readonly]{opacity:.8}.text-input,.button{font-size:13px}.field-label{font-size:12px}.panel-script-fields .text-input,.panel-result-fields textarea{font-size:13px}.check-row{color:#766b7b}.input-hint,.control-note,.provider-note{color:#8b7f91}.auth-card .check-row,.auth-switch{font-size:11px;color:#8c7a96}.auth-card .button{font-size:13px}.auth-card .field-label{font-size:12px}.auth-card .text-input{font-size:14px}.panel-regenerate-fields .text-input{font-size:13px}
@media(max-width:700px){.text-input,.story-input,.auth-card .text-input,.panel-script-fields .text-input,.panel-result-fields textarea,.panel-regenerate-fields .text-input{font-size:16px}.field-label,.auth-card .field-label,.panel-script-fields .field-label,.panel-result-fields .field-label{font-size:12px}.studio-fieldset legend>span{font-size:10px}.story-sidebar .button,.script-actions>.button,.download-actions>.button,.toon-export>.button{font-size:13px}.panel-actions button{font-size:11px}.check-row,.toon-export>.check-row{font-size:11px}.input-hint,.control-note,.provider-note{font-size:11px}}
.panel-script-fields select[name=speaker]{height:43px;padding-block:8px}.stage-toolbar{scroll-margin-top:24px}.toon-stage{scroll-margin-top:24px}.panel-actions button{font-size:11px;padding:9px 12px;min-height:37px}.panel-actions .icon{width:13px;height:13px}.panel-regenerate-fields .button{font-size:12px}.script-actions>.button{font-size:13px}.export-files strong{font-size:12px}.export-files small{font-size:10px}.toon-export>.text-button{font-size:11px}.price-experiment{font-size:10px}.download-actions>.button{font-size:12px}
@media(max-width:700px){.panel-script-fields select[name=speaker]{height:47px}.panel-actions button{font-size:11px}.stage-steps{gap:8px}.stage-step{min-height:36px}.export-files small{font-size:10px}}
/* Grid children must shrink below their content width on narrow screens. */
.story-sidebar,.sidebar-title,.workspace-heading>div,.editor-heading>div,.comic-panel-card,.panel-script-fields,.panel-result-fields{min-width:0}.sidebar-title h2{min-width:0;word-break:normal;overflow-wrap:anywhere}.toon-style-card strong{overflow-wrap:anywhere}.character-options{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){.toon-studio-grid{grid-template-columns:minmax(0,1fr)}.toon-workspace .workspace-heading{flex-wrap:wrap}.workspace-heading-actions{margin-left:auto}.toon-workspace .stage-toolbar{flex-wrap:wrap;gap:8px}.toon-workspace .stage-steps{flex-wrap:wrap;row-gap:3px}}
@media(max-width:430px){.main-nav .nav-link:first-child{display:none}.nav-wrap{gap:12px}.main-nav{margin-left:auto}.nav-actions{margin-left:0}.sidebar-title h2{font-size:13px}.workspace-heading h1{font-size:18px}.editor-heading{gap:12px}}
/* The six examples below are real provider output; the studio demo stays distinct. */
.hero-toon--actual{transform:rotate(1.4deg)}.real-sample-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.real-sample-panel{display:block;position:relative;padding:0;border:1px solid #d8ced7;border-radius:5px;overflow:hidden;background:#fffefa;line-height:0}.real-sample-panel img{width:100%;height:auto}.real-sample-panel>span{position:absolute;bottom:7px;right:7px;background:#fffaf0e8;border:1px solid #d9d1c7;border-radius:3px;padding:3px 4px;font-size:7px;line-height:1.2;color:#74697a}.real-sample-panel:hover{outline:2px solid #b49bcc;outline-offset:2px}.real-sample-note{font-size:9px;color:#9b8da0;line-height:1.8;margin-top:13px}.sample-dialog{padding:13px;width:min(620px,calc(100% - 30px));max-height:90vh;border:1px solid #ddcfdf;border-radius:12px;background:var(--white);color:var(--ink)}.sample-dialog::backdrop{background:#29202d99;backdrop-filter:blur(5px)}.sample-dialog header{display:flex;align-items:center;justify-content:space-between;padding:3px 5px 13px;font-size:11px;color:#8d789a}.sample-dialog>img{width:100%;height:auto}.sample-dialog>p{padding:14px 8px 6px;color:#9a879f;font-size:11px;line-height:1.8}.hero-toon--actual .comic-heading h2{padding-right:40px}.hero-toon--actual .comic-demo-label{font-size:7px}
@media(max-width:700px){.hero-toon--actual{max-width:440px}.real-sample-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.real-sample-note{font-size:10px}.real-sample-panel>span{font-size:8px}.hero-toon--actual .comic-demo-label{font-size:7px}.hero-toon--actual .comic-heading h2{font-size:21px}}
@media(max-width:430px){.hero-toon--actual .comic-heading h2{font-size:18px}.real-sample-note{font-size:9px}.sample-dialog{padding:10px}.sample-dialog>p{font-size:10px}}
/* Credits belong to the workspace, with one explicit checkout step. */
.wallet-nav{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid #dcd1e5;border-radius:20px;background:#eee7f5;font-size:11px;font-weight:600;white-space:nowrap}.credit-symbol{color:#9981b2;font-size:16px;line-height:1}.workspace-subnav{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:24px;border-bottom:1px solid var(--line)}.workspace-tabs{display:flex;gap:25px}.workspace-tabs>button{font-size:12px;padding:0 1px 16px;color:#a597ab;border-bottom:2px solid transparent}.workspace-tabs>button.active{color:var(--ink);border-bottom-color:var(--ink)}.workspace-wallet{display:flex;align-items:center;gap:7px;font-size:10px;color:#a18aac;padding-bottom:13px}.workspace-wallet strong{font-size:13px;color:#66566f}.workspace-wallet>button{margin-left:10px;color:#836496;font-size:11px;text-decoration:underline;text-underline-offset:4px}.credit-dialog{width:min(720px,calc(100% - 32px));padding:30px;border:1px solid #dacde3;border-radius:15px;background:var(--paper);max-height:90vh;color:var(--ink)}.credit-dialog::backdrop{background:#29202d99;backdrop-filter:blur(4px)}.credit-dialog .dialog-top h2{margin-top:9px}.credit-dialog-intro{font-size:12px;color:#927e9b;line-height:1.9;margin-top:-5px}.credit-current{display:flex;align-items:center;justify-content:space-between;background:#ebe3f5;border:1px solid #d9cce5;border-radius:9px;margin:22px 0;padding:16px 20px;font-size:12px;color:#927b9e}.credit-current strong{font-size:25px;font-weight:500;color:#6f547f}.credit-current small{font-size:11px;font-weight:400}.credit-packages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.credit-package{display:flex;flex-direction:column;border:1px solid #ded3e5;background:#fffefa;border-radius:10px;padding:19px;cursor:pointer;position:relative;min-width:0}.credit-package input{position:absolute;opacity:0}.credit-package:has(input:checked){border-color:#a68aba;outline:2px solid #a68aba;background:#f5effa}.credit-package:has(input:focus-visible){outline:3px solid #665176;outline-offset:3px}.credit-package-name{font-size:10px;color:#a18bac}.credit-package strong{font-size:18px;font-weight:500;margin:12px 0 6px;letter-spacing:-.5px}.credit-package-price{font-size:12px;color:#9a829f}.credit-costs{font-size:10px;color:#a28daa;line-height:1.9;margin:17px 0}.credit-consent{font-size:11px;margin-bottom:20px}.credit-dialog #credit-checkout{font-size:13px}.credit-disclaimer{font-size:10px;color:#a18aaa;line-height:1.9;text-align:center;margin-top:13px}.character-add-link{display:block;font-size:10px;color:#a189ae;border:1px dashed #d5c6df;padding:9px;border-radius:7px;width:100%;margin-top:15px}.character-library-view{padding-bottom:30px}.character-library-intro{max-width:650px;margin:30px 0}.character-library-intro h2{font-size:25px;font-weight:500;letter-spacing:-.6px;margin:13px 0}.character-library-intro>p:last-of-type{font-size:12px;color:#99849e;line-height:1.9}.character-cost{display:inline-flex;gap:7px;align-items:center;font-size:11px;color:#a086ad;margin-top:15px}.character-library-layout{display:grid;grid-template-columns:380px minmax(0,1fr);gap:35px}.character-form{border:1px solid #e0d3e6;border-radius:12px;background:#fffdf9;padding:25px}.character-form>.field-label:first-child{margin-top:0}.character-form .button{margin-top:17px}.character-form textarea{min-height:150px}.character-file-input{font-size:11px;width:100%;padding:10px;border:1px dashed #d5c6df;background:#f6f0f9;border-radius:7px;color:#a489af}.character-file-input::file-selector-button{border:0;background:#e9ddef;color:#92749f;border-radius:4px;font:inherit;padding:7px 10px;margin-right:12px}.character-processing-note{font-size:10px;color:#a18ba8;line-height:1.9;margin-top:20px}.character-upload-preview{margin-top:14px}.character-upload-preview img{max-height:220px;width:100%;object-fit:contain;background:#eee9e0;border-radius:8px}.character-upload-preview button{display:block;margin:8px 0 0 auto;font-size:10px}.saved-character-library h3{font-size:15px;font-weight:500;margin:6px 0 20px}.saved-character-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.saved-character-card{min-width:0;border:1px solid #e1d6e7;border-radius:10px;background:#fffefa;overflow:hidden}.saved-character-picture{aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#e9e1ef;color:#ac8dbb;font-size:45px;overflow:hidden}.saved-character-picture img{width:100%;height:100%;object-fit:cover}.saved-character-card h4{font-size:14px;font-weight:500;margin:15px 14px 5px;overflow-wrap:anywhere}.saved-character-card p{font-size:9px;color:#a78bb3;margin:0 14px}.saved-character-card .button{font-size:10px;min-height:35px;display:flex;margin:14px;padding:8px}.saved-character-choice .character-avatar>span{font-size:22px;color:#a485b0;display:grid;place-items:center;width:100%;height:100%}.saved-character-choice .character-avatar>img{position:absolute;width:100%;height:100%;object-fit:cover;border-radius:50%;inset:0}.credit-export-note{font-size:11px;color:#9d80ad;line-height:1.9;margin:12px 0 16px}.account-credit-section{padding:35px;background:#eee6f5;border:1px solid #dfd1e8;border-radius:12px;margin-top:-35px;margin-bottom:75px}.account-credit-section>header{display:flex;justify-content:space-between;align-items:center;gap:25px}.account-credit-section h2{font-size:23px;font-weight:500;margin-top:10px}.account-credit-balance{display:flex;align-items:center;gap:9px;font-size:11px;color:#9b80a8}.account-credit-balance strong{font-size:26px;font-weight:500;color:#7d5d8e}.account-credit-balance .button{margin-left:20px;font-size:11px;min-height:39px}.account-credit-section h3{font-size:12px;font-weight:500;margin:30px 0 14px}.credit-ledger-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dfd2e7;padding:14px 0}.credit-ledger-row strong{font-size:12px;font-weight:500}.credit-ledger-row small{display:block;font-size:9px;color:#a58aad;margin-top:4px}.credit-ledger-row>span{font-size:14px;font-variant-numeric:tabular-nums}.credit-ledger-row .positive{color:#7c9162}.credit-ledger-row .negative{color:#a58aad}.account-credit-section>.text-button{display:inline-block;margin-top:20px;color:#9a7aa9;font-size:11px}.panel-not-generated{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;aspect-ratio:4/5;background:#f0e9f4;padding:20px;color:#b198bf;font-size:11px}.panel-not-generated .button{font-size:11px}.panel-not-generated>span{font-size:40px;color:#c5afd0}
@media(max-width:1000px){.character-library-layout{grid-template-columns:330px minmax(0,1fr);gap:24px}.saved-character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-form{padding:22px}}
@media(max-width:700px){.workspace-subnav{gap:15px;margin-bottom:20px;flex-wrap:wrap;row-gap:0}.workspace-tabs{gap:20px}.workspace-tabs>button{font-size:11px;padding-bottom:13px}.workspace-wallet{margin-left:auto;font-size:9px;gap:5px}.workspace-wallet strong{font-size:12px}.workspace-wallet>button{font-size:10px;margin-left:6px}.credit-dialog{padding:24px}.credit-packages{gap:9px}.credit-package{padding:14px 11px}.credit-package strong{font-size:16px}.credit-package-price{font-size:11px}.credit-package-name{font-size:9px}.credit-dialog-intro,.credit-consent{font-size:11px}.character-library-layout{grid-template-columns:minmax(0,1fr)}.character-library-intro h2{font-size:23px}.character-form .text-input{font-size:16px}.character-form .field-label{font-size:12px}.character-file-input{font-size:12px}.character-form .button{font-size:13px}.saved-character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-processing-note{font-size:11px}.account-credit-section{padding:24px;margin-top:-10px;margin-bottom:45px}.account-credit-section>header{flex-wrap:wrap;gap:20px}.account-credit-balance{flex-wrap:wrap}.account-credit-balance .button{margin-left:10px}.account-credit-section h2{font-size:22px}.credit-ledger-row strong{font-size:11px}.credit-ledger-row small{font-size:10px}.wallet-nav{font-size:10px;padding:4px 8px;gap:4px}}
@media(max-width:430px){.wallet-nav{font-size:9px;padding:4px 7px}.wallet-nav .credit-symbol{font-size:13px}.nav-logout{display:none}.workspace-tabs{gap:17px}.workspace-tabs>button{font-size:10px}.workspace-wallet{padding-bottom:12px}.workspace-wallet>span:not(.credit-symbol){display:none}.credit-dialog{padding:20px}.credit-packages{grid-template-columns:1fr}.credit-package{display:grid;grid-template-columns:1fr auto;gap:4px 15px;padding:14px 17px}.credit-package-name{grid-column:1/-1}.credit-package strong{font-size:17px;margin:0}.credit-package-price{align-self:center}.credit-dialog .dialog-top h2{font-size:22px}.credit-dialog-intro{font-size:11px}.credit-costs{font-size:10px}.saved-character-card .button{font-size:10px;margin:11px}.saved-character-card h4{font-size:13px;margin:12px 11px 5px}.character-library-intro h2{font-size:21px}.character-form{padding:21px}.script-actions{flex-wrap:wrap}.script-actions>.button{min-width:calc(50% - 8px)}.script-actions>#generate-toon{flex-basis:100%}}
.toon-credit-pricing{padding-block:25px 20px}.toon-credit-pricing>header{max-width:680px}.toon-credit-pricing h2{font-size:29px;font-weight:500;letter-spacing:-.8px;margin:14px 0}.toon-credit-pricing>header>p:last-child{font-size:12px;color:#9a87a1;line-height:1.9}.home-credit-packages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px;margin-top:33px}.home-credit-package{border:1px solid #e0d6e7;border-radius:12px;background:#fffefa;padding:28px}.home-credit-package.featured{background:#e9e2f2;border-color:#d3c4df}.home-package-name{font-size:11px;color:#a087ad}.home-credit-package h3{font-size:22px;font-weight:500;letter-spacing:-.7px;margin:20px 0 8px}.home-package-price strong{font-size:31px;letter-spacing:-1.2px;font-weight:500}.home-package-cost{font-size:11px;line-height:1.95;color:#9c86a6;margin:18px 0 24px}.home-credit-package>.button{display:flex;width:100%;font-size:12px;justify-content:space-between}.home-price-disclosure{font-size:10px;color:#ac96b4;line-height:1.9;margin-top:20px;max-width:900px}
@media(max-width:700px){.home-credit-packages{gap:12px}.home-credit-package{padding:21px 18px}.home-credit-package h3{font-size:19px}.home-package-price strong{font-size:25px}.home-package-cost{font-size:10px}.home-credit-package>.button{font-size:10px;padding:11px;gap:8px}.toon-credit-pricing h2{font-size:25px}.toon-credit-pricing>header>p:last-child{font-size:11px}}
@media(max-width:500px){.home-credit-packages{grid-template-columns:1fr;gap:14px}.home-credit-package{display:grid;grid-template-columns:1fr auto;gap:8px 20px;padding:23px}.home-package-name{grid-column:1/-1}.home-credit-package h3{margin:4px 0;font-size:23px}.home-package-price{align-self:center}.home-package-price strong{font-size:25px}.home-package-cost{grid-column:1/-1;margin:5px 0 10px;font-size:11px}.home-credit-package>.button{grid-column:1/-1;font-size:12px;min-height:43px;padding:12px 15px}.home-price-disclosure{font-size:10px}}
/* Small instructions remain readable, including on the compact workspace. */
.input-hint,.control-note,.provider-note,.character-processing-note,.credit-costs,.credit-disclaimer,.home-price-disclosure,.auth-switch,.google-slot,.character-library-intro>p:last-of-type,.toon-credit-pricing>header>p:last-child,.editor-heading p:last-child,.panel-regenerate-fields p,.real-sample-note,.credit-dialog-intro,.credit-export-note{color:#796d80}.panel-actions button{color:#826793}.panel-result-fields .field-label,.panel-script-fields .field-label{color:#7d6b85}.save-status{font-size:10px;color:#8b7a94}.save-status.is-dirty{color:#a17a49}.panel-state,.demo-pill{font-size:9px;color:#947b9f}.project-status{font-size:9px;color:#8b7299}.stage-step{font-size:10px;color:#a28eac}.stage-step.active{color:#6f557f}.workspace-wallet{color:#8d759b}.character-cost,.character-add-link{color:#8b6c9c}
@media(max-width:700px){.save-status{font-size:9px}.panel-state,.demo-pill,.project-status{font-size:9px}.stage-step{font-size:10px}.wallet-nav,.language-switch select,.nav-link,.nav-login{min-height:36px;display:inline-flex;align-items:center}.language-switch select{min-width:32px;font-size:10px}.workspace-heading .button-small{font-size:9px;min-height:35px}.workspace-heading-actions{gap:7px}.sample-tag{font-size:8px}}
@media(max-width:430px){.nav-link{font-size:9px}.wallet-nav{min-height:31px}.workspace-heading h1{font-size:18px}.workspace-heading .eyebrow{font-size:7px}.save-status{font-size:8px}.stage-step{font-size:9px}.project-status{font-size:8px}.character-avatar{width:64px;height:64px}.character-options{gap:10px}}
.panel-art{aspect-ratio:4/5}.comic-panel-card.is-not-generated .panel-art{aspect-ratio:auto;min-height:145px}.panel-not-generated{aspect-ratio:auto;min-height:145px;gap:12px;padding:20px}.panel-not-generated>span{font-size:27px}.panel-not-generated p{font-size:11px}.ungenerated-script-details{border-top:1px solid #e5dbea;background:#fffefa}.ungenerated-script-details>summary{font-size:11px;padding:12px 15px;cursor:pointer;color:#8e769b;line-height:1.8}.ungenerated-script-details[open]>summary{border-bottom:1px solid #ece4f0}.ungenerated-script-details .panel-result-fields>.field-label:not(:first-child){margin-top:16px}.ungenerated-script-details textarea[name=scene]{height:100px}
@media(max-width:430px){.download-actions{flex-direction:column}.download-actions>.button{min-height:46px;width:100%;font-size:12px}.panel-actions{flex-wrap:wrap}.panel-actions>button{flex:1;justify-content:center}}
.episode-continuation{margin-top:22px;padding:24px;border:1px solid #ded2e5;border-radius:11px;background:#fffdfa}.episode-continuation h3{font-size:17px;font-weight:500;margin:13px 0 8px;letter-spacing:-.4px}.episode-continuation p:not(.eyebrow){font-size:11px;line-height:1.95;color:#897490}.translation-controls{display:flex;gap:10px;margin:20px 0 13px}.translation-controls select{width:130px;font-size:12px}.translation-controls .button{flex:1;font-size:12px;white-space:normal}.episode-continuation>a{font-size:12px;justify-content:space-between}.character-library-view>.inline-message{max-width:760px}
@media(max-width:700px){.episode-continuation{padding:21px}.translation-controls select{font-size:16px;width:120px}.translation-controls .button{font-size:12px}.episode-continuation>a{font-size:13px}}
@media(max-width:430px){.translation-controls{flex-direction:column}.translation-controls select{width:100%}.episode-continuation{padding:19px}.episode-continuation h3{font-size:16px}.episode-continuation p:not(.eyebrow){font-size:11px}}
.project-meta{flex-wrap:wrap}.episode-language{font-size:9px;letter-spacing:.7px;padding:2px 5px;border:1px solid #dcd0e5;border-radius:4px;color:#a089ad}.project-meta .project-status{margin-left:auto}
.panel-edit-button{margin:11px 15px 0;width:calc(100% - 30px);min-height:40px;justify-content:center;border:1px solid #b8a4e0;background:#f1ebfd;color:#6843a8;font-size:11px}.panel-edit-button:hover{background:#e5daf8;border-color:#9270c8}.panel-edit-button:disabled{opacity:.45;cursor:wait}
.edited-panel-hint{font-size:10px;line-height:1.65;color:#8a6d9e;margin:8px 0 12px}.panel-result-fields textarea[readonly]{background:#f6f1f9;color:#8c7b96;cursor:default}
.account-purchases-section{padding-top:28px;padding-bottom:80px;border-top:1px solid #e4ddea}.account-purchases-section>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.account-purchases-section h2{font-size:26px;letter-spacing:-.04em;margin:7px 0 0}.account-purchases-section>header .button{font-size:11px;min-height:39px}.credit-order-list{display:grid;gap:11px}.credit-order-card{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1fr) auto;gap:20px;align-items:center;padding:22px 24px;border:1px solid #e0d7e8;border-radius:12px;background:#fffdfa}.credit-order-info{min-width:0}.credit-order-code{font-size:10px;letter-spacing:.01em;line-height:1.6;overflow-wrap:anywhere;color:#93869d;margin:0 0 4px}.credit-order-date{font-size:10px;color:#9a8b9e;margin:0}.credit-order-amount{display:grid;gap:5px}.credit-order-amount strong{font-size:17px;color:#3b3242;letter-spacing:-.03em}.credit-order-amount span{font-size:10px;color:#97869e}.credit-order-status{font-size:11px;line-height:1.7;color:#87758d;display:grid;gap:5px}.credit-order-status .settled{color:#55815c}.credit-order-status .pending{color:#a17b45}.credit-order-refund-state{font-size:9px;color:#a68ca9}.credit-order-actions .button{font-size:10px;padding:9px 12px;min-height:36px}.refund-request-dialog{max-width:560px;padding:30px}.refund-request-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.refund-request-dialog header h2{font-size:23px;margin:9px 0 0}.refund-request-dialog .eyebrow{font-size:9px;margin:0}.refund-request-intro{font-size:12px;line-height:1.9;color:#8e7a9c;margin:21px 0}.refund-order-label{font-size:10px;color:#857091;background:#f3edf9;border-radius:7px;padding:10px 12px;overflow-wrap:anywhere}.refund-request-dialog textarea{font-size:14px;line-height:1.7}.refund-request-dialog .inline-message{font-size:12px}.refund-request-dialog .full-width{margin-top:20px}.refund-request-dialog[open]{max-height:90dvh;overflow:auto}@media(max-width:700px){.credit-order-card{grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:19px}.credit-order-status{grid-column:1}.credit-order-actions{grid-column:2;grid-row:2}.credit-order-amount{text-align:right}.account-purchases-section>header{gap:12px}.account-purchases-section h2{font-size:23px}.refund-request-dialog{width:calc(100vw - 28px);padding:22px;max-width:none}.refund-request-dialog textarea{font-size:16px}.refund-request-dialog header h2{font-size:20px}}
.character-retention-note{font-size:10px!important;line-height:1.8!important;color:#967da5!important;max-width:640px}

.workspace-limit-note{font-size:10px;line-height:1.9;color:#96859d;margin:-6px 0 20px;overflow-wrap:anywhere}.generation-status-note{font-size:12px;line-height:1.8;background:#f5eee0;border-color:#e7d7b9;color:#8d7349}.workspace-limit-note+.generation-status-note{margin-top:-5px;margin-bottom:22px}@media(max-width:700px){.workspace-limit-note{font-size:10px;line-height:1.8;margin-top:0}}

.export-source-note,.project-export-note{font-size:12px;line-height:1.8;color:#75667e;margin:16px 0;overflow-wrap:anywhere}.project-export-note{font-size:11px;margin:14px 0 0}.toast{max-width:min(560px,calc(100vw - 32px))}

/* First episode: a clear starting point, recoverable local text, and a compact cast picker. */
.studio-start,.studio-resume{min-width:0;border:1px solid var(--line);border-radius:18px;padding:25px;margin:0 0 24px;background:var(--white)}.studio-start>header,.studio-resume>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.studio-start h2{font-size:23px;letter-spacing:-.04em;line-height:1.4;margin:8px 0}.studio-start>header p:last-child,.studio-resume>header p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.studio-start>header>.text-button{flex-shrink:0;font-size:12px}.story-purpose-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.story-purpose-options button{padding:16px 18px;border:1px solid var(--line);border-radius:12px;text-align:left;background:var(--paper);min-width:0;transition:background .15s,border-color .15s}.story-purpose-options strong{font-size:14px;display:block;font-weight:700}.story-purpose-options span{font-size:11px;color:var(--muted);display:block;line-height:1.6;margin-top:5px}.story-purpose-options button[aria-pressed=true]{background:#eaf3dc;border-color:#8ba66a;box-shadow:inset 0 0 0 1px #8ba66a}.starter-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.starter-template{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 17px;border:1px dashed #cbd5bd;border-radius:11px;min-width:0;text-align:left}.starter-template:hover{background:#f4f7ee;border-style:solid}.starter-template strong{display:block;font-size:12px;font-weight:650}.starter-template small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:3px}.starter-template-arrow{font-size:18px;color:#6b8152}.studio-resume{background:transparent;padding:21px 24px}.studio-resume>header{margin-bottom:14px}.studio-resume h2{font-size:16px;letter-spacing:-.02em;margin:0 0 4px}.studio-resume>header>a{font-size:11px;flex-shrink:0;color:var(--accent-dark)}.recent-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.recent-project{display:flex;align-items:center;gap:11px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;min-width:0;background:var(--white)}.recent-project>span:nth-child(2){min-width:0;flex:1}.recent-project strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;font-weight:650}.recent-project small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.recent-project-icon{width:32px;height:36px;display:grid;place-items:center;flex-shrink:0;border-radius:7px;background:#eaf0df;color:#5b7340;font-size:20px}.recent-project>span:last-child{color:#718260;font-size:17px}.local-draft-notice{border:1px solid #cbd9b7;border-radius:14px;padding:19px 22px;margin-bottom:24px;background:#edf4e1;display:flex;align-items:center;justify-content:space-between;gap:20px}.local-draft-notice>div{display:flex;align-items:center;gap:14px;min-width:0}.local-draft-notice>div:last-child{flex-wrap:wrap;gap:12px;flex-shrink:0}.local-draft-notice h2{font-size:14px;font-weight:700;letter-spacing:-.02em;margin:0 0 4px}.local-draft-notice p{font-size:11px;color:#657650;line-height:1.8;margin:0}.local-draft-icon{font-size:28px;color:#6b8550}.local-draft-notice .text-button{font-size:10px}.workspace-config-error{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.workspace-config-error p{margin:0;font-size:12px}.workspace-config-error button{flex-shrink:0}.field-optional{font-size:10px;font-weight:400;color:var(--muted);margin-left:6px}.story-sidebar #story-title-hint{margin-top:7px}.story-sidebar #story-guidance{margin-top:9px}.story-sidebar #story-minimum{display:block;margin-top:4px;color:#79856c}.story-count.is-ready{color:#4e6a37}.field-error{font-size:11px;line-height:1.7;color:#a04733;margin:8px 0 10px}.text-input[aria-invalid=true],.character-options[aria-invalid=true]{border-color:#b8755f;outline:1px solid #b8755f;outline-offset:1px}.template-applied-notice{padding:11px 13px;border-radius:8px;background:#f1f5e9;border:1px solid #d9e3cb;margin:11px 0 15px}.template-applied-notice p{font-size:10px;color:#657553;line-height:1.8;margin:0}.template-applied-notice button{font-size:10px;margin-top:6px;color:#466a2a}.studio-settings{border-top:1px solid var(--line);margin-top:22px;padding-top:17px}.studio-settings>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer}.studio-settings>summary::-webkit-details-marker{display:none}.studio-settings>summary>span:first-child{min-width:0}.studio-settings>summary strong{display:block;font-size:12px;font-weight:700}.studio-settings>summary small{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.7;overflow-wrap:anywhere}.settings-change{display:flex;gap:6px;font-size:11px;color:#5d7547;flex-shrink:0;align-items:center}.settings-change i{font-style:normal;font-size:17px;transition:transform .15s}.studio-settings[open] .settings-change i{transform:rotate(45deg)}.settings-intro{margin:15px 0 0}.catalog-style-card{min-height:132px}.catalog-style-card .style-palette{display:flex;gap:0;height:45px;overflow:hidden;border-radius:8px;margin-bottom:10px;border:1px solid #00000008}.style-palette i{display:block;flex:1;min-width:0}.catalog-style-card>strong{font-size:11px;line-height:1.6;overflow-wrap:anywhere}.catalog-style-card>span:last-child{font-size:9px;line-height:1.7;display:block;color:var(--muted);margin-top:5px}.studio-settings .toon-style-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.studio-settings .toon-style-card{padding:11px;min-width:0}.studio-settings .studio-fieldset{margin-top:20px}.studio-settings .character-options{padding:2px}.script-actions.first-panel-first #generate-first-panel{order:-2}.script-actions.first-panel-first #save-script{order:-1}.script-actions.first-panel-first #generate-toon{order:0}.script-actions.first-panel-first>p{order:1}.auth-draft-context{padding:14px 16px;background:#eef4e5;border:1px solid #d3dfc4;border-radius:11px;margin-bottom:22px}.auth-draft-context strong{display:block;font-size:13px;font-weight:700;color:#3c5628}.auth-draft-context p{font-size:11px;line-height:1.8;color:#617550;margin:6px 0}.auth-draft-context a{font-size:10px;color:#45622d;text-decoration:underline;text-underline-offset:3px}.auth-password-wrap{position:relative}.auth-password-wrap .text-input{padding-right:83px}.auth-password-toggle{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:10px;color:#617550;padding:8px 0}.auth-message-action{font-size:11px;font-weight:650;text-decoration:underline;text-underline-offset:3px;display:block;margin-top:8px}.auth-storage-note{font-size:11px;line-height:1.8;margin-top:9px}
@media(max-width:1050px){.local-draft-notice{align-items:flex-start;flex-wrap:wrap}.local-draft-notice>div:last-child{padding-left:42px}.studio-start h2{font-size:21px}.story-purpose-options button{padding:14px}.starter-template{padding:12px 14px}}
@media(max-width:760px){.studio-start,.studio-resume{padding:20px;margin-bottom:18px;border-radius:15px}.studio-start>header{gap:14px;align-items:flex-start;flex-wrap:wrap;margin-bottom:17px}.studio-start h2{font-size:21px;letter-spacing:-.04em}.studio-start>header p:last-child{font-size:11px}.studio-start>header>.text-button{font-size:11px}.story-purpose-options{gap:7px}.story-purpose-options button{padding:12px 9px;text-align:center;border-radius:9px}.story-purpose-options strong{font-size:11px;line-height:1.6;word-break:keep-all}.story-purpose-options span{display:none}.starter-template-list{gap:8px;margin-top:10px}.starter-template{padding:12px;gap:7px;align-items:flex-start}.starter-template strong{font-size:11px;line-height:1.6}.starter-template small{font-size:9px;line-height:1.7}.starter-template-arrow{font-size:15px}.studio-resume>header{gap:10px;align-items:flex-start}.studio-resume h2{font-size:14px}.studio-resume>header p{font-size:10px}.studio-resume>header>a{font-size:10px;max-width:100px;text-align:right}.recent-projects{grid-template-columns:1fr}.recent-project{padding:11px 12px}.recent-project:not(:first-child){display:none}.local-draft-notice{padding:17px;margin-bottom:19px;gap:13px}.local-draft-notice h2{font-size:13px}.local-draft-notice p{font-size:10px}.local-draft-notice>div:last-child{padding-left:0;gap:11px}.local-draft-notice .button{font-size:11px;padding:9px 12px;min-height:37px}.local-draft-notice .text-button{font-size:10px}.workspace-config-error{align-items:stretch;flex-direction:column;gap:13px}.workspace-config-error p{font-size:11px}.story-sidebar #draft-story{min-height:48px;font-size:13px}.studio-settings{margin-top:18px}.studio-settings .toon-style-options{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-style-card{min-height:125px}.studio-settings .toon-style-card{padding:9px}.catalog-style-card .style-palette{height:35px}.catalog-style-card>strong{font-size:10px}.catalog-style-card>span:last-child{font-size:9px}.auth-password-toggle{font-size:11px}}
@media(max-width:390px){.studio-start,.studio-resume{padding:17px}.studio-start h2{font-size:20px}.starter-template-list{grid-template-columns:1fr}.starter-template{align-items:center}.starter-template small{margin-top:2px}.story-purpose-options strong{font-size:10px}.studio-settings .toon-style-options{grid-template-columns:repeat(2,minmax(0,1fr))}.local-draft-notice>div:first-child{gap:10px}.local-draft-icon{font-size:24px}}
.panel-count-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.panel-count-options label{position:relative;min-width:0;cursor:pointer}.panel-count-options input{position:absolute;inset:0;opacity:0;cursor:pointer}.panel-count-options span{display:block;text-align:center;padding:9px 4px;border:1px solid var(--line);border-radius:8px;font-size:11px;color:var(--muted);background:var(--paper)}.panel-count-options input:checked+span{color:#3c5429;background:#eaf3dc;border-color:#8ba66a;font-weight:700}.panel-count-options input:focus-visible+span{outline:3px solid #779d41;outline-offset:3px}.panel-count-options input:disabled+span{cursor:default;opacity:.6}.progress-panels{grid-template-columns:repeat(var(--panel-count,6),minmax(0,1fr));max-width:100%}
.progress-panels{min-width:0;flex-wrap:wrap;justify-content:center}.story-privacy-hint{font-size:10px!important;line-height:1.8;margin-top:7px!important}
.catalog-style-card:has(input:checked){background:#eff5e7;border:1px solid #75994e;border-radius:10px}.catalog-style-card:has(input:focus-visible){outline:3px solid #779d41;outline-offset:3px}
/* The first-panel action stays reachable before reviewing a long storyboard. */
.toon-stage .script-actions{position:sticky;top:10px;z-index:4;margin:0 0 22px;padding:16px 0 15px;background:#ecefe6f5;border-top:0;border-bottom:1px solid #d3ddc7;backdrop-filter:blur(8px)}.toon-stage .script-actions>p{flex-basis:100%;margin-bottom:0}.workspace-account-link{display:none;font-size:11px;font-weight:650;color:var(--accent-dark);white-space:nowrap}@media(max-width:760px){.workspace-account-link:not([hidden]){display:inline-flex}.toon-stage .script-actions{top:0;padding:13px 0;margin-bottom:18px;gap:8px}.toon-stage .script-actions>.button{min-height:42px;font-size:11px;padding:10px 12px}.toon-stage .script-actions.first-panel-first #generate-first-panel{flex:1 0 100%;justify-content:center}.toon-stage .script-actions>p{font-size:10px;line-height:1.8}}
.project-story-brief{display:none}@media(max-width:760px){.has-active-project .project-story-brief:not([hidden]){display:block}.has-active-project:not(.story-details-open) .story-form-details{display:none}.has-active-project .story-sidebar{padding:17px}.project-story-brief p{font-size:10px;line-height:1.6;color:var(--muted);margin:0 0 5px}.project-story-brief h2{font-size:17px;line-height:1.5;letter-spacing:-.035em;margin:0;overflow-wrap:anywhere}.project-story-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:11px;margin-top:12px}.project-story-actions button{font-size:10px;min-height:29px;padding:3px 0;color:var(--accent-dark);text-decoration:underline;text-underline-offset:4px}.story-details-open .story-form-details{margin-top:19px;border-top:1px solid var(--line);padding-top:20px}.story-details-open .story-form-details .sidebar-title{display:none}.has-active-project .toon-stage .editor-heading{padding-top:0}}
.style-sample{position:relative;display:block;margin-bottom:3px;overflow:hidden;border-radius:8px;aspect-ratio:1/1;background:#e9eedf}.style-sample-image{display:block;width:100%;height:100%;object-fit:cover}.style-sample-caption{position:absolute;bottom:5px;left:5px;right:5px;max-width:100%;padding:2px 4px;border-radius:4px;background:#fffef5eb;color:#46523c;font-size:8px!important;line-height:1.4;text-align:center;overflow-wrap:anywhere}.catalog-style-card.has-style-sample>strong{margin-top:6px}.catalog-style-card.has-style-sample{justify-content:flex-start}@media(max-width:760px){.style-sample-caption{font-size:7px!important;left:3px;right:3px;bottom:3px;padding:2px}}
/* Clip rounded artwork without creating a scroll container that disables sticky actions. */
.toon-stage{overflow:clip}
.generation-recovery{width:min(540px,100%);border:1px solid #cddbbd;background:#f5f8ef;border-radius:13px;padding:19px;margin:22px auto 0;text-align:center}.generation-recovery>p{font-size:12px;line-height:1.9;color:#526542;margin:0}.generation-recovery .generation-safe-check{font-size:10px;color:#738264;margin-top:9px}.generation-recovery>div{display:flex;justify-content:center;align-items:center;gap:15px;flex-wrap:wrap;margin-top:15px}.generation-recovery .button{font-size:12px;min-height:42px;padding:10px 17px}.generation-recovery .text-button{font-size:11px}.is-status-paused .studio-spinner{animation:none;opacity:.35}.is-status-paused .progress-panels i{animation:none}.progress-panels i.is-complete{background:#b9d892;border-color:#91b96c}@media(max-width:760px){.generation-recovery{padding:16px}.generation-recovery>p{font-size:11px}.generation-recovery .generation-safe-check{font-size:10px}.generation-recovery>div{gap:12px}.generation-recovery .button{font-size:11px;min-height:40px}.generation-recovery .text-button{font-size:10px}}
/* First-episode polish: explicit cost, one primary next step, and legible helper text. */
.studio-trial-summary{border:1px solid #d5dfc6;border-radius:12px;padding:16px 19px;margin:0 0 20px;background:#f0f5e6;display:grid;gap:6px;line-height:1.7}.studio-trial-summary strong{font-size:13px;color:#405331;font-weight:650}.studio-trial-summary span{font-size:12px;color:#5a6b4b}.studio-trial-summary span:last-child{color:#3b542b}.generation-credit-estimate{flex:1 0 100%;display:flex;flex-wrap:wrap;gap:7px 16px;padding:13px 16px;background:#f7faef;border:1px solid #cfdbbf;border-radius:10px;line-height:1.6;order:1}.generation-credit-estimate>strong{font-size:14px;color:#304b21}.generation-credit-estimate>span{font-size:13px;color:#4e653c}.generation-credit-estimate>p{flex-basis:100%;margin:0!important;font-size:12px;color:#5f7350}.generation-credit-estimate>p:empty{display:none}.generation-credit-estimate>small{flex-basis:100%;font-size:12px;color:#607252}.generation-credit-estimate.has-shortfall{background:#fff6e6;border-color:#e4cba0}.generation-credit-estimate.has-shortfall>span{color:#88591c}.script-actions>p#generation-hint{order:2;font-size:12px;line-height:1.7}.style-more-button{margin-top:12px;min-height:44px;font-size:13px;color:#476331;padding:6px 0}.toon-style-card[hidden]{display:none!important}.catalog-style-card>strong{font-size:14px;line-height:1.5}.catalog-style-card>span:last-child{font-size:12px;line-height:1.65}.style-sample-caption{position:static!important;display:block!important;font-size:12px!important;line-height:1.4!important;margin:0!important;border-radius:0!important;padding:6px!important}.style-sample{aspect-ratio:auto}.style-sample-image{aspect-ratio:1;object-fit:cover}.studio-settings .toon-style-options{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-settings>summary{min-height:48px}.studio-settings>summary strong{font-size:14px}.studio-settings>summary small,.settings-change{font-size:12px}.panel-count-options span{min-height:44px;display:grid;place-items:center;font-size:13px;padding:9px 4px}.studio-start>header p:last-child,.studio-resume>header p{font-size:14px}.story-purpose-options strong{font-size:15px}.story-purpose-options span{font-size:12px}.starter-template{min-height:80px}.starter-template strong{font-size:14px}.starter-template small{font-size:12px}.studio-start>header>.text-button,.studio-resume>header>a{font-size:13px;min-height:44px;display:inline-flex;align-items:center}.recent-project strong{font-size:14px}.recent-project small{font-size:12px}.local-draft-notice p,.local-draft-notice .text-button,.field-optional,.field-error,.template-applied-notice p,.template-applied-notice button,.story-privacy-hint,.character-retention-note{font-size:12px!important}.local-draft-notice .text-button,.template-applied-notice button{min-height:44px}.character-credit-math,.character-credit-estimate{font-size:14px;line-height:1.8;color:#405d2b}.character-credit-estimate{border-top:1px solid var(--line);padding-top:15px}.panel-cost-estimate{font-size:13px;line-height:1.7;color:#536d3f}.dialogue-readability-note{padding:10px 12px;border:1px solid #e2c994;border-radius:8px;background:#fff7e6;color:#815c22;font-size:12px;line-height:1.7;margin:8px 0 0}.export-caption-note,.export-retention-note{font-size:12px;line-height:1.8;color:#586b49;margin:12px 0}.download-actions #download-zip{order:-1}.episode-continuation p:not(.eyebrow),.edited-panel-hint,.generation-recovery .generation-safe-check{font-size:12px}.episode-continuation>a,.translation-controls .button{font-size:14px}.project-story-brief p,.project-story-actions button,.workspace-account-link{font-size:12px}.project-story-actions button,.workspace-account-link{min-height:44px}.generation-recovery>p,.generation-recovery .text-button{font-size:13px}.generation-recovery .button{font-size:14px;min-height:44px}
@media(max-width:760px){.studio-trial-summary{padding:14px 16px}.studio-start>header p:last-child{font-size:14px}.studio-start>header>.text-button{font-size:13px}.story-purpose-options{grid-template-columns:1fr;gap:8px}.story-purpose-options button{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:15px;padding:12px 14px;min-height:52px}.story-purpose-options strong{font-size:14px;flex-shrink:0}.story-purpose-options span{display:block;font-size:12px;margin:0;text-align:right;max-width:62%}.starter-template-list{grid-template-columns:1fr}.starter-template{min-height:72px;padding:14px}.starter-template strong{font-size:14px}.starter-template small{font-size:12px}.toon-stage .script-actions{position:static;padding:12px 0 16px}.toon-stage .script-actions>.button{min-height:46px;font-size:13px;padding:11px 14px;white-space:normal}.toon-stage .script-actions.first-panel-first #generate-first-panel{font-size:14px}.toon-stage .script-actions>p{font-size:12px}.generation-credit-estimate{gap:5px 12px;padding:12px}.studio-settings .toon-style-options{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-style-card>strong{font-size:14px}.catalog-style-card>span:last-child{font-size:12px}.local-draft-notice .button{font-size:13px;min-height:44px}.local-draft-notice h2{font-size:15px}.studio-resume>header>a{font-size:12px}.studio-resume h2{font-size:16px}.studio-resume>header p{font-size:12px}.project-story-actions{gap:4px 14px}.project-story-actions button{font-size:12px;min-height:44px}.generation-recovery>p,.generation-recovery .generation-safe-check{font-size:12px}.episode-continuation p:not(.eyebrow){font-size:12px}}
