/* Road Shield visual refresh. Presentation only: existing controls and app state are unchanged. */
:root {
  --ink: #172a25;
  --muted: #687a73;
  --cream: #f3f6f1;
  --green: #176b4c;
  --lime: #c9f06b;
  --line: #dce7df;
  --card-shadow: 0 14px 40px rgba(28, 58, 43, .075);
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse at 83% 7%, rgba(221, 239, 224, .58), transparent 34rem),
    var(--cream);
  color: var(--ink);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  height: 72px;
  padding-inline: max(28px, calc((100% - 1320px) / 2));
  background: rgba(255,255,255,.94);
  border-bottom-color: rgba(220,231,223,.9);
  backdrop-filter: blur(14px);
}
.brand { font-size: 21px; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(23,107,76,.08); }
.topbar nav { gap: 34px; }
.topbar nav a { padding: 10px 0; transition: color .18s ease; }
.topbar nav a:hover, .topbar nav .active { color: var(--green); }
.profile-btn { width: 38px; height: 38px; border: 1px solid #d7e8dc; }

.hero {
  max-width: 1320px;
  padding: 54px 34px 32px;
  align-items: center;
}
.hero .eyebrow { margin-bottom: 13px; color: #43805f; }
.hero h1 { font-size: clamp(39px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -2.8px; }
.hero-copy { max-width: 560px; margin-top: 14px; font-size: 14px; line-height: 1.65; }
.status-pill { border: 1px solid #e2ebe3; box-shadow: 0 8px 24px rgba(34,59,36,.06); }

.workspace {
  max-width: 1320px;
  grid-template-columns: minmax(320px, 370px) minmax(0, 1fr);
  gap: 22px;
  padding-inline: 34px;
  align-items: start;
}
.sidebar { gap: 16px; }
.route-card, .filter-card, .map-panel, .reports-panel {
  border: 1px solid rgba(216,229,219,.95);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.route-card, .filter-card { padding: 23px; }
.card-label { color: #668075; font-size: 10px; letter-spacing: 1.5px; }
.location-row {
  min-height: 67px;
  gap: 13px;
  margin: 14px 0 8px;
  padding: 12px 13px;
  border: 1px solid #e8eee9;
  border-radius: 13px;
  background: #fbfcfa;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.location-row:focus-within {
  border-color: #7eb694;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(83,157,111,.12);
}
.location-row small { color: #71857a; font-weight: 700; letter-spacing: 1.15px; }
.location-field input { font-size: 14px; }
.route-line { height: 16px; margin-left: 7px; }
.route-btn {
  min-height: 50px;
  border-radius: 12px;
  background: linear-gradient(105deg, #176b4c, #22825b);
  box-shadow: 0 7px 16px rgba(23,107,76,.18);
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.route-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(23,107,76,.22); filter: saturate(1.08); }
.route-summary { font-size: 12px; }
.community-place-btn { border-radius: 11px; }
.filter-card { padding-bottom: 17px; }
.card-heading { font-size: 13px; line-height: 1.4; }
.count { min-width: 31px; text-align: center; padding: 5px 9px; border-radius: 999px; }
.search { min-height: 43px; border: 1px solid #edf1ed; background: #f7f9f6; }
.search:focus-within { border-color: #8bb99b; box-shadow: 0 0 0 3px rgba(83,157,111,.10); }
.filter { min-height: 42px; padding: 7px 8px; border-radius: 10px; transition: background .15s ease, color .15s ease; }
.filter:hover { background: #f5f8f4; }
.filter.active { background: #eff6ef; color: #194f38; }
.filter-icon { flex: 0 0 29px; width: 29px; height: 29px; border-radius: 9px; }
.report-btn {
  min-height: 50px;
  border-radius: 13px;
  background: #d6f28c;
  box-shadow: 0 7px 18px rgba(93,135,52,.12);
  transition: transform .18s ease, background .18s ease;
}
.report-btn:hover { transform: translateY(-1px); background: #c9ee76; }
.safe-note { font-size: 11px; }

.map-panel { min-width: 0; min-height: 0; }
.map-toolbar { height: 64px; padding-inline: 17px; gap: 8px; }
.map-tool, .locate, .traffic-toggle { min-height: 40px; border-radius: 10px; font-size: 12px; }
.map-tool.selected, .traffic-toggle[aria-pressed="true"] { background: #eaf4ec; color: #176b4c; }
.locate { padding-inline: 14px; font-weight: 700; }
.drive-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  background: #d5f285;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(93,135,52,.13);
}
.drive-btn:hover { background: #c6eb6d; }
.map-canvas {
  height: clamp(520px, 66vh, 760px);
  min-height: 460px;
  background-color: #e4ede0;
  background-size: 22px 22px;
}
.map-disclaimer { padding: 13px 17px; font-size: 11px; }
.hazard-alert-legend { padding: 14px 17px; }
.reports-panel { max-width: 1252px; padding: 30px 34px; }
.reports-panel h2 { letter-spacing: -1.4px; }
.report-item { min-height: 76px; padding: 14px; border-radius: 13px; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.report-item:hover { transform: translateY(-1px); border-color: #bbd5c2; box-shadow: 0 6px 18px rgba(28,58,43,.06); }
.road-history { border: 1px solid #e7efe6; }
.how { margin-top: 72px; padding-block: 76px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(47,133,86,.42);
  outline-offset: 2px;
}

@media (max-width: 850px) {
  .topbar { height: 64px; padding-inline: 18px; }
  .hero { padding: 34px 20px 21px; }
  .hero h1 { font-size: clamp(35px, 8vw, 44px); letter-spacing: -2px; }
  .hero-copy { max-width: 620px; margin-top: 12px; font-size: 13px; }
  .status-pill { margin-top: 17px; padding: 10px 14px; }
  .workspace { gap: 13px; padding-inline: 14px; }
  .map-panel { border-radius: 18px; }
  .map-toolbar { min-height: 56px; padding: 8px 11px; }
  .map-canvas { height: 58svh; min-height: 390px; max-height: 650px; }
  .reports-panel { width: calc(100% - 28px); margin: 0 14px 38px; padding: 23px 20px; }
  .how { margin-top: 44px; }
}

@media (max-width: 600px) {
  body { background: #f3f6f1; }
  .topbar { height: 59px; padding-inline: 16px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 31px; height: 31px; }
  .profile-btn { width: 34px; height: 34px; }
  .hero { padding: 25px 17px 17px; }
  .hero .eyebrow { margin-bottom: 11px; font-size: 9px; letter-spacing: 1.35px; }
  .hero h1 { font-size: 35px; line-height: 1.04; }
  .hero-copy { margin-top: 10px; font-size: 12px; line-height: 1.55; }
  .status-pill { margin-top: 13px; font-size: 11px; }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 11px;
  }
  .sidebar { display: contents; }
  .route-card { order: 0; width: 100%; padding: 17px; border-radius: 17px; }
  .map-panel { order: 1; width: 100%; min-height: 0; border-radius: 17px; }
  .sidebar .filter-card { order: 2; width: 100%; padding: 17px; border-radius: 17px; }
  .sidebar .report-btn { order: 3; width: 100%; }
  .sidebar .safe-note { order: 4; }
  .location-row { min-height: 62px; margin: 11px 0 7px; padding: 10px 11px; }
  .route-btn { min-height: 48px; margin-top: 13px; }
  .route-summary { margin-top: 9px; }
  .map-toolbar { min-height: 53px; flex-wrap: wrap; gap: 4px; padding: 7px 8px; }
  .map-toolbar > span { display: none; }
  .map-toolbar .map-tool, .map-toolbar .traffic-toggle { min-height: 36px; padding: 7px 10px; }
  .map-toolbar .locate { min-height: 36px; margin-left: auto; padding: 6px 8px; font-size: 11px; }
  .map-toolbar .drive-btn { width: 100%; min-height: 45px; margin-top: 2px; }
  .map-canvas { height: 55svh; min-height: 360px; max-height: 590px; }
  .map-disclaimer { padding: 10px 12px; font-size: 10px; }
  .hazard-alert-legend { padding: 12px; }
  .reports-panel { width: calc(100% - 22px); margin: 0 11px 30px; padding: 19px 15px; border-radius: 17px; }
  .reports-panel h2 { font-size: 24px; }
  .reports-heading { display: flex; align-items: center; gap: 9px; }
  .reports-heading .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
  .trust-summary { flex: 0 0 auto; margin: 0 0 0 auto; text-align: right; }
  .trust-summary strong { font-size: 23px; }
  .report-list { gap: 8px; margin-top: 15px; }
  .report-item { min-height: 69px; padding: 11px; }
  .how { margin-top: 33px; padding: 43px 18px; }
  .how h2 { font-size: 31px; }
  .steps { margin-top: 29px; gap: 10px; }
  .steps > div { padding: 15px; border: 1px solid #dce8dd; border-radius: 14px; background: rgba(255,255,255,.7); }
  .steps h3 { margin-top: 8px; }
  .steps p { max-width: none; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Approved full redesign: map-first workspace with an integrated route/hazard rail. */
:root {
  --ink: #142c25;
  --muted: #667b70;
  --cream: #f7f8f3;
  --green: #07553d;
  --lime: #c9f56f;
  --line: #dce7dd;
  --card-shadow: 0 12px 32px rgba(18, 55, 38, .08), 0 2px 6px rgba(18, 55, 38, .035);
}
body {
  background: linear-gradient(180deg, #fbfcf8 0, #f3f6ef 58rem, #f7f8f3 100%);
  color: var(--ink);
}
.topbar {
  height: 68px;
  padding-inline: max(28px, calc((100% - 1420px) / 2));
  background: rgba(251,252,248,.96);
  border-bottom: 1px solid #e7ece5;
  box-shadow: 0 4px 16px rgba(20,44,37,.035);
}
.brand { gap: 11px; font-size: 20px; letter-spacing: -.65px; text-transform: uppercase; }
.brand-mark { display:grid; width:36px; height:36px; border-radius:12px; font-size:0; background:#d8f48b; }
.brand-mark::before { content:'⬟'; color:#07553d; font-size:24px; line-height:1; }
.brand span span { color:#70ad33; }
.topbar nav { gap: 38px; font-size: 13px; }
.topbar nav a { position:relative; padding-block:11px; }
.topbar nav a:hover, .topbar nav .active { color:#07553d; }
.topbar nav .active::after { position:absolute; right:0; bottom:0; left:0; height:3px; border-radius:4px; background:#0a6848; content:''; }
.profile-btn { border:1px solid #d9e5d9; background:#edf3e9; color:#14583c; }
.hero {
  max-width:1420px;
  padding:36px 30px 27px;
  align-items:center;
}
.hero .eyebrow { margin-bottom:11px; color:#5d806a; font-size:10px; letter-spacing:1.8px; }
.hero h1 { max-width:610px; font-size:clamp(38px,4.3vw,52px); letter-spacing:-2.5px; }
.hero h1 em { color:#0a6848; }
.hero-copy { max-width:560px; margin-top:10px; color:#61766c; font-size:14px; }
.status-pill { border:1px solid #dce9d9; background:#fff; color:#12553a; box-shadow:0 8px 22px rgba(18,55,38,.065); }
.workspace {
  max-width:1420px;
  grid-template-columns:minmax(315px,350px) minmax(0,1fr);
  align-items:stretch;
  gap:19px;
  padding:0 30px;
}
.sidebar { gap:13px; }
.route-card, .filter-card, .map-panel, .reports-panel {
  border:1px solid #dfe8de;
  border-radius:19px;
  box-shadow:var(--card-shadow);
}
.route-card, .filter-card { padding:19px; }
.route-card { overflow:visible; }
.card-label { margin-bottom:17px; color:#547263; font-size:10px; letter-spacing:1.55px; }
.location-row {
  position:relative;
  min-height:62px;
  gap:11px;
  margin:9px 0 7px;
  padding:10px 12px;
  border:1px solid #dfe8df;
  border-radius:12px;
  background:#fcfdfa;
}
.pin { font-size:12px; }
.pin.start { color:#13864f; }
.pin.end { color:#f07859; }
.location-row small { margin-bottom:3px; color:#73877c; font-size:9px; font-weight:800; letter-spacing:1.15px; }
.location-field input { min-height:25px; padding-right:29px; color:#19352b; font-size:13px; }
.location-field input::placeholder { color:#9aa99e; }
.location-field input:focus { border-bottom-color:transparent; }
.voice-btn { min-width:28px; min-height:31px; bottom:0; border-radius:8px; background:transparent; }
.voice-btn:hover { background:#edf5e9; }
.route-line { height:14px; margin:-5px 0 -2px 6px; }
.place-suggestions {
  position:absolute;
  z-index:2200;
  top:calc(100% + 8px);
  right:-7px;
  left:-7px;
  max-height:230px;
  margin:0;
  border:1px solid #dce7dd;
  border-radius:13px;
  box-shadow:0 14px 30px rgba(17,46,33,.17);
}
.place-suggestion { padding:11px 12px; font-size:12px; }
.place-suggestion strong { font-size:12px; }
.place-suggestion:hover, .place-suggestion:focus { background:#eff7eb; }
.route-btn {
  min-height:48px;
  margin-top:13px;
  border-radius:12px;
  background:linear-gradient(105deg,#07553d,#08714b);
  box-shadow:0 7px 17px rgba(7,85,61,.18);
  font-size:13px;
}
.route-btn:hover { background:#064c37; transform:translateY(-1px); }
.route-summary { margin-top:9px; font-size:11px; }
.traffic-options { gap:7px; margin-top:12px; }
.traffic-option { min-height:61px; border-color:#e3e9df; border-radius:12px; padding:10px 12px; }
.traffic-option[aria-pressed="true"] { border-color:#8bbb64; background:#f2f8e9; box-shadow:inset 0 0 0 1px #8bbb64; }
.traffic-option strong { color:#15573d; }
.community-place-btn { min-height:39px; margin-top:12px; border:1px solid #dbe7d8; border-radius:11px; background:#f8fbf5; color:#176546; font-size:12px; }
.community-place-btn:hover { border-color:#9ebd87; background:#f1f8e9; }
.filter-card { padding:17px; }
.card-heading { gap:10px; color:#17372a; font-size:13px; letter-spacing:-.1px; }
.count { min-width:31px; padding:5px 9px; border:1px solid #e3edda; background:#eff6e8; color:#386c36; text-align:center; }
.search { min-height:40px; margin:12px 0 10px; border:1px solid #e8eee6; border-radius:11px; background:#f7f9f5; }
.search:focus-within { border-color:#8bbd6a; box-shadow:0 0 0 3px rgba(94,151,68,.12); }
.filter-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.filter {
  min-width:0;
  min-height:40px;
  gap:0;
  padding:5px 6px;
  border:1px solid #edf0ea;
  background:#fff;
  color:#5b7165;
  font-size:10px;
}
.filter:hover { background:#f7faf4; border-color:#dce8d6; }
.filter.active { border-color:#bdd59e; background:#f1f7e9; color:#164f36; }
.filter b { flex:0 0 auto; margin-left:auto; padding-left:3px; color:#839186; font-size:10px; }
.filter-icon { flex:0 0 25px; width:25px; height:25px; margin-right:6px; border-radius:8px; font-size:14px; }
.hazard-alert-legend {
  display:grid;
  gap:9px;
  margin-top:12px;
  padding:11px 10px;
  border:1px solid #e7eee3;
  border-radius:12px;
  background:#f9fbf7;
}
.hazard-alert-legend[hidden] { display:none; }
.hazard-alert-legend-item { align-items:center; gap:9px; }
.hazard-alert-legend-item strong { color:#244637; font-size:10px; }
.hazard-alert-legend-item small { font-size:9px; }
.hazard-alert-legend p { padding-top:8px; border-top:1px solid #e7eee3; font-size:9px; }
.report-btn {
  min-height:43px;
  padding:10px 14px;
  border:1px solid #bfd4b0;
  border-radius:12px;
  background:#f8fbf4;
  color:#155b3e;
  font-size:12px;
  box-shadow:none;
}
.report-btn:hover { border-color:#8cb66b; background:#eef7e4; transform:translateY(-1px); }
.report-btn span { font-size:17px; }
.safe-note { font-size:10px; }
.map-panel { min-width:0; min-height:0; overflow:hidden; }
.map-toolbar { height:60px; gap:7px; padding:0 12px; }
.map-tool, .traffic-toggle, .locate { min-height:38px; border-radius:10px; font-size:11px; }
.map-tool.selected, .traffic-toggle[aria-pressed="true"] { background:#edf5e9; color:#07553d; }
.map-toolbar>span { flex:1; }
.map-toolbar .locate { padding-inline:11px; font-weight:700; }
.drive-btn {
  min-height:40px;
  padding:0 15px;
  border-radius:11px;
  background:#c9f56f;
  color:#163823;
  box-shadow:0 5px 14px rgba(95,145,43,.18);
  font-size:11px;
}
.drive-btn:hover { background:#b8ed54; }
.drive-btn.active { background:#e97963; }
.map-canvas { height:clamp(520px,67vh,720px); min-height:470px; background-color:#e1eadc; }
.route-active {
  top:14px;
  left:50%;
  max-width:calc(100% - 32px);
  overflow:hidden;
  padding:9px 15px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:999px;
  background:#073e2d;
  box-shadow:0 5px 18px rgba(9,44,30,.24);
  font-size:11px;
  font-weight:700;
  text-overflow:ellipsis;
}
.map-disclaimer { padding:11px 14px; background:#fbfcf8; font-size:10px; }
.navigation-guidance {
  left:14px;
  bottom:14px;
  border:2px solid #fff;
  border-radius:17px;
  box-shadow:0 12px 32px rgba(9,39,27,.27);
}
.guidance-maneuver-icon { flex-basis:64px; width:64px; height:64px; border-radius:17px; }
.guidance-current>div>strong { font-size:18px; }
.guidance-distance { font-size:13px; }
.hazard-pin { width:29px!important; height:29px!important; border-width:3px; box-shadow:0 3px 12px rgba(18,47,33,.3); }
.reports-panel { max-width:1360px; margin:23px auto 60px; padding:24px 26px; }
.reports-heading { align-items:center; }
.reports-panel .eyebrow { margin-bottom:8px; }
.reports-panel h2 { font-size:29px; letter-spacing:-1.2px; }
.report-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:17px; }
.report-item { min-width:0; min-height:85px; padding:12px; border-radius:13px; }
.report-main { min-width:0; }
.report-main strong, .report-main p { overflow:hidden; text-overflow:ellipsis; }
.report-main p { white-space:nowrap; }
.how { margin-top:56px; background:#eaf1e5; }

@media (max-width:1050px) {
  .hero { padding-inline:22px; }
  .workspace { grid-template-columns:minmax(285px,320px) minmax(0,1fr); gap:13px; padding-inline:22px; }
  .route-card, .filter-card { padding:15px; }
  .filter { font-size:9px; }
  .map-canvas { height:clamp(480px,64vh,650px); }
  .reports-panel { width:calc(100% - 44px); }
}
@media (max-width:850px) {
  .topbar { height:62px; }
  .hero { padding:27px 18px 17px; }
  .hero h1 { font-size:38px; }
  .hero-copy { max-width:530px; }
  .status-pill { margin-top:13px; }
  .workspace { display:flex; flex-direction:column; gap:12px; padding-inline:12px; }
  .sidebar { display:contents; }
  .route-card { order:0; width:100%; padding:17px; }
  .map-panel { order:1; width:100%; }
  .sidebar .filter-card { order:2; width:100%; padding:16px; }
  .sidebar .report-btn { order:3; width:100%; }
  .sidebar .safe-note { order:4; }
  .map-toolbar { min-height:54px; height:auto; flex-wrap:wrap; gap:5px; padding:7px 9px; }
  .map-toolbar>span { display:none; }
  .map-toolbar .locate { margin-left:auto; }
  .map-toolbar .drive-btn { width:100%; min-height:43px; }
  .map-canvas { height:58svh; min-height:390px; max-height:650px; }
  .reports-panel { width:calc(100% - 24px); margin:14px 12px 36px; padding:20px 16px; }
  .report-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .topbar { height:58px; padding-inline:14px; }
  .brand { font-size:18px; }
  .brand-mark { width:32px; height:32px; border-radius:10px; }
  .topbar .profile-btn { width:33px; height:33px; }
  .hero { padding:22px 15px 14px; }
  .hero .eyebrow { margin-bottom:8px; font-size:9px; }
  .hero h1 { font-size:33px; letter-spacing:-1.5px; }
  .hero-copy { margin-top:8px; font-size:12px; }
  .status-pill { padding:9px 12px; font-size:10px; }
  .workspace { gap:10px; padding-inline:9px; }
  .route-card { padding:15px; border-radius:16px; }
  .card-label { margin-bottom:12px; }
  .location-row { min-height:58px; padding:9px 10px; }
  .filter-card { padding:14px!important; border-radius:16px; }
  .filter-list { gap:5px; }
  .filter { min-height:38px; padding:4px; font-size:9px; }
  .filter-icon { flex-basis:23px; width:23px; height:23px; margin-right:5px; font-size:13px; }
  .search { min-height:39px; }
  .map-panel { border-radius:16px; }
  .map-toolbar { min-height:50px; }
  .map-toolbar .map-tool, .map-toolbar .traffic-toggle { min-height:34px; padding:5px 9px; }
  .map-toolbar .locate { min-height:34px; padding:5px 7px; font-size:10px; }
  .map-toolbar .drive-btn { min-height:43px; }
  .map-canvas { height:54svh; min-height:350px; max-height:560px; }
  .route-active { top:10px; max-width:calc(100% - 22px); padding:8px 11px; font-size:9px; }
  .navigation-guidance { left:8px; bottom:8px; width:calc(100% - 16px); }
  .navigation-guidance .guidance-current { min-height:82px; padding:9px 11px; gap:10px; }
  .navigation-guidance .guidance-maneuver-icon { flex-basis:52px; width:52px; height:52px; border-radius:14px; }
  .navigation-guidance .guidance-maneuver-icon svg { width:42px; height:42px; }
  .navigation-guidance .guidance-current>div>strong { font-size:15px; }
  .navigation-guidance .guidance-distance { font-size:12px; }
  .map-disclaimer { padding:9px 10px; font-size:9px; }
  .hazard-alert-legend { padding:9px 8px; }
  .reports-panel { width:calc(100% - 18px); margin:10px 9px 27px; padding:16px 12px; border-radius:16px; }
  .reports-heading { display:flex; gap:7px; align-items:center; }
  .reports-heading .eyebrow { font-size:8px; letter-spacing:.9px; }
  .reports-panel h2 { font-size:23px; }
  .trust-summary { flex:0 0 auto; margin:0 0 0 auto; text-align:right; }
  .trust-summary strong { font-size:22px; }
  .report-list { grid-template-columns:1fr; gap:7px; margin-top:13px; }
  .report-item { min-height:68px; padding:10px; }
  .report-meta { gap:5px; }
  .how { margin-top:34px; padding:42px 16px; }
  .how h2 { font-size:29px; }
  .steps { margin-top:23px; gap:9px; }
  .steps>div { padding:13px; border-radius:13px; }
}

/* Responsive expression of the approved map-first layout on phone screens. */
@media (max-width:850px) {
  .hero {
    max-width: 760px;
    padding: 14px 15px 10px;
    align-items: center;
  }
  .hero .eyebrow { margin-bottom: 5px; font-size: 8px; letter-spacing: 1.35px; }
  .hero h1 { max-width: 420px; font-size: 27px; line-height: 1.04; letter-spacing: -1.1px; }
  .hero-copy, .status-pill { display: none; }
  .workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "planner" "map" "hazards" "report" "safe";
    gap: 9px;
    padding-inline: 12px;
  }
  .sidebar { display: contents; }
  .route-card { grid-area: planner; width: 100%; padding: 12px 13px; border-radius: 15px; }
  .map-panel { grid-area: map; width: 100%; min-width: 0; }
  .sidebar .filter-card { grid-area: hazards; width: 100%; padding: 13px; }
  .sidebar .report-btn { grid-area: report; width: 100%; }
  .sidebar .safe-note { grid-area: safe; }
  .card-label { margin: 0 0 7px; font-size: 9px; }
  .location-row { min-height: 47px; gap: 8px; margin: 4px 0; padding: 6px 9px; border-radius: 10px; }
  .location-row small { margin-bottom: 1px; font-size: 8px; }
  .location-field input { min-height: 21px; font-size: 12px; }
  .voice-btn { min-height: 27px; }
  .route-line { height: 6px; margin: -3px 0 -1px 5px; }
  .route-btn { min-height: 42px; margin-top: 8px; }
  .route-summary { margin-top: 6px; font-size: 10px; }
  .community-place-btn { min-height: 34px; margin-top: 7px; }
  .map-toolbar { min-height: 47px; }
  .map-toolbar .drive-btn { min-height: 41px; }
  .map-canvas { height: min(57svh, 520px); min-height: 360px; max-height: 520px; }
  .filter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-btn { min-height: 43px; }
}

@media (max-width:600px) {
  .topbar { height: 54px; padding-inline: 13px; }
  .topbar nav { gap: 12px; font-size: 10px; }
  .topbar nav a { padding-block: 8px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand-mark { width: 29px; height: 29px; }
  .topbar .profile-btn { width: 30px; height: 30px; }
  .hero { padding: 11px 13px 8px; }
  .hero h1 { font-size: 24px; }
  .workspace { gap: 8px; padding-inline: 8px; }
  .route-card { padding: 10px 11px; border-radius: 13px; }
  .location-row { min-height: 43px; margin: 3px 0; padding: 5px 8px; }
  .route-btn { min-height: 40px; }
  .map-panel { border-radius: 14px; }
  .map-toolbar { min-height: 44px; padding: 6px 8px; }
  .map-canvas { height: min(58svh, 490px); min-height: 340px; max-height: 490px; }
  .filter-card { padding: 11px!important; }
  .filter { min-height: 36px; }
  .reports-panel { margin-top: 12px; }
}
