.weather-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;border:1px solid var(--line)}
.history-strip{margin-bottom:14px;background:#080808;border:1px solid var(--line)}.history-strip>.control-section{display:grid;grid-template-columns:235px minmax(0,1fr);column-gap:26px;padding:17px 22px}.history-strip .section-heading{grid-column:1;grid-row:1;margin:0}.history-strip h2{grid-column:1;grid-row:2;margin:2px 0 0;font-size:15px}.history-strip .control-note{grid-column:1;grid-row:3;margin-top:6px;font-size:10px}.history-strip .history-presets{grid-column:2;grid-row:1/4;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px}.history-strip .history-presets button>span:last-child{display:block}.history-strip .history-presets small{display:block;margin-top:6px}
.specimen{min-width:0;background:#090909;display:flex;flex-direction:column}.view-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:0 20px;min-height:56px;background:#080808}
button{color:#bbb;background:none;border:1px solid #383838;min-height:44px;padding:8px 12px;font-size:12px}button:hover{color:#fff;background:#191919}button[aria-pressed=true]{color:#fff;border-color:#aaa;background:#1a1a1a}.view-modes{display:flex;gap:18px}.view-modes button{border:0;border-bottom:1px solid transparent;padding:16px 0;background:none;white-space:nowrap;display:flex;align-items:center;gap:6px}.view-modes button[aria-pressed=true]{border-bottom-color:#eee}.view-toolbar>button{border:0;white-space:nowrap;padding:8px 0}.view-toolbar>button span{margin-left:5px}.dust-dot,.wear-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#dec7a0}.wear-dot{background:#9dbfb9}
.weather-stage{position:relative;flex:1;min-height:465px;background:radial-gradient(ellipse at 50% 42%,#232522,#0b0d0c 78%);overflow:hidden}.weather-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab;outline-offset:-3px}.weather-stage canvas:active{cursor:grabbing}.stage-label{position:absolute;top:22px;left:24px;right:24px;display:flex;justify-content:space-between;gap:20px;color:#aaa;font:10px var(--f-mono);letter-spacing:.06em;pointer-events:none;z-index:1}.stage-label b{color:#dededb;font-weight:400}.stage-label>span{padding:6px 8px;background:#0b0d0cbf}.stage-bottom{position:absolute;bottom:17px;left:24px;right:24px;display:flex;justify-content:space-between;gap:12px;align-items:center;pointer-events:none;z-index:2;font-size:11px;color:#aaa}.stage-bottom p{background:#0b0d0cbf;padding:5px 8px}.stage-bottom button{pointer-events:auto;font-size:11px;border:0;background:#0b0d0cbf}.compare-labels{position:absolute;top:62px;left:24px;right:24px;display:flex;justify-content:space-between;pointer-events:none;z-index:1;font-size:11px}.compare-labels span{background:#080808c9;padding:6px 9px;color:#eee}.compare-labels span:last-child{border-left:2px solid #c7d2c8}#compare-line{position:absolute;left:50%;top:56px;bottom:66px;border-left:1px solid #fff8;pointer-events:none}#compare-handle{position:absolute;top:48%;left:0;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;background:#171817db;border:1px solid #888;padding:0;font:15px var(--f-mono);pointer-events:auto;touch-action:none;cursor:ew-resize}.compare-scrub{padding:10px 24px;border-top:1px solid var(--line);background:#111}.compare-scrub label{display:flex;justify-content:space-between;font-size:12px}.compare-scrub p{color:#aaa;font-size:11px}
.point-marker{position:absolute;pointer-events:none;transform:translate(-50%,-50%);color:#eee;display:flex;align-items:center;gap:10px}.point-marker span{width:16px;height:16px;border:1px solid #fffb;border-radius:50%;box-shadow:0 0 0 4px #08080855}.point-marker span:after{content:'';display:block;margin:5px;width:4px;height:4px;background:#fff;border-radius:50%}.point-marker b{position:absolute;left:26px;top:50%;transform:translateY(-50%);font:10px var(--f-mono);background:#080808c9;padding:4px 6px}
.observation{padding:18px 24px 22px;background:#0b0b0b;border-top:1px solid var(--line);min-height:144px}.observation-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-id{display:block;color:#929292;font:10px/1.5 var(--f-mono);letter-spacing:.12em}.observation-head>div{display:flex;gap:6px}.observation-head button{border:0;padding:4px 9px;min-height:36px;font-size:11px}.observation-head button[aria-pressed=true]{background:#252525}.observation h2{font-size:15px;font-weight:400;margin-bottom:6px}.observation p{font-size:13px;color:#aaa;line-height:1.85;max-width:660px}.weather-controls{border-left:1px solid var(--line);background:#080808}.control-section{padding:21px 23px;border-bottom:1px solid var(--line)}.control-section:last-child{border:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:10px}.section-heading .text-button{min-height:32px;font-size:10px;padding:0;border:0;color:#999}.control-section h2{font-size:17px;font-weight:400;margin-bottom:15px}.history-presets{display:grid;gap:6px}.history-presets button{display:flex;align-items:center;gap:13px;padding:9px 12px;text-align:left}.history-presets button[aria-pressed=true]{border-color:#999;background:#1b1b1b}.preset-icon{font:21px var(--f-mono);width:22px;text-align:center;color:#aaa}.history-presets button>span:last-child{display:flex;justify-content:space-between;align-items:center;flex:1;gap:6px}.history-presets small{font-size:10px;color:#939393;font-weight:300}.control-note{font-size:11px;line-height:1.9;color:#999;margin-top:10px}.material-row{display:flex;align-items:center;gap:16px;margin-top:16px}.material-row label{font-size:12px;white-space:nowrap}.material-row select{flex:1;min-width:0}select{display:block;width:100%;color:#ddd;background:#121212;border:1px solid #3b3b3b;min-height:44px;padding:8px 10px;font-size:12px}.slider-field{margin-top:16px}.slider-field label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#ccc}.slider-field output,.compare-scrub output{font:11px var(--f-mono);color:#bbb}.range-ends{display:flex;justify-content:space-between;font-size:10px;color:#858585;margin-top:-4px}.field-label{display:block;font-size:12px;margin:20px 0 8px;color:#ccc}
input[type=range]{appearance:none;display:block;width:100%;height:44px;margin:0;background:transparent;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,#b9b9b9 var(--fill,50%),#363636 var(--fill,50%))}input[type=range]::-webkit-slider-thumb{appearance:none;box-sizing:border-box;width:44px;height:44px;margin-top:-21px;background:#ddd;background-clip:content-box;border:17px solid transparent}input[type=range]::-moz-range-track{height:2px;background:#363636}input[type=range]::-moz-range-progress{height:2px;background:#aaa}input[type=range]::-moz-range-thumb{box-sizing:border-box;width:44px;height:44px;background:#ddd;background-clip:content-box;border:17px solid transparent;border-radius:0}
.lab-status{display:flex;justify-content:space-between;gap:16px;margin:14px 0 27px;color:#888;font-size:11px}.lab-status>span{font:10px/1.7 var(--f-mono);letter-spacing:.06em}.learning-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--line)}.learning-notes article{padding:25px 25px 26px 0}.learning-notes article+article{border-left:1px solid var(--line);padding-left:25px}.learning-notes h2{font-size:16px;font-weight:400;margin:13px 0 8px}.learning-notes p{font-size:12px;color:#999;line-height:1.9;max-width:350px}.model-notes{padding:19px 0 0;font-size:12px;color:#999}.model-notes summary{cursor:pointer;display:flex;justify-content:space-between;list-style:none;min-height:44px;align-items:center}.model-notes summary::-webkit-details-marker{display:none}.model-notes p{max-width:930px;line-height:1.9;margin:12px 0}.model-notes a{display:inline-block;font-size:11px;margin:4px 22px 4px 0;min-height:32px}.render-error{position:absolute;inset:0;z-index:4;background:#101010;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;gap:20px;font-size:14px}.no-script{padding:20px;border:1px solid #555}
@media(min-width:1500px){.weather-workspace{grid-template-columns:minmax(0,1fr) 360px}.weather-stage{min-height:530px}}
@media(max-width:1100px){.weather-workspace{grid-template-columns:minmax(0,1fr) 300px}.control-section{padding-inline:18px}.view-toolbar{flex-wrap:wrap;gap:0;padding:0 16px}.view-modes{gap:16px}.view-toolbar>button{font-size:10px}.stage-label>span:last-child{display:none}.stage-label,.stage-bottom{left:16px;right:16px}.observation{padding-inline:18px}.observation-head{flex-wrap:wrap}.observation-head>div{margin-left:auto}}
@media(max-width:820px){.weather-workspace{grid-template-columns:1fr}.weather-stage{flex:none;height:450px;min-height:0}.weather-controls{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr}.control-section{padding:21px}.control-section:first-child{grid-column:1/-1}.control-section:nth-child(2){border-bottom:0;border-right:1px solid var(--line)}.history-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.history-presets button{gap:9px}.history-presets button>span:last-child{display:block}.history-presets small{display:block;margin-top:3px}.section-heading{margin-bottom:5px}.control-section h2{margin-bottom:11px}.observation{min-height:135px}.learning-notes h2{font-size:14px}.view-toolbar{flex-wrap:nowrap}.view-toolbar>button{font-size:11px}}
@media(max-width:560px){body[data-lab]{--pad:18px}.view-toolbar{flex-wrap:wrap;padding:0 14px}.view-modes{width:100%;justify-content:space-between;gap:10px}.view-modes button{font-size:12px;padding-block:12px}.view-toolbar>button{width:100%;text-align:right;border-top:1px solid #222;min-height:38px}.weather-stage{height:360px}.stage-label{top:15px;font-size:9px;left:12px;right:12px}.stage-bottom{left:12px;right:12px;bottom:10px;font-size:10px}.stage-bottom button{font-size:10px;padding-inline:6px}.observation{padding:13px 16px 17px}.observation-head{gap:3px;margin-bottom:8px}.observation-head>div{gap:0}.observation-head button{font-size:10px;padding:4px 7px;min-height:44px}.observation p{font-size:12px}.control-section{padding:18px 16px}.weather-controls{display:block}.control-section:nth-child(2){border-right:0;border-bottom:1px solid var(--line)}.history-presets{gap:5px}.history-presets button{display:block;padding:10px 7px}.preset-icon{display:block;margin-bottom:7px;font-size:17px}.history-presets small{font-size:9px}.history-presets button>span:last-child{font-size:11px}.material-row{margin-top:12px}.learning-notes{grid-template-columns:1fr}.learning-notes article,.learning-notes article+article{border-left:0;padding:20px 0}.learning-notes article+article{border-top:1px solid var(--line)}.learning-notes h2{font-size:16px;margin-top:9px}.learning-notes p{max-width:none}.lab-status{display:block;margin-bottom:22px}.lab-status>span{display:block;margin-top:7px;font-size:9px}.compare-labels{left:12px;right:12px;font-size:10px}.compare-scrub{padding-inline:16px}.model-notes{font-size:11px}}
@media(max-width:820px){.weather-controls>.control-section:first-child{grid-column:auto;border-bottom:0;border-right:1px solid var(--line)}.weather-controls>.control-section:nth-child(2){border-right:0}.history-strip>.control-section{grid-template-columns:190px minmax(0,1fr);gap:0 16px;padding:15px 18px}.history-strip .history-presets{gap:6px}.history-strip .history-presets button{display:block;padding:10px}.history-strip .preset-icon{margin-bottom:8px;display:block}}
@media(max-width:560px){.history-strip>.control-section{display:block;padding:14px}.history-strip .section-heading{margin:0 0 3px}.history-strip h2{margin:0 0 10px}.history-strip .control-note{margin-top:10px}.history-strip .history-presets{gap:5px}.history-strip .history-presets button{padding:9px 7px}.history-strip .history-presets small{margin-top:3px}.weather-controls>.control-section:first-child{border-right:0;border-bottom:1px solid var(--line)}}
/* Keep the object visible while touch users adjust the controls below it. */
@media(max-width:820px){.specimen{display:contents}.weather-stage{position:sticky;top:calc(var(--lab-site-header-height) + var(--lab-navigation-height) + 2px);z-index:5;height:clamp(240px,42svh,360px);flex:none;border-bottom:1px solid var(--line)}.weather-controls{position:relative}.view-toolbar{background:#080808}.observation{background:#0b0b0b}}
@media(max-width:820px) and (max-height:520px){.weather-stage{position:relative;top:auto;height:300px}}
@media(max-width:820px) and (min-height:521px){.weather-controls input,.weather-controls select{scroll-margin-top:calc(clamp(240px,42svh,360px) + 32px)}}

/* More histories and causes stay visible; preview never stretches to controls. */
.wet-dot,.rust-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#86b3cf}.rust-dot{background:#c88a52}
.history-strip .history-presets{grid-template-columns:repeat(4,minmax(0,1fr));align-content:center}.history-strip .history-presets button{min-height:68px}
.view-toolbar{flex-wrap:wrap;gap:0 14px}.view-modes{flex-wrap:wrap;gap:0 16px}.view-modes button{padding:12px 0;font-size:11px}.view-toolbar>button{margin-left:auto}
@media(min-width:821px){.weather-workspace{align-items:start}.specimen{position:sticky;top:calc(var(--lab-site-header-height) + var(--lab-navigation-height) + 2px)}.weather-stage{height:clamp(340px,calc(100svh - 355px),660px);min-height:0;flex:none}.observation{min-height:0;padding-top:12px;padding-bottom:16px}.observation-head{margin-bottom:6px}}
@media(min-width:561px) and (max-width:820px){.exposure-controls{grid-column:1/-1;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.exposure-controls>.section-id,.exposure-controls>.control-note{grid-column:1/-1}}
@media(max-width:820px){.history-strip .history-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.history-strip .history-presets button{display:flex;min-height:60px}.history-strip .preset-icon{margin:0}}
@media(max-width:560px){.view-modes{justify-content:flex-start;gap:0 18px}.view-modes button{font-size:11px}.history-strip .history-presets button{padding:8px}.history-strip .history-presets small{font-size:10px}}

.moss-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#8aa468}
.history-strip .history-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.history-strip .history-presets button{min-height:60px}.history-strip .history-presets small{margin-top:3px}
.learning-notes article:nth-child(n+4){border-top:1px solid var(--line)}.learning-notes article:nth-child(3n+1){border-left:0;padding-left:0}
@media(max-width:820px){.history-strip>.control-section{grid-template-columns:180px minmax(0,1fr)}.history-strip .history-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.history-strip .history-presets button{display:block;min-height:72px}.history-strip .preset-icon{display:none}}
@media(max-width:560px){.history-strip>.control-section{display:block}.learning-notes article:nth-child(n){padding-left:0}}

.runoff-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#9baebb}
@media(min-width:821px){.view-toolbar{padding-block:3px}.view-modes{gap:0 14px}}

/* Inspection controls remain separate from the surface treatment parameters. */
.inspection-tools{display:flex;align-items:center;gap:16px;min-height:48px;padding:5px 20px;border-bottom:1px solid var(--line);background:#0b0b0b}
.inspection-tools button{min-height:36px;padding:6px 11px;font-size:11px}
#mask-legend{display:flex;align-items:center;gap:8px;font-size:10px;color:#b7b7b7;flex-wrap:wrap}
#mask-legend i{width:58px;height:8px;background:linear-gradient(90deg,#000,#fff);border:1px solid #666}
#mask-legend>span{color:#eee}.weather-stage[data-mask=true]{background:#161616}
.lighting-controls{display:grid;grid-template-columns:auto minmax(70px,1fr) 36px;align-items:center;column-gap:16px;padding:6px 22px 10px;border-top:1px solid var(--line);background:#0b0b0b}
.lighting-controls label{font-size:11px;color:#ccc;display:flex;gap:12px;align-items:center}.lighting-controls output{font:10px var(--f-mono);min-width:32px;text-align:right}
.lighting-controls button{min-height:34px;padding:5px;font-size:16px}.lighting-controls p{grid-column:1/-1;font-size:10px;color:#999;margin:0}
.lighting-controls :disabled{opacity:.35;cursor:default}
@media(min-width:821px){.weather-stage{height:clamp(310px,calc(100svh - 415px),610px)}}
@media(max-width:560px){.inspection-tools{padding:5px 14px;gap:10px}#mask-legend{font-size:9px;gap:4px}#mask-legend i{width:32px}.lighting-controls{padding-inline:14px;column-gap:10px}}
