/* Account (/manage/) and thank-you (/welcome/) pages. Built on the site's home.css + legal.css tokens. */
.account [hidden] { display: none !important; }
.account .lead { margin-bottom: 1.5rem; }
.account h2 { margin: 0 0 .5rem; }
.account button.btn { border: 0; font-family: inherit; cursor: pointer; }
.account button.btn:disabled { opacity: .55; cursor: progress; }
.account :focus-visible { outline: 3px solid #6d56d6; outline-offset: 3px; }

.test-banner, .promo-banner, .account-alert { margin: 0 0 1.25rem; padding: .875rem 1.125rem; border-radius: .875rem; font-size: 15px; line-height: 1.5; }
.test-banner { border: 1px solid #ecd37a; background: #fff6d2; color: #3d3200; }
.promo-banner { border: 1px solid #b9e2c2; background: #ecf8ef; color: #14361c; font-weight: 500; }
.account-alert { border: 1px solid rgba(186, 26, 26, .25); background: #fdf1f1; color: #7a1414; }
.account-alert:empty { display: none; }
.account-alert-info { border-color: var(--sc-highest); background: var(--sc-low); color: var(--on-surface); }

.account-card { border: 1px solid var(--sc-highest); background: var(--sc-lowest); border-radius: 1.25rem; padding: 1.5rem; margin: 0 0 1.25rem; box-shadow: var(--subtle-shadow); }
.account-card p:last-child { margin-bottom: 0; }
.signin-card { max-width: 30rem; }
.google-button { min-height: 44px; margin: 1rem 0; }
.code-pending { color: var(--on-surface); }
.doc .fine { font-size: 13px; line-height: 1.5; color: var(--outline); }

.plan-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.plan-summary-text { min-width: 0; }
.doc .signed-in { font-size: 14px; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.doc .access-status { font-size: 18px; line-height: 1.5; color: var(--on-surface); font-weight: 500; margin: 0; }
.summary-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.plan-choices { margin: 2rem 0 2.5rem; }
.plan-choices .plan-card { display: flex; flex-direction: column; }
.plan-choices .plan-card p:not(.plan-amount) { flex: 1; }
.plan-buy { width: 100%; margin-top: .5rem; }
/* legal.css shrinks spans inside a price (meant for "/ year"); the live amount itself stays full size. */
.plan-amount [id^="price-"] { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }

.account-grid { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.account-grid .account-card { margin: 0; }
.account label { display: block; font-size: 14px; font-weight: 600; color: var(--on-surface); margin: 1rem 0 .375rem; }
.inline-form { display: flex; gap: .5rem; }
.inline-form input { flex: 1; min-width: 0; padding: .75rem .875rem; border: 1px solid var(--outline-variant); border-radius: 7px; font: inherit; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; background: #fff; color: var(--on-surface); }
.inline-form input::placeholder { color: var(--outline-variant); }

.purchase-list { list-style: none; padding: 0; margin: 0; }
.purchase-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .875rem 0; border-top: 1px solid var(--sc-highest); }
.purchase-list li:first-child { border-top: 0; padding-top: 0; }
.purchase-name { font-weight: 600; color: var(--on-surface); }
.purchase-meta { display: block; font-size: 13px; color: var(--outline); overflow-wrap: anywhere; }
.purchase-list .btn { padding: .5rem 1rem; }

.signout-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem; font-size: 14px; color: var(--outline); margin-top: 1.5rem; }

.welcome .steps { padding-left: 1.25rem; margin: .75rem 0 1.25rem; }
.welcome .steps li { margin-bottom: .5rem; }
.welcome-actions { margin-top: 1rem; }

@media (min-width: 768px) {
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .account-card { padding: 1.25rem; }
  .summary-actions, .summary-actions .btn { width: 100%; }
  .inline-form { flex-direction: column; }
}
