:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #fff4d6; background: #091028; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-width: 320px; min-height: 100%; overflow: hidden; }
#lab-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.lab-header { position: fixed; top: 0; right: 0; left: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; padding: 14px 20px 14px 382px; border-bottom: 1px solid #fff4d62b; background: linear-gradient(180deg, #081027f2, #081027ba); pointer-events: none; }
.eyebrow { color: #5dd6e8; letter-spacing: .16em; font-size: 9px; font-weight: 850; }
h1 { margin: 3px 0 0; font: 25px/1 Georgia, serif; }
.header-stats { display: flex; align-items: center; gap: 8px; }
.header-stats span { padding: 8px 10px; border: 1px solid #fff4d62b; border-radius: 10px; background: #101833db; color: #aebfca; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.header-stats strong { color: #fff4d6; font-size: 14px; }
.status.pending { color: #ffdd82; }
.status.pass { color: #9df4c4; border-color: #42d49766; }
.status.fail { color: #ff9b9b; border-color: #ff666677; }
.lab-panel { position: fixed; z-index: 5; top: 14px; bottom: 14px; left: 14px; width: 342px; overflow: auto; padding: 18px; border: 1px solid #fff4d642; border-radius: 18px; background: #0c1430ed; box-shadow: 0 24px 70px #02061699; }
.intro { margin: 0 0 14px; color: #aebfca; font-size: 11px; line-height: 1.5; }
label:not(.toggle) { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin: 12px 0; color: #dce7e8; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
label:not(.toggle) select, label:not(.toggle) input { grid-column: 1 / -1; }
select, input[type="range"], button { width: 100%; min-height: 42px; border: 1px solid #fff4d64d; border-radius: 10px; background: #20284a; color: #fff4d6; padding: 9px; }
input[type="range"] { padding: 7px 3px; accent-color: #5dd6e8; }
button { cursor: pointer; font-weight: 800; }
button[aria-pressed="true"] { border-color: #5dd6e8aa; background: #234157; color: #9df4c4; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 7px 0; }
fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0; padding: 10px; border: 1px solid #fff4d62b; border-radius: 12px; }
legend, summary { color: #dce7e8; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.toggle { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 8px; border-radius: 8px; background: #172041; color: #b9cbd3; font-size: 9px; }
.toggle input { accent-color: #5dd6e8; }
summary { cursor: pointer; padding: 8px 0; }
.audit-list { display: grid; gap: 5px; }
.audit-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 36px; padding: 7px 8px; border: 1px solid #fff4d621; border-radius: 8px; background: #111b39; }
.audit-item i { width: 8px; height: 8px; border-radius: 50%; background: #ff6d73; box-shadow: 0 0 0 4px #ff6d7320; }
.audit-item.pass i { background: #4bdba0; box-shadow: 0 0 0 4px #4bdba020; }
.audit-item span { overflow: hidden; color: #dce7e8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.audit-item small { color: #8fa4b2; font: 9px ui-monospace, monospace; }
output { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid #fff4d626; color: #96e4db; font: 10px/1.55 ui-monospace, monospace; white-space: pre-wrap; }
.proof-key { position: fixed; z-index: 4; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; max-width: calc(100vw - 390px); padding: 9px; border: 1px solid #fff4d642; border-radius: 10px; background: #081027e6; }
.proof-key[hidden] { display: none; }
.proof-key span { display: flex; align-items: center; gap: 5px; color: #dce7e8; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.proof-key i { width: 9px; height: 9px; border-radius: 50%; }
.proof-key .far { background: #6995ff; }.proof-key .background { background: #5dd6e8; }.proof-key .mid { background: #ffd34e; }.proof-key .foreground { background: #ff665f; }.proof-key .lane { border-radius: 2px; background: #55e39b88; }
@media (max-width: 760px) {
  .lab-header { min-height: 68px; padding: 9px 12px; }
  h1 { font-size: 19px; }
  .lab-header .eyebrow, .header-stats span:not(.status) { display: none; }
  .lab-panel { top: auto; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: 38vh; padding: 12px; border-radius: 14px; }
  .intro { display: none; }
  .proof-key { top: 76px; right: 8px; bottom: auto; max-width: calc(100vw - 16px); }
}
