.account-layout[data-signed-in="true"] .account-heading .eyebrow,
.account-intro .eyebrow {
  color: #4f6354;
  font-size: 13px;
}

.account-nav {
  font-size: 14px;
}

.account-nav a,
footer a {
  color: #40574a;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.account-nav a:hover,
.account-nav a[aria-current="page"],
footer a:hover,
.account-nav a:active,
footer a:active {
  color: #146c3a;
  text-decoration: underline;
}

.account-nav a:focus-visible,
footer a:focus-visible,
.account-layout :focus-visible,
.profile-settings :focus-visible {
  outline: 2px solid #146c3a;
  outline-offset: 3px;
}

.auth-card label,
.auth-card small,
.auth-card #auth-copy,
.auth-card .text-link,
.auth-card .auth-legal,
.account-fact dt,
.account-extra summary,
.account-extra form > p,
.account-extra > p,
.account-extra ul,
.profile-settings > summary span,
.profile-settings-content > p,
.profile-settings-content form > label:not(.purchase-consent),
.profile-settings-content #common-status,
.purchase-consent,
.purchase-option p,
.trial-reminder a,
.account-toolbar,
.manage-subscription p,
.account-load-error p,
.last-updated,
footer {
  font-size: 13px;
}

.auth-card label,
.profile-settings-content form > label:not(.purchase-consent) {
  color: #344b3b;
}

.auth-card small,
.auth-card #auth-copy,
.auth-card .text-link,
.auth-card .auth-legal,
.account-fact dt,
.account-extra form > p,
.account-extra > p,
.profile-settings-content > p,
.profile-settings-content #common-status,
.purchase-option p,
.manage-subscription p,
.last-updated,
footer {
  color: #536258;
}

.account-layout[data-signed-in="true"] .account-heading {
  margin-bottom: 18px;
}

.auth-card #selected-plan-note {
  color: #536258;
  font-size: 13px;
}

.plan-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid #dce7da;
  border-radius: 14px;
  background: #f7faf5;
}

.plan-summary-copy {
  min-width: 0;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #e4f1e4;
  color: #194d2c;
  font-size: 13px;
  font-weight: 700;
}

.plan-summary-copy p {
  margin: 9px 0 0;
  color: #344b3b;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.account-layout[data-signed-in="true"] #subscription-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  max-width: 400px;
  margin: 0;
}

.plan-summary > .button {
  flex: none;
  align-self: center;
  width: auto;
  min-width: 180px;
}

.account-fact {
  padding: 10px 12px;
  border: 1px solid #e2e9df;
  border-radius: 10px;
  background: #fff;
}

.account-fact dt {
  margin: 0 0 4px;
  color: #536258;
}

.account-fact dd {
  margin: 0;
  color: #193f2d;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.account-fact:first-child {
  grid-column: 1 / -1;
  background: #fff;
}

.account-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 44px;
  margin: 12px 0 20px;
}

.refresh-action,
.signout-link,
.destructive-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #355840;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.refresh-action:hover,
.signout-link:hover {
  background: #edf3ec;
  color: #193f2d;
}

.refresh-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refresh-action:disabled {
  cursor: wait;
  opacity: .75;
}

.refresh-action:disabled svg {
  animation: account-refresh-spin 1s linear infinite;
}

.last-updated {
  color: #536258;
}

.signout-link {
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.manage-subscription {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #e6ebe4;
  border-bottom: 1px solid #e6ebe4;
}

.manage-subscription h3,
.billing-help > h3 {
  margin: 0;
  color: #193f2d;
  font-size: 15px;
}

.manage-subscription p {
  margin: 5px 0 0;
  color: #536258;
  line-height: 1.5;
}

.destructive-action {
  flex: none;
  border: 1px solid #ead8d5;
  color: #873c35;
}

.destructive-action:hover:not(:disabled) {
  background: #fff4f2;
  border-color: #cb8f87;
}

.destructive-action:disabled {
  color: #667268;
  border-color: #e1e6e0;
  cursor: not-allowed;
}

.account-plan-actions {
  margin-top: 18px;
}

.account-plan-actions .button {
  width: auto;
  min-width: 180px;
}

.account-layout[data-signed-in="true"] #plans[data-open="true"] {
  margin: 18px 0 0;
  padding: clamp(14px, 3vw, 24px);
  border-radius: 14px;
}

.account-layout[data-signed-in="true"] #plans[data-open="true"] .two-plans {
  max-width: 640px;
}

.account-pricing-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.account-pricing-controls .billing-toggle {
  margin: 0;
}

.currency-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 3px 5px 3px 12px;
  border: 1px solid #e0e6dd;
  border-radius: 10px;
  background: #fff;
  color: #344b3b;
  font-size: 13px;
}

.currency-control [role="group"] {
  display: flex;
  gap: 3px;
}

.currency-control button {
  min-width: 48px;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #405247;
  font: inherit;
  cursor: pointer;
}

.currency-control button[aria-pressed="true"] {
  background: #193f2d;
  color: #fff;
}

.currency-control button:disabled {
  cursor: wait;
  opacity: .7;
}

.currency-control button:focus-visible {
  outline: 2px solid #146c3a;
  outline-offset: 2px;
}

.currency-status {
  margin: -12px 0 18px;
  color: #536258;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.account-layout[data-signed-in="true"] .account-purchase {
  max-width: 640px;
  margin: 18px auto 0;
}

.account-layout[data-signed-in="true"] .purchase-consent {
  color: #344b3b;
  line-height: 1.6;
}

.account-layout[data-signed-in="true"] .purchase-option p {
  color: #536258;
}

.account-plans .billing-toggle button,
.account-plans .billing-toggle span,
.account-plans .simple-plan li,
.account-plans .plan-description,
.account-plans .simple-plan h3 small,
.account-plans .recommended-label,
.account-plans .plan-note,
.account-plans .plan-availability,
.account-plans .plan-button {
  font-size: 13px;
}

.account-plans .plan-description,
.account-plans .plan-note,
.account-plans .plan-availability {
  color: #536258;
}

.billing-help {
  margin-top: 24px;
}

.billing-help > h3 {
  margin-bottom: 10px;
}

.account-extra summary,
.profile-settings > summary {
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 14px;
  color: #344b3b;
  font-size: 13px;
}

.account-extra summary:after,
.profile-settings > summary:after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #536258;
  border-bottom: 2px solid #536258;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.account-extra[open] summary:after,
.profile-settings[open] > summary:after {
  transform: rotate(225deg) translateY(-2px);
}

.account-extra summary:focus-visible,
.profile-settings > summary:focus-visible {
  outline: 2px solid #146c3a;
  outline-offset: 2px;
}

.account-extra form > p,
.account-extra > p,
.profile-settings-content > p {
  color: #536258;
  font-size: 13px;
  line-height: 1.65;
}

.account-extra ul {
  color: #405247;
  font-size: 13px;
}

.account-extra .empty-state {
  padding: 0;
  color: #536258;
  font-size: 13px;
  list-style: none;
}

.profile-settings > summary span {
  color: #536258;
  font-size: 13px;
}

.profile-settings-content form > label:not(.purchase-consent) {
  color: #344b3b;
  font-size: 13px;
}

.trial-reminder a {
  font-size: 13px;
}

.account-loading {
  display: grid;
  gap: 12px;
  padding: 12px 0;
}

.account-loading span {
  display: block;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(90deg, #edf1eb 25%, #f7f9f6 50%, #edf1eb 75%);
  background-size: 200% 100%;
  animation: account-skeleton 1.4s ease-in-out infinite;
}

.account-loading span:nth-child(2) {
  width: 72%;
}

.account-loading span:nth-child(3) {
  width: 48%;
}

.account-load-error {
  padding: 16px;
  border: 1px solid #ead8d5;
  border-radius: 12px;
  background: #fff8f7;
}

.account-load-error p {
  margin: 0 0 12px;
  color: #743c37;
  line-height: 1.55;
}

.account-load-error .button {
  width: auto;
  min-height: 40px;
}

.auth-card #account-message {
  color: #344b3b;
  font-size: 13px;
}

footer {
  color: #536258 !important;
  font-size: 14px !important;
}

footer a {
  font-size: 14px;
}

@keyframes account-skeleton {
  to {
    background-position: -200% 0;
  }
}

@keyframes account-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  nav {
    padding: 18px 20px;
  }

  .account-nav {
    gap: 16px;
  }

  .account-main {
    padding: 24px 18px 48px;
  }

  .auth-card {
    padding: 22px;
  }

  .plan-summary {
    flex-direction: column;
    gap: 14px;
  }

  .plan-summary > .button {
    align-self: stretch;
    width: 100%;
  }

  .account-layout[data-signed-in="true"] #subscription-details {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
  }

  .account-fact:first-child {
    grid-column: auto;
  }

  .manage-subscription {
    align-items: flex-start;
    flex-direction: column;
  }

  .destructive-action {
    width: 100%;
  }

  .account-plan-actions .button,
  .account-layout[data-signed-in="true"] .account-purchase > .button,
  .account-layout[data-signed-in="true"] .purchase-option > .button {
    width: 100%;
  }

  .account-pricing-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .account-pricing-controls .billing-toggle {
    width: 100%;
    box-sizing: border-box;
  }

  .account-pricing-controls .billing-toggle button {
    flex: 1;
  }

  .currency-control {
    justify-content: space-between;
  }

  .account-toolbar {
    gap: 5px;
  }

  .last-updated {
    flex-basis: 100%;
    order: 3;
    padding-left: 10px;
  }

  .signout-link {
    margin-left: auto;
  }

  .profile-settings > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
