:root { color-scheme:light; font-family:Arial,Helvetica,sans-serif; color:#202a32; background:#fff; }
* { box-sizing:border-box; } body { margin:0; letter-spacing:0; font-family:Arial,Helvetica,sans-serif; font-size:14px; }
button,select { font:inherit; } button { cursor:pointer; } button:disabled { opacity:.5; cursor:wait; }
button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid #e52587; outline-offset:2px; }
[hidden] { display:none !important; }
.map-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 18px; background:#24272c; color:#fff; border-bottom:1px solid #51575e; }
.map-heading h1 { font-size:26px; font-weight:700; line-height:1.15; margin:4px 0 0; overflow-wrap:anywhere; }
.map-heading #map-case { color:#d8e2e6; font-size:12px; }
.map-status { border:1px solid #e52587; color:#ffb8d8; font-size:12px; font-weight:700; padding:5px 8px; flex-shrink:0; }
.map-status.is-old { color:#ffe0a7; border-color:#e0b34e; }
.map-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:9px 14px; border-bottom:1px solid #bccbd1; background:#f3f7f8; font-size:13px; }
.map-mode { display:flex; margin-right:8px; }
.map-mode button { border:1px solid #aebec4; padding:7px 12px; background:#fff; color:#344c57; }
.map-mode button[aria-pressed="true"] { color:#fff; background:#176875; border-color:#176875; }
.map-toolbar select { padding:7px 8px; border:1px solid #aebec4; max-width:150px; background:#fff; border-radius:3px; }
.map-tools { display:flex; gap:6px; margin-left:auto; }
.map-tools button { width:34px; height:34px; background:#fff; border:1px solid #aebec4; color:#176875; border-radius:3px; font-size:17px; }
.map-workspace { display:grid; grid-template-columns:minmax(0,1fr) 320px; min-height:560px; height:calc(100vh - 137px); }
.map-scene { position:relative; min-width:0; min-height:420px; background:#e5eef0; }
#tracker-map { position:absolute; inset:0; }
#map-loading { position:absolute; top:18px; left:18px; right:18px; padding:12px; background:#fff; border:1px solid #c2cfd3; font-size:14px; z-index:2; }
.map-legend { position:absolute; top:12px; left:12px; right:12px; display:flex; flex-wrap:wrap; align-items:center; gap:5px 9px; background:rgba(255,255,255,.96); border:1px solid #c1cdd1; padding:8px 10px; font-size:11px; pointer-events:none; }
.map-latest-dot { width:10px; height:10px; border-radius:50%; background:#e52587; border:2px solid #fff; box-shadow:0 0 0 1px #a61355; }
.map-route-line { width:18px; height:4px; } .map-route-latest { background:#e52587; } .map-route-previous { background:#007f8b; }
.map-details { padding:16px; overflow:auto; border-left:1px solid #b9cbd0; }
.map-details h2 { font-size:15px; font-weight:700; margin:0 0 10px; color:#176875; line-height:1.3; }
.map-person { display:flex; gap:12px; align-items:center; padding-bottom:16px; border-bottom:1px solid #d3dfe3; }
.map-person figure { margin:0; flex-shrink:0; width:72px; height:90px; background:#e9f0f2; border:1px solid #bfccd0; overflow:hidden; }
.map-person img { width:100%; height:100%; object-fit:contain; }
#map-photo-missing { height:100%; display:grid; place-items:center; color:#78959f; font-size:32px; }
.map-person > div { min-width:0; } .map-person h2 { color:#273740; font-size:20px; margin:4px 0; overflow-wrap:anywhere; }
.map-eyebrow { font-size:10px; font-weight:700; color:#7a8b92; }
#map-device-name,#map-device-state { display:block; font-size:12px; margin-top:4px; overflow-wrap:anywhere; }
.map-location-details,.map-profile-details,.map-routes { padding-top:18px; }
#map-address { font-size:14px; line-height:1.4; display:block; overflow-wrap:anywhere; }
.map-details dl { margin:10px 0 0; font-size:12px; }
.map-details dl > div { display:grid; grid-template-columns:95px minmax(0,1fr); gap:8px; padding:6px 0; border-bottom:1px solid #edf1f3; }
.map-details dt { font-weight:700; color:#5d707a; } .map-details dd { margin:0; overflow-wrap:anywhere; line-height:1.4; }
.map-details a { color:#a41355; }
#map-check,#map-route-method,.map-caution { font-size:11px; color:#647780; line-height:1.5; margin:10px 0 0; overflow-wrap:anywhere; }
.map-routes-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
#map-route-count { font-size:12px; color:#647780; }
.map-route-item { margin-bottom:10px; border:1px solid #bdced3; border-left:4px solid var(--route-color); padding:10px; border-radius:3px; background:#fbfdfe; }
.map-route-item label { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; }
.map-route-top { display:flex; align-items:center; gap:8px; } .map-route-top label { flex:1; }
.map-route-item input { accent-color:var(--route-color); width:15px; height:15px; margin:0; }
.map-route-item label span { flex:1; }
.map-route-item button { width:28px; height:28px; border:1px solid #bfccd0; border-radius:3px; color:#176875; background:#fff; }
.map-route-times { display:block; font-size:11px; color:#5a6e78; line-height:1.5; margin:7px 0; }
.map-route-stats { display:flex; gap:14px; font-size:12px; flex-wrap:wrap; }
.map-route-stats strong { display:block; font-size:17px; color:#273740; }
.map-route-category { font-size:11px; color:#647780; margin-top:7px; }
.map-caution { border-top:1px solid #d3dfe3; padding-top:12px; margin-top:16px; }
#map-error { padding:12px 18px; background:#fff3db; color:#674310; font-size:13px; }
.is-inline .map-heading { display:none; }
.is-inline .map-workspace { height:calc(100vh - 54px); min-height:0; }
.is-inline .map-scene { height:100%; min-height:0; }
.is-inline .map-details { padding:10px 12px; }
.is-inline .map-person { padding-bottom:10px; }
.is-inline .map-person figure { width:52px; height:65px; }
.map-point-bubble { color:#20323b; font:13px Arial,Helvetica,sans-serif; line-height:1.5; max-width:220px; }
.map-point-bubble strong,.map-point-bubble span { display:block; }
@media (max-width:850px) { .map-workspace { grid-template-columns:minmax(0,1fr) 270px; } .map-details { padding:12px; } }
@media (max-width:600px) { .map-heading h1 { font-size:22px; } .map-heading { align-items:flex-start; padding:12px; } .map-status { max-width:100px; overflow-wrap:anywhere; } .map-workspace { display:block; height:auto; min-height:0; } .map-scene { height:400px; min-height:360px; } .map-details { overflow:visible; border-left:0; border-top:1px solid #b9cbd0; padding:16px; } .map-toolbar { padding:8px; } .map-toolbar select { max-width:125px; } .map-tools { margin-left:0; } }
