:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  background: #07111e;
  color: #eef6ff;
  --ink: #eef6ff;
  --muted: #9db0c3;
  --line: #26384b;
  --blue: #4d9cff;
  --fire: #ff704d;
  --paper: #0d1928;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 75% 0, #112740 0, #07111e 34rem); }
button { font: inherit; }
button:focus-visible { outline: 3px solid #2f70e9; outline-offset: 3px; }

.preview-ribbon {
  padding: .6rem 1rem;
  background: #172a3f;
  color: #f8fbff;
  text-align: center;
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.site-header {
  min-height: 4.7rem;
  padding: .8rem clamp(1rem, 3vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 25, 40, .94);
}

.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  background: linear-gradient(145deg, #317de8, #2156b1);
  color: #fff;
  font-weight: 850;
  font-size: .84rem;
  letter-spacing: -.05em;
}
.brand-name { font-size: 1.14rem; font-weight: 560; letter-spacing: -.035em; }
.brand-name strong { color: var(--blue); font-weight: 800; }
.header-note { color: var(--muted); font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.supporter-link { min-height: 2.35rem; display: inline-flex; align-items: center; padding: .45rem .78rem; border: 1px solid #467ab4; border-radius: .65rem; color: #dcebff; background: #18375a; font-size: .84rem; font-weight: 800; text-decoration: none; }
.supporter-link:hover { background: #214b79; border-color: #74b1f4; }
.account-link { color: #c3d3e3; font-size: .84rem; font-weight: 750; text-decoration: none; }
.account-link:hover { color: #fff; }

.main-content { max-width: 1510px; margin: 0 auto; padding: 2.2rem clamp(1rem, 3vw, 2.75rem) 2rem; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.55rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--blue); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2rem, 4.3vw, 3.35rem); line-height: 1.08; letter-spacing: -.065em; }
.intro-copy { max-width: 42rem; margin: .7rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.date-card { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #111f30; font-size: .95rem; font-weight: 700; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.date-icon { color: var(--blue); font-size: 1.2rem; line-height: 1; }

.dashboard { display: grid; grid-template-columns: minmax(340px, .83fr) minmax(0, 1.17fr); align-items: start; gap: 1rem; }
.feed-panel, .map-panel { min-width: 0; background: rgba(13,25,40,.97); border: 1px solid var(--line); border-radius: 1.15rem; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.feed-panel { padding: 1.35rem; }
.feed-topline, .map-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
h2 { margin: 0; font-size: 1.42rem; line-height: 1.2; letter-spacing: -.045em; }
.count-badge { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .4rem; margin-left: .3rem; border-radius: .55rem; color: #a9d0ff; background: #17365f; font-size: .93rem; vertical-align: middle; letter-spacing: 0; }
.updated-at { margin: 0; color: var(--muted); font-size: .78rem; text-align: right; }
.filters { display: flex; gap: .4rem; padding: .3rem; margin: 1.35rem 0 1rem; border: 1px solid #26384b; border-radius: .8rem; background: #091421; }
.filter { flex: 1; min-height: 2.55rem; padding: .5rem .65rem; border: 0; border-radius: .55rem; background: transparent; color: #9db0c3; cursor: pointer; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.filter:hover { color: var(--ink); }
.filter.active { background: #172b43; color: #83baff; box-shadow: 0 2px 9px rgba(0,0,0,.25); }
.coverage-note { margin: 0 0 1rem; padding: .8rem .9rem; border-radius: .65rem; background: #101f30; color: #b0c2d4; font-size: .83rem; line-height: 1.45; }
.feed-message { padding: 1rem; border-radius: .8rem; background: #101f30; color: var(--muted); line-height: 1.5; }
.incident-list { display: grid; gap: .68rem; max-height: min(67vh, 750px); overflow: auto; padding: .05rem .15rem .12rem 0; }
.incident-card { width: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #111f30; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.incident-card:hover, .incident-card.selected { border-color: #97b7ee; box-shadow: 0 5px 20px rgba(28,79,133,.1); transform: translateY(-1px); }
.locked-call-gate { position: relative; min-height: 15.5rem; overflow: hidden; border: 1px solid #3b6088; border-radius: .9rem; background: #0d1a29; }
.locked-call-preview { display: grid; gap: .55rem; padding: .75rem; opacity: .58; filter: blur(5px); transform: scale(1.02); }
.locked-call-row { display: grid; gap: .48rem; padding: .8rem; border: 1px solid #30465d; border-radius: .7rem; background: #142438; }
.locked-line { display: block; height: .62rem; border-radius: 999px; background: #73879b; }
.locked-line.short { width: 30%; }
.locked-line.medium { width: 58%; }
.locked-line.long { width: 82%; }
.locked-call-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.2rem; background: linear-gradient(rgba(7,17,30,.3), rgba(7,17,30,.94) 48%); text-align: center; }
.locked-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .45rem; border: 1px solid #557ca5; border-radius: 50%; background: #18324f; }
.locked-call-content h3 { margin: 0; font-size: 1.05rem; }
.locked-call-content p { max-width: 22rem; margin: .45rem 0 .8rem; color: #aebfd0; font-size: .84rem; line-height: 1.45; }
.locked-call-link { min-height: 2.55rem; display: inline-flex; align-items: center; justify-content: center; padding: .55rem .82rem; border: 1px solid #6ea8e7; border-radius: .62rem; color: #fff; background: #286caf; font-size: .82rem; font-weight: 850; text-decoration: none; }
.locked-call-link:hover { background: #3484d1; }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .65rem; }
.service-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .31rem .56rem; border-radius: .45rem; background: #17365f; color: #9ecaff; font-size: .74rem; font-weight: 800; letter-spacing: .01em; }
.service-tag.fire { background: #49251e; color: #ffb19b; }
.card-time { color: var(--muted); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.card-title { display: block; font-size: 1.06rem; line-height: 1.33; font-weight: 750; letter-spacing: -.025em; }
.card-summary { display: -webkit-box; margin: .48rem 0 .72rem; overflow: hidden; color: #b0c1d1; font-size: .9rem; line-height: 1.42; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-location { display: flex; align-items: center; gap: .38rem; color: #b7cce0; font-size: .82rem; font-weight: 650; }
.card-location::before { content: "⌖"; color: var(--blue); font-size: 1.1rem; line-height: .8; }
.card-location.unmapped { color: #d7ba82; }
.card-location.unmapped::before { color: #e3ad4d; }

.map-panel { padding: 1.35rem 1.35rem .85rem; position: sticky; top: 1rem; }
.map-heading { padding-bottom: .8rem; }
.map-actions { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; }
.map-view-buttons { display: flex; align-items: center; gap: .4rem; }
.map-view-button { min-height: 2.35rem; padding: .45rem .72rem; border: 1px solid #35506b; border-radius: .65rem; background: #15283d; color: #dcecff; cursor: pointer; font-size: .82rem; font-weight: 750; }
.map-view-button:hover { border-color: #5796dc; background: #1a3451; }
.map-view-button.active { border-color: #76b6ff; background: #245a92; color: #fff; box-shadow: 0 0 0 1px rgba(118,182,255,.25); }
.map-view-button:disabled { cursor: wait; opacity: .65; }
.location-status { min-height: 1.15rem; margin: 0 0 .45rem; color: var(--muted); font-size: .75rem; text-align: right; }
.area-fallback { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; margin: -.05rem 0 .65rem; color: #c2d1df; font-size: .82rem; }
.area-fallback[hidden] { display: none; }
.area-fallback select { min-height: 2.2rem; max-width: 12rem; padding: .35rem 2rem .35rem .6rem; border: 1px solid #42617f; border-radius: .55rem; background: #15283d; color: #eef6ff; font: inherit; }
.map { width: 100%; height: min(67vh, 680px); min-height: 350px; overflow: hidden; border: 1px solid #26384b; border-radius: .85rem; background: #101a25; z-index: 0; }
.map-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; min-height: 2.55rem; padding-top: .6rem; color: #a8bacb; font-size: .78rem; font-weight: 650; }
.map-footer > span { display: inline-flex; align-items: center; gap: .4rem; }
.legend-icon { width: 1.35rem; font-style: normal; font-size: 1rem; text-align: center; }
.legend-dot { width: .65rem; height: .65rem; border-radius: 50%; }
.police-dot { background: var(--blue); }
.fire-dot { background: var(--fire); }
.map-footer .map-note { margin-left: auto; font-weight: 450; }
.leaflet-container { font: inherit; background: #dbe3ea; }
.leaflet-tile-pane { filter: brightness(.97) contrast(1.04) saturate(.86); }
.map-marker { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #f7fbff; border-radius: 50%; background: rgba(255,255,255,.96); font-size: 17px; line-height: 1; box-shadow: 0 0 0 3px rgba(7,17,30,.7), 0 5px 14px rgba(0,0,0,.42); }
.map-marker.police { box-shadow: 0 0 0 3px #2575d1, 0 5px 14px rgba(0,0,0,.42); }
.map-marker.fire { box-shadow: 0 0 0 3px #d95032, 0 5px 14px rgba(0,0,0,.42); }
.map-call-cluster { display: grid; place-items: center; border-radius: 50%; background: rgba(18,47,77,.32); }
.map-cluster-count { display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #245f9b, #163c65); color: #fff; font-size: .92rem; font-weight: 850; box-shadow: 0 0 0 3px rgba(18,74,126,.45), 0 5px 16px rgba(0,0,0,.38); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #132235; color: #eef6ff; }
.leaflet-popup-content { margin: .7rem .9rem; font-size: .86rem; font-weight: 700; }
.leaflet-popup-content button { margin-top: .55rem; border: 0; padding: .4rem 0; color: var(--blue); background: transparent; cursor: pointer; font-weight: 800; }

.membership { margin-top: 1.15rem; padding: clamp(1.2rem, 2.5vw, 2rem); display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; border: 1px solid #2a4765; border-radius: 1.15rem; background: linear-gradient(135deg, #0e1e31 0%, #101b2a 62%, #172744 100%); box-shadow: 0 18px 50px rgba(0,0,0,.22); scroll-margin-top: 1rem; }
.membership-intro h2 { max-width: 34rem; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.12; }
.membership-intro > p:not(.eyebrow) { max-width: 34rem; margin: .8rem 0 1rem; color: #b4c5d6; line-height: 1.55; }
.beta-pill { display: inline-flex; padding: .38rem .62rem; border: 1px solid #3d5b78; border-radius: 999px; color: #bcd5ee; background: rgba(17,39,62,.8); font-size: .75rem; font-weight: 750; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.plan-card { min-width: 0; padding: 1.15rem; border: 1px solid #2a425b; border-radius: .95rem; background: rgba(8,20,33,.72); }
.supporter-plan { border-color: #4a7eb6; background: linear-gradient(160deg, rgba(20,55,91,.9), rgba(10,24,40,.94)); box-shadow: 0 10px 30px rgba(13,64,115,.18); }
.plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.plan-label { margin: 0 0 .28rem; color: #8fc3ff; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.plan-card h3 { margin: 0; font-size: 1.12rem; letter-spacing: -.03em; }
.plan-price { color: #ddebfa; font-size: 1.03rem; font-weight: 800; white-space: nowrap; }
.plan-price strong { font-size: 1.2rem; }
.plan-price small { display: block; color: #8fa5ba; font-size: .7rem; font-weight: 650; text-align: right; }
.plan-card ul { margin: 1rem 0 1.05rem; padding: 0; display: grid; gap: .68rem; list-style: none; color: #b7c8d8; font-size: .86rem; line-height: 1.4; }
.plan-card li { position: relative; padding-left: 1.25rem; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: #65b3ff; font-weight: 900; }
.plan-status, .coming-soon { min-height: 2.65rem; width: 100%; display: flex; align-items: center; justify-content: center; padding: .6rem .75rem; border-radius: .65rem; font-size: .82rem; font-weight: 800; }
.plan-status { border: 1px solid #314a64; color: #b8ccde; background: #132538; }
.coming-soon { border: 1px solid #527fae; color: #eaf5ff; background: #255b91; opacity: 1; text-decoration: none; }
.coming-soon:hover { background: #3073b7; border-color: #77b5f4; }
.founding-note { margin: .58rem 0 0; color: #8fa6bb; font-size: .72rem; line-height: 1.4; text-align: center; }
.disclaimer { max-width: 73rem; margin: 1.3rem 0 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.account-shell { width: min(720px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 0; }
.back-link, .signout-link { color: #9fcaff; font-weight: 750; text-decoration: none; }
.back-link:hover, .signout-link:hover { color: #fff; }
.account-card { margin-top: 1.3rem; padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid #315170; border-radius: 1.2rem; background: linear-gradient(145deg, #0f2033, #0b1725); box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.account-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.account-heading h1 { font-size: clamp(2rem, 5vw, 3rem); }
.membership-badge { flex: 0 0 auto; padding: .42rem .65rem; border: 1px solid #4e6984; border-radius: 999px; color: #c0d3e5; background: #152b42; font-size: .75rem; font-weight: 800; }
.membership-badge.active { border-color: #3e906e; color: #b9f0d4; background: #15372c; }
.account-email { margin: .9rem 0 1.2rem; color: var(--muted); }
.account-notice { margin: 0 0 1rem; padding: .8rem .9rem; border: 1px solid #6b5430; border-radius: .65rem; color: #ecd4a8; background: #2b251a; line-height: 1.45; }
.account-notice.success { border-color: #3d7c60; color: #bfe7d1; background: #173128; }
.account-plan { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid #2f4964; border-radius: .8rem; background: #101f30; color: #a9bed2; }
.account-plan p { margin: .25rem 0 0; color: #fff; }
.account-plan strong { font-size: 1.55rem; }
.account-benefits { margin: 1.25rem 0; padding-left: 1.25rem; display: grid; gap: .6rem; color: #b8c9da; line-height: 1.4; }
.supporter-tools { display: grid; gap: .9rem; margin: 1.25rem 0; }
.supporter-tool-card, .saved-places-card { padding: 1.1rem; border: 1px solid #315170; border-radius: .9rem; background: #0d1b2b; }
.supporter-tool-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.supporter-tool-card h2, .saved-places-card h2 { font-size: 1.2rem; }
.supporter-tool-card p:not(.eyebrow), .saved-places-copy { margin: .45rem 0 0; color: #9fb2c5; font-size: .88rem; line-height: 1.5; }
.free-preview-link { display: inline-block; margin-top: .65rem; color: #9fcaff; font-size: .8rem; font-weight: 750; text-decoration: none; }
.free-preview-link:hover { color: #fff; }
.account-secondary { flex: 0 0 auto; min-height: 2.7rem; display: inline-flex; align-items: center; justify-content: center; padding: .6rem .85rem; border: 1px solid #598bc0; border-radius: .65rem; color: #eff7ff; background: #1d4f80; font-size: .84rem; font-weight: 800; text-decoration: none; }
.account-secondary:hover { background: #286cae; }
.saved-places-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.saved-places-heading > span { flex: 0 0 auto; padding: .3rem .5rem; border-radius: .45rem; color: #aacdf0; background: #17304a; font-size: .76rem; font-weight: 800; }
.saved-place-form { display: grid; grid-template-columns: .7fr 1.3fr auto; gap: .6rem; align-items: end; margin-top: 1rem; }
.saved-place-form label { display: grid; gap: .35rem; color: #b8cadd; font-size: .76rem; font-weight: 750; }
.saved-place-form input { min-width: 0; width: 100%; min-height: 2.7rem; padding: .55rem .65rem; border: 1px solid #3a5875; border-radius: .58rem; color: #f1f7ff; background: #081522; font: inherit; font-size: .86rem; }
.saved-place-form input::placeholder { color: #71879c; }
.saved-place-form input:focus { outline: 3px solid #2f70e9; outline-offset: 2px; }
.saved-place-form button, .saved-place-list button { min-height: 2.7rem; padding: .55rem .75rem; border: 1px solid #649ad2; border-radius: .58rem; color: #fff; background: #245e97; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 800; }
.saved-place-form button:hover, .saved-place-list button:hover { background: #3078bd; }
.saved-place-list { margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; list-style: none; }
.saved-place-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem; border: 1px solid #273f58; border-radius: .65rem; background: #101f30; }
.saved-place-list strong, .saved-place-list span { display: block; }
.saved-place-list strong { color: #eef6ff; font-size: .9rem; }
.saved-place-list span { margin-top: .2rem; color: #91a7bb; font-size: .8rem; }
.saved-place-list button { min-height: 2.2rem; border-color: #526b84; color: #c9d8e7; background: #17293b; }
.saved-places-empty { margin: 1rem 0 0; color: #8197aa; font-size: .84rem; }
.account-primary { width: 100%; min-height: 3rem; padding: .7rem 1rem; border: 1px solid #6aabec; border-radius: .7rem; color: #fff; background: #286caf; cursor: pointer; font: inherit; font-weight: 850; }
.account-primary:hover:not(:disabled) { background: #3484d1; }
.account-primary:disabled { cursor: not-allowed; opacity: .58; }
.billing-safety { margin: .7rem 0 1.2rem; color: #90a7bc; font-size: .78rem; line-height: 1.45; text-align: center; }
.billing-safety a { color: #acd4ff; font-weight: 750; }
.incident-dialog { width: min(560px, calc(100vw - 2rem)); max-height: min(85vh, 760px); padding: 1.55rem; border: 1px solid var(--line); border-radius: 1.1rem; background: #0d1928; box-shadow: 0 30px 100px rgba(0,0,0,.55); color: var(--ink); }
.incident-dialog::backdrop { background: rgba(11,31,50,.55); backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.close-button { width: 2.2rem; height: 2.2rem; border: 0; border-radius: .6rem; background: #192a3d; color: var(--ink); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.incident-dialog h2 { font-size: 1.75rem; line-height: 1.18; }
.dialog-meta { margin: .7rem 0 1.2rem; color: var(--muted); font-size: .9rem; }
.dialog-section { padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.dialog-section h3 { margin: 0 0 .4rem; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dialog-section p { margin: 0; line-height: 1.55; }
.unit-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.unit-chip { padding: .32rem .58rem; border-radius: .45rem; background: #17283b; font-size: .87rem; font-weight: 700; }
.history-shell { width: min(920px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) 0; }
.history-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.history-header { margin: 2rem 0 1.3rem; }
.history-header p:not(.eyebrow) { max-width: 43rem; margin: .7rem 0 0; color: var(--muted); line-height: 1.5; }
.watchlist-section, .all-history-section { margin-top: 1.25rem; }
.all-history-section { padding-top: 1.4rem; border-top: 1px solid #26394c; }
.history-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.history-section-heading > span { flex: 0 0 auto; padding: .32rem .52rem; border-radius: .5rem; color: #b6d8fb; background: #173451; font-size: .78rem; font-weight: 800; }
.watchlist-actions { display: flex; align-items: center; gap: .5rem; }
.watchlist-actions > span { padding: .32rem .52rem; border-radius: .5rem; color: #d7eaff; background: #173451; font-size: .78rem; font-weight: 800; }
.watchlist-actions button { min-height: 2.2rem; padding: .4rem .62rem; border: 1px solid #5c8dbf; border-radius: .55rem; color: #eaf5ff; background: #20598e; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 800; }
.watchlist-actions button:hover { background: #2c70b0; }
.watchlist-empty { margin: 0; padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px dashed #395673; border-radius: .8rem; color: #9fb3c6; background: #0c1927; line-height: 1.5; }
.watchlist-empty p { margin: 0; }
.history-list { display: grid; gap: .75rem; }
.history-list.watched .history-card { border-color: #4f82b8; background: linear-gradient(145deg, #10253a, #0e1d2d); }
.history-card { padding: 1.1rem; border: 1px solid #2c435b; border-radius: .9rem; background: #0f1d2d; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.history-card.unread { border-color: #75b5f3; box-shadow: 0 0 0 1px rgba(117,181,243,.22), 0 10px 28px rgba(0,0,0,.22); }
.history-card-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.history-card-top time { color: #91a7bb; font-size: .8rem; font-weight: 700; }
.watchlist-matches { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.watchlist-matches span { padding: .28rem .48rem; border: 1px solid #496f96; border-radius: 999px; color: #cde6ff; background: #173a5b; font-size: .73rem; font-weight: 800; }
.watchlist-matches .new-match { border-color: #3d956f; color: #c5f3db; background: #15392c; text-transform: uppercase; letter-spacing: .05em; }
.history-card h2 { margin-top: .75rem; font-size: 1.15rem; }
.history-card > p { margin: .45rem 0 .75rem; color: #b0c1d1; line-height: 1.5; }
.history-location { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .7rem; border-top: 1px solid #26394c; color: #c1d4e6; font-size: .84rem; font-weight: 650; }
.history-location em { color: #d7ba82; font-size: .75rem; font-style: normal; }
.history-card .unit-list { margin-top: .7rem; }
.history-empty { margin-top: 2rem; padding: 2rem; border: 1px solid #2c435b; border-radius: .9rem; background: #0f1d2d; text-align: center; }
.history-empty p { color: var(--muted); }
.site-footer { max-width: 73rem; margin: 1.6rem auto 0; padding: 1.1rem 0 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-top: 1px solid #26394c; color: #849aaf; font-size: .78rem; line-height: 1.45; }
.site-footer p { max-width: 34rem; margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem 1rem; }
.site-footer a { color: #a8cdef; font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.policy-shell { width: min(840px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) 0; }
.policy-header { margin: 1.4rem 0 1.2rem; }
.policy-header > p:last-child { max-width: 43rem; margin: .75rem 0 0; color: var(--muted); line-height: 1.55; }
.policy-nav { position: sticky; top: .65rem; z-index: 10; margin-bottom: 1rem; padding: .6rem; display: flex; flex-wrap: wrap; gap: .45rem; border: 1px solid #315170; border-radius: .8rem; background: rgba(9,20,33,.95); backdrop-filter: blur(10px); }
.policy-nav a { padding: .48rem .62rem; border-radius: .5rem; color: #c7dcf1; font-size: .82rem; font-weight: 750; text-decoration: none; }
.policy-nav a:hover { color: #fff; background: #193452; }
.policy-card { margin-top: .85rem; padding: clamp(1.15rem, 3vw, 1.7rem); border: 1px solid #2c465f; border-radius: 1rem; background: linear-gradient(145deg, #0f2033, #0b1725); scroll-margin-top: 5rem; }
.policy-card h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.policy-card h3 { margin: 1.25rem 0 .35rem; color: #d8e8f7; font-size: 1rem; }
.policy-card p:not(.eyebrow) { margin: .6rem 0 0; color: #afc1d2; line-height: 1.62; }
.policy-card .policy-note { padding: .75rem .85rem; border: 1px solid #5c5134; border-radius: .65rem; color: #e5d2a2; background: #292419; }

@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
  .map-panel { position: static; grid-row: 1; }
  .map { height: 330px; min-height: 330px; }
  .incident-list { max-height: none; }
  .membership { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .site-header { align-items: stretch; flex-wrap: wrap; }
  .brand { min-width: 0; }
  .header-note { display: none; }
  .header-actions { width: 100%; gap: .5rem; }
  .supporter-link, .account-link { min-height: 2.6rem; flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: .5rem; border-radius: .6rem; font-size: .8rem; text-align: center; }
  .account-link { border: 1px solid #35506b; background: #111f30; }
  .main-content { padding-top: 1.45rem; }
  .page-intro { display: block; margin-bottom: 1rem; }
  h1 { font-size: 2.15rem; }
  .date-card { display: inline-flex; margin-top: 1rem; }
  .feed-panel, .map-panel { padding: 1rem; border-radius: .9rem; }
  .map { height: 265px; min-height: 265px; }
  .map-footer .map-note { margin-left: 0; flex-basis: 100%; }
  .map-actions { align-items: flex-end; flex-direction: column; gap: .35rem; }
  .area-fallback { align-items: flex-end; flex-direction: column; }
  .map-view-button { padding-inline: .55rem; font-size: .77rem; }
  .feed-topline { align-items: start; }
  .updated-at { max-width: 6.5rem; }
  .filter { font-size: .8rem; padding: .45rem .25rem; }
  .incident-dialog { margin: auto auto 0; width: 100vw; max-width: 100vw; max-height: 88vh; border-radius: 1.2rem 1.2rem 0 0; }
  .membership { padding: 1rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .account-heading { display: block; }
  .membership-badge { display: inline-flex; margin-top: 1rem; }
  .supporter-tool-card { align-items: stretch; flex-direction: column; }
  .saved-place-form { grid-template-columns: 1fr; }
  .watchlist-empty { align-items: stretch; flex-direction: column; }
  .history-section-heading { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-direction: column; }
  .site-footer nav { justify-content: flex-start; }
}
