@font-face{font-family:LabSans;src:local('Segoe UI')}
*{box-sizing:border-box}
html,body{height:100%;overflow:hidden}
html{color-scheme:light}
body{margin:0;background:#f2f1ec;color:#253431;font:14px LabSans,'Segoe UI',system-ui,sans-serif}
button,input,select{font:inherit}
button,select,input{accent-color:#39745e}
button,select,summary{cursor:pointer}
button{border:0;transition:background .15s,color .15s}
button:disabled,input:disabled,select:disabled{opacity:.42}
button:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible,summary:focus-visible,.controls:focus-visible{outline:2px solid #d58944;outline-offset:3px}
[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
main{height:100dvh;padding:12px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:12px;height:100%;min-height:0}
.viewer-panel{display:flex;flex-direction:column;height:100%;min-width:0;min-height:0;overflow:hidden;background:#111b20;color:#e2ebe7;border:1px solid #23343b;border-radius:8px}
.stage-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;flex-shrink:0;min-height:47px;padding:8px 14px;border-bottom:1px solid #27363b}
.stage-heading h1{font-size:13px;font-weight:500;letter-spacing:.2px;margin:0;color:#ccdbd2}
.stage-stat{font-size:10px;color:#8fa89a;text-align:right;font-variant-numeric:tabular-nums}
.lattice-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 12px;max-width:100%;min-width:0;margin-left:auto}
.lattice-dimensions,.lattice-options{display:flex;align-items:center;gap:7px;min-width:0}
.lattice-dimensions label{display:flex;align-items:center;gap:5px;color:#8ea99c;font-size:10px}
.lattice-toolbar select{height:28px;min-width:0;width:54px;padding:3px 4px;background:#15242b;border:1px solid #33464b;border-radius:4px;color:#d1dfd7;font-size:12px;font-variant-numeric:tabular-nums;color-scheme:dark}
.lattice-toolbar select:hover{background:#1d3035;border-color:#4c645e}
.dimension-times{color:#5d786e;font-size:11px}
.lattice-options{gap:10px}
.lattice-options .spacing-choice{display:block}
.lattice-options select{width:140px;font-size:10px;color:#a7bcb0;border-color:#2d3f44}
.atmosphere-choice{display:flex;align-items:center;gap:5px;white-space:nowrap;color:#a2b7aa;font-size:10px;cursor:pointer}
.atmosphere-choice input{width:12px;height:12px;margin:0;accent-color:#608b72;color-scheme:dark}
#stage{flex:1;min-height:0;position:relative;overflow:hidden;background:#0d171b;touch-action:none;outline-offset:-4px}
#stage>canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
.stage-top{position:absolute;z-index:2;top:16px;left:18px;right:18px;display:flex;align-items:start;justify-content:space-between;gap:8px}
.stage-top>#fullscreen{margin-left:auto}
.mode-help-anchor{display:inline-flex;align-items:center;align-self:center}
.mode-help-anchor>.tool-help-button{margin-left:0}
.segmented{display:flex;gap:2px;padding:3px;background:#17242a;border:1px solid #304149;border-radius:5px}
.segmented button{padding:8px 10px;color:#a6b8b0;background:transparent;border-radius:3px;font-size:11px;white-space:nowrap}
.segmented button.active{color:#f0f7ee;background:#365448}
.segmented button:hover{background:#294037}
.stage-button{background:#152129e8;color:#b7c6bd;border:1px solid #304149;border-radius:4px;padding:7px 9px;font-size:10px;white-space:nowrap}
.stage-button:hover{background:#34463d;color:#fff}
.stage-bottom{position:absolute;z-index:2;bottom:16px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.stage-bottom>div{display:flex;gap:5px}
.stage-bottom-left{align-items:center;flex-wrap:wrap;font-size:10px;color:#7f948b}
.stage-bottom-left>span{font-size:10px;color:#7f948b;line-height:1.4;font-weight:400}
#toggle-grid{min-width:58px;margin-right:4px}
#toggle-grid[aria-pressed=true]{background:#294237;border-color:#496553;color:#dbeadd}
.view-menu{position:relative}
.view-menu>div{position:absolute;bottom:calc(100% + 7px);right:0;display:grid;gap:4px;background:#152129;border:1px solid #304149;border-radius:5px;padding:5px;min-width:135px}
.view-menu .stage-button{text-align:left}
.axis-leaders{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:hidden}
.axis-leaders line{stroke:#789b8a;stroke-opacity:.65;stroke-width:1}
.axis-leaders circle{fill:#d5dfd1}
.axis-tag{position:absolute;z-index:1;pointer-events:none;white-space:nowrap;font:11px "Segoe UI",system-ui,sans-serif;color:#b7c8b8;background:rgba(8,17,20,.86);border-radius:3px;padding:4px 8px}
.volume-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;flex-shrink:0;gap:8px 15px;min-height:42px;padding:10px 16px;border-top:1px solid #27363b;font-size:10px;color:#a7bbb0}
.volume-footer>div{display:flex;align-items:center;gap:8px}
.axis-fallback{flex-basis:100%;color:#b7c8b8;font-family:"Segoe UI",system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.legend-swatch{width:45px;height:5px;border-radius:5px;background:linear-gradient(90deg,#180a25,#a63069,#ef7050,#ffe9bb)}
.controls{min-width:0;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a8b8a0 #eef1e7;background:#fafbf6;border:1px solid #d3dccb;border-radius:8px;padding:17px}
.controls-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}
.controls-title h2{font-size:16px;font-weight:500;margin:0}
.controls-title h2{margin-right:auto}
.field>label+.tool-help-button{margin-right:auto;margin-left:0}
.tools-content{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.rgb-channel label{display:inline}
.rgb-channel select{display:block;margin-top:7px}
.rgb-channel>.tool-help-button{width:15px;height:15px;margin-left:3px;font-size:9px}
.rgb-actions>.tool-help-button{margin-left:-3px;align-self:center}
.check>label{flex:1;min-width:0}
.check>.tool-help-button{margin-left:0}
.control-heading,.section-heading h3{font-size:11px;font-weight:600;color:#44604c;margin:0 0 15px}
.appearance-controls{padding-top:1px}
.appearance-heading-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.appearance-heading-row .control-heading{margin:0}
#auto-tune-controls{display:flex;align-items:center;gap:12px}
#auto-tune-controls .text-button{font-size:10px}
.spectral-controls{padding-top:4px;margin-bottom:18px}
.quick-controls{display:flex;flex-direction:column}
.controls[data-mode=rgb] #size-field{order:-1}
.section-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:15px}
.section-heading h3{margin:0 auto 0 0}
.section-heading .text-button{font-size:10px}
.section-heading>.tool-help-button{margin-left:0}
.rgb-sequence{border-top:1px solid #d7dcd2;padding-top:9px}
.rgb-sequence .rgb-progress{margin:14px 0 11px}
.rgb-return{margin:10px 0 0}
.rgb-return .text-button{font-size:10px}
.controls[data-rgb-phase=source] .rgb-channel label{color:#5b735e}
#rgb-origin-note{margin:-2px 0 13px;font-size:10px}
#rgb-origin-note>.tool-help-button{margin-left:4px}
.text-button{padding:3px 0;background:transparent;color:#427159;font-size:11px;white-space:nowrap}
.text-button:hover{text-decoration:underline}
.quiet{padding:8px 10px;background:transparent;border:1px solid #cbd5c4;border-radius:4px;color:#445d50;font-size:11px}
.quiet:hover{background:#e2e7dc}
.tools-menu{margin:15px 0 0;font-size:12px;color:#44604c}
.tools-menu>summary{padding:10px 11px;list-style-position:inside;border:1px solid #d5ddce;border-radius:4px}
.tools-content{display:grid;gap:2px;padding:5px;margin-top:6px;border:1px solid #d5ddce;border-radius:4px;background:#f1f5eb}
.tools-content button{display:block;text-align:left;padding:9px 10px;background:transparent;color:#3f604b;font-size:11px;border-radius:3px}
.tools-content button:hover{background:#e0e8d8}
.range-field{display:block;margin:0 0 17px}
.range-field>span{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#5b6a60;font-size:12px}
.range-field output{font-size:11px;font-variant-numeric:tabular-nums;background:#e4e9de;border-radius:3px;padding:2px 5px;min-width:35px;color:#2e5040;text-align:center}
.range-field input{width:100%;height:16px;display:block;margin:8px 0 0}
.field{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px}
.field label{font-size:12px;color:#5b6a60}
.field select,.selection-bar select{min-width:0;max-width:160px;padding:7px 5px;background:#fffef9;border:1px solid #cbd5c4;border-radius:4px;font-size:11px;color:#334b3d}
.advanced-controls{margin-top:6px;border-top:1px solid #d7dcd2}
.advanced-controls>details{border-bottom:1px solid #d7dcd2}
.advanced-controls>details>summary{padding:14px 0;font-size:12px;color:#44604c;list-style-position:inside}
.control-section{padding:8px 0 10px}
.control-section h3{display:flex;gap:10px;font-size:10px;color:#829086;font-weight:500;margin:0 0 16px}
.control-section h3 span{font-size:12px;color:#344c3f;font-weight:600}
.micro{font-size:10px;line-height:1.65;color:#7a857a;margin:8px 0 4px}
.check{display:flex;align-items:start;gap:7px;color:#4c6352;font-size:11px;margin:14px 0}
.check input{margin:2px 0 0}
.check small{display:block;font-size:10px;color:#8b958b;margin-top:4px}
.selection-bar{padding:12px;margin:0 0 17px;border:1px solid #d5dfcd;border-radius:5px;background:#eef3e8}
.column-picker{display:flex;gap:13px;align-items:center}
#source-map{position:relative;width:104px;height:104px;flex-shrink:0;background:#172529;border-radius:4px;overflow:hidden}
#source-canvas{display:block;width:100%;height:100%;cursor:crosshair}
#source-crosshair{width:13px;height:13px;border:1px solid #fff;box-shadow:0 0 0 1px #20392d;position:absolute;transform:translate(-50%,-50%);pointer-events:none;border-radius:50%}
#source-crosshair:after{content:'';position:absolute;width:3px;height:3px;background:white;top:4px;left:4px;border-radius:50%}
.coordinate-fields{min-width:0;flex:1}
.coordinate-inputs{display:flex;gap:8px;margin-bottom:9px}
.coordinate-inputs label{display:flex;align-items:center;gap:5px;font-size:11px;color:#5b735e}
.coordinate-inputs input{width:45px;min-width:0;background:#fffef9;border:1px solid #bdcdb4;border-radius:3px;padding:5px;font-size:11px;color:#334b3d}
#column-bounds{display:block;font-size:9px;color:#7a8d71;margin-top:7px}
.layer-picker{display:flex;align-items:end;gap:9px}
.layer-field{min-width:0;flex:1}
.layer-field label{display:block;font-size:11px;color:#5b735e;margin-bottom:7px}
.layer-scrub-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.layer-scrub-heading label{margin:0}
.layer-scrub-heading output{font-size:11px;font-variant-numeric:tabular-nums;color:#42634d;text-align:right}
.layer-field input[type=range]{display:block;width:100%;height:20px;margin:9px 0 0}
.controls .stage-button{background:#e6edde;border-color:#c4d1bb;color:#3c6147}
.controls .stage-button:hover{background:#d3e1c8;color:#274f34}
.rgb-study{margin:0 0 19px}
.rgb-content{padding:0}
.rgb-actions{display:flex;flex-wrap:wrap;gap:7px;margin:5px 0 12px}
.rgb-actions #rgb-collapse{background:#355f46;color:#f4f8ef;border-color:#355f46}
.rgb-actions #rgb-collapse:hover{background:#254d36}
#rgb-state{display:block;font-size:11px;line-height:1.6;font-weight:500;color:#406748}
.rgb-reference{border-top:1px solid #d7dcd2;border-bottom:1px solid #d7dcd2;margin:3px 0 17px}
.rgb-reference>summary{padding:14px 0;font-size:12px;line-height:1.6;color:#506d57;list-style-position:inside}
.rgb-reference .rgb-explanation{margin-top:0;padding-bottom:15px}
.rgb-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:13px}
.rgb-channel label{display:block;font-size:10px;margin-bottom:6px}
.rgb-channel.red label{color:#a85e4b}
.rgb-channel.green label{color:#4c8151}
.rgb-channel.blue label{color:#507fa4}
.rgb-channel select{width:100%;min-width:0;padding:6px 2px;border:1px solid #c2d1b8;border-radius:4px;background:#fffef9;color:#3d5945;font-size:10px}
.rgb-progress{display:block;font-size:10px;color:#5e7b54}
.rgb-progress>span{display:flex;align-items:center;gap:7px;justify-content:space-between;margin-bottom:7px}
.rgb-progress>span>.tool-help-button{margin-right:auto}
.rgb-progress input{display:block;width:100%;margin:0}
.rgb-explanation{display:flex;align-items:start;gap:10px;margin-top:15px}
.rgb-explanation canvas{width:62px;height:62px;image-rendering:pixelated;border:1px solid #c3d0b9;border-radius:3px;background:#0b141a;flex-shrink:0}
.rgb-explanation strong{font-size:11px;font-weight:500;color:#527447}
.rgb-explanation p{font-size:10px;line-height:1.65;color:#7c8e73;margin:5px 0}
.rgb-explanation #rgb-range-note{color:#a0743c}
.spectrum-inspector{margin:0 0 18px;border-bottom:1px solid #d7dcd2}
.spectrum-inspector>summary{padding:0 0 14px;font-size:11px;line-height:1.6;color:#506d57;list-style-position:inside}
.spectrum-inspector>summary>#spectrum-summary-label{display:inline;color:inherit;font-size:inherit;margin:0}
.spectrum-inspector>summary>#spectrum-summary-detail{display:block;font-size:9px;color:#8c9a83;margin-left:14px}
.inspector{padding-bottom:15px}
.inspector-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.eyebrow{font-size:8px;letter-spacing:1px;color:#5d7564}
.plot-legend{display:flex;gap:10px;font-size:9px;color:#718170}
.plot-legend span{display:flex;gap:5px;align-items:center}
.plot-legend i{display:block;width:12px;height:2px;background:#6b8976}
.plot-legend i.binned-line{background:#d38a45}
.spectrum-wrap{height:160px;position:relative;margin-top:10px}
#spectrum-canvas{display:block;width:100%;height:100%}
#plot-tooltip{display:block;margin:5px 0;color:#52705b;font:10px monospace;pointer-events:none;max-width:100%}
.spectrum-footer{font-size:9px;line-height:1.6;color:#8a9684}
.spectrum-actions{margin-top:7px}
.spectrum-actions:has(>button[hidden]){display:none}
.sidebar-status{font-size:10px;line-height:1.65;color:#6b8266;margin:14px 0}
.prototype-note{font-size:9px;line-height:1.65;color:#929b89;margin:0}
#loading{position:absolute;z-index:5;inset:0;background:#111b20;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;padding:20px}
#loading strong{font-size:15px;font-weight:500}
#loading span{font-size:11px;color:#81988c}
.loading-mark{width:25px;height:25px;border:1px solid #355346;border-top-color:#b1d8a4;border-radius:50%;animation:spin 1.2s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
#render-error{position:absolute;z-index:6;background:#301e1e;color:#f3b7a5;border:1px solid #73453a;padding:20px;inset:100px 25px auto;line-height:1.8}
dialog{max-width:690px;width:calc(100% - 36px);max-height:85vh;border:1px solid #d3dccb;border-radius:10px;background:#f6f7ef;color:#354c3d;padding:28px}
dialog::backdrop{background:#07181acc;backdrop-filter:blur(3px)}
.dialog-heading{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #d5decd;padding-bottom:20px;margin-bottom:20px}
.dialog-heading h2{font-size:22px;font-weight:500;margin:9px 0 0}
.dialog-heading button{background:transparent;font-size:28px;color:#7b8a73;padding:0 4px}
#provenance-content{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
#provenance-content dl{display:grid;grid-template-columns:120px 1fr;gap:9px 15px}
#provenance-content dt{color:#89917b}
#provenance-content dd{margin:0}
#provenance-content p{font-size:11px;color:#71816c}
#provenance-content code{font-size:10px;background:#e6ebdf;padding:2px 4px}
#stage:fullscreen{flex:none;height:100dvh!important;width:100vw!important}
@media(max-width:1000px){main{padding:8px}.workspace{grid-template-columns:minmax(0,1fr) 290px;gap:8px}.controls{padding:14px}.segmented button{font-size:10px;padding:8px 7px}.stage-top,.stage-bottom{left:12px;right:12px}.column-picker{gap:10px}#source-map{width:92px;height:92px}.coordinate-inputs{gap:5px}.coordinate-inputs input{width:42px}}
@media(max-width:720px){.workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,.72fr)}.controls{padding:13px;scrollbar-gutter:stable}.stage-heading{padding:9px 12px;min-height:36px}.stage-heading h1{font-size:12px}.stage-stat{font-size:9px}.stage-top{top:10px;flex-wrap:wrap}.stage-top>.segmented{width:100%;justify-content:space-between}.segmented button{flex:1;font-size:10px;padding:7px 5px}.stage-top>#fullscreen{margin-left:auto}.stage-bottom{bottom:10px;gap:5px}.stage-bottom>span{font-size:9px}.stage-button{padding:6px 7px;font-size:9px}.volume-footer{padding:8px 12px;min-height:36px;font-size:9px}.legend-swatch{width:32px}.controls-title h2{font-size:15px}.quick-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.quick-controls #brightness-field{grid-column:1/-1}.rgb-channels{gap:9px}.rgb-channel select{font-size:11px;padding:7px 4px}}
@media(max-width:720px){.stage-heading{gap:7px;padding:8px 11px}.lattice-toolbar{width:100%;justify-content:space-between;gap:6px}.lattice-dimensions,.lattice-options{gap:5px}.lattice-toolbar select{width:44px;font-size:11px}.lattice-options select{width:122px;font-size:10px}.lattice-options{margin-left:auto}.atmosphere-choice{font-size:9px}.dimension-times{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
