@font-face{font-family:Manrope;src:url('/assets/manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
@font-face{font-family:CoverType;src:url('/assets/cover-type.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{font-family:Manrope,'Segoe UI',sans-serif;color:#1b1e19;background:#fafbf9;font-synthesis:none;--ink:#1b1e19;--muted:#62685e;--line:#d8ddd4;--green:#8ace00;--surface:#fff;--motion:cubic-bezier(.22,1,.36,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding:24px}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,summary,select{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{color:inherit}a{color:inherit}button,a,summary{touch-action:manipulation;transition:background-color 300ms var(--motion),opacity 300ms var(--motion),transform 300ms var(--motion)}button:active{transform:scale(.98)}button:disabled{cursor:not-allowed;opacity:.45}button:hover:not(:disabled){filter:brightness(.96)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #527900;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}p{text-wrap:pretty;font-size:16px;line-height:24px}h2{font-size:36px;line-height:40px;letter-spacing:-.045em;font-weight:600}h3{font-size:20px;line-height:28px;font-weight:600}svg{width:20px;height:20px;flex-shrink:0}[hidden]{display:none!important}.sr-only,.skip{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{clip:auto;width:auto;height:auto;left:16px;top:16px;z-index:20;background:white;padding:12px}.title-3{font-size:16px;line-height:24px;font-weight:600;letter-spacing:0}
.header{max-width:1280px;margin:16px auto 0;padding:16px 32px;display:flex;align-items:center;gap:32px;border-radius:16px;background:#ffffffed;position:relative;z-index:4}.logo{display:inline-flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font-size:20px;font-weight:700;letter-spacing:-.05em;white-space:nowrap}.logo-light{font-weight:400}.logo-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--green);font-size:24px}.header nav{display:flex;gap:24px;margin-left:auto}.header nav a{text-decoration:none;font-size:14px;line-height:20px;font-weight:600;padding:12px 0}.header nav a:hover{text-decoration:underline;text-underline-offset:4px}.language-menu{position:relative;margin-left:16px;font-size:14px;line-height:20px}.language-menu summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;white-space:nowrap}.language-menu summary::-webkit-details-marker{display:none}.language-menu>div{position:absolute;right:0;top:calc(100% + 8px);background:#fff;min-width:200px;padding:8px;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 32px #1b1e1912;z-index:10}.language-menu a{display:block;padding:12px;border-radius:4px;text-decoration:none}.language-menu a:hover,.language-menu a[aria-current]{background:#eff6e4}
main{max-width:1280px;margin:auto;padding:0 32px}.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:32px 0}.eyebrow{font-size:12px;line-height:16px;font-weight:700;letter-spacing:.12em;color:#5f6b50;text-transform:uppercase}.intro h1{font-size:48px;line-height:48px;letter-spacing:-.06em;font-weight:600;margin:12px 0;background:linear-gradient(90deg,#000,#666);background-clip:text;color:transparent;max-width:680px}.intro p:not(.eyebrow){color:var(--muted);max-width:680px}.intro-aside{display:flex;flex-direction:column;align-items:flex-end;gap:8px;font-size:12px;line-height:16px;color:var(--muted)}.intro-aside>span:first-child{font-family:CoverType,sans-serif;font-size:24px;line-height:32px;color:var(--ink)}
.editor{display:grid;grid-template-columns:1.08fr 1fr;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;scroll-margin-top:24px}.cover-panel{padding:24px;background:#eff1ec;display:flex;flex-direction:column;min-width:0}.panel-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.live{font-size:12px;line-height:16px;letter-spacing:.06em;color:#42630d;font-weight:700;display:flex;align-items:center;gap:8px}.live i{display:block;width:6px;height:6px;border-radius:50%;background:#507b09}.canvas-stage{display:flex;align-items:center;justify-content:center;min-height:420px;flex:1;padding:24px}.canvas-stage canvas{display:block;max-width:100%;width:380px;height:auto;box-shadow:0 16px 32px #2633181a;aspect-ratio:1}.canvas-stage canvas.story{width:236px;aspect-ratio:9/16}.canvas-stage canvas.landscape{width:100%;aspect-ratio:16/9}.canvas-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;line-height:16px;color:var(--muted)}#size-label{white-space:nowrap}.controls{padding:24px 32px;min-width:0}.mode-switch{display:flex;background:#f1f3ef;border-radius:8px;padding:4px;gap:4px}.mode-switch button{flex:1;border:0;background:transparent;min-height:44px;border-radius:4px;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px}.mode-switch button.selected{background:#fff;box-shadow:0 2px 4px #0000000b}.mode-count{font-size:12px;background:#dff0bf;color:#31450d;border-radius:4px;padding:2px 4px}.field{margin:16px 0 0;padding:0;border:0;min-width:0}.field-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.field label,.field legend{font-size:14px;line-height:20px;font-weight:600}.field-head>span{font-size:12px;line-height:16px;color:var(--muted)}textarea{display:block;width:100%;margin-top:8px;min-height:88px;resize:vertical;max-height:360px;border:1px solid #a9b2a1;border-radius:8px;background:#fcfdfb;padding:12px 16px;font-size:16px;line-height:24px;color:var(--ink)}.hint{font-size:12px;line-height:16px;color:var(--muted);margin-top:8px}.moods{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}.mood{background:#fff;border:1px solid #a9b2a1;border-radius:8px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 4px;font-size:12px;line-height:16px;font-weight:600}.mood.selected,.size.selected{border-color:#527900;background:#f0f8e3;box-shadow:none}.swatch{width:16px;height:16px;border-radius:50%;border:1px solid #a2a79a}.green{background:#8ace00}.white{background:white}.pink{background:#f6b5d0}.black{background:#191919}.sizes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.size{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #a9b2a1;background:white;border-radius:8px;min-height:52px;padding:8px;font-size:14px;line-height:20px;font-weight:600}.size small{font-size:12px;line-height:16px;font-weight:400;color:var(--muted);display:block;text-align:left}.shape-icon{display:block;width:16px;height:16px;border:1.5px solid currentColor;border-radius:2px;flex-shrink:0}.shape-icon.story{width:12px;height:20px}.shape-icon.landscape{width:20px;height:12px}.advanced{margin-top:16px;border:1px solid var(--line);border-radius:8px}.advanced-heading{display:flex;align-items:center;gap:8px;list-style:none;padding:12px;font-size:14px;line-height:20px;font-weight:600;min-height:44px}.advanced-body{padding:4px 16px 16px}.color-fields{display:flex;gap:16px}.color-fields label{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1;font-size:14px;line-height:20px}input[type=color]{width:44px;height:44px;padding:4px;border:1px solid var(--line);border-radius:8px;background:white;cursor:pointer}.range-label{display:flex;justify-content:space-between;margin-top:16px;font-size:14px;line-height:20px}input[type=range]{width:100%;min-height:32px;accent-color:#517c00;margin:4px 0 0}.select-label{display:block;margin:16px 0 8px;font-size:14px;line-height:20px}select{width:100%;background:#fff;border:1px solid #a9b2a1;border-radius:8px;padding:8px 12px;min-height:44px;font-size:14px;color:var(--ink)}.advanced-last{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.check-row{display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;min-height:44px}.check-row input{width:20px;height:20px;accent-color:#527900;flex-shrink:0}.text-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:14px;padding:8px;min-height:44px}
.actions{display:flex;gap:8px;margin-top:16px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:8px;font-size:14px;line-height:20px;font-weight:600;text-decoration:none;padding:8px 12px;white-space:normal}.primary{background:var(--ink);color:#fff;border:1px solid var(--ink)}.secondary{background:#fff;color:var(--ink);border:1px solid #a9b2a1}.actions>.primary{flex:1.15}.actions>.secondary{flex:1}.free-note{text-align:center;font-size:12px;line-height:16px;color:var(--muted);margin-top:12px}.status{font-size:14px;line-height:20px;color:#3c5c09;margin-top:8px}.status:empty{display:none}.error{color:#a41d26;font-size:14px;line-height:20px;margin-top:8px}.notice{padding:16px;background:#fff0bd;margin-bottom:16px}.mobile-actions,.mini-preview{display:none}
.batch-results{grid-column:1/-1;padding:32px;background:#fff}.batch-results .section-heading h2{font-size:24px;line-height:32px;letter-spacing:-.03em}.batch-results .section-heading p{font-size:14px;line-height:20px;max-width:540px}.batch-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:24px}.batch-item{min-width:0}.batch-thumb{padding:8px;background:#f0f2ed;border:1px solid var(--line);border-radius:8px;width:100%;height:150px;display:flex;align-items:center;justify-content:center}.batch-thumb.selected{outline:2px solid #527900;outline-offset:2px}.batch-thumb canvas{max-width:100%;max-height:130px;width:auto;height:auto}.batch-item>.text-button{display:block;width:100%;font-size:12px;line-height:16px;text-decoration:none}.batch-actions{display:flex;align-items:center;gap:24px;margin-top:24px}.batch-actions .primary{min-width:200px}progress{accent-color:#527900;flex:1;max-width:400px;height:16px}#batch-status{font-size:14px;line-height:20px;margin-top:8px}#total-images{font-size:14px;line-height:20px;color:var(--muted);white-space:nowrap}
.inspiration{padding:80px 0}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}.section-heading h2{margin:12px 0}.section-heading p:not(.eyebrow){color:var(--muted)}.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px}.template{display:flex;flex-direction:column;justify-content:space-between;gap:24px;min-height:240px;border:0;border-radius:8px;text-align:left;padding:24px;color:#1b1e19}.template-0{background:#d3edab}.template-1{background:#eceee8}.template-2{background:#f5d7e2}.template>span{font-size:12px;line-height:16px;letter-spacing:.08em;text-transform:uppercase}.template strong{font-family:CoverType,sans-serif;font-weight:400;font-size:36px;line-height:40px;letter-spacing:-.03em}.template small{display:flex;justify-content:space-between;align-items:center;font-size:12px;line-height:16px}.template small span{font-size:24px}.template:hover{transform:translateY(-4px)}.batch-pitch{display:flex;align-items:center;justify-content:space-between;gap:40px;background:#e8eedf;border-radius:16px;padding:48px}.batch-pitch h2{margin:16px 0;font-size:48px;line-height:48px;max-width:680px}.batch-pitch p:not(.eyebrow){color:#535e46;max-width:480px;margin-bottom:24px}.reveal-word{opacity:.35;transition:opacity 500ms var(--motion)}.reveal-word.visible{opacity:1}.stack-art{position:relative;width:270px;height:270px;flex-shrink:0;margin:16px}.stack-art span{position:absolute;inset:0;display:grid;place-items:center;text-align:center;background:#8ace00;font-family:CoverType,sans-serif;font-size:36px;line-height:40px;padding:24px;box-shadow:0 12px 24px #2633181a}.stack-art span:first-child{transform:rotate(12deg);background:#f6b5d0}.stack-art span:nth-child(2){transform:rotate(-8deg);background:white}.stack-art span:last-child{transform:rotate(2deg)}.how{padding:80px 0}.how ol{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;list-style:none;counter-reset:steps;padding:0;margin:32px 0 0}.how li{counter-increment:steps}.how li:before{content:counter(steps);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e8eedf;color:#3d5620;font-size:16px;font-weight:600;margin-bottom:16px}.how p{color:var(--muted);margin-top:8px}.faq{display:grid;grid-template-columns:1fr 1.8fr;gap:64px;padding:0 0 80px}.faq details{border:1px solid var(--line);border-radius:8px;margin-bottom:12px;background:white}.faq summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 24px;list-style:none}.faq summary::-webkit-details-marker{display:none}.faq h3{font-size:16px;line-height:24px;font-weight:600}.faq summary>span{font-size:24px}.faq details[open] summary>span{transform:rotate(45deg)}.faq details p{padding:0 24px 24px;color:var(--muted)}footer{max-width:1280px;margin:auto;padding:24px 32px 32px;display:flex;align-items:center;justify-content:space-between;gap:32px;font-size:12px;line-height:16px}footer>.logo{font-size:16px}footer p{font-size:12px;line-height:16px;color:var(--muted);max-width:500px}footer>div{display:flex;gap:16px}footer a{padding:8px 0}dialog{border:1px solid var(--line);border-radius:16px;padding:32px;max-width:520px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 24px 80px #0003}dialog::backdrop{background:#18201766;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-heading h2{font-size:30px;line-height:36px}.close-button{background:#f1f3ee;border:0;border-radius:8px;min-width:44px;height:44px;font-size:24px}dialog p{color:var(--muted);margin:16px 0}#share-url{display:block;width:100%;padding:12px;border:1px solid #a9b2a1;border-radius:8px;margin-bottom:16px;font-size:14px;line-height:20px}.legal{max-width:800px;padding-top:64px;padding-bottom:80px;min-height:70vh}.legal h1{font-size:48px;line-height:48px;letter-spacing:-.04em;margin:32px 0 16px}.legal section{margin-top:40px}.legal h2{font-size:24px;line-height:32px;margin-bottom:12px}.legal p{color:var(--muted)}.legal>.primary{margin-top:24px}
@media(max-width:1050px){.header{margin:8px 16px 0;padding:12px 16px;gap:16px}.header nav{gap:16px}.header nav a{font-size:12px}.language-menu{margin-left:0}.intro-aside{display:none}.controls{padding:24px}.canvas-stage{padding:16px}.canvas-stage canvas{width:320px}.canvas-bottom>span:first-child{max-width:180px}.batch-grid{grid-template-columns:repeat(4,1fr)}.batch-pitch h2{font-size:36px;line-height:40px}.stack-art{width:220px;height:220px}.stack-art span{font-size:30px;line-height:36px}}
@media(max-width:760px){.header{margin:8px 16px 0;padding:8px 0;gap:8px;background:transparent}.logo{font-size:18px}.logo-icon{width:32px;height:32px;font-size:24px}.header nav{display:none}.language-menu{margin-left:auto;font-size:12px}.language-menu summary{padding:8px;gap:8px}.language-menu>div{font-size:14px}main{padding:0 16px}.intro{padding:16px 0 24px}.intro h1{font-size:36px;line-height:40px;margin:8px 0}.intro p:not(.eyebrow){font-size:14px;line-height:20px}.intro .eyebrow{font-size:12px;line-height:16px}.editor{grid-template-columns:1fr;border-radius:12px;scroll-margin-top:8px}.cover-panel{padding:16px}.panel-top h2{font-size:14px;line-height:20px}.canvas-stage{height:208px;min-height:0;padding:12px}.canvas-stage canvas{width:184px;max-height:184px;object-fit:contain}.canvas-stage canvas.story{width:104px;max-height:184px}.canvas-stage canvas.landscape{width:280px;max-height:158px}.canvas-bottom{font-size:12px;line-height:16px}.canvas-bottom>span:first-child{max-width:190px}.controls{padding:16px}.field{margin-top:16px}textarea{min-height:80px}.mode-switch button{font-size:14px}.moods{gap:8px}.mood{font-size:12px}.size{font-size:12px;gap:8px}.actions>.share{flex:1}.actions>.primary{flex:1.2}.free-note{line-height:20px}.mobile-actions{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:8;padding:8px 16px max(8px,env(safe-area-inset-bottom));gap:8px;background:#ffffffed;backdrop-filter:blur(12px);box-shadow:0 -4px 24px #0000000a}.mobile-actions>.primary{flex:1;background:var(--green);color:#172000;border-color:var(--green)}.mobile-actions>.secondary{min-width:52px}.mini-preview{position:fixed;right:16px;top:8px;width:88px;z-index:7;box-shadow:0 4px 24px #0003;border:4px solid white;border-radius:4px;pointer-events:none}.mini-preview canvas{width:100%;height:auto;display:block;max-height:112px;object-fit:contain}.typing .mini-preview{display:block}.inspiration{padding:48px 0}.section-heading h2{font-size:30px;line-height:36px}.template-grid{grid-template-columns:repeat(2,1fr);gap:12px;margin-top:24px}.template{min-height:200px;padding:16px;gap:16px}.template strong{font-size:24px;line-height:32px}.template>span{letter-spacing:.04em}.template small{font-size:12px}.batch-pitch{padding:32px 24px;flex-direction:column;align-items:flex-start;gap:32px}.batch-pitch h2{font-size:30px;line-height:36px}.stack-art{width:200px;height:200px;align-self:center}.how{padding:48px 0}.how h2,.faq>h2{font-size:30px;line-height:36px}.how ol{grid-template-columns:1fr;gap:32px;margin-top:24px}.how li{display:grid;grid-template-columns:40px 1fr;column-gap:16px}.how li:before{grid-row:span 2;margin:0}.how p{grid-column:2}.faq{grid-template-columns:1fr;gap:24px;padding-bottom:32px}.faq summary{padding:16px}.faq details p{padding:0 16px 16px;font-size:14px;line-height:20px}.batch-results{padding:24px 16px}.batch-results .section-heading{align-items:flex-start;gap:8px}.batch-grid{grid-template-columns:repeat(2,1fr);gap:12px}.batch-thumb{height:150px}.batch-actions{flex-direction:column;align-items:stretch;gap:16px}.batch-actions progress{width:100%;max-width:none}.batch-results .section-heading h2{font-size:24px;line-height:32px}footer{padding:16px 16px 96px;flex-wrap:wrap;gap:16px}footer p{order:3;max-width:none}footer>div{margin-left:auto}.legal{padding-top:32px;padding-bottom:32px}.legal h1{font-size:36px;line-height:40px}.legal+footer{padding-bottom:32px}dialog{padding:24px}.dialog-heading h2{font-size:24px;line-height:32px}}
@media(max-width:360px){.logo{font-size:16px}.language-menu summary{max-width:152px}.size .shape-icon{display:none}.moods{gap:4px}.mood{padding:8px 2px}.canvas-bottom>span:first-child{max-width:160px}.template-grid{grid-template-columns:1fr}.template{min-height:180px}.actions{flex-wrap:wrap}.actions>.primary,.actions>.secondary{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}.reveal-word{opacity:1}.template:hover,button:active{transform:none}}
@media(max-width:760px){.intro{padding:8px 0 16px}.intro .eyebrow{display:none}.canvas-stage{height:176px}.canvas-stage canvas{width:152px;max-height:152px}.canvas-stage canvas.story{width:86px;max-height:152px}.canvas-stage canvas.landscape{width:264px;max-height:148px}.canvas-bottom{justify-content:flex-end}.canvas-bottom>span:first-child{display:none}}
@media(max-width:760px) and (max-height:720px){.canvas-stage{height:152px}.canvas-stage canvas{width:128px;max-height:128px}.canvas-stage canvas.story{width:72px;max-height:128px}.canvas-stage canvas.landscape{width:224px;max-height:126px}}
.export-controls{width:calc(100% * 1.08 / 2.08);padding:0 24px;margin-top:16px}.export-controls .actions{margin-top:0}
@media(min-width:761px){.canvas-stage{padding:0;min-height:0;flex:0 0 auto;aspect-ratio:1;margin:16px 0}.canvas-stage canvas{width:100%;height:auto;max-height:none}.canvas-stage canvas.story{width:56.25%;height:auto}.canvas-stage canvas.landscape{width:100%;height:auto}}
@media(max-width:760px){.export-controls{width:100%;padding:0 16px}}
.language-menu>.language-panel{width:min(680px,calc(100vw - 32px));max-height:min(640px,calc(100dvh - 112px));overflow-y:auto;padding:16px}.language-title{font-size:14px;line-height:20px;font-weight:700;padding:8px 12px;margin-bottom:8px}.language-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.language-grid a{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:4px}.language-grid a[aria-current]{font-weight:700}
[dir=rtl] .header nav{margin-left:0;margin-right:auto}[dir=rtl] .language-menu{margin-left:0;margin-right:16px}[dir=rtl] .language-menu>.language-panel{right:auto;left:0}[dir=rtl] .size small{text-align:right}[dir=rtl] .template{text-align:right}
@media(max-width:760px){.language-menu>.language-panel{position:fixed;top:72px;left:16px;right:16px;width:auto;max-height:calc(100dvh - 88px);padding:12px}.language-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.language-grid a{font-size:14px;line-height:20px;padding:12px 8px}.language-title{padding:8px}[dir=rtl] .language-menu{margin-left:0;margin-right:auto}[dir=rtl] .language-menu>.language-panel{left:16px;right:16px}}

/* Editor hover, format details and the bottom-aligned settings disclosure. */
@property --editor-border-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
.editor{position:relative;transition:transform 300ms var(--motion),box-shadow 300ms var(--motion)}
:is(.editor,.mood,.size,.mode-switch button)::after{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;padding:2px;pointer-events:none;opacity:0;background:conic-gradient(from var(--editor-border-angle),transparent 0deg,var(--green) 70deg,#dcff89 110deg,transparent 160deg,transparent 200deg,var(--green) 250deg,#dcff89 290deg,transparent 340deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;transition:opacity 300ms var(--motion)}
@keyframes editor-border-flow{to{--editor-border-angle:360deg}}
@media(hover:hover) and (pointer:fine){.editor:hover{transform:translateY(-4px);box-shadow:0 16px 40px #24390012}.editor:hover::after{opacity:1;animation:editor-border-flow 4s linear infinite}}
.controls{display:flex;flex-direction:column;container-type:inline-size}
.controls>.field:has(.sizes){margin-bottom:8px}
.size{flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:12px;gap:8px;min-width:0;text-align:start}
.size-heading{display:flex;align-items:center;gap:8px;min-height:36px}
.size-heading>span:last-child{min-width:0;overflow-wrap:anywhere}
.size .size-pixels{font-size:12px;line-height:16px;white-space:nowrap;text-align:start;letter-spacing:-.3px}
.size-use{font-size:12px;line-height:20px;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
.advanced{margin-top:auto;flex-shrink:0}
.advanced-heading{flex-wrap:wrap}
.advanced-title{flex:1;margin:0;font:inherit}


@container(max-width:440px){.size{display:grid;grid-template-columns:minmax(80px,.8fr) minmax(0,1fr);gap:4px 12px;align-items:center}.sizes{grid-template-columns:1fr}.size-heading{grid-row:span 2}.size-use{line-height:16px}}
@media(prefers-reduced-motion:reduce){.editor:hover{transform:none}.editor:hover::after{animation:none}}

/* Compact settings fill the space below the format choices. */
.advanced{min-width:0}
.advanced-heading{padding:8px 12px}
.advanced-body{padding:4px 12px;display:grid;gap:8px}
.settings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.setting{display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:16px;min-width:0}
.setting input[type=color]{width:100%;border-radius:4px}
.setting select{min-width:0;font-size:12px;padding:8px;border-radius:4px}
.settings-ranges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.setting-range{min-width:0}
.setting-range .range-label{margin:0;gap:4px;font-size:12px;line-height:16px;flex-wrap:wrap}
.setting-range output{white-space:nowrap;color:var(--muted)}
.setting-range input[type=range]{min-height:24px;margin:0;display:block}
.advanced-last{margin:0}
.advanced-last .check-row,.advanced-last .text-button{min-height:32px;font-size:12px;line-height:16px}
.advanced-last .text-button{padding:4px 8px}
:is(.mood,.size,.mode-switch button){position:relative;background:#fff;transition:transform 300ms var(--motion),background-color 300ms var(--motion),box-shadow 300ms var(--motion)}
.mood.selected,.size.selected{background:#fff}
:is(.mood,.size,.mode-switch button):hover:not(:disabled){filter:none}
.mode-switch button{border:1px solid var(--line)}
.mode-switch button.selected{border-color:#527900;box-shadow:none}
@media(hover:hover) and (pointer:fine){:is(.mood,.size,.mode-switch button):hover{background:#f0f8e3;border-color:#527900;box-shadow:0 0 0 1px #527900;transform:translateY(-3px)}:is(.mood,.size,.mode-switch button):hover::after{opacity:1;animation:editor-border-flow 3s linear infinite}}
@media(min-width:761px){.controls{padding-bottom:56px}.controls>.field{margin-top:8px}.controls #words{min-height:72px;padding:12px 16px}.controls .mood{min-height:48px;padding:8px}.controls .size{padding:8px;gap:4px}.controls .size-use{line-height:16px}.controls .size-heading{min-height:32px}}
@container(max-width:440px){.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-ranges{grid-template-columns:1fr;gap:12px}.setting-range input[type=range]{min-height:32px}.advanced-last .check-row,.advanced-last .text-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){:is(.mood,.size,.mode-switch button):hover{transform:none}:is(.mood,.size,.mode-switch button):hover::after{animation:none}}

.flip-options{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;min-width:0}
.size-heading>span:last-child{width:100%;padding-inline:36px;text-align:center}
.size-name{display:block;font-size:18px;line-height:24px;font-weight:700}
@container(max-width:440px){.size-name{font-size:16px}}

.size-heading{position:relative;width:100%}
.size-heading>.shape-icon{position:absolute;inset-inline-start:0;top:20px;transform:translateY(-50%)}
.size .size-pixels,.size .size-use{width:100%;text-align:center}[dir=rtl] .size .size-pixels{text-align:center}
.size .size-heading small,[dir=rtl] .size .size-heading small{text-align:center}
@container(max-width:440px){.size{display:flex;align-items:stretch}.size-heading{grid-row:auto}}

.mood{flex-direction:row;justify-content:space-between;gap:8px;padding:8px;font-size:16px;line-height:24px;font-weight:700}
.mood .swatch{width:24px;height:24px;flex-shrink:0}
.mood>span:last-child{margin-inline-start:auto;text-align:end;min-width:0;overflow-wrap:anywhere}
@container(max-width:440px){.moods{grid-template-columns:repeat(2,minmax(0,1fr))}}

.size .shape-icon{display:block;width:24px;height:24px}
.size .shape-icon.story{width:18px;height:30px}
.size .shape-icon.landscape{width:30px;height:18px}

.mode-help{margin:8px 0 0;font-size:12px;line-height:20px;color:var(--muted);overflow-wrap:anywhere}
.all-sizes-help{margin-top:0;padding-inline-start:28px;overflow-wrap:anywhere}

.pricing{padding:48px 0;border-top:1px solid var(--line)}.pricing h2{font-size:30px;line-height:36px}.pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.pricing-grid article{border:1px solid var(--line);border-radius:12px;padding:24px;background:#fff}.pricing-grid h3{font-size:18px}.pricing-grid strong{display:block;font-size:32px;line-height:40px;margin:8px 0}.pricing-grid p{font-size:14px;line-height:22px;margin:8px 0}.pricing-grid button{margin-top:8px}.pass-note{font-size:13px;line-height:20px;color:var(--muted);margin:8px 0}.pass-tools,.pass-presets{padding:12px;border:1px solid var(--line);border-radius:8px;margin-top:12px;display:grid;gap:8px}.pass-tools[hidden],.pass-presets[hidden],.pass-size[hidden]{display:none}.pass-tools input[type=text],.pass-tools input[type=file]{max-width:100%;padding:8px;border:1px solid var(--line);border-radius:4px}.pass-size{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.pass-size p{width:100%;font-size:12px}.pass-size .size{font-size:12px;min-height:44px}.pass-presets label,.pass-presets p{font-size:12px;line-height:18px}.preset-actions{display:flex;gap:8px;flex-wrap:wrap}.preset-actions button{border:1px solid var(--line);background:#fff;border-radius:4px;padding:8px;min-height:40px;font-size:12px}
@media(max-width:760px){.pricing-grid{grid-template-columns:1fr}.pricing{padding:32px 0}}

.auth-control{position:relative;flex-shrink:0}.auth-control[hidden]{display:none}.auth-control button{border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 12px;min-height:44px;font-size:13px;font-weight:600;white-space:nowrap}.auth-status{position:absolute;top:calc(100% + 6px);right:0;z-index:11;max-width:260px;min-width:max-content;padding:6px 10px;border-radius:6px;background:#fff;box-shadow:0 4px 12px #0002;font-size:12px;line-height:18px;overflow-wrap:anywhere}.auth-status:empty{display:none}
@media(max-width:760px){.auth-control button{font-size:12px;padding:8px}.header{flex-wrap:wrap}.auth-status{max-width:min(260px,80vw);min-width:0;width:max-content}}
@media(min-width:761px) and (max-width:1024px){.header{gap:8px}.header nav{gap:12px}.language-menu{margin-inline-start:0}}
.auth-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}.auth-dialog .dialog-heading{margin-bottom:16px}.auth-dialog label{display:block;margin:12px 0 4px;font-size:14px;font-weight:600}.auth-dialog input{width:100%;min-height:44px;border:1px solid #a9b2a1;border-radius:8px;padding:8px 12px}.auth-dialog .hint{margin:4px 0}.auth-dialog .account-wide{width:100%}.account-tabs{display:flex;gap:8px;margin-top:16px}.account-tabs button{flex:1;min-height:44px;border:1px solid var(--line);border-radius:8px;background:white}.account-tabs button[aria-pressed=true]{border-color:#527900;background:#f0f8e3;font-weight:700}.auth-dialog #account-message{min-height:20px;margin:8px 0;color:var(--muted);font-size:13px}.auth-dialog [hidden]{display:none!important}
