:root { color-scheme: light; --ink: #172a26; --green: #245c43; --muted: #64746d; --line: #dce5df; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f1f4ef; color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
.topbar { padding: 1.1rem max(1.25rem, calc((100% - 1320px)/2)); background: #172c25; color: #d6e5dc; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.brand { color: #fff; text-decoration: none; font-weight: 850; letter-spacing: .12em; white-space: nowrap; }
.brand span { color: #a9d375; margin-left: .3rem; font-weight: 400; }
main { max-width: 1360px; margin: auto; padding: 2rem 1.25rem; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; letter-spacing: -.04em; margin-bottom: 1rem; }
h2 { font-size: 1.25rem; line-height: 1.4; margin-bottom: .65rem; }
section { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.eyebrow { color: var(--green); font-size: .72rem; font-weight: 750; letter-spacing: .14em; margin-bottom: .75rem; }
.login-panel { max-width: 660px; margin: 7vh auto; padding: clamp(1.5rem, 5vw, 3rem); box-shadow: 0 15px 65px #1932250c; }
label { display: block; font-size: .85rem; font-weight: 650; margin: 1rem 0 .4rem; }
input, select, button { font: inherit; border-radius: 8px; padding: .7rem .85rem; }
input, select { background: #fff; color: var(--ink); border: 1px solid #bdcbc1; width: 100%; min-width: 0; }
button { cursor: pointer; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 600; }
button:disabled { opacity: .6; cursor: wait; }
button:hover { filter: brightness(.92); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #91bf61; outline-offset: 3px; }
.secondary { background: #fff; color: var(--green); border-color: var(--line); }
.login-fields, .page-heading, .vehicle-heading, .section-heading, .map-controls { display: flex; align-items: center; gap: .75rem; }
.login-fields button { white-space: nowrap; }
.page-heading, .vehicle-heading, .section-heading { justify-content: space-between; }
.page-heading { margin: .5rem 0 1.5rem; }
.page-heading h1 { margin-bottom: 0; }
.vehicle-panel { margin-bottom: 1.3rem; }
.vehicle-heading { flex-wrap: wrap; margin-bottom: 1rem; }
.vehicle-heading p { color: var(--muted); margin: 0; max-width: 780px; white-space: pre-line; }
.plate { display: inline-block; font-size: 1.2rem; white-space: nowrap; border: 2px solid #d1d8d1; border-left: 9px solid #1b4e92; padding: .25rem .75rem; border-radius: 5px; letter-spacing: .06em; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photos img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #edf0e9; border-radius: 10px; }
.tracking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 1.3rem; }
aside { display: grid; gap: 1.3rem; }
.map-panel { min-width: 0; }
.map-controls { flex-wrap: wrap; margin: 1rem 0; }
#map { width: 100%; height: auto; background: #e8eee8; border-radius: 10px; }
.badge { border-radius: 30px; background: #e6efdf; color: #35582b; padding: .3rem .6rem; font-size: .75rem; text-align: center; }
.badge.stale { background: #fff0d6; color: #845313; }
.muted, #updated, #address-time, #map-status, #map-attribution, #history-status { color: var(--muted); font-size: .82rem; }
#position { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#address { font-size: 1.15rem; overflow-wrap: anywhere; }
.map-consent { display: flex; gap: .6rem; align-items: center; }
.map-consent input { width: auto; }
.osm-attribution { font-size: .75rem; margin-bottom: .5rem; }
a { color: var(--green); }
#login-status, #update-status, #photo-status { color: #9c3e28; }
@media (max-width: 980px) { .tracking-layout { grid-template-columns: 1fr; } aside { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { main { padding: 1.25rem .8rem; } .topbar > span { display: none; } .photos, aside { grid-template-columns: 1fr; } .login-fields { align-items: stretch; flex-direction: column; } .page-heading { align-items: flex-start; } section { padding: 1rem; } }
