:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #111d24;
  color: #f0f6f7;
  line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header, main { max-width: 58rem; margin: 0 auto; padding: 0 1rem; }
header { padding-top: 1.3rem; }
h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: -.035em; }
p { margin: .55rem 0 .95rem; }
#status, #mode, #performance { color: #b4c8cd; }
.camera {
  position: relative; display: grid; place-items: center; width: 100%;
  background: #0a1319; border: 1px solid #39525a; border-radius: .75rem;
  overflow: hidden; min-height: 10rem;
}
video { display: block; width: 100%; object-fit: contain; max-height: min(60vh, 36rem); }
canvas { position: absolute; pointer-events: none; }
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin: .7rem 0; }
button, input, textarea, select { font: inherit; }
button { min-height: 44px; padding: .4rem .9rem; border: 1px solid #628b92; border-radius: .5rem; cursor: pointer; background: #233c45; color: #f0f6f7; }
button:disabled { opacity: .45; cursor: default; }
#start, #login button { background: #91efd0; color: #103229; border-color: #91efd0; font-weight: 700; }
input[type=password], textarea {
  padding: .55rem; min-height: 44px; border-radius: .4rem; border: 1px solid #628b92;
  background: #0d1a20; color: #f0f6f7;
}
input[type=password] { flex: 1; }
textarea { display: block; width: 100%; margin-top: .4rem; font-family: monospace; }
details { margin: .8rem 0; padding: .75rem; border: 1px solid #39525a; border-radius: .55rem; }
summary { cursor: pointer; font-weight: 650; }
details label { display: block; margin-top: .75rem; }
.check { display: flex; align-items: baseline; gap: .35rem; }
#vehicles { list-style: none; padding: 0; }
#vehicles li { padding: .5rem .2rem; border-bottom: 1px solid #39525a; }
