:root{color-scheme:light;--ink:#20221f;--muted:#64665f;--line:#e3e2da;--background:#f6f5f1;--accent:#fa693d;--panel:#fff;--orange-text:#9a371a;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--background);font-size:16px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
button,input,select{font:inherit}
button,select{cursor:pointer}
button{color:inherit}
button:disabled{opacity:.42;cursor:default}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #a53d21;outline-offset:3px}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.symbols{position:absolute;width:0;height:0;overflow:hidden}
.topbar{height:76px;border-bottom:1px solid var(--line);background:#fcfbf8;display:flex;justify-content:space-between;align-items:center;padding:0 max(28px,calc((100% - 1328px)/2));gap:12px}
.brand,.top-actions{display:flex;align-items:center;gap:13px}
.brand-mark{background:var(--accent);border-radius:12px;width:42px;height:42px;display:grid;place-items:center;color:#211b17}
.brand-mark svg{width:26px;height:26px}
.brand strong,.brand div>span{display:block}
.brand strong{font-size:21px;letter-spacing:-.85px;line-height:1.14}
.brand div>span{color:var(--muted);font-size:.76rem;margin-top:3px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:.875rem;border:1px solid transparent;border-radius:9px;padding:10px 14px;min-height:40px;white-space:nowrap;transition:background .16s}
.button svg{width:17px;height:17px}
.button.primary{background:var(--accent);color:#241b16}
.button.primary:hover{background:#ff825c}
.button.dark{background:#272923;color:#fff}
.button.dark:hover{background:#484b42}
.button.quiet{background:transparent;color:#555750}
.button.quiet:hover,.icon-button:hover{background:#eeece5;color:var(--ink)}
.offline{color:#4f6250;font-size:.78rem;display:flex;align-items:center;gap:6px;white-space:nowrap;margin-right:4px}
.offline i{display:block;width:7px;height:7px;border-radius:50%;background:#4c8658}
.workspace{max-width:1384px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(326px,366px);gap:28px;padding:29px 28px 24px;align-items:start}
.art-header,.art-footer,.control-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.art-header{margin-bottom:19px}
h1,h2,h3{margin:0}
h1{font-family:Georgia,serif;font-size:clamp(2.35rem,4.5vw,3.45rem);font-weight:400;letter-spacing:-.065em;line-height:1.08;margin-top:4px}
.stage{height:clamp(360px,calc(100svh - 249px),790px);border:1px solid #e1ded5;border-radius:15px;background-color:#eae8de;background-image:radial-gradient(#d2cec0 1px,transparent 1px);background-size:16px 16px;display:flex;align-items:center;justify-content:center;padding:clamp(16px,3vw,42px);overflow:hidden;container-type:size}
#artwork{display:block;width:min(100cqw,calc(100cqh * var(--ratio,1)));height:auto;aspect-ratio:var(--ratio,1);background:transparent;box-shadow:0 12px 30px #251b1723,0 2px 5px #251b1715}
#artwork.transparent{background:conic-gradient(#e7e5dd 0 25%,#faf9f5 0 50%,#e7e5dd 0 75%,#faf9f5 0) 0 0/16px 16px}
.art-footer{min-height:49px;margin-top:5px}
.art-footer .quiet{padding-left:0}
.spec{font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}
.control-heading{margin:5px 0 14px}
.control-heading h2{font-size:1.125rem;letter-spacing:-.025em}
.control-heading .quiet{padding:5px 3px 5px 8px;min-height:34px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:15px 16px;margin-bottom:11px}
h3{display:flex;align-items:center;gap:8px;font-size:.92rem;font-weight:750;letter-spacing:-.01em}
h3 svg{width:16px;height:16px;color:#76796d}
.shapes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:12px 0 10px}
.shape{border-radius:7px;background:#f8f7f3;border:1px solid #efeee8;display:grid;justify-items:center;gap:3px;padding:6px 0 4px;color:#575951;font-size:.65rem;line-height:1.25}
.shape svg{width:25px;height:25px}
.shape:hover{border-color:#c9b9aa}
.shape[aria-pressed=true]{background:#ffede5;color:#8b3216;border-color:#f2987c}
.select-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.875rem;color:#53564d;min-height:33px}
.select-row select,.select-row input{max-width:60%;width:142px;color:var(--ink);padding:6px 9px;border:1px solid #e9e7e0;background:#f8f7f3;border-radius:6px;font-size:.83rem}
.select-row select{appearance:none;padding-right:23px;background-image:linear-gradient(45deg,transparent 50%,#64665f 50%),linear-gradient(135deg,#64665f 50%,transparent 50%);background-position:calc(100% - 12px) 50%,calc(100% - 8px) 50%;background-size:4px 4px;background-repeat:no-repeat}
.color-line,#swatches,.color-edit{display:flex;align-items:center;gap:6px}
.color-line{margin:11px 0 6px}
#swatches{flex:1;min-width:0}
.swatch{position:relative;flex:1;min-width:17px;height:30px;border-radius:6px;background:var(--swatch);box-shadow:inset 0 0 0 1px #0002}
.swatch:focus-within,.swatch.selected{outline:1px solid #523c34;outline-offset:2px}
.swatch input{width:100%;height:100%;opacity:0;cursor:pointer}
.icon-button{background:#f8f7f3;border:1px solid #eceae2;border-radius:6px;font-size:1.07rem;width:30px;height:30px;padding:0;flex:none}
.color-edit{justify-content:flex-end;margin-top:6px;font-size:.83rem;color:var(--muted)}
.color-edit>span{margin-right:auto}
.range-row{margin-top:9px}
.range-row label{display:flex;align-items:center;justify-content:space-between;color:#53564d;font-size:.875rem}
.range-row output{background:#f2f1ec;color:#44473d;min-width:43px;padding:2px 5px;border-radius:4px;text-align:center;font-size:.75rem;font-variant-numeric:tabular-nums}
.range-row input{display:block;appearance:none;width:100%;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--accent) var(--fill),#e8e6de var(--fill));margin:9px 0 4px;cursor:pointer}
.range-row input::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px #df5c35}
.range-row input::-moz-range-thumb{width:10px;height:10px;border:2px solid white;border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px #df5c35}
.range-row input:disabled{opacity:.36;cursor:default}
.hand-heading{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #efeee8;margin-top:15px;padding-top:11px}
.switch{display:block;position:relative;width:34px;height:20px;cursor:pointer}
.switch input{appearance:none;width:100%;height:100%;margin:0;border-radius:20px;background:#d9d7ce;cursor:pointer}
.switch input:checked{background:var(--accent)}
.switch span{pointer-events:none;position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:white;box-shadow:0 1px 3px #0003}
.switch input:checked+span{transform:translateX(14px)}
.paper-panel summary{font-size:.875rem;font-weight:700;cursor:pointer}
.paper-panel[open] summary{margin-bottom:11px}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 17px;border-radius:10px;background:#262823;color:white;z-index:5;box-shadow:0 4px 18px #0003;font-size:.875rem;max-width:90vw}
@media(max-width:900px){.workspace{padding-inline:18px;gap:16px;grid-template-columns:minmax(0,1fr) minmax(300px,326px)}.topbar{padding-inline:18px}}
@media(max-width:680px){.workspace{display:block;padding:19px 14px}.topbar{height:63px;padding:0 14px}.brand{gap:8px}.brand-mark{width:34px;height:34px}.brand-mark svg{width:22px;height:22px}.brand strong{font-size:18px}.top-actions{gap:4px}.offline{display:none}.button{padding-inline:9px}.stage{height:clamp(275px,calc(100vw - 35px),480px);padding:13px}.control-heading{margin-top:15px}.art-header{margin-bottom:13px}}
@media(max-width:365px){.brand div>span{display:none}#install{font-size:.72rem}.top-actions .button{padding-inline:6px}.art-header .button{font-size:.78rem}}

.mode-switch{display:flex;gap:4px;background:#eae8e0;border-radius:9px;padding:4px;margin-bottom:11px}
.mode-switch button{flex:1;padding:7px;background:transparent;border:1px solid transparent;border-radius:6px;font-size:.85rem;font-weight:700;color:var(--muted)}
.mode-switch button[aria-pressed=true]{background:#fff;color:var(--ink);border-color:var(--line)}
.mode-switch button:hover{color:var(--ink)}
.shapes.manual{grid-template-columns:repeat(5,minmax(0,1fr))}
.placement-help{font-size:.84rem;line-height:1.4;color:var(--muted);margin:5px 0 0}
.placement-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.placement-actions .button{min-height:36px}
#artwork.placement{touch-action:none;cursor:crosshair}
#speed-controls{border-top:1px solid #efeee8;padding-top:3px;margin-top:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.figure-tools{margin:9px 0 0}
#artwork.moving{cursor:grab}
#artwork.dragging{cursor:grabbing}
.palette-actions,.palette-form{display:flex;align-items:center;gap:4px;margin-top:4px}
.palette-actions .button,.palette-form .button{min-height:34px;padding:6px 8px}
.palette-form input{flex:1;min-width:0;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:#f8f7f3;color:var(--ink)}
.brand{color:inherit;text-decoration:none}
