:root {
  --ink: #edf3f8;
  --muted: #98a8ba;
  --line: #263545;
  --panel: #101923;
  --panel-2: #151f2b;
  --soft: #070b10;
  --navy: #172b42;
  --blue: #6aa8ff;
  --green: #3cc58f;
  --gold: #d5a847;
  --danger: #e06d68;
  --shadow: 0 22px 54px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(60, 197, 143, .1), transparent 34vw),
    linear-gradient(180deg, #080d13 0%, #070b10 42%, #0c1118 100%);
  line-height: 1.5;
}

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 56px);
  background: rgba(8, 13, 19, .92);
  border-bottom: 1px solid rgba(65, 82, 104, .72);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: #05080c;
  border: 1px solid rgba(213, 168, 71, .55);
  box-shadow: 0 0 0 3px rgba(213, 168, 71, .08);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.topnav { display: flex; gap: 6px; align-items: center; }
.topnav a {
  padding: 9px 12px;
  border-radius: 7px;
  color: #cbd6e3;
  font-size: 14px;
}
.topnav a:hover { background: #172230; }

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,7,12,.94) 0%, rgba(6,13,22,.86) 44%, rgba(6,13,22,.52) 76%, rgba(6,13,22,.3) 100%),
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.6));
}
.hero-content {
  position: relative;
  width: min(900px, calc(100% - 32px));
  margin-left: clamp(16px, 7vw, 96px);
  padding-bottom: 44px;
  color: #fff;
}
.kicker {
  margin: 0 0 12px;
  color: #9fc9bc;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(34px, 5.5vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: #cbd8e6;
  font-size: clamp(17px, 2vw, 22px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-link, .secondary-link, .submit-btn, .officer-login-btn, .outline-btn {
  min-height: 46px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  cursor: pointer;
}
.primary-link, .submit-btn {
  background: var(--green);
  color: #06110d;
  padding: 0 18px;
  font-weight: 700;
}
.secondary-link, .outline-btn {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.22);
  padding: 0 18px;
}

.stats-band {
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(16, 25, 35, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.stats-band div { padding: 20px 22px; border-right: 1px solid var(--line); }
.stats-band div:last-child { border-right: 0; }
.stats-band strong { display: block; color: var(--navy); font-size: 28px; line-height: 1.1; }
.stats-band strong { color: var(--green); }
.stats-band span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

.section-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 22px;
  align-items: start;
}
.report-panel, .flow-panel, .case-board, .case-detail, .mobile-alert {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.report-panel { padding: clamp(20px, 3vw, 30px); }
.panel-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.panel-heading h2, .flow-panel h2, .safety-section h2, .officer-head h2 { margin: 0; line-height: 1.2; letter-spacing: 0; }
.panel-heading p { margin: 6px 0 0; color: var(--muted); }
.panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(60, 197, 143, .12);
  color: var(--green);
  flex: 0 0 auto;
}

.identity-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.identity-switch input { position: absolute; opacity: 0; pointer-events: none; }
.identity-switch span {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #c3cfdd;
  background: #0c131c;
  cursor: pointer;
}
.identity-switch input:checked + span { background: var(--green); color: #06110d; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 7px; color: #dce7f2; font-weight: 700; margin-bottom: 16px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #35465a;
  border-radius: 7px;
  padding: 12px 13px;
  background: #0b121a;
  color: var(--ink);
}
select option { background: #0b121a; color: var(--ink); }
textarea { resize: vertical; min-height: 128px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47,125,91,.18); border-color: var(--green); }
.named-field.is-hidden { display: none; }

.upload-box {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  border: 1px dashed #52657b;
  border-radius: 8px;
  padding: 16px;
  background: #0b121a;
  cursor: pointer;
}
.upload-box input { display: none; }
.upload-box svg { color: var(--blue); width: 28px; height: 28px; }
.upload-box small { display: block; color: var(--muted); font-weight: 400; }
.file-preview {
  display: grid;
  gap: 8px;
  margin: -6px 0 16px;
}
.file-preview[hidden] {
  display: none;
}
.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101923;
  color: #dce7f2;
  font-size: 14px;
}
.file-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-chip small {
  flex: 0 0 auto;
  color: var(--muted);
}
.gps-panel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b121a;
}
.gps-panel legend {
  padding: 0 8px;
  color: #dce7f2;
  font-weight: 700;
}
.gps-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}
.gps-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gps-options label {
  margin: 0;
}
.gps-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gps-options span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #35465a;
  border-radius: 7px;
  background: #101923;
  color: #c3cfdd;
  cursor: pointer;
  text-align: center;
}
.gps-options input:checked + span {
  background: var(--green);
  color: #06110d;
  border-color: var(--green);
  font-weight: 700;
}
.gps-device {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.gps-device[hidden],
.gps-manual[hidden] {
  display: none;
}
.gps-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #52657b;
  border-radius: 7px;
  color: var(--ink);
  background: #151f2b;
  cursor: pointer;
}
.gps-device small {
  color: var(--muted);
}
.gps-manual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.gps-manual label {
  margin: 0;
}
.privacy-note {
  margin: 2px 0 18px;
  padding: 14px 16px;
  background: rgba(60, 197, 143, .1);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  color: #cfece2;
}
.submit-btn { width: 100%; border: 0; font-size: 17px; }

.flow-panel { padding: 24px; }
.timeline { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.timeline li { position: relative; padding-left: 32px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(60, 197, 143, .13);
}
.timeline strong, .timeline span { display: block; }
.timeline span { color: var(--muted); font-size: 14px; }
.ticket-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #163252, #15382c);
  color: #fff;
}
.ticket-card span, .ticket-card small { display: block; color: #cfe0ef; }
.ticket-card strong { display: block; font-size: 24px; margin: 4px 0; }

.safety-section, .officer-section {
  width: min(1180px, calc(100% - 32px));
  margin: 58px auto;
}
.safety-section {
  display: block;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 25, 35, .88), rgba(11, 18, 26, .92));
  box-shadow: var(--shadow);
}
.safety-section h2, .officer-head h2 { font-size: clamp(26px, 3vw, 38px); }
.safety-section > div:first-child {
  max-width: 780px;
  margin-bottom: 18px;
}
.safety-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.safety-grid article {
  background: #0b121a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-height: 152px;
}
.safety-grid h3 { margin: 0 0 8px; }
.safety-grid p { margin: 0; color: var(--muted); }

.officer-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-copy {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}
.officer-login-btn { background: var(--navy); color: #fff; padding: 0 16px; border: 0; }
.officer-login-btn { background: linear-gradient(135deg, #1d3b5e, #236249); }
.officer-features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.mobile-alert { padding: 18px; display: grid; place-items: center; }
.phone-frame {
  width: 210px;
  min-height: 390px;
  border: 8px solid #05080c;
  border-radius: 28px;
  background: linear-gradient(180deg, #111a25, #060b11);
  padding: 18px 12px;
}
.phone-top { width: 64px; height: 5px; border-radius: 6px; background: #313f50; margin: 0 auto 26px; }
.notification {
  background: rgba(20,31,43,.96);
  border: 1px solid #2e4054;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(17,31,52,.14);
}
.notification span, .notification small { display: block; color: var(--muted); font-size: 12px; }
.notification strong { display: block; margin: 4px 0; }

.case-board { padding: 18px; }
.case-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.case-toolbar select { width: 170px; padding: 9px 10px; }
.case-list { display: grid; gap: 10px; }
.case-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-2);
  cursor: pointer;
}
.case-item.is-active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,125,91,.12); }
.case-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.case-item h3 { margin: 8px 0 4px; font-size: 17px; }
.case-item p { margin: 0; color: #b2c0cf; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #07120e;
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.status-pill.checking { color: #1c1302; background: #e5b84d; }
.status-pill.waiting { color: #1c0706; background: #e06d68; }

.case-detail { padding: 20px; }
.case-detail h3 { margin: 12px 0 8px; font-size: 22px; }
.case-detail p { color: #c1cfdd; }
.case-detail dl { display: grid; gap: 10px; margin: 18px 0; }
.case-detail div { border-top: 1px solid var(--line); padding-top: 10px; }
.case-detail dt { color: var(--muted); font-size: 13px; }
.case-detail dd { margin: 2px 0 0; font-weight: 700; }
.case-detail .outline-btn { width: 100%; color: var(--ink); border-color: #52657b; background: #0b121a; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #0f1c2a;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 40;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.success-panel,
.login-panel {
  width: min(520px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.success-panel h1,
.login-panel h1 {
  margin: 14px 0 8px;
}
.success-panel p,
.login-panel p {
  color: var(--muted);
}
.success-panel .primary-link {
  margin-top: 18px;
}
.error-box {
  padding: 12px 14px;
  margin: 14px 0;
  border-left: 4px solid var(--danger);
  border-radius: 7px;
  background: rgba(224, 109, 104, .12);
  color: #ffd9d7;
}
.admin-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-detail h1 {
  margin: 12px 0 8px;
}
.admin-detail h2 {
  margin: 22px 0 10px;
}
.admin-files {
  margin: 0 0 18px;
}
.admin-update {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-dashboard-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(60, 197, 143, .12), transparent 30vw),
    radial-gradient(circle at 85% 18%, rgba(213, 168, 71, .08), transparent 28vw),
    linear-gradient(180deg, #05080c 0%, #080d13 48%, #060a0f 100%);
}
.admin-topbar {
  border-bottom-color: rgba(82, 101, 123, .45);
}
.intel-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 28px auto 46px;
  display: grid;
  gap: 18px;
}
.intel-hero {
  min-height: 190px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, .92), rgba(8, 13, 19, .72)),
    url("assets/hero-operations.png") center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.intel-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}
.intel-hero p:not(.kicker) {
  max-width: 760px;
  margin: 14px 0 0;
  color: #c3d0de;
  font-size: 17px;
}
.intel-clock {
  min-width: 170px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(8, 13, 19, .7);
  text-align: right;
}
.intel-clock span,
.intel-clock strong {
  display: block;
}
.intel-clock span {
  color: var(--muted);
}
.intel-clock strong {
  color: var(--green);
  font-size: 38px;
  line-height: 1;
  margin-top: 6px;
}
.intel-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.intel-metrics article,
.intel-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 25, 35, .92);
  box-shadow: 0 14px 35px rgba(0,0,0,.22);
}
.intel-metrics article {
  padding: 18px;
}
.intel-metrics span,
.intel-metrics small {
  display: block;
  color: var(--muted);
}
.intel-metrics strong {
  display: block;
  color: var(--green);
  font-size: 40px;
  line-height: 1.05;
  margin: 6px 0;
}
.intel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 18px;
}
.intel-panel {
  padding: 18px;
  min-width: 0;
}
.intel-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}
.intel-panel-head h1,
.intel-panel-head h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.15;
}
.chart-panel canvas {
  width: 100%;
  height: 300px;
  display: block;
}
.map-panel {
  min-height: 430px;
}
.intel-map {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid #2b3b4c;
  border-radius: 8px;
  background:
    radial-gradient(circle at 26% 28%, rgba(60, 197, 143, .18), transparent 14%),
    radial-gradient(circle at 72% 62%, rgba(106, 168, 255, .12), transparent 18%),
    linear-gradient(135deg, rgba(13, 24, 34, .95), rgba(4, 9, 14, .98));
}
.intel-map::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(32deg, transparent 44%, rgba(154, 178, 203, .16) 45%, transparent 47%),
    linear-gradient(138deg, transparent 40%, rgba(154, 178, 203, .12) 41%, transparent 43%),
    linear-gradient(77deg, transparent 50%, rgba(60, 197, 143, .1) 51%, transparent 53%);
  opacity: .85;
}
.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle, #000 30%, transparent 78%);
}
.map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  z-index: 2;
}
.map-marker {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  color: #fff;
  text-decoration: none;
}
.map-marker span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff3b30;
  border: 3px solid #ffd6d4;
  box-shadow: 0 0 0 8px rgba(255, 59, 48, .18), 0 0 28px rgba(255, 59, 48, .55);
}
.map-marker strong,
.map-marker small {
  position: absolute;
  left: 22px;
  top: -10px;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(5, 8, 12, .86);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.map-marker strong {
  color: #fff;
  font-size: 13px;
}
.map-marker small {
  top: 21px;
  color: #c7d5e3;
  font-size: 12px;
  line-height: 1.35;
}
.map-marker:hover strong,
.map-marker:hover small {
  opacity: 1;
  transform: translateX(4px);
}
.location-panel,
.status-panel {
  min-height: 320px;
}
.rank-list,
.status-bars {
  display: grid;
  gap: 14px;
}
.rank-item,
.status-row {
  display: grid;
  gap: 8px;
}
.rank-item > div:first-child,
.status-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.rank-item strong,
.status-row strong {
  color: #edf3f8;
}
.rank-item span,
.status-row span {
  color: var(--muted);
  font-size: 13px;
}
.rank-track,
.status-track {
  height: 9px;
  border-radius: 999px;
  background: #0b121a;
  overflow: hidden;
}
.rank-track i,
.status-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.intel-workspace {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.case-feed .case-list {
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}
.empty-state {
  padding: 18px;
  border: 1px dashed #52657b;
  border-radius: 8px;
  color: var(--muted);
  background: #0b121a;
}

@media (max-width: 980px) {
  .stats-band, .section-grid, .safety-section, .dashboard, .admin-shell { grid-template-columns: 1fr; }
  .officer-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-band div:last-child { border-bottom: 0; }
  .dashboard { align-items: start; }
  .mobile-alert { display: none; }
  .intel-grid,
  .intel-workspace,
  .intel-metrics {
    grid-template-columns: 1fr;
  }
  .intel-hero {
    align-items: start;
    flex-direction: column;
  }
  .intel-clock {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .topbar { height: auto; min-height: 68px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .brand small { display: none; }
  .topnav { overflow-x: auto; max-width: 55vw; }
  .topnav a { white-space: nowrap; }
  .hero { min-height: 650px; align-items: end; }
  .hero-content { margin: 0 auto; padding-bottom: 86px; }
  .hero-actions a { width: 100%; }
  .form-grid, .identity-switch, .safety-grid, .gps-options, .gps-manual { grid-template-columns: 1fr; }
  .safety-section { margin: 38px auto; padding: 18px; }
  .safety-grid article { min-height: 0; padding: 16px; }
  .officer-features { grid-template-columns: 1fr; }
  .gps-device { align-items: flex-start; flex-direction: column; }
  .panel-heading { flex-direction: column; }
  .intel-shell { width: min(100% - 24px, 1440px); margin-top: 18px; }
  .intel-hero { padding: 20px; min-height: 260px; }
  .intel-map { min-height: 300px; }
  .intel-panel { padding: 14px; }
  .chart-panel canvas { height: 260px; }
}
