.rider-profile {
  max-width: 1480px;
  min-width: 0;
  color: #192d29;
}
.rider-profile [hidden] { display: none !important; }
.rider-profile .table-wrap { overflow-x: auto; }
.rider-profile td { min-height: 48px; overflow-wrap: anywhere; }
.rider-profile td.nowrap { white-space: nowrap; }
.rider-profile label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
}
.rider-profile input,
.rider-profile select,
.rider-profile button,
.rider-profile a.ghost {
  min-height: 44px;
  box-sizing: border-box;
}
.rider-profile input,
.rider-profile select {
  width: 100%;
  min-width: 0;
}
.rider-profile button,
.rider-profile a.ghost {
  white-space: nowrap;
}
.rider-profile button:focus-visible,
.rider-profile summary:focus-visible {
  outline: 2px solid #297754;
  outline-offset: 3px;
}
.rider-profile a.ghost { display: inline-flex; align-items: center; }
.rp-form,.rp-filters {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 18px;
  align-items: end;
}
.rp-filters { grid-template-columns: minmax(0,2fr) minmax(0,1fr); margin-bottom: 16px; }
.rp-form { max-width: 840px; margin: 16px 0; }
.rp-actions { grid-column: 1 / -1; }
.rp-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  gap: 18px;
  align-items: center;
  padding: clamp(16px,3vw,28px);
  margin: 14px 0 16px;
  border-radius: 16px;
  background: #114633;
  color: #fff;
}
.rp-header h2 { margin: 8px 0 4px; color: inherit; overflow-wrap: anywhere; }
.rp-header p { margin: 4px 0; overflow-wrap: anywhere; }
.rp-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f5eb;
  color: #174834;
  font-weight: 600;
}
.rp-month { min-width: 0; }
.rp-month > p { font-weight: 600; color: #d2eddb; }
.rp-stats,.rp-facts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin: 10px 0 0;
}
.rp-facts { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 840px; }
.rp-stats > div,.rp-facts > div { padding: 10px; border-radius: 10px; background: #edf5ee; color: #183d30; min-width: 0; }
.rp-stats dt,.rp-facts dt { font-size: .84em; overflow-wrap: anywhere; }
.rp-stats dd,.rp-facts dd { margin: 5px 0 0; font-size: 1.1em; font-weight: 700; overflow-wrap: anywhere; }
.rp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.rp-tabs button {
  padding: 0 14px;
  border: 1px solid #d3e3d8;
  border-radius: 9px;
  background: #fff;
  color: #184431;
  font-weight: 600;
}
.rp-tabs button[aria-selected=true] { background: #ffdb4b; border-color: #e8bd21; }
.rp-panel {
  min-width: 0;
  padding: clamp(14px,3vw,24px);
  border: 1px solid #dce7de;
  border-radius: 14px;
  background: #fff;
}
.rp-panel > h3 { margin: 0 0 12px; }
.rp-panel > p { overflow-wrap: anywhere; }
.rp-panel .aiduk-docs { padding-inline: 0; border: 0; border-top: 1px solid #dce7de; border-radius: 0; }
.rp-history {
  margin: 12px 0;
  padding: 0 12px;
  border: 1px solid #dce7de;
  border-radius: 10px;
  background: #f7faf7;
}
.rp-history summary { padding: 12px 0; cursor: pointer; font-weight: 650; color: #184431; }
.rp-history[open] { padding-bottom: 12px; }
@media (max-width: 700px) {
  .rp-header,.rp-form,.rp-filters { grid-template-columns: minmax(0,1fr); }
}
