/* Rider app Demo: Rides & School Transport. Standalone, fake data, in-memory only (ADR 0006).
   Light, pink-tinted look from docs/design/demo-specs/rides-rider-app.md. */

:root {
  --violet: #5b2a86;
  --violet-dark: #2e1247;
  --violet-2: #3f1a61;
  --pink: #f2a6c0;
  --pink-2: #d77fa3;
  --gold: #c79a3e;
  --bg: #fbf4f8;
  --bg-2: #f6e8ef;
  --text: #1b0f1e;
  --text-2: #4b3b51;
  --muted: #7a687f;
  --line: #eddde6;
  --surface: #ffffff;
  --success: #2e7d32;
  --success-bg: #e5f3e6;
  --warning: #e07000;
  --warning-bg: #fceeda;
  --error: #d0302f;
  --error-bg: #fbe5e5;
  --info: #0a7ab8;
  --info-bg: #e0eff7;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Author display rules (grid/flex) must not defeat the hidden attribute. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-block-size: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h2,
h3 {
  margin: 0;
}

p {
  margin: 0;
}

/* ---------- Shell ---------- */

.app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  block-size: 100dvh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 52px;
  padding: 8px 12px;
  border-block-end: 1px solid var(--line);
  background: var(--surface);
}

.topbar__back {
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
}

.topbar__back svg {
  inline-size: 22px;
  block-size: 22px;
}

.topbar__title {
  flex: 1;
  overflow: hidden;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__sos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 34px;
  padding: 4px 12px;
  border: 1px solid var(--error);
  border-radius: 999px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar__sos svg {
  inline-size: 15px;
  block-size: 15px;
}

.screens {
  overflow: hidden auto;
}

.screen {
  display: grid;
  align-content: start;
  gap: 12px;
  min-block-size: 100%;
  padding: 12px;
}

.screen--map {
  padding: 0;
}

/* ---------- Map (pure CSS) ---------- */

.map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #efe6ee;
}

.screen--map {
  position: relative;
  overflow: hidden;
}

.map::before {
  content: '';
  position: absolute;
  inset: -40px;
  background:
    repeating-linear-gradient(112deg, transparent 0 46px, #fff 46px 52px),
    repeating-linear-gradient(22deg, transparent 0 64px, #fff 64px 69px),
    repeating-linear-gradient(-38deg, transparent 0 82px, #fff 82px 86px),
    repeating-linear-gradient(0deg, transparent 0 110px, #fff 110px 114px);
  opacity: 0.8;
}

.map__park {
  position: absolute;
}

.map__park--pink {
  inset-inline-start: 8%;
  inset-block-start: 16%;
  inline-size: 130px;
  block-size: 90px;
  border-radius: 44px;
  background: #f6dbe6;
  transform: rotate(-8deg);
}

.map__park--gold {
  inset-inline-end: 4%;
  inset-block-start: 48%;
  inline-size: 150px;
  block-size: 110px;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: #f1e6cf;
  transform: rotate(6deg);
}

.map__route {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.map__route-under {
  fill: none;
  stroke: #fff;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__route-line {
  fill: none;
  stroke: var(--violet);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__pin {
  position: absolute;
  inline-size: 18px;
  block-size: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(27, 15, 30, 0.35);
}

.map__pin--pickup {
  inset-inline-start: calc(13.3% - 9px);
  inset-block-end: calc(2.1% - 9px);
  background: var(--violet);
}

.map__pin--drop {
  inset-inline-start: calc(76.9% - 9px);
  inset-block-start: calc(12.5% - 9px);
  background: var(--pink-2);
}

.map__car {
  position: absolute;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(27, 15, 30, 0.3);
  transition: inset 1.4s ease;
}

.map__car::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 3px solid var(--pink);
  border-radius: 50%;
  animation: car-pulse 1.6s ease-out infinite;
}

@keyframes car-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.map__car svg {
  inline-size: 26px;
  block-size: 26px;
}

/* ---------- Home ---------- */

.home-top {
  position: absolute;
  inset-inline: 12px;
  inset-block-start: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-top__greeting {
  flex: 1;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(27, 15, 30, 0.12);
  font-weight: 700;
}

.home-top__bell,
.home-top__locate {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--violet);
  box-shadow: 0 4px 14px rgba(27, 15, 30, 0.12);
}

.home-top__bell svg,
.home-top__locate svg {
  inline-size: 20px;
  block-size: 20px;
}

.home-top__badge {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -5px;
  min-inline-size: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink-2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.sheet-card {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  max-block-size: calc(100% - 70px);
  overflow: auto;
  padding: 14px 14px 16px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 24px rgba(27, 15, 30, 0.14);
}

.sheet-card--ride {
  position: static;
  inset: auto;
  max-block-size: none;
}

.segment {
  display: grid;
  gap: 6px;
}

.segment__label {
  color: var(--muted);
  font-size: 0.85rem;
}

.segment__options {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--bg-2);
}

.segment__btn {
  min-block-size: 38px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
}

.segment__btn.is-active {
  background: var(--violet);
  color: #fff;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-block-size: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  text-align: start;
}

.searchbar__text {
  flex: 1;
  color: var(--muted);
}

.searchbar__now {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-block-size: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
}

.chip.is-active {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.section-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.upcoming {
  display: grid;
  gap: 6px;
}

/* ---------- Cards, buttons, tags ---------- */

.card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.card--center {
  justify-items: center;
  text-align: center;
}

.row {
  display: flex;
  gap: 8px;
}

.row > .btn {
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.btn--primary {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.btn--red {
  border-color: var(--error);
  background: var(--error-bg);
  color: var(--error);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--bg);
  color: var(--violet);
}

.btn--pill {
  min-block-size: 52px;
  border-radius: 999px;
}

.btn--sm {
  min-block-size: 36px;
  padding: 4px 12px;
  font-size: 0.85rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-block-size: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag--violet {
  background: #efe3f8;
  color: var(--violet);
}

.tag--gold {
  background: #f7efdd;
  color: var(--gold);
}

.tag--info {
  background: var(--info-bg);
  color: var(--info);
}

.tag--success {
  background: var(--success-bg);
  color: var(--success);
}

.tag--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.tag--error {
  background: var(--error-bg);
  color: var(--error);
}

.notice {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--info-bg);
  color: var(--info);
  font-weight: 600;
}

/* ---------- Fare ---------- */

.route {
  display: grid;
  gap: 8px;
}

.route__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.route__dot {
  inline-size: 12px;
  block-size: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.route__dot--pickup {
  background: var(--violet);
}

.route__dot--drop {
  background: var(--pink-2);
}

.trip-types {
  display: grid;
  gap: 8px;
}

.trip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    'name price meta'
    'desc price meta';
  align-items: center;
  gap: 2px 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: start;
}

.trip.is-active {
  border-color: var(--violet);
  background: #f8f2fc;
}

.trip__name {
  grid-area: name;
  font-weight: 700;
}

.trip__desc {
  grid-area: desc;
  color: var(--muted);
  font-size: 0.85rem;
}

.trip__price {
  grid-area: price;
  color: var(--violet);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.trip__meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-block-size: 44px;
  font-weight: 600;
}

.switch input {
  inline-size: 22px;
  block-size: 22px;
  accent-color: var(--violet);
}

/* ---------- Ride ---------- */

.trio {
  position: absolute;
  inset-inline: 12px;
  inset-block-start: 64px;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 82% 0%, rgba(242, 166, 192, 0.55), transparent 46%),
    radial-gradient(circle at 8% 100%, rgba(199, 154, 62, 0.45), transparent 42%),
    linear-gradient(135deg, var(--violet-2), var(--violet) 55%, var(--violet-dark));
  color: #fff;
  box-shadow: 0 10px 26px rgba(46, 18, 71, 0.35);
}

.trio--done {
  background: linear-gradient(135deg, #2e7d32, #43a047);
}

.trio__badges {
  display: flex;
  gap: 8px;
}

.trio__badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.trio__state {
  font-size: 1.05rem;
  font-weight: 700;
}

.captain {
  display: grid;
  gap: 10px;
}

.captain__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captain__avatar {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--violet);
}

.captain__avatar svg {
  inline-size: 24px;
  block-size: 24px;
}

.captain__info {
  flex: 1;
}

.captain__name {
  font-weight: 700;
}

.captain__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.captain__car {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captain__model {
  flex: 1;
  color: var(--text-2);
  font-weight: 600;
}

.captain__plate {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- Rating ---------- */

.rating__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.stars {
  display: flex;
  gap: 6px;
}

.star {
  inline-size: 44px;
  block-size: 44px;
  padding: 6px;
  border: 0;
  background: transparent;
}

.star svg {
  inline-size: 32px;
  block-size: 32px;
  fill: var(--line);
}

.star.is-on svg {
  fill: var(--gold);
}

/* ---------- Receipt ---------- */

.receipt {
  display: grid;
  gap: 12px;
}

.receipt__head {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 18px 14px;
  border-radius: var(--r-xl);
  background: var(--bg-2);
  text-align: center;
}

.receipt__title {
  color: var(--success);
  font-size: 1.2rem;
  font-weight: 700;
}

.receipt__amount {
  color: var(--violet);
  font-size: 1.7rem;
  font-weight: 700;
}

.receipt__paid {
  color: var(--text-2);
  font-weight: 600;
}

.receipt__wallet {
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 600;
}

.receipt__body {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.receipt__row {
  color: var(--text-2);
}

.receipt__total {
  display: flex;
  justify-content: space-between;
  border-block-start: 1px dashed var(--line);
  padding-block-start: 10px;
  font-weight: 700;
}

/* ---------- Transport ---------- */

.children {
  display: grid;
  gap: 10px;
}

.child {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.child__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.child__name {
  flex: 1;
  font-weight: 700;
}

.child__live {
  color: var(--text-2);
}

.child__live strong {
  color: var(--violet);
}

.plans {
  display: grid;
  gap: 8px;
}

.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

.plan--best {
  border-color: var(--violet);
  background: #f8f2fc;
}

.plan__name {
  font-weight: 700;
}

.plan__price {
  color: var(--violet);
  font-weight: 700;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-block-end: 1px solid var(--line);
}

.contact-row:last-of-type {
  border-block-end: 0;
}

.contact-row__name {
  flex: 1;
  font-weight: 600;
}

/* ---------- Track ---------- */

.track__eta {
  font-size: 1.3rem;
}

.track__eta strong {
  color: var(--violet);
}

.timeline {
  display: grid;
  gap: 0;
  inline-size: 100%;
  text-align: start;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  padding-inline-start: 22px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  inset-inline-start: 7px;
  inset-block: 0;
  inline-size: 2px;
  background: var(--line);
}

.timeline__item:first-child::before {
  inset-block-start: 50%;
}

.timeline__item:last-child::before {
  inset-block-end: 50%;
}

.timeline__dot {
  position: absolute;
  inset-inline-start: 2px;
  inline-size: 12px;
  block-size: 12px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.timeline__item--done .timeline__dot {
  border-color: var(--success);
  background: var(--success);
}

.timeline__item--now .timeline__dot {
  border-color: var(--violet);
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(91, 42, 134, 0.15);
}

.timeline__label {
  font-weight: 600;
}

.timeline__item--now .timeline__label {
  color: var(--violet);
}

.timeline__time {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Wizard ---------- */

.wizard {
  display: grid;
  gap: 12px;
}

.wizard__label {
  color: var(--muted);
  font-weight: 700;
}

.wizard__progress {
  block-size: 6px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}

.wizard__bar {
  display: block;
  inline-size: 20%;
  block-size: 100%;
  border-radius: 999px;
  background: var(--violet);
  transition: inline-size 0.3s ease;
}

.wizard__body {
  display: grid;
  gap: 10px;
}

.wizard__question {
  font-size: 1.1rem;
  font-weight: 700;
}

.review {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

.review__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review__row span:last-child {
  font-weight: 600;
  text-align: end;
}

.review__price {
  padding-block-start: 8px;
  border-block-start: 1px dashed var(--line);
  color: var(--violet);
  font-weight: 700;
}

/* ---------- Profile, wallet, history ---------- */

.profile-head {
  gap: 8px;
}

.profile-head__avatar {
  display: grid;
  place-items: center;
  inline-size: 64px;
  block-size: 64px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--violet);
}

.profile-head__avatar svg {
  inline-size: 34px;
  block-size: 34px;
}

.profile-head__name {
  font-size: 1.2rem;
  font-weight: 700;
}

.profile-head__stats {
  display: flex;
  gap: 18px;
  padding-block: 6px;
}

.stat {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.stat__num {
  color: var(--violet);
  font-size: 1.2rem;
  font-weight: 700;
}

.stat__label {
  color: var(--muted);
  font-size: 0.82rem;
}

.menu {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 52px;
  padding: 10px 14px;
  border: 0;
  border-block-end: 1px solid var(--line);
  background: transparent;
  font-weight: 600;
  text-align: start;
}

.menu__item:last-child {
  border-block-end: 0;
}

.menu__arrow svg {
  inline-size: 18px;
  block-size: 18px;
}

.wallet__balance {
  color: var(--violet);
  font-size: 1.7rem;
  font-weight: 700;
}

.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-block-end: 1px solid var(--line);
}

.wallet-row:last-child {
  border-block-end: 0;
}

.wallet-row__label {
  font-weight: 600;
}

.wallet-row__amount--in {
  color: var(--success);
  font-weight: 700;
}

.wallet-row__amount--out {
  color: var(--error);
  font-weight: 700;
}

.history-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.history-row--link {
  cursor: pointer;
}

.history-row__top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.history-row__route {
  color: var(--text-2);
}

.history-row__amount {
  color: var(--violet);
  font-weight: 700;
}

/* ---------- Tabs ---------- */

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block-start: 1px solid var(--line);
  background: var(--surface);
}

.tab {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-block-size: 58px;
  padding-block: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.tab svg {
  inline-size: 22px;
  block-size: 22px;
}

.tab.is-active {
  color: var(--violet);
}

/* ---------- Overlays, modals, toasts ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(27, 15, 30, 0.45);
}

.modal {
  display: grid;
  gap: 12px;
  inline-size: 100%;
  max-inline-size: 360px;
  max-block-size: 100%;
  overflow: auto;
  padding: 18px;
  border-radius: 26px;
  background: var(--surface);
}

.modal h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal__close {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--text-2);
}

.modal__text {
  color: var(--text-2);
}

.modal--welcome {
  text-align: center;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 0.85rem;
}

.field input {
  min-block-size: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.sos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-block-end: 1px solid var(--line);
}

.sos-row:last-of-type {
  border-block-end: 0;
}

.sos-row__name {
  font-weight: 700;
}

.dest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-block-size: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-weight: 600;
  text-align: start;
}

.dest-row.is-picked {
  border-color: var(--violet);
  background: #f8f2fc;
}

.dest-row__km {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.toasts {
  position: fixed;
  inset-inline: 14px;
  inset-block-end: 76px;
  z-index: 40;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--violet-dark);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(46, 18, 71, 0.35);
}
