.pvpl-r171-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.88);
}

.pvpl-r171-mode-panel {
  box-sizing: border-box;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px;
  border: 2px solid #64748b;
  border-radius: 14px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.pvpl-r171-mode-panel h2 {
  margin-top: 0;
}

.pvpl-r171-mode-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.pvpl-r171-mode-buttons button,
.pvpl-r171-mode-footer button {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pvpl-r171-mode-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pvpl-r171-group-fields {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.pvpl-r171-group-fields[hidden] {
  display: none;
}

.pvpl-r171-group-fields label {
  display: grid;
  gap: 6px;
}

.pvpl-r171-group-fields select,
.pvpl-r171-group-fields input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #64748b;
  border-radius: 8px;
  background: #020617;
  color: #f8fafc;
  font: inherit;
}

.pvpl-r171-mode-help {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.pvpl-r171-mode-error {
  color: #fecaca;
  font-weight: 700;
}

.pvpl-r171-mode-footer {
  margin-top: 20px;
  text-align: right;
}

/*
 * A contracted Group Driver working in ordinary Driver mode
 * should not be presented with Group Driver vehicle controls.
 */
html[data-pvpl-operating-role="pickup_driver"]
#pvpl-group-driver-vehicles {
  display: none !important;
}

@media (max-width: 640px) {
  .pvpl-r171-mode-panel {
    padding: 18px;
  }

  .pvpl-r171-mode-buttons {
    grid-template-columns: 1fr;
  }
}
