:root {
  --ink: #17201d;
  --muted: #63706a;
  --line: #d7e0dc;
  --line-strong: #9fbab2;
  --surface: #ffffff;
  --wash: #f3f7f4;
  --green: #0f766e;
  --green-dark: #0b4f4a;
  --accent: #0f766e;
  --accent-soft: #e7f3f1;
  --success: #21855d;
  --warning: #d2851f;
  --gold: #e6a93a;
  --blue: #3157a4;
  --red: #be3b35;
  --shadow: 0 18px 42px rgba(23, 32, 29, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.05) 1px, transparent 1px),
    #eef3ef;
  background-size: 34px 34px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h2,
p {
  margin-block-start: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.role-tabs,
.filter-group {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.tab-button,
.filter-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  padding: 8px 12px;
}

.tab-button.active,
.filter-button.active {
  color: #fff;
  background: var(--green);
}

.status-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill[hidden],
.install-action[hidden] {
  display: none !important;
}

.language-picker {
  min-width: 138px;
  gap: 4px;
}

.language-picker span {
  color: var(--muted);
  font-size: 0.74rem;
}

.language-picker select {
  min-height: 38px;
  padding: 7px 10px;
}

.install-action {
  min-height: 38px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 7px;
  color: var(--green-dark);
  background: rgba(15, 118, 110, 0.08);
  padding: 8px 12px;
  font-weight: 900;
}

.deployment-update-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(49, 87, 164, 0.18);
  background: #f5f8ff;
  color: #243047;
  box-shadow: 0 10px 24px rgba(49, 87, 164, 0.08);
}

.deployment-update-notice[data-mode="active"] {
  border-bottom-color: rgba(210, 133, 31, 0.28);
  background: #fff8ee;
}

.deployment-update-notice div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.deployment-update-notice strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.deployment-update-notice span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.deployment-update-notice .secondary-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  background: #fff;
}

.workspace-background-map {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(49, 87, 164, 0.09) 1px, transparent 1px),
    #e9f4ec;
  background-size: 32px 32px;
  transition: opacity 180ms ease;
}

body.workspace-map-active .workspace-background-map {
  opacity: 1;
  pointer-events: auto;
}

body.workspace-map-active main,
body.workspace-map-active .topbar,
body.workspace-map-active .deployment-update-notice {
  position: relative;
  z-index: 2;
}

body.workspace-map-active .workspace {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 76px);
}

body.workspace-map-active main,
body.workspace-map-active .workspace {
  pointer-events: none;
}

body.workspace-map-active .topbar,
body.workspace-map-active .deployment-update-notice,
body.workspace-map-active .left-panel,
body.workspace-map-active .board-section,
body.workspace-map-active .chat-panel,
body.workspace-map-active .stacked-form,
body.workspace-map-active .compact-form,
body.workspace-map-active .passenger-workspace-top,
body.workspace-map-active .rider-workspace-top,
body.workspace-map-active .location-tools,
body.workspace-map-active .notice-panel,
body.workspace-map-active .session-card {
  pointer-events: auto;
}

body.workspace-map-active .left-panel,
body.workspace-map-active .board-section,
body.workspace-map-active .chat-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

body.workspace-map-active .tab-panel.active,
body.workspace-map-active .stacked-form,
body.workspace-map-active .compact-form,
body.workspace-map-active .passenger-workspace-top,
body.workspace-map-active .rider-workspace-top,
body.workspace-map-active .location-tools,
body.workspace-map-active .notice-panel,
body.workspace-map-active .session-card {
  background-color: rgba(255, 255, 255, 0.88);
}

.workspace-background-map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
}

.workspace-background-map-viewport.dragging {
  cursor: grabbing;
}

.workspace-map-tiles,
.workspace-map-route-layer,
.workspace-map-markers {
  position: absolute;
  inset: 0;
}

.workspace-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 160ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.workspace-map-tile.loaded {
  opacity: 1;
}

.workspace-map-route-layer {
  overflow: visible;
  pointer-events: none;
}

.workspace-map-route-line {
  fill: none;
  stroke: rgba(37, 99, 235, 0.82);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 5px rgba(23, 32, 29, 0.26));
}

.workspace-map-marker {
  position: absolute;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -100%);
  border: 3px solid #fff;
  border-radius: 999px 999px 999px 6px;
  color: #fff;
  background: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 32, 29, 0.26);
  pointer-events: none;
}

.workspace-map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 12px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(23, 32, 29, 0.28);
  filter: blur(1px);
}

.workspace-map-marker.pickup {
  background: var(--green);
}

.workspace-map-marker.destination {
  background: var(--blue);
}

.workspace-map-marker.rider {
  background: var(--gold);
  color: var(--ink);
}

.workspace-map-marker.device {
  background: var(--blue);
}

.workspace-map-marker.request {
  background: var(--red);
}

.workspace-map-fallback .workspace-map-tiles {
  background:
    radial-gradient(circle at 20% 26%, rgba(15, 118, 110, 0.23) 0 8px, transparent 9px),
    radial-gradient(circle at 78% 62%, rgba(49, 87, 164, 0.22) 0 10px, transparent 11px),
    linear-gradient(135deg, transparent 0 46%, rgba(37, 99, 235, 0.3) 47% 49%, transparent 50%),
    linear-gradient(90deg, rgba(15, 118, 110, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(49, 87, 164, 0.09) 1px, transparent 1px),
    #e9f4ec;
  background-size: auto, auto, 100% 100%, 34px 34px, 34px 34px, auto;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(230, 169, 58, 0.18);
}

.role-entry {
  width: min(780px, calc(100% - 32px));
  min-height: calc(100vh - 108px);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 58px) 0;
  display: grid;
  align-items: center;
}

.role-entry-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.role-entry-panel h1 {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.08;
}

.role-entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-choice-card {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: left;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: 18px;
}

.role-choice-card:hover,
.role-choice-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
  outline: none;
}

.role-choice-card strong,
.role-choice-card small {
  display: block;
}

.role-choice-card small {
  color: var(--muted);
}

.public-home {
  width: 100%;
  min-height: auto;
  align-items: start;
  gap: 24px;
  padding: 0 0 64px;
  background:
    linear-gradient(180deg, #f7faf8 0%, #eef6f2 45%, #f8fafc 100%);
}

.public-nav,
.public-top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.public-nav {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 0;
  justify-content: flex-end;
}

.public-nav a,
.public-top-links a,
.public-link-list a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 7px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.76);
  padding: 8px 11px;
  font-weight: 900;
  text-decoration: none;
}

.public-nav a:hover,
.public-nav a:focus-visible,
.public-top-links a:hover,
.public-top-links a:focus-visible,
.public-link-list a:hover,
.public-link-list a:focus-visible,
.public-policy-grid a:hover,
.public-policy-grid a:focus-visible {
  border-color: rgba(49, 87, 164, 0.42);
  color: #24427e;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 29, 0.08);
  outline: none;
}

.public-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: #111c22;
  isolation: isolate;
  border-bottom: 1px solid rgba(17, 28, 34, 0.16);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 21, 26, 0.94) 0%, rgba(12, 21, 26, 0.82) 44%, rgba(12, 21, 26, 0.36) 74%, rgba(12, 21, 26, 0.12) 100%),
    linear-gradient(0deg, rgba(17, 28, 34, 0.72) 0%, rgba(17, 28, 34, 0.08) 52%, rgba(15, 118, 110, 0.18) 100%);
  pointer-events: none;
}

.public-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.public-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  align-content: center;
  width: min(1180px, calc(100% - 28px));
  max-width: 790px;
  min-height: 100%;
  margin: 0 auto;
  justify-self: stretch;
  padding: 72px 0;
}

.public-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 7rem;
  line-height: 0.85;
}

.public-hero-copy p,
.public-section p,
.public-action-grid p,
.public-document p,
.public-document li {
  color: var(--muted);
  line-height: 1.55;
}

.public-hero-copy p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.public-hero-copy .card-kicker {
  color: #b8e4dc;
}

.public-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
}

.public-hero-points span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 7px 10px;
  font-weight: 900;
}

.public-cta-row,
.public-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-hero .secondary-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.public-hero-proof {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(18px, 5vw, 54px);
  z-index: 2;
  width: min(330px, calc(100% - 36px));
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(17, 28, 34, 0.76);
  backdrop-filter: blur(12px);
  padding: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.public-hero-proof strong,
.public-hero-proof span {
  display: block;
}

.public-hero-proof span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.public-section {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.82);
  padding: 32px;
}

.public-lead-section {
  display: grid;
  gap: 10px;
  border-left: 6px solid #3157a4;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(23, 32, 29, 0.08);
}

.public-lead-section h2 {
  max-width: 840px;
}

.public-action-grid article,
.public-document-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 24px;
}

.public-section h2,
.public-action-grid h2,
.public-document h1,
.public-document h2 {
  margin: 6px 0 0;
  line-height: 1.12;
}

.public-section p,
.public-action-grid p {
  margin: 10px 0 0;
}

.public-action-grid {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.public-action-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
}

.public-action-grid article .secondary-action {
  margin-top: auto;
}

.public-value-strip,
.public-benefit-columns {
  display: grid;
  gap: 12px;
}

.public-value-strip {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-value-card,
.public-benefit-columns article {
  border: 1px solid rgba(49, 87, 164, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.public-value-card strong,
.public-benefit-columns strong {
  display: block;
  color: #3157a4;
  line-height: 1.2;
}

.public-value-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.42;
}

.public-stat-strip .public-value-card {
  min-height: 136px;
  display: grid;
  align-content: space-between;
}

.public-stat-strip .public-value-card strong {
  font-size: 1.75rem;
  letter-spacing: 0;
}

.public-feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  color: #fff;
  background: #111c22;
}

.public-scope-detail,
.public-navigation-section,
.public-policy-section {
  display: grid;
  gap: 18px;
}

.public-scope-detail {
  background: #ffffff;
}

.public-navigation-section {
  background: #f5fbf9;
  border-top: 1px solid rgba(15, 118, 110, 0.16);
  border-bottom: 1px solid rgba(15, 118, 110, 0.16);
}

.public-policy-section {
  background: #111c22;
  color: #fff;
}

.public-policy-section .card-kicker {
  color: #b8e4dc;
}

.public-policy-section h2,
.public-policy-section h3 {
  color: #fff;
}

.public-policy-section p {
  color: rgba(255, 255, 255, 0.78);
}

.public-scope-grid,
.public-navigation-grid,
.public-policy-grid {
  display: grid;
  gap: 12px;
}

.public-scope-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-navigation-grid,
.public-policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-scope-grid article,
.public-navigation-grid article,
.public-policy-grid article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
}

.public-navigation-grid article {
  border-color: rgba(49, 87, 164, 0.2);
}

.public-policy-grid article {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.public-scope-grid h3,
.public-navigation-grid h3,
.public-policy-grid h3,
.public-scope-grid p,
.public-navigation-grid ul,
.public-policy-grid p {
  margin: 0;
}

.public-scope-grid p,
.public-navigation-grid ul {
  color: var(--muted);
  line-height: 1.48;
}

.public-navigation-grid ul {
  padding-left: 20px;
}

.public-navigation-grid li + li {
  margin-top: 7px;
}

.public-policy-grid a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 11px;
  font-weight: 900;
  text-decoration: none;
}

.public-feature-band .card-kicker {
  color: #b8e4dc;
}

.public-feature-band h2 {
  color: #fff;
}

.public-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.public-feature-list article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.public-feature-list h3,
.public-feature-list p {
  margin: 0;
}

.public-feature-list h3 {
  color: #fff;
}

.public-feature-list p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.48;
}

.public-gains-grid article:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.public-gains-grid article:nth-child(2) {
  border-top: 4px solid var(--green);
}

.public-gains-grid article:nth-child(3) {
  border-top: 4px solid var(--gold);
}

.public-business-case {
  background: #fffaf2;
}

.public-comparison-section {
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.public-flow-section {
  display: grid;
  gap: 18px;
  background: #eef4fb;
}

.public-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.public-flow-steps article {
  min-height: 142px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border: 1px solid rgba(49, 87, 164, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.public-flow-steps strong {
  color: #3157a4;
  font-size: 1.35rem;
}

.public-flow-steps span {
  color: var(--muted);
  line-height: 1.45;
}

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

.public-comparison-grid article {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.public-comparison-grid h3 {
  margin: 0;
}

.public-comparison-grid ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.48;
}

.public-comparison-grid li + li {
  margin-top: 7px;
}

.public-benefit-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.public-benefit-columns ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.48;
}

.public-benefit-columns li + li {
  margin-top: 7px;
}

.public-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 18px;
  align-items: center;
}

.public-link-list {
  display: grid;
  gap: 8px;
}

.public-page-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f7faf8 0%, #eef6f2 50%, #f8fafc 100%);
}

.public-topbar {
  grid-template-columns: minmax(190px, 1fr) auto;
}

.public-document {
  width: min(940px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 46px) 0 60px;
  display: grid;
  gap: 16px;
}

.public-document-hero {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.18);
  padding: clamp(20px, 5vw, 46px) 0 clamp(16px, 3vw, 28px);
}

.public-document-hero h1 {
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.public-document-hero p {
  max-width: 760px;
  font-size: 1.06rem;
}

.public-document-section {
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(23, 32, 29, 0.06);
}

.public-document-section h2 {
  font-size: 1.16rem;
  color: var(--green-dark);
}

.public-document-section p,
.public-document-section ul,
.public-document-section ol {
  margin: 0;
}

.public-document-section ul,
.public-document-section ol {
  padding-left: 20px;
}

.public-document-section li + li {
  margin-top: 7px;
}

.public-document a {
  color: var(--green-dark);
  font-weight: 900;
}

.legal-document {
  width: min(980px, calc(100% - 28px));
}

.workspace {
  width: min(1500px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(14px, 2.6vw, 30px);
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}

.workspace[data-role="admin"] {
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.workspace[data-role="admin"] #adminDashboard {
  display: grid;
  gap: 14px;
}

.workspace[data-role="admin"] #adminDashboard[hidden] {
  display: none;
}

.workspace.account-only {
  width: min(1120px, 100%);
  grid-template-columns: 1fr;
  align-content: start;
}

.workspace.account-entry {
  width: min(1120px, 100%);
  grid-template-columns: 1fr;
  align-content: start;
}

.workspace.single-panel {
  width: min(1120px, 100%);
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.workspace.password-reset-entry {
  width: min(720px, 100%);
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.workspace.password-reset-entry .tab-panel.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  align-items: start;
}

.workspace:not(.account-entry):not(.account-only) .auth-entry-hero {
  display: none;
}

.workspace.password-reset-entry .auth-entry-hero {
  display: none;
}

.workspace.password-reset-entry [data-passenger-page-section],
.workspace.password-reset-entry [data-rider-page-section],
.workspace.password-reset-entry .passenger-workspace-top,
.workspace.password-reset-entry .rider-workspace-top,
.workspace.password-reset-entry .account-stage,
.workspace.password-reset-entry #passengerAccountForm,
.workspace.password-reset-entry #riderAccountForm {
  display: none !important;
}

.left-panel,
.board-section,
.chat-panel {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.left-panel {
  align-self: start;
}

.tab-panel {
  display: none;
  min-width: 0;
  max-width: 100%;
  padding: 20px;
}

.tab-panel.active {
  display: grid;
  gap: 18px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.panel-heading p {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 900;
}

.panel-heading span,
.inline-status,
.market-toolbar span,
.board-heading span,
.card-kicker,
.market-card small,
.subscription-card p,
.location-tools span {
  color: var(--muted);
}

.stacked-form,
.subscription-card,
.session-card,
.rider-flow-card,
.notice-panel,
.admin-account-actions {
  display: grid;
  gap: 13px;
}

.stacked-form h2,
.subscription-card h2,
.session-card h2,
.rider-flow-card h2,
.notice-panel h2,
.board-heading h2 {
  margin: 0;
  font-size: 1rem;
}

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

#offerForm.rider-leave-only #acceptFare,
#offerForm.rider-leave-only label,
#offerForm.rider-leave-only button[type="submit"] {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.checkbox-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  color: var(--ink);
  line-height: 1.45;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.pickup-current-location-field {
  margin-top: -2px;
}

.pickup-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
  gap: 8px;
  align-items: end;
}

.pickup-address-field textarea {
  min-height: 46px;
  resize: none;
}

.current-location-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 46px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--wash);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.current-location-toggle input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.current-location-toggle:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.document-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.flow-list {
  display: grid;
  gap: 8px;
}

.flow-step {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #a7b4ac;
}

.flow-step.complete .flow-dot,
.flow-step.current .flow-dot {
  background: var(--green);
}

.flow-step.locked .flow-dot {
  background: var(--red);
}

.flow-step strong,
.flow-step small {
  display: block;
}

.flow-step small {
  color: var(--muted);
  line-height: 1.35;
}

.flow-badge {
  justify-self: end;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--wash);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: capitalize;
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.verification-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.account-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-mode-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: var(--green-dark);
  background: transparent;
  padding: 8px 10px;
  font-weight: 900;
}

.account-mode-button.active {
  color: #fff;
  background: var(--green);
}

.workspace.account-entry .left-panel,
.workspace.account-only .left-panel {
  overflow: hidden;
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 26px 60px rgba(23, 32, 29, 0.14);
}

.workspace.account-entry .tab-panel.active,
.workspace.account-only .tab-panel.active {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.08fr);
  gap: 0;
  padding: 0;
  align-items: stretch;
}

.workspace.account-entry .panel-heading,
.workspace.account-only .panel-heading {
  display: none;
}

.auth-entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(145px, 0.55fr);
  grid-column: 2;
  grid-row: 1;
  gap: clamp(10px, 2.2vw, 20px);
  align-items: stretch;
  padding: clamp(18px, 3.2vw, 30px);
  background:
    radial-gradient(circle at 76% 14%, rgba(15, 118, 110, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(239, 247, 245, 0.94)),
    linear-gradient(90deg, rgba(49, 87, 164, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.rider-auth-hero {
  background:
    radial-gradient(circle at 74% 18%, rgba(49, 87, 164, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 252, 0.96)),
    linear-gradient(90deg, rgba(230, 169, 58, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(49, 87, 164, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.auth-entry-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.auth-wordmark {
  color: var(--green-dark);
  font-size: clamp(2.25rem, 5.6vw, 4.1rem);
  line-height: 0.86;
  font-weight: 950;
  letter-spacing: 0;
}

.auth-entry-copy .card-kicker {
  color: var(--green-dark);
  letter-spacing: 0;
}

.auth-entry-copy h2 {
  max-width: 560px;
  margin: 0;
  color: #101917;
  font-size: clamp(1.58rem, 3.75vw, 2.55rem);
  line-height: 1.01;
  letter-spacing: 0;
}

.auth-entry-copy p {
  max-width: 520px;
  margin: 0;
  color: #41504a;
  font-size: 0.93rem;
  line-height: 1.45;
}

.auth-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 500px;
  margin-top: 6px;
}

.auth-trust-row span {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  color: #1f2a26;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
}

.auth-trust-row strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

.rider-auth-hero .auth-trust-row strong {
  background: var(--blue);
}

.auth-entry-visual {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 230px;
}

.auth-route-card {
  position: relative;
  width: min(100%, 184px);
  aspect-ratio: 0.66;
  overflow: hidden;
  border: 7px solid #183f3c;
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(49, 87, 164, 0.1) 1px, transparent 1px),
    linear-gradient(145deg, #f9fcfb, #edf6f2);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.88),
    0 22px 38px rgba(23, 32, 29, 0.14);
}

.auth-route-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  z-index: 3;
  width: 52px;
  height: 6px;
  border-radius: 999px;
  background: rgba(24, 63, 60, 0.2);
  transform: translateX(-50%);
}

.rider-auth-hero .auth-route-card {
  border-color: #17335f;
  background:
    linear-gradient(90deg, rgba(230, 169, 58, 0.15) 1px, transparent 1px),
    linear-gradient(rgba(49, 87, 164, 0.1) 1px, transparent 1px),
    linear-gradient(135deg, #fbfaf5, #eff4fb);
  background-size: 28px 28px, 28px 28px, auto;
}

.auth-route-path {
  position: absolute;
  inset: 24px 22px 18px;
  width: calc(100% - 44px);
  height: calc(100% - 42px);
  overflow: visible;
}

.auth-route-path-shadow,
.auth-route-path-main {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-route-path-shadow {
  stroke: rgba(49, 87, 164, 0.16);
  stroke-width: 16;
}

.auth-route-path-main {
  stroke: var(--green);
  stroke-width: 7;
}

.rider-auth-hero .auth-route-path-main {
  stroke: var(--blue);
}

.auth-route-line {
  position: absolute;
  left: 12%;
  right: 10%;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.88;
}

.rider-auth-hero .auth-route-line {
  background: linear-gradient(90deg, var(--green), var(--blue), var(--gold));
  transform: translateY(-50%) rotate(8deg);
}

.auth-route-dot {
  position: absolute;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(23, 32, 29, 0.18);
}

.auth-route-dot-start {
  left: 17%;
  top: 13%;
  background: var(--blue);
}

.auth-route-dot-mid {
  left: 46%;
  top: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
}

.auth-route-dot-end {
  right: 12%;
  bottom: 8%;
  background: var(--gold);
  color: #2f2105;
}

.auth-entry-stat {
  position: absolute;
  right: -2px;
  bottom: 18px;
  z-index: 5;
  min-width: 170px;
  padding: 12px 14px 12px 54px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(23, 32, 29, 0.13);
}

.auth-entry-stat::before {
  content: attr(data-stat-icon);
  position: absolute;
  left: 12px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  transform: translateY(-50%);
  font-weight: 950;
}

.auth-entry-stat strong,
.auth-entry-stat span {
  display: block;
}

.auth-entry-stat strong {
  font-size: 0.92rem;
}

.auth-entry-stat span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.workspace.account-entry .account-stage,
.workspace.account-only .account-stage {
  display: none;
  width: min(100% - 48px, 660px);
  justify-self: center;
  margin: clamp(12px, 2.2vw, 16px) auto;
  gap: 10px;
  padding: 8px;
  border-color: rgba(15, 118, 110, 0.2);
  background: #f8fbf9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.workspace.account-entry .account-stage[data-mode="signin"],
.workspace.account-only .account-stage[data-mode="signin"] {
  display: none;
}

.workspace.account-entry .account-mode-button,
.workspace.account-only .account-mode-button {
  min-height: 58px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 29, 0.06);
  color: var(--green-dark);
  font-size: 1rem;
}

.workspace.account-entry .account-mode-button:hover,
.workspace.account-entry .account-mode-button:focus-visible,
.workspace.account-only .account-mode-button:hover,
.workspace.account-only .account-mode-button:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.11), 0 10px 24px rgba(23, 32, 29, 0.08);
}

.workspace.account-entry .account-mode-button.active,
.workspace.account-only .account-mode-button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.24);
}

.workspace.account-entry .auth-form,
.workspace.account-only .auth-form,
.workspace.password-reset-entry .auth-form {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  align-self: stretch;
  justify-self: stretch;
  margin: 0;
  padding: clamp(18px, 2.5vw, 28px);
  border: 0;
  border-right: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.workspace.password-reset-entry .auth-form {
  max-width: 620px;
  justify-self: center;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(12, 44, 38, 0.12);
}

.workspace.account-entry #passengerAccountForm,
.workspace.account-entry #riderAccountForm,
.workspace.account-only #passengerAccountForm,
.workspace.account-only #riderAccountForm {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-height: calc(100svh - 118px);
  align-self: stretch;
  justify-self: stretch;
  margin: 0;
  padding: clamp(18px, 2.4vw, 28px);
  overflow: auto;
  border-right: 1px solid rgba(15, 118, 110, 0.16);
  background: #fff;
}

.auth-form-heading {
  display: grid;
  gap: 5px;
}

.auth-form-heading h2 {
  margin: 0;
  color: #101923;
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  line-height: 1.05;
}

.auth-form-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.workspace.account-entry .auth-form label,
.workspace.account-only .auth-form label {
  color: #101923;
  font-size: 0.93rem;
}

.workspace.account-entry .auth-form input,
.workspace.account-only .auth-form input {
  min-height: 52px;
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 1rem;
}

.workspace.account-entry .auth-form .primary-action,
.workspace.account-only .auth-form .primary-action {
  min-height: 54px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.22);
  font-size: 1.04rem;
}

.auth-form-inline-action {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-forgot-action {
  font-size: 0.94rem;
}

.auth-form.auth-recovery-mode .auth-signin-only {
  display: none !important;
}

.auth-form.auth-recovery-mode .auth-safe-note {
  margin-top: 4px;
}

.auth-reset-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background: #f6fbf8;
}

.auth-reset-panel[hidden] {
  display: none;
}

.auth-reset-copy {
  display: grid;
  gap: 3px;
}

.auth-reset-copy strong {
  color: #10231f;
  font-size: 1rem;
}

.auth-reset-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.auth-reset-phone-step,
.auth-reset-password-fields {
  display: grid;
  gap: 12px;
}

.auth-reset-phone-step {
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #f7fbf9;
}

.auth-reset-phone-step[hidden],
.auth-reset-password-fields[hidden] {
  display: none !important;
}

.auth-reset-phone-step strong,
.auth-reset-phone-step span {
  display: block;
}

.auth-reset-phone-step strong {
  color: var(--ink);
  font-weight: 900;
}

.auth-reset-phone-step span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-reset-otp-row {
  align-items: end;
}

.auth-reset-otp-row .verification-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subtle-status {
  margin: 0;
  font-size: 0.88rem;
}

.auth-reset-panel .secondary-action {
  min-height: 46px;
  border-radius: 10px;
  font-size: 0.96rem;
}

.auth-create-prompt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  color: #1d2a26;
  font-weight: 750;
}

.account-route-prompt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-top: 4px;
  color: #1d2a26;
  font-weight: 750;
}

.text-action {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 0;
  font-weight: 950;
  text-decoration: none;
}

.text-action:hover,
.text-action:focus-visible {
  color: var(--green);
  text-decoration: underline;
}

.auth-safe-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #f3faf7;
}

.auth-safe-note p {
  margin: 0;
  color: #56635f;
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-safe-note strong {
  color: #26352f;
}

.auth-safe-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-weight: 950;
}

.passenger-workspace-top,
.rider-workspace-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.passenger-workspace-top h2,
.rider-workspace-top h2 {
  margin: 2px 0 0;
  font-size: 1.14rem;
}

.passenger-workspace-top p,
.rider-workspace-top p {
  margin: 5px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.passenger-workspace-top.request-minimal {
  display: flex;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
}

.passenger-workspace-top.request-minimal > div:first-child {
  display: none;
}

.workspace-menu-wrap {
  position: relative;
  display: block;
}

.workspace-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 7px;
  color: var(--green-dark);
  background: rgba(15, 118, 110, 0.08);
  padding: 8px 12px;
  font-weight: 900;
  list-style: none;
  user-select: none;
}

.workspace-menu-button::-webkit-details-marker {
  display: none;
}

.workspace-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  width: min(280px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.workspace-menu-wrap:not([open]) .workspace-nav {
  display: none;
}

.workspace-nav-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--wash);
  padding: 8px 10px;
  font-weight: 900;
}

.workspace-nav-button.active {
  color: #fff;
  background: var(--green);
}

.workspace-language-field {
  display: grid;
  gap: 5px;
  padding: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.workspace-language-field select {
  min-height: 40px;
  background: #fff;
}

.workspace-nav-signout {
  color: var(--red);
  background: rgba(190, 59, 53, 0.08);
}

.workspace-nav-signout-priority {
  order: -1;
}

.workspace-menu-button[hidden],
.workspace-nav-button[hidden],
.internal-field[hidden] {
  display: none;
}

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

.rider-overview-card {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(23, 32, 29, 0.07);
}

.rider-overview-card span,
.rider-overview-card small {
  display: block;
}

.rider-overview-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rider-overview-card strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.rider-overview-card small {
  color: var(--muted);
  line-height: 1.35;
}

.rider-overview-card:not(:disabled):hover,
.rider-overview-card:not(:disabled):focus-visible {
  outline: none;
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.11), 0 12px 26px rgba(23, 32, 29, 0.1);
}

.rider-overview-card:disabled {
  cursor: default;
}

.rider-overview-ready {
  border-left-color: var(--green);
}

.rider-overview-current {
  border-left-color: var(--blue);
}

.rider-overview-warning {
  border-left-color: var(--gold);
}

.rider-overview-danger {
  border-left-color: var(--red);
}

.payment-provider-panel {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(49, 87, 164, 0.24);
  border-radius: 8px;
  background: rgba(49, 87, 164, 0.07);
}

.payment-provider-panel strong,
.payment-provider-panel span {
  display: block;
}

.payment-provider-panel span,
.form-hint {
  color: var(--muted);
  line-height: 1.45;
}

.admin-setup-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.admin-setup-card summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 900;
}

.admin-setup-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.primary-action {
  color: #fff;
  background: var(--green);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--green-dark);
}

.secondary-action {
  color: var(--green-dark);
  background: rgba(15, 118, 110, 0.09);
  border-color: rgba(15, 118, 110, 0.25);
}

.ghost-action {
  color: var(--green-dark);
  background: #fff;
  border-color: var(--line);
}

.ghost-action.danger,
.decline-rider {
  color: var(--red);
  border-color: rgba(190, 59, 53, 0.28);
}

.primary-action:disabled,
.secondary-action:disabled,
.ghost-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.is-busy {
  cursor: wait;
  opacity: 0.72;
}

.inline-status {
  min-height: 22px;
  margin: -4px 0 0;
  font-size: 0.9rem;
}

.inline-status.success-status,
.inline-status.error-status {
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inline-status.success-status {
  border-color: rgba(33, 133, 93, 0.32);
  color: var(--green-dark);
  background: rgba(33, 133, 93, 0.08);
}

.inline-status.error-status {
  border-color: rgba(190, 59, 53, 0.32);
  color: var(--red);
  background: rgba(190, 59, 53, 0.08);
}

.rider-action-status {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.rider-action-status[data-tone="success"] {
  border-color: rgba(24, 128, 96, 0.35);
  color: var(--green);
  background: rgba(24, 128, 96, 0.08);
}

.rider-action-status[data-tone="error"] {
  border-color: rgba(184, 50, 45, 0.38);
  color: var(--red);
  background: rgba(184, 50, 45, 0.08);
}

.place-suggestions {
  display: grid;
  gap: 4px;
  margin-top: -8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(30, 41, 59, 0.13);
}

.place-suggestions[hidden] {
  display: none;
}

.recent-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -6px;
}

.recent-addresses[hidden] {
  display: none;
}

.recent-address-button {
  max-width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--wash);
  font-weight: 800;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.recent-address-button:hover,
.recent-address-button:focus-visible {
  outline: none;
  border-color: rgba(15, 118, 110, 0.38);
  background: rgba(15, 118, 110, 0.09);
}

.place-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.place-suggestion:hover,
.place-suggestion:focus-visible {
  outline: none;
  background: rgba(15, 118, 110, 0.09);
}

.place-suggestion-main,
.place-suggestion-secondary {
  display: block;
  overflow-wrap: anywhere;
}

.place-suggestion-main {
  font-weight: 900;
}

.place-suggestion-secondary {
  color: var(--muted);
  font-size: 0.86rem;
}

.security-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.fare-guidance-panel {
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
  font-weight: 800;
  line-height: 1.4;
}

.fare-mode-panel {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(13, 148, 136, 0.24);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.72);
}

.fare-mode-panel .segmented-actions {
  margin: 0;
}

.fare-mode-panel .inline-status {
  margin: 0;
}

.compact-fare-mode {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 10px;
}

.compact-fare-mode .card-kicker {
  color: var(--ink);
  font-size: 0.86rem;
}

.fare-mode-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #fff;
}

.fare-mode-button,
.ride-option-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--green-dark);
  background: transparent;
  padding: 7px 8px;
  font-weight: 900;
  cursor: pointer;
}

.fare-mode-button.active,
.fare-mode-button[aria-pressed="true"] {
  color: #fff;
  background: var(--green);
}

.ride-option-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.request-route-preview {
  min-height: clamp(150px, 22svh, 220px);
  margin-top: 2px;
}

.ride-option-button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 58px;
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.07);
  font-size: 0.78rem;
}

.ride-option-button.active,
.ride-option-button[aria-expanded="true"] {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.14);
}

.ride-option-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.82rem;
  line-height: 1;
}

.ride-option-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ride-option-panel[hidden] {
  display: none;
}

.request-helper-status:empty {
  display: none;
}

.fare-mode-select {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.fare-mode-select span {
  color: var(--ink);
  font-size: 1rem;
}

.rider-non-negotiable-fare .counter-fare-field,
.rider-non-negotiable-fare [data-rider-counter-submit] {
  display: none;
}

.rider-availability-count {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(13, 148, 136, 0.24);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.72);
  color: var(--muted);
  line-height: 1.35;
}

.rider-availability-count strong {
  color: var(--ink);
}

.fare-review-panel {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #78350f;
  font-weight: 800;
  line-height: 1.4;
}

.fare-review-panel[hidden] {
  display: none;
}

.fare-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auto-location-panel {
  border-color: rgba(22, 163, 74, 0.28);
  background: #f0fdf4;
}

.auto-location-panel strong {
  color: #14532d;
}

.location-tools,
.rider-flow-card,
.subscription-card,
.session-card,
.notice-panel,
.admin-account-actions {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.admin-recovery-facilitator {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: #fff;
}

.admin-recovery-facilitator small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.admin-recovery-guardrails {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.admin-recovery-guardrails li + li {
  margin-top: 4px;
}

.compact-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.session-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.profile-summary-card {
  grid-template-columns: auto minmax(0, 1fr);
  background: #fff;
  border-color: rgba(15, 118, 110, 0.18);
}

.profile-summary-card .ghost-action {
  grid-column: 1 / -1;
  width: 100%;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-summary-card .detail-grid,
.profile-summary-card .navigation-choice {
  grid-column: 1 / -1;
}

.rider-profile-sections {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.rider-profile-section {
  display: grid;
  gap: 8px;
}

.rider-profile-section h3 {
  margin: 0;
  font-size: 0.95rem;
}

.rider-profile-section .detail-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .profile-summary-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .profile-summary-card .ghost-action {
    grid-column: auto;
    width: auto;
  }

  .rider-profile-section .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.session-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.profile-summary-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.location-tools {
  display: grid;
  gap: 10px;
}

.location-tools > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.location-buttons,
.admin-actions,
.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.availability-tools .location-buttons {
  align-items: stretch;
}

.availability-action {
  gap: 8px;
}

.availability-action::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

#captureRiderGps::before {
  background: var(--success);
}

#captureRiderGps[aria-pressed="true"] {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

#clearRiderGps::before {
  background: var(--red);
}

.inline-review-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.inline-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-review-heading > div {
  display: grid;
  gap: 3px;
  min-width: min(100%, 320px);
}

.approval-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.approval-checklist-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.approval-checklist-item > span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.approval-checklist-item strong,
.approval-checklist-item small {
  display: block;
}

.approval-checklist-item small {
  margin-top: 3px;
  color: var(--muted);
}

.approval-checklist-item[data-state="complete"] {
  border-left-color: var(--success);
}

.approval-checklist-item[data-state="current"] {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.approval-checklist-item[data-state="blocked"],
.approval-checklist-item[data-state="locked"] {
  border-left-color: var(--warning);
}

.admin-detail-subsection {
  display: grid;
  gap: 12px;
  margin-block: 14px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}

.document-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.document-review-row {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.document-review-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.document-review-row strong,
.document-review-row code {
  display: block;
  overflow-wrap: anywhere;
}

.document-review-row code {
  margin-top: 4px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
}

.icon-action {
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.ride-guidance {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.ride-guidance > div:first-child {
  display: grid;
  gap: 3px;
}

.ride-guidance span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.approach-tracker {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.approach-track {
  position: relative;
  height: 34px;
}

.approach-track::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 16px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, var(--green));
}

.approach-dot {
  position: absolute;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  transform: translateX(-50%);
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
}

.rider-dot {
  background: #2563eb;
}

.pickup-dot {
  left: calc(100% - 12px);
  background: var(--green);
}

.approach-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.approach-tracker small {
  color: var(--muted);
  line-height: 1.4;
}

.approach-map {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(49, 87, 164, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    #f8fbf9;
  background-size: 22px 22px;
}

.approach-live-map {
  min-height: clamp(156px, 24svh, 230px);
  background: #e9f4ec;
}

.approach-live-map .workspace-map-route-line {
  stroke-width: 4;
}

.approach-live-map .workspace-map-marker {
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
}

.approach-map-route {
  position: absolute;
  inset: 26px 24px 28px 24px;
  border: 3px solid rgba(15, 118, 110, 0.32);
  border-left-color: transparent;
  border-bottom-color: rgba(49, 87, 164, 0.28);
  border-radius: 44% 56% 42% 58%;
}

.approach-map-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 32, 29, 0.24);
}

.approach-map-rider {
  background: var(--blue);
}

.approach-map-pickup {
  background: var(--green);
}

.approach-map-destination {
  background: var(--gold);
  color: var(--ink);
}

.nearby-ride-alert {
  position: fixed;
  right: clamp(14px, 4vw, 28px);
  bottom: clamp(14px, 4vw, 28px);
  z-index: 60;
  width: min(380px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.nearby-ride-alert p {
  margin: 0;
  font-weight: 800;
  line-height: 1.35;
}

.nearby-ride-alert small {
  color: var(--muted);
  line-height: 1.4;
}

.ride-action-slot {
  display: grid;
  gap: 10px;
}

.ride-action-slot:empty {
  display: none;
}

.admin-page-header,
.admin-activity-panel,
.admin-directory-tools,
.production-checks,
.admin-broadcast-form,
.fare-boost-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-page-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
}

.admin-page-header h2,
.admin-page-header p {
  margin: 0;
}

.admin-page-copy {
  min-width: 0;
}

.admin-page-header p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.admin-search-row input {
  width: 100%;
}

.admin-page-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-page-stepper span {
  min-width: 58px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.admin-page-directory {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-page-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.admin-page-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-page-card:hover,
.admin-page-card:focus-visible,
.admin-page-card.active {
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
}

.admin-page-card strong,
.admin-page-card small {
  display: block;
  overflow-wrap: anywhere;
}

.admin-page-card small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.admin-page-card-count {
  align-self: end;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-header-actions {
  min-width: min(100%, 340px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.admin-workspace-menu {
  justify-self: end;
  z-index: 20;
}

.admin-menu-button {
  min-width: 96px;
  min-height: 42px;
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.admin-workspace-menu .admin-workspace-nav {
  width: min(390px, calc(100vw - 44px));
  max-height: min(72vh, 650px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: auto;
  padding: 10px;
}

.admin-workspace-nav .workspace-nav-button {
  width: 100%;
  min-height: 42px;
  text-align: left;
}

.admin-workspace-nav .workspace-nav-button.active,
.admin-metric-card.active {
  border-color: var(--green);
  background: #e7f5f2;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.admin-home-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 12px;
  align-items: stretch;
}

.admin-session-actions {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-session-actions .card-kicker {
  display: block;
}

.admin-session-actions button {
  width: 100%;
}

.production-checks h2 {
  margin: 0;
  font-size: 1rem;
}

.admin-broadcast-form h3 {
  margin: 0;
  font-size: 0.98rem;
}

.admin-report-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-report-controls .checkbox-field {
  min-height: 64px;
}

.delivery-channel-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.delivery-channel-group legend {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.notice-popup {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  width: min(520px, calc(100vw - 32px));
  max-height: min(78vh, 620px);
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.notice-popup-actionable {
  border-left: 5px solid var(--teal);
}

.notice-popup p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.route-change-decision-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.5);
}

.route-change-decision-card {
  width: min(560px, 100%);
  max-height: min(86vh, 680px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.route-change-decision-card h2,
.route-change-decision-card p {
  margin: 0;
}

.route-change-decision-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.route-change-decision-card dl div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.route-change-decision-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.route-change-decision-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.route-change-decision-status {
  min-height: 1.2em;
  color: var(--muted);
  font-weight: 800;
}

.production-check-list {
  display: grid;
  gap: 10px;
}

.production-check-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  background: var(--wash);
}

.production-check-item strong {
  color: var(--ink);
}

.production-check-item small {
  color: var(--muted);
  line-height: 1.4;
}

.production-check-summary {
  background: #f8fafc;
}

.production-check-ok {
  border-left-color: #1b8f62;
}

.production-check-warn {
  border-left-color: #c67817;
}

.production-check-block {
  border-left-color: #b42318;
  background: #fff7f5;
}

.translation-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.translation-coverage-pill {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.translation-coverage-pill small {
  font-size: 0.78rem;
}

.translation-ready {
  border-left: 3px solid #1b8f62;
}

.translation-partial {
  border-left: 3px solid #c67817;
}

.directory-region-heading {
  display: grid;
  gap: 3px;
  padding: 10px 2px 4px;
  color: var(--muted);
}

.directory-region-heading strong {
  color: var(--ink);
}

.directory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}

.directory-pagination span {
  color: var(--muted);
  font-size: 0.9rem;
}

.notice-list {
  display: grid;
  gap: 9px;
}

.tax-onboarding-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.tax-onboarding-card p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.notice-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.notice-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-preference-grid,
.segmented-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.notification-master-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.notification-preference-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wash);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.notification-preference-grid input:disabled {
  opacity: 0.55;
}

.rider-workload-controls,
.rider-decision-queue {
  border-color: rgba(15, 118, 110, 0.26);
  background: #f8fffd;
}

.segmented-actions .secondary-action.active {
  color: #fff;
  background: var(--green);
}

.queued-ride-update {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.queued-ride-update small,
.queued-ride-update p {
  overflow-wrap: anywhere;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.admin-metric-card {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 12px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-metric-card:hover,
.admin-metric-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.metric-grid strong {
  font-size: 1.42rem;
  line-height: 1.05;
}

.admin-activity-panel .board-heading {
  margin-bottom: 0;
}

.admin-activity-list {
  display: grid;
  gap: 8px;
}

.admin-activity-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--wash);
}

.admin-activity-item div {
  display: grid;
  gap: 2px;
}

.admin-activity-item span,
.admin-activity-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-activity-item strong {
  line-height: 1.3;
}

.admin-activity-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.admin-clickable-card {
  cursor: pointer;
}

.admin-clickable-card:hover,
.admin-clickable-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.11);
  outline: none;
}

.market-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.market-panel[data-role="admin"] .market-toolbar,
.market-panel[data-role="admin"] .city-map {
  display: none;
}

.market-panel[data-role="passenger"] .city-map,
.market-panel[data-role="rider"] .city-map {
  display: none;
}

.market-toolbar {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.market-toolbar > div {
  min-width: 0;
}

.market-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.market-refresh {
  min-width: 138px;
}

.market-toolbar span,
.market-toolbar strong {
  display: block;
}

.market-toolbar span {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.market-toolbar strong {
  font-size: clamp(1.1rem, 2vw, 1.58rem);
}

.market-filter-summary {
  margin-top: 6px;
  color: #0f766e;
  font-weight: 700;
  line-height: 1.35;
}

.rider-destination-filter-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #f5fbf9 0%, #ffffff 100%);
}

.rider-filter-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rider-filter-heading strong,
.rider-filter-heading span {
  display: block;
}

.rider-filter-heading span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.destination-filter-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #263b37;
  font-size: 0.9rem;
  line-height: 1.35;
}

.destination-filter-consent input {
  width: auto;
  min-width: 16px;
  margin-top: 2px;
}

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

.destination-filter-grid label {
  font-size: 0.78rem;
}

.city-map {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid #b7d6cf;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.58) 1px, transparent 1px),
    linear-gradient(135deg, #d8ecd6 0%, #ecf0d7 50%, #d6e7ee 100%);
  background-size: 40px 40px, 40px 40px, auto;
  box-shadow: var(--shadow);
}

.road {
  position: absolute;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(67, 88, 79, 0.14);
  transform-origin: left center;
}

.road-one {
  width: 82%;
  left: 7%;
  top: 48%;
  transform: rotate(-9deg);
}

.road-two {
  width: 56%;
  left: 25%;
  top: 66%;
  transform: rotate(27deg);
}

.road-three {
  width: 46%;
  left: 55%;
  top: 30%;
  transform: rotate(63deg);
}

.district {
  position: absolute;
  color: rgba(23, 32, 29, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.district-north {
  left: 14%;
  top: 17%;
}

.district-market {
  left: 43%;
  top: 50%;
}

.district-center {
  right: 21%;
  top: 38%;
}

.district-south {
  right: 12%;
  bottom: 17%;
}

.map-pin {
  position: absolute;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 8px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 10px 22px rgba(23, 32, 29, 0.25);
  transform: translate(-50%, -100%) rotate(-45deg);
  font-size: 0.72rem;
  font-weight: 900;
}

.map-pin span {
  transform: rotate(45deg);
}

.pin-request {
  background: var(--blue);
}

.pin-rider {
  background: var(--gold);
  color: #1f211a;
}

.pin-selected {
  background: var(--green);
}

.board-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr 0.92fr;
  gap: 14px;
  align-items: start;
}

.board-grid.role-passenger,
.board-grid.role-rider {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-grid.role-passenger.passenger-negotiation-mode {
  grid-template-columns: minmax(260px, 0.88fr) minmax(340px, 1.12fr);
}

.board-grid.role-passenger.passenger-active-ride-mode {
  grid-template-columns: minmax(0, 1fr);
}

.board-grid.role-passenger.passenger-non-negotiable-mode {
  grid-template-columns: minmax(0, 1fr);
}

.board-grid.role-passenger.passenger-non-negotiable-mode #offersBoard {
  display: none !important;
}

.board-grid.role-rider {
  grid-template-columns: minmax(0, 1fr);
}

.board-grid.role-admin {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.board-grid.role-admin .admin-detail-board {
  grid-column: 1 / -1;
}

.board-grid.role-admin .board-section {
  min-height: 0;
}

.role-market-section[data-roles~="admin"].admin-board-inactive,
.board-grid.role-admin .board-section[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.role-market-section[data-roles~="admin"].admin-board-active {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
}

.board-section,
.chat-panel {
  padding: 14px;
  scroll-margin-top: 96px;
}

.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.board-subtitle {
  margin: -4px 0 12px;
  max-width: 78ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.rider-request-detail-panel {
  display: grid;
  gap: 12px;
}

.rider-request-detail-panel .board-heading {
  align-items: flex-start;
}

.rider-request-detail-panel .board-subtitle {
  margin: 2px 0 0;
}

.rider-request-detail-panel #offerForm {
  margin: 0;
}

.rider-request-detail-panel #riderMarketplaceBack {
  width: auto;
  min-width: max-content;
}

.card-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.market-card {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.market-card.selected {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.board-grid.role-rider #requestsBoard {
  position: sticky;
  top: 86px;
}

.board-grid.role-rider #requestList {
  max-height: min(66vh, 680px);
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.board-grid.role-rider.rider-marketplace-mode #requestList {
  max-height: min(72vh, 760px);
}

.rider-request-card {
  gap: 6px;
  padding: 10px 11px;
}

.rider-request-card .card-kicker {
  font-size: 0.76rem;
}

.rider-request-card .card-select strong {
  margin: 1px 0;
  font-size: 0.98rem;
  line-height: 1.18;
}

.rider-request-card .card-select small {
  font-size: 0.83rem;
  line-height: 1.2;
}

.rider-request-card .chip-row {
  gap: 5px;
  flex-wrap: wrap;
  overflow-x: visible;
}

.rider-request-card .chip-row span {
  padding: 3px 6px;
  font-size: 0.72rem;
  white-space: normal;
}

.rider-request-card .chip-row span.rider-route-distance-chip {
  flex: 1 0 100%;
  border-color: rgba(15, 118, 110, 0.28);
  background: #fff;
  color: var(--green-dark);
}

.request-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.compact-action {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.active-trip-card {
  gap: 8px;
}

.board-grid.role-passenger.passenger-active-ride-mode #requestList {
  max-width: 920px;
}

.board-grid.role-passenger.passenger-active-ride-mode .active-trip-card {
  gap: 6px;
  padding: 10px 12px;
}

.active-trip-card .card-select strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.active-trip-card .chip-row span {
  padding: 3px 7px;
}

.active-trip-card .approach-tracker,
.active-trip-card .ride-guidance {
  padding: 10px;
}

.passenger-negotiation-mode #requestsBoard {
  position: sticky;
  top: 86px;
}

.passenger-negotiation-card {
  gap: 7px;
  padding: 10px;
}

.passenger-negotiation-card .card-select strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.passenger-negotiation-card .card-select p,
.passenger-negotiation-offer p {
  font-size: 0.86rem;
  line-height: 1.3;
}

.waiting-offers-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--green-dark);
  font-weight: 900;
  animation: waka-waiting-pulse 1.05s ease-in-out infinite;
}

.waiting-offers-status::after {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.32);
  animation: waka-waiting-dot 1.05s ease-in-out infinite;
}

@keyframes waka-waiting-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
  }
  50% {
    opacity: 0.42;
    background: rgba(15, 118, 110, 0.18);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
  }
}

@keyframes waka-waiting-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.16);
  }
  50% {
    transform: scale(1.45);
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.08);
  }
}

.passenger-negotiation-card .ride-guidance {
  display: none;
}

.passenger-negotiation-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.passenger-negotiation-quick-actions .compact-action {
  min-height: 34px;
}

.passenger-offer-update-action {
  flex: 0 0 auto;
}

.compact-fare-boost-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  background: var(--wash);
}

.compact-fare-boost-form .inline-status {
  grid-column: 1 / -1;
  font-size: 0.86rem;
  line-height: 1.32;
}

.passenger-negotiation-offer {
  gap: 8px;
  padding: 11px;
}

.passenger-negotiation-offer .card-kicker {
  font-size: 0.76rem;
}

.passenger-negotiation-offer strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.passenger-negotiation-offer .chip-row span {
  padding: 3px 6px;
  font-size: 0.74rem;
}

.passenger-negotiation-offer .choose-offer {
  min-height: 40px;
}

.passenger-negotiation-offer .offer-negotiation-actions {
  gap: 7px;
}

.passenger-offer-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: #f4fbf9;
}

.passenger-offer-detail-heading strong,
.passenger-offer-detail-heading span {
  display: block;
}

.passenger-offer-detail-heading strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.passenger-offer-detail-heading span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.32;
}

.passenger-offer-detail-card {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.passenger-offer-detail-return {
  width: 100%;
  min-height: 44px;
}

.platform-issues-board {
  grid-column: 1 / -1;
}

.platform-issue {
  border-left: 4px solid var(--muted);
}

.platform-issue-critical {
  border-left-color: #b42318;
  background: #fff7f5;
}

.platform-issue-warning {
  border-left-color: #c67817;
}

.platform-issue-info {
  border-left-color: #1b8f62;
}

.card-select {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.market-card strong,
.market-card small,
.card-select strong,
.card-select small,
.card-kicker {
  display: block;
}

.market-card strong,
.card-select strong {
  margin: 2px 0;
}

.market-toolbar strong,
.card-select strong,
.card-select small,
.market-card strong,
.market-card small,
.market-card p {
  overflow-wrap: anywhere;
}

.market-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.chip-row span {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--wash);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: normal;
}

.chip-row span.fare-movement-chip {
  color: #064e3b;
  border-color: rgba(15, 118, 110, 0.45);
  background: #e7f6f1;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.chip-row span.fare-movement-down {
  color: #7f1d1d;
  border-color: rgba(185, 28, 28, 0.4);
  background: #fff1f1;
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.1);
}

.admin-flag-list {
  display: grid;
  gap: 10px;
}

.admin-flag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-flag-row small {
  display: block;
}

.admin-command-center {
  gap: 13px;
  border-color: rgba(15, 118, 110, 0.3);
  background: #f9fefd;
}

.admin-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 9px;
  min-width: 0;
}

.admin-command-stat {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-command-stat span,
.admin-command-stat strong,
.admin-command-stat small {
  display: block;
  overflow-wrap: anywhere;
}

.admin-command-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-command-stat strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.admin-command-stat[data-tone="critical"] {
  border-left-color: #b42318;
  background: #fff7f5;
}

.admin-command-stat[data-tone="warning"] {
  border-left-color: var(--warning);
  background: #fffaf2;
}

.admin-command-stat[data-tone="ok"] {
  border-left-color: var(--green);
}

.admin-command-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.referral-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.referral-actions .secondary-action,
.referral-actions .ghost-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.referral-actions [aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-row {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.detail-row span,
.detail-list span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-row strong,
.detail-list strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-list article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-detail-board .market-card {
  gap: 14px;
}

.empty-state {
  min-height: 98px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #b8c5bd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.chat-panel {
  display: grid;
  gap: 10px;
}

.chat-panel.passenger-ride-tool-mode {
  gap: 8px;
}

.passenger-ride-tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.passenger-ride-tool-content {
  grid-column: 1;
  order: 2;
  min-width: 0;
}

.passenger-ride-tool-content[hidden] {
  display: none;
}

.ride-tool-panel {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.rider-progress-action-panel {
  order: 0;
  border-color: rgba(15, 118, 110, 0.32);
  background: #f4fbf8;
}

.ride-tool-panel strong,
.ride-tool-panel span {
  display: block;
}

.ride-tool-panel span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.passenger-ride-dock {
  grid-column: 1;
  order: 1;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 7px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.ride-tool-button {
  min-height: 48px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--wash);
  font-size: 0.76rem;
  font-weight: 900;
}

.ride-tool-button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.ride-tool-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.82rem;
  line-height: 1;
}

.chat-panel.passenger-ride-tool-mode .safety-report-form,
.chat-panel.passenger-ride-tool-mode .rating-form {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.chat-thread {
  min-height: 120px;
  max-height: 220px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.chat-bubble {
  width: fit-content;
  max-width: min(560px, 88%);
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.chat-bubble.self {
  justify-self: end;
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.chat-bubble span,
.chat-bubble small {
  display: block;
}

.chat-bubble small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.chat-bubble.self small {
  color: rgba(255, 255, 255, 0.82);
}

.chat-bubble.failed {
  border-color: rgba(190, 59, 53, 0.42);
}

.contact-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-profile-avatar {
  grid-row: 1 / span 2;
}

.contact-actions small {
  grid-column: 2;
  color: var(--muted);
}

.contact-actions .secondary-action {
  grid-row: 1 / span 2;
  grid-column: 3;
}

.contact-actions.compact-contact-actions {
  display: inline-grid;
  grid-template-columns: auto auto;
  width: max-content;
  max-width: 100%;
  gap: 8px;
  padding: 8px;
}

.contact-actions.compact-contact-actions .contact-profile-avatar {
  grid-row: auto;
}

.contact-actions.compact-contact-actions .icon-only-action {
  grid-row: auto;
  grid-column: auto;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 1.1rem;
}

.active-trip-card > .contact-actions {
  order: -1;
}

.offer-negotiation-actions {
  display: grid;
  gap: 8px;
}

.offer-counter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.offer-counter-form .inline-status {
  grid-column: 1 / -1;
}

.admin-ride-event-timeline,
.admin-timeline-block,
.admin-timeline-events,
.admin-timeline-event {
  display: grid;
  gap: 10px;
}

.admin-timeline-block {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.admin-timeline-events {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-timeline-event {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.safety-report-form {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.rating-form {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.rating-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.passenger-rating-prompt-card {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(239, 251, 246, 0.96);
}

.passenger-rating-prompt-card > div {
  display: grid;
  gap: 4px;
}

.passenger-rating-prompt-card button {
  width: 100%;
}

@media (max-width: 1160px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .public-feature-band,
  .public-feature-list,
  .public-flow-steps,
  .public-scope-grid,
  .public-navigation-grid,
  .public-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .board-grid.role-rider {
    grid-template-columns: 1fr;
  }

  .board-grid.role-admin {
    grid-template-columns: 1fr;
  }

  .board-grid .board-section:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
    justify-items: stretch;
    min-height: 58px;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand small {
    display: none;
  }

  .status-pill {
    justify-self: start;
  }

  .install-action {
    width: 100%;
  }

  .deployment-update-notice {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .deployment-update-notice .secondary-action {
    width: 100%;
  }

  .language-picker {
    width: 100%;
  }

  .role-tabs,
  .market-actions,
  .filter-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .market-actions {
    grid-template-columns: 1fr;
  }

  .role-entry {
    min-height: auto;
  }

  .public-home {
    width: 100%;
    padding: 0 0 34px;
    gap: 12px;
  }

  .public-nav,
  .public-section,
  .public-action-grid,
  .public-value-strip {
    width: min(100% - 16px, 1180px);
  }

  .public-nav,
  .public-top-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .public-nav a,
  .public-top-links a,
  .public-link-list a {
    justify-content: center;
    min-height: 36px;
    padding: 7px 8px;
    font-size: 0.88rem;
  }

  .public-hero,
  .public-action-grid,
  .public-value-strip,
  .public-benefit-columns,
  .public-comparison-grid,
  .public-feature-band,
  .public-feature-list,
  .public-flow-steps,
  .public-scope-grid,
  .public-navigation-grid,
  .public-policy-grid,
  .public-split,
  .public-topbar {
    grid-template-columns: 1fr;
  }

  .public-hero {
    min-height: 680px;
    gap: 16px;
  }

  .public-hero::after {
    background:
      linear-gradient(0deg, rgba(10, 22, 19, 0.88) 0%, rgba(10, 22, 19, 0.62) 46%, rgba(10, 22, 19, 0.28) 100%),
      linear-gradient(90deg, rgba(10, 22, 19, 0.78), rgba(10, 22, 19, 0.16));
  }

  .public-hero-image {
    object-position: 58% center;
  }

  .public-hero-copy {
    gap: 10px;
    width: min(100% - 24px, 1180px);
    align-content: end;
    padding: 24px 0 184px;
  }

  .public-hero-copy h1 {
    font-size: 4.4rem;
  }

  .public-hero-copy p,
  .public-document-hero p {
    font-size: 0.98rem;
  }

  .public-hero-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-cta-row,
  .public-document-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-hero-proof {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .public-section,
  .public-action-grid article,
  .public-feature-list article,
  .public-flow-steps article,
  .public-scope-grid article,
  .public-navigation-grid article,
  .public-policy-grid article,
  .public-document-section {
    padding: 14px;
  }

  .public-feature-list article {
    min-height: auto;
  }

  .public-flow-steps article {
    min-height: 116px;
  }

  .public-scope-grid article,
  .public-navigation-grid article,
  .public-policy-grid article {
    min-height: auto;
  }

  .public-document {
    width: min(100% - 16px, 940px);
    padding: 14px 0 40px;
  }

  .public-document-hero {
    padding: 16px 0 4px;
  }

  .public-document-hero h1 {
    font-size: 2.35rem;
  }

  .workspace {
    gap: 8px;
    padding: 8px;
  }

  .workspace.account-entry,
  .workspace.account-only {
    min-height: auto;
    align-content: start;
  }

  .workspace.account-entry .left-panel,
  .workspace.account-only .left-panel {
    align-self: start;
  }

  .workspace.account-entry .tab-panel.active,
  .workspace.account-only .tab-panel.active {
    grid-template-columns: 1fr;
    min-height: auto;
    align-content: start;
  }

  .auth-entry-hero {
    grid-template-columns: minmax(0, 1fr) minmax(116px, 34vw);
    grid-column: 1;
    grid-row: 2;
    gap: 10px;
    margin-top: 10px;
    padding: 14px;
    align-items: center;
  }

  .auth-entry-copy {
    gap: 7px;
  }

  .auth-wordmark {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
  }

  .auth-entry-copy h2 {
    font-size: clamp(1.42rem, 6.2vw, 2rem);
    line-height: 1.05;
  }

  .auth-entry-copy p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .auth-trust-row {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  .auth-trust-row span {
    gap: 4px;
    font-size: 0.7rem;
  }

  .auth-trust-row strong {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .auth-entry-visual {
    min-height: 148px;
    justify-items: end;
  }

  .auth-route-card {
    width: min(100%, 112px);
    border-width: 6px;
    border-radius: 26px;
  }

  .auth-route-dot {
    width: 38px;
    height: 38px;
    border-width: 3px;
    font-size: 0.86rem;
  }

  .auth-entry-stat {
    right: -2px;
    bottom: 6px;
    min-width: 124px;
    padding: 9px 10px 9px 42px;
  }

  .auth-entry-stat::before {
    left: 9px;
    width: 28px;
    height: 28px;
  }

  .auth-entry-stat strong {
    font-size: 0.78rem;
  }

  .auth-entry-stat span {
    font-size: 0.7rem;
  }

  .workspace.account-entry .account-stage,
  .workspace.account-entry .auth-form,
  .workspace.account-only .account-stage,
  .workspace.account-only .auth-form {
    width: calc(100% - 24px);
  }

  .workspace.account-entry .auth-form,
  .workspace.account-only .auth-form {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 20px;
  }

  .workspace.account-entry #passengerAccountForm,
  .workspace.account-entry #riderAccountForm,
  .workspace.account-only #passengerAccountForm,
  .workspace.account-only #riderAccountForm {
    grid-column: 1;
    grid-row: 1;
    max-height: none;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 118, 110, 0.16);
  }

  .auth-form-heading h2 {
    font-size: 1.72rem;
  }

  .workspace.account-entry .auth-form input,
  .workspace.account-entry .auth-form .primary-action,
  .workspace.account-only .auth-form input,
  .workspace.account-only .auth-form .primary-action {
    min-height: 50px;
  }

  .auth-safe-note {
    display: none;
  }

  .auth-safe-icon {
    display: none;
  }

  .left-panel,
  .board-section,
  .chat-panel {
    border-radius: 7px;
    box-shadow: 0 8px 22px rgba(23, 32, 29, 0.07);
  }

  .tab-panel {
    gap: 10px;
    padding: 10px;
  }

  .panel-heading {
    align-items: center;
    padding-bottom: 8px;
  }

  .panel-heading p {
    font-size: 1rem;
  }

  .panel-heading span {
    display: none;
  }

  .stacked-form,
  .subscription-card,
  .session-card,
  .rider-flow-card,
  .notice-panel,
  .admin-account-actions {
    gap: 9px;
  }

  .compact-form,
  .location-tools,
  .rider-flow-card,
  .subscription-card,
  .session-card,
  .notice-panel {
    padding: 10px;
  }

  .compact-form .form-hint,
  .payment-provider-panel span {
    display: none;
  }

  label {
    gap: 5px;
    font-size: 0.82rem;
  }

  input,
  select,
  textarea {
    min-height: 40px;
    padding: 8px 10px;
  }

  .primary-action,
  .secondary-action,
  .ghost-action {
    min-height: 40px;
    padding: 8px 10px;
  }

  .role-entry-actions,
  .account-stage {
    grid-template-columns: 1fr;
  }

  .account-stage {
    width: min(100%, 360px);
    justify-self: center;
    margin-inline: auto;
  }

  .account-mode-button {
    text-align: center;
  }

  .passenger-workspace-top,
  .rider-workspace-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .passenger-workspace-top h2,
  .rider-workspace-top h2 {
    font-size: 1rem;
  }

  .passenger-workspace-top p,
  .rider-workspace-top p {
    display: none;
  }

  .workspace-menu-button {
    min-height: 36px;
    padding: 7px 10px;
  }

  .workspace-nav {
    position: fixed;
    top: 64px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - 82px);
    overflow: auto;
    gap: 6px;
    padding: 8px;
    z-index: 30;
  }

  .workspace-nav-button,
  .workspace-language-field select {
    min-height: 38px;
  }

  .field-row,
  .detail-grid,
  .document-review-grid,
  .verification-row,
  .profile-summary-card,
  .tax-onboarding-card,
  .admin-page-header,
  .metric-grid,
  .destination-filter-grid,
  .board-grid,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .admin-page-stepper {
    justify-content: space-between;
  }

  .admin-header-actions,
  .admin-home-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-workspace-menu {
    justify-self: stretch;
  }

  .admin-menu-button {
    width: 100%;
  }

  .admin-workspace-menu .admin-workspace-nav {
    grid-template-columns: 1fr;
    width: min(320px, calc(100vw - 44px));
  }

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

  .market-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .market-toolbar span {
    margin-bottom: 2px;
    font-size: 0.78rem;
  }

  .market-toolbar strong {
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .market-panel[data-role="passenger"] #marketFilters,
  .market-panel[data-role="rider"] #marketFilters {
    display: none;
  }

  .market-refresh {
    width: 100%;
    min-width: 0;
  }

  .rider-destination-filter-panel {
    padding: 10px;
    gap: 8px;
  }

  .rider-filter-heading {
    display: grid;
  }

  .review-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 7px;
  }

  .review-actions .primary-action,
  .review-actions .secondary-action,
  .review-actions .ghost-action {
    width: 100%;
  }

  .admin-flag-row {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    flex-direction: column;
  }

  .admin-search-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-search-row input {
    grid-column: 1 / -1;
  }

  .board-section,
  .chat-panel {
    padding: 8px;
  }

  .board-grid.role-passenger.passenger-negotiation-mode {
    grid-template-columns: minmax(0, 1fr);
  }

  .board-grid.role-passenger.passenger-active-ride-mode {
    grid-template-columns: minmax(0, 1fr);
  }

  .board-grid.passenger-negotiation-mode > .board-section {
    width: 100%;
    min-width: 0;
  }

  .market-panel {
    gap: 8px;
  }

  .board-heading {
    margin-bottom: 8px;
  }

  .board-heading h2 {
    font-size: 0.96rem;
  }

  .empty-state {
    min-height: 64px;
    padding: 10px;
    font-size: 0.9rem;
  }

  .market-card {
    gap: 6px;
    padding: 9px;
  }

  .board-grid.passenger-active-ride-mode .active-trip-card {
    gap: 5px;
    padding: 8px;
  }

  .board-grid.passenger-active-ride-mode .active-trip-card .card-select strong {
    font-size: 0.95rem;
    line-height: 1.18;
  }

  .board-grid.passenger-active-ride-mode .active-trip-card .card-select p {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .board-grid.passenger-active-ride-mode .active-trip-card .chip-row {
    gap: 4px;
  }

  .board-grid.passenger-active-ride-mode .active-trip-card .chip-row span {
    padding: 2px 6px;
    font-size: 0.68rem;
  }

  .board-grid.passenger-negotiation-mode #offersBoard {
    order: 0;
  }

  .board-grid.passenger-negotiation-mode #requestsBoard {
    position: static;
  }

  .passenger-negotiation-offer,
  .passenger-negotiation-offer .card-select,
  .passenger-negotiation-offer .offer-negotiation-actions,
  .passenger-negotiation-offer .offer-counter-form,
  .passenger-negotiation-offer label,
  .passenger-negotiation-offer input {
    min-width: 0;
    max-width: 100%;
  }

  .passenger-negotiation-offer .chip-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .passenger-negotiation-offer .chip-row span {
    flex: 0 1 auto;
    white-space: normal;
  }

  .passenger-offer-detail-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .passenger-offer-detail-heading button {
    width: 100%;
  }

  .compact-fare-boost-form,
  .passenger-negotiation-offer .offer-counter-form {
    grid-template-columns: 1fr;
  }

  .passenger-negotiation-quick-actions {
    flex-wrap: wrap;
  }

  .passenger-negotiation-offer .offer-counter-form button,
  .passenger-negotiation-offer .offer-negotiation-actions > button {
    width: 100%;
  }

  .passenger-negotiation-offer .choose-offer {
    min-height: 42px;
  }

  .board-grid.role-rider #requestsBoard {
    position: static;
  }

  .board-grid.role-rider #requestList {
    max-height: min(58vh, 520px);
  }

  .board-grid.role-rider.rider-marketplace-mode #requestList {
    max-height: min(64vh, 580px);
  }

  .market-card p {
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .card-select strong {
    line-height: 1.2;
  }

  .chip-row {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .chip-row span {
    flex: 0 0 auto;
    padding: 3px 6px;
    white-space: nowrap;
    font-size: 0.74rem;
  }

  .rider-request-card .chip-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .rider-request-card .chip-row span {
    flex: 0 1 auto;
    white-space: normal;
  }

  .rider-request-card .chip-row span.rider-route-distance-chip {
    flex-basis: 100%;
  }

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

  .approach-tracker {
    gap: 6px;
    padding: 8px;
  }

  .board-grid.passenger-active-ride-mode .approach-tracker {
    gap: 4px;
    padding: 7px;
  }

  .approach-map {
    min-height: 112px;
  }

  .board-grid.passenger-active-ride-mode .approach-map {
    min-height: 88px;
  }

  .approach-track {
    height: 26px;
  }

  .approach-track::before {
    top: 12px;
  }

  .approach-dot {
    top: 4px;
    width: 18px;
    height: 18px;
  }

  .ride-guidance {
    gap: 6px;
    padding: 8px;
  }

  .ride-guidance span {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .passenger-ride-tool-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .passenger-ride-tool-content {
    grid-column: 1;
    order: 2;
  }

  .passenger-ride-dock {
    grid-column: 1;
    order: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
    padding: 6px;
  }

  .ride-tool-button {
    min-height: 48px;
    padding: 5px;
    font-size: 0.7rem;
  }

  .ride-tool-icon {
    width: 22px;
    height: 22px;
    font-size: 0.78rem;
  }

  .contact-actions {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 3px 8px;
    padding: 8px;
  }

  .contact-actions small {
    display: none;
  }

  .contact-actions .secondary-action {
    grid-row: 1;
    grid-column: 3;
    min-height: 36px;
    white-space: nowrap;
  }

  .contact-profile-avatar {
    width: 36px;
    height: 36px;
  }

  .rider-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rider-overview-card {
    min-height: 104px;
    gap: 4px;
    padding: 10px;
  }

  .rider-overview-card strong {
    font-size: 0.98rem;
  }

  .rider-overview-card small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.25;
  }

  .chat-thread {
    min-height: 96px;
    max-height: 168px;
    padding: 8px;
  }

  .offer-counter-form {
    grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waiting-offers-status,
  .waiting-offers-status::after {
    animation: none;
  }
}
