html, body { margin: 0; height: 100%; font: 13px/1.4 sans-serif; }
#map { position: absolute; inset: 32px 0 0 0; background: #14181d; }
#topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 32px; z-index: 10;
  background: #14181d; color: #ddd; display: flex; gap: 12px;
  align-items: center; padding: 0 10px; box-sizing: border-box;
}
#topbar a { color: #9cf; }
#status-pill { background: #333; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.panel {
  position: absolute; top: 32px; bottom: 0; width: 300px; box-sizing: border-box;
  background: rgba(20,24,29,.92); color: #ddd; padding: 10px;
  overflow-y: auto; z-index: 5;
}
#left { left: 0; }
#right { right: 0; width: 340px; }
h3 { margin: 10px 0 4px; font-size: 12px; color: #9cf; text-transform: uppercase; }
select, input, button { background: #222; color: #ddd; border: 1px solid #444; font-size: 12px; }
button { cursor: pointer; }
.row { display: flex; gap: 6px; margin: 4px 0; }
label { display: block; margin: 3px 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.grid label { display: flex; justify-content: space-between; gap: 4px; }
.grid input { width: 60px; box-sizing: border-box; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
td, th { border-bottom: 1px solid #333; padding: 2px 4px; text-align: left; }
tbody tr { cursor: pointer; }
tbody tr:hover, tbody tr.sel { background: #334; }
.error { color: #f66; font-size: 12px; margin: 4px 0; }
.small { font-size: 11px; color: #aaa; }
.hidden { display: none; }
#zone-list .zone { padding: 4px; border-bottom: 1px solid #333; }
#zone-list .zone.sel { background: #334; }
#zone-list .zone .actions button { font-size: 11px; margin-right: 3px; }
#recording { background: #3a2; color: #031; padding: 4px; border-radius: 3px; margin-top: 4px; }
#live-readout { font-size: 22px; font-weight: bold; padding: 6px; text-align: center; border-radius: 4px; margin: 6px 0; }
#carwrap { position: absolute; inset: 32px 0 0 0; display: flex; }
#car-form { position: relative; top: 0; width: 340px; flex: none; }
#car-view { flex: 1; background: #10141a; display: flex; align-items: center; justify-content: center; }
#car-view svg { height: 95%; }
#tooltip { position: absolute; pointer-events: none; background: rgba(0,0,0,.85);
  color: #eee; padding: 4px 6px; border-radius: 3px; font-size: 11px; z-index: 9; }

/* recording wizard: usable on a phone */
#wizard { font-size: 16px; }
#wizard input, #wizard select, #wizard button { font-size: 16px; }
#wizard button { min-height: 48px; margin: 6px 0; }
#wizard button.big, button.big { display: block; width: 100%; padding: 10px;
  font-weight: bold; }
#wizard .wz-cancel { display: block; width: 100%; }
button.sidebtn { display: inline-block; width: 48%; }
.wz-side { display: flex; gap: 4%; margin: 8px 0; }
.sidebtn.sel { background: #2a5a2a; border-color: #4c4; }
.rline { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.rline .dot { width: 14px; height: 14px; border-radius: 50%;
  background: #666; flex: none; }
.rline.ok .dot { background: #3d4; }
.rline.bad .dot { background: #e33; }
#wz-drive { padding: 6px 0; color: #9cf; }
#wz-review div { padding: 4px 0; }
#wz-name { width: 100%; box-sizing: border-box; padding: 6px; }

@media (max-width: 700px) {
  .panel { position: relative; top: auto; bottom: auto; width: 100%;
    left: auto; right: auto; }
  #right { width: 100%; }
  #map { z-index: -1; }
}

/* ---- restyle: shared look across pages ---- */
body { background: #0d141c; color: #dfe6ef; }
h2 { font-size: 22px; margin: 6px 0 10px; color: #e8edf4; }
h3 { font-size: 14px; }
.panel, .card {
  border: 1px solid #2a3a4e; border-radius: 12px;
  background: radial-gradient(ellipse at top left,
    rgba(30,45,65,.55) 0%, rgba(13,20,28,.92) 70%);
}
.zone { border-radius: 8px; margin: 4px 0;
  border: 1px solid rgba(42,58,78,.6); padding: 8px; }
.num, td:nth-child(3), td:nth-child(5) { font-family: ui-monospace, monospace; }
#passes tbody tr:nth-child(odd) { background: rgba(255,255,255,.03); }
#passes tr.viol td { background: rgba(225,6,0,.10); }
.acc-viol { color: #e10600; }
.acc-tol { color: #ffaa00; }
.acc-ok { color: #3d4; }
#topbar { font-size: 14px; }
#topbar a { color: #4af; }
a { color: #4af; }
