.avatar-picker {
  margin: 2px 0 4px;
  padding: 14px;
  border: 1px solid #353a47;
  border-radius: 6px;
  background: #11151d;
}

.avatar-picker legend {
  padding: 0 7px;
  color: #e7e9ee;
  font-size: 13px;
  font-weight: 700;
}

.avatar-gender-group {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.avatar-gender-group + .avatar-gender-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #292e39;
}

.avatar-gender-group > span {
  color: #9ea5b1;
  font-size: 11px;
}

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

.member-auth .avatar-option,
.member-panel .avatar-option {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #343a47;
  border-radius: 5px;
  background: #1a1f29;
  color: #c9cdd5;
  cursor: pointer;
}

.avatar-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.avatar-option > span {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid transparent;
}

.avatar-option small {
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.35;
}

.avatar-option:has(input:checked) {
  border-color: #ef745f;
  background: #282027;
  box-shadow: inset 0 0 0 1px #ef745f33;
}

.avatar-option:has(input:checked) > span {
  border-color: #ef745f;
}

.avatar-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar {
  overflow: hidden;
  border: 2px solid #ef745f;
  background: #151923;
  box-shadow: 0 0 0 4px #ef745f1f;
}

.avatar .avatar-photo {
  width: 100%;
  height: 100%;
  filter: none;
}

@media (max-width: 360px) {
  .avatar-gender-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.quick-actions {
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
}

.product-contract-yield > small {
  flex-basis: 100%;
  color: #b7a8a1;
  text-align: left;
  font-size: 9px;
  font-weight: 500;
}

.yield-explanation {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid #ef745f;
  border-radius: 3px;
  background: #1a1f28;
  color: #b8bec8;
  font-size: 11px;
  line-height: 1.65;
}

.member-notification-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #03050acc;
  backdrop-filter: blur(5px);
}

.member-notification {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid #3b3f4a;
  border-radius: 10px;
  background: #11151d;
  box-shadow: 0 24px 80px #000a;
  color: #f1f2f5;
}

.member-notification .notification-category {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ef745f20;
  color: #ff907d;
  font-size: 10px;
  font-weight: 750;
}

.member-notification h2 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.member-notification p {
  max-height: 32vh;
  overflow: auto;
  white-space: pre-wrap;
  color: #b9bec8;
  line-height: 1.7;
}

.member-notification > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.member-notification button {
  min-height: 40px;
}

@media (max-width: 420px) {
  .member-notification-backdrop { align-items: end; padding: 12px; }
  .member-notification { padding: 20px; border-radius: 12px 12px 7px 7px; }
  .member-notification > div { display: grid; grid-template-columns: 1fr 1fr; }
}
