/* Profile form fields and the native district-select visibility fix. */
.rahul-plugin-ui .rahul-profile-shell {
  width: min(100% - 24px, var(--rahul-dashboard-width));
  min-width: 0;
  margin: 30px auto;
}

.rahul-plugin-ui .rahul-profile-card {
  padding: 29px;
  overflow: hidden;
  color: #edf6ff;
  border: 1px solid rgba(24, 201, 237, 0.24);
  border-radius: var(--rahul-radius-xl);
  background: linear-gradient(145deg, var(--rahul-night), var(--rahul-night-two) 64%, #0a162b);
  box-shadow: var(--rahul-shadow-large);
  animation: rahul-account-enter 240ms ease both;
}

.rahul-plugin-ui .rahul-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.rahul-plugin-ui .rahul-profile-head h1 {
  margin: 12px 0 6px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
}

.rahul-plugin-ui .rahul-profile-head p {
  margin: 0;
  color: #9eb0c7;
  font-size: 13px;
  line-height: 1.55;
}

.rahul-plugin-ui .rahul-profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.rahul-plugin-ui .rahul-profile-summary > span {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.rahul-plugin-ui .rahul-profile-summary small,
.rahul-plugin-ui .rahul-profile-summary strong {
  display: block;
}

.rahul-plugin-ui .rahul-profile-summary small {
  color: #8297b2;
  font-size: 10px;
  text-transform: uppercase;
}

.rahul-plugin-ui .rahul-profile-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 14px;
}

.rahul-plugin-ui .rahul-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.rahul-plugin-ui .rahul-profile-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.rahul-plugin-ui .rahul-profile-field-wide {
  grid-column: 1 / -1;
}

.rahul-plugin-ui .rahul-profile-field label {
  color: #d4e1ef;
  font-size: 12px;
  font-weight: 800;
}

.rahul-plugin-ui .rahul-profile-field small {
  color: #7f94af;
  font-size: 10.5px;
}

.rahul-plugin-ui .rahul-profile-field input,
.rahul-plugin-ui .rahul-profile-field textarea,
.rahul-plugin-ui .rahul-profile-field select {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: var(--rahul-radius-medium) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.rahul-plugin-ui .rahul-profile-field input,
.rahul-plugin-ui .rahul-profile-field textarea {
  color: #f5f9ff !important;
  border: 1px solid rgba(174, 203, 238, 0.23) !important;
  background: rgba(255, 255, 255, 0.065) !important;
}

.rahul-plugin-ui .rahul-profile-field input,
.rahul-plugin-ui .rahul-profile-field select {
  min-height: 50px !important;
  padding: 0 14px !important;
}

.rahul-plugin-ui .rahul-profile-field textarea {
  min-height: 120px !important;
  padding: 13px 14px !important;
  resize: vertical;
}

.rahul-plugin-ui .rahul-profile-field input:focus,
.rahul-plugin-ui .rahul-profile-field textarea:focus,
.rahul-plugin-ui .rahul-profile-field select:focus {
  border-color: rgba(24, 201, 237, 0.82) !important;
  box-shadow: 0 0 0 4px rgba(24, 201, 237, 0.11) !important;
}

/* Native option popups inherit OS colors inconsistently; force a light color scheme. */
.rahul-plugin-ui .rahul-profile-select {
  min-height: 50px !important;
  color: #17243a !important;
  border: 1px solid #bfd5ef !important;
  background-color: #ffffff !important;
  background-image: linear-gradient(45deg, transparent 50%, #365170 50%), linear-gradient(135deg, #365170 50%, transparent 50%) !important;
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  color-scheme: light !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
}

.rahul-plugin-ui .rahul-profile-select option {
  color: #17243a !important;
  background: #ffffff !important;
}

.rahul-plugin-ui .rahul-profile-select:focus {
  color: #101828 !important;
  background-color: #f8fbff !important;
}

.rahul-plugin-ui .rahul-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
