:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#15181d;--panel:#1c2027eb;--border:#353c47;--text:#e4e8ee;--muted:#9aa4b2;--accent:#e8853a;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:13px}*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{background:var(--bg);color:var(--text);overflow:hidden}.app{flex-direction:column;height:100%;display:flex}.toolbar{border-bottom:1px solid var(--border);background:#1c2027;flex:none;align-items:center;gap:8px;padding:6px 10px;display:flex}.toolbar__title{white-space:nowrap;margin-right:6px;font-weight:600}.toolbar__file{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.toolbar__spacer{flex:1}.button{font:inherit;color:var(--text);border:1px solid var(--border);cursor:pointer;white-space:nowrap;background:#2a303a;border-radius:4px;padding:4px 10px}.button:hover{background:#343b47}.button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.button--primary{background:var(--accent);border-color:var(--accent);color:#1a1206;font-weight:600}.button--primary:hover{background:#f09650}.button-group{display:flex}.button-group .button{border-radius:0;margin-left:-1px}.button-group .button:first-child{border-radius:4px 0 0 4px;margin-left:0}.button-group .button:last-child{border-radius:0 4px 4px 0}.viewport{flex:1;min-height:0;position:relative;overflow:hidden}.viewport canvas{display:block}.empty{text-align:center;color:var(--muted);pointer-events:none;flex-direction:column;justify-content:center;align-items:center;padding:0 24px;display:flex;position:absolute;inset:0}.empty__title{color:var(--text);margin:0 0 4px;font-size:20px}.empty p{text-shadow:0 1px 4px var(--bg);margin:0}.side{scrollbar-width:thin;pointer-events:none;flex-direction:column;justify-content:space-between;gap:10px;width:300px;display:flex;position:absolute;top:10px;bottom:10px;left:10px;overflow-y:auto}.side>*{pointer-events:auto;flex:none}.info{background:var(--panel);border:1px solid var(--border);border-radius:6px;margin-top:auto;padding:8px 10px}.info dl{margin:0}.info__row{gap:10px;line-height:1.5;display:flex}.info__row dt{width:84px;color:var(--muted);flex:none}.info__row dd{overflow-wrap:anywhere;min-width:0;margin:0}.info__notice{border-top:1px solid var(--border);color:#f2c480;margin:8px 0 0;padding-top:8px;line-height:1.4}.message{background:var(--panel);border:1px solid var(--border);border-radius:6px;align-items:center;gap:10px;max-width:min(560px,100% - 20px);padding:8px 12px;display:flex;position:absolute;top:10px;left:50%;transform:translate(-50%)}.message--error{color:#ffb4ab;border-color:#b4483f}.progress{background:var(--panel);border:1px solid var(--border);border-radius:6px;width:min(360px,100% - 40px);padding:12px 14px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.progress__text{text-overflow:ellipsis;white-space:nowrap;margin-bottom:8px;overflow:hidden}.progress progress{width:100%;accent-color:var(--accent);display:block}.drop{border:2px dashed var(--accent);pointer-events:none;background:#15181dcc;border-radius:10px;justify-content:center;align-items:center;font-size:20px;display:flex;position:absolute;inset:8px}.layer-slider{--thumb:16px;background:var(--panel);border:1px solid var(--border);border-radius:6px;flex-direction:column;align-items:center;gap:6px;width:76px;padding:8px 4px;display:flex;position:absolute;top:10px;bottom:10px;right:10px}.layer-slider__label{text-align:center;white-space:pre-line;font-variant-numeric:tabular-nums;flex:none;min-height:2.6em;line-height:1.3}.layer-slider__track{flex:1;width:24px;min-height:0;position:relative}.layer-slider__rail,.layer-slider__fill{border-radius:2px;width:4px;margin-left:-2px;position:absolute;left:50%}.layer-slider__rail{top:calc(var(--thumb) / 2);bottom:calc(var(--thumb) / 2);background:#3a424e}.layer-slider__fill{bottom:calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--lo));top:calc(var(--thumb) / 2 + (100% - var(--thumb)) * (1 - var(--hi)));background:var(--accent)}.layer-slider__input{appearance:none;writing-mode:vertical-lr;pointer-events:none;direction:rtl;background:0 0;width:100%;height:100%;margin:0;padding:0;position:absolute;inset:0}.layer-slider__input::-webkit-slider-runnable-track{background:0 0;width:100%;height:100%}.layer-slider__input::-webkit-slider-thumb{appearance:none;width:22px;height:var(--thumb);background:var(--text);cursor:ns-resize;pointer-events:auto;border:2px solid #1c2027;border-radius:4px}.layer-slider__input:focus-visible{outline:none}.layer-slider__input:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--accent)}.layer-slider__input::-webkit-slider-thumb:hover{background:#fff}.button--active{background:#46505f;border-color:#6b7686}.select,.number{font:inherit;color:var(--text);border:1px solid var(--border);background:#2a303a;border-radius:4px;padding:3px 6px}.select:focus-visible,.number:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.display{background:var(--panel);border:1px solid var(--border);border-radius:6px;flex-direction:column;gap:6px;padding:8px 10px;display:flex}.display__row{align-items:center;gap:10px;display:flex}.display__label{width:64px;color:var(--muted);flex:none}.display__row .select{flex:1;min-width:0}.display__heading{border-top:1px solid var(--border);color:var(--muted);margin-top:4px;padding-top:6px}.display__types{scrollbar-width:thin;flex-direction:column;gap:6px;max-height:180px;display:flex;overflow-y:auto}.check{cursor:pointer;align-items:center;gap:6px;display:flex}.check input{accent-color:var(--accent);margin:0}.swatch{border-radius:3px;flex:none;width:12px;height:12px}.legend{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.legend--list li{align-items:center;gap:6px;display:flex}.legend__bar{border-radius:3px;height:12px}.legend__ends{font-variant-numeric:tabular-nums;justify-content:space-between;display:flex}.legend__unit,.legend__empty{color:var(--muted)}.legend__manual{gap:10px;display:flex}.legend__manual label{color:var(--muted);align-items:center;gap:6px;min-width:0;display:flex}.legend__manual .number{width:76px}.playback{background:var(--panel);border:1px solid var(--border);border-radius:6px;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:6px 10px;display:flex;position:absolute;bottom:10px;left:320px;right:96px}.playback__play{width:64px}.playback__speed{color:var(--muted);align-items:center;gap:6px;display:flex}.playback__slider{min-width:120px;accent-color:var(--accent);flex:1}.playback__label{color:var(--muted);font-variant-numeric:tabular-nums;white-space:pre;text-overflow:ellipsis;flex-basis:100%;overflow:hidden}.info__thumbnail{object-fit:contain;border:1px solid var(--border);background:#20252d;border-radius:4px;width:96px;height:96px;margin-bottom:6px;display:block}.settings{scrollbar-width:thin;background:var(--panel);border:1px solid var(--border);z-index:2;border-radius:6px;flex-direction:column;gap:6px;width:340px;max-height:calc(100% - 20px);padding:8px 10px;display:flex;position:absolute;top:10px;right:96px;overflow-y:auto}.settings__title{justify-content:space-between;align-items:center;font-weight:600;display:flex}.settings__heading{border-top:1px solid var(--border);color:var(--muted);margin-top:4px;padding-top:6px}.settings__subheading{color:var(--muted);margin-top:4px}.settings__row{align-items:center;gap:6px;display:flex}.settings__label{width:84px;color:var(--muted);flex:none}.settings__row .number{width:60px}.settings__row--area .number{flex:1;width:0;min-width:0}.settings__row .settings__grow{flex:1;width:auto;min-width:0}.settings__unit,.settings__source,.settings__hint{color:var(--muted)}.settings__source{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.settings__hint,.settings__message{margin:0;line-height:1.4}.settings__message{color:#f2c480}.settings__buttons{flex-wrap:wrap;gap:6px;display:flex}.settings__editor{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.settings__editor:disabled{opacity:.55}.button:disabled{opacity:.5;cursor:default}.workspace{flex:1;min-height:0;display:flex}.workspace>.viewport{min-width:0}.dock{border-left:1px solid var(--border);background:#1c2027;flex-direction:column;flex:none;width:min(440px,45vw);min-height:0;display:flex}.dock__tabs{border-bottom:1px solid var(--border);flex:none;align-items:center;gap:2px;padding:6px 8px 0;display:flex}.dock__tabs .button{margin-bottom:6px}.dock__tab{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:5px 10px 7px}.dock__tab:hover{color:var(--text)}.dock__tab--active{color:var(--text);border-bottom-color:var(--accent)}.dock__tab:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.dock__scroll{scrollbar-width:thin;flex:1;min-height:0;padding:10px 12px;overflow-y:auto}.dock__hint{color:var(--muted);margin:6px 0;line-height:1.4}.stats{margin:0}.stats .info__row dt{width:92px}.selection{scrollbar-width:thin;border-bottom:1px solid var(--border);flex:none;max-height:55%;padding:8px 12px;overflow-y:auto}.selection__title{justify-content:space-between;align-items:center;font-weight:600;display:flex}.selection__code{border:1px solid var(--border);white-space:pre-wrap;overflow-wrap:anywhere;background:#15181d;border-radius:4px;margin:6px 0;padding:4px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;display:block}.selection__warning{color:#f2c480;margin:6px 0;line-height:1.4}.selection__values{grid-template-columns:1fr 1fr;gap:2px 14px;margin:0;display:grid}.selection__value{gap:8px;min-width:0;line-height:1.5;display:flex}.selection__value dt{width:78px;color:var(--muted);flex:none}.selection__value dd{font-variant-numeric:tabular-nums;min-width:0;margin:0}.gcode{flex:1;min-height:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;overflow:hidden auto}.gcode:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.gcode__window{position:sticky;top:0;overflow:hidden}.gcode__line{white-space:pre;cursor:pointer;height:18px;line-height:18px;display:flex}.gcode__line:hover{background:#262c35}.gcode__line--selected,.gcode__line--selected:hover{background:#4a4420}.gcode__number{box-sizing:content-box;text-align:right;color:#6f7988;-webkit-user-select:none;user-select:none;flex:none;padding:0 8px 0 6px}.gcode__text{text-overflow:ellipsis;min-width:0;overflow:hidden}.chart{margin:14px 0 0}.chart__title{font-weight:600}.chart__unit{color:var(--muted);font-weight:400}.chart__readout{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chart__svg{cursor:crosshair;width:100%;height:auto;display:block}.chart__grid{stroke:#2b313b;stroke-width:1px}.chart__tick{fill:var(--muted);font-size:10px}.chart__area{fill:#3987e5}.chart__band{fill:#3987e5;opacity:.3}.chart__line{fill:none;stroke:#6da7ec;stroke-width:1.5px;stroke-linejoin:round}.chart__reference{stroke:var(--muted);stroke-width:1px;stroke-dasharray:4 3}.chart__cursor{stroke:var(--accent);stroke-width:1px}.chart__hover{stroke:var(--text);stroke-width:1px;opacity:.6}.warning-summary,.warnings{margin:0;padding:0;list-style:none}.warning-summary li{justify-content:space-between;gap:10px;line-height:1.6;display:flex}.warning-summary__count{color:var(--muted);font-variant-numeric:tabular-nums}.warnings{flex-direction:column;gap:4px;margin-top:8px;display:flex}.warning{width:100%;font:inherit;color:var(--text);text-align:left;border:1px solid var(--border);cursor:pointer;background:#232830;border-radius:4px;flex-direction:column;gap:2px;padding:5px 8px;display:flex}.warning:hover{background:#2c323c}.warning--selected{border-color:#fff27a}.warning:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.warning__where{color:var(--muted)}.warning__mark{color:#f2c480;margin-right:4px}.warning__message{line-height:1.4}
