/* UV-E mechanism explorer. Every rule is scoped to this module. */
.robot-lab { padding: 64px var(--gutter) 20px; scroll-margin-top: 150px; }
.robot-heading { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 8%; margin-bottom: 34px; }
.robot-kicker { color: var(--accent); font: 500 11px/1.6 var(--body); letter-spacing: .09em; text-transform: uppercase; }
.robot-heading .robot-kicker { margin-bottom: 20px; }
.robot-heading h2 { font: 400 clamp(38px,4.7vw,64px)/1.08 var(--title); letter-spacing: -.045em; }
.robot-heading h2 span { color: var(--blue); }
.robot-intro>p:first-child { font-size: 14px; line-height: 1.9; color: var(--muted); max-width: 36em; }
.robot-budget { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.robot-budget strong { font: 400 27px/1.2 var(--title); color: var(--accent); }
.robot-budget span { max-width: 8em; font-size: 10px; line-height: 1.5; color: var(--muted); }
.robot-workbench { display: grid; grid-template-columns: 1.25fr 1fr; border: 1px solid var(--line); background: var(--paper); }
.robot-drawing-panel { padding: 24px 20px 20px; min-width: 0; background: #0b1422; color: #b7c8df; }
.robot-instrument-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c9d5e4; font-size: 9px; letter-spacing: .04em; }
.robot-schematic-tag { color: #d8b979; }
.robot-viewport { position: relative; margin-top: 12px; }
.robot-schematic { display: block; width: 100%; height: auto; overflow: visible; }
.robot-grid { color: #7692b4; opacity: .2; }
.robot-guide { fill: none; stroke: #56708f; stroke-width: 1; stroke-dasharray: 3 7; opacity: .65; }
.robot-origin { fill: #d8b979; }
.robot-chassis { fill: #15263c; stroke: #8095ac; stroke-width: 1.5; }
.robot-chassis circle { fill: #d8b979; stroke: none; }
.robot-frame { fill: none; stroke: #5a708b; stroke-width: 1.3; }
.robot-wheels { fill: #0b1422; stroke: #7895ba; stroke-width: 2; }
.robot-wheels path { fill: none; stroke-width: 2; }
.robot-arm { fill: #263e5a; stroke: #91aed4; stroke-width: 2; }
.robot-arm path+path { fill: none; stroke-width: 1.1; }
.robot-uv { fill: #9ab9f4; stroke: #9ab9f4; stroke-width: 2; }
.robot-uv path { fill: none; stroke-linecap: round; }
.robot-pivot { fill: #0b1422; stroke: #d8b979; stroke-width: 2; }
.robot-pivot-core { fill: #d8b979; }
.robot-forward { fill: none; stroke: #c7d7ee; stroke-width: 2; }
.robot-axis-label { fill: #b4c2d4; font: 8px var(--body); letter-spacing: 2px; }
.robot-schematic [data-robot-body], .robot-schematic [data-robot-arm] { transition: transform .36s cubic-bezier(.2,.7,.3,1); }
.robot-schematic [data-robot-component] { transition: stroke .2s, filter .2s; }
.robot-schematic [data-robot-component].is-selected { stroke: #eddbb7; filter: drop-shadow(0 0 5px #d8b97955); }
.robot-part-pins { display: none; }
.robot-ready .robot-part-pins { display: block; }
.robot-part { position: absolute; display: inline-flex; align-items: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 7px 9px; border: 1px solid #455a73; background: #0b1422; color: #ccd8e9; font: 500 10px/1.4 var(--body); cursor: pointer; text-align: left; transition: color .2s, border-color .2s, background .2s; }
.robot-part>span:first-child { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 1px solid #5b7393; font-size: 9px; }
.robot-part[aria-expanded=true], .robot-part:hover { color: #eddbb7; border-color: #d8b979; background: #172238; }
.robot-part--build { left: 0; top: 9%; }
.robot-part--arm { right: 0; top: 9%; }
.robot-part--drive { left: 0; bottom: 9%; }
.robot-part--uv { right: 0; bottom: 9%; }
.robot-lab .robot-part:focus-visible { outline-color: #eddbb7; outline-offset: 3px; }
.robot-plot-caption { color: #b4c2d4; font-size: 10px; line-height: 1.7; margin: 12px 4px 0; }
.robot-details { min-width: 0; padding: 26px; }
.robot-js-hint { display: none; color: var(--muted); font-size: 10px; margin-bottom: 22px; }
.robot-ready .robot-js-hint { display: block; }
.robot-detail { margin-bottom: 26px; }
.robot-detail[hidden] { display: none; }
.robot-detail-label { color: var(--accent); font-size: 11px; margin-bottom: 10px; }
.robot-detail-label span { font-variant-numeric: tabular-nums; margin-right: 6px; }
.robot-detail h3 { font-size: clamp(25px,2.5vw,34px); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 14px; }
.robot-detail>p:last-child { color: var(--muted); font-size: 12px; line-height: 1.85; }
.robot-ready .robot-detail { min-height: 192px; }
.robot-controls { display: none; border-top: 1px solid var(--line); padding-top: 18px; }
.robot-ready .robot-controls { display: block; }
.robot-control-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.robot-control-heading h3 { font-size: 23px; }
.robot-reset { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 8px; border: 0; background: transparent; color: var(--accent); font: 500 11px var(--body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.robot-control-instruction { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 5px 0 16px; }
.robot-controls-grid { display: grid; grid-template-columns: 144px minmax(0,1fr); gap: 22px; align-items: center; }
.robot-drive-pad { display: grid; grid-template-columns: repeat(3,44px); gap: 5px; }
.robot-drive-pad button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 400 22px/1 var(--body); cursor: pointer; transition: background .18s, color .18s; }
.robot-drive-pad button:hover, .robot-drive-pad button:active { background: var(--blue); color: var(--bg); border-color: var(--blue); }
.robot-arm-control label { display: block; font-size: 11px; color: var(--text); margin-bottom: 10px; }
.robot-arm-control input { display: block; width: 100%; min-height: 44px; accent-color: var(--accent); cursor: pointer; }
.robot-arm-control p { font-size: 9px; color: var(--muted); line-height: 1.5; }
.robot-arm-readout { display: block; color: var(--accent); font-size: 10px; margin-top: 8px; }
.robot-motion-status { min-height: 3.4em; color: var(--text); font-size: 10px; line-height: 1.7; margin-top: 16px; }
.robot-demo-note { color: var(--muted); font-size: 9px; line-height: 1.6; }
.robot-original { position: relative; display: grid; grid-template-columns: 140px 1fr 44px; align-items: center; gap: 24px; margin-top: 18px; border: 1px solid var(--line); padding: 14px; color: var(--text); text-decoration: none; background: var(--paper); transition: border-color .2s; }
.robot-original:hover { border-color: var(--accent); color: var(--text); }
.robot-original img { width: 140px; height: 92px; object-fit: cover; }
.robot-original-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.robot-original-copy strong { font: 400 clamp(22px,2vw,30px)/1.2 var(--title); }
.robot-original-copy>span:last-child { font-size: 10px; color: var(--muted); }
.robot-original-play { display: grid; place-items: center; width: 40px; height: 40px; background: var(--gold); color: #070a10; border-radius: 50%; font-size: 11px; }
@media(min-width:1050px) { .robot-drawing-panel { display: flex; flex-direction: column; } .robot-viewport { margin: auto 0; } }
@media(max-width:1050px) { .robot-workbench { grid-template-columns: 1fr 1fr; } .robot-details { padding: 22px 18px; } .robot-controls-grid { grid-template-columns: 142px minmax(0,1fr); gap: 14px; } .robot-part>span:last-child { display: none; } .robot-part { padding: 5px 9px; } .robot-part>span:first-child { border: none; } }
@media(max-width:760px) { .robot-lab { padding-top: 48px; } .robot-heading { grid-template-columns: 1fr; gap: 24px; } .robot-heading h2 { font-size: clamp(36px,8vw,52px); } .robot-intro>p:first-child { font-size: 13px; } .robot-budget { margin-top: 16px; } .robot-workbench { grid-template-columns: 1fr; } .robot-drawing-panel { padding: 18px 14px 16px; } .robot-viewport { max-width: 520px; width: 100%; margin: 14px auto 0; } .robot-part>span:last-child { display: block; } .robot-part { padding: 6px 8px; font-size: 9px; } .robot-part>span:first-child { width: 22px; } .robot-details { padding: 24px; } .robot-ready .robot-detail { min-height: 170px; } .robot-controls-grid { gap: 24px; } .robot-original { grid-template-columns: 92px 1fr; gap: 16px; padding: 12px; } .robot-original img { width: 92px; height: 90px; } .robot-original-copy .robot-kicker { font-size: 8px; } .robot-original-play { display: none; } }
@media(max-width:380px) { .robot-part>span:last-child { display: none; } .robot-controls-grid { gap: 14px; } .robot-details { padding: 20px 16px; } .robot-instrument-line { font-size: 8px; gap: 8px; } }
@media(prefers-reduced-motion:reduce) { .robot-lab *, .robot-lab *::before, .robot-lab *::after { animation: none !important; transition: none !important; } }
