:root {
  --ink: #271c15;
  --muted: #8a7567;
  --soft: #b49a87;
  --paper: #fff9f1;
  --cream: #fff4df;
  --surface: rgba(255, 255, 255, .86);
  --orange: #f58a2e;
  --orange-2: #ffb257;
  --yellow: #ffd66b;
  --brown: #7c4a28;
  --coffee: #4b2e1f;
  --line: rgba(124, 74, 40, .16);
  --green: #4ea65b;
  --red: #d95745;
  --blue: #3185ff;
  --shadow: 0 24px 70px rgba(39, 28, 21, .16);
  --soft-shadow: 0 16px 42px rgba(39, 28, 21, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 214, 107, .44), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(245, 138, 46, .20), transparent 28rem),
    linear-gradient(135deg, #fff9f1 0%, #f3dfca 100%);
}

@keyframes pulsePin {
  0%, 100% { box-shadow: 0 12px 24px rgba(39, 28, 21, .22), 0 0 0 0 rgba(78, 166, 91, .24); }
  50% { box-shadow: 0 12px 24px rgba(39, 28, 21, .22), 0 0 0 10px rgba(78, 166, 91, 0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: #fff8ec;
  background: linear-gradient(180deg, #3b2418, #5a3420);
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 16px;
  color: var(--coffee);
  background: #fff8ec;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.brand-mark img,
.success-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-nav {
  display: grid;
  gap: 8px;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: rgba(255, 248, 236, .76);
  background: transparent;
  border: 0;
  border-radius: 16px;
  text-align: left;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.rail-item:hover,
.rail-item.is-active {
  color: #fff8ec;
  background: rgba(255, 255, 255, .10);
  transform: translateX(2px);
}

[data-icon] svg {
  display: block;
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2;
}

.rail-card {
  margin-top: auto;
  width: 100%;
  color: inherit;
  text-align: left;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  transition: background .18s ease, transform .18s ease;
}

.rail-card:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}

.rail-card strong,
.rail-card small {
  display: block;
}

.rail-card small {
  margin-top: 4px;
  color: rgba(255, 248, 236, .68);
}

.mini-label,
.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workspace {
  padding: clamp(18px, 3vw, 36px);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.topbar h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .96;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-switch {
  display: inline-flex;
  gap: 4px;
  min-height: 48px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.platform-switch button {
  min-width: 68px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.platform-switch button:hover,
.platform-switch button.is-active {
  color: var(--ink);
  background: #fff0cf;
  transform: translateY(-1px);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.status-strip article {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .54);
  box-shadow: 0 12px 30px rgba(39, 28, 21, .07);
  backdrop-filter: blur(16px);
}

.status-strip span,
.status-strip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.status-strip strong {
  margin-top: 4px;
  font-size: 15px;
}

.icon-button,
.round-fab,
.back-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.icon-button:hover,
.icon-button.is-active,
.round-fab:hover,
.back-button:hover,
.primary-action:hover,
.wide-action:hover,
.parking-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(39, 28, 21, .16);
}

.icon-button.is-active {
  color: #fff8ec;
  background: var(--ink);
}

.icon-button.small {
  width: 42px;
  height: 42px;
  box-shadow: none;
}

.notification-button {
  position: relative;
}

.badge-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #fff8ec;
  background: var(--red);
  border: 2px solid #fff8ec;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.primary-action,
.ghost-action,
.wide-action,
.secondary-wide,
.parking-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 17px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.primary-action,
.wide-action {
  color: #fff8ec;
  background: var(--ink);
  box-shadow: 0 16px 34px rgba(39, 28, 21, .22);
}

.ghost-action,
.secondary-wide {
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(124, 74, 40, .14);
}

.danger-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  color: var(--red);
  background: #fff4f1;
  border: 1px solid rgba(217, 87, 69, .20);
  border-radius: 17px;
  font-weight: 900;
}

.wide-action[hidden],
.secondary-wide[hidden],
.danger-wide[hidden] {
  display: none !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(390px, 1.04fr) minmax(360px, 430px) minmax(330px, .92fr);
  gap: 24px;
  align-items: stretch;
}

.map-panel,
.results-panel,
.phone-stage,
.tablet-mock,
.desktop-mock {
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 34px;
  background: rgba(255, 255, 255, .42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.map-panel {
  min-height: 760px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.map-toolbar {
  position: absolute;
  z-index: 4;
  top: 28px;
  left: 28px;
  right: 28px;
  display: flex;
  gap: 12px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.search-pill input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 800;
}

.filter-bar {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-bar.is-open {
  display: grid;
}

.filter-chip {
  min-height: 38px;
  color: var(--brown);
  background: rgba(255, 240, 207, .74);
  border: 1px solid rgba(124, 74, 40, .12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
}

.filter-chip.is-active {
  color: #fff8ec;
  background: var(--ink);
}

.real-map,
.mobile-map,
.detail-map {
  position: relative;
  overflow: hidden;
  background: #f4e7d7;
  isolation: isolate;
}

.leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .24s ease;
}

.map-is-live .leaflet-map {
  opacity: 1;
}

.map-is-live .tile-grid,
.map-is-live > .pin,
.map-is-live > .map-label,
.map-is-live > .route-line {
  display: none;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  color: var(--ink);
  background: #f4e7d7;
  font-family: inherit;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: var(--soft-shadow) !important;
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
  background: rgba(255, 255, 255, .92) !important;
  border: 0 !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.leaflet-popup-content {
  margin: 12px 14px;
  color: var(--ink);
  font-weight: 800;
}

.phone .leaflet-marker-icon {
  pointer-events: none !important;
}

.parqueen-marker {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(39, 28, 21, .24);
  font-size: 15px;
  font-weight: 950;
}

.parqueen-marker.is-busy {
  background: var(--red);
}

.parqueen-marker.is-community {
  background: var(--brown);
}

.user-marker {
  display: block;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(49, 133, 255, .18), 0 8px 18px rgba(49, 133, 255, .24);
}

.real-map {
  width: 100%;
  height: 100%;
  min-height: 728px;
  border-radius: 26px;
}

.tile-grid {
  position: absolute;
  inset: -10%;
  display: grid;
  grid-template-columns: repeat(var(--map-cols, 4), 1fr);
  grid-auto-rows: calc(100% / var(--map-cols, 4));
  opacity: .94;
  filter: saturate(.92) contrast(1.02);
  transform: scale(1.04);
}

.tile-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.real-map::after,
.mobile-map::after,
.detail-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 244, 223, .28), rgba(255, 249, 241, .10)),
    radial-gradient(circle at 70% 20%, rgba(255, 214, 107, .22), transparent 24rem);
}

.route-line {
  position: absolute;
  z-index: 2;
  left: 13%;
  top: 68%;
  width: 54%;
  height: 28%;
  border-top: 8px solid var(--blue);
  border-right: 8px solid var(--blue);
  border-radius: 0 80px 0 0;
  transform: rotate(-19deg);
  filter: drop-shadow(0 4px 10px rgba(49, 133, 255, .28));
}

.pin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  border: 3px solid white;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(39, 28, 21, .22);
  transition: transform .18s ease;
}

.pin:hover {
  transform: scale(1.1);
}

.pin.available {
  background: var(--green);
  animation: pulsePin 2.8s ease-in-out infinite;
}

.pin.busy {
  background: var(--red);
}

.pin.reported {
  background: var(--brown);
}

.map-label,
.map-credit {
  position: absolute;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 18px rgba(39, 28, 21, .10);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.live-map-card {
  position: absolute;
  z-index: 4;
  left: 24px;
  bottom: 24px;
  max-width: 260px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.live-map-card span,
.live-map-card small,
.live-map-card strong {
  display: block;
}

.live-map-card span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-map-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.map-credit {
  right: 12px;
  bottom: 10px;
  color: var(--muted);
  font-size: 10px;
}

.phone-stage {
  display: grid;
  place-items: center;
  padding: 28px 20px;
}

.phone {
  position: relative;
  width: min(390px, 100%);
  height: 844px;
  overflow: hidden;
  border: 1px solid rgba(124, 74, 40, .22);
  border-radius: 44px;
  background: var(--paper);
  box-shadow: 0 34px 80px rgba(39, 28, 21, .24);
}

.phone::before {
  display: none;
  content: none;
}

.phone-status {
  display: none;
}

.phone-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px) scale(.985);
  pointer-events: none;
  transition: opacity .32s ease, transform .32s ease;
}

.phone-screen.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.auth-screen {
  position: relative;
  display: grid;
  align-content: start;
  gap: 22px;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px 24px 116px;
  background:
    linear-gradient(180deg, #fffaf4 0%, #fff8ee 54%, #f7ebdc 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 105, 75, .35) transparent;
  -webkit-overflow-scrolling: touch;
}

.auth-screen::-webkit-scrollbar {
  width: 6px;
}

.auth-screen::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 105, 75, .35);
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0 76px, rgba(124, 74, 40, .055) 76px 77px, transparent 77px 152px),
    linear-gradient(0deg, transparent 0 92px, rgba(124, 74, 40, .045) 92px 93px, transparent 93px 184px);
  opacity: .55;
}

.auth-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 24px;
  right: 24px;
  top: 154px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 74, 40, .18), transparent);
}

.auth-hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 320px;
  padding-top: 16px;
}

.auth-hero.compact {
  padding-top: 6px;
}

.auth-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 24px;
}

.auth-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  line-height: .96;
}

.auth-hero p,
.auth-switch {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 720;
}

.auth-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(39, 28, 21, .12);
  backdrop-filter: blur(18px);
}

.social-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  color: var(--ink);
  border: 1px solid rgba(39, 28, 21, .10);
  border-radius: 17px;
  background: #fff;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.social-auth:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.social-auth.muted {
  color: var(--muted);
  background: rgba(255, 249, 241, .82);
}

.social-auth:disabled,
.wide-action:disabled,
.secondary-wide:disabled {
  cursor: wait;
  opacity: .72;
}

.google-g {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, .20);
  border-radius: 999px;
  background: white;
  font-weight: 950;
}

.auth-input {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.auth-input input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  outline: 0;
  font-weight: 850;
}

.auth-switch {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  text-align: center;
}

.auth-switch button {
  color: var(--brown);
  border: 0;
  background: transparent;
  font-weight: 950;
}

.auth-complete {
  position: relative;
  background:
    linear-gradient(180deg, #fffaf4 0%, #fff8ee 54%, #f7ebdc 100%),
    var(--paper);
}

.auth-complete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 76px, rgba(124, 74, 40, .045) 76px 77px, transparent 77px 152px),
    linear-gradient(0deg, transparent 0 92px, rgba(124, 74, 40, .04) 92px 93px, transparent 93px 184px);
  opacity: .5;
}

.auth-complete > * {
  position: relative;
  z-index: 1;
}

.auth-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--coffee);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--yellow), var(--orange-2));
  box-shadow: var(--soft-shadow);
  font-weight: 950;
  background-size: cover;
  background-position: center;
}

.auth-avatar.large {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  font-size: 24px;
}

.auth-avatar.has-photo,
.avatar.has-photo {
  color: transparent;
  background-size: cover;
  background-position: center;
}

.photo-editor {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid rgba(139, 105, 75, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--soft-shadow);
}

.photo-editor strong,
.photo-editor small {
  display: block;
}

.photo-editor small {
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.photo-editor button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--brown);
  border: 1px solid rgba(124, 74, 40, .14);
  border-radius: 12px;
  background: #fff0cf;
  font-size: 12px;
  font-weight: 900;
}

.profile-form {
  margin-top: 18px;
}

.profile-form label {
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
}

.profile-form input,
.profile-form select {
  width: 100%;
  max-width: none;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(39, 28, 21, .18);
  border-top-color: currentColor;
  border-radius: 999px;
  animation: spin .7s linear infinite;
}

.phone.is-auth .phone-nav {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.phone.is-business-app .phone-nav {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.business-auth {
  background:
    linear-gradient(180deg, #fffaf4 0%, #f8eddf 52%, #efe0cd 100%);
}

.business-auth .auth-mark {
  color: #fff8ec;
  background: linear-gradient(135deg, var(--coffee), var(--brown));
}

.mobile-map {
  width: 100%;
  height: 100%;
}

.floating-search {
  position: absolute;
  z-index: 4;
  top: 58px;
  left: 18px;
  right: 86px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 20px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--soft-shadow);
  font-weight: 800;
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, .76);
  color: var(--ink);
  text-align: left;
}

.floating-stack {
  position: absolute;
  z-index: 5;
  top: 56px;
  right: 18px;
  display: grid;
  gap: 12px;
}

.auto-search-card {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 82px;
  top: 126px;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.auto-search-card strong,
.auto-search-card small {
  display: block;
}

.auto-search-card strong {
  font-size: 14px;
  line-height: 1.18;
}

.auto-search-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
}

.auto-search-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 4px;
}

.auto-search-actions button:last-child {
  grid-column: 1 / -1;
}

.auto-search-actions button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--brown);
  border: 1px solid rgba(124, 74, 40, .14);
  border-radius: 13px;
  background: #fff0cf;
  font-size: 11px;
  font-weight: 900;
}

.auto-search-actions button:first-child {
  color: #fff8ec;
  background: var(--ink);
}

.bottom-sheet {
  position: absolute;
  z-index: 80;
  left: 14px;
  right: 14px;
  bottom: 104px;
  max-height: calc(100% - 188px);
  min-height: 304px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px 20px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 30px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 20px 54px rgba(39, 28, 21, .18);
  backdrop-filter: blur(22px);
  transition: min-height .24s ease, max-height .24s ease, transform .24s ease, opacity .2s ease;
  scrollbar-width: none;
  touch-action: pan-y;
}

.bottom-sheet::-webkit-scrollbar {
  display: none;
}

.bottom-sheet.is-expanded {
  min-height: 438px;
  max-height: calc(100% - 132px);
}

.bottom-sheet.is-peek {
  min-height: 92px;
  max-height: 92px;
  overflow: hidden;
}

.bottom-sheet.is-closed {
  transform: translateY(calc(100% - 42px));
}

.grabber {
  position: relative;
  display: block;
  width: 82px;
  height: 28px;
  margin: -6px auto 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: grab;
}

.grabber::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: #d8b99c;
  transform: translateX(-50%);
}

.grabber:active {
  cursor: grabbing;
}

.bottom-sheet h2,
.detail-content h2,
.mobile-page h2,
.tablet-sheet h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.bottom-sheet p,
.detail-content p,
.mobile-page p,
.tablet-sheet p,
.panel-card p {
  color: var(--muted);
}

.mini-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 249, 241, .84);
  transition: transform .18s ease, background .18s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  background: #fff7e7;
}

.sheet-actions,
.payment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.sheet-actions button,
.payment-row button,
.activity-panel button,
.notification-list button {
  min-height: 38px;
  color: var(--brown);
  background: rgba(255, 240, 207, .78);
  border: 1px solid rgba(124, 74, 40, .12);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}

.payment-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -8px;
}

.payment-row button.is-active {
  color: #fff8ec;
  background: var(--ink);
}

.mini-card img,
.parking-card img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 17px;
}

.mini-card strong,
.mini-card span,
.mini-card small {
  display: block;
}

.mini-card span {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.mini-card small {
  color: var(--green);
  font-weight: 800;
}

.mini-card.is-reported small {
  color: var(--orange);
}

.detail-hero {
  width: 100%;
  height: 292px;
  object-fit: cover;
}

.back-button {
  position: absolute;
  z-index: 6;
  top: 22px;
  left: 18px;
}

.back-button.inline {
  position: static;
  margin-bottom: 18px;
}

.detail-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 552px;
  max-height: calc(100% - 156px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 24px 128px;
  border-radius: 30px 30px 0 0;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 105, 75, .35) transparent;
  -webkit-overflow-scrolling: touch;
}

.detail-content::-webkit-scrollbar {
  width: 6px;
}

.detail-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 105, 75, .35);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.trust-strip-detail,
.trust-priority {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 13px 14px;
  border: 1px solid rgba(234, 191, 116, .55);
  border-radius: 20px;
  background: #fff3d4;
}

.trust-strip-detail span,
.trust-priority span {
  color: var(--brown);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.trust-strip-detail strong,
.trust-priority strong {
  color: var(--ink);
  font-size: 14px;
}

.trust-priority small {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.35;
}

.commerce-grid,
.reputation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.reputation-grid {
  grid-template-columns: 1fr;
}

.commerce-grid article,
.reputation-grid article,
.price-intel,
.slot-preview {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(139, 105, 75, .14);
  border-radius: 18px;
  background: rgba(255, 248, 236, .82);
}

.commerce-grid span,
.reputation-grid span,
.price-intel span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.commerce-grid strong,
.reputation-grid strong,
.price-intel strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.reputation-grid small,
.price-intel small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.price-intel {
  margin: 12px 0;
  background: linear-gradient(135deg, rgba(255, 240, 207, .92), rgba(255, 249, 241, .94));
}

.price-intel strong {
  color: var(--brown);
  font-size: 15px;
}

.section-head.compact {
  align-items: center;
}

.section-head.compact h3 {
  margin: 0;
  font-size: 15px;
}

.section-head.compact > strong {
  color: var(--green);
  font-size: 13px;
}

.slot-preview {
  margin: 12px 0;
  background: #fffaf1;
}

.slot-mini-map {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.slot-mini-map span {
  aspect-ratio: 1;
  border-radius: 7px;
  background: #ead9c7;
}

.slot-mini-map .is-free {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(68, 167, 88, .12);
}

.slot-mini-map .is-reserved {
  background: var(--yellow);
}

.slot-mini-map .is-busy {
  background: #d7c3af;
}

.slot-mini-map .is-unknown {
  background: repeating-linear-gradient(
    135deg,
    rgba(124, 74, 40, .28) 0 6px,
    rgba(255, 214, 107, .34) 6px 12px
  );
  border: 1px dashed rgba(124, 74, 40, .38);
}

.chip,
.success-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--brown);
  background: #fff0cf;
  font-size: 12px;
  font-weight: 800;
}

.chip {
  border: 0;
}

.chip.is-active {
  color: #fff8ec;
  background: var(--coffee);
}

.detail-map {
  width: 100%;
  height: 132px;
  border-radius: 22px;
  margin: 14px 0;
}

.detail-copy {
  font-size: 13px;
  line-height: 1.45;
}

.wide-action,
.secondary-wide {
  width: 100%;
  margin-top: 10px;
}

.mobile-page {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 24px 150px;
  background: var(--paper);
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 105, 75, .35) transparent;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.mobile-page::-webkit-scrollbar {
  width: 6px;
}

.mobile-page::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 105, 75, .35);
}

.mobile-page.center {
  text-align: center;
}

.search-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-weight: 850;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-grid button,
.smart-list button,
.profile-list button {
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--soft-shadow);
}

.category-grid button {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 16px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 900;
}

.smart-list,
.profile-list {
  display: grid;
  gap: 10px;
}

.smart-list button {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  color: var(--ink);
  text-align: left;
}

.smart-list span,
.profile-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.form-card,
.summary-card,
.ai-card {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.form-card label,
.summary-card span {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
}

.form-card input,
.form-card select {
  max-width: 168px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
  outline: 0;
}

.form-card strong,
.summary-card strong,
.summary-card b {
  color: var(--ink);
}

.profile-form label {
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
}

.profile-form input,
.profile-form select {
  width: 100%;
  max-width: none;
}

.business-page {
  background:
    radial-gradient(circle at 90% 4%, rgba(255, 214, 107, .32), transparent 15rem),
    var(--paper);
}

.business-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.business-top h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.business-top p {
  margin: 6px 0 0;
  line-height: 1.35;
}

#businessStatusDot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(78, 166, 91, .13);
}

#businessStatusDot.is-paused {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(217, 87, 69, .13);
}

.business-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.business-hero h2 {
  max-width: 320px;
  font-size: 28px;
}

.business-hero p {
  margin: 0;
  line-height: 1.42;
}

.business-status,
.business-card,
.business-form {
  border: 1px solid rgba(139, 105, 75, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--soft-shadow);
}

.business-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.business-status > span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(78, 166, 91, .13);
}

.business-status > span.is-paused {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(217, 87, 69, .13);
}

.business-status strong,
.business-status small {
  display: block;
}

.business-status small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
}

.business-status button,
.business-tabs button,
.business-actions button,
.business-card button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--brown);
  border: 1px solid rgba(124, 74, 40, .14);
  border-radius: 13px;
  background: #fff0cf;
  font-size: 12px;
  font-weight: 900;
}

.business-tabs {
  position: sticky;
  top: -28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0;
  padding: 5px;
  border: 1px solid rgba(139, 105, 75, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .90);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.business-tabs button {
  min-width: 0;
  padding: 0 6px;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.business-tabs button.is-active {
  color: #fff8ec;
  background: var(--ink);
}

.business-tab-panel {
  display: none;
  animation: slideIn .22s ease;
}

.business-tab-panel.is-active {
  display: block;
}

.business-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.business-metrics button {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(139, 105, 75, .14);
  border-radius: 18px;
  background: white;
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.business-metrics span,
.business-metrics strong {
  display: block;
}

.business-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.business-metrics strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
}

.business-form {
  margin: 12px 0;
  background: white;
}

.business-form label {
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
}

.business-form input,
.business-form select {
  width: 100%;
  max-width: none;
}

.business-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.business-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
}

.priority-card h3,
.priority-card p {
  margin: 0;
}

.priority-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.business-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ead9c7;
}

.business-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.business-ops-grid,
.slot-control-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.business-feed {
  display: grid;
  gap: 8px;
}

.business-feed article {
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--paper);
}

.business-feed strong,
.business-feed small {
  display: block;
}

.business-feed small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.business-slot-map {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.business-slot-map span {
  aspect-ratio: 1;
  border-radius: 7px;
  background: #d7c3af;
}

.business-slot-map .is-free {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(68, 167, 88, .11);
}

.business-slot-map .is-reserved {
  background: var(--yellow);
}

.business-range {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.business-range input {
  width: 100%;
  accent-color: var(--orange);
}

.business-range strong {
  color: var(--ink);
}

.business-reputation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.business-reputation strong {
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
}

.mobile-map.route {
  height: 100%;
}

.navigation-banner {
  position: absolute;
  z-index: 92;
  top: 64px;
  left: 18px;
  right: 18px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 24px;
  color: #fffaf1;
  background: linear-gradient(135deg, rgba(39, 28, 21, .96), rgba(88, 62, 40, .92));
  box-shadow: 0 20px 54px rgba(39, 28, 21, .24);
  transform: translateY(-18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

.navigation-banner strong {
  font-size: 20px;
  line-height: 1.12;
}

.navigation-banner span {
  color: rgba(255, 250, 241, .72);
  font-size: 12px;
  font-weight: 800;
}

.phone.is-navigating .navigation-banner {
  transform: translateY(0);
  opacity: 1;
}

.route-card {
  position: absolute;
  z-index: 88;
  left: 18px;
  right: 18px;
  bottom: 88px;
  max-height: calc(100% - 154px);
  padding: 10px 18px 18px;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  touch-action: pan-y;
  transition: max-height .28s ease, bottom .28s ease, transform .28s ease, background .28s ease;
}

.route-grabber {
  display: block;
  width: 68px;
  height: 24px;
  margin: 0 auto 6px;
  padding: 0;
  cursor: grab;
  background: transparent;
  border: 0;
}

.route-grabber::before {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin: 9px auto 0;
  border-radius: 999px;
  background: rgba(139, 105, 75, .42);
}

.route-card-body {
  max-height: 330px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 105, 75, .35) transparent;
}

.route-card-body::-webkit-scrollbar {
  width: 6px;
}

.route-card-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 105, 75, .35);
}

.route-card h2,
.route-card p {
  margin: 0 0 8px;
}

.route-card p {
  color: var(--muted);
  font-weight: 760;
}

.route-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}

.route-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(139, 105, 75, .16);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 248, 236, .72);
  font-size: 11px;
  font-weight: 800;
}

.route-stats strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone.is-navigating .route-card {
  bottom: 16px;
  max-height: 188px;
  background: rgba(255, 255, 255, .94);
}

.phone.is-navigating .route-card h2 {
  font-size: 22px;
}

.phone.is-navigating .route-card .route-card-body {
  max-height: 72px;
}

.phone.is-navigating .route-card.is-collapsed {
  max-height: 112px;
  transform: translateY(0);
}

.phone.is-navigating .route-card.is-collapsed .route-card-body {
  max-height: 0;
  overflow: hidden;
}

.phone.is-navigating .route-card.is-expanded {
  max-height: min(430px, calc(100% - 150px));
}

.phone.is-navigating .route-card.is-expanded .route-card-body {
  max-height: 302px;
}

.phone.is-navigating .route-card.is-hidden {
  max-height: 46px;
  transform: translateY(calc(100% - 46px));
}

.phone.is-navigating .route-card.is-hidden h2,
.phone.is-navigating .route-card.is-hidden p,
.phone.is-navigating .route-card.is-hidden .route-card-body {
  display: none;
}

.phone.is-navigating .phone-nav {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.phone.is-navigating .back-button {
  opacity: 0;
  pointer-events: none;
}

.route-progress {
  height: 7px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ead9c7;
}

.route-progress span {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 133, 255, .12);
  transition: width .48s ease;
}

.drive-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #3185ff;
  box-shadow: 0 14px 34px rgba(49, 133, 255, .34);
}

.drive-marker::before {
  content: "";
  width: 0;
  height: 0;
  border-right: 6px solid transparent;
  border-bottom: 14px solid currentColor;
  border-left: 6px solid transparent;
  transform: translateY(-1px);
}

.route-loading #routeProgress {
  animation: routePulse 1.2s ease-in-out infinite;
}

@keyframes routePulse {
  0%,
  100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 430px) {
  .navigation-banner {
    top: 54px;
    left: 12px;
    right: 12px;
    padding: 14px 16px;
  }

  .route-card {
    left: 12px;
    right: 12px;
    bottom: 82px;
    max-height: calc(100% - 130px);
    padding: 8px 15px 15px;
    border-radius: 22px;
  }

  .route-stats {
    grid-template-columns: 1fr;
  }

  .phone.is-navigating .route-card {
    bottom: 12px;
  }

  .phone.is-navigating .route-card.is-expanded {
    max-height: min(392px, calc(100% - 122px));
  }

  .phone.is-navigating .route-card.is-expanded .route-card-body {
    max-height: 270px;
  }
}

.qr-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 248px;
  height: 248px;
  padding: 20px;
  margin: 28px auto 18px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.qr-card span {
  border-radius: 7px;
  background: white;
}

.qr-card span:nth-child(2n),
.qr-card span:nth-child(5),
.qr-card span:nth-child(9) {
  background: var(--yellow);
}

.success-pill {
  color: var(--green);
  background: #eaf7e8;
}

.ai-card {
  background: #fff0cf;
}

.ai-card > [data-icon] {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: var(--yellow);
  background: var(--ink);
}

.ai-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ai-actions button,
.ai-input button,
.panel-card button,
.slot-head button {
  min-height: 38px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.ai-actions button.is-active {
  color: #fff8ec;
  background: var(--ink);
}

.ai-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.ai-input input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  font-weight: 800;
}

.chat {
  max-width: 85%;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 22px;
  font-size: 14px;
  line-height: 1.35;
}

.chat.user {
  margin-left: auto;
  background: white;
}

.chat.bot {
  color: #fff;
  background: var(--ink);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--coffee);
  background: linear-gradient(135deg, var(--yellow), var(--orange-2));
  border-radius: 22px;
  font-size: 22px;
  font-weight: 950;
  box-shadow: var(--soft-shadow);
  background-size: cover;
  background-position: center;
}

.profile-head small {
  display: block;
  margin-top: 4px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 900;
}

.profile-list button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  color: var(--ink);
  text-align: left;
}

.profile-list [data-icon] {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--orange);
  background: #fff0cf;
  border-radius: 14px;
}

.phone-nav {
  position: absolute;
  z-index: 12;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 28px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 14px 32px rgba(39, 28, 21, .14);
  backdrop-filter: blur(18px);
}

.phone-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 50px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
}

.phone-nav button.is-active {
  color: var(--ink);
  background: #fff0cf;
}

.results-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 760px;
  padding: 18px;
}

.panel-card,
.parking-card,
.activity-panel {
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 26px;
  background: rgba(255, 255, 255, .80);
  box-shadow: var(--soft-shadow);
}

.panel-card,
.activity-panel {
  padding: 20px;
}

.activity-panel h3 {
  margin: 0;
}

.activity-feed {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.activity-feed article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--paper);
  animation: slideIn .22s ease;
}

.activity-feed i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.activity-feed strong,
.activity-feed small {
  display: block;
}

.activity-feed small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.panel-card.hot {
  background: linear-gradient(135deg, #fff0cf, #fff9f1);
}

.panel-card button {
  width: 100%;
  margin-top: 12px;
  color: #fff8ec;
  background: var(--ink);
}

.panel-card h2,
.parking-card h3 {
  margin: 0;
}

.parking-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.parking-card:hover,
.parking-card.is-focused {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(39, 28, 21, .14);
}

.parking-card.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.parking-card img {
  height: 116px;
  border-radius: 20px;
}

.parking-card p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.parking-card button {
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
}

.available-dot,
.busy-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.busy-dot {
  color: var(--red);
}

.reported-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.available-dot::before,
.busy-dot::before,
.reported-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.responsive-showcase {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 24px;
  margin-top: 28px;
}

.tablet-mock {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.real-map.wide {
  height: 100%;
  min-height: 720px;
  border-radius: 34px;
}

.tablet-sheet {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.split-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.compact-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.compact-card span {
  color: var(--muted);
  font-size: 13px;
}

.desktop-mock {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 720px;
  padding: 18px;
  gap: 18px;
}

.desktop-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  color: #fff8ec;
  background: var(--coffee);
}

.desktop-sidebar strong {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 26px;
}

.desktop-sidebar button {
  padding: 12px 14px;
  color: rgba(255, 248, 236, .76);
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  text-align: left;
  font-weight: 850;
}

.desktop-sidebar button:hover,
.desktop-sidebar button.is-active {
  color: #fff8ec;
  background: rgba(255, 255, 255, .16);
}

.desktop-main {
  display: grid;
  gap: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metrics button,
.chart-card,
.slot-map {
  padding: 20px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.metrics span,
.metrics b {
  display: block;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metrics b {
  margin-top: 8px;
  font-size: 34px;
}

.admin-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
}

.bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 280px;
  margin-top: 28px;
}

.bars i {
  flex: 1;
  min-height: 24px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--orange), var(--yellow));
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}

.bars i:hover,
.bars i.is-active {
  filter: saturate(1.28);
  transform: translateY(-3px);
}

.chart-card p,
.slot-map p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.slots span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #eaf7e8;
  border: 1px solid rgba(75, 55, 42, .08);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.slots span:nth-child(5n) {
  background: #ffe9e5;
}

.slots span:nth-child(7n) {
  background: #fff0cf;
}

.slots span:hover,
.slots span:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(39, 28, 21, .12);
}

.slots span.is-selected {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  border-color: rgba(194, 104, 37, .34);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .58), 0 10px 18px rgba(194, 104, 37, .18);
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  color: #fff8ec;
  background: rgba(39, 28, 21, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(39, 28, 21, .22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .22s ease, transform .22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}

.drawer {
  justify-items: end;
  background: rgba(39, 28, 21, .18);
}

.drawer.is-open,
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: min(380px, calc(100vw - 24px));
  height: 100%;
  padding: 22px;
  background: rgba(255, 249, 241, .94);
  border-left: 1px solid rgba(255, 255, 255, .7);
  box-shadow: -24px 0 60px rgba(39, 28, 21, .18);
  transform: translateX(24px);
  transition: transform .22s ease;
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.notification-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.notification-tools {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(124, 74, 40, .12);
  border-radius: 22px;
  background: #fff7e8;
}

.notification-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

.notification-tools div {
  display: grid;
  grid-template-columns: 1fr 72px 92px 92px;
  gap: 8px;
}

.notification-tools button {
  min-height: 36px;
  padding: 0 10px;
  color: var(--brown);
  border: 1px solid rgba(124, 74, 40, .14);
  border-radius: 13px;
  background: white;
  font-size: 11px;
  font-weight: 900;
}

.notification-tools button:first-child {
  color: #fff8ec;
  background: var(--ink);
}

.notification-list button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.notification-list button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.modal {
  place-items: center;
  background: rgba(39, 28, 21, .28);
}

.modal-card {
  width: min(360px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 30px;
  background: rgba(255, 249, 241, .96);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateY(16px) scale(.98);
  transition: transform .22s ease;
}

.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  margin: 0 auto 14px;
  color: var(--coffee);
  background: #fff8ec;
  border-radius: 24px;
  font-size: 28px;
  font-weight: 950;
}

body[data-platform="mobile"] .map-panel,
body[data-platform="mobile"] .results-panel,
body[data-platform="mobile"] .responsive-showcase,
body[data-platform="tablet"] .hero-grid,
body[data-platform="admin"] .hero-grid,
body[data-platform="tablet"] .desktop-mock,
body[data-platform="admin"] .tablet-mock {
  display: none;
}

body[data-platform="mobile"] .hero-grid {
  grid-template-columns: minmax(320px, 430px);
  justify-content: center;
}

body[data-platform="mobile"] .phone-stage {
  min-height: 872px;
}

body[data-platform="tablet"] .responsive-showcase,
body[data-platform="admin"] .responsive-showcase {
  grid-template-columns: 1fr;
}

body[data-platform="tablet"] .tablet-mock,
body[data-platform="admin"] .desktop-mock {
  min-height: min(760px, calc(100vh - 230px));
}

@media (max-width: 1440px) {
  .app-shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .rail {
    padding: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(360px, 1fr) minmax(342px, 390px);
  }

  .results-panel {
    grid-column: 1 / -1;
    min-height: auto;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .panel-card,
  .filter-bar {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .rail-nav {
    display: flex;
  }

  .rail-card {
    display: none;
  }

  .responsive-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .workspace {
    padding: 16px;
  }

  .topbar,
  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-switch {
    width: 100%;
    overflow-x: auto;
  }

  .platform-switch button {
    flex: 1;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .results-panel,
  .admin-grid,
  .metrics,
  .split-cards,
  .desktop-mock {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 520px;
  }

  .real-map {
    min-height: 488px;
  }

  .phone-stage {
    order: -1;
  }

  .phone {
    height: min(812px, calc(100vh - 40px));
    min-height: 700px;
  }

  .results-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rail {
    padding: 14px;
  }

  .brand {
    min-width: max-content;
  }

  .desktop-mock,
  .tablet-mock {
    min-height: auto;
  }

  .desktop-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }

  .desktop-sidebar strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    background: var(--paper);
  }

  .app-shell {
    display: block;
  }

  .rail,
  .topbar,
  .status-strip,
  .map-panel,
  .results-panel,
  .responsive-showcase {
    display: none;
  }

  .workspace {
    padding: 0;
  }

  .hero-grid {
    display: block;
  }

  .phone-stage {
    min-height: 100dvh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .phone {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 640px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .bottom-sheet {
    left: 12px;
    right: 12px;
    bottom: 102px;
    max-height: calc(100% - 176px);
  }
}

@media (max-width: 520px) {
  .workspace {
    padding: 0;
  }

  .rail {
    border-radius: 0 0 24px 24px;
  }

  .rail-item {
    min-width: max-content;
  }

  .map-panel,
  .results-panel,
  .phone-stage,
  .tablet-mock,
  .desktop-mock {
    border-radius: 24px;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 640px;
    border-radius: 0;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .map-toolbar {
    left: 16px;
    right: 16px;
    top: 16px;
    flex-direction: column;
  }

  .search-pill {
    min-height: 50px;
  }

  .topbar h1 {
    font-size: 36px;
  }

  .bottom-sheet {
    left: 10px;
    right: 10px;
    bottom: 96px;
    min-height: 292px;
    max-height: calc(100% - 166px);
    padding-inline: 14px;
  }

  .bottom-sheet.is-expanded {
    min-height: 414px;
    max-height: calc(100% - 118px);
  }

  .bottom-sheet.is-peek {
    min-height: 86px;
    max-height: 86px;
  }

  .auto-search-card {
    left: 14px;
    right: 74px;
    top: 120px;
    padding: 12px;
    border-radius: 20px;
  }

  .notification-tools div {
    grid-template-columns: 1fr;
  }

  .results-panel {
    padding: 12px;
  }

  .parking-card {
    grid-template-columns: 92px 1fr;
  }

  .parking-card img {
    height: 104px;
  }

  .parking-card button,
  .primary-action,
  .ghost-action {
    width: 100%;
  }

  .mini-card {
    grid-template-columns: 76px 1fr;
  }

  .mini-card img {
    width: 76px;
    height: 72px;
  }

  .desktop-sidebar {
    display: none;
  }

  .desktop-mock {
    padding: 14px;
  }

  .slots {
    grid-template-columns: repeat(8, 1fr);
    gap: 7px;
  }

  .form-card label,
  .summary-card span {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-card input,
  .form-card select {
    max-width: none;
    width: 100%;
  }

  .mobile-page {
    padding-inline: 18px;
    padding-bottom: 148px;
  }

  .phone-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(39, 28, 21, .18);
  }

  .phone-nav button {
    min-height: 48px;
    font-size: 9px;
  }
}
