:root{--maroon:#500000;--maroon2:#76172b;--ink:#211b1f;--muted:#776f76;--border:#e8e2e5;--bg:#faf8f7;--white:#fff;--peach:#f9eee9;--green:#238a68;--gold:#e1a34c;--red:#d35254;--blue:#37789f;--shadow:0 7px 35px rgba(60,25,30,.045)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}label{display:block;font-weight:680;font-size:12px;color:#61575e;margin:17px 0 6px}select,input[type="number"],input[type="text"],input[type="datetime-local"]{display:block;width:100%;padding:11px 12px;border:1px solid #dcd5d8;border-radius:9px;color:var(--ink);background:#fff;outline-color:#8a3649;min-width:0}input:focus,select:focus{border-color:#9f5060}.container{max-width:1570px;margin:auto;padding:26px 28px 10px}.topbar{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}.topbar-inner{max-width:1570px;margin:auto;display:flex;align-items:center;gap:40px;justify-content:space-between;padding:13px 28px}.brand{display:flex;align-items:center;gap:12px}.brandmark{width:40px;height:40px;background:var(--maroon);display:grid;place-items:center;border-radius:11px;color:#fff;font-weight:850;letter-spacing:-2px;font-size:23px}.brandmark span{color:#fbc0aa;font-size:13px;margin-top:-13px;margin-left:2px}.brandtype{display:flex;flex-direction:column}.brandtype strong{font-weight:850;letter-spacing:-.6px;font-size:22px;line-height:1.15}.brandtype small{color:var(--muted);font-weight:600;letter-spacing:.06em;text-transform:uppercase;font-size:9px}.topnav{display:flex;gap:25px;font-size:13px;color:#686068;font-weight:650}.topnav a:hover{color:var(--maroon)}.project-pill{background:#f6f1ef;border:1px solid #eae0db;border-radius:100px;padding:9px 13px;color:#68535b;font-size:11px;font-weight:750;white-space:nowrap}.dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#308c68;margin-right:6px}.hero{min-height:208px;background:linear-gradient(110deg,#490000 10%,#6b1325 74%,#7c203b);border-radius:17px;color:#fff;padding:30px 38px;display:flex;justify-content:space-between;align-items:center;gap:30px;box-shadow:0 15px 28px rgba(80,0,0,.09)}.hero-copy{max-width:760px}.eyebrow{text-transform:uppercase;letter-spacing:.135em;font-size:10px;font-weight:850;color:#ffbdbd;margin-bottom:8px}.eyebrow.dark{color:var(--maroon2)}h1{font-size:clamp(27px,2.75vw,43px);line-height:1.12;letter-spacing:-1.7px;font-weight:870;margin-bottom:9px}h1 em{font-style:normal;color:#ffd9a7}.hero-copy>p:not(.eyebrow){font-size:13px;max-width:650px;color:#efdde1;margin-bottom:16px}.hero-links{display:flex;align-items:center;gap:15px}.primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:9px;background:var(--maroon);color:#fff;font-weight:770;font-size:12px;min-height:41px;padding:10px 17px;transition:background .15s}.primary-btn:hover{background:#7c132b}.hero .primary-btn{background:#fff;color:#500000}.hero .primary-btn:hover{background:#fbeae4}.ghost-btn{font-size:12px;font-weight:750;color:#f9d9db}.hero-metrics{display:grid;grid-template-columns:1fr;gap:13px;min-width:185px}.hero-metrics div{border-left:2px solid #ad6771;padding-left:12px}.hero-metrics strong{font-size:23px;line-height:1;display:block}.hero-metrics span{font-size:10px;color:#ebc1ca;white-space:nowrap}.source-banner{margin:15px 0 17px;background:#fff9ec;border:1px solid #f0e3bc;border-radius:11px;display:flex;align-items:center;gap:11px;padding:12px 15px;font-size:11px;color:#65563a}.source-banner strong{color:#3b3226}.source-symbol{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;color:#806129;background:#f9e5b5;font-weight:850;flex:0 0 auto}.source-banner>span:nth-child(2){flex:1}.source-tag{background:#f3e4bd;padding:5px 8px;border-radius:6px;font-size:9px;letter-spacing:.07em;font-weight:850;white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(245px,292px) minmax(450px,1fr) minmax(230px,272px);gap:15px;align-items:stretch}.card{border:1px solid var(--border);background:#fff;border-radius:13px;box-shadow:var(--shadow)}.controls,.insights{padding:20px}.panel-heading{display:flex;align-items:start;gap:11px}.step{border-radius:8px;background:#f4e8e7;color:#7c253b;width:31px;height:30px;display:grid;place-items:center;font-weight:850;font-size:11px;flex-shrink:0}.panel-heading h2{font-size:16px;letter-spacing:-.45px;margin:0 0 1px}.panel-heading p{font-size:11px;line-height:1.45;color:var(--muted);margin:0}.full{width:100%;margin-top:18px}.context-note{margin-top:12px;padding:12px;background:#f9f4f2;border:1px solid #eee5e2;border-radius:9px;color:#665a5f;font-size:11px;line-height:1.5}.quick-legend{border-top:1px solid var(--border);margin-top:18px;padding-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px 5px;font-size:10px;color:#615e61}.quick-legend .subheading{grid-column:1/-1;margin:0 0 2px;color:#453840;font-size:11px;font-weight:770}.legend-dot{width:9px;height:9px;display:inline-block;border-radius:50%;margin-right:4px}.legend-dot.high{background:#d65e5b}.legend-dot.medium{background:#e0a44e}.legend-dot.clear{background:#55a885}.legend-dot.unknown{background:#9e9da5}.map-panel{padding:18px 20px 17px;min-width:0}.section-top{display:flex;gap:10px;justify-content:space-between;align-items:start}.section-top h2{font-size:20px;letter-spacing:-.7px;margin-bottom:3px}.section-top p:last-child{font-size:11px;color:var(--muted);margin-bottom:0}.map-key{display:flex;gap:13px;font-size:10px;color:var(--muted);padding-top:23px;white-space:nowrap}.line-key{width:22px;display:inline-block;vertical-align:middle;border-top:3px solid;margin-right:5px}.line-key.quickest{border-color:var(--blue);border-top-style:dashed}.line-key.quieter{border-color:var(--green)}.map-scroll{overflow-x:auto;background:#fefcfb;border:1px solid #eee8e5;border-radius:10px;margin-top:14px}.map-scroll svg{display:block;width:100%;min-width:580px;aspect-ratio:1200/590}.map-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 2px 11px}.map-bottom span{font-size:10px;color:var(--muted)}.text-button{border:0;background:none;padding:4px;font-size:11px;color:#7d2840;font-weight:720;white-space:nowrap}.text-button:hover{text-decoration:underline}.route-results{display:grid;grid-template-columns:1fr 1fr;gap:10px}.route-card{background:#fcfbfa;border:1px solid var(--border);border-radius:10px;padding:12px 13px;min-width:0}.route-card.emphasis{background:#f4faf7;border-color:#dcefe5}.route-kicker{font-size:10px;color:#6a5e65;font-weight:800;text-transform:uppercase;letter-spacing:.055em;display:flex;gap:6px;align-items:center}.route-icon{height:8px;width:8px;border-radius:50%;background:#37789f;display:inline-block}.route-icon.calmer{background:#238a68}.route-card strong{font-size:19px;line-height:1.25;display:block;margin-top:7px}.route-card p{font-size:11px;color:var(--muted);margin:6px 0}.route-card small{display:block;font-size:10px;color:#574b52;word-wrap:break-word}.event-list{margin-top:15px;max-height:600px;overflow:auto;padding-right:5px}.event-button{width:100%;background:transparent;border:1px solid transparent;text-align:left;border-radius:9px;display:flex;align-items:flex-start;gap:10px;padding:9px 8px;margin-bottom:3px}.event-button:hover{background:#f7f2f1}.event-button.active{background:#fbefec;border-color:#f0d9d6}.event-button .when{font-size:10px;color:var(--maroon);font-weight:850;width:55px;flex-shrink:0;padding-top:1px}.event-button strong{font-size:11px;display:block;line-height:1.25}.event-button small{font-size:9px;color:var(--muted)}.event-day{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#8b8186;font-weight:850;padding:8px 7px 5px;border-bottom:1px solid #eee8e8;margin-bottom:7px}.insight-note{border-top:1px solid var(--border);padding-top:13px;margin-top:12px;font-size:11px;color:#6d6469}.insight-note strong{color:#4e3a42}.insight-note p{margin:5px 0 0}.data-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:15px;margin-top:15px}.data-entry,.coverage{padding:21px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.form-footer span{font-size:11px;color:var(--muted)}.save-status{font-size:11px;color:#287652;margin-top:8px;min-height:1em}.coverage-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.coverage-stats>div{background:#f7f4f4;padding:12px;border-radius:9px}.coverage-stats strong{font-size:24px;font-weight:850;display:block;color:#4f1020}.coverage-stats span{font-size:10px;color:var(--muted)}.button-row{display:flex;gap:8px}.button-row>*{flex:1}.secondary-btn{cursor:pointer;border:1px solid #d8c6c9;border-radius:8px;background:#fff;color:#683346;font-size:11px;padding:10px 12px;font-weight:800;text-align:center}.secondary-btn:hover{background:#fbf4f3}.upload-btn input{display:none}.fineprint{font-size:10px;color:#83777e;margin:10px 0}.data-list{margin-top:9px;max-height:140px;overflow:auto;border-top:1px solid var(--border);font-size:11px}.data-list .reading{border-bottom:1px solid #f0e9ed;padding:8px 1px;display:flex;justify-content:space-between;gap:10px}.empty-state{font-size:11px;color:#897e85;padding-top:15px}.danger{color:#a24848;margin-top:8px}.method-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:27px;padding:26px 4px 24px;border-top:1px solid var(--border)}.method-grid h2{font-size:26px;letter-spacing:-.8px;margin-bottom:8px}.method-grid p{font-size:12px;line-height:1.7;color:var(--muted);max-width:600px}.method-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.method-steps>div{border-left:2px solid #ead8d5;padding:2px 12px}.method-steps span{font-size:11px;color:#aa4a5f;font-weight:850}.method-steps p{font-size:11px;margin-top:7px}.method-steps strong{color:#493f44}footer{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding:16px 0 30px;color:#8b8086;font-size:10px}footer strong{font-size:15px;color:var(--maroon)}
/* map SVG */.hall-background{fill:#fff;stroke:#d3c8c8;stroke-width:3}.hall-table{fill:#f7f2f1;stroke:#cfc2c4;stroke-width:2}.table-title{font-size:13px;fill:#79686c;font-weight:780;text-anchor:middle}.table-sub{font-size:10px;fill:#a19399;text-anchor:middle}.hall-tag{font-size:11px;fill:#756c72;text-anchor:middle;font-weight:740}.hall-target{fill:#f7e5de;stroke:#dfc0b7;stroke-width:1.5}.exit-line{fill:none;stroke:#500000;stroke-width:3.5}.exit-text{font-size:11px;font-weight:850;fill:#621b2b;text-anchor:middle}.zone-circle{stroke:#fff;stroke-width:3;cursor:pointer;transition:stroke-width .15s}.zone-circle:focus{stroke:#500000;stroke-width:5}.zone-label{font-size:17px;fill:#fff;text-anchor:middle;font-weight:850;dominant-baseline:central;pointer-events:none}.zone-circle-wrap:hover .zone-circle{stroke:#411a25;stroke-width:4}.route-line{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.route-line.shortest{stroke:#37789f;stroke-width:10;stroke-dasharray:15 11;opacity:.68}.route-line.calmer{stroke:#238a68;stroke-width:6;opacity:.9}.destination-pin{fill:#500000;stroke:white;stroke-width:3}.destination-label{font-size:10px;fill:#500000;font-weight:850}
@media(max-width:1280px){.topbar-inner{gap:15px}.workspace{grid-template-columns:260px minmax(0,1fr)}.insights{grid-column:1/-1}.event-list{display:flex;max-height:none;overflow-x:auto;gap:5px}.event-list>.event-day{display:none}.event-button{flex:0 0 175px}.data-grid{grid-template-columns:1fr 1fr}.hero-metrics{min-width:155px}}@media(max-width:880px){.container{padding:15px}.topbar-inner{padding:12px 15px}.topnav{display:none}.hero{padding:23px;flex-direction:column;align-items:stretch}.hero-metrics{display:flex;gap:20px}.hero-metrics div{flex:1}.workspace,.data-grid,.method-grid{grid-template-columns:1fr}.controls{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.controls>.panel-heading,.controls>.full,.controls>.context-note,.controls>.quick-legend{grid-column:1/-1}.map-scroll svg{min-width:590px}.form-grid{grid-template-columns:repeat(2,1fr)}.method-steps{grid-template-columns:1fr 1fr 1fr}}@media(max-width:520px){.hero h1{font-size:30px}.project-pill{display:none}.hero-metrics{gap:8px}.hero-metrics strong{font-size:20px}.hero-metrics span{font-size:9px;white-space:normal}.source-tag{display:none}.controls{display:block}.map-panel{padding:13px}.map-key{display:none}.form-grid,.method-steps{grid-template-columns:1fr}.form-footer{align-items:stretch;flex-direction:column}.route-results{grid-template-columns:1fr}}
/* Prevent flex timeline and scrollable SVG from setting the intrinsic page width on narrow screens. */
.workspace > *, .data-grid > *, .controls, .insights, .map-panel, .map-scroll, .event-list { min-width: 0; }
@media(max-width:880px){.workspace,.data-grid,.method-grid{grid-template-columns:minmax(0,1fr)}.event-list{width:100%;max-width:100%;}.map-scroll{width:100%;max-width:100%;}}

/* Time-aware defaults: keep manual replay discoverable without implying live foot-traffic sensors. */
.live-clock{margin:16px 0 6px;padding:12px 11px;display:flex;align-items:center;gap:9px;background:#f2faf6;border:1px solid #cee6d8;border-radius:10px;color:#265e49}
.live-clock-dot{height:10px;width:10px;border-radius:50%;background:#2f9e70;box-shadow:0 0 0 4px #d8f0e3;flex-shrink:0}
.live-clock strong{font-size:13px;display:block;line-height:1.25}
.live-clock small{font-size:10px;display:block;color:#426c58;line-height:1.4;margin-top:3px}
.live-clock.outside-coverage{background:#fff8e9;border-color:#eddaaa;color:#72551e}
.live-clock.outside-coverage .live-clock-dot{background:#ba8731;box-shadow:0 0 0 4px #faebc4}
.live-clock.outside-coverage small{color:#8d702f}
.time-mode-note{font-size:10px;color:#776f76;line-height:1.5;margin:5px 0 3px}
select:disabled{background:#f5f2f2;color:#6f6870;opacity:1;cursor:not-allowed}
.observation-time-col{min-width:0}
.toggle-label{font-weight:600;font-size:11px;display:flex;align-items:center;gap:7px;margin:7px 0;cursor:pointer}
.toggle-label input{width:15px;height:15px;accent-color:#500000}
#manualObsField[hidden]{display:none}
#manualObsField label{margin:8px 0 5px}

.dataset-link{color:#68112b;font-weight:750;text-decoration:underline;text-underline-offset:3px}.dataset-link:hover{color:#a12d4d}
