:root {
  --ink: #172118;
  --muted: #6d776d;
  --paper: #f4f5ef;
  --card: #fff;
  --line: #e4e8df;
  --lime: #b9f277;
  --lime-dark: #92d44f;
  --soft-lime: #effbdc;
  --shadow: 0 18px 55px rgba(30, 45, 25, .09);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #92d44f; outline-offset: 3px; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.topbar {
  min-height: 76px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-paw { width: 29px; height: 29px; color: var(--lime); }
.brand span { font-size: 24px; font-weight: 900; letter-spacing: -.6px; }
.brand-tagline { color: #b7c0b5; font-size: 13px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 12px; }
.live-indicator { display: flex; align-items: center; gap: 7px; color: #dbe3d8; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(185,242,119,.12); }
.sim-badge { padding: 6px 9px; border: 1px solid #465341; border-radius: 6px; color: var(--lime); font-weight: 800; letter-spacing: 1.2px; font-size: 10px; }

.app-shell {
  max-width: 1480px;
  margin: 28px auto 22px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.request-panel {
  background: var(--card);
  border: 1px solid rgba(23,33,24,.05);
  border-radius: 24px;
  padding: 29px;
  box-shadow: var(--shadow);
  min-height: 680px;
}
.eyebrow { margin: 0 0 13px; color: #71816b; font-size: 10px; font-weight: 900; letter-spacing: 2.2px; }
h1 { margin: 0; font-size: 36px; line-height: 1.04; letter-spacing: -1.5px; }
.lede { margin: 14px 0 23px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.field-label { display: block; margin: 17px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .25px; }
.text-field { display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; }
.text-field:focus-within { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(146,212,79,.13); }
.field-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.text-field input { width: 100%; border: 0; outline: 0; background: transparent; padding: 13px 0; color: var(--ink); font-size: 14px; }
.service-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.service-chip { border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; transition: .18s ease; }
.service-chip:hover { background: var(--soft-lime); }
.service-chip.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.dog-list-heading { display: flex; align-items: baseline; justify-content: space-between; }
.tiny-note { color: #899386; font-size: 10px; }
.dog-list { display: grid; gap: 8px; }
.dog-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.dog-card:hover { transform: translateY(-1px); border-color: #bcc9b4; }
.dog-card.selected { border-color: var(--ink); background: var(--soft-lime); box-shadow: 0 0 0 1px var(--ink); }
.dog-avatar { width: 49px; height: 49px; flex: 0 0 49px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; }
.dog-avatar svg { width: 43px; height: 43px; }
.biscuit { background: #f4d99c; color: #c18b3e; }
.miso { background: #d7e2ed; color: #526779; }
.beans { background: #ead1b7; color: #9e653d; }
.noodle { background: #e4d9ef; color: #81669a; }
.moose { background: #cddfd4; color: #587563; }
.dog-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dog-info strong { font-size: 14px; }
.dog-info small { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dog-rating { color: #72816c; font-size: 10px; }
.dog-eta { margin-left: auto; min-width: 28px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.dog-eta strong { font-size: 18px; }
.dog-eta small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.fare-row { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 13px; font-size: 12px; }
.fare-row span { color: var(--muted); }
.fare-row strong { font-size: 15px; }
.primary-btn {
  width: 100%;
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: background .18s ease, transform .18s ease;
}
.primary-btn:hover { background: #2b392a; transform: translateY(-1px); }
.primary-btn svg { width: 19px; height: 19px; color: var(--lime); }
.fine-print { margin: 11px 0 0; color: #8a9386; font-size: 10px; text-align: center; }

.map-panel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 24px;
  background: #e7ede2;
  box-shadow: var(--shadow);
}
.map-topline { position: absolute; z-index: 2; top: 19px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.map-topline > div { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: 0 5px 20px rgba(30,45,25,.08); font-size: 12px; }
.map-topline > span { padding: 9px 12px; border-radius: 9px; background: rgba(23,33,24,.88); color: #fff; font-size: 11px; }
.map-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #76b836; }
#city-map { display: block; width: 100%; height: 100%; min-height: 680px; }
.map-labels { fill: #8c9a83; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.map-dog circle { filter: drop-shadow(0 3px 5px rgba(23,33,24,.14)); }
.map-dog text { fill: var(--ink); font-size: 12px; font-weight: 900; text-anchor: middle; }
.map-dog .map-dog-name { font-size: 10px; font-weight: 700; }
.destination-label { fill: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: 1.4px; text-anchor: middle; }
#dog-token { filter: drop-shadow(0 7px 9px rgba(23,33,24,.25)); }
#dog-token .token-ring { animation: pulse 1.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { transform: scale(.75); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
.map-bottom-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
  padding: 14px 17px;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 30px rgba(30,45,25,.12);
}
.map-bottom-card > svg { width: 25px; height: 25px; color: #6aa334; }
.map-bottom-card div { display: flex; flex-direction: column; gap: 4px; }
.map-bottom-card strong { font-size: 12px; }
.map-bottom-card span { color: var(--muted); font-size: 10px; }

.ride-dog-row { display: flex; align-items: center; gap: 15px; margin: 22px 0; }
.ride-dog-row .dog-avatar { width: 62px; height: 62px; flex-basis: 62px; }
.ride-dog-row .dog-avatar svg { width: 55px; height: 55px; }
.ride-dog-row h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.12; letter-spacing: -.6px; }
.ride-dog-row p { margin: 0; color: var(--muted); font-size: 11px; }
.eta-card { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 20px 0; padding: 20px; border-radius: 16px; background: var(--ink); color: #fff; overflow: hidden; }
.eta-card > div { display: flex; flex-direction: column; gap: 6px; }
.eta-card span { color: #aab5a5; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.eta-card strong { font-size: 35px; letter-spacing: -1px; }
.eta-pulse { width: 13px; height: 13px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 9px rgba(185,242,119,.12); }
.ride-steps { display: flex; justify-content: space-between; margin: 25px 0; padding: 0; list-style: none; }
.ride-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #9aa294; font-size: 9px; }
.ride-steps li:not(:last-child)::after { content: ""; position: absolute; top: 5px; left: calc(50% + 10px); width: calc(100% - 20px); height: 2px; background: var(--line); }
.ride-steps li > span { z-index: 1; width: 12px; height: 12px; border: 2px solid #d9ded4; border-radius: 50%; background: #fff; }
.ride-steps li.done, .ride-steps li.active { color: var(--ink); font-weight: 800; }
.ride-steps li.done > span { border-color: var(--ink); background: var(--ink); }
.ride-steps li.active > span { border-color: var(--ink); background: var(--lime); box-shadow: 0 0 0 4px var(--soft-lime); }
.driver-note { margin: 20px 0; padding: 15px; border-left: 3px solid var(--lime-dark); border-radius: 0 10px 10px 0; background: #f5f8f0; color: #64705e; font-size: 12px; line-height: 1.55; }
.text-btn { display: block; margin: 13px auto 0; padding: 8px; border: 0; background: transparent; color: #7b8477; cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--ink); }
.rating-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.rating-row button { padding: 12px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.rating-row button:hover { border-color: var(--ink); background: var(--soft-lime); }

footer { max-width: 1480px; margin: 0 auto; padding: 0 28px 24px; display: flex; justify-content: space-between; gap: 20px; color: #899183; font-size: 10px; }

@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 370px minmax(0,1fr); padding: 0 18px; gap: 16px; }
  .request-panel { padding: 23px; }
  h1 { font-size: 31px; }
}
@media (max-width: 800px) {
  .topbar { padding: 0 18px; min-height: 66px; }
  .brand-tagline, .live-indicator { display: none; }
  .topbar-right { gap: 0; }
  .app-shell { grid-template-columns: 1fr; margin-top: 16px; padding: 0 12px; }
  .request-panel { min-height: auto; border-radius: 20px; }
  .map-panel { min-height: 480px; border-radius: 20px; }
  #city-map { min-height: 480px; }
  footer { flex-direction: column; gap: 6px; padding: 0 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
