:root {
  font-family: Inter, system-ui, sans-serif;
  color: #173044;
  background: #f2f6f8;
  font-size: 14px;
}
html[data-mode="monitor"] #access form {
  display: grid;
  gap: 16px;
}
html[data-mode="monitor"] #access {
  max-width: 520px;
}
html[data-mode="monitor"] #account-email {
  margin-left: auto;
  font-size: 12px;
  overflow-wrap: anywhere;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  background: #102f3b;
  color: white;
}
a {
  color: inherit;
}
header > a:nth-child(2) {
  margin-left: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
}
.brand span {
  font-size: 17px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #8de0d0;
}
button,
input,
select {
  font: inherit;
  border-radius: 8px;
  border: 1px solid #cbd9df;
  padding: 10px 12px;
}
button {
  cursor: pointer;
  background: #087e78;
  color: white;
  border-color: transparent;
  font-weight: 600;
}
button:hover {
  background: #096963;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #e5ad31;
  outline-offset: 3px;
}
label {
  display: grid;
  gap: 6px;
  color: #415e6f;
}
input,
select {
  width: 100%;
  background: white;
  color: #173044;
}
h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 8px 0;
}
h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  line-height: 1.55;
  margin: 8px 0;
}
.card {
  background: white;
  border: 1px solid #dce6eb;
  border-radius: 14px;
  padding: 20px;
}
.muted,
.map-note {
  color: #657d8c;
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #087e78;
  font-weight: 800;
}
#message {
  padding: 12px 28px;
  background: #e5f2f2;
  color: #245960;
}
#access {
  max-width: 680px;
  margin: 54px auto;
}
#access form {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 24px 0;
}
#access label {
  flex: 1;
}
main {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  max-width: 1700px;
  margin: auto;
  padding: 24px;
}
.fleet {
  align-self: start;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.fleet .heading {
  align-items: start;
}
.fleet .heading button {
  font-size: 11px;
  padding: 7px;
}
#count {
  color: #087e78;
}
#vehicles {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  max-height: 65vh;
  overflow: auto;
}
.vehicle {
  background: #f4f8fa;
  color: #173044;
  text-align: left;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.vehicle:hover,
.vehicle.selected {
  background: #dcf3ed;
  border-color: #087e78;
}
.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}
#position {
  font-size: 12px;
  color: #486574;
}
#map {
  height: 410px;
  border: 1px solid #dce6eb;
  border-radius: 14px;
  z-index: 0;
}
.map-note {
  margin: 8px 4px 20px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.tabs button {
  background: white;
  color: #47616f;
  border-color: #dce6eb;
}
.tabs button[aria-expanded="true"] {
  background: #087e78;
  color: white;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
video {
  display: block;
  width: 100%;
  max-height: 460px;
  min-height: 180px;
  background: #10232e;
  border-radius: 10px;
  margin-top: 12px;
}
#history {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 20px 0;
}
.table-wrap {
  overflow: auto;
  max-height: 260px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
td,
th {
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid #e2e9ed;
}
.leaflet-container {
  font: inherit;
}
.route-point {
  border: 0;
  background: transparent;
}
.route-point span {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #087e78;
  border: 3px solid white;
  color: white;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 1px 6px #345;
}
#expiry {
  font-size: 12px;
  color: #657d8c;
}
@media (max-width: 800px) {
  header {
    padding: 12px 16px;
    gap: 12px;
    height: auto;
    flex-wrap: wrap;
  }
  header > a:nth-child(2) {
    font-size: 12px;
  }
  main {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .fleet {
    padding: 14px;
  }
  #vehicles {
    display: flex;
    max-height: 150px;
    flex-wrap: wrap;
  }
  .vehicle {
    flex: 1 1 130px;
  }
  #map {
    height: 330px;
  }
  .summary {
    padding: 14px;
    align-items: start;
  }
  .summary h1 {
    font-size: 19px;
  }
  .summary button {
    font-size: 11px;
  }
  #access {
    margin: 24px 14px;
  }
  #access form {
    display: grid;
  }
  #message {
    padding: 12px 16px;
  }
  .heading {
    flex-wrap: wrap;
  }
  #history label {
    width: 100%;
  }
}
