.plan-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.plan-picker label { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 21px; border: 1px solid #ffffff29; border-radius: 12px; background: #0b0e1473; cursor: pointer; }
.plan-picker label:hover { border-color: #7384a5; }
.plan-picker label:has(input:checked) { border-color: #a5beef; background: linear-gradient(145deg, #8bacf017, #779def07); box-shadow: inset 0 0 0 1px #a5beef24; }
.plan-picker input { position: absolute; top: 21px; right: 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.plan-name { padding-right: 20px; font-size: 1rem; font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin-top: 18px; font-size: 3rem; line-height: 1.1; font-weight: 650; letter-spacing: -.05em; }
.plan-price > span { font-size: 1.125rem; font-weight: 500; letter-spacing: -.02em; }
.plan-period { margin-top: 5px; color: #c4cad6; font-size: .875rem; line-height: 1.5; }
.plan-terms { margin-top: 20px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.purchase-status { padding: 24px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.purchase-status h2 { margin-bottom: 8px; font-size: 1.375rem; }
.purchase-status p { margin: 8px 0 20px; color: var(--muted); font-size: .9375rem; }
.purchase-status .text-button { color: var(--accent); }
.account-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.account-actions .primary { width: auto; }
#payment-form label { display: block; margin: 16px 0 8px; font-size: .9375rem; }
#payment-form input { display: block; width: 100%; padding: 12px; border: 1px solid #596272; border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 1rem; }
#payment-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#payment-form .terms-check { display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; line-height: 1.6; }
#payment-form .terms-check input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0; accent-color: var(--accent); }
#form-message { min-height: 1.5em; margin: 12px 0; font-size: .875rem; }
#email-restore, #dismiss-dialog { margin-top: 18px; }
button:disabled { opacity: .6; cursor: wait; }
.recovery-backup { margin-top: 24px; padding: 24px; border: 1px solid #a5beef80; border-radius: 12px; background: #8bacf00d; }
.recovery-backup h3 { margin: 0; color: var(--ink); font-size: 1.25rem; }
.recovery-backup > .primary { width: auto; }
.recovery-backup p { max-width: 68ch; }
.recovery-feedback:empty { display: none; }
.purchase-status .recovery-feedback { margin: 16px 0 0; color: var(--accent); }
#recovery-output { max-width: 650px; margin-top: 20px; }
#recovery-key-output { display: block; width: 100%; resize: vertical; padding: 12px; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 14px/1.5 monospace; overflow-wrap: anywhere; word-break: break-all; }
@media (max-width: 600px) {
  .recovery-backup { padding: 18px; }
  .recovery-backup .account-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .recovery-backup .primary { width: 100%; }
  .plan-picker { gap: 10px; }
  .plan-picker label { padding: 16px 12px; }
  .plan-picker input { top: 18px; right: 10px; width: 15px; height: 15px; }
  .plan-name { font-size: .9375rem; }
  .plan-price { font-size: 2.75rem; }
  .plan-period { font-size: .8125rem; }
  .plan-terms { margin-top: 16px; font-size: .75rem; }
}
@media (max-width: 360px) {
  #recovery-key-output { min-height: 8em; }
  .plan { padding: 18px 14px; }
  .plan-picker label { padding: 15px 10px; }
  .plan-name { font-size: .8125rem; }
  .plan-price { font-size: 2.375rem; }
  .plan-price > span { font-size: .9375rem; }
}
