@font-face {
  font-family: Archivo;
  src: url("./fonts/archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --navy: #102735;
  --navy-dark: #091922;
  --navy-soft: #1e3a49;
  --ivory: #f4f3ed;
  --paper: #fffef9;
  --ink: #142c3a;
  --muted: #586a70;
  --line: #d6dbd6;
  --amber: #efb544;
  --amber-dark: #77500c;
  --red: #a33029;
  --red-bg: #fff0ec;
  --white: #fff;
  --teal: #4c8a78;
  --shadow: 0 14px 50px #09192226;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font:
    14px/1.5 Archivo,
    "Helvetica Neue",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 10px 15px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 40px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
}
button:hover:not(:disabled) {
  filter: brightness(0.95);
}
:focus-visible {
  outline: 3px solid var(--amber-dark);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -1.3px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
}
p + p {
  margin-top: 10px;
}
small,
.small {
  font-size: 12px;
  line-height: 1.5;
}
small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  margin-bottom: 9px;
}
.primary {
  background: var(--amber);
  color: var(--navy-dark);
  border-color: var(--amber);
}
.secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.ghost {
  background: transparent;
  border-color: var(--navy-soft);
  color: var(--ivory);
}
.text-button {
  background: transparent;
  color: var(--ink);
  padding: 5px 8px;
  min-height: 36px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.danger,
.error {
  color: var(--red);
}
.amber {
  color: var(--amber);
}
.warning-text {
  color: var(--amber-dark);
}
.boot {
  display: grid;
  place-content: center;
  min-height: 100vh;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  background: var(--amber);
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  background: var(--navy);
  color: var(--ivory);
  padding: 34px 20px 24px;
  display: flex;
  flex-direction: column;
}
.wordmark {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-decoration: none;
  padding: 0 12px;
  line-height: 1.1;
}
.wordmark span {
  display: block;
  font-size: 8px;
  letter-spacing: 2.2px;
  margin-top: 8px;
  font-weight: 500;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a7b6ba;
  margin: 55px 12px 14px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 12px;
  text-decoration: none;
  border-left: 2px solid transparent;
  color: #c2ced0;
  font-size: 13px;
}
nav a span {
  font-size: 10px;
  color: #8ca0a9;
  font-variant-numeric: tabular-nums;
}
nav a:hover {
  background: var(--navy-soft);
}
nav a[aria-current] {
  color: var(--white);
  border-left-color: var(--amber);
  background: var(--navy-soft);
}
nav a[aria-current] span {
  color: var(--amber);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 12px 0;
  overflow-wrap: anywhere;
}
.sidebar-bottom > p {
  font-size: 11px;
  color: #b9c8ce;
  margin: 8px 0 16px;
}
.sidebar-bottom button {
  width: 100%;
  text-align: left;
  font-size: 12px;
}
.sidebar-bottom .small {
  font-size: 10px;
  color: #9aacb5;
  margin-top: 22px;
}
.account-role {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--amber);
}
.workspace {
  margin-left: 226px;
  padding: 0 36px;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.topbar .small {
  font-size: 9px;
  color: var(--muted);
}
.slash {
  padding: 0 15px;
  color: var(--muted);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px 0 28px;
}
.page-heading .eyebrow {
  color: var(--muted);
}
.page-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 30px;
  font-size: 10px;
  color: var(--muted);
  gap: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
}
.metrics article {
  position: relative;
  padding: 23px;
  border-right: 1px solid var(--line);
  min-height: 134px;
}
.metrics article:last-child {
  border: 0;
}
.metrics p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.metrics strong {
  font-size: 35px;
  line-height: 1;
  font-weight: 550;
  letter-spacing: -1.3px;
}
.metrics strong:not(:empty) {
  overflow-wrap: anywhere;
}
.metric-index {
  position: absolute;
  right: 15px;
  top: 17px;
  font-size: 9px;
  color: var(--muted);
}
.coverage-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0 22px;
  font-size: 11px;
  flex-wrap: wrap;
}
.coverage-strip > span:last-child {
  color: var(--muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
}
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 22px;
  min-width: 0;
}
.panel-heading {
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-heading .eyebrow {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 5px;
}
.stage-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--paper);
  align-items: center;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  background: var(--ivory);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.segmented button {
  font-size: 11px;
  min-height: 33px;
  padding: 8px 15px;
  background: transparent;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}
.camera-stage {
  aspect-ratio: 16/9;
  background: var(--navy-dark);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 160px;
}
.camera-stage ocr-live {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.camera-stage video {
  background: var(--navy-dark);
}
.camera-stage .empty {
  color: #b4c6ce;
}
.camera-stage .empty-symbol {
  color: #6a848f;
}
.stage-meta {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  gap: 12px;
}
.stage-explanation {
  font-size: 11px;
  color: var(--muted);
  padding: 13px 20px;
  background: var(--ivory);
}
.compact-label {
  font-size: 10px !important;
  color: var(--muted);
}
.compact-label select {
  font-size: 12px;
  min-width: 180px;
  margin-top: 4px;
}
.camera-stage.detection-stage {
  aspect-ratio: auto;
  max-height: none;
}
.snapshot-wrap {
  position: relative;
  width: 100%;
  display: block;
  line-height: 0;
}
.snapshot-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.overlay rect {
  fill: none;
  stroke: var(--amber);
  stroke-width: 0.35;
}
.overlay text {
  fill: var(--amber);
  font:
    2.2px Archivo,
    sans-serif;
  paint-order: stroke;
  stroke: var(--navy-dark);
  stroke-width: 0.6px;
}
.snapshot-meta {
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.section-intro p {
  max-width: 640px;
  color: var(--muted);
  font-size: 13px;
}
.section-intro button {
  flex-shrink: 0;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  max-width: 100%;
  line-height: 1.6;
}
.empty-symbol {
  display: block;
  font-size: 32px;
  margin-bottom: 14px;
  font-weight: 300;
  color: var(--muted);
}
.loading {
  padding: 55px 25px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 12px;
}
th {
  background: var(--ivory);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 13px 20px;
  white-space: nowrap;
  font-weight: 650;
}
td {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  min-width: 100px;
}
td strong {
  font-size: 13px;
}
td .plate {
  font-size: 17px;
  letter-spacing: 0.7px;
}
td button {
  font-size: 11px;
}
td small {
  font-size: 10px;
  overflow-wrap: anywhere;
}
tbody tr:hover {
  background: var(--ivory);
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--ivory);
  padding: 3px 7px;
  font-size: 10px;
  white-space: nowrap;
  border-radius: 2px;
  max-width: 100%;
}
.form-panel {
  padding: 28px;
}
.form-panel > p {
  margin: 10px 0 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
}
.form-grid > button {
  justify-self: start;
}
.settings-panel {
  max-width: 850px;
}
.settings-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.policy-note {
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  min-width: 0;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--paper);
  width: 100%;
  padding: 10px 11px;
  min-height: 41px;
  font-size: 13px;
  font-weight: 400;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--navy);
}
.check-label {
  flex-direction: row;
  align-items: center;
  margin: 18px 0;
}
.filter-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: end;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 20px;
}
.filter-bar label {
  flex: 1;
  min-width: 125px;
}
.filter-bar button {
  font-size: 11px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
}
.two-col .panel {
  margin: 0;
}
pre {
  font:
    11px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--ivory);
  padding: 15px;
  border: 1px solid var(--line);
}
.notice {
  padding: 14px 18px;
  margin-bottom: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  font-size: 12px;
}
.error-notice {
  border-left-color: var(--red);
  background: var(--red-bg);
  color: var(--red);
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-brand {
  background: var(--navy);
  color: var(--ivory);
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-brand .wordmark {
  padding: 0;
}
.login-brand h1 {
  font-size: clamp(40px, 4.2vw, 65px);
  font-weight: 550;
  letter-spacing: -2.4px;
  line-height: 1.08;
  margin: 22px 0;
}
.login-brand .eyebrow {
  color: var(--amber);
  font-size: 9px;
}
.login-copy {
  color: #b8c8ce;
  max-width: 350px;
  font-size: 14px;
  line-height: 1.8;
}
.login-brand > .small {
  font-size: 9px;
  letter-spacing: 1.4px;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-panel form {
  width: 100%;
  max-width: 350px;
}
.login-panel h2 {
  font-size: 29px;
  margin-bottom: 12px;
}
.login-panel .muted {
  margin-bottom: 28px;
}
.login-panel label {
  margin-bottom: 20px;
}
.login-panel button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.login-panel .error {
  font-size: 12px;
  margin-top: 16px;
}
.login-panel .small {
  font-size: 11px;
  margin: 25px 0 0;
}
.login-panel .eyebrow {
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  max-width: min(1050px, calc(100vw - 32px));
  width: 900px;
  max-height: 90vh;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #091922b8;
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.modal-body {
  padding: 24px 26px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 26px;
  background: var(--ivory);
  position: sticky;
  bottom: 0;
}
.modal-body > p {
  margin-bottom: 20px;
}
.modal-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 12px;
}
.calibration-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.calibration-stage {
  position: relative;
  background: var(--navy-dark);
  line-height: 0;
  min-height: 200px;
  display: grid;
  place-items: center;
}
.calibration-stage img {
  display: block;
  width: 100%;
}
.calibration-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.calibration-stage polygon {
  fill: #efb54420;
  stroke: var(--amber);
  stroke-width: 0.45;
}
.calibration-stage polyline {
  fill: none;
  stroke: var(--amber);
  stroke-width: 0.65;
}
.calibration-stage .line-b {
  stroke: #fff;
}
.calibration-stage text {
  fill: var(--amber);
  font: 3px Archivo;
  paint-order: stroke;
  stroke: var(--navy-dark);
  stroke-width: 0.7px;
}
.draw-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.draw-toolbar button {
  font-size: 10px;
  min-height: 35px;
  padding: 7px 10px;
}
.draw-toolbar [aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}
.coordinate-fields {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.coordinate-fields textarea {
  font:
    11px/1.5 ui-monospace,
    monospace;
  min-height: 55px;
}
.evidence {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  display: block;
  background: var(--navy-dark);
  margin-bottom: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.detail-grid dt {
  font-size: 10px;
  color: var(--muted);
}
.detail-grid dd {
  margin: 3px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (min-width: 1600px) {
  .workspace {
    padding: 0 55px;
  }
  .camera-stage {
    max-height: 660px;
    aspect-ratio: 16/9;
  }
  .snapshot-wrap {
    max-width: 1173px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 190px;
    padding: 0 24px;
  }
  .metrics article {
    padding: 20px 16px;
  }
  .metrics strong {
    font-size: 27px;
  }
  .panel-heading {
    padding: 18px;
  }
  .calibration-grid {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 40px;
  }
  .section-intro {
    align-items: start;
  }
  .topbar .small {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: auto;
    inset: auto;
    padding: 18px 16px 0;
    display: block;
  }
  .sidebar .wordmark {
    font-size: 23px;
    padding: 0;
  }
  .sidebar .wordmark span {
    font-size: 7px;
  }
  .nav-caption {
    display: none;
  }
  .sidebar-bottom {
    display: block;
    position: absolute;
    right: 16px;
    top: 17px;
    padding: 0;
    margin: 0;
  }
  .sidebar-bottom > p,
  .sidebar-bottom > .account-role {
    display: none;
  }
  .sidebar-bottom button {
    width: auto;
    padding: 7px 10px;
    font-size: 10px;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 22px;
    gap: 4px;
  }
  nav a {
    white-space: nowrap;
    padding: 12px 10px;
    font-size: 11px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  nav a span {
    display: none;
  }
  nav a[aria-current] {
    border-bottom-color: var(--amber);
    border-left: 0;
  }
  .workspace {
    margin: 0;
    padding: 0 16px;
  }
  .topbar {
    height: 42px;
    font-size: 9px;
  }
  .page-heading {
    padding: 24px 0 22px;
  }
  h1 {
    font-size: 30px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics article {
    min-height: 112px;
    border-bottom: 1px solid var(--line);
  }
  .metrics article:nth-child(2) {
    border-right: 0;
  }
  .metrics article:nth-child(3) {
    border-bottom: 0;
  }
  .metrics p {
    font-size: 11px;
  }
  .coverage-strip {
    font-size: 10px;
    gap: 8px;
  }
  .panel-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .compact-label {
    max-width: 100%;
  }
  .stage-toolbar {
    padding: 10px;
    gap: 10px;
  }
  .stage-toolbar button {
    font-size: 10px;
  }
  .stage-meta {
    font-size: 10px;
    padding: 10px 12px;
  }
  .stage-explanation {
    font-size: 10px;
    padding: 12px;
  }
  .section-intro {
    flex-direction: column;
    gap: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-panel {
    padding: 20px;
  }
  .filter-bar {
    padding: 15px;
    gap: 12px;
  }
  .filter-bar label {
    min-width: 120px;
  }
  .page-footer {
    flex-direction: column;
    gap: 4px;
  }
  th,
  td {
    padding: 12px 14px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: 0;
    padding: 30px;
    gap: 45px;
  }
  .login-brand h1 {
    font-size: 40px;
  }
  .login-brand > .small,
  .login-copy {
    display: none;
  }
  .login-panel {
    padding: 40px 26px;
  }
  .login-panel form {
    max-width: 420px;
  }
  dialog {
    max-width: calc(100vw - 16px);
    max-height: 95vh;
  }
  .modal-heading {
    padding: 16px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-actions {
    padding: 14px 18px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .snapshot-meta {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
