:root {
  --ink: #111111;
  --muted: #667085;
  --line: #dde2e8;
  --canvas: #f5f7f8;
  --taxi: #d62828;
  --taxi-dark: #b91c1c;
  --green: #15803d;
  --red: #dc2626;
  --shadow: 0 20px 55px rgba(17, 17, 17, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 4vw, 30px);
}

.topbar,
.login-panel,
.panel,
.metrics article,
.ride-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-icon {
  display: block;
  width: 32px;
  height: 32px;
}

.logo-pin {
  fill: var(--taxi);
}

.logo-crown {
  fill: #fff;
}

.logo-road {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 3;
  opacity: 0.82;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.login-panel span,
.panel-head span,
.metrics span,
.ride-row span,
dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.login-grid button,
.row-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.ghost-button:hover,
.login-grid button:hover,
.row-actions button:hover {
  border-color: rgba(214, 40, 40, 0.38);
  color: var(--taxi-dark);
}

.alert-toggle.active {
  border-color: rgba(21, 128, 61, 0.32);
  background: #eef6f1;
  color: var(--green);
}

.alert-toggle.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #b45309;
}

.alert-toggle.active.warn {
  border-color: rgba(214, 40, 40, 0.38);
  background: #fff4d0;
  color: #8a5700;
}

.login-panel,
.panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.login-panel {
  max-width: 720px;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(170px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

select {
  min-height: 40px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

h2 {
  font-size: 20px;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.dashboard-tabs {
  position: static;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(10px);
}

.dashboard-tab {
  min-height: 40px;
  min-width: 120px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.dashboard-tab.active {
  border-color: var(--taxi-dark);
  background: var(--taxi);
  color: #fff;
}

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

.metrics article {
  display: grid;
  gap: 6px;
  min-height: 82px;
  align-content: center;
  padding: 14px;
}

.metrics strong {
  font-size: 22px;
}

.panel-head,
.ride-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ride-row-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.wide {
  box-shadow: none;
}

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

.launch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.launch-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.launch-actions button:last-child {
  border-color: rgba(21, 128, 61, 0.32);
  background: #eef6f1;
  color: var(--green);
}

.launch-private {
  color: #b45309;
}

.launch-public {
  color: var(--green);
}

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

.launch-check {
  display: grid;
  gap: 6px;
  min-height: 118px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.launch-check span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-check.ready {
  border-color: rgba(21, 128, 61, 0.22);
  background: #f2f9f4;
}

.launch-check.ready span {
  color: var(--green);
}

.launch-check.todo {
  border-color: #fed7aa;
  background: #fffaf0;
}

.launch-check.todo span {
  color: #b45309;
}

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

.pilot-cleanup p {
  margin: 0;
}

.pilot-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px;
}

.pilot-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.pilot-actions button:first-child {
  border-color: var(--taxi-dark);
  background: var(--taxi);
  color: #fff;
}

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

.operator-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(180px, 0.5fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.operator-form input,
.operator-form select {
  width: 100%;
}

.operator-form button {
  min-height: 42px;
  border: 1px solid var(--taxi-dark);
  border-radius: 8px;
  background: var(--taxi);
  color: #fff;
  font-weight: 900;
}

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

.operator-row,
.audit-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(150px, 0.6fr) minmax(0, 1.6fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.operator-row span,
.operator-row small,
.audit-row span,
.audit-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operator-row strong,
.operator-row p,
.audit-row strong,
.audit-row p {
  display: block;
  margin: 0;
  color: var(--ink);
}

.list {
  display: grid;
  gap: 12px;
  max-height: min(760px, 70vh);
  overflow: auto;
  padding-right: 4px;
}

.ride-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  box-shadow: none;
}

.driver-row {
  grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1fr) minmax(240px, 0.72fr);
  align-items: center;
}

.driver-row .ride-row-head {
  min-width: 0;
}

.driver-row .row-actions {
  align-self: stretch;
}

.attention {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.attention.warn {
  background: #fff7ed;
  color: #b45309;
}

.attention.danger {
  background: #fee4e2;
  color: var(--red);
}

dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.compact-dl {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
}

dd {
  margin: 0;
}

.row-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.assign-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.assign-row button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--taxi-dark);
  border-radius: 8px;
  background: var(--taxi);
  color: #fff;
  font-weight: 900;
}

.candidate-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.candidate-list:empty {
  display: none;
}

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

.candidate-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.candidate-list.compact .candidate-row {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr);
}

.candidate-row.visible {
  border-color: rgba(21, 128, 61, 0.28);
}

.candidate-row.override {
  border-color: #fed7aa;
}

.candidate-row strong,
.candidate-row span {
  display: block;
  min-width: 0;
}

.candidate-row span {
  margin-top: 3px;
  color: var(--muted);
}

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

.candidate-metrics span {
  margin: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.candidate-row button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--taxi-dark);
  border-radius: 8px;
  background: var(--taxi);
  color: #fff;
  font-weight: 900;
}

.map-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) repeat(2, auto);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.map-controls select {
  width: 100%;
}

.map-toggle {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}

.map-toggle input {
  min-height: auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

.dispatch-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.dispatch-map {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f5;
}

.dispatch-map svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.map-bg {
  fill: #eef3f5;
}

.map-grid-line {
  stroke: rgba(102, 112, 133, 0.18);
  stroke-width: 1;
}

.map-bg,
.map-grid-line {
  pointer-events: none;
}

.map-route {
  cursor: pointer;
  outline: none;
}

.map-hit-box {
  fill: #fff;
  fill-opacity: 0.01;
  pointer-events: all;
}

.map-route .map-hit-line {
  pointer-events: stroke;
  stroke: transparent;
  stroke-linecap: round;
  stroke-width: 28;
}

.map-route .map-visible-line {
  pointer-events: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.map-route.unassigned .map-visible-line {
  stroke: rgba(214, 40, 40, 0.66);
}

.map-route.assigned .map-visible-line {
  stroke: rgba(17, 17, 17, 0.44);
}

.map-route.closed .map-visible-line {
  stroke: rgba(102, 112, 133, 0.28);
  stroke-dasharray: 8 8;
}

.map-route:hover .map-visible-line,
.map-route:focus .map-visible-line {
  stroke-width: 7;
}

.map-point.pickup {
  fill: var(--taxi);
  stroke: #fff;
  stroke-width: 3;
}

.map-point.destination {
  fill: #111;
  stroke: #fff;
  stroke-width: 3;
}

.map-point-label,
.map-route-number {
  fill: #fff;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
  text-anchor: middle;
}

.map-route-number {
  fill: #111;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4;
}

.map-label,
.map-driver-label {
  fill: #111;
  font-size: 13px;
  font-weight: 900;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 5;
}

.map-label.unassigned {
  fill: var(--taxi-dark);
}

.map-driver-marker circle {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 3;
}

.map-driver-marker {
  pointer-events: none;
}

.map-driver-label {
  fill: #0f5132;
  font-size: 12px;
}

.dispatch-map-list {
  display: grid;
  align-content: start;
  max-height: 420px;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

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

.map-ride-card.unassigned {
  border-color: rgba(214, 40, 40, 0.28);
}

.map-ride-card.assigned {
  border-color: rgba(17, 17, 17, 0.16);
}

.map-ride-card span,
.map-ride-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-ride-card strong,
.map-ride-card p {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-ride-card p {
  margin-top: 4px;
  color: var(--muted);
}

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

.map-card-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.map-card-actions button:last-child {
  border-color: var(--taxi-dark);
  background: var(--taxi);
  color: #fff;
}

.dispatch-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dispatch-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
}

.legend-dot.unassigned {
  background: var(--taxi);
}

.legend-dot.assigned {
  background: #111;
}

.legend-dot.driver {
  background: var(--green);
}

.ride-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(130px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.driver-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(140px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.ride-filters label {
  min-width: 0;
}

.driver-filters label {
  min-width: 0;
}

.ride-filters input,
.ride-filters select {
  width: 100%;
}

.driver-filters input,
.driver-filters select {
  width: 100%;
}

.ride-filters button {
  min-height: 40px;
}

.driver-filters button {
  min-height: 40px;
}

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

.dispatch-form label {
  min-width: 0;
}

.dispatch-form input,
.dispatch-form select {
  width: 100%;
}

.dispatch-wide {
  grid-column: span 4;
}

.dispatch-actions {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.dispatch-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.dispatch-actions button:last-child {
  border-color: var(--taxi-dark);
  background: var(--taxi);
  color: #fff;
}

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

.tariff-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.tariff-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tariff-row-head strong {
  color: var(--taxi-dark);
}

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

.tariff-fields label:last-child {
  grid-column: 1 / -1;
}

.tariff-row button {
  min-height: 40px;
  border: 1px solid var(--taxi-dark);
  border-radius: 8px;
  background: var(--taxi);
  color: #fff;
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.ride-timeline {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.ride-timeline summary {
  min-height: 40px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 12px 12px 28px;
}

.timeline li {
  padding-left: 4px;
}

.timeline strong,
.timeline span,
.timeline small {
  display: block;
}

.timeline span,
.timeline small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.driver-review-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ride-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  justify-content: end;
  background: rgba(17, 17, 17, 0.28);
}

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

.drawer-panel {
  display: grid;
  width: min(620px, 100vw);
  max-height: 100vh;
  gap: 16px;
  overflow: auto;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head span,
.drawer-history h2,
.drawer-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-head h1 {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.05;
}

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

.drawer-form input,
.drawer-form select {
  width: 100%;
}

.drawer-wide,
.drawer-summary,
.drawer-candidates,
.drawer-actions {
  grid-column: 1 / -1;
}

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

.drawer-summary article {
  display: grid;
  gap: 5px;
  min-height: 68px;
  min-width: 0;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.drawer-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.drawer-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.drawer-actions button:last-child {
  border-color: var(--taxi-dark);
  background: var(--taxi);
  color: #fff;
}

.drawer-history {
  display: grid;
  gap: 10px;
}

.row-actions button:last-child {
  border-color: #f6b6b1;
  color: var(--red);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ok {
  color: var(--green);
}

.fail {
  color: var(--red);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

@media (max-width: 980px) {
  .metrics,
  .ride-filters,
  .driver-filters,
  .dispatch-form,
  .tariff-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dispatch-map-layout {
    grid-template-columns: 1fr;
  }

  .ride-filter-search,
  .driver-filter-search {
    grid-column: 1 / -1;
  }

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

  .dispatch-wide,
  .dispatch-actions {
    grid-column: span 3;
  }
}

@media (max-width: 680px) {
  .topbar,
  .panel-head,
  .ride-row-head,
  .drawer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-grid,
  .metrics,
  .map-controls,
  .dispatch-map-layout,
  .map-card-actions,
  .launch-controls,
  .operator-form,
  .operator-row,
  .audit-row,
  .pilot-cleanup,
  .pilot-actions,
  .dispatch-form,
  .dispatch-actions,
  .ride-filters,
  .driver-filters,
  .tariff-list,
  .tariff-fields,
  .row-actions,
  .assign-row,
  .candidate-row,
  .candidate-list.compact .candidate-row,
  .candidate-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-tabs {
    position: static;
    overflow-x: auto;
  }

  .dashboard-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
  }

  .list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .dispatch-map,
  .dispatch-map svg {
    min-height: 340px;
  }

  .dispatch-map-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .dispatch-wide,
  .dispatch-actions {
    grid-column: auto;
  }

  .ride-row-meta {
    justify-items: start;
    text-align: left;
  }

  .drawer-panel {
    width: 100vw;
    border-left: 0;
  }

  .drawer-form,
  .drawer-summary,
  .drawer-actions {
    grid-template-columns: 1fr;
  }
}
