:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111416;
  color: #eef3f4;
}

* {
  box-sizing: border-box;
}

html,
body,
.layout,
#map {
  width: 100%;
  height: 100%;
  margin: 0;
}

.layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px);
}

#map {
  background: #1f2428;
}

.nav-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: #15191c;
  border-left: 1px solid #2b3338;
}

.status-row,
.metrics,
.maneuver,
.job {
  border: 1px solid #2b3338;
  border-radius: 8px;
  background: #1c2226;
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.status {
  font-weight: 800;
  text-transform: uppercase;
}

.online {
  color: #67d18c;
}

.offline {
  color: #ef7b72;
}

.maneuver {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  min-height: 150px;
  padding: 16px;
}

.turn-arrow {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0c84b;
  color: #151515;
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
}

.turn-text {
  font-size: 28px;
  font-weight: 800;
}

.turn-distance {
  margin-top: 8px;
  font-size: 42px;
  font-weight: 900;
  color: #f0c84b;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.metrics div,
.job {
  padding: 14px;
}

.metrics div:nth-child(odd) {
  border-right: 1px solid #2b3338;
}

.metrics div:nth-child(-n+2) {
  border-bottom: 1px solid #2b3338;
}

span {
  display: block;
  color: #9aa5ad;
  font-size: 13px;
}

strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.job strong {
  font-size: 18px;
  line-height: 1.35;
}

.truck-icon {
  background: transparent;
}

.truck-pointer {
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 34px solid #49c2ff;
  filter: drop-shadow(0 2px 4px #000);
  transform-origin: 17px 22px;
}

.admin-page {
  min-height: 100%;
  margin: 0;
  background: #15191c;
}

.admin-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 20px;
}

.admin-shell h1 {
  margin: 0 0 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-grid article,
.admin-note {
  border: 1px solid #2b3338;
  border-radius: 8px;
  background: #1c2226;
  padding: 16px;
}

.admin-note {
  margin-top: 16px;
}

code {
  color: #f0c84b;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .nav-panel {
    border-left: 0;
    border-top: 1px solid #2b3338;
    max-height: 46vh;
    overflow: auto;
  }

  .maneuver {
    grid-template-columns: 82px 1fr;
    min-height: 112px;
  }

  .turn-arrow {
    width: 70px;
    height: 70px;
    font-size: 54px;
  }

  .turn-text {
    font-size: 22px;
  }

  .turn-distance {
    font-size: 32px;
  }

  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}
