:root{color-scheme:light;background:#eeedef;color:#26272b;font-family:Inter,system-ui,-apple-system,sans-serif;--ink:#26272b;--muted:#55555f;--line:#e2e0e4}
*{box-sizing:border-box}
body{margin:0;min-width:0}
h1,h2,p{margin:0}
button,input,select{font:inherit}
button,summary,select{cursor:pointer}
button:disabled,select:disabled{cursor:default;opacity:.54}
:focus-visible{outline:3px solid #686779;outline-offset:3px}
[hidden]{display:none!important}
.topbar{background:#f7f6f7;border-bottom:1px solid #e4e2e6}
.top-inner,main{width:min(1300px,calc(100% - 64px));margin:0 auto}
.top-inner{min-height:63px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.brand{display:flex;align-items:center;gap:10px;font-weight:780;font-size:1.15rem;letter-spacing:-.03em}
.brand-icon{width:34px;height:34px;border-radius:8px;background:#26272b;color:#ecebf0;display:grid;place-items:center}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.intro{padding:25px 0 21px}
h1{font-size:clamp(2rem,4.4vw,3.25rem);line-height:1.03;letter-spacing:-.065em;font-weight:790}
.intro p{margin-top:7px;color:var(--muted);line-height:1.5}
.studio{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);grid-template-rows:auto 1fr;gap:14px;align-items:start;padding-bottom:20px}
.panel{border-radius:25px;box-shadow:0 8px 30px #3532420b}
.preview-panel{grid-column:2;grid-row:1 / span 2;background:#fff;padding:18px;min-width:0;border:1px solid #fff}
.preview-heading,.preview-footer,.label-row,.photo-meta{display:flex;justify-content:space-between;align-items:center;gap:10px}
.preview-heading h2{font-size:1.08rem;letter-spacing:-.025em;font-weight:730}
.dimensions,output{font-family:ui-monospace,monospace;font-variant-numeric:tabular-nums}
.dimensions{font-size:.81rem;color:var(--muted)}
.stage{margin-top:12px;display:grid;place-items:center;grid-template-columns:minmax(0,1fr);background:#f0eff1;padding:17px;border-radius:17px;min-height:min(52vh,500px)}
canvas{display:block;width:min(100%,min(51vh,480px));height:auto;aspect-ratio:1;box-shadow:0 10px 31px #33313b22;background:#fff;touch-action:none;cursor:grab}
canvas.is-dragging{cursor:grabbing}
.preview-footer{min-height:39px;font-size:.9rem;color:var(--muted)}
.preview-footer .ready{color:#315749}
.export{border-top:1px solid #e7e9ea;padding-top:12px;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
.export-settings,.action-buttons{display:flex;flex-wrap:wrap;gap:8px}
.export-settings label{display:grid;gap:4px;font-size:.86rem;font-weight:660}
.button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:999px;padding:8px 15px;font-size:.9rem;font-weight:710;white-space:nowrap}
.outline{background:#fff;border-color:#d5d9dc;color:var(--ink)}
.outline:hover:not(:disabled){background:#f0eff2}
.primary{background:#24252a;color:#fff}
.primary:hover:not(:disabled){background:#404149}
.controls{background:#fff;color:var(--ink);padding:17px;display:grid;grid-template-columns:minmax(0,1fr);gap:13px;min-width:0}
.control-group{min-width:0}.control-group+.control-group{border-top:1px solid #ebe9ed;padding-top:12px}
.field-label,.controls h2,.controls summary{display:block;font-size:.94rem;font-weight:730;margin-bottom:7px}
.controls summary{display:list-item;margin-bottom:0}
.controls details[open] summary{margin-bottom:9px}
.controls :focus-visible{outline-color:#686779}
select,.link-input{min-width:0;min-height:40px;max-width:100%;border-radius:13px;border:1px solid #e6e4e8;padding:7px 9px;color:var(--ink);background:#fff}
.controls select,.link-input{width:100%;background:#f5f4f6;color:var(--ink);border-color:#e6e4e8}
.link-input::placeholder{color:#666672}
.field-error{color:#a52b39;font-size:.88rem;line-height:1.4;margin-top:6px}
.controls .field-error{color:#a52b39}
.field-error:empty{display:none}
.dropzone{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:9px;align-items:center;border:1px dashed #c9c6cf;border-radius:15px;padding:10px;background:#f5f4f7;cursor:pointer}
.dropzone:hover,.dropzone.dragover{background:#eeedf2}
.dropzone:focus-within{outline:3px solid #686779;outline-offset:2px}
.dropzone input{position:absolute;width:1px;height:1px;opacity:0}
.dropzone strong{font-size:.9rem}
.dropzone span:last-child,.hint{font-size:.82rem;color:#575763}
.upload-icon{grid-row:span 2;display:grid;place-items:center;width:31px;height:31px;background:#e9e7ec;color:#373640;border-radius:7px}
.photo-meta{margin-top:6px;min-height:28px;justify-content:flex-start;color:#52525c;font-size:.85rem}
.photo-meta img{width:28px;height:28px;flex:none;object-fit:cover;border-radius:5px}
.photo-meta span{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.text-button{background:none;border:0;padding:3px 0;color:#454450;font-size:.86rem;font-weight:650;white-space:nowrap}
.controls .text-button{color:#454450;flex:none}
.text-button:hover:not(:disabled){text-decoration:underline}
.slider-stack{display:grid;gap:6px}
.slider label,.slider output{font-size:.845rem}
output{color:#55555f}
.range-row{display:flex;align-items:center;gap:8px;min-height:20px}
input[type=range]{flex:1;min-width:0;width:100%;margin:0;accent-color:#34353d}
.step{width:26px;height:25px;flex:none;display:grid;place-items:center;background:#eeedf1;color:var(--ink);border:1px solid #e7e4eb;border-radius:6px;font-size:1rem;padding:0}
.step:hover:not(:disabled){background:#e0dee5}
.hint{margin-top:5px;line-height:1.35}
.swatches{display:flex;gap:9px;padding:2px;margin-top:7px}
.swatch{width:23px;height:23px;border:1px solid #d5d2d9;border-radius:50%;background:var(--swatch)}
.swatch[aria-pressed=true]{outline:2px solid #34353d;outline-offset:2px}
@media(max-width:940px){.top-inner,main{width:calc(100% - 36px)}.studio{grid-template-columns:minmax(240px,285px) minmax(0,1fr)}.stage{min-height:0}}
@media(max-width:650px){.top-inner,main{width:calc(100% - 26px)}.top-inner{min-height:56px}.intro{padding:18px 0 15px}.studio{grid-template-columns:minmax(0,1fr)}.preview-panel,.controls{padding:12px}.stage{padding:12px}canvas{width:min(100%,360px)}.export{gap:8px}.export-settings label{font-size:.83rem}}

canvas.is-picking{cursor:crosshair}
.focus-slider{margin-top:7px}
.focus-button{width:100%;min-height:33px;background:#eeedf1;color:var(--ink);border-color:#e6e4e8;margin-top:5px}
.focus-button[aria-pressed=true]{background:#ecebf0;color:#23242a}

.link-label{flex-wrap:wrap;margin-bottom:7px}
.link-label .field-label{margin:0}
.brand-icon{color:#fff;border-radius:12px}
.download-feedback{flex:1 0 100%;min-width:0;font-size:.875rem;color:var(--muted)}
.download-feedback p{margin-bottom:3px}
.download-feedback a{display:inline-block;margin-right:12px}
.export-settings,.action-buttons,.export-settings label{min-width:0;max-width:100%}
.action-buttons .button{white-space:normal;text-align:center}
.preview-footer{flex-wrap:wrap;padding-block:4px}
@media(max-width:650px){
  .studio{display:flex;flex-direction:column;align-items:stretch;gap:12px}
  .preview-panel{border-radius:20px}
  .export-settings{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.76fr)}
  .action-buttons{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .button{padding-inline:12px}
  input,select{font-size:16px}
}

.header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}
.language-switch{display:flex;gap:2px;flex:none;background:#e9e8ec;border:1px solid #e2e0e4;border-radius:999px;padding:2px}
.language-switch button{min-width:32px;min-height:32px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:.82rem;font-weight:750;padding:2px 6px}
.language-switch button[aria-pressed=true]{background:#24252a;color:#fff}
.language-switch button:hover[aria-pressed=false]{background:#fff;color:var(--ink)}
@media(max-width:390px){
  .top-inner{gap:5px}
  .header-actions{gap:5px}
}

.generate-button{width:100%}
.advanced{display:block}
.advanced-settings{display:grid;gap:12px;margin-top:12px}
