.rider-study-surface {
  --rider-study-background: #092332;
  --rider-study-panel: #102f40;
  --rider-study-line: #355567;
  --rider-study-text: #edf6fa;
  --rider-study-muted: #b7ccd9;
  --rider-study-accent: #f0b838;
  --rider-study-nav-height: 62px;
  background: var(--rider-study-background) !important;
  color: var(--rider-study-text);
  padding-bottom: var(--rider-study-nav-height) !important;
}

.rider-study-header,
.rider-study-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.rider-study-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rider-study-line);
  background: var(--rider-study-background);
}
.rider-study-header strong { color: var(--rider-study-accent); font-size: 17px; }
.rider-study-header span { color: var(--rider-study-muted); font-size: 12px; }
.rider-study-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.rider-study-logout {
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid var(--rider-study-line);
  border-radius: 8px;
  background: transparent;
  color: var(--rider-study-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.rider-study-status {
  border-radius: 20px;
  background: #173b4d;
  padding: 5px 9px;
}
.rider-study-status[data-queued="true"] { background: #224940; color: #adf0d1; }
.rider-study-heading { margin-bottom: 10px; }
.rider-study-surface .rider-study-heading h1 {
  margin: 0;
  font-size: 22px !important;
  line-height: 1.2;
  color: var(--rider-study-text) !important;
  overflow-wrap: anywhere;
}
.rider-study-surface .rider-study-heading .font-size-controls { gap: 6px; }
.rider-study-surface .rider-study-heading .font-size-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 23px !important;
}
@media (max-width: 330px) {
  .rider-study-main[data-pensera-mobile-scale="120"][data-pensera-mobile-gutter="16"] .rider-study-heading { gap: 5px; }
  .rider-study-surface .rider-study-main[data-pensera-mobile-scale="120"][data-pensera-mobile-gutter="16"] .rider-study-heading h1 {
    font-size: 17px !important;
  }
}

.rider-study-main .card,
.rider-study-surface .mobile-rider-card {
  border: 1px solid var(--rider-study-line) !important;
  background: var(--rider-study-panel) !important;
  color: var(--rider-study-text);
  border-radius: 12px;
}
.rider-study-main:is([data-rider-study-tab="fila"], [data-rider-study-tab="fila-cadastro"], [data-rider-study-tab="fila-checkin"], [data-rider-study-tab="fila-rota"]) > .anim > div:first-child > div:first-child {
  display: none;
}
.rider-study-main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.rider-study-main select,
.rider-study-main textarea {
  border: 1px solid var(--rider-study-line) !important;
  border-radius: 8px;
  background: var(--rider-study-background) !important;
  color: var(--rider-study-text) !important;
  min-height: 44px;
}
.rider-study-main button,
.rider-study-surface .rider-study-main .pensera-action-button {
  border: 1px solid var(--rider-study-line) !important;
  background: var(--rider-study-panel) !important;
  color: var(--rider-study-text) !important;
  border-radius: 8px;
  min-height: 44px;
  font-weight: 700 !important;
  padding-inline: 12px;
}
.rider-study-main .pensera-action-button:not(.rider-study-secondary),
.rider-study-main[data-rider-study-tab="fila"] .anim button,
.rider-study-main[data-rider-study-tab="fila-checkin"] button[type="submit"],
.rider-study-main[data-rider-study-tab="fila-cadastro"] .card > button:last-of-type {
  border-color: var(--rider-study-accent) !important;
  background: var(--rider-study-accent) !important;
  color: #071f2e !important;
}
.rider-study-main button:disabled,
.rider-study-main .pensera-action-button:disabled,
.rider-study-main[data-rider-study-tab="fila"] .anim button:disabled,
.rider-study-main[data-rider-study-tab="fila-checkin"] button[type="submit"]:disabled,
.rider-study-main[data-rider-study-tab="fila-cadastro"] .card > button:disabled:last-of-type {
  border-color: #486575 !important;
  background: #3a5667 !important;
  color: #dce8ee !important;
  opacity: 1;
  cursor: default;
}
.rider-study-main button:not(:disabled):active { filter: brightness(.86); }
.rider-study-surface :is(button, input, select, textarea, a):focus-visible {
  outline: 2px solid var(--rider-study-accent);
  outline-offset: 2px;
}

.rider-study-orders { gap: 8px !important; }
.rider-study-order-list { container-type: inline-size; }
.rider-study-order-instructions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rider-study-muted);
  font-size: 14px;
}
.rider-study-card-choice { display: block; min-width: 0; cursor: pointer; }
.rider-study-card-choice[data-selected="true"] .mobile-rider-card {
  border-color: var(--rider-study-accent) !important;
  background: #173c4d !important;
}
.rider-study-surface .mobile-rider-card { padding: 11px; gap: 8px; }
.rider-study-card-person { display: flex; align-items: start; gap: 8px; min-width: 0; }
.rider-study-card-person input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--rider-study-accent); }
.rider-study-neighborhood { display: block; margin-top: 4px; font-size: 14px; font-weight: 650; color: var(--rider-study-accent); }
.rider-study-map-link { justify-self: start; color: var(--rider-study-accent); }
.rider-study-surface .mobile-rider-card-countdown { flex: none; font-size: clamp(17px, 7cqi, 23px); white-space: nowrap; }
.rider-study-surface .mobile-rider-card-details { justify-content: space-between; flex-wrap: nowrap; }
.rider-study-surface .mobile-rider-card-estimate {
  flex: 1 1 94px;
  min-width: 0;
  background: #0a2636;
  padding: 7px 8px;
}
.rider-study-surface .mobile-rider-card-estimate strong { font-size: 21px !important; line-height: 1.1; color: var(--rider-study-text) !important; }
.rider-study-items {
  --rider-study-item-size: clamp(21px, 12cqi, 36px);
  max-width: min(145px, 58%);
  gap: clamp(3px, 1.6cqi, 6px) !important;
  justify-content: flex-end !important;
}
.rider-study-items .mobile-rider-item,
.rider-study-items .mobile-rider-item img { width: var(--rider-study-item-size); height: var(--rider-study-item-size); }
.rider-study-items .mobile-rider-item { flex-basis: var(--rider-study-item-size); }
.rider-study-surface .mobile-rider-card-address { color: var(--rider-study-muted); font-size: 13px; }

.rider-study-confirm {
  position: sticky;
  bottom: calc(var(--rider-study-nav-height) / var(--pensera-layout-zoom, 1));
  z-index: 24;
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--rider-study-line);
  background: var(--rider-study-background);
  color: var(--rider-study-muted);
  font-size: 13px;
}
.rider-study-surface .rider-study-nav {
  background: var(--rider-study-background);
  border-color: var(--rider-study-line);
  min-height: var(--rider-study-nav-height);
}
.rider-study-surface .rider-study-nav .bnav-btn {
  color: var(--rider-study-muted) !important;
  min-width: min-content !important;
  min-height: calc(var(--rider-study-nav-height) - 1px) !important;
  padding: 5px 1px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.rider-study-surface .rider-study-nav .bnav-btn.on {
  color: var(--rider-study-accent) !important;
  border-top-color: var(--rider-study-accent);
  background: #203645;
}
.rider-study-surface .rider-study-nav .bnav-btn:disabled { opacity: .53; cursor: default; }
.rider-study-surface .rider-study-nav .bnav-btn:focus-visible { outline-offset: -3px; }

.rider-study-trips,
.rider-study-trip { display: grid; gap: 10px; }
.rider-study-trip { padding: 14px; }
.rider-study-trip h2 { margin: 0; font-size: 16px !important; }
.rider-study-trip dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 76px), 1fr));
  gap: 8px;
  margin: 0;
}
.rider-study-trip dt { font-size: 12px; color: var(--rider-study-muted); }
.rider-study-trip dd { margin: 2px 0 0; font-weight: 700; }
.rider-study-trip summary {
  padding-block: 8px;
  color: var(--rider-study-accent);
  cursor: pointer;
}
.rider-study-trip details details { width: 100% !important; min-width: 0 !important; }
