:root {
  --acct-brand: #131c27;
  --acct-brand-hover: #3c4752;
  --acct-ink: #131c27;
  --acct-muted: #6e757b;
  --acct-line: rgba(19, 28, 39, 0.15);
  --acct-soft: #f2eee5;
  --acct-white: #ffffff;
  --acct-paper: #fcf9f2;
  --acct-success: #4a7e77;
  --acct-error: #9b2c2c;
  --acct-pill: 999px;
}

body.acct--auth {
  background: var(--acct-paper);
}

body.acct--auth .skip-link {
  background: var(--acct-ink);
}

.acct-auth {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  background: var(--acct-paper);
}

.acct-auth__head {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 40px 20px 20px;
}

.acct-auth__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

.acct-auth__main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 54px;
}

.acct-auth__card {
  width: 100%;
  max-width: 379px;
  padding: 28px;
  border: 1px solid var(--acct-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.acct-auth__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 22px;
  color: var(--acct-muted);
  font-size: 12px;
}

.acct-auth__back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.acct-auth__back:hover {
  color: var(--acct-ink);
}

.acct-auth__intro {
  margin-bottom: 22px;
}

.acct-auth__title {
  margin: 0 0 7px;
  font-family: "Aura Serif", Baskerville, Georgia, serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.acct-auth__sub {
  margin: 0;
  color: var(--acct-muted);
  font-size: 13px;
  line-height: 1.5;
}

.acct-auth__sub--mail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.acct-step[hidden] {
  display: none !important;
}

.acct-form {
  margin: 0;
}

.acct-field {
  position: relative;
  margin: 0 0 12px;
}

.acct-field__box {
  position: relative;
  display: grid;
  height: 49px;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  border: 1px solid #d8d4cb;
  border-radius: 12px;
  background: var(--acct-white);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.acct-field__box:focus-within {
  border-color: var(--acct-ink);
  box-shadow: 0 0 0 0.5px var(--acct-ink);
}

.acct-field__label {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 11px;
  color: #74777a;
  font-size: 11px;
  line-height: 1.2;
  pointer-events: none;
}

.acct-field__input {
  width: 100%;
  min-width: 0;
  height: 100%;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 19px 10px 5px;
  border: 0;
  border-radius: 12px 0 0 12px;
  outline: 0;
  background: transparent;
  color: var(--acct-ink);
  font-size: 14px;
  box-shadow: none;
}

.acct-field__go {
  display: inline-grid;
  width: 34px;
  height: 35px;
  grid-column: 2;
  grid-row: 1;
  place-items: center;
  justify-self: center;
  padding: 0;
  border-radius: 10px;
  background: transparent;
}

.acct-field__go:hover {
  background: var(--acct-soft);
}

.acct-field__go svg,
.acct-password-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acct-password-toggle {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--acct-ink);
  opacity: 0.52;
}

.acct-password-toggle:hover {
  opacity: 1;
}

.acct-field__box .acct-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
}

.acct-field__box:has(.acct-password-toggle) .acct-field__input {
  padding-right: 48px;
}

.acct-btn {
  display: inline-flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: var(--acct-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.acct-btn--primary {
  background: var(--acct-brand);
  color: var(--acct-white);
}

.acct-btn--primary:hover {
  background: var(--acct-brand-hover);
  color: var(--acct-white);
}

.acct-btn--ghost {
  border-color: var(--acct-ink);
  background: transparent;
  color: var(--acct-ink);
}

.acct-btn--ghost:hover {
  background: var(--acct-ink);
  color: var(--acct-white);
}

.acct-btn--sm {
  width: auto;
  min-height: 40px;
  padding: 8px 20px;
  font-size: 13px;
}

.acct-btn--spaced {
  margin-top: 18px;
}

.acct-form__aside {
  margin: 0 0 16px;
  text-align: right;
}

.acct-form__aside a,
.acct-form__switch a,
.acct-link-button {
  color: var(--acct-ink);
  font-size: 13px;
  text-decoration: underline;
}

.acct-link-button {
  padding: 0;
  background: transparent;
}

.acct-form__switch {
  margin: 20px 0 0;
  color: var(--acct-muted);
  font-size: 13px;
  text-align: center;
}

.acct-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  color: var(--acct-muted);
  font-size: 12px;
  line-height: 1.45;
}

.acct-check__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.acct-check__box {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 6px;
  background: var(--acct-white);
  color: transparent;
  box-shadow: inset 0 0 0 1px #d8d4cb;
}

.acct-check__box svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.acct-check__input:focus-visible + .acct-check__box {
  outline: 2px solid var(--acct-ink);
  outline-offset: 3px;
}

.acct-check__input:checked + .acct-check__box {
  background: var(--acct-ink);
  color: var(--acct-white);
  box-shadow: none;
}

.acct-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--acct-line);
  border-radius: 10px;
  background: var(--acct-soft);
  color: var(--acct-ink);
  font-size: 13px;
  line-height: 1.45;
}

.acct-notice--error {
  border-color: #e5bebe;
  background: #fdf1f1;
  color: var(--acct-error);
}

.acct-notice--success {
  border-color: #bcd8d3;
  background: #eef7f4;
  color: #285a53;
}

.acct-auth__foot {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 28px;
  color: var(--acct-muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.acct-auth__policy,
.acct-auth__copyright {
  max-width: 420px;
  margin: 0;
}

.acct-app {
  min-height: 70vh;
  padding: 64px 0 100px;
  background: var(--acct-paper);
}

.acct-app__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.acct-app__side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.acct-app__id {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--acct-line);
  border-radius: 14px;
  background: var(--acct-soft);
}

.acct-app__avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: #98c1e1;
  color: var(--acct-ink);
  font-size: 17px;
  font-weight: 600;
}

.acct-app__who {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.acct-app__name,
.acct-app__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-app__name {
  font-size: 14px;
  font-weight: 500;
}

.acct-app__email {
  color: var(--acct-muted);
  font-size: 12px;
}

.acct-nav__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.acct-nav__list::-webkit-scrollbar {
  display: none;
}

.acct-nav__item {
  flex: 0 0 auto;
}

.acct-nav__link {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--acct-line);
  border-radius: 999px;
  background: var(--acct-white);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.acct-nav__link:hover {
  border-color: var(--acct-ink);
}

.acct-nav__item.is-active .acct-nav__link {
  border-color: var(--acct-ink);
  background: var(--acct-ink);
  color: var(--acct-white);
}

.acct-nav__icon {
  display: inline-flex;
}

.acct-app__main {
  min-width: 0;
}

.acct-panel {
  padding: 26px;
  border: 1px solid var(--acct-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.acct-panel__eyebrow {
  margin: 0 0 12px;
  color: var(--acct-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.acct-panel__title {
  margin: 0 0 9px;
  font-family: "Aura Serif", Baskerville, Georgia, serif;
  font-size: clamp(38px, 4.5vw, 54px);
  font-weight: 300;
  line-height: 1;
}

.acct-panel__lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--acct-muted);
  font-size: 14px;
  line-height: 1.55;
}

.acct-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.acct-overview__card {
  display: grid;
  min-height: 92px;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--acct-line);
  border-radius: 12px;
  background: var(--acct-white);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.acct-overview__card:hover {
  border-color: var(--acct-ink);
  transform: translateY(-2px);
}

.acct-overview__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--acct-soft);
}

.acct-overview__card strong,
.acct-overview__card small {
  display: block;
}

.acct-overview__card strong {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
}

.acct-overview__card small {
  color: var(--acct-muted);
  font-size: 12px;
}

.acct-overview__arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.acct-empty {
  padding: 34px 22px;
  border: 1px dashed var(--acct-line);
  border-radius: 14px;
  text-align: center;
}

.acct-empty--orders {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 54px;
}

.acct-empty__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--acct-soft);
}

.acct-empty h2 {
  margin: 0 0 8px;
  font-family: "Aura Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 300;
}

.acct-empty__text {
  margin: 0 0 20px;
  color: var(--acct-muted);
  font-size: 13px;
}

.acct-empty .acct-btn {
  width: auto;
  min-width: 170px;
}

.acct-orders__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acct-order {
  padding: 20px;
  border: 1px solid var(--acct-line);
  border-radius: 12px;
  background: var(--acct-white);
}

.acct-order__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.acct-order__num {
  font-size: 16px;
  font-weight: 600;
}

.acct-order__status {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--acct-soft);
  color: var(--acct-ink);
  font-size: 10px;
  font-weight: 600;
}

.acct-order__status--pending {
  background: #eef1ff;
  color: #2a3a8f;
}

.acct-order__status--processing,
.acct-order__status--on-hold {
  background: #fff3d6;
  color: #7a5500;
}

.acct-order__status--completed {
  background: #e4f5ea;
  color: #1b6b3a;
}

.acct-order__status--cancelled,
.acct-order__status--refunded {
  background: #fdecec;
  color: #9b2c2c;
}

.acct-order__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  margin: 0 0 18px;
}

.acct-order__meta dt {
  margin-bottom: 3px;
  color: var(--acct-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.acct-order__meta dd {
  margin: 0;
  font-size: 13px;
}

.acct-order__actions {
  display: flex;
  gap: 8px;
}

.acct-addresses__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.acct-address-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--acct-line);
  border-radius: 14px;
  background: var(--acct-white);
}

.acct-address-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.acct-address-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--acct-soft);
}

.acct-address-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.acct-address-card__body {
  flex: 1;
  margin: 0 0 18px;
  color: var(--acct-ink);
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}

.acct-address-card__none {
  color: var(--acct-muted);
  font-style: italic;
}

.acct-address-card__actions {
  display: flex;
  gap: 8px;
}

.acct-form-card {
  padding: 22px;
  border: 1px solid var(--acct-line);
  border-radius: 14px;
  background: var(--acct-white);
}

.acct-form-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.acct-form-card__head h2 {
  margin: 0;
  font-family: "Aura Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 300;
}

.acct-form-card__head a {
  color: var(--acct-muted);
  font-size: 12px;
  text-decoration: underline;
}

.acct-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.acct-field--stacked {
  margin: 0;
}

.acct-field--stacked label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
}

.acct-field--stacked input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d8d4cb;
  border-radius: 10px;
  outline: 0;
  background: var(--acct-white);
  font-size: 14px;
}

.acct-field--stacked input:focus {
  border-color: var(--acct-ink);
  box-shadow: 0 0 0 0.5px var(--acct-ink);
}

.acct-password-fieldset {
  margin: 0 0 20px;
  padding: 22px;
  border: 1px solid var(--acct-line);
  border-radius: 12px;
  background: var(--acct-paper);
}

.acct-password-fieldset legend {
  padding: 0 8px;
  font-family: "Aura Serif", Georgia, serif;
  font-size: 24px;
  font-weight: 300;
}

.acct-password-fieldset .acct-field + .acct-field {
  margin-top: 14px;
}

.acct-password-wrap {
  position: relative;
}

.acct-password-wrap input {
  padding-right: 52px;
}

.acct-password-wrap .acct-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.acct-password-strength {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--acct-soft);
  font-size: 11px;
}

.acct-password-strength.is-short,
.acct-password-strength.is-weak {
  background: #fdecec;
  color: #9b2c2c;
}

.acct-password-strength.is-medium {
  background: #fff3d6;
  color: #7a5500;
}

.acct-password-strength.is-strong {
  background: #e4f5ea;
  color: #1b6b3a;
}

@media (min-width: 640px) {
  .acct-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acct-field--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  .acct-addresses__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acct-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acct-order {
    padding: 24px;
  }

  .acct-order__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .acct-app {
    padding-top: 72px;
  }

  .acct-app__grid {
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }

  .acct-app__side {
    position: sticky;
    top: 110px;
  }

  .acct-nav__list {
    flex-direction: column;
    overflow: visible;
    padding: 0;
  }

  .acct-nav__item {
    width: 100%;
  }

  .acct-nav__link {
    width: 100%;
    border-color: transparent;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
  }

  .acct-nav__link:hover {
    border-color: transparent;
    background: var(--acct-soft);
  }

  .acct-nav__item.is-active .acct-nav__link {
    background: var(--acct-ink);
  }

  .acct-nav__item--logout {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--acct-line);
  }

  .acct-panel {
    padding: 34px;
  }
}

@media (max-width: 620px) {
  .acct-auth__head {
    padding-top: 28px;
  }

  .acct-auth__main {
    align-items: flex-start;
    padding: 20px 14px 40px;
  }

  .acct-auth__card {
    padding: 22px 19px;
  }

  .acct-auth__title {
    font-size: 31px;
  }

  .acct-app {
    padding: 38px 0 70px;
  }

  .acct-panel {
    padding: 20px 17px;
  }

  .acct-panel__title {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acct-overview__card,
  .acct-btn {
    transition: none;
  }
}
