/* Phase 3 — Firebase sign-in, onboarding and account gate */
[hidden]{display:none!important}
.account-gate{position:fixed;inset:0;z-index:400;display:grid;grid-template-columns:54% 46%;background:#f8faf8;color:#153121;overflow:auto;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.account-hero{position:relative;background:radial-gradient(circle at 82% 18%,#2eaf5e 0%,transparent 33%),linear-gradient(135deg,#073b24 2%,#116c3b 57%,#1b984a 100%);color:#fff;min-height:100vh;padding:36px clamp(28px,4.5vw,85px);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.account-hero:after{content:"";position:absolute;width:570px;height:570px;border:1px solid #ffffff1c;border-radius:50%;right:-260px;bottom:-280px;box-shadow:0 0 0 80px #ffffff0c,0 0 0 160px #ffffff09;pointer-events:none}
.account-brand{display:block;width:min(330px,76%);height:auto;max-height:108px;object-fit:contain;object-position:left center;background:#fff;border-radius:13px;padding:11px 15px;box-shadow:0 4px 20px #002d1419}
.account-hero-content{position:relative;z-index:1;max-width:610px;padding:90px 0 120px}
.account-eyebrow{letter-spacing:1.9px;font-weight:800;font-size:11px;color:#c9ecd3;margin-bottom:23px}
.account-hero h1{font-size:clamp(36px,4.1vw,63px);line-height:1.12;letter-spacing:-2.3px;margin:0 0 22px;font-weight:850}
.account-hero h1 span{color:#ffd046}
.account-hero-content>p{font-size:16px;max-width:490px;color:#def4e6;line-height:1.72;margin:0 0 36px}
.account-benefits{display:grid;gap:17px;font-size:13px;font-weight:650;color:#f2fff6}
.account-benefits div{display:flex;gap:12px;align-items:center}
.account-benefits span{display:grid;place-items:center;width:22px;height:22px;flex-shrink:0;border-radius:50%;background:#ffffff1b;color:#f6ca34}
.account-hero-footer{font-size:11px;color:#bad9c4}
.account-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px clamp(25px,4.2vw,85px);min-height:100vh}
.account-card{width:100%;max-width:470px}
.account-mobile-logo{display:none}
.account-runtime{font-size:11px;font-weight:800;letter-spacing:.3px;border-radius:30px;background:#ecf8ef;color:#14763c;padding:8px 12px;width:max-content;margin-bottom:21px}
.account-runtime.demo{background:#fff7e6;color:#9c7016}
.account-card h2{font-size:30px;line-height:1.2;letter-spacing:-.75px;margin:0 0 9px;color:#10251a}
.account-copy{color:#718076;font-size:13px;line-height:1.6;margin:0 0 26px}
.account-form{display:flex;flex-direction:column;gap:14px}
.account-form label{font-size:12px;font-weight:750;color:#344e3d;display:block;margin-bottom:7px}
.account-form input,.account-form select{width:100%;background:white;border:1px solid #dce5dd;color:#213e2b;padding:13px 13px;border-radius:9px;font:inherit;font-size:14px;outline:none}
.account-form input:focus,.account-form select:focus{border-color:#13a454;box-shadow:0 0 0 3px #23b25c14}
.account-form .two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.account-submit{border:0;border-radius:10px;padding:14px 16px;color:#fff;background:#169c4d;font-size:13px;font-weight:800;cursor:pointer;margin-top:5px;box-shadow:0 5px 14px #0a903a1a}
.account-submit:hover{background:#0a813c}.account-submit:disabled{opacity:.55;cursor:wait}
.account-tabs{display:flex;border-bottom:1px solid #dce7dd;gap:20px;margin-bottom:29px}
.account-tabs button{border:0;background:none;padding:0 0 13px;color:#7e8e82;border-bottom:3px solid transparent;font-weight:800;font-size:13px;cursor:pointer}
.account-tabs button.active{color:#159e4d;border-bottom-color:#159e4d}
.account-links{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:19px 0 0;font-size:12px}
.account-link{background:none;border:0;cursor:pointer;font-size:12px;font-weight:750;color:#168f48;text-decoration:none;padding:2px}
.account-muted{color:#85928a;font-size:11px;line-height:1.5}
.account-error{background:#fff1ef;border:1px solid #ffd5cc;color:#9d392a;padding:11px 14px;border-radius:9px;font-size:12px;margin:14px 0 0;line-height:1.5}
.account-success{background:#eaf8ef;border:1px solid #c6ead2;color:#126e35;padding:11px 14px;border-radius:9px;font-size:12px;margin:14px 0 0;line-height:1.5}
.account-demo{margin-top:25px;border-top:1px solid #e4ebe4;padding-top:20px}
.account-demo-btn{width:100%;background:#fff;border:1px solid #cfded3;border-radius:10px;color:#3e644d;font-weight:800;padding:13px;cursor:pointer;font-size:12px}
.account-panel-footer{color:#9baa9f;font-size:11px;margin-top:34px}
.account-sidebar-badge{font-size:10px;font-weight:750;color:#d89d2d;margin:7px 0}
.top-account-btn{border:1px solid #d9e4dc;background:#fff;border-radius:9px;padding:9px 12px;color:#4b6654;cursor:pointer;font-size:12px;font-weight:750}
.account-modal-overlay{position:fixed;z-index:550;inset:0;background:#061f13a1;display:grid;place-items:center;padding:18px}
.account-modal-box{background:#fff;max-width:480px;width:100%;border-radius:16px;padding:28px;box-shadow:0 20px 45px #0003}
.account-modal-box h2{margin:0 0 8px;font-size:23px}.account-modal-box p{font-size:13px;color:#66746a;line-height:1.6}
.account-modal-box button{cursor:pointer}
.account-modal-options{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.account-modal-options button{padding:11px 18px;border-radius:9px;border:1px solid #d4e0d8;background:#fff;font-weight:800;color:#4f6654}
.account-modal-options button:last-child{background:#128746;color:#fff;border:0}
@media(max-width:950px){.account-gate{grid-template-columns:1fr}.account-hero{min-height:initial;padding:24px 24px 18px}.account-brand{display:none}.account-hero-content{padding:4px 0}.account-hero h1{font-size:25px;letter-spacing:-.6px;margin:0 0 7px}.account-eyebrow{font-size:9px;margin-bottom:7px}.account-hero-content>p{font-size:11px;margin-bottom:0;line-height:1.4}.account-benefits,.account-hero-footer{display:none}.account-panel{min-height:initial;padding:36px 18px 55px}.account-mobile-logo{display:block;margin-bottom:18px}.account-mobile-logo img{max-width:240px;width:100%}.account-card{max-width:450px}}
@media(max-width:480px){.account-card h2{font-size:26px}.account-form .two-col{grid-template-columns:1fr}}
@media print{.account-gate{display:none!important}}
