.member-auth-open {
  overflow: hidden;
}

.member-auth-layer[hidden] {
  display: none;
}

.member-auth-layer {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  position: fixed;
  z-index: 12000;
}

.member-auth-backdrop {
  backdrop-filter: blur(12px);
  background: rgba(12, 14, 14, .74);
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 220ms ease-out;
}

.member-auth-dialog {
  background: #fffdf9;
  border-radius: 14px;
  box-shadow: 0 26px 72px rgba(0, 0, 0, .32);
  color: #141617;
  max-height: min(760px, calc(100dvh - 36px));
  max-width: 520px;
  opacity: 0;
  overflow: auto;
  padding: clamp(30px, 5vw, 52px);
  position: relative;
  transform: translateY(18px) scale(.985);
  transition: opacity 220ms ease-out, transform 260ms cubic-bezier(.2, .8, .2, 1);
  width: 100%;
  z-index: 1;
}

.member-auth-layer.is-open .member-auth-backdrop,
.member-auth-layer.is-open .member-auth-dialog {
  opacity: 1;
}

.member-auth-layer.is-open .member-auth-dialog {
  transform: translateY(0) scale(1);
}

.member-auth-close {
  align-items: center;
  background: transparent;
  border: 1px solid #cac7c1;
  border-radius: 50%;
  color: #252729;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
}

.member-auth-close svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 18px;
}

.member-auth-mark {
  align-items: center;
  background: #f6c795;
  border-radius: 12px;
  color: #6b4521;
  display: flex;
  height: 54px;
  justify-content: center;
  margin-bottom: 26px;
  width: 54px;
}

.member-auth-mark svg {
  fill: none;
  height: 32px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 32px;
}

.member-auth-dialog h2 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0 48px 14px 0;
}

.member-auth-dialog > p {
  color: #55595b;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 28px;
}

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

.member-auth-form[hidden] {
  display: none;
}

.member-auth-form label {
  color: #26292a;
  font-size: .94rem;
  font-weight: 700;
}

.member-auth-form input {
  appearance: none;
  background: #fff;
  border: 1px solid #b7b5b0;
  border-radius: 10px;
  color: #141617;
  font: inherit;
  font-size: 1.05rem;
  min-height: 54px;
  padding: 13px 15px;
  width: 100%;
}

.member-auth-form input::placeholder {
  color: #6b6f71;
}

.member-auth-primary,
.member-auth-resend {
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 50px;
  padding: 12px 18px;
}

.member-auth-primary {
  background: #f6c795;
  border: 1px solid #f6c795;
  color: #17191a;
  margin-top: 6px;
}

.member-auth-resend {
  background: transparent;
  border: 1px solid #b7b5b0;
  color: #303334;
}

.member-auth-primary:disabled,
.member-auth-resend:disabled {
  cursor: wait;
  opacity: .58;
}

.member-auth-close:hover,
.member-auth-resend:hover:not(:disabled) {
  border-color: #8d5c2f;
  color: #71461f;
}

.member-auth-primary:hover:not(:disabled) {
  background: #efb879;
  border-color: #efb879;
}

.member-auth-dialog :focus-visible {
  outline: 3px solid rgba(166, 95, 31, .42);
  outline-offset: 3px;
}

.member-auth-feedback {
  color: #86451c !important;
  font-weight: 650;
  margin: 18px 0 0 !important;
  min-height: 1.6em;
}

.member-auth-privacy {
  border-top: 1px solid #ddd8d0;
  color: #5c6061 !important;
  font-size: .86rem !important;
  margin: 26px 0 0 !important;
  padding-top: 20px;
}

.member-auth-layer ::selection {
  background: #f6c795;
  color: #141617;
}

@media (max-width: 560px) {
  .member-auth-layer {
    align-items: flex-end;
    padding: 0;
  }

  .member-auth-dialog {
    border-radius: 14px 14px 0 0;
    max-height: calc(100dvh - 20px);
    padding: 32px 22px calc(28px + env(safe-area-inset-bottom));
  }

  .member-auth-dialog h2 {
    font-size: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-auth-backdrop,
  .member-auth-dialog {
    transition: none;
  }
}

/* Customer dashboard */
.member-dashboard-page {
  background: #f3f4f4;
}

.member-dashboard-hero {
  background: #fffdf9;
  border-bottom: 1px solid #dedbd5;
  padding: clamp(64px, 9vw, 118px) 0 clamp(48px, 7vw, 82px);
}

.member-dashboard-hero h1 {
  font-size: var(--inner-page-title-size);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0 0 18px;
}

.member-dashboard-hero p,
.member-dashboard-heading p,
.member-dashboard-guest-card p {
  color: #5c6061;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  margin: 0;
}

.member-dashboard-access,
.member-dashboard-workspace {
  padding: clamp(40px, 6vw, 76px) 0 clamp(70px, 9vw, 120px);
}

.member-dashboard-guest-card {
  align-items: center;
  background: #fffdf9;
  border: 1px solid #d8d4cd;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 58px);
}

.member-dashboard-guest-card h2,
.member-dashboard-heading h2 {
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 0 0 10px;
}

.member-dashboard-primary,
.member-offer-accept,
.member-offer-decline,
.member-dashboard-logout {
  border-radius: 4px;
  font: inherit;
  font-weight: 750;
  min-height: 46px;
  padding: 11px 18px;
}

.member-dashboard-primary,
.member-offer-accept {
  background: var(--orange-action);
  border: 1px solid var(--orange-action);
  color: #17191a;
}

.member-dashboard-layout {
  align-items: start;
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
}

.member-dashboard-nav {
  background: #1b1d1e;
  padding: 10px;
  position: sticky;
  top: 94px;
}

.member-dashboard-nav button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #d9dbdc;
  display: block;
  font: inherit;
  font-size: .95rem;
  font-weight: 650;
  min-height: 50px;
  padding: 13px 14px;
  text-align: left;
  width: 100%;
}

.member-dashboard-nav button:last-child {
  border-bottom: 0;
}

.member-dashboard-nav button:hover,
.member-dashboard-nav button.is-active {
  background: #f6c795;
  color: #17191a;
}

.member-dashboard-content {
  min-width: 0;
}

.member-dashboard-view[hidden],
.member-dashboard-state[hidden],
.member-dashboard-access[hidden],
.member-dashboard-workspace[hidden] {
  display: none;
}

.member-dashboard-heading {
  align-items: flex-start;
  border-bottom: 1px solid #ccc8c1;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 24px;
}

.member-dashboard-state {
  background: #fffdf9;
  border: 1px solid #d8d4cd;
  color: #4d5152;
  margin-bottom: 20px;
  padding: 18px 20px;
}

.member-dashboard-error {
  border-color: #a64f3c;
  color: #7f3527;
}

.member-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.member-summary-card,
.member-dashboard-panel,
.member-record-card,
.member-wishlist-card,
.member-profile-card {
  background: #fffdf9;
  border: 1px solid #d8d4cd;
}

.member-summary-card {
  min-height: 142px;
  padding: 24px;
}

.member-summary-card span {
  color: #5c6061;
  display: block;
  font-size: .9rem;
  font-weight: 650;
}

.member-summary-card strong {
  display: block;
  font-size: 2.65rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: 30px;
}

.member-dashboard-panel,
.member-record-card {
  padding: clamp(22px, 4vw, 34px);
}

.member-dashboard-panel h3,
.member-record-heading h3,
.member-wishlist-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 0;
}

.member-recent-row,
.member-wishlist-card,
.member-offer-row {
  align-items: center;
  border-top: 1px solid #dedbd5;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 0;
}

.member-recent-row:first-child {
  margin-top: 14px;
}

.member-recent-row span,
.member-offer-row span,
.member-wishlist-card p {
  color: #626667;
  margin: 0;
}

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

.member-record-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.member-status,
.member-offer-decision {
  background: #ede9e2;
  color: #333738;
  font-size: .78rem;
  font-weight: 750;
  padding: 8px 10px;
  white-space: nowrap;
}

.member-status[data-status="accepted"],
.member-status[data-status="approved"],
.member-status[data-status="completed"],
.member-status[data-status="listed"] {
  background: #dce9df;
  color: #285136;
}

.member-record-meta {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0 0;
}

.member-record-meta-item {
  border-top: 1px solid #dedbd5;
  padding-top: 14px;
}

.member-record-meta dt,
.member-profile-card dt {
  color: #65696a;
  font-size: .8rem;
  font-weight: 650;
}

.member-record-meta dd,
.member-profile-card dd {
  font-size: 1rem;
  font-weight: 650;
  margin: 5px 0 0;
}

.member-record-note {
  background: #f3efe9;
  color: #464a4b;
  line-height: 1.6;
  margin: 22px 0 0;
  padding: 16px;
}

.member-history,
.member-offers {
  margin-top: 26px;
}

.member-history h4,
.member-offers h4 {
  font-size: .9rem;
  margin: 0 0 12px;
}

.member-history-list {
  border-left: 1px solid #bfbbb4;
  list-style: none;
  margin: 0 0 0 6px;
  padding: 0 0 0 20px;
}

.member-history-list li {
  padding: 0 0 18px;
  position: relative;
}

.member-history-list li::before {
  background: #f6c795;
  border: 3px solid #fffdf9;
  border-radius: 50%;
  content: "";
  height: 12px;
  left: -27px;
  position: absolute;
  top: 4px;
  width: 12px;
}

.member-history-top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.member-history-top time,
.member-history-list p,
.member-empty-state {
  color: #666a6b;
  font-size: .9rem;
  line-height: 1.55;
}

.member-history-list p {
  margin: 6px 0 0;
}

.member-offer-row > div:first-child {
  display: grid;
  gap: 4px;
}

.member-offer-row > div:first-child strong {
  font-size: 1.25rem;
}

.member-offer-actions {
  display: flex;
  gap: 8px;
}

.member-offer-decline,
.member-dashboard-logout {
  background: transparent;
  border: 1px solid #9fa2a2;
  color: #303334;
}

.member-offer-actions button:disabled {
  cursor: wait;
  opacity: .55;
}

.member-dashboard-text-link {
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  padding: 5px 0;
}

.member-wishlist-card {
  padding: 22px 24px;
}

.member-profile-card {
  margin: 0;
  max-width: 720px;
}

.member-profile-card > div {
  align-items: center;
  border-bottom: 1px solid #dedbd5;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(130px, .45fr) 1fr;
  padding: 22px 24px;
}

.member-profile-card > div:last-child {
  border-bottom: 0;
}

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

  .member-dashboard-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 6px;
    position: static;
  }

  .member-dashboard-nav button {
    border-bottom: 0;
    flex: 0 0 auto;
    padding-inline: 16px;
    text-align: center;
    width: auto;
  }
}

@media (max-width: 620px) {
  .member-dashboard-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .member-dashboard-nav button {
    width: 100%;
  }

  .member-dashboard-guest-card,
  .member-dashboard-heading,
  .member-recent-row,
  .member-wishlist-card,
  .member-offer-row {
    align-items: stretch;
    flex-direction: column;
  }

  .member-dashboard-primary {
    width: 100%;
  }

  .member-summary-grid,
  .member-record-meta {
    grid-template-columns: 1fr;
  }

  .member-summary-card {
    min-height: 116px;
  }

  .member-record-heading,
  .member-history-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-status {
    white-space: normal;
  }

  .member-offer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .member-profile-card > div {
    grid-template-columns: 1fr;
  }
}
