.member-page {
  max-width: 1000px;
  padding-block: clamp(24px, 4vw, 54px) 72px;
}
.member-page h1 {
  margin: 0 0 24px;
}
.member-page h2 {
  font-size: 1.35rem;
  line-height: 1.22;
  margin: 0;
}
.member-page p {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.member-page a,
.member-page button {
  touch-action: manipulation;
}
.member-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 650;
  gap: 6px;
  margin-bottom: 8px;
}
.member-page svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.member-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(0, 1.5fr);
  gap: 30px;
  align-items: start;
}
.member-identity,
.member-menu,
.member-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.member-identity {
  padding: 26px;
  overflow-wrap: anywhere;
}
.member-identity h2 {
  margin: 18px 0 4px;
  font-size: 1.65rem;
}
.member-identity p {
  margin: 3px 0;
  color: var(--muted);
}
.member-identity .button-secondary {
  margin-top: 18px;
}
.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8edf7;
  color: #335181;
  font-weight: 750;
  font-size: 2rem;
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}
.member-avatar img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-menu {
  overflow: hidden;
}
.member-row {
  display: flex;
  align-items: center;
  min-height: 66px;
  gap: 13px;
  padding: 13px 18px;
}
.member-row + .member-row {
  border-top: 1px solid var(--line);
}
.member-row:hover {
  background: var(--surface);
}
.member-icon {
  width: 35px;
  height: 35px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--blue);
  background: var(--pale);
}
.member-row strong,
.member-row small {
  display: block;
}
.member-row small {
  font-size: 0.87rem;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 2px;
}
.member-tail {
  margin-left: auto;
  color: var(--muted);
}
.member-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 1px;
}
.member-link {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--blue);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.member-footer .member-delete-link {
  font-size: 0.88rem;
  color: var(--muted);
}
.member-column {
  max-width: 650px;
}
.member-column.wide {
  max-width: 800px;
}
.member-card {
  padding: clamp(18px, 3vw, 28px);
}
.member-card + .member-card,
.member-menu + .member-card {
  margin-top: 16px;
}
.member-card p:first-child {
  margin-top: 0;
}
.member-card p:last-child {
  margin-bottom: 0;
}
.member-field {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  font-weight: 650;
}
.member-field input,
.member-field select {
  font: inherit;
  min-width: 0;
  width: 100%;
  border: 1px solid #acb6c7;
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: white;
}
.member-field input[type="file"] {
  font-size: 0.88rem;
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.member-photo-editor {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.member-photo-editor canvas {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}
.member-card [hidden] {
  display: none;
}
.member-adjust {
  margin: 12px 0;
}
.member-adjust summary {
  color: var(--blue);
  cursor: pointer;
}
.member-adjust input {
  padding: 0;
  accent-color: var(--blue);
}
.member-feedback {
  margin: 10px 0;
  color: var(--muted);
}
.member-feedback:empty {
  margin: 0;
}
.member-feedback[role="alert"] {
  color: #a02b2b;
}
.member-button-danger {
  color: white;
  background: #a62830;
  border-color: #a62830;
}
.member-confirm {
  display: flex;
  align-items: start;
  gap: 9px;
  margin: 18px 0;
}
.member-confirm input {
  margin-top: 5px;
  accent-color: var(--blue);
}
.member-code {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.member-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.member-filters .button-secondary {
  min-height: 38px;
  padding: 7px 14px;
}
.member-filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.member-notes h2 {
  font-size: 1rem;
  color: var(--muted);
  margin: 20px 0 6px;
}
.member-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.member-note p {
  margin: 3px 0;
}
.member-note time {
  font-size: 0.8rem;
  color: var(--muted);
}
.member-note .new {
  vertical-align: middle;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  background: var(--blue);
}
.member-more {
  margin-top: 18px;
}
.member-faq {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.member-faq summary {
  cursor: pointer;
  font-weight: 650;
}
.member-faq:last-child {
  border-bottom: 0;
}
@media (max-width: 660px) {
  .member-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .member-identity {
    padding: 18px;
  }
  .member-identity h2 {
    margin-top: 10px;
  }
}
