/* V36.7.7 — password recovery controls and admin account editor. */
.recovery-provider-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:12px; margin-top:14px; }
.recovery-provider-card { display:flex; align-items:center; justify-content:space-between; gap:14px; min-width:0; padding:15px; border:1px solid var(--border-color); border-radius:13px; background:var(--bg-surface-2); color:var(--text-main); }
.recovery-provider-card.is-enabled { border-color:color-mix(in srgb,var(--green-ghost,#34d399) 48%,var(--border-color)); }
.recovery-provider-card-copy { min-width:0; }
.recovery-provider-card-copy strong { display:block; font-size:14px; }
.recovery-provider-card-copy p { margin:5px 0 6px; color:var(--text-muted); font-size:12px; line-height:1.45; }
.recovery-provider-status { display:inline-flex; align-items:center; min-height:22px; padding:2px 8px; border-radius:999px; background:rgba(148,163,184,.12); color:var(--text-muted); font-size:11px; font-weight:750; }
.recovery-provider-status.ready { background:rgba(16,185,129,.13); color:#10b981; }
.recovery-switch { display:inline-flex; flex:0 0 auto; align-items:center; gap:8px; cursor:pointer; user-select:none; color:var(--text-main); font-size:11px; font-weight:800; }
.recovery-switch input { position:absolute; opacity:0; width:1px; height:1px; }
.recovery-switch-track { position:relative; width:42px; height:24px; border:1px solid var(--border-light); border-radius:999px; background:rgba(148,163,184,.24); transition:background .16s ease,border-color .16s ease; }
.recovery-switch-track::after { content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.28); transition:transform .16s ease; }
.recovery-switch input:checked + .recovery-switch-track { background:#059669; border-color:#059669; }
.recovery-switch input:checked + .recovery-switch-track::after { transform:translateX(18px); }
.recovery-switch input:focus-visible + .recovery-switch-track { outline:2px solid var(--purple); outline-offset:3px; }
.recovery-switch input:disabled + .recovery-switch-track { opacity:.42; cursor:not-allowed; }
.recovery-switch:has(input:disabled) { opacity:.55; cursor:not-allowed; }
.admin-customer-edit-card { width:min(640px,calc(100% - 24px)); max-height:min(92dvh,880px); overflow-y:auto; }
.admin-customer-primary-account { margin:0 0 14px; padding:9px 11px; border:1px solid var(--border-color); border-radius:9px; background:var(--bg-surface-2); font-size:12px; overflow-wrap:anywhere; }
.admin-customer-contact-divider { height:1px; margin:16px 0 12px; background:var(--border-color); }
.admin-customer-edit-card h4 { margin:0 0 12px; color:var(--text-main); font-size:14px; }
.admin-inline-check { display:flex; align-items:center; gap:8px; margin:-3px 0 12px; color:var(--text-muted); font-size:12px; cursor:pointer; }
.admin-inline-check input { width:16px; height:16px; accent-color:var(--green-ghost,#10b981); }
.admin-customer-edit-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:16px; padding-top:13px; border-top:1px solid var(--border-color); }
.admin-customer-edit-actions button { min-width:110px; }
#admin-admins-table td:last-child { min-width:150px; vertical-align:middle !important; }
.admin-list-action-menu { display:flex !important; width:128px !important; min-width:128px !important; margin:0 auto !important; }
.admin-list-action-menu > .admin-action-toggle { width:100% !important; min-width:0 !important; }
.admin-action-popover-portal { display:flex !important; flex-direction:column !important; align-items:stretch !important; width:220px !important; max-width:calc(100vw - 24px) !important; gap:7px !important; }
.admin-action-popover-portal > button { display:flex !important; flex:0 0 auto !important; width:100% !important; min-height:38px !important; align-items:center !important; justify-content:flex-start !important; white-space:normal !important; text-align:left !important; }
@media(max-width:600px) { .recovery-provider-card { align-items:flex-start; } .admin-customer-edit-actions { display:grid; grid-template-columns:1fr 1fr; } .admin-customer-edit-actions button { width:100%; } }
