:root{--auth-accent:#7a048c;--auth-accent-2:#b020c4;--auth-ink:#241828;--auth-muted:#746a77}
[hidden]{display:none!important}
body.auth-pending{overflow:hidden}
.auth-gate{position:fixed;inset:0;z-index:10000;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;align-items:center;gap:10px;padding:20px;background:radial-gradient(circle at 15% 12%,rgba(176,32,196,.14),transparent 32%),linear-gradient(145deg,#fbf8fc,#f2ebf4)}
.auth-gate[hidden]{display:none!important}
.auth-card{width:min(100%,470px);max-height:100%;overflow:auto;background:rgba(255,255,255,.96);border:1px solid rgba(122,4,140,.14);border-radius:28px;padding:28px;box-shadow:0 28px 80px rgba(75,29,81,.18);direction:rtl}
.auth-brand{display:flex;align-items:center;gap:14px;margin-bottom:22px}.auth-logo{width:52px;height:52px;display:grid;place-items:center;border-radius:17px;color:#fff;font-size:27px;font-weight:900;background:linear-gradient(145deg,var(--auth-accent),var(--auth-accent-2));box-shadow:0 12px 28px rgba(122,4,140,.25)}
.auth-brand h1{font-size:21px;margin:0;color:var(--auth-ink)}.auth-brand p{margin:4px 0 0;color:var(--auth-muted);font-size:12px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#f4eef5;border-radius:14px;margin-bottom:20px}.auth-tabs[hidden]{display:none!important}.auth-tab{border:0;border-radius:11px;padding:11px;background:transparent;color:var(--auth-muted);font:inherit;font-weight:800;cursor:pointer}.auth-tab.active{background:#fff;color:var(--auth-accent);box-shadow:0 4px 16px rgba(69,38,72,.09)}
.auth-form{display:grid;gap:13px}.auth-form[hidden]{display:none!important}.auth-field{display:grid;gap:6px}.auth-field label{font-size:12px;font-weight:800;color:#493c4c}.auth-field input{width:100%;box-sizing:border-box;border:1px solid #ddd2df;border-radius:13px;padding:12px 13px;background:#fff;color:#241828;font:inherit;outline:0}.auth-field input:focus{border-color:var(--auth-accent);box-shadow:0 0 0 3px rgba(122,4,140,.1)}
.auth-captcha{min-height:78px;max-width:100%;display:grid;place-items:center;direction:ltr;overflow:hidden}.auth-captcha[hidden]{display:none!important}.auth-captcha>div,.auth-captcha iframe{max-width:100%}
.auth-submit{border:0;border-radius:14px;padding:13px 18px;background:linear-gradient(135deg,var(--auth-accent),var(--auth-accent-2));color:#fff;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 12px 26px rgba(122,4,140,.2)}.auth-submit-secondary{background:#f7edf8;color:var(--auth-accent);box-shadow:none}.auth-submit:disabled,.auth-link:disabled{opacity:.55;cursor:wait}.auth-link{border:0;background:none;padding:4px;color:var(--auth-accent);font:inherit;font-size:12px;font-weight:800;cursor:pointer}.auth-message{min-height:20px;margin-top:12px;padding:0;font-size:12px;line-height:1.8;color:var(--auth-muted)}.auth-message.error{color:#b42318}.auth-message.success{color:#087a4b}
.auth-recovery-heading{display:grid;gap:8px;text-align:center;margin-bottom:4px}.auth-recovery-heading h2{margin:0;font-size:20px;color:var(--auth-ink)}.auth-recovery-heading p{margin:0;color:var(--auth-muted);font-size:13px;line-height:1.8}
.auth-status{display:grid;gap:16px;text-align:center}.auth-status[hidden]{display:none!important}.auth-status-icon{width:66px;height:66px;margin:auto;display:grid;place-items:center;border-radius:50%;font-size:28px;background:#f7edf8;color:var(--auth-accent)}.auth-status h2{margin:0;font-size:20px}.auth-status p{margin:0;color:var(--auth-muted);line-height:1.9;font-size:13px}.auth-status-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.account-chip{display:inline-flex;align-items:center;gap:7px}.account-dot{width:8px;height:8px;border-radius:50%;background:#20a66a;box-shadow:0 0 0 3px rgba(32,166,106,.12)}
.sync-chip{min-width:118px;direction:rtl;font-size:11px!important;white-space:nowrap}
.sync-chip[data-sync-state="synced"]{color:#087850!important;background:#ecfaf4!important;border-color:#c7ecde!important}
.sync-chip[data-sync-state="syncing"]{color:#6b3a75!important;background:#faf4fb!important;border-color:#ead9ed!important}
.sync-chip[data-sync-state="pending"],.sync-chip[data-sync-state="offline"]{color:#8a5a00!important;background:#fff8e8!important;border-color:#f2dfae!important}
.sync-chip[data-sync-state="conflict"],.sync-chip[data-sync-state="error"]{color:#a1261c!important;background:#fff1ef!important;border-color:#f0c8c3!important}
.mobile-sync-state[data-sync-state="synced"]{color:#087850!important;background:#f0faf6!important}
.mobile-sync-state[data-sync-state="syncing"]{color:#6b3a75!important;background:#faf4fb!important}
.mobile-sync-state[data-sync-state="pending"],.mobile-sync-state[data-sync-state="offline"]{color:#8a5a00!important;background:#fff8e8!important}
.mobile-sync-state[data-sync-state="conflict"],.mobile-sync-state[data-sync-state="error"]{color:#a1261c!important;background:#fff1ef!important}
.subscription-banner{position:fixed;z-index:8500;right:16px;bottom:88px;max-width:min(360px,calc(100vw - 32px));display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:#fff;border:1px solid #eaddec;box-shadow:0 10px 35px rgba(54,26,58,.13);font-size:11px;color:#5a4d5e}.subscription-banner[hidden]{display:none!important}.subscription-banner strong{color:var(--auth-accent)}
@media(max-width:600px){.auth-gate{gap:7px;padding:calc(10px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));align-items:center}.auth-card{max-height:100%;padding:22px 18px;border-radius:23px}.auth-brand{margin-bottom:18px}.auth-logo{width:47px;height:47px}.subscription-banner{right:calc(16px + env(safe-area-inset-right));bottom:calc(91px + env(safe-area-inset-bottom))}}
@media(max-width:360px){.auth-captcha{min-height:144px}}

/* V13.0.0-alpha.12 account center */
.account-modal-card{width:min(780px,100%)}
.account-modal-body{display:grid;gap:14px;background:#faf8fb}
.account-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.account-summary>div{min-width:0;padding:13px 14px;border:1px solid #e9dfea;border-radius:15px;background:#fff}
.account-summary span{display:block;margin-bottom:5px;color:var(--auth-muted);font-size:10px;font-weight:800}
.account-summary strong{display:block;min-width:0;color:var(--auth-ink);font-size:13px;line-height:1.75;overflow-wrap:anywhere}
.account-section{display:grid;gap:12px;padding:16px;border:1px solid #e9dfea;border-radius:17px;background:#fff}
.account-section-heading h4{margin:0 0 4px;color:var(--auth-ink);font-size:14px}
.account-section-heading p{margin:0;color:var(--auth-muted);font-size:11px;line-height:1.8}
.account-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.account-section>.btn,.account-section form>.btn{justify-self:start}
.account-current-value{padding:10px 12px;border-radius:12px;background:#f7f1f8;color:#65586a;font-size:11px;overflow-wrap:anywhere}
.account-feedback{min-height:20px;color:var(--auth-muted);font-size:11px;line-height:1.8}
.account-feedback.error{color:#b42318}.account-feedback.success{color:#087a4b}
.account-danger-zone{border-color:#efcbc7;background:#fff9f8}
.account-danger-zone .account-section-heading h4{color:#a1261c}
.account-danger-zone form{display:grid;gap:12px}
.account-modal-foot{justify-content:space-between}

@media(max-width:600px){
  .account-modal-card{max-height:94dvh!important}
  .account-modal-body{padding:14px!important;gap:11px}
  .account-summary{grid-template-columns:1fr 1fr;gap:7px}
  .account-summary>div{padding:11px;border-radius:13px}
  .account-section{padding:13px;border-radius:15px}
  .account-form-grid{grid-template-columns:1fr}
  .account-section>.btn,.account-section form>.btn{width:100%;justify-self:stretch}
  .account-modal-foot{position:sticky;bottom:0;background:#fff;padding-bottom:calc(14px + env(safe-area-inset-bottom))!important}
}

@media(max-width:380px){
  .account-summary{grid-template-columns:1fr}
}
