:root {
  --red: #c40016;
  --red-dark: #92000f;
  --ink: #15171a;
  --muted: #707782;
  --line: #e7e9ee;
  --bg: #f6f7f9;
  --panel: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f4f6;
    --muted: #aeb4bd;
    --line: #2b3038;
    --bg: #101216;
    --panel: #171a20;
  }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { text-decoration: none; }
.app-shell { min-height: 100vh; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.container { max-width: 980px; }
#appContent { transition: opacity .18s ease; }
#appContent.is-loading { opacity: .45; pointer-events: none; }

.hero {
  min-height: calc(100dvh - 82px - env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 84% 18%, rgba(196,0,22,.35), transparent 20rem),
    radial-gradient(circle at 12% 80%, rgba(255,255,255,.12), transparent 16rem),
    linear-gradient(145deg, #171717 0%, #252932 56%, #8f0010 140%);
  color: #fff;
  padding: 28px 0;
}
.brand-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 42px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--red);
  font-weight: 800;
}
.brand-row span { display: block; color: #cbd0d8; font-size: 14px; }
.hero-content h1 {
  max-width: 760px;
  font-size: clamp(32px, 7vw, 60px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: 0;
}
.hero-content p { max-width: 560px; color: #e3e6eb; font-size: 18px; }
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}
.home-action {
  min-height: 168px;
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.home-action i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  font-size: 18px;
}
.home-action span { font-size: 30px; font-weight: 800; }
.home-action small { color: rgba(255,255,255,.84); margin-top: 8px; }
.home-action.emergency { background: var(--red); }
.home-action.driver { background: #111318; border: 1px solid rgba(255,255,255,.12); }
.admin-link { margin-top: 18px; }
.admin-link a { color: #fff; opacity: .8; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(15,23,42,.06);
}
.panel h1 {
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: 0;
}
.muted { color: var(--muted); }
.form-control, .form-select, .btn { border-radius: 8px; min-height: 46px; }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red-dark); border-color: var(--red-dark); }
.map { position: relative; width: 100%; height: 420px; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; background: #dfe3e8; }
.map::after {
  content: "AcilYardim.com";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: rgba(196,0,22,.055);
  font-weight: 900;
  font-size: clamp(28px, 7vw, 72px);
  transform: rotate(-18deg);
  z-index: 450;
  letter-spacing: 0;
}
.map-brand-control {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,.92);
  color: #15171a;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 8px 22px rgba(15,23,42,.12);
  font-size: 12px;
  font-weight: 900;
}
.leaflet-control-attribution {
  display: none !important;
}
.map-label-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto !important;
  height: auto !important;
}
.map-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f5f6f8);
  border: 2px solid rgba(196,0,22,.88);
  box-shadow: 0 8px 22px rgba(15,23,42,.24);
}
.map-symbol svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  color: var(--red);
}
.map-label {
  max-width: 116px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(21,23,26,.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15,23,42,.18);
}
.map-label-icon.destination .map-symbol {
  border-color: #1f7a4d;
  color: #1f7a4d;
}
.map-label-icon.tow .map-symbol {
  border-color: #111318;
  background: linear-gradient(135deg, #15171a, #c40016);
  color: #fff;
}
.map-label-icon.tow .map-symbol svg {
  color: #fff;
}
.map-photo-symbol {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #15171a, #c40016);
  box-shadow: 0 10px 24px rgba(15,23,42,.28);
}
.map-photo-symbol img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #fff;
}
.tow-map-popup {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  min-width: 210px;
  align-items: center;
}
.tow-map-popup img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196,0,22,.2);
}
.tow-map-popup strong,
.tow-map-popup span,
.tow-map-popup small {
  display: block;
}
.tow-map-popup span,
.tow-map-popup small {
  color: #5d6470;
  margin-top: 2px;
}
.map-toolbar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.address-search-wrap {
  position: relative;
}
.address-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 700;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 38px rgba(15,23,42,.16);
}
.address-result {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 12px;
}
.address-result:last-child {
  border-bottom: 0;
}
.address-result strong {
  display: block;
  font-size: 14px;
}
.address-result span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.address-result:hover,
.address-result:focus {
  background: rgba(196,0,22,.08);
  outline: none;
}
.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  font-size: 12px;
}
.stepper span {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 6px;
  color: var(--muted);
  background: var(--panel);
}
.stepper .active { color: #fff; background: var(--red); border-color: var(--red); }
.stepper .done { color: var(--red); border-color: rgba(196,0,22,.35); }
.summary-line, .price-box div, .switch-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.price-box span { color: var(--muted); }
.price-box strong { text-align: right; }
.tow-card, .request-row, .admin-card, .driver-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-top: 10px;
  color: var(--ink);
  background: var(--panel);
}
.tow-card header, .tow-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.pro-tow-card {
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.tow-card-main {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}
.avatar-md, .avatar-lg {
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(196,0,22,.12);
  background: #fff;
}
.avatar-md {
  width: 58px;
  height: 58px;
}
.avatar-lg {
  width: 74px;
  height: 74px;
}
.tow-card-main small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.tow-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.tow-stats span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--ink);
  background: rgba(15,23,42,.02);
}
.tow-detail-hero {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #15171a 0%, #30343b 58%, #c40016 150%);
  border-radius: 8px;
  padding: 18px;
}
.tow-detail-hero img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.22);
}
.tow-detail-hero h1 {
  margin: 4px 0;
  font-size: 24px;
}
.tow-detail-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
}
.tow-description {
  color: var(--muted);
  margin: 14px 2px 0;
}
.tow-card span, .request-row span, .admin-card span, .driver-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.status-pill {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(196,0,22,.1);
  color: var(--red);
  padding: 7px 12px;
  margin-bottom: 12px;
  font-weight: 700;
}
.loading, .empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
}
.auth-panel { max-width: 480px; margin: 0 auto; }
.home-page,
.auth-page,
.map-select-page {
  min-height: 100dvh;
  overflow: hidden;
}
.home-page .app-shell,
.auth-page .app-shell {
  height: 100dvh;
  min-height: 100dvh;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.home-page #appContent {
  height: calc(100dvh - 78px - env(safe-area-inset-bottom));
  overflow: hidden;
}
.auth-page {
  background:
    radial-gradient(circle at 84% 18%, rgba(196,0,22,.35), transparent 20rem),
    radial-gradient(circle at 12% 80%, rgba(255,255,255,.12), transparent 16rem),
    linear-gradient(145deg, #171717 0%, #252932 56%, #8f0010 140%);
}
.auth-page #appContent {
  height: calc(100dvh - 64px - 78px - env(safe-area-inset-bottom));
  display: grid;
  align-items: center;
  overflow: hidden;
}
.auth-page .container {
  width: 100%;
}
.auth-page .auth-panel {
  width: min(100%, 430px);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 42px rgba(15,23,42,.18);
  backdrop-filter: blur(18px);
}
.auth-page .auth-panel h1 {
  font-size: 24px;
}
.auth-page .auth-panel .mb-3 {
  margin-bottom: 10px !important;
}
.auth-page .auth-panel .form-control,
.auth-page .auth-panel .btn {
  min-height: 44px;
}
.map-select-page .app-shell {
  height: 100dvh;
  min-height: 100dvh;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.map-select-page #appContent {
  height: calc(100dvh - 64px - 78px - env(safe-area-inset-bottom));
  overflow: hidden;
}
.map-flow-container {
  position: relative;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
  background: #dfe3e8;
}
.full-screen-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.map-flow-container .flow-stepper {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  z-index: 720;
  padding: 6px;
  border: 1px solid rgba(231,233,238,.82);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 34px rgba(15,23,42,.14);
  backdrop-filter: blur(16px);
}
.map-flow-container .flow-stepper span {
  min-width: 0;
  padding: 8px 5px;
  font-size: 11px;
  border: 0;
  background: transparent;
}
.map-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 730;
  max-width: 620px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(231,233,238,.9);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 54px rgba(15,23,42,.24);
  backdrop-filter: blur(18px);
}
.map-sheet h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}
.map-sheet p {
  margin: 4px 0 12px;
  font-size: 13px;
  line-height: 1.35;
}
.map-sheet label {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}
.map-sheet .form-control {
  min-height: 44px;
  font-size: 15px;
}
.map-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.map-sheet-actions .btn {
  min-height: 44px;
  padding-inline: 8px;
}
.map-sheet-actions .btn:only-child {
  grid-column: 1 / -1;
}
.flow-hidden-action {
  display: none !important;
}
.map-select-page .address-results {
  max-height: 240px;
  z-index: 900;
  bottom: calc(100% + 6px);
  top: auto;
}
.metric-grid, .nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.metric-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.metric-grid strong { display: block; font-size: 28px; }
.metric-grid span { color: var(--muted); }
.inline-actions { display: flex; gap: 8px; margin-top: 10px; }

.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
@media (prefers-color-scheme: dark) {
  .mobile-topbar { background: rgba(23,26,32,.92); }
}
.mobile-topbar strong { display: block; font-size: 16px; line-height: 1.1; }
.mobile-topbar span { color: var(--muted); font-size: 12px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}
.notify-button i {
  font-size: 16px;
  color: var(--muted);
}
.notify-button i.has-unread { color: var(--red); }
.notification-drawer {
  position: sticky;
  top: 64px;
  z-index: 850;
  margin: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(15,23,42,.16);
  overflow: hidden;
}
.notification-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.notification-list { max-height: 320px; overflow: auto; }
.notification-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.notification-item.unread { background: rgba(196,0,22,.06); }
.notification-item p { margin: 4px 0; color: var(--muted); }
.notification-item small { color: var(--muted); }

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 5px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 34px rgba(15,23,42,.08);
  backdrop-filter: blur(20px);
}
@media (prefers-color-scheme: dark) {
  .mobile-bottom-nav { background: rgba(16,18,22,.94); }
}
.mobile-bottom-nav a,
.mobile-bottom-nav button {
  min-height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--muted);
  border: 0;
  background: transparent;
  font: inherit;
}
.mobile-bottom-nav a i,
.mobile-bottom-nav button i {
  font-size: 18px;
  line-height: 1;
}
.mobile-bottom-nav a small,
.mobile-bottom-nav button small {
  font-size: 10px;
  margin-top: 3px;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav button.primary-action {
  background: rgba(196,0,22,.11);
  color: var(--red);
  font-weight: 800;
}
.mobile-bottom-nav a.logout-nav {
  background: rgba(196,0,22,.08);
  color: var(--red);
  font-weight: 800;
}
.flow-action-nav {
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 7px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
}
.flow-action-nav button {
  min-height: 58px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.flow-action-nav button.primary-action {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(196,0,22,.25);
}
.flow-action-nav button:not(.primary-action):active,
.flow-action-nav button:not(.primary-action):focus {
  background: rgba(196,0,22,.08);
  color: var(--red);
}

.page-with-nav { padding-bottom: 16px; }
.screen-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.screen-actions .btn {
  flex: 1;
  background: var(--panel);
  border-color: var(--line);
}
.mission-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: linear-gradient(135deg, #15171a 0%, #30343b 58%, #c40016 150%);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15,23,42,.18);
}
.mission-hero h1 {
  margin: 4px 0 6px;
  font-size: 24px;
  line-height: 1.12;
}
.mission-hero p { margin: 0; color: rgba(255,255,255,.78); }
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
}
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 12px;
  text-align: center;
}
.compact-panel { padding: 12px; }
.mission-map, .live-map { height: 390px; }
.section-title {
  font-size: 17px;
  margin: 0 0 12px;
}
.route-summary {
  display: grid;
  gap: 8px;
}
.route-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.route-summary span, .driver-live-card span { color: var(--muted); font-size: 13px; }
.route-summary strong { text-align: right; }
.driver-live-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}
.driver-live-card:hover {
  color: var(--ink);
  border-color: rgba(196,0,22,.45);
}
.driver-live-card strong { display: block; font-size: 18px; }
.driver-live-card small { display: block; color: var(--muted); margin-top: 3px; }
.pulse-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1db954;
  box-shadow: 0 0 0 0 rgba(29,185,84,.55);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 14px rgba(29,185,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,185,84,0); }
}
.status-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.status-action-grid .full { grid-column: 1 / -1; }
.live-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(76px + env(safe-area-inset-top));
  z-index: 1200;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  padding: 13px 14px;
  box-shadow: 0 18px 42px rgba(15,23,42,.24);
  transition: .22s ease;
  font-weight: 800;
}
.live-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.dashboard-page {
  background:
    radial-gradient(circle at top right, rgba(196,0,22,.12), transparent 32rem),
    var(--bg);
}
.dashboard-page .panel {
  box-shadow: 0 18px 46px rgba(15,23,42,.08);
}
.admin-card {
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.admin-card strong,
.request-row strong {
  font-size: 15px;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.admin-metrics a {
  display: block;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}
.admin-metrics strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}
.admin-metrics span {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.admin-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 8px;
}
.admin-feed-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.admin-feed-row small {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(196,0,22,.08);
  color: var(--red);
  white-space: nowrap;
}

@media (max-width: 700px) {
  html, body { min-height: 100%; }
  .hero {
    height: 100%;
    min-height: 0;
    align-items: stretch;
    padding: calc(16px + env(safe-area-inset-top)) 0 12px;
    overflow: hidden;
  }
  .hero .container { display: flex; flex-direction: column; }
  .brand-row { margin-bottom: 18px; }
  .home-page .brand-row {
    flex: 0 0 auto;
  }
  .brand-mark { width: 44px; height: 44px; }
  .hero-content {
    display: none;
  }
  .hero-content h1 {
    font-size: clamp(28px, 7.4vw, 38px);
    line-height: 1.05;
  }
  .hero-content p {
    font-size: 16px;
    line-height: 1.42;
    margin-bottom: 0;
  }
  .action-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: clamp(18px, 8dvh, 52px);
    padding-top: 8px;
  }
  .home-action {
    min-height: 124px;
    padding: 18px;
  }
  .home-action span { font-size: 25px; }
  .admin-link {
    display: none;
  }
  .auth-page .mobile-topbar {
    position: fixed;
    left: 0;
    right: 0;
  }
  .auth-page #appContent {
    height: calc(100dvh - 66px - 78px - env(safe-area-inset-bottom));
    padding-top: 0;
  }
  .auth-page .container {
    padding-inline: 14px;
  }
  .auth-page .auth-panel {
    padding: 16px;
  }
  .stepper { overflow-x: auto; grid-template-columns: repeat(5, minmax(82px, 1fr)); padding-bottom: 4px; }
  .map { height: 360px; }
  .map-select-page .mobile-topbar {
    position: fixed;
    left: 0;
    right: 0;
  }
  .map-select-page #appContent {
    height: calc(100dvh - 64px - 78px - env(safe-area-inset-bottom));
    padding-top: 0;
  }
  .map-flow-container {
    min-height: 0;
    height: 100%;
  }
  .map-sheet {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
    border-radius: 16px;
  }
  .map-sheet h1 { font-size: 18px; }
  .map-sheet p { display: none; }
  .map-sheet-actions { grid-template-columns: 1fr; }
  .map-flow-container .flow-stepper {
    top: calc(8px + env(safe-area-inset-top));
    left: 10px;
    right: 10px;
  }
  .map-flow-container .flow-stepper span {
    font-size: 10px;
    padding: 7px 4px;
  }
  .panel { padding: 15px; }
  .mission-map, .live-map { height: 350px; }
  .mission-hero { padding: 16px; }
  .mission-hero h1 { font-size: 21px; }
  .status-action-grid { grid-template-columns: 1fr; }
  .route-summary div { display: block; }
  .route-summary strong { display: block; text-align: left; margin-top: 3px; }
  .tow-detail-hero { grid-template-columns: 74px 1fr; }
  .tow-detail-hero .status-chip { grid-column: 1 / -1; width: 100%; }
  .tow-detail-hero img { width: 74px; height: 74px; }
  .tow-card footer { display: grid; grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-action-grid { grid-template-columns: 1fr; }
  .admin-feed-row { align-items: flex-start; }
}
