@font-face{font-family:Manrope;src:url('./fonts/manrope.ttf') format('truetype');font-style:normal;font-weight:200 800;font-display:swap}
@font-face{font-family:'Bricolage Grotesque';src:url('./fonts/bricolage-grotesque.ttf') format('truetype');font-style:normal;font-weight:200 800;font-stretch:75% 100%;font-display:swap}

:root{
  --ink:#14213d;--text:#34415c;--muted:#586781;--blue:#1d5bff;--blue-dark:#1747cc;
  --coral:var(--blue);--coral-dark:var(--blue-dark);--line:#dce4f1;--paper:#f7f9fd;
  --yellow:#ffc83d;--head:'Bricolage Grotesque',Manrope,system-ui,sans-serif;
  font-family:Manrope,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--text);
  background:var(--paper);font-synthesis:none;color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{margin:0;min-height:100vh;background:linear-gradient(#fff 0,#fff 550px,#f7f9fd 1050px);font-size:16px;line-height:1.6}
[hidden]{display:none!important}
::selection{background:#ffe397;color:var(--ink)}
button,input,select{font:inherit}
button,a,input,select,summary{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.48}
a{color:var(--blue)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid #b17d00;outline-offset:4px}
svg{display:block;flex-shrink:0}
img{display:block;max-width:100%}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:var(--head);color:var(--ink);font-weight:800;letter-spacing:-.035em;line-height:1.12}
p{margin-bottom:18px}
h2{font-size:32px;margin-bottom:15px}
h3{font-size:21px;margin-bottom:12px}
.container{width:min(1120px,calc(100% - 40px));margin-inline:auto}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;top:-100px;left:20px;z-index:20;padding:12px 18px;background:#fff;border-radius:10px;box-shadow:0 8px 30px #14213d22}
.skip-link:focus{top:12px}
.site-header{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #e9edf5}
.brand{display:inline-flex;gap:11px;align-items:center;color:var(--ink);text-decoration:none;white-space:nowrap}
.brand img{width:40px;height:40px;border-radius:11px}
.brand-wordmark{display:flex;flex-direction:column;gap:2px}
.brand-name{font:800 26px/1.1 var(--head);letter-spacing:-.035em}
.brand-subtitle{font-size:10px;line-height:1.4;color:var(--muted);font-weight:600;letter-spacing:.025em}
.header-links{display:flex;align-items:center;gap:24px}
.header-links>a{color:var(--muted);font-size:14px;font-weight:700;text-decoration:none;padding:8px 0}
.header-links>a:hover{color:var(--blue)}
.language-switch{display:flex;align-items:center;gap:2px;padding:4px;border:1px solid var(--line);background:#f8faff;border-radius:999px}
.language-switch a{padding:6px 10px;border-radius:999px;text-decoration:none;color:#53617a;font-weight:700;font-size:11px;line-height:1.5}
.language-switch a:hover{background:#e8efff;color:var(--blue)}
.language-switch a.current{background:var(--blue);color:#fff;box-shadow:0 3px 9px #1d5bff25}
.eyebrow{display:flex;align-items:center;gap:8px;color:var(--blue-dark);font-size:11px;line-height:1.6;letter-spacing:.13em;text-transform:uppercase;font-weight:800;margin-bottom:17px}
.eyebrow .dot{width:7px;height:7px;background:var(--blue);border-radius:50%;box-shadow:0 0 0 4px #e9f0ff}

/* The upload is the first action; the illustration explains the crop at a glance. */
.hero{position:relative;isolation:isolate;display:grid;grid-template-columns:1.14fr 1fr;align-items:center;gap:54px;padding:58px 0 54px}
.hero::before{content:'';position:absolute;inset:-1px -20px 0;z-index:-2;background:radial-gradient(ellipse at 90% 12%,#dae5ff 0,transparent 58%),radial-gradient(ellipse at 0 95%,#fff3d1 0,transparent 42%);border-radius:36px}
.hero::after{content:'';position:absolute;inset:0 -20px;z-index:-1;background-image:linear-gradient(#dce6f670 1px,transparent 1px),linear-gradient(90deg,#dce6f670 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(#000 0,transparent 84%);pointer-events:none}
.hero-left{min-width:0}
.hero h1{font-size:clamp(42px,5.3vw,70px);line-height:1.01;letter-spacing:-.052em;margin:0 0 21px;max-width:620px}
.hero h1 span{color:var(--blue)}
.hero-copy{font-size:17px;line-height:1.7;color:var(--muted);max-width:520px;margin-bottom:25px}
.hero-upload{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px 15px;padding:23px;border:2px dashed #99b6ff;border-radius:22px;background:#fffffff0;box-shadow:0 20px 45px -34px #1d5bff99;transition:background .16s,border-color .16s}
.hero-upload.dragging{background:#edf3ff;border-color:var(--blue);box-shadow:0 0 0 5px #1d5bff14}
.hero-upload-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;color:var(--blue);background:#eaf0ff}
.hero-upload-icon svg{width:25px;height:25px}
.upload-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;gap:1px}
.upload-copy strong{font-family:var(--head);font-size:21px;line-height:1.25;color:var(--ink);font-weight:800}
.upload-copy span{font-size:12px;color:var(--muted)}
.hero-upload .btn{grid-column:1/-1;justify-self:start;padding:12px 26px;min-width:176px;font-size:14px}
.hero-upload>p{grid-column:1/-1;margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.hero-meta{display:flex;flex-wrap:wrap;gap:9px 17px;margin:20px 0 0;font-size:11px;font-weight:700;color:#455574}
.hero-meta>span{display:flex;gap:5px;align-items:center}
.hero-meta svg{width:14px;height:14px;color:#178455}
.sample-link{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:var(--blue-dark);font-size:12px;font-weight:700;padding:0;margin-top:14px;text-align:left}
.sample-link span{font-size:17px;transition:transform .15s}
.sample-link:hover span{transform:translateX(4px)}
.hero-visual{position:relative;min-width:0;padding:35px 5px 42px 0}
.visual-orbit{position:absolute;pointer-events:none}
.orbit-one{width:84px;height:84px;border-radius:50%;background:#c8d9ff;left:-22px;top:11px}
.orbit-two{width:121px;height:121px;background:var(--yellow);border-radius:28px;right:-12px;bottom:15px;transform:rotate(-11deg)}
.mock-window{position:relative;transform:rotate(2deg);background:#fff;border:1px solid #d4dff2;border-radius:22px;box-shadow:0 35px 72px -32px #285cd273;padding:12px}
.mock-toolbar{display:flex;align-items:center;gap:12px;padding:3px 5px 13px;color:#62718c;font-size:10px;font-weight:700}
.mock-toolbar>svg{width:15px;height:15px;margin-left:auto;color:var(--blue)}
.window-dots{display:flex;gap:4px}
.window-dots i{width:6px;height:6px;border-radius:50%;background:#ced8e9}
.window-dots i:first-child{background:#f6ad86}.window-dots i:nth-child(2){background:#ffcd67}.window-dots i:nth-child(3){background:#89c8ad}
.mock-photo{position:relative;aspect-ratio:720/560;overflow:hidden;border-radius:12px;background:#b7d5ff}
.mock-photo img{width:100%;height:100%;object-fit:cover}
.mock-crop{position:absolute;left:24%;top:11%;width:53%;height:78%;border:2px solid #fff;box-shadow:0 0 0 999px #102d6042}
.mock-crop>span{position:absolute;width:10px;height:10px;background:#fff;border:2px solid var(--blue);border-radius:1px}
.mock-crop>span:nth-child(1){left:-6px;top:-6px}.mock-crop>span:nth-child(2){left:calc(50% - 5px);top:-6px}.mock-crop>span:nth-child(3){right:-6px;top:-6px}
.mock-crop>span:nth-child(4){right:-6px;top:calc(50% - 5px)}.mock-crop>span:nth-child(5){right:-6px;bottom:-6px}.mock-crop>span:nth-child(6){left:calc(50% - 5px);bottom:-6px}
.mock-crop>span:nth-child(7){left:-6px;bottom:-6px}.mock-crop>span:nth-child(8){left:-6px;top:calc(50% - 5px)}
.mock-crop>i{position:absolute;inset:33.333% 0;border-top:1px solid #ffffff8c;border-bottom:1px solid #ffffff8c}
.mock-crop>i:last-child{inset:0 33.333%;border:0;border-left:1px solid #ffffff8c;border-right:1px solid #ffffff8c}
.mock-dimensions{position:absolute;left:50%;bottom:4%;transform:translateX(-50%);border-radius:6px;padding:3px 8px;background:#14213dbf;color:#fff;font-size:10px;font-weight:700;white-space:nowrap}
.mock-pills{display:flex;gap:6px;padding:13px 3px 2px;align-items:center}
.mock-pills>span{font-size:10px;font-weight:800;padding:4px 12px;border:1px solid #e0e7f3;border-radius:999px;color:#5d6a83}
.mock-pills>span.selected{border-color:var(--blue);background:var(--blue);color:#fff}
.mock-pills>b{width:26px;height:26px;display:grid;place-items:center;margin-left:auto;color:#12865a;background:#e9f7ef;border-radius:50%}
.mock-pills>b svg{width:14px;height:14px}
.float-note{position:absolute;display:flex;align-items:center;gap:9px;padding:12px 15px;border-radius:13px;background:#fff;box-shadow:0 15px 35px -20px #1d417b85;border:1px solid #e2e8f4;color:#354463;font-size:11px;font-weight:800;max-width:calc(100% - 12px)}
.float-note svg{width:18px;height:18px;color:var(--blue)}
.note-local{top:14px;right:-6px;transform:rotate(-4deg)}
.note-mock{bottom:20px;left:-18px;transform:rotate(-3deg)}

/* Six cards, with colour used to distinguish the purpose of each tool. */
.tools-section{padding:22px 0 12px}
.tools-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:25px}
.tools-heading h2{font-size:31px;margin-bottom:8px}
.tools-heading p{font-size:13px;color:var(--muted);margin:0}
.tool-filters{display:flex;flex-wrap:wrap;gap:2px;padding:4px;background:#eaf0f9;border-radius:999px;flex-shrink:0}
.tool-filters button{background:none;border:0;border-radius:999px;padding:8px 14px;font-size:11px;font-weight:800;line-height:1.5;color:#53637f;white-space:nowrap;transition:background .15s,color .15s}
.tool-filters button:hover{background:#ffffff75;color:var(--blue)}
.tool-filters button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 2px 8px #243c6820}
.tool-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0}
.tool-card{--tool-colour:#1d5bff;--tool-colour-end:#6690ff;--tool-soft:#edf2ff;display:flex;flex-direction:column;min-width:0;min-height:218px;gap:0;border:1px solid #e0e7f2;background:linear-gradient(180deg,#fff,#fcfdff);text-align:left;padding:25px;border-radius:21px;color:var(--ink);box-shadow:0 5px 16px -12px #14213d22;transition:transform .16s,box-shadow .16s,border-color .16s}
.tool-card:hover{transform:translateY(-4px);border-color:#c0d0f6;box-shadow:0 22px 35px -27px #1d5bff80}
.tool-card[data-tool=crop]{--tool-colour:#078458;--tool-colour-end:#30be8a;--tool-soft:#e5f6ed}
.tool-card[data-tool=rotate]{--tool-colour:#d57e15;--tool-colour-end:#ffc462;--tool-soft:#fff4e2}
.tool-card[data-tool=convert]{--tool-colour:#7540ce;--tool-colour-end:#b17cef;--tool-soft:#f4eaff}
.tool-card[data-tool=watermark]{--tool-colour:#d13d7c;--tool-colour-end:#f291b7;--tool-soft:#fff0f6}
.tool-card[data-tool=pixelate]{--tool-colour:#07859c;--tool-colour-end:#46c8d3;--tool-soft:#e7f8fc}
.tool-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.tool-icon{display:grid;place-items:center;width:53px;height:53px;border-radius:15px;background:linear-gradient(135deg,var(--tool-colour-end),var(--tool-colour));color:#fff;box-shadow:0 10px 18px -12px var(--tool-colour),inset 0 1px 0 #ffffff5c}
.tool-icon svg{width:28px;height:28px;stroke-width:1.8}
.tool-arrow{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--tool-soft);color:var(--tool-colour);font-size:19px;font-weight:600;line-height:1;transition:transform .16s}
.tool-card:hover .tool-arrow{transform:translate(2px,-2px)}
.tool-card-title{font:800 21px/1.25 var(--head);letter-spacing:-.02em;margin-bottom:9px}
.tool-card-desc{font-size:13px;line-height:1.75;color:var(--muted);max-width:290px}

/* Editing workspace: independent controls beside a stable image preview. */
.workspace-nav{padding:30px 0 22px;scroll-margin-top:16px}
.back-tools{display:inline-flex;gap:8px;align-items:center;background:none;border:0;padding:0;color:#53647e;font-size:12px;font-weight:700;margin-bottom:19px}
.back-tools:hover{color:var(--blue)}
.back-tools>span{font-size:18px}
.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:21px}
.editor-heading h1{font-size:36px;margin:0 0 7px}
.editor-heading p{font-size:12px;color:var(--muted);margin:0}
.editor-private{display:inline-flex;gap:7px;align-items:center;color:#17613e;background:#eaf7ee;border:1px solid #d6eade;padding:8px 13px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.editor-private svg{width:15px;height:15px}
.editor-tool-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.editor-tool-nav button{display:flex;justify-content:center;align-items:center;gap:7px;border:1px solid #dce4f2;background:#fff;color:#465778;border-radius:11px;padding:11px 8px;font-size:11px;font-weight:700;line-height:1.5;min-width:0}
.editor-tool-nav button svg{width:17px;height:17px}
.editor-tool-nav button.active{border-color:#bdd0ff;background:#eaf0ff;color:var(--blue-dark)}
.editor-tool-nav button:hover{border-color:#9ebcff;color:var(--blue)}
.workspace{border:1px solid var(--line);background:#fff;border-radius:21px;overflow:hidden;box-shadow:0 14px 40px -26px #2b4f871f;margin-bottom:46px}
.workspace-header{display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid var(--line);padding:17px 21px}
.workspace-label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:800;color:#4d5f7b}
.workspace-label svg{width:17px;height:17px;color:var(--blue)}
.workspace-actions{display:flex;gap:7px;min-width:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d7e1f1;border-radius:11px;background:#fff;color:#344763;min-height:41px;padding:10px 15px;text-decoration:none;font-size:12px;font-weight:800;line-height:1.45;text-align:center;transition:background .15s,border-color .15s,box-shadow .15s}
.btn svg{width:16px;height:16px}
.btn:hover:not(:disabled){border-color:#a8c1ff;background:#f1f5ff;color:var(--blue-dark)}
.btn.primary,.btn.dark{border-color:var(--blue);color:#fff;background:linear-gradient(180deg,#4679ff,var(--blue));box-shadow:0 8px 17px -12px #1d5bffb3}
.btn.primary:hover:not(:disabled),.btn.dark:hover:not(:disabled){background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}
.btn.small{padding:8px 10px;min-height:35px;font-size:11px}
.btn.full{width:100%}
.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 355px;align-items:stretch}
.stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;min-height:500px;padding:29px 26px;background-color:#f3f6fc;background-image:radial-gradient(#bdcce980 .75px,transparent .75px);background-size:15px 15px}
.stage.dragging{background:#e6efff;box-shadow:inset 0 0 0 3px var(--blue)}
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:400px;padding:46px 14px 30px;margin:auto}
.upload-symbol{display:grid;place-items:center;width:84px;height:84px;border-radius:23px;color:var(--blue);background:#fff;border:1px solid #dce5f5;box-shadow:0 14px 28px -23px #264d91;margin-bottom:22px}
.upload-symbol svg{width:38px;height:38px}
.empty-state h2{font-size:26px;margin-bottom:11px}
.empty-state p{font-size:13px;color:var(--muted);max-width:320px;margin-bottom:18px}
.empty-state .btn.primary{font-size:14px;padding:13px 23px}
.empty-state .file-limit{font-size:11px;margin:15px 0 8px}
.text-button{border:0;background:none;padding:7px 0;font-size:11px;color:#536883;text-decoration:underline;text-underline-offset:4px;line-height:1.6;text-align:left}
.text-button:hover{color:var(--blue)}
.preview-wrap{display:none;justify-content:center;align-items:flex-start;width:100%;min-width:0;min-height:0;flex:none}
.preview-wrap.ready{display:flex}
.preview-canvas{display:block;width:auto;height:auto;max-width:100%;max-height:610px;border-radius:10px;box-shadow:0 15px 35px -22px #19355c70;background:repeating-conic-gradient(#e0e6f1 0% 25%,#fff 0% 50%) 50%/16px 16px;touch-action:none;user-select:none;-webkit-user-select:none}
.preview-canvas.selecting{cursor:crosshair}
.stage-hint{font-size:11px;line-height:1.75;color:#526781;text-align:center;max-width:590px;min-height:22px;margin:17px 0 0}
.controls{min-width:0;padding:23px;border-left:1px solid var(--line);background:#fff;display:flex;flex-direction:column}
.panel-kicker{font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#596e91;margin-bottom:8px}
.panel-title{font-size:23px;line-height:1.15;margin-bottom:10px}
.panel-description{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:21px}
.field{margin-bottom:15px;min-width:0}
.field label,.field-label{display:block;color:#394c6b;font-size:12px;font-weight:800;line-height:1.6;margin-bottom:7px}
.input,select{display:block;width:100%;min-width:0;border:1px solid #d6e0ef;border-radius:9px;background:#fff;color:var(--ink);padding:10px 11px;min-height:42px;font-size:13px;line-height:1.6}
.input:focus,select:focus{border-color:#729eff}
.input::placeholder{color:#718199;opacity:1}
.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.check-label{display:flex;align-items:flex-start;gap:8px;color:#435674;font-size:11px;font-weight:600;line-height:1.65;margin:0 0 16px}
.check-label input{accent-color:var(--blue);width:15px;height:15px;flex-shrink:0;margin:2px 0 0}
.hint{color:var(--muted);font-size:11px;line-height:1.8;margin:8px 0 15px;overflow-wrap:anywhere}
.button-row{display:flex;gap:7px;margin-bottom:12px}
.button-row .btn{flex:1;min-width:0}
.preset-row{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.preset-chip{border:1px solid #d9e3f2;border-radius:8px;background:#f8faff;color:#3f5576;padding:7px 9px;font-size:10px;font-weight:700;line-height:1.6;text-align:left;max-width:100%}
.preset-chip:hover:not(:disabled),.preset-chip[aria-pressed=true]{border-color:#86aaff;background:#eaf0ff;color:var(--blue-dark)}
.output-estimate{color:var(--blue-dark);background:#edf3ff;padding:11px 13px;border-radius:10px;font-size:13px;font-weight:800;line-height:1.5;margin-bottom:16px;overflow-wrap:anywhere;min-height:41px}
.output-estimate:empty{display:none}
.output-estimate.error{color:#972c22;background:#fff0ed;font-size:11px;font-weight:600}
.estimate-label{margin-top:17px}
.advanced-fields{border:1px solid #e2e8f3;border-radius:10px;background:#fafcff;padding:11px 12px;margin:10px 0 16px}
.advanced-fields summary{cursor:pointer;font-size:11px;font-weight:800;color:#435a7c;line-height:1.6}
.advanced-fields[open] summary{margin-bottom:16px}
.advanced-fields .field:last-child,.advanced-fields .check-label:last-child{margin-bottom:0}
.style-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 9px;margin-bottom:10px}
.style-options .check-label{margin:0;align-items:center}
.range-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}
.range-head label{margin:0}
.range-value{font-size:11px;line-height:1.6;font-weight:800;color:var(--blue-dark);min-width:36px;text-align:right}
.input[type=range]{appearance:auto;min-height:22px;padding:0;border:0;background:transparent;accent-color:var(--blue);cursor:pointer}
.input[type=color]{height:42px;padding:5px;cursor:pointer}
.social-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 14px}
.social-preset{display:flex;align-items:center;gap:7px;min-width:0;border:1px solid #dfe6f3;border-radius:10px;background:#fbfcff;padding:9px 8px;color:#354b6e;text-align:left;line-height:1.25;min-height:58px}
.social-preset:hover:not(:disabled),.social-preset[aria-pressed=true]{border-color:#80a5ff;background:#eaf1ff;color:var(--blue-dark)}
.social-preset>span:last-child{min-width:0}
.social-preset strong{display:block;font-size:11px;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.social-preset small{display:block;font-size:10px;color:#536581;margin-top:3px}
.platform-dot{display:grid;place-items:center;width:25px;height:25px;flex:none;border-radius:8px;font-size:10px;font-weight:800;color:#fff;background:var(--blue)}
.platform-instagram{background:linear-gradient(135deg,#7846c8,#db417c,#efa142)}
.platform-facebook{background:#1860cf;font:bold 19px Georgia,serif}
.platform-pinterest{background:#c32738;font:bold 15px Georgia,serif}
.platform-youtube{background:#d5332e;font-size:10px}
.live-badge{display:inline-flex;gap:6px;align-items:center;color:#176440;background:#eaf7ee;border:1px solid #d6eddf;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800;line-height:1.6;margin:0 0 18px}
.live-badge svg{width:13px;height:13px}
.repeat-control{display:flex;align-items:center;gap:10px;padding:13px 12px;margin:0 0 18px;border:1px solid #d4e0fa;border-radius:11px;background:#f0f5ff;color:#28497c;cursor:pointer}
.repeat-control input{accent-color:var(--blue);width:16px;height:16px;flex-shrink:0;margin:0}
.repeat-control>span{display:flex;align-items:center;gap:8px;min-width:0}
.repeat-control svg{width:18px;height:18px;color:var(--blue)}
.repeat-control strong{font-size:11px;line-height:1.6;font-weight:800}
.font-manrope{font-family:Manrope,system-ui,sans-serif}.font-bricolage{font-family:'Bricolage Grotesque',system-ui,sans-serif}.font-sans{font-family:Arial,sans-serif}.font-serif{font-family:Georgia,serif}.font-mono{font-family:'Courier New',monospace}
.live-note{padding:10px 12px;border-left:3px solid #b7ceff;background:#f5f8ff;border-radius:0 8px 8px 0}
.region-list{padding:0;margin:12px 0;list-style:none}
.region-list li{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #e5eaf4;font-size:10px;color:#486080}
.region-list button{background:#edf3ff;border:0;border-radius:6px;padding:5px 8px;font-size:10px;color:var(--blue-dark);flex-shrink:0}
.export-section{margin-top:24px;padding-top:21px;border-top:1px dashed #dce4f1}
.export-section h3{font-size:20px;margin-bottom:16px}
.quality-row{margin-bottom:15px}
.quality-preset-label{margin-top:11px}
.quality-row .preset-row{margin-bottom:0}
.download-info{font-size:10px;line-height:1.8;color:var(--muted);margin:11px 0 0;overflow-wrap:anywhere}
.download-info strong{font-weight:800;color:#324b73}
.file-stats{display:flex;flex-wrap:wrap;gap:7px 20px;padding:12px 21px;border-top:1px solid var(--line);font-size:10px;color:#556a88;overflow-wrap:anywhere}
.file-stats strong{color:#334d72;font-weight:700;max-width:240px;display:inline-block;vertical-align:bottom;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 21px;border-top:1px solid var(--line);background:#fbfcff;font-size:10px;line-height:1.75;min-height:43px}
.status{color:#536987;overflow-wrap:anywhere}
.status.error{color:#982f25}
.privacy-badge{display:flex;align-items:center;gap:6px;flex-shrink:0;color:#236245;font-size:10px;font-weight:700}
.privacy-badge svg{width:14px;height:14px}
.busy{pointer-events:none}

/* Short, useful supporting content rather than an oversized marketing page. */
.secondary-content{padding:61px 0 49px}
.section-intro{text-align:center;margin-bottom:26px}
.section-intro h2{font-size:31px;max-width:700px;margin:0 auto 13px;line-height:1.15}
.section-intro p{font-size:13px;color:var(--muted);max-width:640px;margin:0 auto}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.feature-card{border:1px solid #e0e7f2;background:#fff;border-radius:17px;padding:23px}
.feature-number{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:linear-gradient(135deg,#ffe58c,var(--yellow));color:#73520b;font-weight:800;font-size:12px;margin-bottom:16px}
.feature-card h3{font-size:20px;line-height:1.2;margin-bottom:11px}
.feature-card p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}
.privacy-banner{position:relative;isolation:isolate;display:grid;grid-template-columns:260px minmax(0,1fr);gap:55px;align-items:center;background:linear-gradient(115deg,#194ee0,#5c3cdb);color:#fff;border-radius:25px;padding:45px 57px;overflow:hidden;margin-bottom:56px}
.privacy-banner::before{content:'';position:absolute;z-index:-1;right:-120px;top:-130px;width:400px;height:400px;border-radius:50%;background:radial-gradient(#ffffff24,transparent 67%)}
.privacy-banner::after{content:'';position:absolute;z-index:-1;left:-100px;bottom:-280px;width:500px;height:500px;border:1px solid #ffffff1f;border-radius:50%;box-shadow:0 0 0 50px #ffffff05,0 0 0 100px #ffffff04}
.privacy-banner .eyebrow{color:#dce7ff;font-size:10px;letter-spacing:.14em;margin-bottom:12px}
.privacy-banner h2{color:#fff;font-size:40px;letter-spacing:-.04em;line-height:1.05;margin-bottom:16px}
.privacy-banner p:not(.eyebrow){font-size:13px;line-height:1.9;color:#e1e8ff;max-width:590px;margin-bottom:20px}
.privacy-banner a{display:inline-flex;align-items:center;gap:8px;color:#fff;text-decoration:none;font-weight:800;font-size:12px}
.privacy-banner a:hover{text-decoration:underline;text-underline-offset:4px}
.privacy-art{position:relative;display:grid;place-items:center;height:214px;width:214px;margin:auto;border:1px solid #ffffff33;border-radius:50%;background:#ffffff0b;box-shadow:0 0 0 23px #ffffff08,0 0 0 46px #ffffff04}
.privacy-art>svg{position:relative;z-index:1;width:95px;height:95px;color:#fff;stroke-width:1.35;filter:drop-shadow(0 12px 10px #123aa040)}
.privacy-art>span{position:absolute;right:-3px;top:5px;width:37px;height:37px;background:var(--yellow);border-radius:10px;transform:rotate(15deg);box-shadow:0 10px 20px #18206e35}
.faq-section{display:grid;grid-template-columns:1fr 1.65fr;gap:70px;padding:0 0 61px}
.faq-section>div:first-child{padding-top:10px}
.faq-section h2{font-size:34px;margin-bottom:13px}
.faq-section>div>p{font-size:13px;color:var(--muted);max-width:280px}
.faq-section details{padding:17px 20px;border:1px solid #dce4f1;background:#fff;border-radius:13px;margin-bottom:10px}
.faq-section details[open]{border-color:#b7cbf7;box-shadow:0 15px 27px -25px #1d5bff73}
.faq-section summary{display:flex;justify-content:space-between;align-items:center;gap:18px;list-style:none;font-size:13px;font-weight:800;color:#344866;cursor:pointer}
.faq-section summary::-webkit-details-marker{display:none}
.faq-section summary::after{content:'+';display:grid;place-items:center;width:25px;height:25px;flex:none;border-radius:50%;background:#edf3ff;color:var(--blue);font-size:19px;font-weight:500}
.faq-section details[open] summary::after{content:'−';background:var(--blue);color:#fff}
.faq-section details p{font-size:13px;line-height:1.85;color:var(--muted);margin:13px 0 0}
.site-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:30px;padding:30px 0 35px;border-top:1px solid #dfe6f2}
.site-footer .brand{font:800 23px var(--head);letter-spacing:-.03em}
.site-footer .brand img{width:33px;height:33px}
.footer-note{font-size:11px;color:var(--muted);margin:9px 0 0}
.footer-links{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:13px 20px;max-width:640px;padding-top:8px;font-size:11px;font-weight:700}
.footer-links a{color:#536783;text-decoration:none;overflow-wrap:anywhere}
.footer-links a:hover{color:var(--blue)}
.legal{max-width:820px;padding:55px 0 66px}
.legal h1{font-size:48px;line-height:1.05;margin:0 0 26px}
.legal h2{font-size:26px;margin:33px 0 16px}
.legal p,.legal li{font-size:14px;line-height:1.9;color:#4d5e78}
.legal .lead{font-size:18px;color:#5b6f8f}
.legal ul{padding-left:22px}
.legal a{overflow-wrap:anywhere}
.noscript{border:1px solid #e4ce97;background:#fff6df;color:#6b531e;padding:18px 20px;border-radius:12px;margin:20px 0;font-size:13px}

@media(max-width:1050px){
  .hero{gap:36px}.hero h1{font-size:59px}.hero-copy{font-size:15px}.note-mock{left:-12px;font-size:10px}.float-note{padding:10px 12px}
  .tools-heading{align-items:flex-start;flex-direction:column;gap:18px}.tool-filters{align-self:flex-start}.tool-card{padding:22px}.tool-card-title{font-size:20px}
  .editor-tool-nav button{flex-direction:column;font-size:10px;gap:6px}.privacy-banner{padding:38px;gap:35px;grid-template-columns:210px minmax(0,1fr)}.privacy-art{width:178px;height:178px}.privacy-banner h2{font-size:36px}
}
@media(max-width:820px){
  .container{width:calc(100% - 36px)}.site-header{min-height:80px}.hero{grid-template-columns:1fr;padding:41px 0 38px;gap:0}.hero::before,.hero::after{inset:0 -18px}.hero-left{max-width:640px;margin:auto;width:100%}.hero h1{font-size:61px;max-width:660px}.hero-copy{font-size:16px;max-width:570px}.hero-visual{display:none}.hero-upload{max-width:560px}.hero-meta{font-size:11px}.tools-section{padding-top:21px}.tools-heading h2{font-size:29px}.tool-card{min-height:213px;padding:20px}.tool-card-title{font-size:19px}.tool-card-desc{font-size:11px}.tool-nav{gap:13px}.tool-icon{width:46px;height:46px;border-radius:13px}.tool-icon svg{width:25px;height:25px}.tool-arrow{width:28px;height:28px;font-size:17px}
  .editor-layout{grid-template-columns:1fr}.controls{border-left:0;border-top:1px solid var(--line);padding:25px}.stage{min-height:320px;padding:23px}.preview-canvas{max-height:560px}.controls .panel-description{max-width:570px}.editor-heading h1{font-size:32px}.editor-private{font-size:10px}.editor-tool-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.editor-tool-nav button{flex-direction:row;font-size:11px;gap:7px}.social-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.social-preset{padding:11px}.social-preset strong{font-size:11px}.social-preset small{font-size:10px}.controls .export-section{margin-top:26px}.controls .field label,.controls .field-label{font-size:12px}.controls .hint{font-size:11px}.controls .input,.controls select{font-size:13px}.style-options{grid-template-columns:repeat(3,minmax(0,1fr))}.preset-chip{font-size:11px}.live-badge{font-size:11px}
  .secondary-content{padding-top:43px}.section-intro h2{font-size:28px}.feature-grid{gap:13px}.feature-card{padding:20px}.feature-card h3{font-size:19px}.feature-card p{font-size:11px}.privacy-banner{grid-template-columns:150px minmax(0,1fr);padding:32px 28px;gap:27px}.privacy-art{width:126px;height:126px;box-shadow:0 0 0 15px #ffffff08,0 0 0 30px #ffffff04}.privacy-art>svg{width:71px;height:71px}.privacy-art>span{width:28px;height:28px}.privacy-banner h2{font-size:31px}.privacy-banner p:not(.eyebrow){font-size:12px}.faq-section{gap:35px;grid-template-columns:1fr 1.5fr}.faq-section h2{font-size:30px}.site-footer{gap:20px}.footer-links{max-width:410px}
}
@media(max-width:540px){
  .container{width:calc(100% - 30px)}.site-header{min-height:73px;gap:10px}.brand{gap:8px}.brand img{width:34px;height:34px}.brand-name{font-size:23px}.brand-subtitle{display:none}.header-links{gap:8px}.about-link{display:none}.language-switch{gap:0;padding:3px}.language-switch a{font-size:9px;padding:5px 6px}
  .hero{padding:33px 0 32px}.hero::before,.hero::after{inset:0 -15px}.hero h1{font-size:clamp(37px,10.6vw,53px);line-height:1.04;letter-spacing:-.05em;margin-bottom:18px;overflow-wrap:anywhere}.eyebrow{font-size:9px;letter-spacing:.1em;margin-bottom:15px}.hero-copy{font-size:13px;line-height:1.8;margin-bottom:20px}.hero-upload{padding:18px;gap:10px 12px;border-radius:19px;grid-template-columns:43px minmax(0,1fr)}.hero-upload-icon{width:43px;height:43px;border-radius:12px}.hero-upload-icon svg{width:23px;height:23px}.upload-copy strong{font-size:19px}.upload-copy span{font-size:10px}.hero-upload .btn{width:100%;padding:12px 18px;font-size:13px}.hero-upload>p{font-size:10px;line-height:1.8}.hero-meta{gap:7px 12px;font-size:9px;margin-top:16px}.hero-meta svg{width:12px;height:12px}.sample-link{font-size:11px;margin-top:12px}
  .tools-section{padding-top:15px}.tools-heading{gap:16px;margin-bottom:19px}.tools-heading h2{font-size:27px}.tools-heading p{font-size:11px}.tool-filters{gap:1px;padding:3px;max-width:100%}.tool-filters button{font-size:10px;padding:8px 11px}.tool-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.tool-card{min-height:211px;padding:17px 14px;border-radius:17px}.tool-card-top{margin-bottom:17px}.tool-icon{width:42px;height:42px;border-radius:12px}.tool-icon svg{width:23px;height:23px}.tool-arrow{width:25px;height:25px;font-size:16px}.tool-card-title{font-size:18px;line-height:1.2;min-height:43px;margin-bottom:8px}.tool-card-desc{font-size:10px;line-height:1.8}
  .workspace-nav{padding:23px 0 17px}.back-tools{font-size:11px;margin-bottom:15px}.editor-heading{align-items:flex-start;gap:8px;margin-bottom:17px}.editor-heading h1{font-size:29px}.editor-heading p{font-size:10px}.editor-private{display:none}.editor-tool-nav button{font-size:10px;gap:6px;padding:10px 6px}.editor-tool-nav button svg{width:15px;height:15px}.workspace{border-radius:16px}.workspace-header{padding:12px;gap:9px;align-items:flex-start}.workspace-label{font-size:10px;gap:6px;padding-top:8px}.workspace-label svg{width:15px;height:15px}.workspace-actions{gap:5px}.workspace-actions .btn.small{padding:8px;min-height:33px}.workspace-actions .btn svg{width:14px;height:14px}.workspace-actions .btn span{display:none}.stage{padding:21px 14px;min-height:250px}.preview-canvas{max-height:440px;border-radius:7px}.stage-hint{font-size:10px;margin-top:14px}.empty-state{padding:22px 12px 15px}.empty-state h2{font-size:24px}.empty-state p{font-size:12px}.upload-symbol{width:71px;height:71px;margin-bottom:20px}.upload-symbol svg{width:33px;height:33px}.controls{padding:23px 19px}.panel-title{font-size:25px}.panel-description{font-size:12px}.field{margin-bottom:17px}.field-row{gap:10px}.btn{font-size:12px;min-height:43px}.check-label{font-size:12px;line-height:1.7}.preset-chip{padding:8px 10px;font-size:10px;min-height:35px}.social-presets{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.social-preset{min-height:63px;padding:10px 8px}.social-preset strong{font-size:10px}.social-preset small{font-size:10px}.platform-dot{width:26px;height:26px}.style-options{grid-template-columns:repeat(2,minmax(0,1fr))}.style-options .check-label{font-size:11px}.repeat-control strong{font-size:12px}.repeat-control{padding:13px}.live-badge{font-size:10px}.status-bar{flex-direction:column;align-items:flex-start;gap:6px;padding:12px 15px;font-size:10px}.privacy-badge{font-size:10px}.file-stats{padding:11px 15px;font-size:10px;gap:6px 12px}.file-stats strong{max-width:190px}
  .secondary-content{padding:36px 0 32px}.section-intro h2{font-size:25px}.section-intro p{font-size:12px;line-height:1.8}.feature-grid{grid-template-columns:1fr;gap:11px}.feature-card{padding:21px}.feature-number{margin-bottom:13px}.feature-card h3{font-size:21px}.feature-card p{font-size:12px}.privacy-banner{grid-template-columns:1fr;padding:31px 25px;gap:25px;border-radius:20px;margin-bottom:34px}.privacy-art{display:none}.privacy-banner h2{font-size:34px}.privacy-banner p:not(.eyebrow){font-size:12px;line-height:1.9}.privacy-banner .eyebrow{font-size:9px}.privacy-banner a{font-size:12px}.faq-section{grid-template-columns:1fr;gap:10px;padding-bottom:38px}.faq-section>div:first-child{padding:0}.faq-section h2{font-size:29px}.faq-section>div>p{font-size:12px;max-width:none}.faq-section details{padding:16px 17px}.faq-section summary{font-size:12px;line-height:1.6}.faq-section details p{font-size:12px}.site-footer{display:block;padding:26px 0 31px}.footer-note{font-size:11px}.footer-links{justify-content:flex-start;font-size:11px;gap:12px 18px;margin-top:20px;max-width:none;padding:0}.legal{padding:34px 0 44px}.legal h1{font-size:37px}.legal h2{font-size:24px}.legal p,.legal li{font-size:13px}.legal .lead{font-size:16px}
}
@media(max-width:360px){
  .site-header{flex-wrap:wrap;padding:13px 0;min-height:74px;gap:10px}.header-links{margin-left:auto}.language-switch a{padding:5px;font-size:9px}.brand-name{font-size:22px}.brand img{width:31px;height:31px}.hero h1{font-size:38px}.tool-filters button{font-size:9px;padding:8px 9px}.tool-card{padding:15px 12px;min-height:220px}.tool-card-title{font-size:17px}.tool-icon{width:38px;height:38px}.tool-arrow{width:23px;height:23px}.social-preset{gap:6px}.social-preset strong{font-size:9px}.platform-dot{width:23px;height:23px}.workspace-label{max-width:110px}
}
@media(max-width:540px){
  /* Keep the complete edited image in view while adjusting the options below. */
  .workspace{overflow:clip}
  .stage:has(.preview-wrap.ready){position:sticky;top:0;z-index:3;align-self:start;min-height:0;padding:15px 14px 11px;background-color:#f3f6fc;border-bottom:1px solid #d8e3f4;box-shadow:0 8px 18px -14px #183b795c}
  .stage:has(.preview-wrap.ready) .preview-canvas{max-height:200px}
  .stage:has(.preview-wrap.ready) .stage-hint{font-size:9px;line-height:1.5;min-height:0;max-width:330px;margin-top:9px}
}
/* One compact language control, with native names in an accessible details menu. */
.language-menu{position:relative;z-index:60;flex:none}
.language-trigger{display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 12px;border:1px solid #d9e3f3;border-radius:13px;background:#f7f9fd;color:#3d5274;font-size:12px;font-weight:800;line-height:1.5;cursor:pointer;list-style:none;transition:background .15s,border-color .15s,box-shadow .15s}
.language-trigger::-webkit-details-marker{display:none}
.language-trigger>svg{width:17px;height:17px;color:#5376b5}
.language-current{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.language-trigger .language-chevron{width:12px;height:12px;margin-left:3px;transition:transform .15s}
.language-menu[open]>.language-trigger{border-color:#95b4ff;background:#edf3ff;box-shadow:0 0 0 3px #1d5bff0b;color:var(--blue-dark)}
.language-menu[open] .language-chevron{transform:rotate(180deg)}
.language-options{position:absolute;top:calc(100% + 10px);right:0;display:grid;gap:3px;width:236px;max-width:calc(100vw - 32px);max-height:min(360px,65dvh);padding:8px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #dce5f4;border-radius:17px;background:#fff;box-shadow:0 18px 46px -16px #16366845,0 3px 10px #16366808;scrollbar-width:thin;scrollbar-color:#ccd9ef transparent}
.language-options a{display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:10px;min-height:41px;padding:9px 12px;border-radius:10px;color:#415574;font-size:12px;font-weight:700;line-height:1.5;text-decoration:none}
.language-options a:hover{background:#f3f6fd;color:var(--blue-dark)}
.language-options a.current,.language-options a[aria-current=page]{background:#eaf1ff;color:var(--blue-dark);font-weight:800}
.language-options .language-code{color:#6d7e98;font-size:9px;font-weight:700;letter-spacing:.08em}
.language-options a svg{width:14px;height:14px}

/* The workspace stays within the first screen; only the settings list scrolls. */
body:has(#editor:not([hidden])) .site-header{min-height:70px}
body:has(#editor:not([hidden])) .site-header .brand-subtitle{display:none}
.workspace-nav{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:11px 22px;padding:16px 0 14px;scroll-margin-top:10px}
.workspace-nav .back-tools{margin:0;font-size:11px;line-height:1.5}
.workspace-nav .editor-heading{margin:0;gap:12px}
.workspace-nav .editor-heading h1{font-size:27px;margin:0 0 3px;line-height:1.15}
.workspace-nav .editor-heading p{font-size:10px;line-height:1.6}
.workspace-nav .editor-private{padding:6px 10px;font-size:10px}
.workspace-nav .editor-tool-nav{grid-column:1/-1;gap:6px}
.workspace-nav .editor-tool-nav button{flex-direction:row;gap:6px;padding:8px 7px;font-size:10px;min-height:33px;line-height:1.4}
.workspace-nav .editor-tool-nav button svg{width:15px;height:15px}
.workspace{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;height:clamp(380px,calc(100dvh - 210px),620px);min-height:0;margin-bottom:25px;overflow:hidden}
.workspace-header{padding:11px 17px;min-height:54px;gap:10px}
.workspace-label{font-size:11px;gap:7px}
.workspace-actions{gap:5px}
.workspace-actions .btn.small{padding:7px 9px;min-height:32px;font-size:10px}
.workspace .editor-layout{grid-template-columns:minmax(0,1fr) 345px;min-width:0;min-height:0;height:100%;overflow:hidden}
.workspace .stage{display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:center;justify-items:center;gap:10px;min-height:0;min-width:0;padding:18px;overflow:hidden}
.workspace .preview-wrap{flex:none;align-items:center;max-height:100%;height:100%;min-height:0;width:100%;overflow:visible}
.workspace .preview-canvas{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;flex:none}
.workspace .stage-hint{flex:none;margin:0;min-height:0;font-size:10px;line-height:1.65;max-width:510px;max-height:33px;overflow:hidden}
.workspace .empty-state{padding:18px 12px;max-width:380px}
.workspace .empty-state .upload-symbol{width:58px;height:58px;border-radius:17px;margin-bottom:13px}
.workspace .empty-state .upload-symbol svg{width:27px;height:27px}
.workspace .empty-state h2{font-size:24px;margin-bottom:8px}
.workspace .empty-state p{font-size:11px;margin-bottom:13px}
.workspace .empty-state .btn.primary{min-height:40px;padding:10px 19px;font-size:12px}
.workspace .empty-state .file-limit{font-size:10px;margin:10px 0 3px}
.workspace .controls{min-height:0;padding:17px 19px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c4d3ec #f7f9fe;scroll-padding-block:13px}
.workspace .panel-kicker{margin-bottom:5px;font-size:9px}
.workspace .panel-title{font-size:23px;margin-bottom:8px}
.workspace .panel-description{font-size:11px;line-height:1.75;margin-bottom:14px}
.workspace .field{margin-bottom:12px}
.workspace .field label,.workspace .field-label{font-size:11px;margin-bottom:5px}
.workspace .input,.workspace select{min-height:37px;padding:8px 10px;font-size:12px;line-height:1.5}
.workspace .input[type=range]{min-height:22px;padding:0}
.workspace .input[type=color]{min-height:36px;height:36px;padding:4px}
.workspace .hint{font-size:10px;line-height:1.7;margin:7px 0 11px}
.workspace .check-label{font-size:11px;margin-bottom:12px}
.workspace .preset-row{gap:5px;margin-bottom:12px}
.workspace .preset-chip{font-size:10px;padding:6px 8px;min-height:29px;line-height:1.5}
.workspace .social-presets{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:12px}
.workspace .social-preset{min-height:51px;padding:7px;gap:6px}
.workspace .social-preset strong{font-size:10px;line-height:1.4}
.workspace .social-preset small{font-size:9px;margin-top:2px}
.workspace .platform-dot{width:23px;height:23px;border-radius:7px}
.workspace .advanced-fields{margin:9px 0 12px;padding:10px 11px;background:#fbfcff}
.workspace .advanced-fields[open] summary{margin-bottom:12px}
.workspace .live-badge{font-size:9px;margin-bottom:12px;padding:5px 8px}
.workspace .repeat-control{padding:10px;margin-bottom:12px;gap:8px}
.workspace .repeat-control strong{font-size:11px}
.workspace .style-options{gap:7px;margin-bottom:10px}
.workspace .button-row{margin-bottom:10px;gap:6px}
.workspace .button-row .btn{font-size:11px;min-height:35px;padding:8px 10px}
.workspace .output-estimate{font-size:12px;min-height:34px;padding:8px 10px;margin-bottom:12px}
.workspace .region-list{margin:9px 0}
.workspace .region-list li{padding:6px 0;font-size:10px;gap:5px}
.workspace .region-list button{min-height:28px;font-size:10px}
.workspace .region-list button[aria-pressed=true]{background:#e5edff;box-shadow:inset 0 0 0 1px #9dbafa;color:var(--blue-dark);font-weight:800}
#editor-footer{position:relative;z-index:8;border-top:1px solid #d7e2f3;background:#fff;box-shadow:0 -9px 24px -22px #23478666}
.editor-download-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 17px;min-height:67px}
.download-format{display:flex;align-items:center;gap:8px;min-width:0}
.download-format label{font-size:11px;font-weight:800;color:#506481;white-space:nowrap}
.download-format #export-format{width:89px;min-height:39px;padding:8px 10px;font-size:11px;font-weight:800;background:#f8faff}
.download-main{display:flex;justify-content:center;align-items:center;min-width:0}
#quick-download{min-width:180px;max-width:300px;width:100%;min-height:42px;padding:10px 18px;font-size:12px;border-radius:11px;box-shadow:0 8px 18px -11px #1d5bff80}
.download-settings{position:relative;min-width:0}
.download-settings details>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:9px 11px;border:1px solid #dce4f1;border-radius:10px;background:#f8faff;color:#536985;font-size:10px;font-weight:800;line-height:1.6;cursor:pointer;list-style:none;white-space:nowrap}
.download-settings details>summary::-webkit-details-marker{display:none}
.download-settings details>summary:hover,.download-settings details[open]>summary{border-color:#a0bdff;background:#edf3ff;color:var(--blue-dark)}
.download-settings details>summary svg{width:15px;height:15px}
.export-advanced-content{position:absolute;bottom:calc(100% + 13px);right:0;z-index:10;width:310px;max-width:calc(100vw - 38px);max-height:min(430px,65dvh);padding:18px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #d8e3f4;border-radius:16px;box-shadow:0 -12px 43px -12px #1636683b,0 3px 10px #1636680d;scrollbar-width:thin;scrollbar-color:#c4d3ec transparent}
.export-advanced-content h3{font-size:21px;margin:0 0 14px}
.export-advanced-content .hint,.export-advanced-content .download-info{font-size:10px;margin-top:9px;line-height:1.7}
.export-advanced-content .quality-row{margin-bottom:12px}
.export-advanced-content .btn{font-size:11px;min-height:37px}
.workspace .file-stats{padding:7px 17px;gap:5px 15px;line-height:1.7;font-size:9px}
.export-advanced-content .file-stats{display:flex;padding:9px 0 0;margin-top:11px;border-top:1px solid #e4eaf4;gap:5px 12px;font-size:9px}
.workspace .status-bar{min-height:31px;padding:7px 17px;gap:12px;font-size:9px;line-height:1.7}
.workspace .privacy-badge{font-size:9px;gap:5px}
.workspace .privacy-badge svg{width:12px;height:12px}

@media(min-width:821px) and (max-height:760px){
  .workspace-nav{gap:8px 20px;padding:12px 0}
  .workspace-nav .editor-heading h1{font-size:25px}
  .workspace-nav .editor-heading p{display:none}
  .workspace-nav .editor-tool-nav button{padding:7px 5px;min-height:30px}
  .workspace{height:calc(100dvh - 179px);min-height:330px;margin-bottom:15px}
  .workspace .stage{padding:13px 16px}
}
@media(max-width:1050px) and (min-width:821px){
  .workspace .editor-layout{grid-template-columns:minmax(0,1fr) 320px}
  .workspace .controls{padding:15px 16px}
  .workspace-nav .editor-private{font-size:9px;padding:5px 8px}
  .editor-download-bar{gap:10px;padding-inline:15px}
  #quick-download{min-width:165px}
}
@media(max-width:820px){
  body:has(#editor:not([hidden])){overflow:hidden;overscroll-behavior:none}
  body:has(#editor:not([hidden])) .site-header{min-height:58px;gap:12px}
  body:has(#editor:not([hidden])) .brand img{width:31px;height:31px}
  body:has(#editor:not([hidden])) .brand-name{font-size:23px}
  body:has(#editor:not([hidden])) .header-links>a{display:none}
  body:has(#editor:not([hidden])) .site-footer{display:none}
  .language-trigger{min-height:38px;padding:8px 10px;font-size:11px;gap:7px}
  .language-trigger>svg{width:16px;height:16px}
  .language-current{max-width:112px}
  .workspace-nav{gap:7px 14px;padding:11px 0 10px}
  .workspace-nav .back-tools{font-size:10px;max-width:115px;line-height:1.4}
  .workspace-nav .editor-heading h1{font-size:23px;margin:0;line-height:1.15;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .workspace-nav .editor-heading>div{min-width:0;max-width:100%}
  .workspace-nav .editor-heading p,.workspace-nav .editor-private{display:none}
  .workspace-nav .editor-tool-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .workspace-nav .editor-tool-nav button{font-size:10px;padding:6px 7px;min-height:29px;gap:5px;border-radius:8px}
  .workspace-nav .editor-tool-nav button svg{width:14px;height:14px}
  .workspace{height:calc(100dvh - 172px);min-height:280px;max-height:none;border-radius:15px;margin:0;padding-bottom:76px;padding-bottom:calc(76px + env(safe-area-inset-bottom));overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto}
  .workspace-header{padding:8px 11px;min-height:43px;align-items:center;gap:8px}
  .workspace-label{font-size:10px;padding:0;gap:6px;max-width:150px;line-height:1.5}
  .workspace-label svg{width:14px;height:14px}
  .workspace-actions .btn.small{padding:6px 8px;min-height:28px}
  .workspace-actions .btn svg{width:13px;height:13px}
  .workspace-actions .btn span{display:none}
  .workspace .editor-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(135px,23dvh,185px) minmax(0,1fr);height:100%;min-height:0}
  .workspace .stage,.workspace .stage:has(.preview-wrap.ready){position:relative;top:auto;z-index:1;align-self:stretch;min-height:0;padding:10px 13px 8px;gap:5px;overflow:hidden;border-bottom:1px solid #d8e3f4;box-shadow:none;background-color:#f3f6fc}
  .workspace .preview-wrap{max-height:100%;height:100%;min-height:0;align-items:center}
  .workspace .preview-canvas,.workspace .stage:has(.preview-wrap.ready) .preview-canvas{max-height:100%;max-width:100%;width:auto;height:auto;border-radius:7px}
  .workspace .stage-hint,.workspace .stage:has(.preview-wrap.ready) .stage-hint{font-size:9px;line-height:1.4;min-height:0;margin:0;max-width:95%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .workspace .controls{padding:13px 16px;border-top:0;border-left:0;overflow-y:auto;min-height:0;scroll-padding-block:10px}
  .workspace .panel-title{font-size:21px;margin-bottom:6px}
  .workspace .panel-kicker{display:none}
  .workspace .panel-description{font-size:10px;line-height:1.6;margin-bottom:11px}
  .workspace .field{margin-bottom:11px}
  .workspace .input,.workspace select{font-size:13px;min-height:36px}
  .workspace .field label,.workspace .field-label{font-size:11px}
  .workspace .preset-chip{min-height:30px;font-size:10px}
  .workspace .social-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .workspace .social-preset{min-height:47px;padding:6px}
  .workspace .social-preset strong{font-size:10px}
  .workspace .social-preset small{font-size:9px}
  .workspace .style-options{grid-template-columns:repeat(3,minmax(0,1fr))}
  .workspace .empty-state{padding:6px 9px;max-width:400px}
  .workspace .empty-state .upload-symbol{display:none}
  .workspace .empty-state h2{font-size:19px;margin-bottom:4px}
  .workspace .empty-state p{font-size:10px;line-height:1.5;margin-bottom:7px}
  .workspace .empty-state .btn.primary{font-size:11px;min-height:32px;padding:7px 15px}
  .workspace .empty-state .file-limit{display:none}
  .workspace .empty-state .text-button{font-size:9px;line-height:1.4;padding:4px 0}
  #editor-footer{position:fixed;left:18px;right:18px;bottom:0;z-index:35;border:1px solid #d8e3f4;border-bottom:0;border-radius:14px 14px 0 0;box-shadow:0 -9px 25px -15px #183d7973;background:#fffffffa;backdrop-filter:blur(12px)}
  .editor-download-bar{grid-template-columns:76px 90px minmax(0,1fr);gap:9px;padding:10px 12px;padding-bottom:calc(10px + env(safe-area-inset-bottom));min-height:63px}
  .download-format{gap:0}
  .download-format label{display:none}
  .download-format #export-format{width:76px;min-height:41px;font-size:11px;padding:8px}
  #quick-download{min-width:0;min-height:41px;font-size:12px;width:100%;padding:9px 13px;max-width:none}
  .download-settings,.download-settings details{position:static}
  .download-settings details>summary{min-height:41px;font-size:10px;padding:9px;gap:5px;white-space:normal;overflow-wrap:anywhere}
  .export-advanced-content{bottom:calc(100% + 12px);left:12px;right:12px;width:auto;max-width:none;max-height:min(440px,64dvh);padding:16px}
  .workspace>.file-stats{display:none}
  .workspace .status-bar{min-height:25px;padding:5px 12px;font-size:9px;gap:0;display:block;line-height:1.55}
  .workspace .status{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .workspace .status.error{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .workspace .privacy-badge{display:none}
}
@media(max-width:540px){
  .language-trigger{min-height:37px;padding:8px 10px;gap:6px;border-radius:11px}
  .language-current{max-width:95px;font-size:11px}
  .language-options{width:224px}
  body:has(#editor:not([hidden])) .site-header{min-height:54px}
  body:has(#editor:not([hidden])) .container{width:calc(100% - 24px)}
  .workspace-nav{gap:6px 9px;padding:9px 0}
  .workspace-nav .back-tools{max-width:94px;font-size:9px;gap:5px}
  .workspace-nav .back-tools>span{font-size:16px}
  .workspace-nav .editor-heading h1{font-size:22px}
  .workspace-nav .editor-tool-nav button{font-size:9px;min-height:28px;padding:6px 4px;gap:4px}
  .workspace{height:calc(100dvh - 161px);min-height:260px;padding-bottom:calc(75px + env(safe-area-inset-bottom))}
  .workspace .editor-layout{grid-template-rows:clamp(128px,22dvh,170px) minmax(0,1fr)}
  .workspace .preview-canvas,.workspace .stage:has(.preview-wrap.ready) .preview-canvas{max-height:100%}
  .workspace .controls{padding:12px 13px}
  .workspace .social-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace .style-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace-label{max-width:112px;font-size:9px}
  .workspace-actions{gap:4px}
  .workspace-actions .btn.small{padding:6px;min-height:28px}
  #editor-footer{left:12px;right:12px}
  .editor-download-bar{grid-template-columns:70px clamp(63px,20vw,85px) minmax(0,1fr);gap:7px;padding:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .download-format #export-format{width:70px;min-height:40px;padding:8px 7px;font-size:11px}
  #quick-download{min-height:40px;font-size:11px;padding:9px 10px;gap:6px;white-space:normal;overflow-wrap:anywhere}
  #quick-download svg{width:15px;height:15px}
  .download-settings details>summary{max-width:85px;padding:8px;font-size:9px;line-height:1.35;min-height:40px;white-space:normal}
  .download-settings details>summary svg{width:14px;height:14px}
  .export-advanced-content{left:10px;right:10px;width:auto;max-width:none}
}
@media(max-width:360px){
  body:has(#editor:not([hidden])) .site-header{flex-wrap:nowrap;padding:0;min-height:54px;gap:8px}
  .language-current{max-width:76px}
  .workspace-nav .editor-heading h1{font-size:20px}
  .workspace-nav .editor-tool-nav button{font-size:8px;gap:3px}
  .workspace-nav .editor-tool-nav button svg{width:12px;height:12px}
  .workspace-actions .btn.small{padding:5px}
  .workspace-actions .btn svg{width:12px;height:12px}
  .download-settings details>summary{max-width:67px;font-size:9px;padding:7px}
}
@media(min-width:541px) and (max-width:820px) and (max-height:600px){
  .workspace .editor-layout{grid-template-columns:minmax(0,1fr) minmax(220px,1fr);grid-template-rows:minmax(0,1fr)}
  .workspace .stage,.workspace .stage:has(.preview-wrap.ready){border-bottom:0;border-right:1px solid var(--line)}
  .workspace .preview-canvas,.workspace .stage:has(.preview-wrap.ready) .preview-canvas{max-height:100%}
  .workspace .controls{padding:10px 12px}
}
/* Let the desktop image workspace use the available screen height. */
@media(min-width:821px){
  body:has(#editor:not([hidden])){display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
  body:has(#editor:not([hidden])) .site-header{flex:none}
  body:has(#editor:not([hidden])) #main-content{display:flex;flex-direction:column;flex:1;min-height:0}
  body:has(#editor:not([hidden])) .workspace-nav{flex:none}
  body:has(#editor:not([hidden])) .workspace{flex:1;height:auto;min-height:0;margin-bottom:8px;container-type:size}
  body:has(#editor:not([hidden])) .site-footer{display:none}
  .workspace>.workspace-header{grid-row:1}
  .workspace>.editor-layout{grid-row:2}
  .workspace>.status-bar{grid-row:3}
  .workspace>#editor-footer{grid-row:4}
  .workspace .export-advanced-content{max-height:min(430px,calc(100cqh - 90px))}
}
/* One clearly labelled ad stays in supporting content, away from editing actions. */
.ad-placement{min-width:0;margin:35px 0 20px;padding:17px 0 0;border-top:1px solid #e5ebf5}
.ad-label,.ad-placement-label{display:block;margin:0 0 10px;color:#738198;font-size:9px;font-weight:600;line-height:1.6;letter-spacing:.06em;text-align:center}
.ad-slot,.ad-container{width:100%;max-width:100%;min-width:0;margin-inline:auto;background:transparent}
.ad-placement .adsbygoogle{display:block;width:100%;max-width:100%;min-height:90px;margin-inline:auto}
.ad-placement:has(.adsbygoogle[data-ad-status=unfilled]){display:none}
body:has(#editor:not([hidden])) .ad-placement{display:none!important}

/* Localised tool pages use the same calm cards and readable supporting content. */
.tool-guide{padding:38px 0 20px}
.tool-guide>h2,.tool-guide .guide-intro h2{font-size:31px;line-height:1.17;margin-bottom:13px;max-width:760px}
.tool-guide>p,.tool-guide .guide-intro p{font-size:13px;line-height:1.85;color:var(--muted);max-width:790px;margin-bottom:18px}
.tool-steps ol,ol.tool-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;list-style:none;counter-reset:tool-step;padding:0;margin:23px 0 29px}
.tool-steps ol>li,ol.tool-steps>li{position:relative;min-width:0;counter-increment:tool-step;padding:23px 22px 22px;border:1px solid #e0e7f2;border-radius:17px;background:#fff}
.tool-steps ol>li::before,ol.tool-steps>li::before{content:counter(tool-step,decimal-leading-zero);display:grid;place-items:center;width:34px;height:34px;margin-bottom:15px;border-radius:50%;background:linear-gradient(135deg,#ffe58c,var(--yellow));color:#73520b;font-size:11px;font-weight:800;line-height:1}
.tool-steps h3{font-size:20px;line-height:1.2;margin-bottom:10px}
.tool-steps p{color:var(--muted);font-size:12px;line-height:1.85;margin:0}
.tool-guide .faq-section{padding:14px 0 20px;gap:48px}
.tool-guide .faq-section h2{font-size:29px}
.related-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:24px 0 10px;padding-top:20px;border-top:1px solid #e1e8f3}
.related-tools>h2,.related-tools>h3,.related-tools>.field-label{flex-basis:100%;margin:0 0 6px;font-size:19px;line-height:1.3;color:var(--ink)}
.related-tools>a{display:inline-flex;align-items:center;gap:7px;min-height:37px;padding:8px 12px;border:1px solid #dce6f4;border-radius:10px;background:#fff;color:#415a7d;font-size:11px;font-weight:700;line-height:1.6;text-decoration:none}
.related-tools>a:hover{border-color:#97b4fa;background:#edf3ff;color:var(--blue-dark)}
.related-tools>a svg{width:14px;height:14px;color:#5279ba}
@media(max-width:820px){
  .tool-guide{padding:31px 0 16px}
  .tool-guide>h2,.tool-guide .guide-intro h2{font-size:28px}
  .tool-steps ol,ol.tool-steps{gap:12px;margin:20px 0 25px}
  .tool-steps ol>li,ol.tool-steps>li{padding:20px 17px}
  .tool-steps h3{font-size:18px}
  .tool-steps p{font-size:11px}
  .tool-guide .faq-section{gap:30px}
  .ad-placement{margin-top:30px;padding-top:15px}
}
@media(max-width:540px){
  .tool-guide{padding:28px 0 13px}
  .tool-guide>h2,.tool-guide .guide-intro h2{font-size:25px}
  .tool-guide>p,.tool-guide .guide-intro p{font-size:12px;line-height:1.8}
  .tool-steps ol,ol.tool-steps{grid-template-columns:1fr;gap:10px;margin:18px 0 23px}
  .tool-steps ol>li,ol.tool-steps>li{padding:20px;border-radius:15px}
  .tool-steps ol>li::before,ol.tool-steps>li::before{margin-bottom:12px;width:31px;height:31px}
  .tool-steps h3{font-size:20px}
  .tool-steps p{font-size:12px;line-height:1.8}
  .tool-guide .faq-section{grid-template-columns:1fr;gap:10px;padding-bottom:16px}
  .tool-guide .faq-section h2{font-size:26px}
  .related-tools{gap:7px;margin-top:19px;padding-top:17px}
  .related-tools>a{font-size:10px;min-height:35px;padding:8px 10px}
  .ad-placement{margin:28px 0 18px;padding-top:14px}
  .ad-label,.ad-placement-label{font-size:8px;margin-bottom:8px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

/* Local face selection controls. These DOM buttons never enter image exports. */
.preview-wrap{position:relative}
.region-remove-layer{position:absolute;inset:0;z-index:3;pointer-events:none}
.region-remove-layer[hidden]{display:none!important}
.region-remove{position:absolute;display:grid;place-items:center;width:26px;height:26px;min-width:26px;padding:0;border:2px solid #fff;border-radius:50%;background:#df3854;color:#fff;font:500 22px/1 system-ui;box-shadow:0 2px 7px #24385435;transform:translate(-50%,-50%);pointer-events:auto;cursor:pointer;touch-action:manipulation}
.region-remove:hover{background:#ba2441}.region-remove:focus-visible{outline:3px solid #163ee3;outline-offset:3px}
.face-detection-panel{padding:10px;border:1px solid #d6e2fb;border-radius:12px;background:#f5f8ff;margin:0 0 12px;min-width:0}
.face-detection-panel .btn{min-height:38px;font-size:11px;padding:9px 10px;white-space:normal}
.face-detection-panel #cancel-face-detection{margin-top:7px}
.face-detection-panel .hint{font-size:10px;line-height:1.5;margin:7px 0 0}
.face-detection-panel .error{color:#ac2443}
@media(max-width:540px){.region-remove{width:30px;height:30px;min-width:30px;font-size:24px}}
@media(max-width:540px){.region-remove[data-active="false"]{display:none}}

/* Use a full-width grid track so every image is centered in the stage. */
.workspace .stage{grid-template-columns:minmax(0,1fr);justify-content:stretch}
