:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  color: #152f36;
  background: #f6f8f4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 48rem; margin: auto; padding: max(18px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
header, form, .hero, .actions, nav { display: flex; align-items: center; gap: .65rem; }
header { margin-bottom: 1.2rem; }
header img { border-radius: 12px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5rem; letter-spacing: -.045em; }
h2 { font-size: 1.05rem; line-height: 1.35; }
h3 { font-size: 1rem; }
input, button { font: inherit; min-height: 44px; border-radius: 12px; }
input { border: 1px solid #b6c6c0; padding: .45rem .65rem; color: inherit; background: white; }
input[type=search] { flex: 1; min-width: 0; }
button { border: 1px solid #c3d1cb; background: #e9f0eb; color: #152f36; padding: .4rem .8rem; cursor: pointer; }
button[type=submit], nav button[aria-pressed=true] { background: #152f36; color: #e0f3d2; border-color: #152f36; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #537e44; outline-offset: 3px; }
#search-status, #live-status, #history-status { color: #435953; font-size: .9rem; }
p:not(:empty) { margin-block: .5rem; }
#routes { display: grid; gap: .35rem; max-height: 18rem; overflow: auto; margin-bottom: .65rem; }
#routes button { text-align: start; }
.hero { color: #f5f8f1; background: linear-gradient(120deg, #152f36, #296657); border-radius: 20px; padding: 1rem; align-items: flex-start; }
.hero strong { color: #bff476; font-size: 2rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hero p { color: #d6e9dc; font-size: .85rem; margin-bottom: 0; }
nav { margin: .75rem 0; }
nav button { flex: 1; }
.panel { background: #fff; border-radius: 18px; padding: 1rem; box-shadow: 0 4px 20px #152f3610; }
.actions { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
#vehicle-tools { margin-top: .65rem; justify-content: flex-start; }
ul { list-style: none; padding: 0; margin: 0; }
li { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; border-top: 1px solid #e1eae3; padding: .5rem .15rem; }
li strong, li small { display: block; }
li small { color: #435953; overflow-wrap: anywhere; }
li time { font-weight: 650; font-variant-numeric: tabular-nums; }
li button { font-size: .85rem; }
#chart { overflow-x: auto; }
#chart canvas { display: block; }
footer { margin-top: 1rem; font-size: .8rem; color: #435953; }
