:root{color-scheme:dark;--bg:#101216;--panel:#191c22;--line:#30343c;--muted:#aeb2bc;--ink:#f6f3ef;--accent:#eeba78;--surface:#20242c;font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 75% 0,#1d1c20 0,transparent 42%),var(--bg);color:var(--ink);min-height:100vh}
[hidden]{display:none!important}
button,input,select{font:inherit}
button,select{cursor:pointer}
button:disabled,select:disabled,input:disabled{cursor:default;opacity:.5}
button:focus-visible,select:focus-visible,input:focus-visible,.upload:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.top{border-bottom:1px solid #2b2d33;background:#15171b}
.top-inner,.shell{width:min(1240px,calc(100% - 64px));margin:0 auto}
.top-inner{min-height:73px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:11px;line-height:1.1}
.brand img{width:38px;height:38px}
.brand strong{font-size:19px;letter-spacing:-.7px}
.brand strong span{color:var(--accent)}
.brand small{display:block;margin-top:5px;font-size:9px;letter-spacing:.15em;color:var(--muted);font-weight:750}
.privacy{color:#d3d7d0;font-size:12px;background:#222825;border:1px solid #363e37;border-radius:999px;padding:5px 11px;white-space:nowrap}
.privacy span,.eyebrow span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#a8d4a7;margin-right:6px;vertical-align:1px}
.intro{padding:34px 0 24px;display:flex;justify-content:space-between;gap:20px;align-items:flex-end}
.eyebrow{margin:0;color:var(--accent);font-weight:800;font-size:10px;letter-spacing:.22em}
.eyebrow span{background:var(--accent)}
h1{font-size:clamp(35px,5vw,59px);line-height:1.04;letter-spacing:-.055em;margin:8px 0 8px;font-weight:760}
.intro p:last-child{color:var(--muted);margin:0}
button{border:0}
.secondary,.text-button{background:transparent;color:#dedfe4;border:1px solid #3a3f49;padding:6px 10px;border-radius:7px;font-size:12px;font-weight:650;white-space:nowrap}
.secondary:hover:not(:disabled),.text-button:hover:not(:disabled){background:#292d36;border-color:#606570}
.demo{padding:8px 13px}
.layout{display:grid;grid-template-columns:286px minmax(0,1fr);gap:17px;align-items:start}
.sidebar{display:grid;gap:14px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:13px;min-width:0}
.source,.settings{padding:15px}
.section-title{display:flex;align-items:center;gap:9px;min-width:0}
.step{font:700 10px/1 system-ui,sans-serif;letter-spacing:.05em;background:#342a22;color:#f4c185;padding:6px;border-radius:5px}
h2{font-size:14px;margin:0;font-weight:730}
.source .section-title,.settings .section-title{margin-bottom:12px}
.upload{position:relative;display:flex;align-items:center;gap:9px;border:1px solid #3b4049;padding:7px;margin:0 0 8px;border-radius:8px;cursor:pointer;background:#1f2229;min-width:0}
.upload:hover,.upload.over{border-color:var(--accent);background:#2a2928}
.upload input{position:absolute;opacity:0;width:100%;height:100%;inset:0;cursor:pointer}
.thumb{width:42px;height:36px;border-radius:5px;flex:none;display:grid;place-items:center;overflow:hidden;background:#323641;color:var(--accent)}
.thumb img{width:100%;height:100%;object-fit:cover;grid-area:1/1;z-index:1}
.thumb span{grid-area:1/1;font-size:18px}
.file-text{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.35}
.file-text strong{font-size:12px}
.file-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px}
.upload-arrow{font-size:13px;padding:0 3px;color:#c8c9cf}
.micro{color:var(--muted);font-size:10px;margin:8px 0 0}
.text-button{margin-left:auto;padding:2px 6px;color:var(--muted);border-color:transparent}
.range{display:block;margin:0 0 11px}
.range:last-child{margin-bottom:0}
.range>span{display:flex;justify-content:space-between;color:#e0e0e5;font-size:12px}
.range output{color:var(--accent);font-variant-numeric:tabular-nums}
.range input{width:100%;accent-color:var(--accent);margin:4px 0 0;display:block;height:14px}
.work-header,.work-footer,.export-bar{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;gap:9px}
.mode{display:flex;align-items:center;gap:3px;background:#111318;border:1px solid #30343e;border-radius:8px;padding:3px}
.mode button{font-size:12px;color:var(--muted);background:transparent;border-radius:5px;padding:5px 8px;white-space:nowrap}
.mode button[aria-pressed="true"]{background:#36302b;color:#ffcf98}
.stage-area{display:grid;place-items:center;min-height:300px;background:#0c0e12;border-top:1px solid #272a30;border-bottom:1px solid #272a30;padding:12px 17px;overflow:hidden}
.stage{position:relative;max-width:100%;touch-action:none;user-select:none}
canvas{display:block;width:100%;height:100%;background-color:#2a2b31;background-image:conic-gradient(#383941 25%,transparent 0 50%,#383941 0 75%,transparent 0);background-size:18px 18px}
#overlay,.corners{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#outline{fill:transparent;stroke:#ffd39a;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-dasharray:5 4}
.stage.movable #outline{pointer-events:fill;cursor:grab}
.stage.dragging,.stage.dragging #outline{cursor:grabbing}
.handle{position:absolute;transform:translate(-50%,-50%);display:grid;place-content:center;width:23px;height:23px;padding:0;border-radius:50%;border:2px solid #392918;background:#ffd096;color:#22170f;font-size:11px;font-weight:800;pointer-events:auto;box-shadow:0 0 0 1px #ffffff80;cursor:move}
.handle::before{content:"";position:absolute;inset:-5px;border-radius:50%}
.handle:focus-visible{outline-color:#fff}
.empty{display:grid;justify-items:center;text-align:center;gap:6px;color:var(--muted);padding:20px}
.empty strong{color:var(--ink)}
.empty-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:12px;background:#28231e;color:var(--accent);font-size:29px}
.work-footer{flex-wrap:wrap;justify-content:flex-start}
.work-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.check{font-size:12px;display:flex;align-items:center;gap:4px;color:#dddfe4;white-space:nowrap}
.check input{accent-color:var(--accent)}
#hint{margin:0;color:var(--muted);font-size:11px;flex:1;min-width:190px}
.export-bar{border-top:1px solid var(--line);background:#1e2229;border-radius:0 0 12px 12px}
.output-info{display:grid;gap:1px;line-height:1.3}
.output-info strong{font-size:13px}
.output-info small{font-size:11px;color:var(--muted)}
.export-actions{display:flex;align-items:center;gap:7px}
select{background:#292d36;color:var(--ink);border:1px solid #434853;border-radius:7px;padding:7px;font-size:12px}
.primary{background:var(--accent);color:#261a11;border-radius:7px;padding:8px 12px;font-size:13px;font-weight:790;white-space:nowrap}
.primary:hover:not(:disabled){background:#ffd195}
.primary span{margin-left:4px}
.status{margin:0;padding:9px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.status:empty{display:none}
.status.error{color:#ffbbac}
footer{padding:15px 0 20px;color:#a5a9b2;font-size:11px}
footer span{color:var(--accent);padding:0 4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:820px){.top-inner,.shell{width:calc(100% - 32px)}.layout{grid-template-columns:236px minmax(0,1fr);gap:12px}.source,.settings{padding:12px}}
@media(max-width:670px){.layout{grid-template-columns:minmax(0,1fr)}.sidebar{display:contents}.source{grid-row:1}.workspace{grid-row:2}.settings{grid-row:3}.stage-area{min-height:220px}.intro{padding:24px 0 17px}.top-inner{min-height:62px}.top-inner,.shell{width:calc(100% - 24px)}}
@media(max-width:375px){.intro{align-items:flex-start;flex-direction:column;gap:8px}.work-header,.work-footer,.export-bar{padding-inline:8px}.stage-area{padding-inline:13px}.privacy{font-size:11px}}
