:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #fff5da; background: #081027; }
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; width: 100%; min-height: 100%; overflow: hidden; }
#lab-canvas { position: fixed; inset: 0; display: block; width: 100%; height: 100%; }
header { position: fixed; z-index: 4; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; padding: 13px 18px 13px 384px; border-bottom: 1px solid #fff4d629; background: linear-gradient(#071027f2, #071027b8); pointer-events: none; }
.eyebrow { color: #70efff; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
h1 { margin: 3px 0 0; font: 25px/1 Georgia, serif; }
.status-row { display: flex; gap: 8px; }
.status-row span { padding: 8px 10px; border: 1px solid #fff4d62d; border-radius: 10px; background: #101936df; color: #aebeca; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-row strong { color: #fff5da; font-size: 14px; }
.status.pass { color: #99f2c2; border-color: #48d79a66; }.status.fail { color: #ff9a9f; border-color: #ff687866; }.status.pending { color: #ffdc7d; }
.panel { position: fixed; z-index: 5; top: 14px; bottom: 14px; left: 14px; width: 344px; overflow: auto; padding: 18px; border: 1px solid #fff4d640; border-radius: 18px; background: #0b1430ed; box-shadow: 0 24px 70px #02061699; }
.panel p { margin: 0 0 13px; color: #aebeca; font-size: 11px; line-height: 1.5; }
label:not(.toggle) { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 11px 0; color: #dce8e9; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
label:not(.toggle) select, label:not(.toggle) input { grid-column: 1 / -1; }
select, input[type="range"], button { min-height: 41px; width: 100%; padding: 8px; border: 1px solid #fff4d64c; border-radius: 10px; background: #20294c; color: #fff5da; }
input[type="range"] { padding: 7px 3px; accent-color: #70efff; }
button { cursor: pointer; font-size: 10px; font-weight: 850; } button[aria-pressed="true"] { border-color: #70efffaa; background: #23425b; color: #a3f1ce; }
fieldset { margin: 13px 0; padding: 9px; border: 1px solid #fff4d629; border-radius: 11px; }
legend, summary { color: #dce8e9; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.speed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }.button-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.toggle { display: flex; align-items: center; gap: 8px; margin: 13px 0; padding: 8px; border-radius: 9px; background: #172142; color: #bfd0d6; font-size: 10px; }.toggle input { accent-color: #70efff; }
summary { cursor: pointer; padding: 8px 0; } output { display: block; padding-top: 9px; border-top: 1px solid #fff4d626; color: #96e4dc; font: 10px/1.55 ui-monospace, monospace; white-space: pre-wrap; }
.legend { position: fixed; z-index: 4; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100vw - 390px); padding: 9px; border: 1px solid #fff4d640; border-radius: 10px; background: #081027e8; }
.legend span { display: flex; align-items: center; gap: 5px; color: #dce8e9; font-size: 9px; font-weight: 850; text-transform: uppercase; }.legend i { width: 18px; height: 3px; }.path { background: #ff70c9; }.tangent { background: #ffd34e; }.normal { background: #70efff; }.arc { background: #9ff2bd; }
@media (max-width: 900px) { header { min-height: 66px; padding: 8px 10px; } h1 { font-size: 19px; } header .eyebrow, .status-row span:not(.status) { display: none; } .panel { top: auto; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: 34vh; padding: 12px; border-radius: 14px; } .panel p { display: none; } .legend { top: 74px; right: 8px; bottom: auto; max-width: calc(100vw - 16px); } }
