:root{font-family:system-ui,sans-serif;color:#17294d;background:#f5f5f0;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit}header,footer{padding:24px 5vw;display:flex;justify-content:space-between;align-items:center}header>a{font-size:24px;text-decoration:none;font-weight:700}nav{display:flex;gap:24px}main{max-width:1250px;margin:auto;padding:24px}h1{font-family:Georgia,serif;font-size:clamp(40px,5vw,66px);font-weight:400;margin:10px 0}h2{font-family:Georgia,serif;font-size:29px;font-weight:400}p{line-height:1.6}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700}.heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}#balance{background:#dfff7a;padding:14px 20px;border-radius:24px;white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:36px}canvas{display:block;width:100%;height:auto;touch-action:none;background:white;border:1px solid #dddfe5;border-radius:14px;box-shadow:0 8px 28px #17294d0d}.tools,.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}button,.upload{font:inherit;font-size:14px;cursor:pointer;background:white;color:inherit;border:1px solid #d8dce3;padding:12px 15px;border-radius:12px}button:disabled{opacity:.5;cursor:wait}button[aria-pressed=true]{background:#dfff7a}.tools label{display:flex;align-items:center;gap:6px;font-size:13px}input[type=range]{width:85px}input[type=color]{width:36px;height:34px;border:0;padding:0}.upload input{max-width:170px}.hint{font-size:13px;color:#657189}aside{background:#eeefe9;border-radius:24px;padding:28px;align-self:start}aside label{display:grid;gap:8px;margin:20px 0;font-size:14px}select,textarea{font:inherit;padding:13px;border:1px solid #d8dce3;border-radius:12px;background:white;color:inherit;width:100%}textarea{min-height:90px;resize:vertical}.primary{background:#dfff7a;border:0;width:100%;font-size:17px;font-weight:600;padding:18px}#status{font-size:14px}#result-image{width:100%;border-radius:14px}#result-download{display:block;padding:14px 0}.gallery{margin-top:55px}#gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}#gallery figure{margin:0;padding:10px;background:white;border-radius:16px}#gallery img{width:100%;aspect-ratio:1;object-fit:contain}figcaption{padding:12px;font-size:13px}footer{justify-content:center;gap:14px;font-size:13px;flex-wrap:wrap}button:focus-visible,a:focus-visible{outline:3px solid #637cf2;outline-offset:3px}@media(max-width:750px){.workspace{grid-template-columns:1fr}.heading{display:block}#balance{display:inline-block}header{padding:18px}nav{font-size:12px;gap:12px}main{padding:16px}aside{padding:22px}}

dialog{border:0;border-radius:24px;padding:28px;width:min(760px,94vw);max-height:92vh;color:#17294d;background:#f5f5f0}dialog::backdrop{background:#17294d99}#history-image{width:100%;max-height:48vh;object-fit:contain;background:white;border-radius:16px}#history-versions{display:flex;gap:12px;overflow-x:auto;margin:20px 0}#history-versions button{flex:0 0 110px;font-size:11px}#history-versions img{width:85px;height:85px;object-fit:contain}#history-delete{color:#a32939}#gallery figure>button{border:0;padding:0;width:100%}#close-history{float:right}#credits-dialog{max-width:480px}
/* The web studio uses the same palette and surfaces as the native canvas. */
.studio-page main{max-width:1200px;padding:44px 24px}.studio-page .heading{margin-bottom:32px}.studio-page h1{font-size:64px;letter-spacing:-3px;margin:12px 0}.studio-page .heading p:not(.eyebrow){color:#667086;font-size:15px;max-width:490px}.studio-page .heading>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:350px}.studio-page #balance{font-size:13px;border-radius:999px;padding:12px 18px}.studio-page #add-credits{border-radius:999px}.studio-page #new-spark{background:#17294d;color:#fff;border-radius:999px}.studio-page .draft-picker{display:flex;align-items:center;gap:14px;font:11px ui-monospace,monospace;letter-spacing:1px;color:#667086;margin:0 0 22px}.studio-page #drafts{width:auto;max-width:350px;padding:9px 14px;background:transparent;font:12px -apple-system,sans-serif}.studio-page .workspace{gap:26px;grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr)}.studio-page .canvas-pane{background:#fff;padding:18px;border-radius:26px}.studio-page .tools{margin:0 0 18px;gap:7px}.studio-page .tools button{font-size:12px;border:0;background:#f5f5f0;padding:10px 12px}.studio-page .tools button[aria-pressed=true]{background:#dfff7a}.studio-page canvas{border:1px solid #e5e7e1;box-shadow:none;border-radius:17px;background:#fff}.studio-page aside{background:#eaece4;padding:27px;border-radius:26px;position:sticky;top:24px}.studio-page aside h2{font-size:33px;letter-spacing:-1.1px;line-height:1.1;margin:15px 0 25px}.studio-page aside label{font-size:12px;font-weight:550;margin:18px 0;gap:9px}.studio-page select,.studio-page textarea{border:1px solid #d9ded3;border-radius:13px;font-size:14px;padding:14px}.studio-page textarea{min-height:125px}.studio-page .primary{border-radius:15px;font-size:15px;margin-top:9px}.studio-page .actions button,.studio-page .upload{font-size:12px;padding:9px 12px}.studio-page .upload{border:0;padding:0;max-width:100%;display:flex;gap:9px;align-items:center}.studio-page .hint{font-size:11px;line-height:1.65}.studio-page .gallery{margin-top:65px}.studio-page .gallery h2{font-size:38px}.empty-gallery{grid-column:1/-1;padding:42px;text-align:center;border:1px dashed #c9cfc1;border-radius:24px;color:#667086;font-size:15px}.studio-page footer{color:#667086;border-top:1px solid #dce0e6;margin-top:30px}.studio-page.text-mode .canvas-pane{display:none}.studio-page.text-mode .workspace{grid-template-columns:1fr;max-width:750px;margin:auto}.studio-page.text-mode aside{background:#e8eafe}.studio-page.text-mode textarea{min-height:210px;font-size:18px;line-height:1.6}.studio-page.text-mode aside h2{font-size:43px}.studio-page dialog{box-shadow:0 30px 100px #17294d33}.studio-page #credits-dialog h2{font-size:36px}.studio-page #billing-actions button{display:block;width:100%;margin:10px 0}.studio-page #buy-monthly{background:#dfff7a}.studio-page #history-versions button:hover{background:#e6eaff}@media(max-width:750px){.studio-page main{padding:25px 16px}.studio-page .workspace{grid-template-columns:1fr}.studio-page h1{font-size:48px}.studio-page .heading>div:last-child{justify-content:flex-start;max-width:none}.studio-page .heading{margin-bottom:22px}.studio-page .canvas-pane{padding:12px}.studio-page .tools{gap:5px;flex-wrap:wrap}.studio-page aside{position:static}.studio-page .draft-picker{flex-wrap:wrap;gap:8px}.studio-page #drafts{max-width:100%}.studio-page .site-header{padding:18px 16px}.studio-page .site-nav{font-size:12px;gap:15px}.studio-page .brand{font-size:21px}.studio-page .brand-mark{width:32px;height:32px;font-size:25px}.studio-page .empty-gallery{padding:30px 20px}}
.canvas-surface{position:relative}#selection-box{position:absolute;z-index:2;border:2px dashed #637cf2;background:#637cf210;pointer-events:none}.studio-page .tools #brush{width:95px;padding:7px;font-size:12px}.studio-page .edit-tools{margin-top:14px}.studio-page .edit-tools label{font-size:11px}.studio-page .edit-tools input{width:70px}.voice-row{display:flex;align-items:center;gap:12px}.studio-page .voice-row #dictate{background:#dfff7a;font-weight:650;flex:1}.studio-page .voice-row #dictate[aria-pressed=true]{background:#17294d;color:#fff}.studio-page .voice-language{margin:0;font-size:10px}.studio-page #voice-language{padding:9px;font-size:12px}.studio-page .voice-row{margin-top:20px}
