:root{--red:#f51d26;--ink:#191919;--muted:#656565;--line:#e6e6e8;--soft:#f3f3f5;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#f6f6f7}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:radial-gradient(ellipse at 50% 0,rgba(245,29,38,.065),transparent 470px);min-height:100svh}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.4}
button,input,.stage{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #90131a;outline-offset:4px}
.shell{max-width:1050px;margin:auto;padding:22px 20px 36px}
.hero{text-align:center;margin-bottom:24px}
.date{display:inline-block;border:1px solid var(--line);border-radius:30px;background:#fff;color:#bd0008;font-size:.8rem;letter-spacing:.08em;font-weight:900;padding:7px 13px}
h1{font-size:clamp(2rem,5vw,3.4rem);letter-spacing:-.055em;line-height:1.05;margin:12px 0 8px;color:#4b0004;font-weight:900}
h1 span{color:var(--red)}
.office{display:inline-block;background:var(--red);color:#fff;font-weight:900;font-size:1rem;border-radius:8px;padding:7px 12px}
.tagline{color:var(--muted);font-size:.875rem;font-weight:650;margin:10px 0 0}
.app{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-rows:auto 1fr;gap:16px;align-items:start}
.card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 32px rgba(0,0,0,.035)}
.controls{grid-column:2;grid-row:1;padding:20px}
h2{font-size:1.125rem;line-height:1.35;margin:0;font-weight:850}
.controls h2{margin-bottom:20px}
fieldset{padding:0;border:0;margin:0 0 20px;min-width:0}
fieldset[hidden]{display:none}
legend,.zoom-label label{font-weight:750;font-size:.875rem;margin-bottom:10px;padding:0}
.formats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.format{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;min-width:0;border-radius:12px;cursor:pointer}
.format input{position:absolute;opacity:0;width:1px;height:1px}
.format-body{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;min-height:106px;border:1.5px solid var(--line);border-radius:12px;background:#fafafa;padding:10px 3px;gap:7px}
.format input:checked+.format-body{color:#bd0008;background:#fff3f3;border-color:var(--red)}
.format input:focus-visible+.format-body{outline:3px solid #90131a;outline-offset:3px}
.format-name{font-size:.875rem;font-weight:750;line-height:1.25}
.format-size{font-size:.75rem;color:var(--muted);line-height:1.2}
.shape-wrap{height:33px;width:36px;display:grid;place-items:center}
.shape{display:block;max-height:33px;max-width:33px;border:2px solid currentColor;border-radius:3px;background:transparent}
.variants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.variant{position:relative;min-width:0;cursor:pointer}
.variant[hidden]{display:none}
.variant input{position:absolute;opacity:0;width:1px;height:1px}
.variant-body{display:flex;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:10px;padding:7px;background:#fafafa;font-size:.8125rem;font-weight:750}
.variant-body img{display:block;width:44px;height:44px;object-fit:contain;border-radius:5px;background:var(--soft)}
.variant input:checked+.variant-body{color:#bd0008;background:#fff3f3;border-color:var(--red)}
.variant input:focus-visible+.variant-body{outline:3px solid #90131a;outline-offset:3px}
.button{display:block;width:100%;min-height:48px;padding:13px 15px;border:0;border-radius:12px;font-weight:800;font-size:.9375rem;line-height:1.4}
.primary{background:var(--red);color:#fff}
.primary:hover{background:#df1520}
.privacy{font-size:.75rem;color:var(--muted);text-align:center;margin:10px 0 0}
.status{font-size:.875rem;line-height:1.4;color:#a50812;margin:10px 0 0}
.status:empty{display:none}
.preview-card{grid-column:1;grid-row:1/span 2;padding:16px}
.preview-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.dimensions{font-size:.8125rem;color:var(--muted);white-space:nowrap}
.stage-box{display:grid;place-items:center;min-width:0}
.stage{position:relative;width:min(100%,560px);aspect-ratio:1/1;overflow:hidden;border-radius:10px;background:#efeff1;touch-action:auto;user-select:none;cursor:pointer}
.stage[data-shape="vertical"]{width:min(100%,310px)}
.stage.has-photo{cursor:grab;touch-action:pan-y}
.stage.has-photo:active{cursor:grabbing}
canvas{width:100%;height:100%;display:block}
.empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:18px 20%;transform:translateY(-8%)}
.empty strong{display:block;font-size:1.125rem;line-height:1.3;margin-bottom:7px}
.empty span{display:block;font-size:.875rem;line-height:1.4;color:var(--muted)}
.empty[hidden]{display:none}
.help{font-size:.8125rem;line-height:1.45;color:var(--muted);margin:10px 0 0}
.preview-help{text-align:center;margin-top:14px}
.adjustments{grid-column:2;grid-row:2;padding:20px}
.zoom-label{display:flex;align-items:center;justify-content:space-between}
.zoom-label output{color:var(--muted);font-size:.8125rem;font-variant-numeric:tabular-nums}
input[type=range]{width:100%;height:28px;accent-color:var(--red);margin:0 0 14px;cursor:pointer}
.secondary{background:var(--soft);color:var(--ink);margin-bottom:14px}
.secondary:hover:enabled{background:#e7e7eb}
.download{background:var(--ink);color:#fff}
.download:hover:enabled{background:#333}
.adjustments .help{text-align:center}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.no-script{padding:18px;text-align:center}
@media(max-width:760px){
 .shell{max-width:560px;padding:8px 8px 12px;--mobile-stage-height:clamp(240px,calc(100svh - 385px),480px)}
 .hero{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px;min-height:34px}
 .date{flex:0 0 54px;font-size:.58rem;letter-spacing:.015em;line-height:1.2;padding:5px 4px}
 h1{font-size:clamp(1.05rem,5.3vw,1.55rem);white-space:nowrap;margin:0;line-height:1.1}
 .office{flex:0 0 91px;font-size:.6rem;line-height:1.2;padding:5px 6px;border-radius:6px}
 .tagline{display:none}
 .app{display:flex;flex-direction:column;gap:8px}
 .card{border-radius:14px}
 .controls,.preview-card,.adjustments{width:100%;padding:8px}
 .controls h2,.controls legend,.preview-top,.privacy,.adjustments .help{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:0;padding:0}
 fieldset{margin-bottom:6px}
 .formats{gap:6px}
 .format-body{flex-direction:row;gap:6px;min-height:44px;padding:6px 4px;border-radius:9px}
 .format-name{font-size:.78rem}
 .format-size{display:none}
 .shape-wrap{height:26px;width:26px}
 .shape{max-height:25px;max-width:25px}
 .variants{gap:6px}
 .variant-body{padding:4px 6px;gap:7px;font-size:.78rem;min-height:42px}
 .variant-body img{width:32px;height:32px}
 .button{min-height:44px;padding:10px 8px;border-radius:9px}
 .status{font-size:.75rem;margin-top:6px}
 .stage{width:min(100%,var(--mobile-stage-height))}
 .stage[data-shape="vertical"]{width:min(100%,calc(var(--mobile-stage-height)*.5625))}
 .stage[data-format="retrato"]{width:min(100%,calc(var(--mobile-stage-height)*.8))}
 .stage{border-radius:8px}
 .empty{padding:12px 15%}
 .empty strong{font-size:1rem;margin-bottom:4px}
 .empty span{font-size:.75rem}
 .preview-help{font-size:.7rem;line-height:1.3;margin-top:6px}
 .adjustments{display:grid;grid-template-columns:1fr 1fr;gap:0 6px}
 .zoom-label,input[type=range]{grid-column:1/-1}
 .zoom-label label{font-size:.75rem;margin-bottom:0}
 .zoom-label output{font-size:.75rem}
 input[type=range]{height:30px;margin:0 0 3px}
 .adjustments .button{font-size:.8rem;padding:8px 4px}
 .secondary{margin:0}
}
@media(prefers-reduced-motion:no-preference){.button,.format-body,.variant-body{transition:background-color .15s,border-color .15s}}
