.member-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}
.member-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.member-panel h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 12px 0 24px;
  overflow-wrap: anywhere;
}
.member-panel .eyebrow {
  color: #c5f36b;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.member-card {
  padding: 24px;
  border: 1px solid #30372b;
  border-radius: 18px;
  background: #191c16;
}
.member-card h2 {
  margin-top: 0;
}
.member-profile {
  color: #c5f36b;
}
.member-form {
  max-width: 480px;
  display: grid;
  gap: 12px;
}
.member-form input,
.member-form select {
  min-width: 0;
  width: 100%;
  background: #10120f;
  color: #f4f5ed;
  border: 1px solid #58634e;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}
.member-panel button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #58634e;
  border-radius: 10px;
  background: #10120f;
  color: #f4f5ed;
  cursor: pointer;
  font: inherit;
}
.member-form button[type="submit"] {
  background: #c5f36b;
  color: #10120f;
  font-weight: 700;
}
.member-panel :focus-visible {
  outline: 3px solid #c5f36b;
  outline-offset: 3px;
}
.member-panel button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.member-favorites {
  padding: 0;
  list-style: none;
}
.member-favorites li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #30372b;
}
.member-favorites a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 480px) {
  .member-panel {
    padding: 24px 16px;
  }
  .member-card {
    padding: 18px;
  }
  .member-heading {
    align-items: flex-start;
  }
}
.member-dev {
  margin: 0;
  background: #10120f;
  color: #f4f5ed;
  font: 16px/1.6 system-ui;
}
.member-dev a {
  color: #c5f36b;
}
.member-dev-notice {
  padding: 8px 24px;
  border-bottom: 1px solid #30372b;
}

.member-save {
  margin-top: 16px;
}
.member-save button {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #58634e;
  background: #10120f;
  color: #c5f36b;
  font: inherit;
  cursor: pointer;
}
.member-save :focus-visible {
  outline: 3px solid #c5f36b;
  outline-offset: 3px;
}

.member-security {
  margin-top: 24px;
}
.member-security summary {
  cursor: pointer;
  min-height: 44px;
  font-weight: 700;
}
.member-security form {
  padding: 16px 0;
}
.member-confirm {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}
.member-form .member-confirm input {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Keep room for search when the account link is enabled. */
@media (min-width: 1100px) {
  .site-header .header {
    gap: 18px;
  }
  .site-header .header nav {
    gap: 16px;
  }
}

.member-recovery-brand,
.member-recovery-back {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 24px;
}
.member-recovery-brand img {
  max-width: 100%;
  height: auto;
}

/* Separate alternate account actions from the login card. */
.member-form[data-member-login] {
  margin-bottom: 20px;
}
.member-panel [data-member-register-view] {
  margin-right: 8px;
}
