/* Account-first onboarding. The workspace is hidden until a verified user
   has selected a business that belongs to that account. */
html:not([data-invoiced-access="ready"]) #shell,
html:not([data-invoiced-access="ready"]) #toast,
html:not([data-invoiced-access="ready"]) #modalLayer,
html:not([data-invoiced-access="ready"]) .mobile-shade { display: none !important; }
html[data-invoiced-access="ready"] #authRoot { display: none !important; }

#authRoot { min-height: 100dvh; position: relative; z-index: 1000; background: #f4f7f6; color: #15332f; font-family: 'Manrope', sans-serif; }
.auth-scene { min-height: 100dvh; display: grid; grid-template-columns: minmax(320px,.95fr) minmax(450px,1.05fr); }
.auth-showcase { position: relative; padding: clamp(32px,6vw,92px); background: radial-gradient(circle at 80% 18%,#26756a 0%,transparent 40%),linear-gradient(151deg,#0d302e,#092421 80%); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.auth-showcase:after { content: ''; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; right: -130px; bottom: -175px; box-shadow: 0 0 0 65px rgba(255,255,255,.025),0 0 0 130px rgba(255,255,255,.018); pointer-events: none; }
.auth-brand { display: inline-flex; align-items: center; gap: 13px; font-size: 25px; font-weight: 800; letter-spacing: -.06em; }
.auth-brand svg { width: 37px; height: 37px; color: #e8c992; }
.auth-brand small { display: block; font-size: 10px; letter-spacing: .15em; font-weight: 700; color: #98c2b9; margin-top: -3px; }
.auth-mark { font-size: 11px; letter-spacing: .2em; font-weight: 800; color: #e8c992; }
.auth-showcase h1 { color: #fff; font-size: clamp(40px,4.8vw,73px); line-height: 1.07; letter-spacing: -.065em; margin: 20px 0; max-width: 720px; }
.auth-showcase p { color: #bad3cf; max-width: 520px; font-size: 16px; line-height: 1.8; }
.auth-points { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0 0; }
.auth-points span { display: inline-block; border: 1px solid rgba(216,244,231,.18); border-radius: 99px; padding: 9px 13px; font-size: 11px; font-weight: 700; color: #d2e8e1; background: rgba(255,255,255,.055); }
.auth-panel { display: grid; place-items: center; padding: 36px clamp(20px,5vw,74px); background: #f6f8f6; }
.auth-card { width: min(100%,560px); background: white; border: 1px solid #dce8e3; padding: clamp(25px,3.5vw,46px); border-radius: 24px; box-shadow: 0 28px 60px rgba(14,46,40,.07); }
.auth-topline { color: #2c8476; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.auth-card h2 { margin: 13px 0 9px; font-size: clamp(26px,2.9vw,38px); letter-spacing: -.055em; color: #102e2b; line-height: 1.15; }
.auth-card p { color: #698079; font-size: 13px; line-height: 1.65; margin: 0 0 22px; }
.auth-fields { display: grid; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.auth-field label { font-size: 11px; font-weight: 800; letter-spacing: .045em; color: #3c5e55; }
.auth-field input,.auth-field select,.auth-field textarea { font: inherit; font-size: 14px; font-weight: 600; width: 100%; padding: 13px 14px; min-height: 48px; border: 1px solid #d5e5de; border-radius: 11px; outline: 0; color: #173a32; background: #fbfdfc; box-sizing: border-box; }
.auth-field textarea { min-height: 74px; resize: vertical; }
.auth-field input:focus,.auth-field select:focus,.auth-field textarea:focus { border-color: #268777; box-shadow: 0 0 0 3px rgba(38,135,119,.13); }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 20px; min-height: 50px; border: 0; border-radius: 12px; background: #116458; color: white; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.auth-primary:hover { background: #0a5146; }
.auth-primary:disabled { opacity: .6; cursor: progress; }
.auth-secondary { padding: 8px 0; border: 0; background: none; color: #116c5c; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.auth-secondary:hover { text-decoration: underline; }
.auth-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-sep { height: 1px; background: #ebf0ed; margin: 21px 0 15px; }
.auth-callout { padding: 13px 15px; border: 1px solid #d5e8e0; background: #f3faf6; border-radius: 12px; color: #3c6c5e; font-size: 12px; line-height: 1.6; margin: 14px 0; }
.auth-error { display: none; background: #fff2f0; border: 1px solid #f5c7be; border-radius: 10px; padding: 11px 13px; font-size: 12px; color: #9c3530; margin: 0 0 15px; }
.auth-error:not(:empty) { display: block; }
.auth-smallprint { font-size: 11px !important; color: #83938b !important; margin-top: 17px !important; }
.auth-stepper { display: flex; gap: 7px; margin-bottom: 19px; }
.auth-stepper span { font-size: 10px; font-weight: 800; border-radius: 99px; padding: 6px 10px; color: #55786b; background: #edf5f1; }
.auth-stepper .active { background: #116458; color: white; }
.auth-business-list { display: grid; gap: 10px; margin: 18px 0; max-height: 330px; overflow: auto; }
.auth-business-choice { border: 1px solid #dbe9e3; background: #fbfdfc; border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer; color: #183c32; width: 100%; }
.auth-business-choice:hover { border-color: #5aa897; background: #f0faf6; }
.auth-business-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; background: #e1eee8; color: #166c5b; font-weight: 800; }
.auth-business-choice strong { display: block; font-size: 13px; }
.auth-business-choice small { color: #748a80; font-size: 11px; }
.auth-business-choice .auth-arrow { margin-left: auto; color: #207667; font-size: 22px; }
.auth-help-link { text-align: center; font-size: 12px; padding-top: 18px; color: #607d71; }
.business-switch-trigger { border: 1px solid #d3e5dd; border-radius: 11px; background: #fff; padding: 10px 13px; color: #155c50; display: flex; align-items: center; gap: 9px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; max-width: 220px; }
.business-switch-trigger span { max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.business-switch-trigger:hover { background: #eff8f4; }
.auth-signout { border: 0; background: transparent; color: #648175; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; padding: 8px; }
.auth-signout:hover { color: #bc4540; }
@media (max-width: 980px) { .auth-scene { grid-template-columns: 1fr; } .auth-showcase { min-height: 220px; padding: 28px; } .auth-showcase h1 { font-size: 34px; max-width: 610px; } .auth-showcase p { font-size: 13px; max-width: 580px; } .auth-points { padding-top: 12px; } .auth-panel { padding: 25px 18px 45px; } .auth-card { max-width: 620px; } }
@media (max-width: 600px) { .auth-showcase { min-height: 200px; padding: 22px; } .auth-showcase h1 { font-size: 31px; margin: 12px 0; } .auth-showcase p { display: none; } .auth-points span { padding: 6px 8px; font-size: 10px; } .auth-card { padding: 23px 19px; border-radius: 18px; } .auth-two { grid-template-columns: 1fr; gap: 16px; } .business-switch-trigger { padding: 8px; } .business-switch-trigger span { max-width: 95px; } .auth-signout { font-size: 11px; } }
