/* Optional account dialog. No page or vehicle UI is blocked unless the user opens it. */
.ecl-auth-top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ecl-auth-side-button{width:100%;justify-content:flex-start;font-size:13px}
.ecl-auth-overlay[hidden],.ecl-auth-dialog [hidden]{display:none!important}
.ecl-auth-overlay{position:fixed;inset:0;z-index:120;background:rgba(1,4,10,.88);display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto}
.ecl-auth-dialog{position:relative;width:min(500px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-top:3px solid var(--accent);border-radius:22px;padding:24px;box-shadow:0 24px 70px #0009}
.ecl-auth-logo{display:block;width:100%;height:auto;max-height:145px;object-fit:contain;margin:8px auto 15px;background:#050609;border-radius:12px}
.ecl-auth-close{position:absolute;right:12px;top:12px;z-index:1}
.ecl-auth-dialog h2{font-size:clamp(22px,4vw,29px);margin:10px 0}
.ecl-auth-dialog p{line-height:1.5}
.ecl-auth-dialog label{display:block;font-size:13px;font-weight:800;margin:18px 0 7px}
.ecl-auth-dialog .field{width:100%}
.ecl-auth-action{width:100%;margin-top:12px}
.ecl-auth-guest{margin-top:18px}
.ecl-auth-profile{border:1px solid var(--border);border-radius:12px;padding:15px;display:grid;gap:12px;overflow-wrap:anywhere}
.ecl-auth-feedback{border:1px solid var(--border);border-radius:10px;padding:12px;margin:12px 0 0;line-height:1.5;font-size:13px}
.ecl-auth-feedback[data-state="error"]{border-color:var(--accent)}
.ecl-auth-feedback[data-state="success"]{border-color:var(--success)}
.ecl-auth-privacy{border-top:1px solid var(--border);padding-top:14px;margin-top:20px}
body.ecl-auth-open{overflow:hidden}
@media(max-width:730px){.ecl-auth-top-actions{margin-left:auto}.ecl-auth-top-button{font-size:12px}.ecl-auth-dialog{padding:20px}.ecl-auth-overlay{padding:8px}.ecl-auth-dialog{max-height:calc(100dvh - 16px)}}

/* Google OAuth CTA is available only when the hosted Supabase client initializes. */
.ecl-auth-google{display:flex;align-items:center;justify-content:center;gap:12px;background:#fff!important;color:#222!important;border:1px solid #dadce0!important;font-weight:700;min-height:45px}
.ecl-auth-google:not(:disabled):hover{background:#f6f8fc!important;border-color:#9ba8b7!important}
.ecl-auth-google:disabled{opacity:.6;cursor:not-allowed}
.ecl-google-icon{width:20px;height:20px;flex:none}
.ecl-auth-divider{display:flex;align-items:center;gap:14px;margin:19px 0 2px;color:var(--muted);font-size:12px;font-weight:700}
.ecl-auth-divider:before,.ecl-auth-divider:after{content:"";height:1px;background:var(--border);flex:1}
