@font-face{font-family:Albert Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/albert-sans-latin-ext-wght-normal-BAo4qCk1.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Albert Sans Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/albert-sans-latin-wght-normal-BJ0ssN8N.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--bg:#0f0f0f;--panel:#1a1a19;--panel-2:#262625;--panel-3:#30302e;--line:#f7f5f014;--line-strong:#f7f5f029;--text:#f1efe9;--muted:#8f9588;--accent:#ff7e32;--accent-2:#e8692a;--accent-ink:#151713;--active:#ff4000;--active-hover:#ff5a24;--brand:#ff4000;--active-ink:#151713;--danger:#e6a79c;--radius:20px;--radius-sm:12px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;letter-spacing:.005em;font-family:Albert Sans Variable,Albert Sans,system-ui,Segoe UI,sans-serif;font-size:13.5px;font-weight:400}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);overflow:hidden}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{grid-template:"top top top"52px"left canvas right"1fr/264px 1fr 288px;gap:10px;height:100%;padding:10px;display:grid}.topbar{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);grid-area:top;align-items:center;gap:8px;padding:0 10px 0 14px;display:flex}.topbar .brand{letter-spacing:-.01em;align-items:center;gap:10px;margin-right:18px;font-size:19px;font-weight:300;display:flex}.topbar .brand img{width:40px;height:40px;display:block}.topbar .brand em{color:var(--brand);font-style:normal;font-weight:600}.topbar .spacer{flex:1}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);scrollbar-width:thin;scrollbar-color:var(--panel-3) transparent;padding:18px 16px;overflow-y:auto}.panel.left{grid-area:left}.panel.right{flex-direction:column;grid-area:right;display:flex}.panel.right>*{flex:none}.panel.right>.library-grid{flex:auto;min-height:220px;max-height:none}.panel h2{border-top:1px solid var(--line);letter-spacing:.01em;color:var(--muted);margin:22px 0 12px;padding-top:18px;font-size:13px;font-weight:500}.panel>h2:first-child,.panel>:first-child>h2:first-child{border-top:0;margin-top:0;padding-top:0}.stage{border:1px solid var(--line);border-radius:var(--radius);background:#141413;grid-area:canvas;place-items:center;min-width:0;min-height:0;display:grid;position:relative;overflow:hidden}button{background:var(--panel-2);color:var(--text);border:1px solid var(--line);cursor:pointer;font:inherit;border-radius:999px;padding:7px 16px;font-weight:450;transition:background .15s,border-color .15s,color .15s}button:hover:not(:disabled){background:var(--panel-3);border-color:var(--line-strong)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.38;cursor:default}button.primary,.tool-list button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}button.primary:hover:not(:disabled),.tool-list button.primary:hover:not(:disabled),button.primary.active,button.primary.active:hover:not(:disabled){background:var(--active);border-color:var(--active);color:var(--active-ink)}.topbar button.primary{padding:8px 22px}.stage-wrap{touch-action:none;cursor:grab;position:absolute;inset:0}.stage-wrap canvas{pointer-events:none;display:block;position:absolute;inset:0}.stage-wrap.bg-light{background:#f3f1ec}.stage-wrap.bg-dark{background:#0c0c0b}.stage-wrap.bg-checker{background-color:#e9e7e1;background-image:linear-gradient(45deg,#d3d1ca 25%,#0000 25% 75%,#d3d1ca 75%),linear-gradient(45deg,#d3d1ca 25%,#0000 25% 75%,#d3d1ca 75%);background-position:0 0,10px 10px;background-size:20px 20px}.stage-wrap.drag-over{outline:2px dashed var(--accent);outline-offset:-10px}.hint,.error{color:var(--text);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:none;background:#0f0f0fd1;border-radius:999px;padding:10px 20px;position:absolute;left:50%;transform:translate(-50%)}.hint{top:50%}.error{color:#ffd9d3;background:#4a2420;bottom:20px}.muted{color:var(--muted)}.error-text{color:var(--danger)}select{appearance:none;background:var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f1efe9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;color:var(--text);border:1px solid var(--line);font:inherit;cursor:pointer;border-radius:999px;padding:7px 34px 7px 14px}select:hover{border-color:var(--line-strong)}select option{background:var(--panel-2);color:var(--text)}.field{margin-bottom:14px;display:block}.field-head{justify-content:space-between;align-items:baseline;margin-bottom:8px;display:flex}.field-head output{color:var(--muted);font-variant-numeric:tabular-nums}.field>span:not(.field-head){margin-bottom:6px;display:block}.row{flex-wrap:wrap;gap:6px;margin-bottom:12px;display:flex}.row.nowrap{flex-wrap:nowrap}.button-grid{grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px;display:grid}.button-grid button,.button-grid .tip-anchor{width:100%}.button-grid button{padding-left:8px;padding-right:8px}button.icon{flex:none;place-items:center;width:34px;height:34px;padding:0;display:inline-grid}.segmented{background:var(--panel-2);border:1px solid var(--line);border-radius:999px;gap:2px;padding:3px;display:flex}.segmented button{color:var(--muted);background:0 0;border:0;padding:6px 16px}.segmented button:hover:not(:disabled),.segmented button:active:not(:disabled){background:var(--active);color:var(--active-ink)}.segmented button:disabled{opacity:.35}.small{font-size:12px;line-height:1.5}p.small{margin:10px 0}input[type=range]{appearance:none;cursor:pointer;background:0 0;width:100%;height:18px;margin:0}input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--active) var(--fill,50%), var(--panel-3) var(--fill,50%));border-radius:999px;height:4px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#f7f5f0;border:0;border-radius:50%;width:18px;height:18px;margin-top:-7px;transition:transform .12s;box-shadow:0 1px 6px #0000008c,0 0 0 1px #0003}input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.1)}input[type=range]::-moz-range-track{background:var(--panel-3);border-radius:999px;height:4px}input[type=range]::-moz-range-progress{background:var(--active);border-radius:999px;height:4px}input[type=range]::-moz-range-thumb{background:#f7f5f0;border:0;border-radius:50%;width:18px;height:18px;box-shadow:0 1px 6px #0000008c}input[type=range]:disabled{opacity:.4;cursor:default}input[type=radio],input[type=checkbox]:not([role=switch]){appearance:none;vertical-align:-4px;background:var(--panel-2);border:1px solid var(--line-strong);cursor:pointer;place-content:center;width:18px;height:18px;margin:0 6px 0 0;transition:background .15s,border-color .15s;display:inline-grid}input[type=radio]{border-radius:50%}input[type=checkbox]:not([role=switch]){border-radius:6px}input[type=radio]:after{content:"";background:var(--active-ink);border-radius:50%;width:8px;height:8px;transition:transform .12s;transform:scale(0)}input[type=radio]:checked{background:var(--active);border-color:var(--active)}input[type=radio]:checked:after{transform:scale(1)}.radio-group label{cursor:pointer}.switch{cursor:pointer;align-items:center;gap:8px;margin-right:6px;display:inline-flex}.switch input{opacity:0;width:1px;height:1px;position:absolute}.switch i{background:var(--panel-3);border-radius:999px;width:36px;height:20px;transition:background .18s;position:relative}.switch i:after{content:"";background:#f7f5f0;border-radius:50%;width:16px;height:16px;transition:transform .18s;position:absolute;top:2px;left:2px;box-shadow:0 1px 4px #00000080}.switch input:checked+i{background:var(--active)}.switch input:checked+i:after{transform:translate(16px)}.switch input:focus-visible+i{outline:2px solid var(--accent);outline-offset:2px}.radio-group{flex-direction:column;gap:9px;margin-bottom:10px;display:flex}.color-control .row{align-items:center}.color-control input[type=color]{border:1px solid var(--line-strong);cursor:pointer;background:0 0;border-radius:10px;width:38px;height:32px;padding:0;overflow:hidden}.hex{background:var(--panel-2);width:0;min-width:0;color:var(--text);border:1px solid var(--line);font:inherit;font-variant-numeric:tabular-nums;border-radius:999px;flex:1;padding:7px 12px}.palette{grid-template-columns:repeat(8,1fr);gap:6px;margin-bottom:12px;display:grid}.swatch{aspect-ratio:1;border-radius:50%;padding:0}.swatch.selected{outline:2px solid var(--text);outline-offset:2px}.dot{vertical-align:middle;border-radius:50%;width:10px;height:10px;display:inline-block}.frame-grid{grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:16px;display:grid}.frame-item{border-radius:var(--radius-sm);flex-direction:column;align-items:center;gap:4px;padding:8px 2px;display:flex}.frame-item.selected{outline:2px solid var(--accent);outline-offset:-1px}.frame-item span{color:var(--muted);white-space:nowrap;font-size:11.5px}.tool-list{flex-direction:column;gap:6px;margin-bottom:10px;display:flex}.tool-list button{text-align:center}.tool-list button.active{background:var(--active);border-color:var(--active);color:var(--active-ink);font-weight:600}.tool-list button.active:hover:not(:disabled){background:var(--active-hover);border-color:var(--active-hover)}.tabs{background:var(--panel-2);border:1px solid var(--line);border-radius:999px;gap:2px;margin-bottom:10px;padding:3px;display:flex}.tabs button{color:var(--muted);background:0 0;border:0;flex:1;padding:5px 6px;font-size:12.5px}.tabs button:hover:not(:disabled){color:var(--text);background:0 0}.tabs button.active,.tabs button.active:hover:not(:disabled){background:var(--active);color:var(--active-ink);font-weight:600}.library-grid{scrollbar-width:thin;scrollbar-color:var(--panel-3) transparent;grid-template-columns:repeat(3,1fr);gap:6px;max-height:340px;margin-bottom:16px;display:grid;overflow-y:auto}.library-item{border-radius:var(--radius-sm);position:relative}.library-item.selected{outline:2px solid var(--accent);outline-offset:-1px}.library-item .thumb{border-radius:var(--radius-sm);justify-content:center;width:100%;padding:3px;display:flex}.library-item .star{color:var(--muted);background:0 0;border:0;padding:0 5px;font-size:15px;line-height:1.3;position:absolute;top:2px;right:2px}.library-item .star:hover:not(:disabled){color:var(--text);background:0 0}.library-item .star.on{color:#e2cf8f}.my-frames{flex-direction:column;gap:8px;margin:12px 0;display:flex}.my-frame{border-radius:var(--radius-sm);align-items:center;gap:8px;padding:4px;display:flex}.my-frame.selected{outline:2px solid var(--accent)}.my-frame .thumb{border-radius:var(--radius-sm);padding:3px}.my-frame .meta{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.my-frame .name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.my-frame .actions{gap:4px;display:flex}.my-frame .actions button{padding:2px 10px;font-size:11.5px}.my-frame input{background:var(--panel-2);color:var(--text);border:1px solid var(--line-strong);font:inherit;border-radius:999px;width:100%;padding:4px 10px}.progress{background:var(--panel-3);border-radius:999px;height:6px;margin:10px 0 8px;overflow:hidden}.progress .bar{background:var(--active);border-radius:999px;height:100%;transition:width .2s}.modal-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10;background:#080808b3;place-items:center;display:grid;position:fixed;inset:0}.modal{background:var(--panel);border:1px solid var(--line-strong);border-radius:28px;width:calc(100% - 32px);max-width:660px;padding:26px 28px;box-shadow:0 30px 80px #0009}.modal h2{letter-spacing:-.01em;color:var(--text);border:0;margin:0 0 18px;padding:0;font-size:22px;font-weight:300}.export-body{flex-wrap:wrap;gap:22px;display:flex}.export-preview{border:1px solid var(--line);border-radius:20px;flex:none;width:256px;height:256px;overflow:hidden}.export-preview img{display:block}.export-options{flex:1;min-width:200px}.export-options .field>span:first-child{color:var(--muted)}.size-line{margin:10px 0 4px;font-weight:600}.modal-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.stage-wrap.brush{cursor:none}.brush-cursor{pointer-events:none;border:1.5px solid #fff;border-radius:50%;position:absolute;box-shadow:0 0 0 1px #000}.brush-cursor.restore{border-color:#86efac}@media (width<=900px){html,body,#root{height:auto;min-height:100%}body{overflow:hidden auto}.app{grid-template:"top""canvas""left""right"/minmax(0,1fr);gap:8px;height:auto;padding:8px}.topbar{flex-wrap:wrap;row-gap:8px;padding:8px 10px}.topbar .brand{margin-right:auto;font-size:17px}.topbar .brand img{width:32px;height:32px}.topbar .spacer{display:none}.topbar>button.primary{order:1}.topbar>.segmented{order:2}.topbar>.tip-anchor,.topbar>label{order:3}.topbar .segmented button{padding:6px 12px}.topbar .tip-anchor:has(.help){display:none}.stage{z-index:5;height:min(100vw - 16px,55vh);box-shadow:0 -9px 0 var(--bg);position:sticky;top:8px}.panel{min-width:0;overflow:visible}.panel.right>.library-grid{grid-template-columns:repeat(4,1fr);min-height:0;max-height:360px}.hint{text-align:center;width:max-content;max-width:calc(100% - 32px)}input[type=text],select{font-size:16px}.modal{padding:20px 16px}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}.tip-anchor{display:inline-flex}.tip-anchor.block{display:block}.tip-anchor.block>button{width:100%}.tip{z-index:50;pointer-events:none;color:#1b1c19;background:#f1efe9;border-radius:14px;padding:9px 13px;font-size:12.5px;font-weight:450;line-height:1.45;animation:.12s ease-out tip-in;position:fixed;box-shadow:0 10px 30px #00000080}.tip.above{transform:translateY(-100%)}@keyframes tip-in{0%{opacity:0}to{opacity:1}}.topbar .help{width:32px;height:32px;color:var(--muted);padding:0}
