:root{font:16px/1.45 'Segoe UI',system-ui,sans-serif;color:#131937;background:#f4f5ff;--blue:#2345ed;--muted:#565f83;--line:#e4e6f4;--white:#fff}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,label.upload{ -webkit-tap-highlight-color:transparent }
button{cursor:pointer;color:inherit;transition:background .16s,box-shadow .16s,scale .16s}
button:not(:disabled):active{scale:.96}
button:disabled{opacity:.48;cursor:default}
:focus-visible{outline:2px solid #2648ff;outline-offset:3px}
.top{background:#fff;border-bottom:1px solid var(--line)}
.top-content{width:min(1120px,100% - 48px);min-height:75px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.top-links{display:flex;gap:15px;align-items:center}
.top-links a,.team-links a{display:inline-flex;align-items:center;text-decoration:none}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#141940;font-weight:840;letter-spacing:-.06em;font-size:1.75rem}
.brand img{display:block;flex:none}
.brand-dot,.intro h1 span{color:var(--blue)}
.help-link{color:#303b73;font-size:.88rem;text-decoration:none;font-weight:690;padding:10px 0}
.help-link:hover,.text-button:hover{color:#142acf;text-decoration:underline}
.help-link span{margin-left:4px}
main{width:min(1120px,100% - 48px);margin:auto;padding:43px 0 64px}
.intro{margin-bottom:27px}
h1,h2,p{margin:0}
.intro h1{font-size:clamp(2.4rem,5vw,4.2rem);font-weight:850;line-height:1.02;letter-spacing:-.067em;text-wrap:balance}
.intro p{margin-top:11px;color:var(--muted);text-wrap:pretty}
.workspace{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(335px,.85fr);gap:22px;align-items:start}
.editor,.tools,.pack{background:var(--white);border-radius:24px;box-shadow:0 2px 6px #151b5710,0 16px 38px #1f2c8110}
.editor{padding:14px;min-width:0}
.editor-bar,.editor-foot,.pack-header,.control-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.editor-bar{padding:2px 7px 12px}
.segmented{display:flex;gap:3px;background:#eff1fd;border-radius:11px;padding:4px}
.segmented button{border:0;border-radius:8px;background:transparent;padding:7px 14px;min-height:40px;font-weight:660;font-size:.88rem}
.segmented button[aria-pressed=true]{background:#fff;color:var(--blue);box-shadow:0 1px 5px #1b2b5d17}
.dimensions{font-variant-numeric:tabular-nums;color:#4f587e;font-size:.83rem;font-weight:680;white-space:nowrap}
.stage,.transparent{background-color:#f6f7ff;background-image:conic-gradient(#e9ecfa 25%,#f6f7ff 0 50%,#e9ecfa 0 75%,#f6f7ff 0);background-size:24px 24px}
.stage{border-radius:18px;display:flex;align-items:center;justify-content:center;min-height:300px;aspect-ratio:1.19;overflow:hidden;container-type:size}
.stage[data-drag=true]{outline:3px dashed var(--blue);outline-offset:-5px}
canvas{display:block;width:min(94cqw,94cqh,512px);height:auto;aspect-ratio:1;flex:none}
.stage[data-brush] canvas{cursor:crosshair;touch-action:none}
.stage[data-caption-drag] canvas,.stage[data-photo-drag] canvas{cursor:move;touch-action:none}
#move-caption,#move-photo{margin-top:7px}
.editor-foot{padding:10px 6px 0}
.upload{cursor:pointer;color:#193adb;background:#edf0ff;display:inline-flex;align-items:center;gap:6px;border-radius:10px;padding:8px 13px;font-size:.88rem;font-weight:720;min-height:42px}
.upload:hover{background:#e2e8ff}
.editor-bar:has(input:focus-visible) .upload{outline:2px solid var(--blue)}
.tools{overflow:hidden;padding:0 20px}
.control-heading{padding:14px 0 8px}
.control-heading h2,.pack h2{font-size:1.35rem;letter-spacing:-.04em}
.text-button{background:none;border:0;color:#2340bc;padding:8px 1px;min-height:40px;font-weight:680;font-size:.85rem}
.control{padding:11px 0;border-top:1px solid var(--line)}
.label{display:block;font-weight:770;margin:0 0 7px;font-size:.94rem}
input[type=text],select{width:100%;min-height:41px;border-radius:9px;border:1px solid #e0e4f4;background:#f7f8ff;color:#181e42;padding:7px 9px}
input[type=color]{height:40px;width:40px;padding:4px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}
.chips,.field-row,.swatches{display:flex;align-items:center;gap:8px}
.chips{flex-wrap:wrap;margin:7px 0}
.chips button,.chip{background:#eff1ff;border:1px solid transparent;color:#303c74;font-size:.80rem;font-weight:660;border-radius:9px;padding:6px 10px;min-height:40px}
.chip[aria-pressed=true],.chips button:hover{background:#dce4ff;border-color:#95a5ff;color:#132cac}
.field-row label{flex:1;min-width:0;font-size:.80rem;font-weight:650;color:#4f587a}
.field-row label select,.field-row label input{display:block;margin-top:3px;font-size:.82rem}
.field-row label.color-field,.field-row label.inline-color{flex:0 0 auto}
.title-row{justify-content:space-between}
.title-row .label{margin:0}
.brush-row{justify-content:flex-start;margin-top:7px}
.brush-row .inline-color{margin-left:auto}
.style-grid,.motion-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.style,.motion-grid button{border:1px solid transparent;border-radius:11px;background:#f7f8ff;padding:5px 4px;min-width:0;text-align:center;font-size:.75rem;font-weight:680}
.style:hover,.motion-grid button:hover{background:#eaeeff}
.style[aria-pressed=true],.motion-grid button[aria-pressed=true]{border-color:#6379ff;background:#e9edff;color:#1b36bf}
.style-tile{display:grid;place-items:center;height:35px;border-radius:6px;margin-bottom:3px;font-weight:850;font-size:1.15rem;letter-spacing:-.08em}
.style-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.style-tile.pixel{background:#daf4ff;color:#194681;font-family:monospace}
.style-tile.pop{background:#ffcf58;color:#29235c}
.style-tile.sticker{background:#e5edfd;color:#2848bb;text-shadow:0 1px white,1px 0 white,-1px 0 white,0 -1px white}
.original{background:#dce6ff;color:#2245e8}.comic{background:#ffdf60;color:#523d00}.neon{background:#353063;color:#b8ff6a}.mono{background:#e2e4ed;color:#26293a}
.swatches{flex-wrap:wrap}
.swatch,.custom-swatch{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid #dfe3ef;padding:0}
.swatch[aria-pressed=true]{outline:2px solid var(--blue);outline-offset:2px}
.swatch.snow{background:white}.swatch.lemon{background:#ffe58c}.swatch.lilac{background:#bca7ff}.swatch.sky{background:#7bd9fc}
.custom-swatch input{height:36px;width:36px;overflow:hidden;border:0;border-radius:50%}
.custom-swatch input::-webkit-color-swatch{border:0;border-radius:50%}
.swatches:has(#background-file:focus-visible) #background-label{outline:2px solid var(--blue);outline-offset:3px}
.swatches #background-label.selected{background:#dce4ff;border-color:#95a5ff;color:#132cac}
.range-label{display:grid;grid-template-columns:75px minmax(0,1fr) 43px;align-items:center;gap:8px;margin-top:5px;font-weight:640;font-size:.82rem;color:#414b74}
.range-label input{width:100%;height:34px;accent-color:var(--blue)}
output{text-align:right;font-variant-numeric:tabular-nums}
.actions{padding:11px 0 15px;display:grid;grid-template-columns:1fr 1.4fr;gap:8px;border-top:1px solid var(--line)}
.share{grid-column:1/-1}
.share>.secondary{width:100%}
.photo-actions{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.photo-actions .text-button{padding:3px 4px;min-height:40px}
.primary,.secondary{padding:9px 14px;border:1px solid transparent;border-radius:11px;font-weight:730;min-height:44px}
.primary{background:var(--blue);color:#fff}.primary:hover{background:#1435d0}
.secondary{background:#edf0ff;color:#223ab9}.secondary:hover{background:#e0e7ff}
.motion-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.motion-grid span{display:block;font-size:1.7rem;color:#203dcb}
.note,.pack p{color:var(--muted);font-size:.87rem}
.status{color:#2037ab;min-height:1.45rem;font-size:.87rem;margin:10px 3px}
dialog{border:0;border-radius:20px;padding:22px;width:420px;max-width:calc(100vw - 32px);color:inherit;box-shadow:0 12px 45px #171e6938}
dialog::backdrop{background:#151b4780}
dialog p{margin:5px 0 15px;color:var(--muted)}
.dialog-actions{display:flex;gap:8px;flex-wrap:wrap}
.guide-steps{padding-left:1.4rem;color:var(--muted);margin:12px 0 18px}
.guide-steps li+li{margin-top:7px}
.guide-link{display:inline-flex;align-items:center;text-decoration:none}
.pack-help{margin-top:8px}
dialog textarea{display:block;width:100%;border:1px solid #dfe3f4;border-radius:9px;background:#f7f8ff;color:inherit;padding:9px 10px;resize:vertical;min-height:95px}
dialog .form-error{color:#aa2449;font-weight:650;margin:5px 0 9px}
dialog .form-error:empty{margin-top:0}
.pack{padding:18px 22px}
.pack-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;padding-top:12px}
.pack-list:empty{display:none}
.pack-workflow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.pack-workflow:has(input:focus-visible) .upload{outline:2px solid var(--blue);outline-offset:3px}
.pack-chat{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;padding:12px;max-height:50vh;overflow:auto;border-radius:12px;background:#e9eff6}
.pack-chat[data-theme=dark]{background:#202639;color:#fff}
.pack-chat img{width:min(112px,33%);aspect-ratio:1;object-fit:contain}
.pack-edit{width:100%;margin-top:4px;text-align:left}
.pack-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.local-pack-actions{display:grid;grid-template-columns:minmax(110px,132px) repeat(3,max-content);gap:8px}
.local-pack-actions select,.local-pack-actions button,.local-pack-actions .upload{height:42px;min-height:42px;margin:0;white-space:nowrap}
.local-pack-actions .upload{justify-content:center;text-align:center}
.local-pack-actions select{min-width:0;width:100%}
@media(max-width:820px){.local-pack-header{align-items:stretch;flex-direction:column}.local-pack-actions{justify-content:start}}
@media(max-width:520px){.local-pack-actions{grid-template-columns:repeat(2,minmax(0,1fr));align-self:stretch}.local-pack-actions select{width:100%}}
.pack-actions:has(input:focus-visible) .upload{outline:2px solid var(--blue);outline-offset:3px}
.pack-placeholder{display:grid;place-items:center;aspect-ratio:1;border-radius:6px;color:#2948cb;background:#eef1ff;font-size:1.75rem;font-weight:840}
.cloud-pack{margin-top:18px}
.cloud-form{margin-top:12px}
.cloud-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cloud-controls input{flex:1;min-width:190px}
.cloud-list:not(:empty){display:grid;gap:7px;margin-top:12px}
.cloud-row{border:1px solid var(--line);border-radius:11px;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.cloud-row strong{display:block;overflow-wrap:anywhere}
.cloud-row span{color:var(--muted);font-size:.81rem}
.cloud-row .pack-actions{justify-content:flex-start}
.cloud-row .text-button{font-size:.8rem}
#cloud-message{margin-top:8px}
#cloud-message:empty{display:none}
.pack-card{border:1px solid var(--line);padding:6px;border-radius:12px;min-width:0}
.pack-card img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f3f5ff;border-radius:6px}
.pack-card div{display:flex;align-items:center;justify-content:space-between;gap:4px;padding-left:4px;font-size:.75rem;font-weight:650}
.pack-card button{border:0;background:#f1f3fc;border-radius:7px;min-width:40px;min-height:40px;font-size:1.15rem}
.heroes{margin-top:18px}
.team{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;scroll-margin-top:14px}
.team-heading p{margin-top:6px;max-width:31ch}
.team-links,.team-fields,.team-save{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap}
.team-links{margin-top:10px}
.team-fields,.team-save{margin-top:8px}
.brand-color{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:.85rem;font-weight:650}
.brand-upload{display:flex;align-items:center;gap:6px}
.brand-upload:has(input:focus-visible) .upload{outline:2px solid var(--blue);outline-offset:3px}
.brand-library{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px}
.brand-library h3{margin:0 0 7px;font-size:.95rem}
.brand-list{display:flex;gap:8px;flex-wrap:wrap}
.brand-entry{display:flex;align-items:center;border-radius:10px;overflow:hidden;background:#eff1ff}
.brand-entry button{border:0;background:transparent;min-height:40px;padding:4px 11px;font-size:.84rem;font-weight:680}
.brand-entry button:last-child{min-width:40px}
.brand-entry button:hover{background:#dce4ff}
#brand-error{margin:6px 0 0;color:#aa2449}
#brand-error:empty{display:none}
#preview{scroll-margin-top:12px}
.hero-card .hero-open{background:none;padding:0;display:block;width:100%;text-align:left;font-size:.88rem;font-weight:730}
.hero-open span{display:block;padding:7px 3px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:800px){.workspace{grid-template-columns:1fr}.stage{aspect-ratio:1.3}.tools{align-self:start}}
@media(min-width:801px){.stage{height:clamp(280px,49vh,450px);aspect-ratio:auto}}
@media(max-width:480px){.top-content,main{width:calc(100% - 28px)}.top-content{min-height:62px}.brand{font-size:1.45rem;gap:7px}.brand img{width:35px;height:35px}main{padding-top:28px}.intro{margin-bottom:20px}.workspace{gap:14px}.stage{min-height:0;aspect-ratio:1}.editor{padding:9px}.editor-bar{padding-inline:1px;gap:5px}.editor-bar .upload,.segmented button{padding-inline:8px;font-size:.80rem}.tools{padding:0 14px}.pack{padding:12px 14px}.pack-header .secondary{font-size:.82rem;padding-inline:8px}.help-link{font-size:.80rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
@media(max-width:650px){.team{grid-template-columns:1fr;gap:12px}.top-links{gap:6px}.top-links .text-button{font-size:.76rem}}
@media(max-width:365px){.top-links a{display:none}}
@media(max-width:540px){.pack-header{align-items:flex-start;flex-wrap:wrap}.pack-actions{justify-content:flex-start}}
.studio-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.studio-nav a{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;color:#2443be;border:1px solid #dce3ff;border-radius:9px;background:#fff;text-decoration:none;font-size:.85rem;font-weight:680}
.studio-nav a:hover{background:#ecf0ff}
.product-section{margin-top:18px;scroll-margin-top:16px}
.product-heading p{margin-top:4px}
.gen-grid,.plan-grid{display:grid;gap:10px;margin-top:14px}
.gen-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.gen-grid button{display:grid;gap:6px;min-width:0;padding:7px 8px;border:1px solid var(--line);border-radius:12px;background:white;color:inherit;font-weight:700}
.gen-grid button[aria-pressed=true]{border-color:#4667ff;color:#1538c9;background:#eef2ff}
.gen-tile{display:grid;place-items:center;border-radius:7px;min-height:46px;font-size:1.72rem}
.gen-cartoon{background:#ffed99;color:#9a6200}.gen-real{background:#dce8ff;color:#305adb}.gen-clay{background:#f5d7ff;color:#8b3495}.gen-comic{background:#ffd7cd;color:#8c2a38}
.gen-footer,.profile-actions,.profile-summary{display:flex;gap:9px 14px;align-items:center;flex-wrap:wrap;margin-top:12px}
.gen-footer select{min-width:153px;margin-top:4px}
.gen-footer{align-items:end}
#gen-status:empty{display:none}
.consent{display:flex;gap:7px;align-items:flex-start;max-width:400px;font-size:.82rem;color:var(--muted)}
.consent input{margin-top:4px}
.plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.plan-card{display:grid;align-content:start;gap:6px;border:1px solid var(--line);border-radius:14px;padding:13px 15px;background:#f8f9ff}
.plan-card h3,.profile-details h3{font-size:1rem;margin:0}
.plan-card .plan-price{font-size:1.38rem;color:#23369f;font-weight:820}
.plan-pro{border-color:#99aaff;background:#edf2ff}
.plan-card a{text-decoration:none}
.product-status{min-height:1.3em;margin-top:7px;color:#253a9c}
.profile-summary{padding:8px 10px;border-radius:9px;background:#f0f3ff;margin:12px 0;color:#27396f}
.profile-order{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:42px;border-bottom:1px solid var(--line)}
#profile-max,#checkout-link{margin-top:10px}
.motion-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#motion-play{margin-top:6px}
@media(max-width:850px){.top-links a:not(.studio-max-entry){display:none}.top-links .studio-max-entry{display:inline-flex;align-items:center;min-height:40px}}
@media(max-width:600px){.gen-grid,.plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.plan-grid{grid-template-columns:1fr}}
.reaction-count{color:#2744c1;font-size:.92rem;white-space:nowrap}
.reaction-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-top:14px}
.reaction-tile{background:#f4f6ff;border:1px solid #e5eaff;border-radius:11px;padding:6px;min-width:0;text-align:center;color:#243768;font-weight:680;font-size:.85rem}
.reaction-tile img,.reaction-empty{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:7px;background:white;margin-bottom:5px}
.reaction-empty{background:repeating-conic-gradient(#e9edff 0% 25%,#fff 0% 50%) 0 0 / 20px 20px}
.reaction-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.pilot-form{margin-top:14px;border-top:1px solid #e5eaff;padding-top:12px}
.pilot-form input{flex:1;max-width:272px}
@media(max-width:750px){.reaction-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
