.account-page {
  padding: 40px 0 70px;
}

.account-shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e0d6d1;
  border-radius: 28px;
  padding: 34px 36px 40px;
  box-sizing: border-box;
}

.account-shell--auth {
  width: min(620px, calc(100% - 48px));
}

.account-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.account-kicker,
.account-intro,
.account-auth-links,
.account-empty-state,
.account-order-meta,
.account-detail-list dt,
.account-order-table-header span,
.account-nav-link {
  font-family: 'Avenir LT W01_45 Book1475508';
}

.account-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: #8a6c5f;
}

.account-header h1,
.account-auth-panel h1,
.account-card h2 {
  margin: 0;
  font-family: 'Avenir LT W01_85 Heavy1475544';
}

.account-header h1,
.account-auth-panel h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
}

.account-intro {
  margin: 10px 0 0;
  color: #615856;
  line-height: 1.5;
  font-size: 1rem;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.account-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d9cec8;
  text-decoration: none;
  background: #fff;
}

.account-nav-link.is-active {
  background: #363333;
  color: #fff;
  border-color: #363333;
}

.account-auth-panel {
  max-width: 520px;
}

.account-form {
  margin-top: 30px;
}

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

.account-field {
  display: block;
  margin-bottom: 18px;
}

.account-field span {
  display: block;
  margin-bottom: 8px;
  font-family: 'Avenir LT W01_65 Medium1475532';
}

.account-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d0c5bf;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 1rem;
  box-sizing: border-box;
  background: #fff;
}

.account-field input:focus {
  outline: none;
  border-color: #8d4898;
  box-shadow: 0 0 0 3px rgba(141, 72, 152, 0.12);
}

.account-submit {
  min-width: 220px;
  margin-top: 10px;
}

.account-recaptcha-note,
.account-recaptcha-status {
  margin: 16px 0 0;
  color: #6f6966;
  font-size: 0.95rem;
  line-height: 1.45;
}

.account-recaptcha-status {
  color: #8a6c5f;
}

.account-auth-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.account-auth-links a,
.account-card-heading a {
  color: #d51b63;
  text-decoration: none;
}

.account-dashboard-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 24px;
}

.account-card {
  border: 1px solid #e4dbd6;
  border-radius: 22px;
  padding: 24px;
  background: #fff;
}

.account-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.account-detail-list {
  margin: 20px 0 0;
}

.account-detail-list div + div {
  margin-top: 18px;
}

.account-detail-list dt {
  font-size: 0.88rem;
  color: #7e7672;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-detail-list dd {
  margin: 8px 0 0;
  font-size: 1.08rem;
}

.account-order-list {
  display: grid;
  gap: 14px;
}

.account-order-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid #efe7e2;
  padding-top: 14px;
}

.account-order-row:first-child {
  border-top: none;
  padding-top: 0;
}

.account-order-number,
.account-order-meta {
  margin: 0;
}

.account-order-number {
  font-family: 'Avenir LT W01_85 Heavy1475544';
}

.account-order-meta {
  margin-top: 4px;
  color: #6f6966;
}

.account-order-table {
  margin-top: 4px;
}

.account-order-table-header,
.account-order-table-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr .8fr;
  gap: 16px;
  align-items: center;
}

.account-order-table-header {
  padding-bottom: 14px;
  border-bottom: 1px solid #e8ddd7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  color: #766c67;
}

.account-order-table-row {
  padding: 18px 0;
  border-bottom: 1px solid #f0e8e3;
}

.account-order-table-row strong {
  justify-self: end;
}

.account-empty-state {
  margin: 18px 0 0;
  color: #6a6360;
}

@media screen and (max-width: 860px) {
  .account-header,
  .account-dashboard-grid {
    display: block;
  }

  .account-nav {
    justify-content: flex-start;
    margin-top: 22px;
  }

  .account-dashboard-grid {
    margin-top: 24px;
  }

  .account-card + .account-card {
    margin-top: 20px;
  }

  .account-order-table-header {
    display: none;
  }

  .account-order-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-order-table-row strong {
    justify-self: start;
  }
}

@media screen and (max-width: 620px) {
  .account-page {
    padding: 24px 0 40px;
  }

  .account-shell,
  .account-shell--auth {
    width: calc(100% - 24px);
    padding: 24px 18px 28px;
    border-radius: 22px;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .account-submit {
    width: 100%;
  }

  .account-order-row {
    display: block;
  }

  .account-order-row strong {
    display: block;
    margin-top: 10px;
  }

  .account-order-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
