/* Prism account pages: matched to the current storefront visual system. */
:root {
  color-scheme: light;
  --account-ink: #101418;
  --account-muted: #66717f;
  --account-line: rgba(16, 20, 24, 0.10);
  --account-line-strong: rgba(16, 20, 24, 0.16);
  --account-surface: rgba(255, 255, 255, 0.92);
  --account-surface-solid: #ffffff;
  --account-soft: #f5f8f6;
  --account-green: #174f43;
  --account-green-bright: #1f8f67;
  --account-mint: #c9f6e6;
  --account-lilac: #eee4ff;
  --account-sky: #dff3ff;
  --account-danger: #b42318;
  --account-success: #1f7a54;
  --account-shadow: 0 28px 80px rgba(16, 24, 40, 0.12);
  --account-font-body: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
  --account-font-display: 'Newsreader', Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

.account-body {
  min-height: 100vh;
  color: var(--account-ink);
  font-family: var(--account-font-body);
  background:
    radial-gradient(circle at 12% 4%, rgba(201, 246, 230, 0.64), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(238, 228, 255, 0.72), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfcff 52%, #ffffff);
  -webkit-font-smoothing: antialiased;
}

.account-body[data-auth-page] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.account-body[data-auth-page]::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 18% 10%, rgba(201, 246, 230, 0.74), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(238, 228, 255, 0.76), transparent 28%),
    linear-gradient(135deg, #ffffff, #f8fbff);
}

.account-body[data-auth-page]::after {
  content: '';
  position: fixed;
  inset: 60px 0 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255, 255, 255, 0.92), transparent 26%),
    linear-gradient(135deg, rgba(16, 20, 24, 0.10), rgba(16, 20, 24, 0.04));
  backdrop-filter: blur(9px);
}

.account-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0 0 64px;
}

.account-simple-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(16, 20, 24, 0.08);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(18px);
}

.account-brand,
.account-simple-link,
.account-card a,
.account-panel a {
  color: inherit;
  text-decoration: none;
}

.account-brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--account-ink);
  font-family: var(--account-font-display);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.account-simple-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 6px;
  color: rgba(16, 20, 24, 0.68);
  font-size: 0.86rem;
  font-weight: 650;
}

.account-simple-link:hover {
  color: var(--account-ink);
  background: rgba(16, 20, 24, 0.06);
}

#authRoot,
#accountRoot {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.account-body[data-auth-page] #authRoot {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.account-card,
.account-panel {
  border: 1px solid var(--account-line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 84% 4%, rgba(223, 243, 255, 0.88), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(201, 246, 230, 0.82), transparent 34%);
  border-radius: 34px;
  box-shadow: var(--account-shadow);
}

.account-card {
  padding: clamp(26px, 4vw, 48px);
}

.account-card--center,
.account-card--auth {
  max-width: 620px;
  margin: clamp(42px, 9vh, 88px) auto 0;
}

.account-body[data-auth-page] .account-card--auth {
  position: relative;
  width: min(470px, 100%);
  max-width: 470px;
  margin: 0;
  padding: clamp(26px, 5vw, 36px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 34px 90px rgba(16, 24, 40, 0.20),
    0 0 0 1px rgba(255, 255, 255, 0.80) inset;
}

.account-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--account-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: rgba(16, 20, 24, 0.58) !important;
  font-size: 26px;
  font-weight: 600 !important;
  line-height: 1;
}

.account-modal-close:hover {
  color: var(--account-ink) !important;
  background: rgba(16, 20, 24, 0.06);
}

.account-card--center {
  text-align: center;
}

.account-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--account-green-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.account-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--account-green-bright);
  box-shadow: 0 0 0 6px rgba(31, 143, 103, 0.10);
}

.account-card h1,
.account-dashboard h1,
.account-card h2 {
  margin: 0 0 14px;
  color: var(--account-ink);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.account-card h1,
.account-dashboard h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 74px);
}

.account-body[data-auth-page] .account-card h1 {
  max-width: 360px;
  font-size: clamp(34px, 7vw, 44px);
  letter-spacing: -0.052em;
}

.account-card h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.account-card p,
.account-dashboard__sub,
.account-muted {
  color: var(--account-muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.62;
}

.account-body[data-auth-page] .account-card p {
  font-size: 0.98rem;
}

.account-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.account-form label {
  display: grid;
  gap: 8px;
  color: rgba(16, 20, 24, 0.78);
  font-weight: 850;
}

.account-form input,
.account-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--account-line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--account-ink);
  font: inherit;
  font-size: 1rem;
  padding: 0 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.account-form input:focus,
.account-form select:focus {
  border-color: rgba(31, 143, 103, 0.55);
  box-shadow: 0 0 0 5px rgba(31, 143, 103, 0.12);
}

.account-button,
.account-link-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--account-ink);
  border-radius: 999px;
  background: var(--account-ink);
  color: #ffffff !important;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 22px;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.account-button:hover,
.account-link-button:hover {
  transform: translateY(-2px);
  background: var(--account-green-bright);
  border-color: var(--account-green-bright);
}

.account-button[disabled] {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.account-button--ghost,
.account-link-button {
  background: rgba(255, 255, 255, 0.70);
  color: var(--account-ink) !important;
  border-color: var(--account-line-strong);
}

.account-button--ghost:hover,
.account-link-button:hover {
  color: #ffffff !important;
}

.account-message,
.account-alert {
  margin-top: 18px;
  min-height: 1.4em;
  color: var(--account-muted);
  font-weight: 700;
}

.account-message--success,
.account-alert--success {
  color: var(--account-success);
}

.account-message--error,
.account-alert--error,
.account-error {
  color: var(--account-danger);
}

.account-card__footer {
  margin-top: 24px;
  color: var(--account-muted);
  font-weight: 650;
}

.account-card__footer a,
.account-card a,
.account-panel a {
  color: var(--account-green);
  font-weight: 850;
}

.account-dashboard {
  margin: clamp(28px, 5vw, 54px) auto 0;
}

.account-dashboard__header,
.account-card__heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.account-dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-tabs {
  display: flex;
  gap: 10px;
  margin: 26px 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.account-tabs__btn {
  min-height: 42px;
  border: 1px solid var(--account-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  color: rgba(16, 20, 24, 0.68);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0 17px;
  white-space: nowrap;
}

.account-tabs__btn--active {
  border-color: var(--account-green);
  background: var(--account-green);
  color: #ffffff;
}

.account-grid {
  display: grid;
  gap: 18px;
}

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

.account-dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.account-dl div {
  display: grid;
  gap: 4px;
}

.account-dl dt {
  color: var(--account-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-dl dd {
  margin: 0;
  color: var(--account-ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.account-orders,
.account-addresses,
.account-wishlist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.account-order,
.account-address,
.account-wishlist-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--account-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  padding: 16px;
}

.account-address,
.account-wishlist-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.account-order div,
.account-wishlist-item div,
.account-address div {
  display: grid;
  gap: 4px;
}

.account-order span,
.account-wishlist-item span,
.account-address p {
  color: var(--account-muted);
  font-weight: 650;
}

.account-loading,
.account-error {
  padding: 30px;
  color: var(--account-muted);
  font-weight: 750;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.account-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 24, 0.42);
  backdrop-filter: blur(8px);
}

.account-modal__panel {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  margin: 28px auto;
  border: 1px solid var(--account-line);
  border-radius: 30px;
  background: var(--account-surface-solid);
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--account-shadow);
}

.account-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--account-line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--account-ink);
  cursor: pointer;
  font-size: 1.5rem;
}

.account-json {
  border: 1px solid var(--account-line);
  border-radius: 18px;
  background: rgba(245, 248, 246, 0.9);
  color: var(--account-muted);
  overflow: auto;
  padding: 14px;
}

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

.account-form--inline {
  align-items: end;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr) auto;
}

.account-form__wide {
  grid-column: 1 / -1;
}

.account-form__actions,
.account-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-form__hint {
  color: var(--account-muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.account-dl--settings-link {
  margin-top: 22px;
}

.account-check {
  align-items: center;
  display: flex;
  gap: 10px;
}

.account-check input {
  width: auto;
  min-height: 0;
}

.account-pill {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(31, 143, 103, 0.35);
  border-radius: 999px;
  color: var(--account-green);
  font-size: 0.72rem;
  font-weight: 850;
}

.account-link-button--danger {
  color: var(--account-danger) !important;
}

.account-section-title {
  margin: 26px 0 0;
}

.account-address p {
  margin: 0;
}

.nav__icon-btn[data-account-header-link][hidden] {
  display: none !important;
}

.nav__account-label {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 850;
}

/* Final account-page storefront alignment layer. Matches current Prism public site. */
.account-body {
  --account-ink: #111111;
  --account-muted: #666666;
  --account-line: rgba(17, 17, 17, 0.10);
  --account-line-strong: rgba(17, 17, 17, 0.18);
  --account-green: #174f43;
  --account-green-bright: #174f43;
  --account-shadow: 0 26px 80px rgba(17, 17, 17, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(17, 17, 17, 0.055), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f5 56%, #ffffff 100%);
}

.account-body[data-auth-page] {
  overflow-x: hidden;
  overflow-y: auto;
}

.account-body[data-auth-page]::before {
  background:
    radial-gradient(circle at 12% 10%, rgba(17, 17, 17, 0.045), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(23, 79, 67, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f5 58%, #ffffff 100%);
}

.account-body[data-auth-page]::after {
  inset: 60px 0 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 72%);
  backdrop-filter: none;
}

.account-simple-nav {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(48px, 1fr);
  align-items: center;
  height: 60px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 17, 17, 0.10);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04);
  backdrop-filter: blur(18px);
}

.account-brand--image {
  width: fit-content;
  height: 42px;
  align-items: center;
}

.account-brand--image img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.account-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
}

.account-simple-link {
  min-height: 40px;
  padding: 0;
  border-radius: 0;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.account-simple-link:hover {
  color: #111111;
  background: transparent;
}

.account-nav-icon {
  justify-self: end;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  color: #111111;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.account-nav-icon:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 17, 0.28);
}

.account-nav-icon svg {
  width: 20px;
  height: 20px;
}

#authRoot,
#accountRoot {
  width: min(1180px, calc(100% - 36px));
}

.account-card,
.account-panel {
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.10);
}

.account-card--auth {
  position: relative;
  overflow: hidden;
}

.account-card--auth::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.76), rgba(255,255,255,0)),
    radial-gradient(circle at 86% 0%, rgba(23, 79, 67, 0.10), transparent 30%);
}

.account-card--auth > * {
  position: relative;
  z-index: 1;
}

.account-body[data-auth-page] #authRoot,
.account-body:not([data-auth-page]) #accountRoot {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 72px) 0;
}

.account-body[data-auth-page] .account-card--auth,
.account-body:not([data-auth-page]) .account-card--auth {
  width: min(500px, 100%);
  max-width: 500px;
  margin: 0;
  padding: clamp(30px, 5vw, 42px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 30px 90px rgba(17, 17, 17, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
}

.account-eyebrow {
  color: rgba(17, 17, 17, 0.54);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.account-eyebrow::before {
  width: 6px;
  height: 6px;
  background: #111111;
  box-shadow: 0 0 0 5px rgba(17, 17, 17, 0.08);
}

.account-card h1,
.account-dashboard h1,
.account-card h2 {
  color: #111111;
  font-family: var(--account-font-display);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.account-body[data-auth-page] .account-card h1,
.account-body:not([data-auth-page]) .account-card--auth h1 {
  max-width: 400px;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 0.95;
}

.account-card p,
.account-dashboard__sub,
.account-muted {
  color: rgba(17, 17, 17, 0.62);
  font-weight: 600;
}

.account-form input,
.account-form select {
  min-height: 54px;
  border-color: rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
}

.account-form input:focus,
.account-form select:focus {
  border-color: rgba(17, 17, 17, 0.42);
  box-shadow: 0 0 0 5px rgba(17, 17, 17, 0.08);
}

.account-button,
.account-link-button {
  min-height: 52px;
  border-color: #111111;
  background: #111111;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.16);
}

.account-button:hover,
.account-link-button:hover {
  background: #174f43;
  border-color: #174f43;
}

.account-button--ghost,
.account-link-button {
  background: #ffffff;
  color: #111111 !important;
  box-shadow: none;
}

.account-modal-close {
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(17, 17, 17, 0.58) !important;
}

@media (max-width: 760px) {
  .account-simple-nav {
    grid-template-columns: 1fr auto;
    height: 56px;
    padding: 0 14px;
  }

  .account-brand--image {
    height: 38px;
  }

  .account-brand--image img {
    height: 36px;
  }

  .account-nav-links {
    display: none;
  }

  .account-nav-icon {
    width: 40px;
    height: 40px;
  }

  #authRoot,
  #accountRoot {
    width: min(100% - 22px, 1120px);
  }

  .account-card--center,
  .account-card--auth {
    margin-top: 26px;
  }

  .account-body[data-auth-page] #authRoot,
  .account-body:not([data-auth-page]) #accountRoot {
    min-height: calc(100vh - 56px);
    padding: 22px 0 34px;
  }

  .account-body[data-auth-page] .account-card--auth,
  .account-body:not([data-auth-page]) .account-card--auth {
    border-radius: 26px;
    padding: 28px 22px;
  }

  .account-card h1,
  .account-dashboard h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .account-body[data-auth-page] .account-card h1,
  .account-body:not([data-auth-page]) .account-card--auth h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .account-dashboard__header,
  .account-card__heading-row {
    display: grid;
  }

  .account-grid--overview,
  .account-order,
  .account-address,
  .account-wishlist-item,
  .account-form--grid,
  .account-form--inline {
    grid-template-columns: 1fr;
  }

  .account-dashboard__actions .account-button {
    flex: 1;
  }

  .nav__account-label {
    display: none;
  }
}

/* Account page layout refinement: simple, page-like auth surface. */
.account-body[data-auth-page] {
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 8% 12%, rgba(201, 246, 230, 0.38), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f8f5 48%, #ffffff 100%);
}

.account-body[data-auth-page]::before,
.account-body[data-auth-page]::after {
  content: none;
}

.account-body[data-auth-page] #authRoot {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 60px);
  display: block;
  margin: 0 auto;
  padding: clamp(46px, 8vw, 92px) 0 clamp(56px, 8vw, 96px);
}

.account-auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: start;
  gap: clamp(44px, 8vw, 112px);
}

.account-auth-intro {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: clamp(18px, 3vw, 38px) 0;
}

.account-auth-intro .account-eyebrow {
  margin-bottom: 22px;
}

.account-auth-intro h1 {
  max-width: 620px;
  margin: 0 0 22px;
  color: #111111;
  font-family: var(--account-font-display);
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.account-auth-intro p {
  max-width: 520px;
  margin: 0;
  color: rgba(17, 17, 17, 0.64);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  line-height: 1.56;
}

.account-auth-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.account-auth-notes span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(17, 17, 17, 0.68);
  font-size: 13px;
  font-weight: 800;
  padding: 0 14px;
}

.account-body[data-auth-page] .account-card--auth {
  width: 100%;
  max-width: none;
  margin: clamp(18px, 5vw, 58px) 0 0;
  padding: 0 0 0 clamp(28px, 4vw, 42px);
  border: 0;
  border-left: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-body[data-auth-page] .account-card--auth .account-eyebrow {
  color: rgba(17, 17, 17, 0.56);
}

.account-body[data-auth-page] .account-card--auth h1,
.account-body[data-auth-page] .account-card--auth h2 {
  max-width: 380px;
  margin: 0 0 12px;
  color: #111111;
  font-family: var(--account-font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.account-body[data-auth-page] .account-card--auth p:not(.account-eyebrow) {
  max-width: 380px;
  color: rgba(17, 17, 17, 0.58);
  font-size: 15px;
  line-height: 1.55;
}

.account-body[data-auth-page] .account-form {
  max-width: 420px;
  margin-top: 28px;
  gap: 16px;
}

.account-body[data-auth-page] .account-form label {
  gap: 9px;
  color: rgba(17, 17, 17, 0.76);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.account-body[data-auth-page] .account-form input,
.account-body[data-auth-page] .account-form select {
  min-height: 54px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
}

.account-body[data-auth-page] .account-button {
  min-height: 54px;
  justify-self: start;
  min-width: 170px;
  padding-inline: 28px;
}

.account-body[data-auth-page] .account-card__footer,
.account-body[data-auth-page] .account-message {
  max-width: 420px;
}

.account-body[data-auth-page] .account-card__footer {
  border-top: 1px solid rgba(17, 17, 17, 0.10);
  margin-top: 24px;
  padding-top: 20px;
}

.account-body[data-auth-page] .account-modal-close {
  top: -6px;
  right: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 900px) {
  .account-body[data-auth-page] #authRoot {
    width: min(100% - 28px, 680px);
    padding: 34px 0 54px;
  }

  .account-auth-page {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .account-auth-intro {
    min-height: auto;
    justify-content: flex-start;
    padding: 22px 0 0;
  }

  .account-auth-intro h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .account-auth-intro p {
    font-size: 16px;
  }

  .account-auth-notes {
    margin-top: 22px;
  }

  .account-body[data-auth-page] .account-card--auth {
    margin-top: 8px;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
  }

  .account-body[data-auth-page] .account-button {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 520px) {
  .account-body[data-auth-page] #authRoot {
    width: min(100% - 24px, 480px);
    padding-top: 20px;
  }

  .account-auth-page {
    gap: 20px;
  }

  .account-auth-intro {
    padding-top: 16px;
  }

  .account-auth-intro .account-eyebrow {
    margin-bottom: 14px;
  }

  .account-auth-intro h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 13vw, 50px);
  }

  .account-auth-intro p {
    font-size: 15px;
    line-height: 1.48;
  }

  .account-auth-notes {
    display: none;
  }

  .account-body[data-auth-page] .account-card--auth {
    padding-top: 22px;
  }

  .account-body[data-auth-page] .account-card--auth h1,
  .account-body[data-auth-page] .account-card--auth h2 {
    font-size: clamp(31px, 10vw, 42px);
  }
}

/* Final auth one-pager + button normalization pass. */
.account-body[data-auth-page] #authRoot {
  width: min(760px, calc(100% - 48px));
  min-height: calc(100vh - 60px);
  display: block;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 78px) 0 clamp(54px, 7vw, 86px);
}

.account-auth-page {
  display: block;
  max-width: 720px;
}

.account-auth-intro {
  min-height: 0;
  display: block;
  max-width: 640px;
  padding: 0;
  margin: 0 0 clamp(26px, 4vw, 38px);
}

.account-auth-intro .account-eyebrow {
  margin-bottom: 16px;
}

.account-auth-intro h1 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.058em;
}

.account-auth-intro p {
  max-width: 570px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
}

.account-auth-notes {
  display: none;
}

.account-body[data-auth-page] .account-card--auth {
  width: min(520px, 100%);
  max-width: 520px;
  margin: 0;
  padding: clamp(24px, 4vw, 34px) 0 0;
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.account-body[data-auth-page] .account-card--auth::before {
  content: none;
}

.account-body[data-auth-page] .account-card--auth h1,
.account-body[data-auth-page] .account-card--auth h2 {
  max-width: 480px;
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.account-body[data-auth-page] .account-card--auth p:not(.account-eyebrow) {
  max-width: 480px;
  margin-bottom: 0;
}

.account-body[data-auth-page] .account-form {
  width: min(100%, 480px);
  max-width: 480px;
  margin-top: 24px;
  gap: 14px;
}

.account-body[data-auth-page] .account-form input,
.account-body[data-auth-page] .account-form select,
.account-form input,
.account-form select {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #ffffff;
  color: #111111;
  font: 700 15px/1 var(--account-font-ui);
  box-shadow: none;
}

.account-body[data-auth-page] .account-form input:focus,
.account-body[data-auth-page] .account-form select:focus,
.account-form input:focus,
.account-form select:focus {
  border-color: rgba(17, 17, 17, 0.48);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.account-button,
.account-link-button,
.account-body[data-auth-page] .account-button,
.account-body[data-auth-page] .account-link-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #111111;
  border-radius: 999px;
  background: #111111;
  background-image: none;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  padding: 0 24px;
  font: 800 14px/1 var(--account-font-ui);
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-button:hover,
.account-link-button:hover,
.account-body[data-auth-page] .account-button:hover,
.account-body[data-auth-page] .account-link-button:hover {
  background: #174f43;
  border-color: #174f43;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  transform: translateY(-1px);
}

.account-button--ghost,
.account-link-button {
  background: transparent;
  border-color: rgba(17, 17, 17, 0.22);
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
}

.account-button--ghost:hover,
.account-link-button:hover {
  background: #111111;
  border-color: #111111;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.account-body[data-auth-page] .account-form .account-button {
  width: 100%;
  justify-self: stretch;
  min-width: 0;
  margin-top: 4px;
}

.account-body[data-auth-page] .account-card__footer,
.account-body[data-auth-page] .account-message {
  width: min(100%, 480px);
  max-width: 480px;
}

.account-body[data-auth-page] .account-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  border-top: 0;
  margin-top: 18px;
  padding-top: 0;
  color: rgba(17, 17, 17, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.account-body[data-auth-page] .account-card__footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.28);
  color: #111111 !important;
  -webkit-text-fill-color: #111111;
  font-weight: 850;
  text-decoration: none;
}

.account-body[data-auth-page] .account-card__footer a:hover {
  border-bottom-color: #174f43;
  color: #174f43 !important;
  -webkit-text-fill-color: #174f43;
}

.account-body[data-auth-page] .account-modal-close {
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(17, 17, 17, 0.70) !important;
  -webkit-text-fill-color: rgba(17, 17, 17, 0.70);
}

@media (max-width: 760px) {
  .account-body[data-auth-page] #authRoot {
    width: min(100% - 28px, 620px);
    padding: 28px 0 52px;
  }

  .account-auth-intro {
    margin-bottom: 24px;
  }

  .account-auth-intro h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .account-body[data-auth-page] .account-card--auth {
    width: 100%;
    max-width: none;
    padding-top: 22px;
  }

  .account-body[data-auth-page] .account-form,
  .account-body[data-auth-page] .account-card__footer,
  .account-body[data-auth-page] .account-message {
    width: 100%;
    max-width: none;
  }
}

/* Account page full redesign: open customer hub + cleaner auth structure. */
.account-body {
  --account-font-ui: var(--account-font-body);
  background:
    radial-gradient(circle at 16% 6%, rgba(23, 79, 67, 0.08), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(17, 17, 17, 0.055), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f4 48%, #ffffff 100%);
}

.account-shell {
  padding-bottom: 0;
}

.account-dashboard--redesign {
  width: 100%;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
}

.account-dashboard__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(28px, 4vw, 46px);
  padding-bottom: clamp(24px, 4vw, 38px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.account-dashboard__hero-copy {
  max-width: 830px;
}

.account-dashboard__hero h1 {
  margin-bottom: 16px;
  font-size: clamp(58px, 9vw, 116px);
  line-height: 0.86;
}

.account-dashboard__sub {
  max-width: 650px;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(17, 17, 17, 0.62);
}

.account-dashboard__workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.account-dashboard__sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 22px;
}

.account-dashboard__identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.10);
}

.account-dashboard__identity strong,
.account-dashboard__identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dashboard__identity strong {
  color: #111111;
  font-size: 14px;
}

.account-dashboard__identity span {
  margin-top: 3px;
  color: rgba(17, 17, 17, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.account-dashboard--redesign .account-tabs {
  display: grid;
  gap: 8px;
  margin: 0;
  overflow: visible;
  padding: 0;
}

.account-dashboard--redesign .account-tabs__btn {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.70);
  color: rgba(17, 17, 17, 0.68);
  box-shadow: none;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1;
  padding: 0 18px;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.account-dashboard--redesign .account-tabs__btn:hover {
  background: rgba(17, 17, 17, 0.055);
  color: #111111;
}

.account-dashboard--redesign .account-tabs__btn:active {
  transform: none;
}

.account-dashboard--redesign .account-tabs__btn:focus-visible {
  outline: 2px solid rgba(31, 143, 103, 0.38);
  outline-offset: 2px;
}

.account-dashboard--redesign .account-tabs__btn--active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.account-dashboard--redesign .account-tabs__btn--active:hover {
  background: #111111;
  color: #ffffff;
}

.account-dashboard__main {
  min-width: 0;
}

.account-dashboard--redesign .account-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-overview-redesign {
  display: grid;
  gap: 22px;
}

.account-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 28px;
  background: rgba(17, 17, 17, 0.10);
}

.account-overview-strip article {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
}

.account-overview-strip span {
  color: rgba(17, 17, 17, 0.54);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.account-overview-strip strong {
  color: #111111;
  font-family: var(--account-font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.account-grid--overview-redesign {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 22px;
}

.account-dashboard--redesign .account-card {
  border-radius: 30px;
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
  padding: clamp(24px, 3vw, 36px);
}

.account-dashboard--redesign .account-card h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.94;
}

.account-card--profile-summary {
  min-height: 420px;
}

.account-dl--two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}

.account-dl--two-col div,
.account-dashboard--redesign .account-dl div {
  padding: 14px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.09);
}

.account-card--orders-summary .account-orders {
  margin-top: 24px;
}

.account-dashboard--redesign .account-order,
.account-dashboard--redesign .account-address,
.account-dashboard--redesign .account-wishlist-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: none;
}

.account-dashboard--redesign .account-alert:not([hidden]) {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.account-body[data-auth-page] {
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 79, 67, 0.09), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8f8f4 52%, #ffffff 100%);
}

.account-body[data-auth-page] #authRoot {
  width: min(860px, calc(100% - 48px));
}

.account-auth-page {
  max-width: 820px;
}

.account-auth-intro h1 {
  max-width: 780px;
}

.account-body[data-auth-page] .account-card--auth {
  width: min(560px, 100%);
  max-width: 560px;
}

.account-body[data-auth-page] .account-form,
.account-body[data-auth-page] .account-card__footer,
.account-body[data-auth-page] .account-message {
  width: min(100%, 520px);
  max-width: 520px;
}

.account-body[data-auth-page] .account-form input,
.account-body[data-auth-page] .account-form select,
.account-form input,
.account-form select {
  font-family: var(--account-font-body);
}

@media (max-width: 980px) {
  .account-dashboard__hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .account-dashboard__workspace {
    grid-template-columns: 1fr;
  }

  .account-dashboard__sidebar {
    position: static;
  }

  .account-dashboard--redesign .account-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 6px;
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
  }

  .account-dashboard--redesign .account-tabs__btn {
    min-width: 0;
    justify-content: center;
    min-height: 48px;
    padding: 0 10px;
    text-align: center;
  }

  .account-grid--overview-redesign {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .account-dashboard--redesign {
    padding-top: 28px;
  }

  .account-dashboard__hero h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  .account-dashboard__actions {
    width: 100%;
  }

  .account-dashboard__actions .account-button {
    min-height: 46px;
  }

  .account-overview-strip {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .account-overview-strip article {
    min-height: 94px;
  }

  .account-dl--two-col {
    grid-template-columns: 1fr;
  }

  .account-dashboard--redesign .account-card {
    border-radius: 24px;
  }

  .account-order,
  .account-address,
  .account-wishlist-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  #authRoot,
  #accountRoot {
    width: min(100% - 24px, 1120px);
  }

  .account-body[data-auth-page] #authRoot {
    width: min(100% - 26px, 620px);
  }

  .account-auth-intro h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

  .account-auth-intro p {
    font-size: 15px;
  }
}


/* Account affiliate tab: visible to all customer accounts. */
.account-card--affiliate {
  display: grid;
  gap: 24px;
}

.account-affiliate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
}

.account-affiliate-hero h2 {
  margin: 4px 0 10px;
}

.account-button--affiliate {
  min-width: 220px;
  white-space: nowrap;
}

.account-affiliate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.account-affiliate-panel {
  min-height: 154px;
  padding: 20px;
  border: 1px solid rgba(16, 20, 24, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.70);
}

.account-affiliate-panel span {
  display: block;
  margin-bottom: 10px;
  color: rgba(16, 20, 24, 0.58);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account-affiliate-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--account-ink);
  font-size: 1.02rem;
}

.account-affiliate-panel p {
  margin: 0;
  color: var(--account-muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .account-affiliate-hero,
  .account-affiliate-grid {
    grid-template-columns: 1fr;
  }

  .account-button--affiliate {
    width: 100%;
    min-width: 0;
  }
}


/* Embedded affiliate portal inside customer account page. */
.account-card--affiliate-embedded { overflow: visible; }
.account-affiliate-hero--embedded { margin-bottom: 22px; }
.account-affiliate-embed {
  --surface: rgba(255,255,255,0.92);
  --surface-hover: rgba(248,250,252,0.94);
  --bg-elevated: rgba(241,245,249,0.92);
  --border-light: rgba(226,232,240,0.7);
  --accent: #1a56db;
  --accent-hover: #1444b0;
  --accent-glow: rgba(26,86,219,0.15);
  --accent-subtle: rgba(26,86,219,0.07);
  --green: #059669;
  --green-bg: rgba(5,150,105,0.08);
  --red: #dc2626;
  --red-bg: rgba(220,38,38,0.08);
  --amber: #d97706;
  --amber-bg: rgba(217,119,6,0.08);
  --blue: #2563eb;
  --blue-bg: rgba(37,99,235,0.08);
  --purple: #7c3aed;
  --purple-bg: rgba(124,58,237,0.08);
  --font: 'Albert Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  color: var(--text);
}
.account-affiliate-dashboard-embed .aff-dash { width: 100%; }
.account-affiliate-inline-application .aff-login { min-height: 0; display: block; padding: 0; background: transparent; }
.account-affiliate-inline-application .aff-login__card { max-width: none; width: 100%; box-shadow: none; padding: 0; border: 0; background: transparent; }
.account-affiliate-inline-application .aff-login__logo,
.account-affiliate-inline-application > .aff-login > .aff-login__back,
.account-affiliate-inline-application .aff-login__card > .aff-login__back { display: none; }
.account-affiliate-inline-application .aff-login__title { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.04em; margin: 0; }
.account-affiliate-inline-application .aff-login__sub { color: var(--text-secondary); margin: 8px 0 18px; }
.account-affiliate-embed .loading { display:flex; align-items:center; justify-content:center; min-height:180px; color:var(--text-secondary); }
.account-affiliate-intro { display:grid; gap:22px; padding-top:4px; }
.account-affiliate-intro__copy { max-width: 760px; }
.account-affiliate-intro__copy h3 { margin: 4px 0 10px; font-family: var(--account-font-display); font-size: clamp(2rem, 5vw, 3.25rem); line-height: .95; letter-spacing: -.055em; color: var(--account-ink); }
.account-affiliate-intro__copy p:not(.account-eyebrow) { margin:0; color:var(--account-muted); font-size:1rem; line-height:1.65; }
.account-affiliate-intro__points { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.account-affiliate-intro__points div { padding:16px 18px; border:1px solid rgba(16,20,24,.10); border-radius:18px; background:rgba(255,255,255,.66); }
.account-affiliate-intro__points strong { display:block; margin-bottom:5px; color:var(--account-ink); font-size:.86rem; letter-spacing:.02em; }
.account-affiliate-intro__points span { display:block; color:var(--account-muted); font-size:.88rem; line-height:1.45; }
.account-affiliate-intro__button { width:fit-content; min-width:240px; }
.account-affiliate-embed .form-field { display:flex; flex-direction:column; gap:6px; }
.account-affiliate-embed .form-field__label { font-size:12px; font-weight:800; color:var(--text-secondary); text-transform:uppercase; letter-spacing:.08em; }
.account-affiliate-embed .form-field__hint { display:block; font-size:12px; color:var(--text-muted); margin-top:5px; line-height:1.5; }
.account-affiliate-embed .form-field__input,
.account-affiliate-embed .aff-select { width:100%; padding:12px 14px; background:var(--bg-elevated); border:1px solid var(--border); border-radius:var(--radius-sm); font:inherit; font-size:16px; color:var(--text); outline:none; transition:border-color .15s, box-shadow .15s; }
.account-affiliate-embed .form-field__input:focus,
.account-affiliate-embed .aff-select:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-glow); }
.account-affiliate-embed .aff-login__submit,
.account-affiliate-embed .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:var(--radius-sm); background:var(--accent); color:#fff; font:inherit; font-weight:800; cursor:pointer; transition:background .15s, transform .1s; }
.account-affiliate-embed .aff-login__submit { width:100%; padding:13px 20px; margin-top:20px; }
.account-affiliate-embed .btn { padding:11px 20px; }
.account-affiliate-embed .btn--sm { padding:8px 16px; font-size:13px; }
.account-affiliate-embed .aff-login__submit:hover,
.account-affiliate-embed .btn:hover { background:var(--accent-hover); }
.account-affiliate-embed .aff-login__submit:disabled { opacity:.55; cursor:not-allowed; }
.account-affiliate-embed .aff-login__error { min-height:18px; margin-top:12px; text-align:center; color:var(--red); font-size:13px; }
.account-affiliate-embed .aff-program-hub { margin-top:18px; padding-top:18px; border-top:1px solid var(--border-light); }
.account-affiliate-embed .aff-program-hub__eyebrow,
.account-affiliate-embed .aff-resource-card__eyebrow { font-size:11px; font-weight:800; color:var(--accent); text-transform:uppercase; letter-spacing:.09em; margin-bottom:8px; }
.account-affiliate-embed .aff-program-hub__title,
.account-affiliate-embed .aff-resource-card__title { font-size:15px; font-weight:900; color:var(--text); letter-spacing:-.02em; margin-bottom:6px; }
.account-affiliate-embed .aff-program-hub__copy,
.account-affiliate-embed .aff-program-card__text { font-size:13px; color:var(--text-secondary); line-height:1.65; margin-bottom:14px; }
.account-affiliate-embed .aff-program-grid,
.account-affiliate-embed .aff-resource-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.account-affiliate-embed .aff-program-card,
.account-affiliate-embed .aff-resource-card,
.account-affiliate-embed .aff-stat,
.account-affiliate-embed .aff-code-banner,
.account-affiliate-embed .aff-cashout-card,
.account-affiliate-embed .aff-empty { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); }
.account-affiliate-embed .aff-program-card { padding:14px; }
.account-affiliate-embed .aff-program-card__label { font-size:11px; font-weight:900; color:var(--text); text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.account-affiliate-embed .aff-resource-card { padding:18px; }
.account-affiliate-embed .aff-resource-card--wide { grid-column:1/-1; }
.account-affiliate-embed .aff-disclaimer-box { background:var(--accent-subtle); border:1px solid rgba(26,86,219,.18); border-radius:12px; padding:12px 14px; font-size:13px; color:var(--text-secondary); line-height:1.6; }
.account-affiliate-embed .aff-resource-list { list-style:none; display:grid; gap:8px; padding:0; margin:0; }
.account-affiliate-embed .aff-resource-list li { position:relative; padding-left:16px; font-size:13px; color:var(--text-secondary); line-height:1.5; }
.account-affiliate-embed .aff-resource-list li::before { content:''; position:absolute; left:0; top:.75em; width:5px; height:5px; border-radius:50%; background:var(--accent); transform:translateY(-50%); }
.account-affiliate-embed .aff-resource-list--danger li::before { background:var(--red); }
.account-affiliate-embed .aff-tg-banner { display:flex; align-items:center; gap:10px; padding:12px 16px; border-radius:12px; margin-bottom:16px; background:rgba(79,143,255,.08); border:1px solid rgba(79,143,255,.2); font-size:13px; color:var(--accent); }
.account-affiliate-embed .aff-tg-banner--connected { background:rgba(52,211,153,.08); border-color:rgba(52,211,153,.2); color:#059669; }
.account-affiliate-embed .aff-tg-banner__text { flex:1; line-height:1.5; }
.account-affiliate-embed .aff-tg-banner__disconnect { border:1px solid var(--border); background:transparent; color:var(--text-muted); padding:4px 12px; border-radius:8px; cursor:pointer; }
.account-affiliate-embed .rank-banner { background:linear-gradient(135deg,#f0f4ff,#e8eeff,#f5f3ff); border:1px solid; border-radius:20px; padding:24px; position:relative; overflow:hidden; margin-bottom:24px; }
.account-affiliate-embed .rank-banner__accent { position:absolute; top:-20%; right:-10%; width:200px; height:200px; border-radius:50%; pointer-events:none; }
.account-affiliate-embed .rank-banner__inner { display:flex; align-items:center; gap:20px; position:relative; }
.account-affiliate-embed .rank-banner__logo { flex-shrink:0; }
.account-affiliate-embed .rank-banner__info { flex:1; min-width:0; }
.account-affiliate-embed .rank-banner__top-row { display:flex; align-items:center; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
.account-affiliate-embed .rank-banner__name { font-size:22px; font-weight:900; letter-spacing:.06em; }
.account-affiliate-embed .rank-banner__commission,
.account-affiliate-embed .rank-banner__xp-labels { font-size:12px; color:var(--text-muted); }
.account-affiliate-embed .rank-banner__xp-track { width:100%; height:8px; background:rgba(0,0,0,.06); border-radius:99px; overflow:hidden; margin-bottom:6px; }
.account-affiliate-embed .rank-banner__xp-fill { height:100%; border-radius:99px; }
.account-affiliate-embed .rank-banner__xp-labels { display:flex; justify-content:space-between; gap:10px; }
.account-affiliate-embed .rank-progression-wrap { margin:-8px 0 18px; }
.account-affiliate-embed .rank-progression-toggle { width:100%; display:flex; justify-content:space-between; align-items:center; padding:12px 18px; background:linear-gradient(135deg,rgba(241,245,249,.8),rgba(235,240,251,.8)); border:1px solid var(--border); border-radius:var(--radius-sm); color:var(--text-secondary); font:inherit; font-weight:800; cursor:pointer; }
.account-affiliate-embed .rank-progression-toggle__text { display:flex; align-items:center; gap:8px; }
.account-affiliate-embed .rank-progression-toggle__chevron { transition:transform .25s; }
.account-affiliate-embed .rank-progression--open .rank-progression-toggle__chevron { transform:rotate(180deg); }
.account-affiliate-embed .rank-progression-panel { display:grid; grid-template-rows:0fr; transition:grid-template-rows .35s; }
.account-affiliate-embed .rank-progression-panel > .rank-ladder { overflow:hidden; }
.account-affiliate-embed .rank-progression--open .rank-progression-panel { grid-template-rows:1fr; }
.account-affiliate-embed .rank-progression--open .rank-ladder--dark { padding:14px 0 4px; }
.account-affiliate-embed .rl-card { position:relative; background:linear-gradient(135deg,rgba(241,245,249,.9),rgba(248,249,251,.75)); border:1px solid rgba(0,0,0,.06); border-radius:12px; padding:16px 18px; overflow:hidden; }
.account-affiliate-embed .rl-card__inner { display:flex; align-items:center; gap:16px; position:relative; z-index:1; }
.account-affiliate-embed .rl-card__logo { flex-shrink:0; }
.account-affiliate-embed .rl-card__header { display:flex; align-items:center; gap:10px; margin-bottom:3px; flex-wrap:wrap; }
.account-affiliate-embed .rl-card__name { font-size:15px; font-weight:900; letter-spacing:.04em; }
.account-affiliate-embed .rl-card__req { font-size:12px; color:var(--text-muted); margin-bottom:8px; }
.account-affiliate-embed .rl-card__perks { display:flex; gap:10px; flex-wrap:wrap; }
.account-affiliate-embed .rl-card__perk { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--text-secondary); background:rgba(0,0,0,.03); padding:4px 10px; border-radius:7px; }
.account-affiliate-embed .rl-card__badge { font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; padding:2px 8px; border-radius:5px; }
.account-affiliate-embed .rl-connector { display:flex; flex-direction:column; align-items:center; height:24px; }
.account-affiliate-embed .rl-connector__line { width:2px; flex:1; background:rgba(0,0,0,.06); }
.account-affiliate-embed .earnings-display { margin-bottom:24px; }
.account-affiliate-embed .earnings-display__amount { font-size:clamp(2rem,6vw,3.2rem); font-weight:900; color:var(--green); letter-spacing:-.04em; line-height:1.05; }
.account-affiliate-embed .earnings-display__meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; color:var(--text-muted); margin:6px 0 14px; }
.account-affiliate-embed .earnings-display__filters { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.account-affiliate-embed .earnings-filters { display:flex; gap:6px; flex-wrap:wrap; }
.account-affiliate-embed .earnings-filter,
.account-affiliate-embed .earnings-month-btn,
.account-affiliate-embed .earnings-month-option { font:inherit; cursor:pointer; }
.account-affiliate-embed .earnings-filter,
.account-affiliate-embed .earnings-month-btn { padding:7px 13px; background:rgba(0,0,0,.03); border:1px solid var(--border); border-radius:8px; font-size:12px; font-weight:800; color:var(--text-muted); }
.account-affiliate-embed .earnings-filter--active,
.account-affiliate-embed .earnings-month-btn--active { background:var(--accent-subtle); border-color:rgba(26,86,219,.35); color:var(--accent); }
.account-affiliate-embed .earnings-month-picker { position:relative; margin-left:auto; }
.account-affiliate-embed .earnings-month-dropdown { display:none; position:absolute; top:calc(100% + 6px); right:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:6px; min-width:160px; max-height:280px; overflow:auto; z-index:10; box-shadow:0 12px 40px rgba(15,23,42,.12); }
.account-affiliate-embed .earnings-month-dropdown--open { display:block; }
.account-affiliate-embed .earnings-month-option { display:block; width:100%; border:0; background:transparent; border-radius:8px; padding:8px 12px; text-align:left; color:var(--text-secondary); }
.account-affiliate-embed .earnings-month-option:hover { background:var(--accent-subtle); }
.account-affiliate-embed .aff-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.account-affiliate-embed .aff-stat { padding:20px; }
.account-affiliate-embed .aff-stat__label { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); margin-bottom:8px; }
.account-affiliate-embed .aff-stat__value { font-size:28px; font-weight:900; letter-spacing:-.03em; }
.account-affiliate-embed .aff-stat__value--amber { color:var(--amber); }
.account-affiliate-embed .aff-stat__value--blue { color:var(--blue); }
.account-affiliate-embed .aff-section { margin-bottom:28px; }
.account-affiliate-embed .aff-section__header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; gap:12px; }
.account-affiliate-embed .aff-section__title { font-size:16px; font-weight:900; color:var(--text); }
.account-affiliate-embed .aff-section__count { font-size:12px; color:var(--text-muted); background:var(--surface); border:1px solid var(--border); padding:3px 10px; border-radius:99px; }
.account-affiliate-embed .aff-code-banner { padding:20px 24px; margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.account-affiliate-embed .aff-code-banner__left { display:flex; align-items:center; gap:16px; }
.account-affiliate-embed .aff-code-banner__icon { width:42px; height:42px; background:var(--accent-subtle); border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--accent); flex-shrink:0; }
.account-affiliate-embed .aff-code-banner__icon svg { width:20px; height:20px; }
.account-affiliate-embed .aff-code-banner__code { font-family:var(--font-mono); font-size:20px; font-weight:900; color:var(--accent); letter-spacing:.08em; }
.account-affiliate-embed .aff-code-banner__desc { font-size:13px; color:var(--text-muted); margin-top:3px; }
.account-affiliate-embed .aff-code-banner__rates { display:flex; gap:12px; }
.account-affiliate-embed .aff-code-banner__rate { text-align:center; padding:8px 14px; background:var(--bg-elevated); border-radius:var(--radius-sm); }
.account-affiliate-embed .aff-code-banner__rate-val { font-size:18px; font-weight:900; }
.account-affiliate-embed .aff-code-banner__rate-val--green { color:var(--green); }
.account-affiliate-embed .aff-code-banner__rate-val--amber { color:var(--amber); }
.account-affiliate-embed .aff-code-banner__rate-label { font-size:11px; font-weight:800; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }
.account-affiliate-embed .aff-reward { display:flex; align-items:center; gap:16px; padding:18px 22px; border-radius:var(--radius); }
.account-affiliate-embed .aff-reward--unlocked { background:linear-gradient(135deg,rgba(52,211,153,.08),rgba(79,143,255,.06)); border:1px solid rgba(52,211,153,.2); }
.account-affiliate-embed .aff-reward__icon { width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.account-affiliate-embed .aff-reward__icon--unlocked { background:var(--green-bg); color:var(--green); }
.account-affiliate-embed .aff-reward__content { flex:1; min-width:0; }
.account-affiliate-embed .aff-reward__label { font-size:11px; font-weight:800; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.account-affiliate-embed .aff-reward__code { font-family:var(--font-mono); font-size:18px; font-weight:900; color:var(--green); letter-spacing:.08em; }
.account-affiliate-embed .aff-reward__hint { font-size:12px; color:var(--text-muted); margin-top:4px; }
.account-affiliate-embed .aff-reward__copy { border:1px solid var(--border); background:transparent; color:var(--text-muted); border-radius:var(--radius-sm); padding:8px; cursor:pointer; }
.account-affiliate-embed .aff-cashout-card { padding:24px; }
.account-affiliate-embed .aff-cashout-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.account-affiliate-embed .aff-cashout-grid .form-field:nth-child(3),
.account-affiliate-embed .aff-cashout-submit { grid-column:1/-1; }
.account-affiliate-embed .aff-cashout-submit .btn { width:100%; min-height:46px; }
.account-affiliate-embed .aff-cashout-submit .btn svg { width:16px; min-width:16px; max-width:16px; height:16px; min-height:16px; max-height:16px; flex:0 0 16px; display:block; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.account-affiliate-embed .aff-cashout-amount-wrap { position:relative; }
.account-affiliate-embed .aff-cashout-dollar { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--text-muted); font-weight:800; pointer-events:none; }
.account-affiliate-embed .aff-cashout-amount { padding-left:28px !important; }
.account-affiliate-embed .aff-cashout-max { font-size:12px; color:var(--text-muted); margin-top:4px; }
.account-affiliate-embed .aff-table-wrap { overflow-x:auto; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface); }
.account-affiliate-embed .aff-table { width:100%; border-collapse:collapse; font-size:13px; }
.account-affiliate-embed .aff-table th { padding:11px 16px; background:var(--bg-elevated); color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; text-align:left; border-bottom:1px solid var(--border); white-space:nowrap; }
.account-affiliate-embed .aff-table td { padding:12px 16px; border-bottom:1px solid var(--border-light); white-space:nowrap; color:var(--text-secondary); }
.account-affiliate-embed .aff-table tbody tr:last-child td { border-bottom:0; }
.account-affiliate-embed .aff-table .val { color:var(--text); font-weight:800; }
.account-affiliate-embed .aff-table .val--green { color:var(--green); }
.account-affiliate-embed .aff-badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:99px; font-size:12px; font-weight:800; text-transform:capitalize; white-space:nowrap; }
.account-affiliate-embed .aff-badge--green { background:var(--green-bg); color:var(--green); }
.account-affiliate-embed .aff-badge--red { background:var(--red-bg); color:var(--red); }
.account-affiliate-embed .aff-badge--amber { background:var(--amber-bg); color:var(--amber); }
.account-affiliate-embed .aff-badge--blue { background:var(--blue-bg); color:var(--blue); }
.account-affiliate-embed .aff-badge--purple { background:var(--purple-bg); color:var(--purple); }
.account-affiliate-embed .aff-badge--muted { background:rgba(0,0,0,.04); color:var(--text-muted); }
.account-affiliate-embed .aff-empty { padding:34px 24px; text-align:center; }
.account-affiliate-embed .aff-empty__text { color:var(--text-secondary); line-height:1.6; }
@media (max-width: 760px) {
  .account-affiliate-embed .aff-program-grid,
  .account-affiliate-embed .aff-resource-grid,
  .account-affiliate-embed .aff-stats,
  .account-affiliate-embed .aff-cashout-grid { grid-template-columns:1fr; }
  .account-affiliate-embed .aff-resource-card--wide { grid-column:auto; }
  .account-affiliate-embed .rank-banner { padding:20px 16px; }
  .account-affiliate-embed .rank-banner__inner { flex-direction:column; align-items:flex-start; gap:14px; }
  .account-affiliate-embed .rank-banner__name { font-size:18px; }
  .account-affiliate-embed .rank-banner__xp-labels { flex-direction:column; }
  .account-affiliate-embed .earnings-display__filters { flex-direction:column; align-items:flex-start; }
  .account-affiliate-embed .earnings-month-picker { margin-left:0; }
  .account-affiliate-embed .aff-code-banner { flex-direction:column; align-items:stretch; }
  .account-affiliate-embed .aff-code-banner__rates { justify-content:center; }
  .account-affiliate-embed .aff-reward { align-items:flex-start; }
  .account-affiliate-inline-application .aff-apply__row { grid-template-columns:1fr !important; }
}


/* Deployment-ready embedded affiliate account polish. */
.account-card--affiliate-embedded {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,251,248,0.94));
  border-color: rgba(18, 26, 22, 0.10);
}

.account-card--affiliate-embedded .account-affiliate-hero--embedded {
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(18, 26, 22, 0.10);
}

.account-card--affiliate-embedded .account-affiliate-hero--embedded h2 {
  font-family: var(--account-font-display);
  font-size: clamp(2rem, 4vw, 3.65rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.account-affiliate-inline-application .aff-login {
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.account-affiliate-inline-application .aff-login__card {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.account-affiliate-inline-application .aff-login__logo,
.account-affiliate-inline-application .aff-login__back,
.account-affiliate-inline-application .aff-login__card > div:has(.aff-login__back) {
  display: none !important;
}

.account-affiliate-inline-application .aff-login__title {
  margin: 0 0 8px !important;
  font-family: "Newsreader", Georgia, serif !important;
  font-size: clamp(2rem, 4vw, 3.35rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
  color: var(--account-ink) !important;
  text-align: left !important;
}

.account-affiliate-inline-application .aff-login__sub {
  max-width: 720px;
  margin: 0 0 22px !important;
  color: var(--account-muted) !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

.account-affiliate-inline-application .aff-program-hub {
  margin: 22px 0 26px !important;
  padding: 22px !important;
  border: 1px solid rgba(18, 26, 22, 0.10) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,0.68) !important;
  box-shadow: none !important;
}

.account-affiliate-inline-application #affApplyForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0 !important;
  padding: 24px;
  border: 1px solid rgba(18, 26, 22, 0.10);
  border-radius: 28px;
  background: rgba(255,255,255,0.86);
}

.account-affiliate-inline-application #affApplyForm > .form-field,
.account-affiliate-inline-application #affApplyForm > .aff-apply__row,
.account-affiliate-inline-application #applyBtn,
.account-affiliate-inline-application #applyError {
  margin: 0 !important;
}

.account-affiliate-inline-application #affApplyForm > .form-field:nth-child(-n+3),
.account-affiliate-inline-application #affApplyForm > .aff-apply__row,
.account-affiliate-inline-application #applyBtn,
.account-affiliate-inline-application #applyError {
  grid-column: 1 / -1;
}

.account-affiliate-inline-application .aff-apply__row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.account-affiliate-inline-application .form-field__label {
  color: rgba(18, 26, 22, 0.72) !important;
  letter-spacing: 0.08em !important;
}

.account-affiliate-inline-application .form-field__input {
  min-height: 50px !important;
  border: 1px solid rgba(18, 26, 22, 0.14) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.95) !important;
  color: var(--account-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85) !important;
}

.account-affiliate-inline-application .form-field__input:focus {
  border-color: rgba(54, 86, 68, 0.42) !important;
  box-shadow: 0 0 0 4px rgba(54, 86, 68, 0.10) !important;
}

.account-affiliate-inline-application .form-field__hint {
  display: block;
  margin-top: 7px;
  color: var(--account-muted) !important;
}

.account-affiliate-inline-application #applyBtn {
  min-height: 54px !important;
  border-radius: 999px !important;
  background: var(--account-ink) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
}

.account-affiliate-dashboard-embed .aff-program-hub {
  margin-top: 22px;
}

@media (max-width: 720px) {
  .account-affiliate-inline-application #affApplyForm,
  .account-affiliate-inline-application .aff-apply__row,
  .account-affiliate-intro__points {
    grid-template-columns: 1fr !important;
  }

  .account-affiliate-intro__button {
    width: 100%;
  }

  .account-affiliate-inline-application #affApplyForm {
    padding: 18px;
    border-radius: 22px;
  }

  .account-affiliate-inline-application .aff-program-hub {
    padding: 18px !important;
    border-radius: 20px !important;
  }
}

/* Account page 2026 redesign layer: open, mobile-first, current Prism storefront match. */
.account-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 79, 67, 0.09), transparent 30%),
    radial-gradient(circle at 94% 4%, rgba(17, 17, 17, 0.055), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f5f0 46%, #ffffff 100%);
}

.account-simple-nav {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(17, 17, 17, 0.09);
}

.account-dashboard--redesign {
  padding-top: clamp(28px, 4vw, 58px);
}

.account-dashboard__hero {
  position: relative;
  min-height: clamp(310px, 38vw, 470px);
  align-items: end;
  overflow: hidden;
  margin-bottom: clamp(26px, 4vw, 42px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 245, 240, 0.68)),
    radial-gradient(circle at 78% 12%, rgba(23, 79, 67, 0.14), transparent 30%),
    radial-gradient(circle at 6% 100%, rgba(17, 17, 17, 0.055), transparent 24%);
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.08);
}

.account-dashboard__hero::before {
  content: '';
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: clamp(20px, 3vw, 34px);
}

.account-dashboard__hero::after {
  content: '';
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(22px, 4vw, 58px);
  z-index: 0;
  width: clamp(120px, 18vw, 260px);
  aspect-ratio: 1;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(23, 79, 67, 0.10), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
}

.account-dashboard__hero-copy,
.account-dashboard__actions {
  position: relative;
  z-index: 1;
}

.account-dashboard__hero h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-family: var(--account-font-display);
  font-size: clamp(68px, 11vw, 142px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.account-dashboard__sub {
  max-width: 600px;
  color: rgba(17, 17, 17, 0.66);
  font-size: clamp(16px, 1.55vw, 19px);
  font-weight: 650;
}

.account-dashboard__actions {
  justify-content: flex-end;
  align-self: start;
}

.account-dashboard__workspace {
  grid-template-columns: minmax(200px, 255px) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 44px);
}

.account-dashboard__sidebar {
  gap: 18px;
}

.account-dashboard__identity {
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.70);
}

.account-dashboard--redesign .account-tabs {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.60);
}

.account-dashboard--redesign .account-tabs__btn {
  min-height: 50px;
  border-color: transparent;
  border-radius: 18px;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.account-dashboard--redesign .account-tabs__btn--active {
  background: #111111;
  border-color: #111111;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.16);
}

.account-overview-redesign {
  gap: clamp(18px, 2.6vw, 28px);
}

.account-overview-strip {
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.account-overview-strip article {
  min-height: 132px;
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.70);
}

.account-overview-strip strong,
.account-dashboard--redesign .account-card h2 {
  font-family: var(--account-font-display);
  font-weight: 700;
}

.account-grid--overview-redesign {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(18px, 2.8vw, 28px);
}

.account-dashboard--redesign .account-card {
  border-color: rgba(17, 17, 17, 0.10);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
}

.account-card--profile-summary {
  min-height: 0;
}

.account-dashboard--redesign .account-order,
.account-dashboard--redesign .account-address,
.account-dashboard--redesign .account-wishlist-item {
  border-color: rgba(17, 17, 17, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.account-auth-intro h1,
.account-body[data-auth-page] .account-card--auth h2 {
  font-family: var(--account-font-display);
  font-weight: 700;
}

.account-body[data-auth-page] #authRoot {
  width: min(900px, calc(100% - 40px));
}

.account-body[data-auth-page] .account-card--auth {
  border-top-color: rgba(17, 17, 17, 0.12);
}

.account-button:focus-visible,
.account-link-button:focus-visible,
.account-simple-link:focus-visible,
.account-modal-close:focus-visible,
.account-dashboard--redesign .account-tabs__btn:focus-visible {
  outline: 2px solid rgba(23, 79, 67, 0.38);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .account-dashboard__hero {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .account-dashboard__actions {
    justify-content: flex-start;
  }

  .account-dashboard__workspace,
  .account-grid--overview-redesign {
    grid-template-columns: 1fr;
  }

  .account-dashboard--redesign .account-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  #accountRoot {
    width: min(100% - 24px, 1220px);
  }

  .account-simple-nav {
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
  }

  .account-nav-links {
    display: none;
  }

  .account-dashboard--redesign {
    padding-top: 18px;
  }

  .account-dashboard__hero {
    padding: 22px;
    border-radius: 30px;
  }

  .account-dashboard__hero::before {
    inset: 10px;
    border-radius: 22px;
  }

  .account-dashboard__hero h1 {
    font-size: clamp(58px, 20vw, 86px);
  }

  .account-dashboard__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .account-dashboard__actions .account-button {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
  }

  .account-dashboard--redesign .account-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-overview-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-overview-strip article {
    min-height: 100px;
  }

  .account-dashboard--redesign .account-card {
    padding: 22px;
    border-radius: 24px;
  }

  .account-dashboard--redesign .account-card h2 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .account-dl--two-col {
    grid-template-columns: 1fr;
  }

  .account-body[data-auth-page] #authRoot {
    width: min(100% - 28px, 620px);
  }
}


/* Chairman requested account redesign: premium open customer account surface. */
.account-dashboard__hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.account-dashboard__hero-pills span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(17, 17, 17, 0.70);
  font-size: 13px;
  font-weight: 850;
  padding: 0 14px;
}

.account-dashboard--redesign {
  --account-hairline: rgba(17, 17, 17, 0.095);
  --account-glass: rgba(255, 255, 255, 0.64);
}

.account-dashboard__hero {
  min-height: clamp(360px, 42vw, 540px);
  align-items: end;
  border: 1px solid var(--account-hairline);
  border-radius: clamp(30px, 4vw, 46px);
  background:
    radial-gradient(circle at 84% 16%, rgba(23, 79, 67, 0.13), transparent 28%),
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(247, 247, 243, 0.58));
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 26px 90px rgba(17, 17, 17, 0.075);
}

.account-dashboard__hero::before {
  opacity: 0.62;
}

.account-dashboard__hero h1 {
  max-width: 760px;
  font-size: clamp(76px, 12vw, 160px);
  letter-spacing: -0.085em;
}

.account-dashboard__sub {
  max-width: 690px;
}

.account-dashboard__actions {
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(14px);
}

.account-dashboard__actions .account-button {
  min-height: 44px;
  box-shadow: none;
}

.account-dashboard__workspace {
  margin-top: clamp(24px, 4vw, 42px);
}

.account-dashboard__identity,
.account-dashboard--redesign .account-tabs,
.account-overview-strip article,
.account-dashboard--redesign .account-card {
  background: var(--account-glass);
  box-shadow: 0 18px 60px rgba(17, 17, 17, 0.045);
}

.account-dashboard__identity {
  position: relative;
  overflow: hidden;
}

.account-dashboard__identity::before {
  content: '';
  width: 36px;
  height: 36px;
  display: block;
  margin-bottom: 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #174f43 0 5px, transparent 6px),
    radial-gradient(circle at 50% 110%, rgba(23, 79, 67, 0.22) 0 15px, transparent 16px),
    #ffffff;
}

.account-dashboard--redesign .account-tabs__btn {
  letter-spacing: -0.01em;
}

.account-dashboard--redesign .account-panel {
  padding-top: 0;
}

.account-overview-strip article,
.account-dashboard--redesign .account-card,
.account-dashboard--redesign .account-order {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.account-overview-strip article:hover,
.account-dashboard--redesign .account-card:hover,
.account-dashboard--redesign .account-order:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.account-body[data-auth-page] {
  background:
    radial-gradient(circle at 88% 8%, rgba(23, 79, 67, 0.10), transparent 28%),
    radial-gradient(circle at 12% 0%, rgba(17, 17, 17, 0.045), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f3 54%, #ffffff 100%);
}

.account-body[data-auth-page] #authRoot {
  width: min(940px, calc(100% - 40px));
  padding-top: clamp(50px, 8vw, 96px);
}

.account-auth-page {
  max-width: 900px;
}

.account-auth-intro h1 {
  max-width: 840px;
  font-size: clamp(52px, 8.5vw, 88px);
}

.account-body[data-auth-page] .account-card--auth {
  width: min(560px, 100%);
  max-width: 560px;
  padding-top: 26px;
}

@media (max-width: 980px) {
  .account-dashboard__hero {
    min-height: 0;
  }

  .account-dashboard__actions {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .account-dashboard__hero {
    padding: 24px;
  }

  .account-dashboard__hero h1 {
    font-size: clamp(64px, 21vw, 94px);
  }

  .account-dashboard__hero-pills {
    margin-top: 20px;
  }

  .account-dashboard__hero-pills span {
    min-height: 34px;
    font-size: 12px;
  }

  .account-dashboard__actions {
    width: 100%;
    border-radius: 24px;
  }

  .account-body[data-auth-page] #authRoot {
    width: min(100% - 28px, 620px);
    padding-top: 30px;
  }
}


/* Isaac correction: account dashboard should be simple, open, and useful — not card-everywhere. */
.account-dashboard--redesign .account-dashboard__hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: clamp(34px, 6vw, 78px) 0 clamp(26px, 4vw, 44px);
}

.account-dashboard--redesign .account-dashboard__hero::before,
.account-dashboard--redesign .account-dashboard__hero::after {
  display: none;
}

.account-dashboard--redesign .account-dashboard__hero h1 {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: clamp(64px, 10vw, 124px);
}

.account-dashboard--redesign .account-dashboard__sub {
  max-width: 520px;
  color: rgba(17, 17, 17, 0.68);
}

.account-dashboard__hero-pills {
  gap: 8px;
  margin-top: 18px;
}

.account-dashboard__hero-pills span {
  min-height: 30px;
  border-color: rgba(17, 17, 17, 0.14);
  background: transparent;
  color: rgba(17, 17, 17, 0.64);
  font-size: 12px;
  padding: 0 11px;
}

.account-dashboard--redesign .account-dashboard__actions {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.account-dashboard--redesign .account-dashboard__workspace {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(28px, 5vw, 58px);
}

.account-dashboard--redesign .account-dashboard__identity {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-dashboard--redesign .account-dashboard__identity::before {
  display: none;
}

.account-dashboard--redesign .account-tabs {
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-dashboard--redesign .account-tabs__btn {
  justify-content: flex-start;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(17, 17, 17, 0.54);
  padding: 0;
}

.account-dashboard--redesign .account-tabs__btn--active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #111111;
}

.account-dashboard--redesign .account-tabs__btn--active::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 999px;
  background: #174f43;
}

.account-overview-redesign {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
}

.account-overview-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.45fr) minmax(0, 0.75fr);
  gap: clamp(18px, 3vw, 34px);
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.10);
}

.account-overview-summary div {
  min-width: 0;
}

.account-overview-summary span,
.account-latest-order span {
  display: block;
  margin-bottom: 8px;
  color: rgba(17, 17, 17, 0.46);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-overview-summary strong,
.account-latest-order strong {
  display: block;
  overflow-wrap: anywhere;
  color: #111111;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.account-next-actions {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.10);
}

.account-quick-link {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.account-quick-link::after {
  content: '→';
  color: rgba(17, 17, 17, 0.42);
  font-weight: 700;
}

.account-quick-link:hover,
.account-quick-link:focus-visible {
  color: #174f43;
}

.account-latest-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 720px;
  padding: 20px 0 0;
  border: 0;
  background: transparent;
}

.account-latest-order small {
  display: block;
  margin-top: 6px;
  color: rgba(17, 17, 17, 0.54);
  font-size: 13px;
  font-weight: 750;
}

.account-dashboard--redesign .account-overview-strip,
.account-dashboard--redesign .account-grid--overview-redesign,
.account-dashboard--redesign .account-card--profile-summary,
.account-dashboard--redesign .account-card--orders-summary {
  display: none;
}

.account-dashboard--redesign .account-card:not(.account-card--affiliate):not(.account-card--auth) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-inline: 0;
}

.account-dashboard--redesign .account-card:hover,
.account-dashboard--redesign .account-order:hover,
.account-dashboard--redesign .account-overview-strip article:hover {
  transform: none;
}

@media (max-width: 980px) {
  .account-dashboard--redesign .account-dashboard__hero,
  .account-dashboard--redesign .account-dashboard__workspace,
  .account-overview-summary {
    grid-template-columns: 1fr;
  }

  .account-dashboard--redesign .account-dashboard__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .account-dashboard--redesign .account-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .account-dashboard--redesign .account-tabs__btn {
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 999px;
  }

  .account-dashboard--redesign .account-tabs__btn--active {
    border-color: #111111;
  }

  .account-dashboard--redesign .account-tabs__btn--active::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .account-dashboard--redesign .account-dashboard__hero {
    padding: 26px 0 24px;
  }

  .account-dashboard--redesign .account-dashboard__hero h1 {
    font-size: clamp(58px, 18vw, 82px);
  }

  .account-dashboard--redesign .account-dashboard__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .account-overview-summary {
    gap: 18px;
  }

  .account-quick-link {
    min-height: 54px;
    font-size: 18px;
  }
}


/* Isaac refinement: clearer navigation and stronger visual hierarchy without card-everywhere layout. */
.account-dashboard--redesign {
  max-width: 1180px;
  margin: 0 auto;
}

.account-dashboard--redesign .account-dashboard__hero {
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(22px, 3vw, 34px);
  align-items: start;
}

.account-dashboard--redesign .account-dashboard__hero-copy {
  display: grid;
  gap: 10px;
}

.account-dashboard--redesign .account-eyebrow {
  color: #174f43;
  letter-spacing: 0.16em;
}

.account-dashboard--redesign .account-dashboard__hero h1 {
  margin: 0;
  font-size: clamp(76px, 10vw, 132px);
  line-height: 0.78;
}

.account-dashboard--redesign .account-dashboard__sub {
  max-width: 500px;
  color: rgba(17, 17, 17, 0.72);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.45;
}

.account-dashboard--redesign .account-dashboard__hero-pills {
  display: none;
}

.account-dashboard--redesign .account-dashboard__actions {
  gap: 10px;
}

.account-dashboard--redesign .account-dashboard__actions .account-button:first-child {
  border-color: rgba(17, 17, 17, 0.14);
  background: #ffffff;
  color: #111111;
}

.account-dashboard--redesign .account-dashboard__actions .account-button:last-child {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.account-dashboard--redesign .account-dashboard__workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 34px);
  margin-top: 0;
}

.account-dashboard--redesign .account-dashboard__sidebar {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: end;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(18px, 3vw, 28px) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.10);
}

.account-dashboard--redesign .account-dashboard__identity {
  padding: 0;
  border-bottom: 0;
}

.account-dashboard--redesign .account-dashboard__identity strong,
.account-dashboard--redesign .account-overview-summary span,
.account-dashboard--redesign .account-latest-order span {
  color: rgba(17, 17, 17, 0.45);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-dashboard--redesign .account-dashboard__identity span {
  max-width: 100%;
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: #111111;
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.account-dashboard--redesign .account-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-dashboard--redesign .account-tabs__btn {
  min-height: 46px;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  color: rgba(17, 17, 17, 0.62);
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
}

.account-dashboard--redesign .account-tabs__btn--active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.account-dashboard--redesign .account-tabs__btn--active::before {
  display: none;
}

.account-dashboard--redesign .account-dashboard__main {
  max-width: none;
}

.account-overview-redesign {
  gap: clamp(24px, 3.5vw, 38px);
}

.account-overview-summary {
  grid-template-columns: minmax(0, 1.2fr) minmax(90px, 0.35fr) minmax(0, 0.75fr);
  align-items: end;
  gap: clamp(18px, 4vw, 54px);
  padding: clamp(10px, 2vw, 18px) 0 clamp(24px, 3vw, 34px);
}

.account-overview-summary strong {
  margin-top: 6px;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -0.055em;
}

.account-next-actions {
  border-top: 0;
}

.account-quick-link {
  min-height: clamp(62px, 6vw, 76px);
  border-top: 1px solid rgba(17, 17, 17, 0.10);
  border-bottom: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  transition: color 160ms ease, padding-left 160ms ease, background 160ms ease;
}

.account-quick-link:last-child {
  border-bottom: 1px solid rgba(17, 17, 17, 0.10);
}

.account-quick-link:hover,
.account-quick-link:focus-visible {
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(23, 79, 67, 0.045), transparent 45%);
}

.account-quick-link::after {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  color: #174f43;
  font-size: 15px;
}

.account-latest-order {
  max-width: none;
  min-height: 96px;
  align-items: center;
  padding: clamp(20px, 3vw, 28px) 0 0;
}

.account-latest-order strong {
  margin-top: 4px;
  font-size: clamp(24px, 3.6vw, 42px);
}

.account-latest-order .account-link-button {
  min-height: 44px;
  border-radius: 999px;
  border-color: rgba(17, 17, 17, 0.14);
  background: #ffffff;
  color: #111111;
  font-weight: 900;
}

@media (max-width: 760px) {
  .account-dashboard--redesign .account-dashboard__hero {
    gap: 22px;
  }

  .account-dashboard--redesign .account-dashboard__actions {
    grid-template-columns: 1fr 1fr;
  }

  .account-dashboard--redesign .account-dashboard__sidebar,
  .account-overview-summary {
    grid-template-columns: 1fr;
  }

  .account-dashboard--redesign .account-tabs {
    position: sticky;
    top: 62px;
    z-index: 4;
    grid-template-columns: repeat(4, max-content);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 0;
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(16px);
  }

  .account-dashboard--redesign .account-tabs::-webkit-scrollbar {
    display: none;
  }

  .account-dashboard--redesign .account-tabs__btn {
    min-width: 96px;
  }

  .account-overview-summary strong,
  .account-latest-order strong {
    font-size: clamp(24px, 8vw, 34px);
  }

  .account-quick-link {
    min-height: 60px;
    font-size: 19px;
  }

  .account-latest-order {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Reference account dashboard: minimal Prism editorial account hub. */
.account-body:not([data-auth-page]) {
  background: #f7f7f6 !important;
  color: #0b0b0b;
}

.account-body:not([data-auth-page]) .account-shell {
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.account-simple-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 92px !important;
  display: grid !important;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr) !important;
  align-items: center !important;
  gap: 28px !important;
  padding: 0 clamp(28px, 5vw, 76px) !important;
  background: rgba(247, 247, 246, 0.96) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}

.account-brand--wordmark {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: fit-content;
  color: #000 !important;
  font-family: var(--account-font-display);
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.account-brand--wordmark svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.account-nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(30px, 4vw, 54px) !important;
}

.account-simple-link {
  min-height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: rgba(0, 0, 0, 0.72) !important;
  font-family: var(--account-font-body);
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.17em !important;
  text-transform: uppercase;
}

.account-simple-link:hover {
  color: #000 !important;
  background: transparent !important;
}

.account-nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 30px;
}

.account-nav-icon {
  position: relative;
  width: 28px !important;
  height: 28px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.account-nav-icon:hover {
  transform: none !important;
  color: rgba(0, 0, 0, 0.62) !important;
}

.account-nav-icon svg {
  width: 27px !important;
  height: 27px !important;
}

.account-nav-dot {
  position: absolute;
  top: -2px;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b31317;
}

#accountRoot {
  width: min(1440px, calc(100% - 160px)) !important;
  margin: 0 auto !important;
  flex: 1 0 auto;
}

.account-body:not([data-auth-page]) #accountRoot {
  display: block !important;
  place-items: normal !important;
  min-height: auto !important;
  padding: 0 !important;
}

.account-dashboard--redesign {
  max-width: none !important;
  padding-top: 0 !important;
  margin: clamp(96px, 11vh, 126px) auto clamp(90px, 11vh, 126px) !important;
}

.account-dashboard--redesign .account-dashboard__workspace {
  display: grid !important;
  grid-template-columns: 292px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  margin: 0 !important;
}

.account-dashboard--redesign .account-dashboard__sidebar {
  position: sticky;
  top: 124px;
  min-height: 520px;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.account-dashboard--redesign .account-tabs {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.account-dashboard--redesign .account-tabs__btn {
  width: 100% !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #171717 !important;
  box-shadow: none !important;
  font-family: var(--account-font-body);
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

.account-dashboard--redesign .account-tabs__btn svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.account-dashboard--redesign .account-tabs__btn--active {
  background: #1a1a1a !important;
  color: #fff !important;
}

.account-dashboard--redesign .account-tabs__btn--active::before {
  display: none !important;
}

.account-dashboard--redesign .account-tabs__btn:hover {
  background: rgba(0, 0, 0, 0.055) !important;
  color: #000 !important;
}

.account-dashboard--redesign .account-tabs__btn--active:hover {
  background: #1a1a1a !important;
  color: #fff !important;
}

.account-dashboard--redesign .account-tabs__btn--logout {
  margin-top: auto;
}

.account-dashboard--redesign .account-dashboard__main {
  min-width: 0;
  max-width: none !important;
}

.account-dashboard--redesign .account-panel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.account-overview-redesign {
  display: grid !important;
  gap: clamp(52px, 6vw, 78px) !important;
}

.account-welcome-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-welcome-card h1 {
  margin: 0 0 12px;
  color: #000;
  font-family: var(--account-font-display);
  font-size: clamp(44px, 4.8vw, 66px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.account-welcome-card p {
  margin: 0;
  color: rgba(0, 0, 0, 0.68);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
}

.account-button.account-button--catalog {
  min-height: 50px;
  padding: 0 34px;
  border: 1px solid #000 !important;
  border-radius: 999px !important;
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-button.account-button--catalog:hover {
  transform: none !important;
  background: #1f1f1f !important;
  border-color: #1f1f1f !important;
}

.account-recent-orders {
  display: grid;
  gap: 28px;
}

.account-section-heading {
  border-bottom: 1px solid rgba(0, 0, 0, 0.20);
  padding-bottom: 12px;
}

.account-section-heading h2,
.account-dashboard--redesign .account-card h2 {
  margin: 0;
  color: #000;
  font-family: var(--account-font-display);
  font-size: clamp(31px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

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

.account-order-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 8px;
  background: #fff;
}

.account-order-card:first-child::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 67%;
  height: 4px;
  background: #000;
}

.account-order-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.account-order-card__meta > span,
.account-order__main > span {
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: #ececec;
  color: rgba(0, 0, 0, 0.70);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.account-order-card h3 {
  margin: 0 0 auto;
  color: #000;
  font-family: var(--account-font-display);
  font-size: clamp(28px, 2.8vw, 35px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.account-order-card p {
  margin: 28px 0 8px;
  color: rgba(0, 0, 0, 0.66);
  font-size: 16px;
  font-weight: 400;
}

.account-order-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-order-card__footer strong {
  color: #000;
  font-size: 18px;
  font-weight: 700;
}

.account-order-card__arrow {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.56);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
}

.account-order-card__arrow:hover {
  color: #000;
}

.account-text-action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.account-text-action span {
  font-size: 27px;
  line-height: 0;
}

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

.account-resource-card {
  min-height: 194px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
  border-radius: 8px;
  background: #f0f0f0;
}

.account-resource-card__icon {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #000;
}

.account-resource-card__icon svg {
  width: 28px;
  height: 28px;
}

.account-resource-card h3 {
  margin: 0 0 8px;
  color: #000;
  font-family: var(--account-font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.account-resource-card p {
  max-width: 340px;
  margin: 0 0 22px;
  color: rgba(0, 0, 0, 0.64);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.account-resource-card a {
  color: #000 !important;
  font-size: 16px;
  font-weight: 500 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-card--orders,
.account-dashboard--redesign .account-card:not(.account-card--affiliate):not(.account-card--auth) {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.account-card__heading-row {
  margin-bottom: 28px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.20);
}

.account-card__heading-row .account-eyebrow {
  display: none;
}

.account-card__heading-row .account-muted {
  margin: 10px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 16px;
  font-weight: 400;
}

.account-orders {
  gap: 18px !important;
  margin-top: 0 !important;
}

.account-dashboard--redesign .account-order {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 24px !important;
  padding: 24px 26px !important;
  border: 1px solid rgba(0, 0, 0, 0.20) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.account-order__main {
  display: grid;
  gap: 8px;
}

.account-order__main strong {
  color: #000;
  font-family: var(--account-font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
}

.account-order__main small {
  color: rgba(0, 0, 0, 0.62);
  font-size: 15px;
}

.account-order__side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.account-order__side strong {
  color: #000;
  font-size: 17px;
}

.account-dashboard--redesign .account-link-button {
  min-height: 42px;
  border-color: #000;
  background: #000;
  color: #fff !important;
  box-shadow: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-dashboard--redesign .account-link-button:hover {
  transform: none;
  background: #1f1f1f;
  border-color: #1f1f1f;
}

.account-empty-state {
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff;
}

.account-empty-state p {
  margin: 0 0 12px;
  color: rgba(0, 0, 0, 0.64);
}

.account-empty-state a {
  color: #000 !important;
  font-weight: 600;
  text-decoration: underline;
}

.account-footer {
  min-height: 126px;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 0 clamp(28px, 5vw, 76px);
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  background: #f0f0f0;
}

.account-footer__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.account-footer a,
.account-footer p {
  color: rgba(0, 0, 0, 0.68);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}

.account-footer a:hover {
  color: #000;
}

.account-footer p {
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .account-simple-nav {
    grid-template-columns: 1fr auto !important;
    height: auto !important;
    min-height: 82px;
    padding: 14px 22px !important;
  }

  .account-nav-links {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: flex-start !important;
    gap: 20px !important;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  #accountRoot {
    width: min(100% - 32px, 760px) !important;
  }

  .account-dashboard--redesign {
    margin-top: 42px !important;
  }

  .account-dashboard--redesign .account-dashboard__workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .account-dashboard--redesign .account-dashboard__sidebar {
    position: static;
    min-height: 0;
  }

  .account-dashboard--redesign .account-tabs {
    flex-direction: row !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
  }

  .account-dashboard--redesign .account-tabs__btn {
    min-width: max-content !important;
    width: auto !important;
  }

  .account-dashboard--redesign .account-tabs__btn--logout {
    margin-top: 8px;
  }

  .account-welcome-card,
  .account-order-card-grid,
  .account-resource-grid,
  .account-footer {
    grid-template-columns: 1fr;
  }

  .account-footer {
    padding: 28px 22px;
  }

  .account-footer__links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (max-width: 620px) {
  .account-brand--wordmark {
    font-size: 22px !important;
    gap: 9px !important;
  }

  .account-brand--wordmark svg {
    width: 22px;
    height: 22px;
  }

  .account-nav-actions {
    gap: 18px;
  }

  .account-welcome-card {
    padding: 0;
  }

  .account-welcome-card h1 {
    font-size: 32px;
    line-height: 1.02;
    white-space: normal;
  }

  .account-welcome-card p {
    font-size: 17px;
  }

  .account-button.account-button--catalog {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .account-order-card {
    padding: 24px;
  }

  .account-order-card__meta,
  .account-order-card__footer {
    align-items: flex-start;
  }

  .account-order-card__meta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  .account-order-card__footer {
    gap: 12px;
  }

  .account-order-card h3 {
    font-size: 28px;
  }

  .account-dashboard--redesign .account-order {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .account-order__side {
    justify-items: start;
  }

  .account-resource-card {
    grid-template-columns: 1fr;
  }
}

/* Keep Prism's original account-page header around the redesigned dashboard body. */
.account-simple-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  height: 60px !important;
  min-height: 60px !important;
  display: grid !important;
  grid-template-columns: minmax(160px, 1fr) auto minmax(48px, 1fr) !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 0 28px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.10) !important;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04) !important;
  backdrop-filter: blur(18px);
}

.account-brand--image {
  width: fit-content !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.account-brand--image img {
  display: block !important;
  width: auto !important;
  height: 40px !important;
  object-fit: contain !important;
}

.account-nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(18px, 3vw, 34px) !important;
}

.account-simple-link {
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: rgba(17, 17, 17, 0.72) !important;
  font-size: 0.83rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.account-simple-link:hover {
  color: #111111 !important;
  background: transparent !important;
}

.account-nav-icon {
  justify-self: end !important;
  width: 42px !important;
  height: 42px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid rgba(17, 17, 17, 0.14) !important;
  border-radius: 999px !important;
  color: #111111 !important;
  background: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.06) !important;
  transition: transform 0.16s ease, border-color 0.16s ease !important;
}

.account-nav-icon:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(17, 17, 17, 0.28) !important;
}

.account-nav-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.account-body .site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  background: rgba(6, 12, 24, 0.94);
  color: rgba(255, 255, 255, 0.5);
  padding: 32px;
}

.account-body .site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.account-body .site-footer__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-body .site-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-body .site-footer__logo-icon {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.5);
}

.account-body .site-footer__logo-icon svg {
  width: 100%;
  height: 100%;
}

.account-body .site-footer__logo-text {
  color: #ffffff;
  font-family: var(--account-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.account-body .site-footer__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-body .site-footer__link {
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}

.account-body .site-footer__link:hover,
.account-body .site-footer__link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.account-body .site-footer__disclaimer {
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-body .site-footer__disclaimer-title {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.account-body .site-footer__disclaimer p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
  line-height: 1.7;
}

.account-body .site-footer__disclaimer p:last-child {
  margin-bottom: 0;
}

.account-body .site-footer__disclaimer-caps {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.01em;
}

.account-body .site-footer__bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-body .site-footer__copy {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.65rem;
}

@media (max-width: 760px) {
  .account-simple-nav {
    grid-template-columns: 1fr auto !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px !important;
  }

  .account-brand--image {
    height: 38px !important;
  }

  .account-brand--image img {
    height: 36px !important;
  }

  .account-nav-links {
    display: none !important;
  }

  .account-nav-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .account-body .site-footer {
    padding: 24px 16px;
  }

  .account-body .site-footer__top-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-body .site-footer__nav {
    align-items: stretch;
    width: 100%;
  }

  .account-body .site-footer__link {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Account dashboard density pass: less zoomed, more operational. */
.account-body:not([data-auth-page]) #accountRoot {
  width: min(1280px, calc(100% - 160px)) !important;
}

.account-dashboard--redesign {
  margin: clamp(64px, 8vh, 92px) auto clamp(64px, 8vh, 92px) !important;
}

.account-dashboard--redesign .account-dashboard__workspace {
  grid-template-columns: 244px minmax(0, 1fr) !important;
  gap: 24px !important;
}

.account-dashboard--redesign .account-dashboard__sidebar {
  min-height: 440px;
  top: 96px;
}

.account-dashboard--redesign .account-tabs {
  gap: 10px !important;
}

.account-dashboard--redesign .account-tabs__btn {
  min-height: 46px !important;
  gap: 12px !important;
  padding: 0 18px !important;
  font-size: 14px !important;
}

.account-dashboard--redesign .account-tabs__btn svg {
  width: 20px;
  height: 20px;
}

.account-overview-redesign {
  gap: clamp(38px, 4.5vw, 54px) !important;
}

.account-welcome-card {
  min-height: 106px;
  gap: 24px;
}

.account-welcome-card h1 {
  margin-bottom: 8px;
  font-size: clamp(40px, 4vw, 54px);
}

.account-welcome-card p {
  font-size: 17px;
}

.account-button.account-button--catalog {
  min-height: 42px;
  padding: 0 26px;
  font-size: 13px;
  letter-spacing: 0.10em;
}

.account-recent-orders {
  gap: 22px;
}

.account-section-heading {
  padding-bottom: 10px;
}

.account-section-heading h2,
.account-dashboard--redesign .account-card h2 {
  font-size: clamp(27px, 2.5vw, 31px);
}

.account-order-card-grid,
.account-resource-grid {
  gap: 22px;
}

.account-order-card {
  min-height: 178px;
  padding: 22px;
}

.account-order-card__meta {
  margin-bottom: 20px;
}

.account-order-card__meta > span,
.account-order__main > span {
  font-size: 11px;
}

.account-order-status {
  min-height: 26px;
  padding: 0 11px;
  font-size: 11px;
}

.account-order-card h3 {
  font-size: clamp(25px, 2.3vw, 30px);
}

.account-order-card p {
  margin: 22px 0 6px;
  font-size: 14px;
}

.account-order-card__footer strong {
  font-size: 16px;
}

.account-order-card__arrow {
  width: 34px;
  height: 34px;
  font-size: 30px;
}

.account-text-action {
  font-size: 13px;
  letter-spacing: 0.14em;
}

.account-resource-card {
  min-height: 152px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}

.account-resource-card__icon {
  width: 52px;
  height: 52px;
}

.account-resource-card__icon svg {
  width: 23px;
  height: 23px;
}

.account-resource-card h3 {
  font-size: 23px;
}

.account-resource-card p {
  margin-bottom: 16px;
  font-size: 15px;
}

.account-resource-card a {
  font-size: 14px;
}

.account-dashboard--redesign .account-order {
  gap: 18px !important;
  padding: 20px 22px !important;
}

.account-order__main strong {
  font-size: 23px;
}

@media (max-width: 980px) {
  .account-body:not([data-auth-page]) #accountRoot {
    width: min(100% - 32px, 760px) !important;
  }

  .account-dashboard--redesign {
    margin-top: 34px !important;
  }

  .account-dashboard--redesign .account-dashboard__workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .account-dashboard--redesign .account-dashboard__sidebar {
    top: auto !important;
    min-height: 0 !important;
  }

  .account-dashboard--redesign .account-tabs {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .account-dashboard--redesign .account-tabs__btn {
    min-width: 0 !important;
  }
}

@media (max-width: 620px) {
  .account-dashboard--redesign {
    margin-top: 32px !important;
  }

  .account-overview-redesign {
    gap: 36px !important;
  }

  .account-welcome-card h1 {
    font-size: 28px;
  }

  .account-welcome-card p {
    font-size: 15px;
  }

  .account-button.account-button--catalog {
    min-height: 40px;
    font-size: 11px;
  }

  .account-order-card {
    min-height: 0;
    padding: 22px;
  }

  .account-order-card h3 {
    font-size: 25px;
  }

  .account-resource-card {
    min-height: 0;
    padding: 22px;
  }
}

/* Keep WebKit text fill synced with button color so dark buttons stay readable. */
.account-body .account-button,
.account-body .account-link-button,
.account-body .account-button *,
.account-body .account-link-button * {
  -webkit-text-fill-color: currentColor !important;
}

.account-dashboard--redesign .account-link-button,
.account-dashboard--redesign .account-link-button:hover,
.account-dashboard--redesign .account-link-button:focus-visible {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Affiliate tab program landing, scoped to the account dashboard. */
.account-affiliate-shell {
  width: 100%;
}

.account-affiliate-shell--program {
  padding: 0;
}

.account-affiliate-reference {
  --affiliate-ink: #050505;
  --affiliate-muted: #4f4f4f;
  --affiliate-line: #c7c7c7;
  --affiliate-accent: #008f61;
  color: var(--affiliate-ink);
  font-family: var(--account-font-body);
}

.account-affiliate-reference__hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 40px;
  text-align: center;
}

.account-affiliate-reference__pill {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #c8f2dc;
  color: var(--affiliate-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.account-affiliate-reference h1 {
  max-width: 620px;
  margin: 19px auto 14px;
  color: #000;
  font-family: var(--account-font-display);
  font-size: 46px;
  line-height: 0.97;
  font-weight: 700;
  letter-spacing: 0;
}

.account-affiliate-reference__hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--affiliate-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.account-affiliate-reference__primary {
  min-width: 232px;
  min-height: 42px;
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font: 900 11px/1 var(--account-font-body);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.account-affiliate-reference__primary:hover,
.account-affiliate-reference__primary:focus-visible {
  background: #1b1b1b;
  border-color: #1b1b1b;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  outline: none;
  transform: translateY(-1px);
}

.account-affiliate-reference__benefits {
  max-width: 720px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 46px;
  row-gap: 30px;
}

.account-affiliate-reference__benefits article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.account-affiliate-reference__benefits article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
}

.account-affiliate-reference__benefits img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  filter: saturate(1.04) drop-shadow(0 5px 9px rgba(16, 24, 40, 0.10));
}

.account-affiliate-reference__benefits h2,
.account-affiliate-reference__cta h2 {
  color: #000;
  font-family: var(--account-font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.account-affiliate-reference__benefits h2 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1;
}

.account-affiliate-reference__benefits p {
  margin: 0;
  color: var(--affiliate-muted);
  font-size: 11.5px;
  line-height: 1.55;
  font-weight: 500;
}

.account-affiliate-reference__cta {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 26px;
  border: 1px solid var(--affiliate-line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.account-affiliate-reference__cta h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1;
}

.account-affiliate-reference__cta p {
  max-width: 460px;
  margin: 0 auto;
  color: var(--affiliate-muted);
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 500;
}

.account-affiliate-reference__primary--small {
  min-width: 198px;
  min-height: 40px;
  margin-top: 26px;
  font-size: 10.5px;
  box-shadow: none;
}

.account-affiliate-reference__cta small {
  display: block;
  margin-top: 10px;
  color: #6c6c6c;
  font-size: 10.5px;
  font-weight: 500;
}

@media (max-width: 980px) {
  .account-affiliate-reference h1 {
    font-size: 38px;
  }

  .account-affiliate-reference__benefits {
    column-gap: 30px;
  }
}

@media (max-width: 620px) {
  .account-affiliate-reference__hero {
    padding: 0 0 32px;
  }

  .account-affiliate-reference h1 {
    margin-top: 18px;
    font-size: 29px;
  }

  .account-affiliate-reference__hero p {
    font-size: 13px;
  }

  .account-affiliate-reference__primary {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin-top: 24px;
    font-size: 11px;
  }

  .account-affiliate-reference__benefits {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }

  .account-affiliate-reference__benefits article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }

  .account-affiliate-reference__benefits article > span {
    width: 42px;
    height: 42px;
  }

  .account-affiliate-reference__benefits img {
    width: 42px;
    height: 42px;
  }

  .account-affiliate-reference__benefits h2 {
    font-size: 19px;
  }

  .account-affiliate-reference__benefits p {
    font-size: 12.5px;
  }

  .account-affiliate-reference__cta {
    padding: 28px 18px;
  }

  .account-affiliate-reference__cta h2 {
    font-size: 27px;
  }
}

/* Affiliate partner dashboard inside the account page. */
.account-dashboard--affiliate-focus {
  width: min(1540px, calc(100vw - 48px));
  margin: clamp(36px, 6vh, 64px) 0 clamp(72px, 8vh, 96px) 50% !important;
  transform: translateX(-50%);
}

.account-dashboard--affiliate-focus .account-dashboard__workspace {
  display: block !important;
  margin: 0 !important;
}

.account-dashboard--affiliate-focus > .account-dashboard__workspace > .account-dashboard__sidebar {
  display: none !important;
}

.account-dashboard--affiliate-focus .account-dashboard__main {
  max-width: none !important;
}

.account-dashboard--affiliate-focus .account-alert:not([hidden]) {
  margin: 0 0 18px;
}

.account-panel--affiliate-dashboard {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.partner-dashboard {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 840px;
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
}

.partner-dashboard * {
  box-sizing: border-box;
}

.partner-dashboard__rail {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px 28px 28px;
  background: #f4f4f4;
  border-right: 1px solid rgba(17, 17, 17, 0.08);
}

.partner-dashboard__brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 64px;
  text-align: center;
}

.partner-dashboard__logo {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 2px solid #111111;
  border-radius: 999px;
  background: #101417;
  overflow: hidden;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.08);
}

.partner-dashboard__logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.partner-dashboard__brand h2 {
  margin: 0;
  color: #000000;
  font-family: var(--account-font-display);
  font-size: 33px;
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: 0;
}

.partner-dashboard__brand p {
  margin: 0;
  color: #3f3f3f;
  font-size: 15px;
  font-weight: 500;
}

.partner-dashboard__nav {
  display: grid;
  gap: 16px;
}

.partner-dashboard__nav a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  color: #222222;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.partner-dashboard__nav a.is-active,
.partner-dashboard__nav a:hover {
  background: #dedcdc;
}

.partner-dashboard__nav svg,
.partner-metric__icon svg,
.partner-referral__copy svg {
  width: 24px;
  height: 24px;
  display: block;
}

.partner-dashboard__payout {
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid #000000;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  font: 800 15px/1 var(--account-font-body);
  cursor: pointer;
}

.partner-dashboard__payout:hover {
  background: #232323;
}

.partner-dashboard__payout--rail {
  width: 100%;
  margin-top: auto;
}

.partner-dashboard__main {
  min-width: 0;
  padding: 56px 70px 68px;
}

.partner-dashboard__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  margin-bottom: 60px;
}

.partner-dashboard__header h1 {
  margin: 0 0 12px;
  color: #000000;
  font-family: var(--account-font-display);
  font-size: 64px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0;
}

.partner-dashboard__header p,
.partner-card p,
.partner-dashboard__heading-row p {
  margin: 0;
  color: #4d4d4d;
  font-size: 17px;
  line-height: 1.45;
}

.partner-dashboard__section {
  margin-bottom: 56px;
}

.partner-dashboard__section > h2,
.partner-card__label {
  margin: 0 0 12px;
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.partner-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.partner-metric,
.partner-card {
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #ffffff;
}

.partner-metric {
  min-height: 194px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 30px 32px;
}

.partner-metric__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #444444;
  font-size: 16px;
  font-weight: 500;
}

.partner-metric__icon {
  color: #a5a5a5;
}

.partner-metric strong {
  color: #000000;
  font-family: var(--account-font-display);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.partner-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 30px;
  margin-bottom: 58px;
}

.partner-referral {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
  background: #f4f4f4;
}

.partner-referral h2,
.partner-earnings h2,
.partner-chat h2 {
  margin: 0 0 12px;
  color: #000000;
  font-family: var(--account-font-display);
  font-size: 31px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.partner-referral__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  margin-top: 16px;
  border: 1px solid #c8c8c8;
  background: #ffffff;
}

.partner-referral__copy input {
  width: 100%;
  min-width: 0;
  height: 64px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font: 500 15px/1 var(--account-font-body);
  padding: 0 20px;
  outline: 0;
}

.partner-referral__copy button {
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid #c8c8c8;
  border-radius: 0;
  background: #ececec;
  color: #111111;
  cursor: pointer;
}

.partner-referral small {
  display: block;
  margin-top: 14px;
  color: #666666;
  font-size: 12px;
  line-height: 1.35;
}

.partner-growth {
  min-height: 320px;
  padding: 30px;
}

.partner-growth-chart {
  width: 100%;
  min-height: 250px;
  display: block;
  margin-top: 6px;
  border-radius: 4px;
  background: #f1f1f1;
}

.partner-earnings {
  margin-bottom: 42px;
}

.partner-dashboard__heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 16px;
}

.partner-dashboard__heading-row > strong,
.partner-dashboard__heading-row > span {
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.partner-table-wrap {
  overflow-x: auto;
  border: 1px solid #c8c8c8;
}

.partner-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

.partner-table th,
.partner-table td {
  padding: 22px 20px;
  border-bottom: 1px solid #c8c8c8;
  text-align: left;
}

.partner-table th {
  background: #f4f4f4;
  color: #444444;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.partner-table td {
  color: #111111;
  font-size: 16px;
  font-weight: 500;
}

.partner-table td:last-child {
  color: #000000;
  font-weight: 800;
  text-align: right;
}

.partner-table tr:last-child td {
  border-bottom: 0;
}

.partner-table__empty {
  color: #666666 !important;
  text-align: center !important;
}

.partner-chat {
  padding: 30px;
}

.partner-chat__messages {
  display: grid;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 4px;
}

.partner-chat__message {
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid #d8d8d8;
  background: #f6f6f6;
}

.partner-chat__message--partner {
  justify-self: end;
  background: #111111;
  color: #ffffff;
}

.partner-chat__message span {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
  font-weight: 700;
}

.partner-chat__message strong {
  display: block;
  margin-bottom: 4px;
  color: inherit;
  font-size: 14px;
}

.partner-chat__message p,
.partner-chat__empty {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.partner-chat__empty {
  padding: 18px;
  border: 1px dashed #c8c8c8;
  color: #5d5d5d;
  text-align: center;
}

.partner-chat__form {
  display: grid;
  gap: 14px;
}

.partner-chat__form label {
  display: grid;
  gap: 8px;
  color: #222222;
  font-size: 13px;
  font-weight: 800;
}

.partner-chat__form input,
.partner-chat__form textarea {
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font: 500 15px/1.4 var(--account-font-body);
  padding: 14px 16px;
  outline: 0;
}

.partner-chat__form input:focus,
.partner-chat__form textarea:focus {
  border-color: #000000;
}

.partner-chat__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.partner-chat__actions span {
  color: #5d5d5d;
  font-size: 13px;
  font-weight: 700;
}

.partner-chat__actions span[data-status="success"] {
  color: #146c43;
}

.partner-chat__actions span[data-status="error"] {
  color: #b42318;
}

.partner-chat__actions button {
  min-height: 50px;
  min-width: 160px;
  border: 1px solid #000000;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  font: 800 14px/1 var(--account-font-body);
  cursor: pointer;
}

.partner-chat__actions button:disabled {
  opacity: 0.68;
  cursor: wait;
}

@media (max-width: 1120px) {
  .account-dashboard--affiliate-focus {
    width: min(100%, calc(100vw - 32px));
  }

  .partner-dashboard {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .partner-dashboard__main {
    padding: 44px 36px 52px;
  }

  .partner-dashboard__header h1 {
    font-size: 52px;
  }

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

  .partner-dashboard__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .account-dashboard--affiliate-focus {
    width: min(100%, calc(100vw - 20px));
    margin-top: 28px !important;
  }

  .partner-dashboard {
    grid-template-columns: 1fr;
  }

  .partner-dashboard__rail {
    min-height: auto;
    padding: 26px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .partner-dashboard__brand {
    margin-bottom: 24px;
  }

  .partner-dashboard__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .partner-dashboard__nav a {
    min-height: 48px;
    padding: 0 12px;
    font-size: 14px;
  }

  .partner-dashboard__payout--rail {
    margin-top: 18px;
  }

  .partner-dashboard__main {
    padding: 34px 18px 42px;
  }

  .partner-dashboard__header {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .partner-dashboard__header h1 {
    font-size: 42px;
  }

  .partner-dashboard__payout {
    width: 100%;
  }

  .partner-dashboard__heading-row,
  .partner-chat__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .partner-dashboard__heading-row > strong,
  .partner-dashboard__heading-row > span {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .partner-dashboard__nav {
    grid-template-columns: 1fr;
  }

  .partner-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .partner-metric {
    min-height: 150px;
    padding: 24px 20px;
  }

  .partner-referral,
  .partner-growth,
  .partner-chat {
    padding: 22px 18px;
  }

  .partner-referral__copy {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .partner-referral h2,
  .partner-earnings h2,
  .partner-chat h2 {
    font-size: 28px;
  }

  .partner-chat__actions button {
    width: 100%;
  }
}

/* Embedded account affiliate dashboard: use the normal account page shell. */
.partner-dashboard {
  display: block !important;
  min-height: auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.partner-dashboard__main {
  padding: 0 !important;
}

.partner-dashboard__header {
  margin-bottom: 34px !important;
}

.partner-dashboard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.partner-dashboard__meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: #454545;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.partner-dashboard__header h1 {
  font-size: clamp(40px, 6vw, 58px) !important;
}

.partner-dashboard__section {
  margin-bottom: 34px;
}

.partner-metrics {
  gap: 16px !important;
}

.partner-metric {
  min-height: 152px;
  padding: 24px 22px;
}

.partner-dashboard__grid {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-bottom: 38px;
}

.partner-referral,
.partner-growth {
  min-height: 264px;
}

.partner-growth-chart {
  min-height: 196px;
}

.partner-chat {
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.partner-chat__phone {
  width: min(100%, 680px);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 28px;
  background: #f2f3f5;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.10);
}

.partner-chat__topbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.10);
  background: rgba(255, 255, 255, 0.88);
}

.partner-chat__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-family: var(--account-font-display);
  font-size: 24px;
  font-weight: 700;
}

.partner-chat__topbar h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.05;
}

.partner-chat__topbar p {
  margin: 4px 0 0;
  color: #646464;
  font-size: 12px;
  font-weight: 700;
}

.partner-chat__phone .partner-chat__messages {
  min-height: 300px;
  max-height: 430px;
  gap: 10px;
  margin: 0;
  padding: 20px 18px;
  background:
    linear-gradient(rgba(255,255,255,0.50), rgba(255,255,255,0.50)),
    #f2f3f5;
}

.partner-chat__phone .partner-chat__message {
  max-width: min(78%, 430px);
  width: fit-content;
  padding: 11px 14px 12px;
  border: 0;
  border-radius: 19px 19px 19px 6px;
  background: #ffffff;
  color: #141414;
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.07);
}

.partner-chat__phone .partner-chat__message--partner {
  justify-self: end;
  border-radius: 19px 19px 6px 19px;
  background: #111111;
  color: #ffffff;
}

.partner-chat__phone .partner-chat__message span {
  margin-bottom: 5px;
  font-size: 11px;
  opacity: 0.58;
}

.partner-chat__phone .partner-chat__message strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.partner-chat__phone .partner-chat__message p,
.partner-chat__phone .partner-chat__empty {
  font-size: 14px;
  line-height: 1.38;
}

.partner-chat__phone .partner-chat__empty {
  align-self: center;
  justify-self: center;
  width: min(100%, 390px);
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.partner-chat__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.10);
  background: #ffffff;
}

.partner-chat__composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 130px;
  resize: vertical;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 22px;
  background: #f5f5f5;
  color: #111111;
  font: 600 14px/1.35 var(--account-font-body);
  outline: 0;
  padding: 12px 16px;
}

.partner-chat__composer textarea:focus {
  border-color: rgba(17, 17, 17, 0.34);
  background: #ffffff;
}

.partner-chat__composer button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  background: #111111;
  color: #ffffff;
  font: 800 14px/1 var(--account-font-body);
  cursor: pointer;
}

.partner-chat__composer button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.partner-chat__composer [data-affiliate-chat-status] {
  grid-column: 1 / -1;
  min-height: 16px;
  padding-left: 8px;
  color: #5f5f5f;
  font-size: 12px;
  font-weight: 800;
}

.partner-chat__composer [data-status="success"] {
  color: #146c43;
}

.partner-chat__composer [data-status="error"] {
  color: #b42318;
}

@media (max-width: 1120px) {
  .partner-dashboard {
    display: block !important;
  }

  .partner-dashboard__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .partner-dashboard__header {
    margin-bottom: 28px !important;
  }

  .partner-chat__phone {
    border-radius: 22px;
  }
}

/* Affiliate dashboard compact chat card. */
.partner-chat .card {
  width: 260px;
  max-width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.partner-chat .chat-header {
  background-color: #333;
  color: #fff;
  padding: 10px;
  font-size: 18px;
  font-weight: 800;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.partner-chat .chat-window {
  height: 220px;
  overflow-y: scroll;
  background: #fff;
}

.partner-chat .message-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.partner-chat .message-list .partner-chat__message {
  max-width: none;
  width: auto;
  margin: 10px;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  background: #f6f6f6;
  color: #111;
  box-shadow: none;
}

.partner-chat .message-list .partner-chat__message--partner {
  margin-left: 34px;
  border-color: #333;
  background: #333;
  color: #fff;
}

.partner-chat .message-list .partner-chat__message span {
  display: block;
  margin-bottom: 4px;
  color: inherit;
  opacity: 0.72;
  font-size: 11px;
  font-weight: 700;
}

.partner-chat .message-list .partner-chat__message strong {
  display: block;
  margin-bottom: 3px;
  color: inherit;
  font-size: 12px;
}

.partner-chat .message-list .partner-chat__message p,
.partner-chat .message-list .partner-chat__empty {
  margin: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.partner-chat .message-list .partner-chat__empty {
  padding: 18px 12px;
  border: 0;
  color: #555;
  text-align: center;
}

.partner-chat .chat-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 10px;
  border-top: 1px solid #ccc;
  background: #fff;
}

.partner-chat .message-input {
  flex: 1;
  min-width: 0;
  min-height: 28px;
  border: none;
  border-radius: 0;
  outline: none;
  padding: 5px;
  font: 600 14px/1.35 var(--account-font-body);
  color: #111;
  background: transparent;
}

.partner-chat .send-button {
  border: none;
  border-radius: 0;
  outline: none;
  background-color: #333;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  min-height: auto;
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.partner-chat .send-button:hover,
.partner-chat .send-button:focus-visible {
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.partner-chat .send-button:disabled {
  opacity: 0.66;
  cursor: wait;
}

.partner-chat .chat-input [data-affiliate-chat-status] {
  flex: 0 0 100%;
  min-height: 14px;
  color: #555;
  font-size: 12px;
  font-weight: 700;
}

.partner-chat .chat-input [data-status="success"] {
  color: #146c43;
}

.partner-chat .chat-input [data-status="error"] {
  color: #b42318;
}

@media (max-width: 560px) {
  .partner-chat .card {
    width: 100%;
  }
}

/* Login page: remove the large intro block and start with the form. */
.account-body[data-auth-page="login"] #authRoot {
  width: min(620px, calc(100% - 40px)) !important;
}

.account-auth-page--compact {
  max-width: 620px !important;
}

.account-auth-page--compact .account-card--auth {
  margin: 0 auto !important;
}
