/* Account + billing (js/account.js). Only tokens from app.css, so both themes work. */
.btn-outline { background: transparent; border-color: var(--mark); color: var(--link); font-weight: 700; }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--mark); }

/* Header slot */
.acct-guest { white-space: nowrap; }
.acct-usage-top { gap: 8px; white-space: nowrap; }
.acct-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar:hover { border-color: var(--faint); }
.acct-banner { flex-wrap: wrap; row-gap: 4px; }
.acct-banner .grow { flex-basis: 200px; }
.acct-banner .link-btn { min-height: 28px; }
.acct-banner-actions { gap: 16px; margin-left: auto; white-space: nowrap; }
.acct-menu { max-width: min(320px, calc(100vw - 16px)); }
.acct-menu-info { gap: 2px; min-width: 0; }
.acct-menu-info strong { color: var(--text); font-size: 14px; }

/* Forms */
.acct-form { display: flex; flex-direction: column; gap: 14px; }
.acct-pw { position: relative; }
.acct-pw .input { padding-right: 44px; }
.acct-pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.acct-end { align-self: flex-end; }
.acct-center { text-align: center; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.link-btn:disabled { opacity: .5; cursor: not-allowed; text-decoration: none; }

/* Limit modals */
.acct-big { font: 800 44px/1 var(--display); letter-spacing: .04em; color: var(--link); }
.acct-warn-icon { color: var(--gold); line-height: 0; }

/* Plans + checkout */
.acct-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.acct-plan { display: flex; flex-direction: column; gap: 12px; }
.acct-plan .btn { margin-top: auto; }
.acct-plan-name { font: 700 18px/1.15 var(--display); letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.acct-crown { color: var(--gold); line-height: 0; }
.acct-price b { font: 800 34px/1 var(--display); letter-spacing: .02em; }
.acct-features { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.acct-features li { display: flex; align-items: flex-start; gap: 8px; }
.acct-features .icon { color: var(--ok); margin-top: 2px; }
.acct-state { grid-column: 1 / -1; align-items: center; justify-content: center; gap: 10px; }
.acct-note { line-height: 1.5; overflow-wrap: anywhere; }
.acct-pay-status:empty { display: none; }
/* PayPal renders light-scheme iframes; matching the scheme keeps them transparent in the dark theme. */
.acct-paypal { min-height: 48px; color-scheme: light; }
.acct-paypal:empty { display: none; }

@media (max-width: 900px) {
  .acct-wide { display: none !important; }
  #account-slot { gap: 6px; }
  #account-slot .btn { padding: 0 10px; }
  #account-slot .acct-upgrade { width: var(--tap); padding: 0; }
  .acct-banner { padding: 8px 12px; }
}
