:root{--bg:#f7f7f8;--surface:#fff;--text:#1a1a1c;--muted:#6b6b73;--border:#dededd;--accent:#c8102e;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#16161a;--surface:#1e1e23;--text:#ececed;--muted:#9a9aa3;--border:#33333b;--accent:#ff5a72}}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}.muted{color:var(--muted)}code{background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:.1em .35em;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.9em}.app{flex-direction:column;min-height:100%;display:flex}.app__header{border-bottom:1px solid var(--border);background:var(--surface);padding:.7rem 1rem}.app__header-row{justify-content:space-between;align-items:baseline;gap:1rem;display:flex}.app__header h1{letter-spacing:.01em;margin:0;font-size:1.05rem}.app__header p{margin:0}.app__nav{gap:.9rem;display:flex}.app__nav a{color:var(--muted);font-size:.82rem;text-decoration:none}.app__nav a:hover{color:var(--text)}.app__nav a[aria-current=page]{color:var(--accent);font-weight:600}.app__page{flex:1;justify-content:center;min-height:0;padding:1rem;display:flex;overflow-y:auto}.app__page .panel{align-self:flex-start;width:100%;max-width:56rem}.app__error{margin:.6rem 1rem 0}.app__columns{background:var(--border);flex:1;grid-template-columns:21rem 5px minmax(0,1fr) 5px 19rem;min-height:0;display:grid}.app__resizer{background:var(--border);cursor:col-resize;touch-action:none}.app__resizer:hover,.app__resizer:focus-visible{background:var(--accent);outline:none}.app__rail{background:var(--bg);flex-direction:column;gap:.75rem;padding:.75rem;display:flex;overflow-y:auto}.app__single{flex-direction:column;gap:.75rem;padding:.75rem;display:flex}.tabs,.segmented{gap:2px;display:flex}.tabs{padding:.5rem 1rem 0}.tabs button,.segmented button{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border-radius:5px;flex:1;padding:.3rem .6rem;font-size:.85rem}.tabs button[aria-pressed=true],.segmented button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}.panel{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.7rem .8rem}.panel h2{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 .6rem;font-size:.8rem;font-weight:600}.panel hr{border:none;border-top:1px solid var(--border);margin:.8rem 0}.row{flex-wrap:wrap;gap:.35rem;margin:.5rem 0;display:flex}button{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border-radius:5px;padding:.3rem .6rem;font-size:.85rem}button:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.45;cursor:not-allowed}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.field{flex-direction:column;gap:.2rem;margin:.55rem 0;display:flex}.field label{font-size:.82rem}.field__row{align-items:center;gap:.4rem;display:flex}.field__row input[type=range]{flex:1;min-width:0}input[type=number]{background:var(--bg);width:4.5rem;color:var(--text);border:1px solid var(--border);font:inherit;border-radius:4px;padding:.2rem .35rem;font-size:.85rem}input[type=range]{accent-color:var(--accent)}input[type=search]{background:var(--bg);width:100%;max-width:20rem;color:var(--text);border:1px solid var(--border);font:inherit;border-radius:4px;padding:.3rem .5rem;font-size:.85rem}.check{cursor:pointer;align-items:center;gap:.4rem;margin:.3rem 0;font-size:.82rem;display:flex}.check input{accent-color:var(--accent)}details summary{cursor:pointer;color:var(--muted);margin-top:.5rem;font-size:.82rem}.note{color:var(--muted);background:var(--bg);border:1px solid var(--border);border-radius:5px;margin:.5rem 0 0;padding:.4rem .5rem;font-size:.78rem;line-height:1.4}.note--warn{border-color:var(--accent)}.readout{grid-template-columns:auto 1fr;gap:.15rem .6rem;margin:.6rem 0 0;font-size:.85rem;display:grid}.readout dt{color:var(--muted)}.readout dd{text-align:right;margin:0}.small{font-size:.78rem}.badge{color:var(--muted);border:1px solid var(--border);border-radius:999px;padding:.15rem .4rem;font-size:.75rem}.orient{border:none;grid-template-columns:1fr 1fr;gap:.4rem;margin:0;padding:0;display:grid}.orient__card{border:1px solid var(--border);cursor:pointer;border-radius:6px;flex-direction:column;gap:.15rem;padding:.45rem;line-height:1.25;display:flex}.orient__card--on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.orient__glyph{border-radius:3px;height:26px;margin-bottom:.2rem}.orient__glyph--pips-out{background:radial-gradient(circle at 50% 50%, var(--muted) 22%, transparent 24%) 0 0 / 13px 13px, var(--bg)}.orient__glyph--pips-up{background:repeating-linear-gradient(to bottom, var(--bg) 0 14px, var(--border) 14px 15px), repeating-linear-gradient(to right, var(--bg) 0 26px, var(--border) 26px 27px)}.dropzone{border:2px dashed var(--border);text-align:center;cursor:pointer;border-radius:8px;flex-direction:column;gap:.25rem;padding:1.6rem .8rem;display:flex}.dropzone--active{border-color:var(--accent);background:var(--bg)}.thumb{background:var(--bg);border-radius:6px;line-height:0;position:relative;overflow:hidden}.thumb__image{width:100%;height:auto;display:block}.crop-frame{touch-action:none;position:absolute;inset:0}.crop-rect{cursor:move;touch-action:none;border:1px solid #fff;position:absolute;box-shadow:0 0 0 9999px #00000059}.crop-handle{background:#fff;border:1px solid #0006;border-radius:2px;width:12px;height:12px;position:absolute}.crop-handle--nw{cursor:nwse-resize;top:-6px;left:-6px}.crop-handle--ne{cursor:nesw-resize;top:-6px;right:-6px}.crop-handle--sw{cursor:nesw-resize;bottom:-6px;left:-6px}.crop-handle--se{cursor:nwse-resize;bottom:-6px;right:-6px}.crop-handle--edge{border-radius:3px}.crop-handle--n,.crop-handle--s{cursor:ns-resize;width:22px;height:8px;margin-left:-11px;left:50%}.crop-handle--n{top:-4px}.crop-handle--s{bottom:-4px}.crop-handle--e,.crop-handle--w{cursor:ew-resize;width:8px;height:22px;margin-top:-11px;top:50%}.crop-handle--w{left:-4px}.crop-handle--e{right:-4px}.swatches{border:1px solid var(--border);border-radius:6px;max-height:15rem;margin:.5rem 0 0;padding:0;list-style:none;overflow-y:auto}.swatch{cursor:pointer;align-items:center;gap:.45rem;padding:.2rem .4rem;font-size:.8rem;display:flex}.swatch:hover{background:var(--bg)}.swatch--off{opacity:.4}.swatch--off .swatch__chip{filter:grayscale()}.swatch__chip{border:1px solid #0003;border-radius:3px;flex:none;width:14px;height:14px}.swatch__name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.swatch__count{font-variant-numeric:tabular-nums}.shapes{grid-template-columns:1fr 1fr;gap:0 .5rem;margin:0;padding:0;list-style:none;display:grid}.preview{background:var(--bg);flex-direction:column;min-width:0;min-height:0;display:flex}.preview__bar{border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap;align-items:center;gap:.6rem;padding:.5rem .75rem;display:flex}.preview__bar .segmented{flex:none}.preview__zoom{color:var(--muted);align-items:center;gap:.35rem;font-size:.8rem;display:flex}.preview__stage{flex:1;justify-content:center;align-items:flex-start;min-height:22rem;padding:1rem;display:flex;overflow:auto}.preview__canvas{max-width:none;height:auto;image-rendering:pixelated;border-radius:3px;box-shadow:0 2px 12px #0002}.empty{color:var(--muted);align-self:center}.bars{flex-direction:column;gap:.2rem;margin:.7rem 0 0;padding:0;font-size:.78rem;list-style:none;display:flex}.bars li{grid-template-columns:3.1rem 1fr 2.6rem;align-items:center;gap:.4rem;display:grid}.bars__track{background:var(--bg);border-radius:3px;height:8px;overflow:hidden}.bars__fill{background:var(--accent);height:100%;display:block}.bars__value{text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}.parts{max-height:22rem;margin:0;padding:0;list-style:none;overflow-y:auto}.parts__row{border:none;border-bottom:1px solid var(--border);text-align:left;background:0 0;border-radius:0;align-items:center;gap:.45rem;width:100%;padding:.3rem .2rem;font-size:.82rem;display:flex}.parts__name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.parts__qty{font-variant-numeric:tabular-nums}.parts__caret{color:var(--muted);width:1ch}.parts__detail{border-collapse:collapse;width:100%;margin:.2rem 0 .5rem 1.6rem;font-size:.78rem}.parts__detail th{text-align:left;color:var(--muted);font-weight:500}.parts__detail td,.parts__detail th{padding:.1rem .4rem .1rem 0}.parts__detail td:last-child,.parts__detail th:last-child{text-align:right;font-variant-numeric:tabular-nums}.table-scroll{border:1px solid var(--border);border-radius:6px;margin-top:.5rem;overflow-x:auto}.colors-table{border-collapse:collapse;width:100%;min-width:34rem;font-size:.82rem}.colors-table th{text-align:left;color:var(--muted);background:var(--surface);border-bottom:1px solid var(--border);white-space:nowrap;padding:.4rem .6rem;font-weight:500;position:sticky;top:0}.colors-table td{border-bottom:1px solid var(--border);vertical-align:middle;padding:.3rem .6rem}.colors-table tbody tr:last-child td{border-bottom:none}.colors-table td:nth-child(3),.colors-table td:nth-child(4){font-variant-numeric:tabular-nums;white-space:nowrap}.colors-table td:first-child{width:1%;padding-right:.3rem}.colors-table__swatch{border:1px solid var(--border);border-radius:6px;width:3.4rem;height:2.1rem;display:block}.colors-table tbody tr:hover{background:var(--row-color,var(--surface));color:var(--row-text,var(--text))}.colors-table tbody tr:hover td{border-bottom-color:var(--row-color,var(--border))}.colors-table tbody tr:hover .muted{color:var(--row-text,var(--muted));opacity:.75}.colors-table tbody tr:hover .colors-table__swatch{border-color:var(--row-text,var(--border))}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.subhead{margin:.6rem 0 .3rem;font-size:.8rem;font-weight:600}.progress{background:var(--border);border-radius:2px;flex:none;width:5rem;height:4px;overflow:hidden}.progress__fill{background:var(--accent);height:100%;transition:width .15s linear;display:block}
