/* TooWe Passenger Search v2.0 PE-2C.
   Scope: Home continuation product polish on /available_trips.
   Shared shell, Search Bar and Quick Addresses are reused from Passenger Home. */

.tw-plain-app:has(.tw-passenger-search) > h1 {
  display: none;
}

.tw-trip-draft {
  gap: 14px;
}

.tw-trip-draft__hero {
  margin-bottom: 2px;
}

.tw-trip-draft-form {
  display: grid;
  gap: 12px;
}

.tw-trip-draft-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

.tw-trip-draft-card strong {
  display: block;
  color: #0b102f;
  font-size: 18px;
  font-weight: 760;
  line-height: 23px;
}

.tw-trip-draft-kicker,
.tw-trip-draft-card label > span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.tw-trip-draft-card input,
.tw-trip-draft-card select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 16px;
  background: #fbfaff;
  color: #0b102f;
  font: inherit;
}

.tw-trip-draft-card input:focus,
.tw-trip-draft-card select:focus {
  border-color: rgba(124, 58, 237, 0.42);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  outline: none;
}

.tw-trip-draft-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tw-trip-draft-price__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: end;
}

.tw-trip-draft-note {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 17px;
}

.tw-trip-draft-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tw-trip-draft-chips label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  background: #fbfaff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}

.tw-trip-draft-primary {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: #5b21f3;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(91, 33, 243, 0.24);
  font-size: 15px;
  font-weight: 800;
}

.tw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tw-plain-app:has(.tw-trip-complete) > h1 {
  display: none;
}

.tw-trip-complete {
  --tw-trip-complete-card-radius: 16px;
  --tw-trip-complete-purple: #6c47ff;
  --tw-trip-complete-ink: #111827;
  --tw-trip-complete-muted: #6b7280;
  --tw-trip-complete-line: #e7e4f7;
  --tw-trip-complete-success: #16a34a;
  --tw-trip-complete-star: #ff9800;
  --tw-trip-complete-card-width: min(100%, 392px);
  --tw-trip-complete-bottom-safe: calc(var(--tw-bottom-nav-height, 78px) + env(safe-area-inset-bottom, 0px) + 44px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: var(--tw-trip-complete-card-width);
  box-sizing: border-box;
  margin: -22px auto 0;
  padding: 0 16px var(--tw-trip-complete-bottom-safe);
  scroll-padding-bottom: var(--tw-trip-complete-bottom-safe);
  color: var(--tw-trip-complete-ink);
}

.tw-trip-complete-card,
.tw-trip-complete-home,
.tw-trip-complete-protection {
  border: 1px solid rgba(108, 71, 255, 0.12);
  border-radius: var(--tw-trip-complete-card-radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.07);
}

.tw-trip-complete-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 18px 0;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tw-trip-complete-avatar,
.tw-trip-complete-message__avatar,
.tw-trip-complete-protection > span {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1ecff;
  color: var(--tw-trip-complete-purple);
}

.tw-trip-complete-status__symbol,
.tw-trip-complete-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.tw-trip-complete-status__symbol {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e9fff2;
  color: var(--tw-trip-complete-success);
}

.tw-trip-complete-status__symbol .tw-trip-complete-icon {
  width: 24px;
  height: 24px;
}

.tw-trip-complete-status p,
.tw-trip-complete-card p,
.tw-trip-complete-card small,
.tw-trip-complete-protection p {
  margin: 0;
  color: var(--tw-trip-complete-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.tw-trip-complete-status h2,
.tw-trip-complete-card h3 {
  margin: 0;
  color: var(--tw-trip-complete-ink);
  font-size: 17px;
  line-height: 21px;
  font-weight: 760;
  letter-spacing: 0;
}

.tw-trip-complete-status-badge,
.tw-payment-card__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e9fff2;
  color: var(--tw-trip-complete-success);
  font-size: 11px;
  line-height: 13px;
  font-weight: 700;
}

.tw-trip-complete-card {
  padding: 10px;
}

.tw-trip-complete-driver {
  display: grid;
  grid-template-columns: var(--tw-avatar-size-card, 44px) minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.tw-trip-complete-avatar {
  position: relative;
  width: var(--tw-avatar-size-card, 44px);
  height: var(--tw-avatar-size-card, 44px);
  overflow: hidden;
  font-size: 20px;
  font-weight: 760;
}

.tw-trip-complete-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tw-trip-complete-driver__main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tw-trip-complete-driver__main span {
  color: var(--tw-trip-complete-muted);
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
}

.tw-trip-complete-driver__main h3 {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 760;
}

.tw-trip-complete-driver__main small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--tw-trip-complete-ink);
  font-size: 12px;
  line-height: 15px;
  font-weight: 620;
}

.tw-trip-complete-driver__actions {
  display: flex;
  gap: 8px;
}

.tw-trip-complete-driver__actions a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tw-trip-complete-ink);
  text-decoration: none;
}

.tw-trip-complete-driver__actions .tw-trip-complete-icon {
  width: 20px;
  height: 20px;
}

.tw-trip-complete-driver__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tw-trip-complete-driver__rating .tw-trip-complete-star {
  width: 12px;
  height: 12px;
}

.tw-trip-complete-route {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tw-trip-complete-route__header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.tw-trip-complete-route__header .tw-trip-complete-icon,
.tw-payment-card__header .tw-trip-complete-icon {
  width: 20px;
  height: 20px;
}

.tw-trip-complete-route__header > .tw-trip-complete-icon,
.tw-payment-card__header > .tw-trip-complete-icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid rgba(108, 71, 255, 0.16);
  border-radius: 12px;
  background: #f3efff;
  color: var(--tw-trip-complete-purple);
}

.tw-payment-card__header > .tw-trip-complete-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
}

.tw-trip-complete-route__header span,
.tw-trip-complete-route__points span,
.tw-trip-complete-route__meta span,
.tw-payment-card__header p,
.tw-payment-card__row span,
.tw-payment-card__total span {
  color: var(--tw-trip-complete-muted);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
}

.tw-trip-complete-route__header strong {
  display: block;
  margin-top: 2px;
  color: var(--tw-trip-complete-ink);
  font-size: 14px;
  line-height: 17px;
  font-weight: 680;
}

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

.tw-trip-complete-route__points div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.tw-trip-complete-route__points strong {
  color: var(--tw-trip-complete-ink);
  font-size: 14px;
  line-height: 17px;
  font-weight: 720;
}

.tw-trip-complete-route__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tw-trip-complete-route__meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f7f4ff;
  color: var(--tw-trip-complete-purple);
}

.tw-trip-complete-map {
  display: grid;
  gap: 9px;
  overflow: hidden;
}

.tw-trip-complete-map > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tw-trip-complete-map > header span,
.tw-trip-complete-map > header strong {
  font-size: 12px;
  line-height: 15px;
}

.tw-trip-complete-map > header span { color: var(--tw-trip-complete-muted); }
.tw-trip-complete-map > header strong { color: var(--tw-trip-complete-purple); }

.tw-trip-complete-map--unavailable {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  background: #f8f7fc;
}

.tw-trip-complete-map--unavailable > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0ebff;
  color: var(--tw-trip-complete-purple);
}

.tw-trip-complete-map--unavailable > span svg {
  width: 20px;
  height: 20px;
}

.tw-trip-complete-map--unavailable p {
  margin: 3px 0 0;
}

.tw-payment-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
}

.tw-payment-card__header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.tw-payment-card__header h3 {
  margin-top: 0;
  font-size: 16px;
  line-height: 20px;
}

.tw-payment-card__badge--warning {
  background: #fff7ed;
  color: #f59e0b;
}

.tw-payment-card__badge--processing,
.tw-trip-complete-status-badge[data-status-badge="processing"] {
  background: #eef2ff;
  color: var(--tw-trip-complete-purple);
}

.tw-trip-complete-status-badge[data-status-badge="warning"] {
  background: #fff7ed;
  color: #f59e0b;
}

.tw-payment-card__rows {
  display: grid;
  gap: 7px;
  padding: 1px 0 2px;
}

.tw-payment-card__row,
.tw-payment-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tw-payment-card__row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tw-payment-card__row .tw-trip-complete-icon--info {
  width: 14px;
  height: 14px;
  opacity: 0.88;
}

.tw-payment-card__row strong {
  color: var(--tw-trip-complete-ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 720;
}

.tw-payment-card__total {
  padding-top: 10px;
  border-top: 1px dashed rgba(17, 24, 39, 0.15);
}

.tw-payment-card__total strong {
  color: var(--tw-trip-complete-ink);
  font-size: 24px;
  line-height: 28px;
  font-weight: 800;
}

.tw-payment-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  padding-top: 2px;
}

.tw-payment-card__paid-at {
  min-width: 0;
  color: var(--tw-trip-complete-muted);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
}

.tw-payment-card__receipt {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 132px;
  padding: 0 10px;
  border: 1px solid rgba(108, 71, 255, 0.24);
  border-radius: 10px;
  color: var(--tw-trip-complete-purple);
  font-size: 12px;
  line-height: 15px;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.tw-payment-card__receipt span {
  display: block;
}

.tw-payment-card__receipt .tw-trip-complete-icon {
  width: 14px;
  height: 14px;
}

.tw-payment-card__trust {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 1px;
  padding: 10px 12px;
  border: 1px solid #cdeed7;
  border-radius: 12px;
  background: #f0fff5;
}

.tw-payment-card__trust .tw-trip-complete-icon {
  width: 21px;
  height: 21px;
}

.tw-payment-card__trust p {
  display: grid;
  gap: 3px;
}

.tw-payment-card__trust strong {
  color: var(--tw-trip-complete-ink);
  font-size: 13px;
  line-height: 16px;
}

.tw-payment-card__trust span {
  color: var(--tw-trip-complete-muted);
  font-size: 12px;
  line-height: 16px;
}

.tw-trip-complete-home {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border-radius: 18px;
  background: var(--tw-trip-complete-purple);
  color: #ffffff;
  font-size: 15px;
  line-height: 18px;
  font-weight: 800;
  text-decoration: none;
}

.tw-trip-complete-home__label {
  text-align: center;
}

.tw-review-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
}

.tw-review-card__participant {
  display: grid;
  grid-template-columns: var(--tw-avatar-size-card, 44px) minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.tw-review-card__participant .tw-trip-complete-avatar {
  width: var(--tw-avatar-size-card, 44px);
  height: var(--tw-avatar-size-card, 44px);
}

.tw-review-card__participant h3 {
  margin: 0 0 1px;
  font-size: 15px;
  line-height: 19px;
}

.tw-review-card__participant p,
.tw-review-card__participant small {
  display: block;
  margin: 0;
  color: var(--tw-trip-complete-muted);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
}

.tw-review-card__info,
.tw-review-card__info .tw-trip-complete-icon {
  width: 15px;
  height: 15px;
}

.tw-review-card__question {
  margin: 0 0 5px;
  text-align: center;
  font-size: 15px;
  line-height: 18px;
}

.tw-review-card__scale {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

.tw-review-card__option {
  position: relative;
  display: grid;
  grid-template-columns: 20px 94px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}

.tw-review-card__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tw-review-card__radio {
  width: 15px;
  height: 15px;
  align-self: center;
  border: 1.5px solid #a9a5c4;
  border-radius: 999px;
}

.tw-review-card__option input:checked + .tw-review-card__radio {
  border-color: var(--tw-trip-complete-purple);
  box-shadow: inset 0 0 0 4px #ffffff;
  background: var(--tw-trip-complete-purple);
}

.tw-review-card__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.tw-trip-complete-star {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.tw-review-card__label {
  color: var(--tw-trip-complete-ink);
  font-size: 13px;
  line-height: 16px;
  font-weight: 620;
  white-space: nowrap;
}

.tw-review-card__comment {
  display: grid;
  gap: 6px;
}

.tw-review-card__comment span,
.tw-review-card__comment small {
  color: var(--tw-trip-complete-muted);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
}

.tw-review-card__comment textarea {
  min-height: 52px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 11px;
  padding: 9px 10px;
  color: var(--tw-trip-complete-ink);
  font: inherit;
  font-size: 13px;
  line-height: 17px;
}

.tw-review-card__comment small {
  justify-self: end;
}

.tw-review-card__submit,
.tw-review-card__done {
  width: 100%;
  min-height: 48px;
  display: grid;
  place-items: center;
  margin-top: 7px;
  border: 0;
  border-radius: 16px;
  background: var(--tw-trip-complete-purple);
  color: #ffffff;
  font-size: 14px;
  line-height: 17px;
  font-weight: 800;
  text-decoration: none;
}

.tw-review-card__submit:disabled {
  background: #e8e3f8;
  color: #938aa9;
}

.tw-review-card--submitted {
  align-items: center;
  text-align: center;
  padding: 24px 16px;
}

.tw-review-card__success {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--tw-trip-complete-success);
}

.tw-review-card__success .tw-trip-complete-icon {
  width: 30px;
  height: 30px;
}

.tw-review-card__submitted-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.tw-review-card__submitted-stars .tw-trip-complete-star {
  width: 16px;
  height: 16px;
}

.tw-trip-complete-protection {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 12px;
}

.tw-trip-complete-protection > span {
  width: 28px;
  height: 28px;
}

.tw-trip-complete-protection > span svg {
  width: 18px;
  height: 18px;
}

.tw-plain-app:has(.tw-history) > h1 {
  display: none;
}

.tw-history {
  --tw-history-purple: #6c47ff;
  --tw-history-ink: #0f1538;
  --tw-history-muted: #667085;
  --tw-history-line: #e7e4f7;
  --tw-history-card-width: min(100%, 392px);
  --tw-history-bottom-safe: calc(var(--tw-bottom-nav-height, 78px) + env(safe-area-inset-bottom, 0px) + 44px);
  width: var(--tw-history-card-width);
  box-sizing: border-box;
  margin: -12px auto 0;
  padding: 0 16px var(--tw-history-bottom-safe);
  color: var(--tw-history-ink);
}

.tw-history-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tw-history-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.tw-history-header p {
  margin: 4px 0 0;
  color: var(--tw-history-muted);
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
}

.tw-history-search {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f4f0ff;
  color: var(--tw-history-purple);
  text-decoration: none;
}

.tw-history-search .tw-history-icon--search {
  width: 17px;
  height: 17px;
}

.tw-history-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.tw-history-filters a {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 31px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 1px solid var(--tw-history-line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--tw-history-ink);
  font-size: 11.5px;
  line-height: 14px;
  font-weight: 680;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.tw-history-filters a[aria-current="page"] {
  border-color: var(--tw-history-purple);
  background: var(--tw-history-purple);
  color: #ffffff;
}

.tw-history-month {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.tw-history-month h2 {
  margin: 0 0 2px;
  color: #74709a;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.tw-history-list {
  display: grid;
  gap: 8px;
}

.tw-history-card {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 14px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--tw-history-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  color: inherit;
  text-decoration: none;
}

.tw-history-card__state {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #12a85a;
}

.tw-history-card__art {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background: #f1ecff;
}

.tw-history-card__art > svg {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--tw-purple, #5a35f2);
}

.tw-history-icon {
  display: block;
}

.tw-history-icon--route {
  width: 30px;
  height: 30px;
}

.tw-history-card__body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.tw-history-card__top,
.tw-history-card__bottom {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tw-history-card__top > strong:first-child {
  min-width: 0;
  overflow: visible;
  white-space: normal;
  color: var(--tw-history-ink);
  font-size: 15px;
  line-height: 19px;
  font-weight: 800;
}

.tw-history-card__price {
  flex: 0 0 auto;
  color: var(--tw-history-ink);
  font-size: 16px;
  line-height: 20px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.tw-history-card__bottom {
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 8px;
  row-gap: 6px;
}

.tw-history-card__status {
  margin-left: auto;
}

.tw-history-card__route {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--tw-history-ink);
  font-size: 13px;
  line-height: 17px;
  font-weight: 650;
}

.tw-history-card__route span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tw-history-card__route span[aria-hidden="true"] {
  color: var(--tw-history-muted);
  font-size: 12px;
  line-height: 12px;
}

.tw-history-card__meta,
.tw-history-card__rating,
.tw-history-card__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.tw-history-card__meta,
.tw-history-card__rating {
  color: var(--tw-history-ink);
}

.tw-history-card__rating--muted {
  color: var(--tw-history-muted);
}

.tw-history-card__rating .tw-history-icon {
  width: 14px;
  height: 14px;
}

.tw-history-card__status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8fff1;
  color: #129451;
}

.tw-history-card__chevron {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  justify-self: end;
  color: var(--tw-history-ink);
  font-size: 22px;
  line-height: 1;
}

.tw-history-card__chevron svg {
  width: 20px;
  height: 20px;
}

.tw-history-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px 18px;
  border: 1px solid var(--tw-history-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  text-align: center;
}

.tw-history-empty > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f1ecff;
}

.tw-history-empty .tw-history-icon {
  width: 28px;
  height: 28px;
}

.tw-history-empty h2 {
  margin: 0;
  font-size: 18px;
  line-height: 23px;
}

.tw-history-empty p {
  margin: 0;
  color: var(--tw-history-muted);
  font-size: 13px;
  line-height: 18px;
}

.tw-history-empty a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  margin-top: 6px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--tw-history-purple);
  color: #ffffff;
  font-size: 14px;
  line-height: 17px;
  font-weight: 800;
  text-decoration: none;
}

.tw-history-retention {
  margin: 16px 0 0;
  color: #74709a;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 370px) {
  .tw-trip-complete {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tw-trip-complete-driver {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .tw-trip-complete-driver__actions a {
    width: 34px;
    height: 34px;
  }

  .tw-review-card__option {
    grid-template-columns: 22px 102px minmax(0, 1fr);
    gap: 9px;
  }

  .tw-trip-complete-star {
    width: 15px;
    height: 15px;
  }

  .tw-history {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tw-history-filters {
    gap: 6px;
  }

  .tw-history-filters a {
    min-height: 31px;
    padding: 0 5px;
    font-size: 11.5px;
  }

  .tw-history-card {
    grid-template-columns: 62px minmax(0, 1fr) 12px;
    gap: 8px;
  }

  .tw-history-card__art {
    width: 52px;
    height: 52px;
  }
}

/* DQ-PASSENGER-01: shared Search/Match/Draft/Driver Found polish. */
.tw-passenger-search,
.tw-trip-matches,
.tw-trip-draft,
.tw-driver-found,
.tw-history,
.tw-trip-complete {
  padding-bottom: 8px;
}

.tw-driver-found-overview,
.tw-driver-found-telemetry {
  box-shadow: 0 10px 28px rgba(35, 28, 69, 0.065);
}

.tw-driver-found-status h1,
.tw-driver-found-driver__text strong,
.tw-driver-found-vehicle__text strong {
  overflow-wrap: anywhere;
}

.tw-driver-found-driver__quick a,
.tw-driver-found-more,
.tw-history-search {
  min-width: 44px;
  min-height: 44px;
}

.tw-trip-matches a:active,
.tw-driver-found a:active,
.tw-history a:active,
.tw-trip-complete a:active {
  transform: scale(0.988);
}

.tw-plain-app:has(.tw-trip-matches) > h1 {
  display: none;
}

.tw-passenger-search {
  --tw-passenger-search-bottom-safe: calc(
    var(--tw-bottom-nav-height, 72px) +
    var(--tw-bottom-nav-bottom-gap, 16px) +
    env(safe-area-inset-bottom) +
    24px
  );
  gap: 11px;
  padding-bottom: var(--tw-passenger-search-bottom-safe);
  scroll-padding-bottom: var(--tw-passenger-search-bottom-safe);
}

.tw-trip-matches {
  --tw-trip-matches-bottom-safe: calc(
    var(--tw-bottom-nav-height, 72px) +
    var(--tw-bottom-nav-bottom-gap, 16px) +
    env(safe-area-inset-bottom) +
    96px
  );
  gap: 12px;
  padding-bottom: var(--tw-trip-matches-bottom-safe);
  scroll-padding-bottom: var(--tw-trip-matches-bottom-safe);
}

.tw-trip-matches-summary {
  position: relative;
  min-height: 96px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 13px 12px 13px 14px;
  border: 1px solid rgba(99, 76, 180, .16);
  border-radius: 18px;
  border-color: rgba(99, 76, 180, .16);
  background: linear-gradient(118deg, #fff 0%, #fff 61%, #f6f2ff 100%);
}

.tw-trip-matches-summary__pin {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f1ecff;
  color: var(--tw-home-primary);
}

.tw-trip-matches-summary__pin svg {
  width: 26px;
  height: 26px;
}

.tw-trip-matches-summary__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tw-trip-matches-summary__text span,
.tw-trip-matches-header p,
.tw-trip-matches-empty p,
.tw-driver-card__driver small,
.tw-driver-card__price small,
.tw-driver-card__route small,
.tw-driver-card__finish,
.tw-driver-card__meta,
.tw-trip-matches-create__body small {
  color: var(--tw-home-muted);
  font-size: 11px;
  line-height: 15px;
  font-weight: 650;
}

.tw-trip-matches-summary__text strong {
  color: var(--tw-home-ink);
  font-size: 15px;
  line-height: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.tw-trip-matches-summary__text small {
  color: var(--tw-home-ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 620;
}

.tw-trip-matches-summary__art {
  position: relative;
  width: 106px;
  height: 80px;
  justify-self: end;
  overflow: hidden;
  border-radius: 18px 14px 14px 18px;
  background:
    radial-gradient(circle at 76% 28%, rgba(108, 71, 255, .16), transparent 28%),
    linear-gradient(145deg, rgba(247, 244, 255, .2), #f2edff);
}

.tw-trip-matches-summary__art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, .7) 14%, transparent 42%),
    linear-gradient(to top, rgba(242, 237, 255, .86) 0%, transparent 36%);
}

.tw-trip-matches-summary__hero {
  position: absolute;
  z-index: 1;
  right: -1px;
  bottom: 2px;
  width: 122%;
  max-width: none;
  height: 92%;
  object-fit: contain;
  object-position: right bottom;
  opacity: .98;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse at 58% 54%, #000 0%, #000 58%, rgba(0, 0, 0, .6) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse at 58% 54%, #000 0%, #000 58%, rgba(0, 0, 0, .6) 78%, transparent 100%);
}

.tw-trip-matches-create {
  min-height: 82px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  border: 1px solid rgba(90, 53, 242, .22);
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  color: var(--tw-home-primary);
}

.tw-trip-matches-create--compact {
  margin-top: 2px;
}

.tw-trip-matches-create__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--tw-home-primary);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  font-weight: 450;
  box-shadow: 0 11px 24px rgba(90, 53, 242, 0.18);
}

.tw-trip-matches-create__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tw-trip-matches-create__body strong {
  color: var(--tw-home-primary);
  font-size: 17px;
  line-height: 20px;
  font-weight: 850;
}

.tw-trip-matches-create__arrow {
  color: var(--tw-home-primary);
}

.tw-trip-matches-create__arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 32px;
  line-height: 1;
  font-weight: 600;
  justify-self: end;
}

.tw-trip-matches-create__arrow svg {
  width: 22px;
  height: 22px;
}

.tw-trip-matches-divider {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 22px;
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.tw-trip-matches-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--tw-home-line);
}

.tw-trip-matches-divider span {
  position: relative;
  z-index: 1;
  padding: 2px 12px;
  border: 1px solid var(--tw-home-line);
  border-radius: 999px;
  background: #ffffff;
}

.tw-trip-matches-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 2px;
}

.tw-trip-matches-header h1,
.tw-trip-matches-empty h1 {
  margin: 0;
  color: var(--tw-home-ink);
  font-size: 17px;
  line-height: 22px;
  font-weight: 850;
}

.tw-trip-matches-header p,
.tw-trip-matches-empty p {
  margin: 0;
}

.tw-trip-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* TripMatchCard — Variant D is its sole visual authority. This component is
   intentionally independent of the legacy .tw-driver-card family, which is
   still used by accepted Driver Found surfaces. */
.tw-trip-match-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 82px;
  grid-template-areas:
    "driver route commerce"
    "driver destination destination";
  column-gap: 7px;
  row-gap: 5px;
  align-items: stretch;
  min-width: 0;
  padding: 9px 11px 8px;
  border: 1px solid rgba(41, 31, 81, .08);
  border-radius: 18px;
  background: #fff;
  color: var(--tw-home-ink);
  box-shadow: 0 10px 26px rgba(35, 28, 69, .065);
  text-decoration: none;
}

.tw-trip-match-card__driver {
  grid-area: driver;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.tw-trip-match-card__driver .tw-driver-card-avatar {
  width: 44px;
  height: 44px;
}

.tw-trip-match-card__driver-copy {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.tw-trip-match-card__driver-copy strong {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: var(--tw-home-ink);
  font-size: 11.5px;
  line-height: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tw-trip-match-card__driver-copy small {
  color: var(--tw-home-muted);
  font-size: 11px;
  line-height: 14px;
  font-weight: 720;
}

.tw-trip-match-card__route {
  grid-area: route;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
  align-items: stretch;
  gap: 4px;
}

.tw-trip-match-card__point {
  min-width: 0;
  min-height: 71px;
  display: grid;
  grid-template-rows: 17px 14px 24px;
  align-content: center;
  gap: 2px;
  padding: 6px 5px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f7f5fd, #fbfaff);
}

.tw-trip-match-card__point > span {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: var(--tw-home-primary);
}

.tw-trip-match-card__point svg {
  width: 15px;
  height: 15px;
}

.tw-trip-match-card__point strong {
  min-width: 0;
  color: var(--tw-home-ink);
  font-size: 11.5px;
  line-height: 14px;
  font-weight: 760;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.tw-trip-match-card__point small {
  display: grid;
  gap: 0;
  color: var(--tw-home-muted);
  font-size: 10px;
  line-height: 12px;
  font-weight: 620;
  white-space: nowrap;
}

.tw-trip-match-card__route-arrow {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: var(--tw-home-muted);
}

.tw-trip-match-card__route-arrow svg {
  width: 14px;
  height: 14px;
}

.tw-trip-match-card__commerce {
  grid-area: commerce;
  position: relative;
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 5px;
  padding: 0 11px 0 7px;
  border-left: 1px solid var(--tw-home-line);
}

.tw-trip-match-card__price {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.tw-trip-match-card__price strong {
  color: var(--tw-home-ink);
  font-size: 16px;
  line-height: 19px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tw-trip-match-card__price small,
.tw-trip-match-card__price span,
.tw-trip-match-card__vehicle,
.tw-trip-match-card__destination {
  color: var(--tw-home-muted);
  font-size: 10px;
  line-height: 13px;
  font-weight: 620;
}

.tw-trip-match-card__vehicle {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tw-trip-match-card__vehicle-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tw-trip-match-card__vehicle-main i {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.tw-trip-match-card__vehicle-main svg {
  width: 14px;
  height: 14px;
}

.tw-trip-match-card__optional {
  color: var(--tw-home-primary);
  font-size: 9px;
  line-height: 11px;
  font-weight: 650;
}

.tw-trip-match-card__chevron {
  position: absolute;
  top: 50%;
  right: -2px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--tw-home-ink);
  transform: translateY(-50%);
}

.tw-trip-match-card__chevron svg {
  width: 16px;
  height: 16px;
}

.tw-trip-match-card__destination {
  grid-area: destination;
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 23, 42, .07);
}

.tw-trip-match-card__destination > span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--tw-home-muted);
}

.tw-trip-match-card__destination svg {
  width: 12px;
  height: 12px;
}

.tw-trip-match-card__destination p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.tw-trip-match-card__destination strong {
  color: var(--tw-home-ink);
  font-size: 9.5px;
  line-height: 12px;
  font-weight: 720;
}

.tw-driver-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 88px;
  grid-template-areas: "identity journey commerce";
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--tw-home-line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--tw-home-ink);
  box-shadow: 0 12px 30px rgba(35, 28, 69, 0.07);
  text-decoration: none;
}

/* The compact match card lives inside .tw-home but is not the generic Home
   two-column trip card. Keep this more-specific host rule so Home's shared
   primitive cannot flatten the route rows into one overlapping grid. */
.tw-home .tw-driver-card.tw-c-trip-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 88px;
  grid-template-areas: "identity journey commerce";
  gap: 8px;
  align-items: stretch;
  padding: 12px;
  border-radius: 18px;
}

.tw-driver-card__identity {
  grid-area: identity;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.tw-driver-card-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f1ecff;
  color: var(--tw-home-primary);
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
}

.tw-driver-card-avatar img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.tw-driver-card-avatar img + .tw-driver-card-avatar__fallback {
  display: none;
}

.tw-driver-card__driver {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  overflow-wrap: anywhere;
}

.tw-driver-card__driver strong,
.tw-driver-card__price strong,
.tw-driver-card__route strong,
.tw-driver-card__finish strong {
  color: var(--tw-home-ink);
  font-size: 12.5px;
  line-height: 15px;
  font-weight: 760;
}

.tw-driver-card__driver strong {
  font-size: 12px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.tw-driver-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
}

.tw-driver-card__price strong {
  font-size: 16px;
  line-height: 19px;
  font-variant-numeric: tabular-nums;
}

.tw-driver-card__price span {
  color: var(--tw-home-muted);
  font-size: 11px;
  line-height: 13px;
  font-weight: 620;
}

.tw-driver-card__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
}

.tw-driver-card__journey {
  grid-area: journey;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.tw-driver-card__endpoint {
  position: relative;
  min-width: 0;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 12px;
  background: #f7f5fd;
}

.tw-driver-card__endpoint > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--tw-home-primary);
}

.tw-driver-card__endpoint svg {
  width: 15px;
  height: 15px;
}

.tw-driver-card__endpoint strong {
  overflow-wrap: normal;
  font-size: 12px;
}

.tw-driver-card__endpoint small {
  overflow-wrap: anywhere;
}

.tw-driver-card__route-arrow {
  align-self: center;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--tw-home-muted);
}

.tw-driver-card__route-arrow svg {
  width: 16px;
  height: 16px;
}

.tw-driver-card__finish {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.tw-driver-card__finish span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f3efff;
  color: var(--tw-home-primary);
}

.tw-driver-card__finish svg {
  width: 12px;
  height: 12px;
}

.tw-driver-card__finish p,
.tw-driver-card__vehicle {
  margin: 0;
}

.tw-driver-card__finish p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tw-driver-card__finish small {
  color: var(--tw-home-muted);
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
}

.tw-driver-card__vehicle {
  display: grid;
  gap: 4px;
}

.tw-driver-card__vehicle span {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tw-home-muted);
  font-size: 10px;
  line-height: 13px;
  font-weight: 620;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tw-driver-card__vehicle span:first-child {
  max-width: 100%;
}

.tw-driver-card__vehicle-main {
  gap: 4px;
}

.tw-driver-card__vehicle-main i {
  width: 13px;
  height: 13px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 13px;
  color: var(--tw-home-muted);
  font-style: normal;
}

.tw-driver-card__vehicle-main svg {
  width: 13px;
  height: 13px;
}

.tw-driver-card__optional {
  max-width: 100%;
  color: var(--tw-home-primary) !important;
  font-weight: 650 !important;
}

.tw-trip-secondary-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 850;
  text-decoration: none;
}

.tw-trip-secondary-cta {
  color: var(--tw-home-primary);
}

.tw-driver-card__commerce {
  grid-area: commerce;
  position: relative;
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding-left: 10px;
  padding-right: 16px;
  border-left: 1px solid var(--tw-home-line);
}

.tw-driver-card__chevron {
  position: absolute;
  right: -2px;
  top: 50%;
  color: var(--tw-home-ink);
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.tw-driver-card__chevron svg {
  width: 18px;
  height: 18px;
}

.tw-trip-matches-empty {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tw-trip-matches-empty__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f1ecff;
  color: var(--tw-home-primary);
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
}

.tw-passenger-search-hint {
  margin: 0;
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.tw-passenger-search-form {
  margin: 0;
}

.tw-passenger-search-address-states {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tw-passenger-search-address-state {
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(90, 53, 242, 0.16);
  border-radius: var(--tw-home-control-radius);
  background: #f8f7ff;
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.tw-passenger-search-address-state:not([hidden]) {
  display: flex;
}

.tw-passenger-search-address-state button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(90, 53, 242, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tw-home-primary);
  font: 700 12px / 16px var(--tw-font-family);
}

.tw-passenger-search-extension {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tw-passenger-search-state-note {
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.tw-passenger-search-choice-grid,
.tw-passenger-search-date-grid,
.tw-passenger-search-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tw-passenger-search-choice,
.tw-passenger-search-date-grid label,
.tw-passenger-search-filter-grid label {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--tw-home-line);
  border-radius: var(--tw-home-control-radius);
  background: #ffffff;
  color: var(--tw-home-ink);
  box-shadow: 0 7px 16px rgba(16, 24, 40, 0.045);
  text-align: left;
}

.tw-passenger-search-choice.is-active {
  border-color: rgba(90, 53, 242, 0.35);
  background: #f7f5ff;
  box-shadow: 0 8px 18px rgba(90, 53, 242, 0.09);
}

.tw-passenger-search-choice strong,
.tw-passenger-search-row strong,
.tw-passenger-search-date-grid span,
.tw-passenger-search-filter-grid span {
  color: var(--tw-home-ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
}

.tw-passenger-search-choice small,
.tw-passenger-search-row small {
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.tw-passenger-search-date-grid input,
.tw-passenger-search-filter-grid input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tw-home-muted);
  font: 600 15px / 20px var(--tw-font-family);
}

.tw-passenger-search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tw-passenger-search-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--tw-home-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tw-home-ink);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.tw-passenger-search-chip input {
  accent-color: var(--tw-home-primary);
}

.tw-passenger-search-primary-zone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 2px 0 4px;
}

.tw-passenger-search-submit.tw-button {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border: 0;
  border-radius: 16px;
  background: var(--tw-home-primary);
  color: #ffffff;
  font-size: 16px;
  line-height: 20px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(90, 53, 242, 0.18);
}

.tw-passenger-search-duplicate-note {
  margin: 0;
  padding: 0 4px;
  color: var(--tw-home-muted);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  text-align: center;
}

.tw-passenger-search-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tw-passenger-search-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--tw-home-line);
  border-radius: var(--tw-home-control-radius);
  background: #ffffff;
  color: var(--tw-home-primary);
  box-shadow: 0 7px 16px rgba(16, 24, 40, 0.045);
  text-align: left;
}

.tw-passenger-search-row span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tw-passenger-search-more {
  align-self: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tw-home-primary);
  font-size: 13px;
  line-height: 16px;
  font-weight: 800;
}

/* DQ-01: production polish — consistent 44px targets and visible focus. */
.tw-history-header {
  grid-template-columns: minmax(0, 1fr) 44px;
}

.tw-history-search {
  width: 44px;
  height: 44px;
}

.tw-history-filters a,
.tw-history-empty a {
  min-width: 44px;
  min-height: 44px;
}

.tw-history :where(a, button):focus-visible,
.tw-passenger-search :where(a, button, input, select):focus-visible {
  outline: 3px solid rgba(108, 71, 255, 0.28);
  outline-offset: 3px;
}

@media (max-width: 370px) {
  .tw-history-filters a {
    min-height: 44px;
  }
}

.tw-driver-found {
  --tw-home-primary: #5a35f2;
  --tw-home-ink: #05072f;
  --tw-home-muted: #667085;
  --tw-home-line: #e9e7f3;
  --tw-home-card-radius: 22px;
  --tw-home-control-radius: 18px;
  --tw-home-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
  --tw-driver-found-small-gap: 7px;
  --tw-driver-found-block-gap: 10px;
  --tw-driver-found-section-gap: 18px;
  --tw-driver-found-card-padding: 12px;
  --tw-driver-found-inline-gap: 12px;
  --tw-driver-found-radius: var(--tw-home-card-radius);
  gap: var(--tw-driver-found-block-gap);
  padding-bottom: calc(var(--tw-passenger-search-bottom-safe) + 18px);
}

.tw-driver-found-overview {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: var(--tw-driver-found-radius);
  background: #ffffff;
  box-shadow: var(--tw-home-shadow);
}

.tw-driver-found h1,
.tw-driver-found h2,
.tw-driver-found p {
  margin: 0;
}

.tw-driver-found-status {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  align-items: center;
  gap: var(--tw-driver-found-inline-gap);
  padding: 14px;
  border-bottom: 1px solid var(--tw-home-line);
}

.tw-driver-found-status__icon,
.tw-driver-found-more,
.tw-driver-found-driver__quick a,
.tw-driver-found-route__pin {
  display: grid;
  place-items: center;
}

.tw-driver-found-status__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #f1ecff;
  color: var(--tw-home-primary);
}

.tw-driver-found-status__icon svg {
  width: 22px;
  height: 22px;
}

.tw-driver-found-status h1 {
  color: var(--tw-home-ink);
  font-size: 18px;
  line-height: 22px;
  font-weight: 760;
  letter-spacing: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tw-driver-found-status p {
  margin-top: var(--tw-driver-found-small-gap);
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 15px;
  font-weight: 560;
}

.tw-driver-found-payment {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f8ee;
  color: #159447;
  font-size: 11.5px;
  line-height: 15px;
  font-weight: 720;
}

.tw-driver-found-payment::before {
  content: none;
}

.tw-driver-found-payment svg {
  width: 15px;
  height: 15px;
}

.tw-driver-found-more {
  width: 44px;
  height: 44px;
  border: 1px solid var(--tw-home-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tw-home-ink);
}

.tw-driver-found-more svg {
  width: 18px;
  height: 18px;
}

.tw-driver-card--found {
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--tw-home-card-radius);
  box-shadow: none;
}

.tw-driver-found-driver {
  display: grid;
  grid-template-columns: var(--tw-avatar-size-detail, 52px) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--tw-driver-found-inline-gap);
  padding: 12px 14px;
  border-bottom: 1px solid var(--tw-home-line);
}

.tw-driver-found-driver__avatar {
  width: var(--tw-avatar-size-detail, 52px);
  height: var(--tw-avatar-size-detail, 52px);
  border-radius: 18px;
  font-size: 20px;
}

.tw-driver-found-driver__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tw-driver-found-driver__text strong,
.tw-driver-found-vehicle strong,
.tw-driver-found-route__points strong {
  color: var(--tw-home-ink);
  font-size: 17px;
  line-height: 21px;
  font-weight: 760;
}

.tw-driver-found-driver__text strong {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tw-driver-found-driver__text span,
.tw-driver-found-driver__text small,
.tw-driver-found-vehicle span,
.tw-driver-found-route__points small {
  color: var(--tw-home-muted);
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 560;
}

.tw-driver-found-driver__quick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tw-driver-found-driver__quick a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--tw-home-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tw-home-primary);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.055);
  display: grid;
  place-items: center;
}

.tw-driver-found-driver__quick a.is-disabled {
  opacity: 0.44;
  pointer-events: none;
}

.tw-driver-found-driver__quick svg {
  width: 19px;
  height: 19px;
}

.tw-driver-found-vehicle {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: var(--tw-driver-found-inline-gap);
  padding: 12px 14px 15px;
}

.tw-driver-found-vehicle__art {
  width: 148px;
  height: 96px;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8f6ff, #f0ebff);
}

.tw-driver-found-vehicle-asset {
  width: 100%;
  max-width: 148px;
  height: 96px;
  display: block;
  object-fit: contain;
  transform: none;
  image-rendering: auto;
}

.tw-driver-found-vehicle-asset[data-vehicle-art-kind="exact"] {
  width: 138%;
  max-width: none;
  transform: scale(1.06);
}

.tw-driver-found-vehicle-asset[data-vehicle-art-kind="fallback"] {
  width: 112%;
  max-width: none;
}

.tw-driver-found-vehicle__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tw-driver-found-vehicle__plate {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9px;
  background: #ffffff;
  color: var(--tw-home-ink);
  font-size: 12px;
  line-height: 15px;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.tw-waiting-driver {
  width: min(100%, 392px);
  margin: -12px auto 0;
  padding: 0 16px calc(var(--tw-bottom-nav-height, 78px) + env(safe-area-inset-bottom, 0px) + 44px);
  display: grid;
  gap: 12px;
}

.tw-plain-app:has(.tw-waiting-driver) > h1 {
  display: none;
}

.tw-waiting-driver__header {
  display: grid;
  gap: 5px;
  padding: 4px 2px 2px;
}

.tw-waiting-driver__header h1,
.tw-waiting-driver__header p {
  margin: 0;
}

.tw-waiting-driver__header h1 {
  color: var(--tw-home-ink);
  font-size: 24px;
  line-height: 29px;
}

.tw-waiting-driver__header p,
.tw-waiting-driver__card small {
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 16px;
}

.tw-waiting-driver__card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--tw-home-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--tw-home-shadow);
}

.tw-waiting-driver__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.tw-waiting-driver__route span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tw-waiting-driver__route span:last-child {
  text-align: right;
}

.tw-waiting-driver__route b {
  color: var(--tw-home-primary);
  font-size: 20px;
}

.tw-waiting-driver__route strong {
  overflow-wrap: anywhere;
}

.tw-waiting-driver__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tw-home-line);
}

.tw-waiting-driver__facts span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 6px;
  background: #faf9ff;
  text-align: center;
}

.tw-waiting-driver__facts strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tw-waiting-driver__cancel label {
  display: grid;
  gap: 7px;
  color: var(--tw-home-ink);
  font-size: 13px;
  font-weight: 700;
}

.tw-waiting-driver__cancel input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #d7d3e4;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.tw-waiting-driver__cancel button {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid #d7d3e4;
  border-radius: 12px;
  background: #fff;
  color: #7a2631;
  font: inherit;
  font-weight: 750;
}

.tw-driver-found-map {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--tw-driver-found-radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.tw-driver-found-map__canvas {
  position: relative;
  height: var(--tw-driver-found-map-height);
  overflow: hidden;
  background: #f5f6fb;
}

.tw-driver-found-map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 44%, rgba(90, 53, 242, 0.1), transparent 35%),
    linear-gradient(135deg, #fbfbfe, #f3f5fb);
  color: var(--tw-home-muted);
  text-align: center;
}

.tw-driver-found-map__fallback strong {
  color: var(--tw-home-ink);
  font-size: 14px;
  line-height: 18px;
  font-weight: 720;
}

.tw-driver-found-map__fallback span {
  max-width: 220px;
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 540;
}

.tw-driver-found-map[data-map-state="live_map_ready"] .tw-driver-found-map__fallback,
.tw-driver-found-map[data-map-state="driver_location_updating"] .tw-driver-found-map__fallback,
.tw-driver-found-map[data-map-state="temporary_stale_location"] .tw-driver-found-map__fallback,
.tw-driver-found-map[data-map-state="weak_connection"] .tw-driver-found-map__fallback {
  display: none;
}

.tw-driver-found-map__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.tw-driver-found-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--tw-driver-found-radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.tw-driver-found-map__facts span,
.tw-driver-found-telemetry span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 7px 4px;
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  text-align: center;
}

.tw-driver-found-map__facts span:last-child,
.tw-driver-found-telemetry span:last-child {
  border-right: 0;
}

.tw-driver-found-map__facts i,
.tw-driver-found-telemetry i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--tw-home-primary);
}

.tw-driver-found-map__facts i svg,
.tw-driver-found-telemetry i svg {
  width: 15px;
  height: 15px;
}

.tw-driver-found-map__facts b,
.tw-driver-found-telemetry b {
  color: var(--tw-home-ink);
  font-size: 12px;
  line-height: 14px;
  font-weight: 680;
}

.tw-driver-found-map__facts small,
.tw-driver-found-telemetry small {
  color: var(--tw-home-muted);
  font-size: 10px;
  line-height: 12px;
  font-weight: 520;
}

.tw-driver-found-telemetry__cell--excellent i {
  color: #16a34a;
}

.tw-driver-found-telemetry__cell--medium i {
  color: #f59e0b;
}

.tw-driver-found-telemetry__cell--weak i,
.tw-driver-found-telemetry__cell--offline i {
  color: #ef4444;
}

.tw-driver-found-telemetry__cell--offline small {
  color: #8a8fa3;
}

.tw-driver-found-route {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
  padding: 10px 2px 0;
}

.tw-driver-found-route__points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tw-driver-found-route__points > div {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 9px;
}

.tw-driver-found-route__points > div:first-child::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: -8px;
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(90, 53, 242, 0.38), rgba(255, 136, 15, 0.35));
}

.tw-driver-found-route__pin {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #ffffff;
}

.tw-driver-found-route__pin svg {
  width: 14px;
  height: 14px;
}

.tw-driver-found-route__pin--start {
  background: var(--tw-home-primary);
}

.tw-driver-found-route__pin--finish {
  background: #ff880f;
}

.tw-driver-found-route__points strong,
.tw-driver-found-route__points small {
  grid-column: 2;
}

.tw-driver-found-route__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-top: 2px;
}

.tw-driver-found-route__meta span {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 5px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 11px;
  color: var(--tw-home-ink);
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  text-align: center;
}

.tw-driver-found-route__meta svg {
  width: 14px;
  height: 14px;
  color: var(--tw-home-primary);
}

.tw-driver-found-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.tw-driver-found-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tw-driver-found-action {
  box-sizing: border-box;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: var(--tw-home-control-radius);
  font-size: 13px;
  line-height: 16px;
  font-weight: 720;
  text-decoration: none;
  text-align: center;
  white-space: normal;
}

.tw-driver-found-action svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.tw-driver-found-action.tw-c-primary-button {
  border: 0;
  background: var(--tw-home-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(90, 53, 242, 0.2);
}

.tw-driver-found-action.tw-c-secondary-button {
  border: 1px solid var(--tw-home-primary);
  background: #ffffff;
  color: var(--tw-home-primary);
  box-shadow: 0 10px 22px rgba(90, 53, 242, 0.08);
}

.tw-driver-found-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 540;
  text-align: center;
}

.tw-driver-found-note svg {
  width: 16px;
  height: 16px;
}

.tw-driver-vehicle-selection {
  --tw-home-primary: #5a35f2;
  --tw-home-ink: #05072f;
  --tw-home-muted: #667085;
  --tw-home-line: #e9e7f3;
  --tw-home-card-radius: 22px;
  --tw-home-control-radius: 18px;
  --tw-driver-vehicle-preview-canvas-width: 220px;
  --tw-driver-vehicle-preview-canvas-height: 118px;
  --tw-driver-vehicle-preview-canvas-offset: 0px;
  --tw-driver-vehicle-preview-object-y: -4px;
  --tw-driver-vehicle-card-canvas-width: 220px;
  --tw-driver-vehicle-card-canvas-height: 118px;
  --tw-driver-vehicle-card-canvas-offset: 0px;
  --tw-driver-vehicle-card-object-y: -8px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 10px 0 18px;
  padding: 14px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--tw-home-card-radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.tw-driver-vehicle-selection__eyebrow {
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 14px;
  font-weight: 700;
}

.tw-driver-vehicle-selection__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 166px;
  align-items: center;
  gap: 12px;
}

.tw-driver-vehicle-selection h3 {
  margin: 0;
  color: var(--tw-home-ink);
  font-size: 18px;
  line-height: 22px;
  font-weight: 760;
}

.tw-driver-vehicle-selection p {
  margin: 3px 0 0;
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 540;
}

.tw-driver-vehicle-selection__preview {
  min-width: 0;
  height: 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tw-driver-vehicle-selection__preview-image {
  width: var(--tw-driver-vehicle-preview-canvas-width);
  max-width: none;
  height: var(--tw-driver-vehicle-preview-canvas-height);
  object-fit: contain;
  display: block;
  transform: translate(
    var(--tw-driver-vehicle-preview-canvas-offset),
    var(--tw-driver-vehicle-preview-object-y)
  );
}

.tw-driver-vehicle-selection__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tw-driver-vehicle-selection__group > strong,
.tw-driver-vehicle-selection__field label {
  color: var(--tw-home-ink);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.tw-driver-vehicle-body-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 2px 18px 6px 2px;
  margin: 0 -2px;
  scrollbar-width: none;
}

.tw-driver-vehicle-body-grid::-webkit-scrollbar {
  display: none;
}

.tw-driver-vehicle-body-option {
  position: relative;
  flex: 0 0 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 126px;
  padding: 7px 8px 10px;
  scroll-snap-align: start;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 15px;
  background: #ffffff;
  color: var(--tw-home-ink);
  font-size: 12px;
  line-height: 15px;
  font-weight: 650;
  text-align: center;
}

.tw-driver-vehicle-body-option input,
.tw-driver-vehicle-color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tw-driver-vehicle-body-option:has(input:checked),
.tw-driver-vehicle-color-option:has(input:checked) {
  border-color: rgba(90, 53, 242, 0.55);
  box-shadow: 0 0 0 3px rgba(90, 53, 242, 0.08);
}

.tw-driver-vehicle-body-option__art {
  flex: 0 0 86px;
  min-width: 0;
  height: 86px;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
}

.tw-driver-vehicle-body-option__image {
  width: var(--tw-driver-vehicle-card-canvas-width);
  max-width: none;
  height: var(--tw-driver-vehicle-card-canvas-height);
  object-fit: contain;
  display: block;
  transform: translate(
    var(--tw-driver-vehicle-card-canvas-offset),
    var(--tw-driver-vehicle-card-object-y)
  );
}

.tw-driver-vehicle-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.tw-driver-vehicle-color-option {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
}

.tw-driver-vehicle-color-option__swatch {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--vehicle-color);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.65);
}

.tw-driver-vehicle-color-option:has(input:checked) {
  box-shadow: none;
}

.tw-driver-vehicle-color-option:has(input:checked)::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid var(--tw-home-primary);
  border-radius: 999px;
}

.tw-driver-vehicle-selection__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tw-driver-vehicle-selection__field label span {
  color: var(--tw-home-muted);
  font-weight: 540;
}

.tw-driver-vehicle-selection__field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--tw-home-control-radius);
  font: inherit;
}

.tw-plain-app:has(.tw-active-trip) > h1 {
  display: none;
}

.tw-active-trip {
  --tw-active-trip-bottom-safe: calc(
    var(--tw-bottom-nav-height, 72px) +
    var(--tw-bottom-nav-bottom-gap, 16px) +
    env(safe-area-inset-bottom) +
    56px
  );
  gap: 12px;
  padding-bottom: var(--tw-active-trip-bottom-safe);
  scroll-padding-bottom: var(--tw-active-trip-bottom-safe);
}

.tw-active-trip h1,
.tw-active-trip p {
  margin: 0;
}

.tw-active-trip-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  padding: 10px 2px 8px;
}

.tw-active-trip-status button,
.tw-active-trip-driver__actions a,
.tw-active-trip-driver__actions span,
.tw-active-trip-next > span,
.tw-active-trip-safety > span {
  display: grid;
  place-items: center;
}

.tw-active-trip-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tw-active-trip-status h1 {
  color: var(--tw-home-ink);
  font-size: 20px;
  line-height: 24px;
  font-weight: 780;
}

.tw-active-trip-status p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--tw-home-muted);
  font-size: 14px;
  line-height: 18px;
  font-weight: 560;
}

.tw-active-trip-status p i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #18b866;
}

.tw-active-trip-status button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--tw-home-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tw-home-ink);
}

.tw-active-trip-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  min-height: 88px;
  padding: 14px 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.tw-active-trip-time__half {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 0 16px;
}

.tw-active-trip-time__half .tw-active-trip-icon {
  grid-row: 1 / span 2;
}

.tw-active-trip-time__divider {
  width: 1px;
  height: 46px;
  background: rgba(15, 23, 42, 0.1);
}

.tw-active-trip-time .tw-active-trip-icon {
  width: 20px;
  height: 20px;
}

.tw-active-trip-time span,
.tw-active-trip-next small,
.tw-active-trip-driver__text span,
.tw-active-trip-driver__text small,
.tw-active-trip-safety small,
.tw-active-trip-protection small {
  color: var(--tw-home-muted);
  font-size: 11px;
  line-height: 14px;
  font-weight: 560;
}

.tw-active-trip-time strong {
  color: var(--tw-home-ink);
  font-size: 22px;
  line-height: 26px;
  font-weight: 780;
}

.tw-active-trip-map-shell {
  position: relative;
  padding-bottom: 76px;
}

.tw-active-trip-map {
  position: relative;
  min-height: clamp(300px, 78vw, 368px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #f7f8fb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.tw-active-trip-map__canvas {
  position: absolute;
  inset: 0;
  min-height: clamp(300px, 78vw, 368px);
}

.tw-active-trip-map__geo-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgba(124, 58, 237, 0.12), transparent 28%),
    radial-gradient(circle at 75% 68%, rgba(96, 165, 250, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(244, 247, 251, 0.94));
}

.tw-active-trip-map__geo-skeleton i,
.tw-active-trip-map__geo-skeleton b {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
}

.tw-active-trip-map__geo-skeleton i:nth-child(1) {
  left: -12%;
  top: 28%;
  width: 78%;
  height: 11px;
  transform: rotate(-18deg);
}

.tw-active-trip-map__geo-skeleton i:nth-child(2) {
  right: -18%;
  top: 56%;
  width: 88%;
  height: 12px;
  transform: rotate(16deg);
}

.tw-active-trip-map__geo-skeleton i:nth-child(3) {
  left: 24%;
  top: -14%;
  width: 12px;
  height: 72%;
  transform: rotate(22deg);
}

.tw-active-trip-map__geo-skeleton i:nth-child(4) {
  left: 46%;
  bottom: -20%;
  width: 10px;
  height: 62%;
  transform: rotate(-32deg);
}

.tw-active-trip-map__geo-skeleton b {
  left: calc(50% - 22px);
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.tw-active-trip-map[data-map-state="loading"] .tw-active-trip-map__geo-skeleton {
  animation: twActiveGeoBreathe 1.3s ease-in-out infinite alternate;
}

.tw-active-trip-map[data-map-state="live_map_ready"] .tw-active-trip-map__geo-skeleton,
.tw-active-trip-map[data-map-state="route_visible"] .tw-active-trip-map__geo-skeleton,
.tw-active-trip-map[data-map-state="tracking_recovered"] .tw-active-trip-map__geo-skeleton,
.tw-active-trip-map[data-map-state="ready"] .tw-active-trip-map__geo-skeleton {
  display: none;
}

@keyframes twActiveGeoBreathe {
  from { filter: saturate(0.82); opacity: 0.72; }
  to { filter: saturate(1.05); opacity: 1; }
}

.tw-active-trip-map__freshness {
  position: absolute;
  left: 16px;
  bottom: 86px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 112px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--tw-home-ink);
  font-size: 11px;
  line-height: 14px;
  font-weight: 650;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
}

.tw-active-trip-map__freshness::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #18b866;
}

.tw-active-trip-map[data-map-state="tracking_delayed"] .tw-active-trip-map__freshness::before,
.tw-active-trip-map[data-map-state="no_tracking"] .tw-active-trip-map__freshness::before,
.tw-active-trip-map[data-map-state="temporarily_unavailable"] .tw-active-trip-map__freshness::before,
.tw-active-trip-map[data-map-state="stale_position"] .tw-active-trip-map__freshness::before {
  background: #f59e0b;
}

.tw-active-trip-map[data-map-state="offline"] .tw-active-trip-map__freshness::before,
.tw-active-trip-map[data-map-state="not_connected"] .tw-active-trip-map__freshness::before {
  background: #94a3b8;
}

.tw-active-trip-map__controls {
  position: absolute;
  right: 16px;
  top: 64px;
  z-index: 4;
  display: grid;
  grid-template-columns: 44px;
  justify-items: center;
  gap: 0;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(33, 24, 63, 0.1);
  backdrop-filter: blur(16px) saturate(1.08);
}

.tw-active-trip-map:not([data-map-created="true"]) .tw-active-trip-map__controls {
  display: none;
}

.tw-active-trip-map__controls button {
  width: 44px;
  height: 44px;
  margin-right: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tw-home-ink);
  box-shadow: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.tw-active-trip-map__controls button + button {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tw-active-trip-map__control-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
  color: currentColor;
  pointer-events: none;
}

.tw-active-trip-map__control-icon--plus::before,
.tw-active-trip-map__control-icon--plus::after,
.tw-active-trip-map__control-icon--minus::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.tw-active-trip-map__control-icon--plus::before,
.tw-active-trip-map__control-icon--minus::before {
  width: 12px;
  height: 2px;
}

.tw-active-trip-map__control-icon--plus::after {
  width: 2px;
  height: 12px;
}

.tw-active-trip-map__control-icon--recenter {
  border: 1.75px solid currentColor;
  border-radius: 999px;
  transform: scale(0.7);
}

.tw-active-trip-map__control-icon--recenter::before,
.tw-active-trip-map__control-icon--recenter::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.tw-active-trip-map__control-icon--recenter::before {
  width: 28px;
  height: 1.75px;
  background: linear-gradient(90deg, currentColor 0 5px, transparent 5px 23px, currentColor 23px 28px);
}

.tw-active-trip-map__control-icon--recenter::after {
  width: 1.75px;
  height: 28px;
  background: linear-gradient(180deg, currentColor 0 5px, transparent 5px 23px, currentColor 23px 28px);
}

.tw-active-trip-map__controls button:active {
  transform: scale(0.96);
}

.tw-active-trip-map__controls button:focus-visible {
  outline: 2px solid var(--tw-home-primary);
  outline-offset: 2px;
  border-color: transparent;
}

.tw-active-trip-vehicle-marker {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  transform-origin: 50% 50%;
}

.tw-active-trip-vehicle-marker__backing {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.tw-active-trip-vehicle-marker__car {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 50%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tw-active-trip-map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  z-index: 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(245, 246, 251, 0.68) 100%);
  color: var(--tw-home-muted);
  text-align: center;
  backdrop-filter: blur(2px);
}

.tw-active-trip-map__fallback strong {
  color: var(--tw-home-ink);
  font-size: 15px;
  line-height: 19px;
  font-weight: 760;
}

.tw-active-trip-map__fallback span {
  max-width: 240px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 560;
}

.tw-active-trip-map[data-map-state="live_map_ready"] .tw-active-trip-map__fallback,
.tw-active-trip-map[data-map-state="route_visible"] .tw-active-trip-map__fallback,
.tw-active-trip-map[data-map-state="tracking_recovered"] .tw-active-trip-map__fallback,
.tw-active-trip-map[data-map-state="ready"] .tw-active-trip-map__fallback {
  display: none;
}

.tw-active-trip-next,
.tw-active-trip-driver,
.tw-active-trip-route,
.tw-active-trip-safety,
.tw-active-trip-protection {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.tw-active-trip-next {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px 16px;
}

.tw-active-trip-next > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2px;
}

.tw-active-trip-next > span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f1ecff;
  color: var(--tw-home-primary);
}

.tw-active-trip-next > span .tw-active-trip-icon {
  width: 20px;
  height: 20px;
}

.tw-active-trip-next b {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--tw-home-primary);
  border-bottom: 2px solid var(--tw-home-primary);
  transform: rotate(-45deg);
  justify-self: end;
}

.tw-active-trip-next strong,
.tw-active-trip-driver__text strong,
.tw-active-trip-route__points strong,
.tw-active-trip-safety strong,
.tw-active-trip-protection strong {
  color: var(--tw-home-ink);
  font-size: 15px;
  line-height: 19px;
  font-weight: 760;
}

.tw-active-trip-next strong {
  overflow-wrap: anywhere;
}

.tw-active-trip-next em {
  display: block;
  margin-top: 0;
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 15px;
  font-style: normal;
  font-weight: 560;
}

.tw-active-trip-driver {
  display: grid;
  grid-template-columns: var(--tw-avatar-size-detail, 52px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
}

.tw-active-trip-driver__avatar {
  width: var(--tw-avatar-size-detail, 52px);
  height: var(--tw-avatar-size-detail, 52px);
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #f1ecff;
  color: var(--tw-home-primary);
  font-size: 20px;
  line-height: 1;
  font-weight: 850;
  overflow: hidden;
}

.tw-active-trip-driver__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dx-active-passenger {
  grid-template-columns: var(--tw-avatar-size-card, 44px) minmax(0, 1fr) auto;
}

.dx-active-passenger__avatar {
  width: var(--tw-avatar-size-card, 44px);
  height: var(--tw-avatar-size-card, 44px);
  border-radius: var(--tw-radius-input, 14px);
}

.tw-active-trip-driver__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tw-active-trip-driver__actions {
  display: flex;
  gap: 8px;
}

.tw-active-trip-driver__actions a,
.tw-active-trip-driver__actions span {
  width: 44px;
  height: 44px;
  border: 1px solid var(--tw-home-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--tw-home-primary);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
}

.tw-active-trip-driver__actions svg,
.tw-active-trip-driver__actions .tw-active-trip-icon {
  width: 18px;
  height: 18px;
}

.tw-active-trip-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 0.58fr);
  gap: 14px;
  padding: 16px;
}

.tw-active-trip-route__points {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tw-active-trip-route__points > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.tw-active-trip-route__points p {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tw-active-trip-route__points small {
  color: var(--tw-home-muted);
  font-size: 12px;
  line-height: 15px;
  font-weight: 560;
}

.tw-active-trip-route__points span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--tw-home-primary);
  color: #ffffff;
}

.tw-active-trip-route__points > div:last-child span {
  background: #ff880f;
}

.tw-active-trip-route__points svg,
.tw-active-trip-route__points .tw-active-trip-icon {
  width: 14px;
  height: 14px;
}

.tw-active-trip-route__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
}

.tw-active-trip-route__meta span {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--tw-home-ink);
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  text-align: center;
}

.tw-active-trip-route__meta svg,
.tw-active-trip-route__meta .tw-active-trip-icon {
  width: 13px;
  height: 13px;
}

.tw-active-trip-safety {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.tw-active-trip-safety > span {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f1ecff;
  color: var(--tw-home-primary);
}

.tw-active-trip-protection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  color: var(--tw-home-muted);
  text-align: center;
}

.tw-active-trip-protection svg,
.tw-active-trip-protection .tw-active-trip-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.tw-active-trip-protection span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 370px) {
  .tw-trip-match-card {
    grid-template-columns: 56px minmax(0, 1fr) 78px;
    column-gap: 5px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .tw-trip-match-card__driver .tw-driver-card-avatar {
    width: var(--tw-avatar-size-card, 44px);
    height: var(--tw-avatar-size-card, 44px);
  }

  .tw-trip-match-card__commerce {
    padding-left: 6px;
    padding-right: 10px;
  }

  .tw-passenger-search-choice,
  .tw-passenger-search-date-grid label,
  .tw-passenger-search-filter-grid label {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tw-trip-matches-summary {
    grid-template-columns: 46px minmax(0, 1fr) 82px;
    gap: 7px;
    padding-left: 12px;
  }

  .tw-trip-matches-summary__art {
    width: 90px;
  }

  .tw-trip-matches-summary__hero {
    width: 126%;
  }

  .tw-trip-matches-create {
    grid-template-columns: 52px minmax(0, 1fr) 22px;
    gap: 12px;
  }

  .tw-driver-card__route {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  }

  .tw-driver-found {
    --tw-driver-found-inline-gap: 10px;
  }

  .tw-driver-found-status {
    grid-template-columns: 44px minmax(0, 1fr) 36px;
    gap: 10px;
  }

  .tw-driver-found-status__icon {
    width: 44px;
    height: 44px;
  }

  .tw-driver-found-status h1 {
    font-size: 17px;
    line-height: 21px;
  }

  .tw-driver-found-driver {
    grid-template-columns: var(--tw-avatar-size-detail, 52px) minmax(0, 1fr) auto;
    gap: 8px;
  }

  .tw-driver-found-driver__avatar {
    width: var(--tw-avatar-size-detail, 52px);
    height: var(--tw-avatar-size-detail, 52px);
  }

  .tw-driver-found-vehicle {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
  }

  .tw-driver-found-vehicle__art {
    width: 132px;
    height: 90px;
  }

  .tw-driver-found-vehicle-asset {
    max-width: 132px;
    height: 90px;
  }

  .tw-driver-found-telemetry span {
    min-height: 62px;
    padding-left: 3px;
    padding-right: 3px;
  }

  .tw-driver-found-driver__quick {
    gap: 6px;
  }

  .tw-driver-found-driver__quick a {
    width: 44px;
    height: 44px;
  }

  .tw-driver-found-driver__quick svg {
    width: 17px;
    height: 17px;
  }

  .tw-driver-found-route__meta span {
    font-size: 9.5px;
    line-height: 12px;
    padding-left: 3px;
    padding-right: 3px;
  }

  .tw-driver-found-action {
    gap: 6px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 12px;
    line-height: 15px;
  }
}
/* Owner-approved Passenger Service Class selector family (Claude R5,
   reconstructed against the canonical shared vehicle illustration system). */
/* Frozen Passenger Service Class Selector (ca7d974 R5). */
.tw-service-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tw-service-class-card {
  position: relative;
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 5px;
  border: 1px solid var(--tw-home-line);
  border-radius: var(--tw-home-control-radius);
  background: #fff;
  box-shadow: 0 7px 16px rgba(16, 24, 40, .045);
  color: var(--tw-home-ink);
  cursor: pointer;
  font: inherit;
}

.tw-service-class-card.is-selected {
  border-color: rgba(90, 53, 242, .38);
  background: #f7f5ff;
  box-shadow: 0 4px 10px rgba(90, 53, 242, .07);
}

.tw-service-class-card__icon {
  position: absolute;
  top: 8px;
  left: 9px;
  width: 17px;
  height: 17px;
  color: var(--tw-home-primary);
}

.tw-service-class-card__icon svg,
.tw-service-class-card__badge svg {
  width: 100%;
  height: 100%;
}

.tw-service-class-card__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tw-home-primary);
  box-shadow: 0 2px 5px rgba(90, 53, 242, .3);
  color: #fff;
}

.tw-service-class-card__badge svg {
  width: 11px;
  height: 11px;
}

.tw-service-class-card__vehicle {
  display: flex;
  width: 100%;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  padding-top: 3px;
}

.tw-service-class-vehicle {
  display: block;
  width: 100%;
  max-width: 84px;
  height: auto;
}

.tw-service-class-card__label {
  margin-top: 1px;
  color: var(--tw-home-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

[data-search-extension="service_class"] h2 {
  margin: 14px 0 6px;
  font-size: 16px;
}

@media (max-width: 360px) {
  .tw-service-class-card {
    min-height: 104px;
    padding: 7px 4px;
  }

  .tw-service-class-card__label {
    font-size: 11.5px;
  }
}
