.member-page {
  background: #f7f4ee;
}

.member-reminder-card {
  align-self: end;
  min-width: 220px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.member-reminder-card span,
.member-reminder-card small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.member-reminder-card span {
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.member-reminder-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.member-reminder-card small {
  line-height: 1.6;
}

.member-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 70px;
}

.member-main-column,
.member-side-column {
  display: grid;
  align-content: start;
  gap: 20px;
}

.member-card {
  padding: 26px;
  border: 1px solid #e4ded3;
  background: #fff;
}

.member-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.member-card__heading small,
.member-card small {
  color: #7a756d;
}

.member-card__heading h2,
.member-card h2 {
  margin: 5px 0 0;
  color: #173f35;
  font-size: 1.35rem;
  line-height: 1.3;
}

.member-summary-card .member-card__heading > strong {
  color: #b87536;
  font-size: 1.8rem;
}

.member-progress--member {
  margin-bottom: 24px;
}

.member-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.member-summary-grid div {
  min-width: 0;
  padding: 13px 14px;
  background: #f7f4ee;
}

.member-summary-grid span,
.member-summary-grid strong {
  display: block;
}

.member-summary-grid span {
  margin-bottom: 6px;
  color: #7a756d;
  font-size: 0.78rem;
}

.member-summary-grid strong {
  color: #173f35;
  font-size: 0.92rem;
  word-break: break-word;
}

.member-form {
  display: grid;
  gap: 18px;
}

.member-form label {
  display: grid;
  gap: 8px;
  color: #3c3a35;
  font-size: 0.84rem;
}

.member-form input,
.member-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d8d1c6;
  border-radius: 2px;
  background: #fff;
  color: #1f2925;
  font: inherit;
}

.member-form input:focus,
.member-form select:focus {
  outline: 2px solid rgba(20, 61, 52, 0.18);
  outline-offset: 1px;
}

.member-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.member-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.member-form-feedback {
  color: #6a756e;
  font-size: 0.82rem;
}

.member-form-feedback.is-error {
  color: #a33b32;
}

.member-log-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #eee8de;
}

.member-log-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee8de;
}

.member-log-row div {
  min-width: 0;
}

.member-log-row strong,
.member-log-row span,
.member-log-row small {
  display: block;
}

.member-log-row strong {
  color: #173f35;
}

.member-log-row span {
  margin-top: 4px;
  color: #4a4d48;
  font-size: 0.84rem;
}

.member-log-row small {
  margin-bottom: 4px;
  color: #8d877d;
  font-size: 0.74rem;
}

.member-log-row .text-button {
  white-space: nowrap;
}

.member-toggle {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  padding: 14px;
  background: #f7f4ee;
}

.member-toggle input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
}

.member-toggle strong,
.member-toggle small {
  display: block;
}

.member-toggle small {
  margin-top: 4px;
  line-height: 1.55;
}

.member-privacy-card {
  background: #173f35;
  color: #fff;
}

.member-privacy-card small {
  color: rgba(255, 255, 255, 0.65);
}

.member-privacy-card h2 {
  color: #fff;
}

.member-privacy-card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.member-privacy-card a {
  color: #f0c98d;
}

@media (max-width: 980px) {
  .member-layout {
    grid-template-columns: 1fr;
  }

  .member-side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .member-reminder-card {
    width: 100%;
  }

  .member-layout {
    gap: 16px;
    padding-top: 20px;
  }

  .member-card {
    padding: 20px;
  }

  .member-summary-grid,
  .member-form-grid,
  .member-side-column {
    grid-template-columns: 1fr;
  }

  .member-log-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .member-log-row > div:first-child {
    grid-column: 1 / -1;
  }

  .member-log-row .text-button {
    justify-self: end;
  }
}
