body{background:radial-gradient(ellipse at 5% 15%,#fcecf4 0,transparent 36%),#fffbfd}main{max-width:1180px;margin:48px auto}.image-hero{text-align:center}.eyebrow{font-size:12px;letter-spacing:2px;color:#b32652}.image-hero h1{font-size:clamp(28px,4vw,46px);line-height:1.35;margin:14px 0}.image-hero>p{font-size:18px;margin:12px 0}.hero-divider{color:#c49bce;letter-spacing:6px;margin:22px 0}.image-upload-scene{--mascot:220px;position:relative;max-width:850px;margin:195px auto 28px;border:1.5px dashed #ef4279;border-radius:48px;padding:14px;background:#fff7fa;box-shadow:0 20px 45px #bd255410}.image-upload-scene .drop{border:0;border-radius:36px;background:linear-gradient(120deg,#d8265d,#bb194b);color:#fff;padding:38px 20px;display:flex;align-items:center;flex-direction:column;gap:17px;min-height:280px;transition:background .2s,box-shadow .2s}.drop strong{font-size:clamp(22px,3vw,32px);line-height:1.5}.drop small{font-size:16px}.upload-plus{width:80px;height:80px;display:grid;place-items:center;background:white;color:#291c36;border-radius:50%;box-shadow:0 4px 0 #a61b4933}.upload-plus svg{width:38px;height:38px}.image-upload-scene .drop:hover,.image-upload-scene .drop.is-dragging{background:#ab1646;box-shadow:0 0 0 5px #f8bed3}.drop:focus-visible{outline:3px solid #7c47a5;outline-offset:5px}.sweetie{position:absolute;pointer-events:none;z-index:2;width:var(--mascot);height:var(--mascot);right:24px;top:calc(14px - var(--mascot)*.84);background:url('/static/mascot-sprite-smile.png') 0 0 /400% 200% no-repeat;animation:sweetie-gesture 6s steps(1,end) infinite}.image-benefits{display:flex;justify-content:center;gap:30px;flex-wrap:wrap;color:#695272;font-size:14px}.image-benefits span:before{content:'✦';color:#ba8ac4;margin-right:9px}.image-settings{margin-top:42px;background:#fff;border:1px solid #efdfE9;border-radius:24px;padding:28px}.settings-heading h2{font-size:22px;margin:0}.settings-heading p{margin:5px 0 22px}.options{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.options label{font-size:14px}.actions button{border-radius:999px}.actions .primary:hover{background:#b91d4c}.image-settings .result{min-width:0}.image-settings .actions{align-items:stretch}
@keyframes sweetie-gesture{0%,30%{background-position:0 0}31%{background-position:33.333333% 0}32.5%{background-position:66.666667% 0}34%{background-position:100% 0}35.5%{background-position:0 0}51%{background-position:0 100%}53%{background-position:33.333333% 100%}55%,59%{background-position:66.666667% 100%}61%{background-position:100% 100%}63%{background-position:33.333333% 100%}65%,69%{background-position:66.666667% 100%}71%{background-position:100% 100%}73%{background-position:0 100%}75%,100%{background-position:0 0}}
@media(max-width:600px){main{margin-top:28px}.image-hero>p{font-size:15px}.image-upload-scene{--mascot:clamp(132px,36vw,176px);margin-top:145px;padding:8px;border-radius:30px}.sweetie{right:16px;top:calc(8px - var(--mascot)*.84)}.image-upload-scene .drop{border-radius:23px;padding:28px 14px;min-height:240px;gap:16px}.drop strong{font-size:23px}.drop small{font-size:13px}.upload-plus{width:64px;height:64px}.image-benefits{gap:10px 18px;font-size:12px}.image-settings{padding:18px;margin-top:28px}.options{grid-template-columns:1fr 1fr;gap:14px}.actions button{flex:1 1 160px}.hero-divider{letter-spacing:3px}.image-hero h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){.sweetie{animation:none}}
header{margin:18px 18px 0;border:1px solid white;border-bottom:0;border-radius:32px 32px 0 0;background:#fffcfddd;padding:18px 6%;min-height:85px;gap:18px}.brand{display:flex;gap:10px;align-items:center;font-size:24px;color:#d82b50;line-height:1.2}.brand small{font-size:8px;letter-spacing:2px;display:block;font-weight:400;color:#858593}.image-tool-nav{display:flex;gap:4px;background:#f5f2f6;border-radius:28px;padding:4px;flex-shrink:0}.image-tool-nav a{display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:12px;color:#293e38;white-space:nowrap;border-radius:24px}.image-tool-nav a:hover{background:#fce2e9}.image-tool-nav svg{width:20px;height:20px}.image-current{font-size:13px;white-space:nowrap;color:#a3234d}.language-switch{display:flex;gap:8px;margin-left:auto}.language-switch button{width:37px;height:37px;padding:3px;border-radius:50%;background:white;border:2px solid transparent;display:grid;place-items:center}.language-switch svg{width:27px;height:27px}.language-switch button[aria-pressed=true]{border-color:#cb2454;box-shadow:0 0 0 3px #f7dfeb}@media(max-width:800px){header{gap:12px;flex-wrap:wrap}.image-tool-nav{order:10;width:100%;justify-content:center}.image-tool-nav a{flex:1;justify-content:center}.image-current{order:11;width:100%;text-align:center}.brand{margin-right:auto}.language-switch{margin-left:0}}@media(max-width:600px){header{margin:8px 8px 0;padding:12px;border-radius:22px 22px 0 0}.language-switch{gap:4px}.language-switch button{width:32px;height:32px}.language-switch svg{width:24px;height:24px}}
.image-workspace .image-queue{display:none}.has-images main{max-width:none;margin:0;padding:0}.has-images .image-hero{display:none}.has-images .image-workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;min-height:calc(100vh - 105px);background:#f7f4f8}.has-images .image-queue{display:block;padding:32px;min-width:0}.has-images .image-settings{margin:0;border-radius:0;border:0;border-left:1px solid #eadfe7;padding:24px;align-self:start;position:sticky;top:0;max-height:100vh;overflow:auto}.has-images .options{grid-template-columns:1fr 1fr}.queue-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.queue-heading h2{font-size:21px;margin:0}.queue-heading h2 span{font-size:13px;color:#8c7687;margin-left:8px}#addImages{display:flex;align-items:center;gap:8px;background:#ce2556;color:white;border:0;border-radius:999px}#addImages svg{width:22px;height:22px}#queueGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}.queued-image{position:relative;background:white;padding:18px 12px;border-radius:16px;box-shadow:0 4px 18px #4d233709;min-width:0;text-align:center}.queued-image img{width:100%;height:190px;object-fit:contain}.queued-image p{margin:12px 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.image-dimensions{font-size:12px;color:#ab2551}.remove-image{position:absolute;top:8px;right:8px;width:30px;height:30px;padding:6px;border-radius:50%;background:#fff;box-shadow:0 2px 8px #0001}.remove-image svg{width:16px;height:16px}.resize-tabs{display:flex;background:#f7f2f6;padding:4px;border-radius:12px;margin:14px 0}.resize-tabs button{flex:1;font-size:13px;border:0;background:transparent}.resize-tabs button[aria-pressed=true]{background:white;color:#be2252;box-shadow:0 2px 8px #0001}.resize-controls label{font-size:13px}.options label[hidden],#percentLabel[hidden]{display:none!important}.has-images .actions{display:flex;flex-direction:column}.has-images .actions button{width:100%;font-size:14px;min-height:44px}.image-queue .results:not(:empty){border-top:1px solid #e8dbe4;margin-top:32px;padding-top:24px}.has-images .settings-heading p{font-size:13px}@media(max-width:900px){.has-images .image-workspace{grid-template-columns:minmax(0,1fr) 300px}.has-images .image-queue{padding:20px}#queueGrid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.queued-image img{height:145px}.has-images .image-settings{padding:18px}}@media(max-width:650px){.has-images .image-workspace{display:flex;flex-direction:column}.has-images .image-settings{position:static;max-height:none;border-left:0;border-top:1px solid #eadfe7}.has-images .image-queue{padding:20px 16px}.queue-heading h2{font-size:18px}#queueGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.queued-image img{height:130px}.queued-image{padding:14px 8px}.image-dimensions{font-size:10px}.has-images .actions button{flex:auto}.queue-heading h2 span{display:block;margin:2px 0 0}}
#aspectControls[hidden]{display:none!important}.aspect-note{font-size:12px;line-height:1.6;margin:8px 0;color:#846b7e}.resize-tabs button{padding:9px 7px;font-size:12px;white-space:nowrap}.queued-image img.aspect-preview{height:auto;max-height:190px;width:auto;max-width:100%;display:block;margin:0 auto}.queued-image:has(.aspect-preview){display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:260px}.queued-image:has(.aspect-preview) p{max-width:100%}@media(max-width:650px){.queued-image img.aspect-preview{max-height:130px}.queued-image:has(.aspect-preview){min-height:210px}}

.image-effects{padding:18px;border:1px solid #efcddd;border-radius:16px;background:#fff5fa;margin:16px 0}.image-effects select{width:100%}.image-effects p{font-size:13px;line-height:1.6;color:#805c73}.image-effects output{font-weight:700;color:#bf1e59}.image-effects input[type=range]{width:100%;accent-color:#d51d5d}

.image-mode-tabs{display:flex;gap:12px;overflow-x:auto;padding:8px 4px;scroll-snap-type:x mandatory;margin:12px auto;max-width:1100px}.image-mode-tabs button{display:flex;flex:1 0 170px;align-items:center;justify-content:center;gap:10px;border:1px solid #ecc9da;border-radius:18px;background:#fff8fc;padding:18px 14px;color:#71334e;scroll-snap-align:start;font-weight:700}.image-mode-tabs svg{width:27px;height:27px;flex-shrink:0}.image-mode-tabs button[aria-pressed=true]{background:linear-gradient(135deg,#ea2868,#bd104b);color:white;border-color:#d91d5b;box-shadow:0 5px 16px #be1e4e24}.image-free-note{text-align:center;color:#7b5b6d;font-size:14px;margin:10px 16px 24px}.image-effects:has(#removeHint[hidden]):has(#bwControl[hidden]){display:none}.image-settings [hidden]{display:none!important}.has-images .image-mode-tabs{padding:12px 16px}.has-images .image-free-note{margin-bottom:16px}@media(max-width:650px){.image-mode-tabs{gap:8px;padding:8px 12px}.image-mode-tabs button{flex-basis:136px;flex-direction:column;padding:12px 8px;font-size:13px}.image-free-note{font-size:12px}.image-settings .actions .primary{width:100%}}

.image-landing-links{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:24px 0}
.image-landing-links a{padding:10px 16px;border:1px solid #efc9db;border-radius:14px;background:#fff8fc;color:#9f2452;font-size:15px}
.image-landing-links a[aria-current=page]{background:#d51d59;color:white}
main:has(.image-mode-tabs)>.image-landing-links{display:none}
.image-editor{padding:20px;margin-bottom:22px;border:1px solid #efbfd6;border-radius:22px;background:#fff7fb;min-width:0}
.image-editor[hidden],.image-editor [hidden]{display:none!important}
.image-editor label{display:flex;flex-direction:column;gap:8px;font-size:15px;color:#53233d}
.image-editor input,.image-editor select{width:100%;box-sizing:border-box;min-height:42px;border:1px solid #deb6cb;border-radius:10px;padding:8px;background:white;color:#462038}
.image-editor .edit-preview{display:block;max-width:100%;height:auto;margin:18px auto;touch-action:none;cursor:crosshair;background:repeating-conic-gradient(#eee 0% 25%,white 0% 50%) 0/20px 20px}
.crop-fields,.watermark-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.editor-help{font-size:14px;line-height:1.7;color:#806479}
.image-mode-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:900px){.image-mode-tabs{display:flex;overflow-x:auto;justify-content:flex-start;scroll-snap-type:x mandatory}.image-mode-tabs button{flex:0 0 145px;scroll-snap-align:start}}
@media(max-width:480px){.image-editor{padding:12px}.crop-fields,.watermark-fields{gap:10px}}
/* Image processing feedback uses the shared accessible toast. */
.global-toast{border-radius:18px;padding:18px 24px;box-shadow:0 12px 40px #34132f30;animation:image-toast-in .22s ease-out;font-weight:600}
@keyframes image-toast-in{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
@media(prefers-reduced-motion:reduce){.global-toast{animation:none}}

/* Mobile tools form a centered, balanced grid; settings fill the workspace. */
@media(max-width:650px){
 .image-mode-tabs,.has-images .image-mode-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:460px;box-sizing:border-box;margin:12px auto;padding:8px 16px;gap:10px;overflow:visible;scroll-snap-type:none}
 .image-mode-tabs button{width:100%;min-width:0;min-height:84px;box-sizing:border-box;padding:12px 8px;white-space:normal;line-height:1.4;gap:8px}
 .has-images .image-workspace{width:100%;min-width:0;min-height:0}
 .has-images .image-settings{align-self:stretch;width:100%;min-width:0;box-sizing:border-box;padding:20px 16px}
 .image-settings .actions{display:grid;grid-template-columns:1fr;gap:10px;width:100%}
 .image-settings .actions button{width:100%;min-width:0;min-height:46px;height:auto;padding:11px 16px;box-sizing:border-box;font-size:14px;line-height:1.5;white-space:normal}
 .image-settings #notice{margin:18px 0 0;overflow-wrap:anywhere}
}
