/* 001–011: authentication, store access and device replacement share one task shell. */
.auth-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(360px,42.2%) minmax(0,1fr);background:#f5f8f5}
.auth-brand{position:relative;display:flex;flex-direction:column;gap:0;min-height:100dvh;padding:44px;overflow:hidden;background:linear-gradient(180deg,rgb(11 37 33 / 12%),transparent 60%,rgb(11 37 33 / 45%)),url('./assets/login-brand.png') center/cover no-repeat,#0b2521;color:#fff}
.auth-logo{z-index:1;display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700;line-height:1.2}
.auth-logo span{display:grid;place-items:center;width:42px;height:42px;border:1px solid #b99b58;border-radius:10px;font-size:14px}
.auth-brand h1{z-index:1;margin:60px 0 20px;font-size:40px;line-height:1.35;letter-spacing:-.8px}
.auth-brand h1::after{display:block;width:32px;height:3px;margin-top:22px;border-radius:2px;background:#b99b58;content:""}
.auth-brand footer{z-index:1;margin-top:auto;font-size:14px}
.auth-brand footer small{display:block;margin-top:10px;color:#b9c7c3;font-size:12px}
.auth-main{display:flex;align-items:center;justify-content:center;min-width:0;padding:44px}
.auth-form{width:min(100%,430px);color:#183a35}
.auth-form h2{margin:0 0 8px;font-size:30px;line-height:1.3;letter-spacing:-.5px}
.auth-form>p.muted{margin:0 0 20px;line-height:1.65}
.auth-main .auth-form form{gap:0;margin-top:20px}
.auth-form form>label{margin:0 0 18px}
.auth-form label,.auth-takeover label{display:grid;gap:9px;margin:20px 0;font-size:14px;font-weight:600}
.auth-form input,.auth-takeover input{box-sizing:border-box;width:100%;height:52px;padding:12px;border:1px solid #ccd7dc;border-radius:10px;background:#fff;color:#243142;font-size:17px}
.auth-form input:hover,.auth-takeover input:hover{border-color:#9fb6ae}
.auth-form input:focus-visible,.auth-takeover input:focus-visible{border-color:#205f52;outline:3px solid rgb(32 95 82 / 18%);outline-offset:1px}
.auth-form input[aria-invalid=true]{border:2px solid #b23b22;background:#fff8f5}
.auth-form button[type=submit]{width:100%;min-height:52px;margin-top:18px;font-weight:650}
.auth-form button:disabled,.auth-takeover button:disabled{cursor:not-allowed}
.auth-tabs{display:flex;margin:28px 0 22px;padding:4px;border:1px solid #ccd7dc;border-radius:10px;background:#fff}
.auth-tabs button{flex:1;min-height:40px;border:0;background:#fff;color:#193b34}
.auth-tabs button[aria-pressed=true]{background:#205a50;color:#fff}
.auth-code{display:flex;gap:8px}
.auth-code input{min-width:0;flex:1}
.auth-code button{flex:none;min-width:116px;padding-inline:10px;font-size:13px}
.auth-link{min-height:40px;padding:8px 0!important;border:0!important;background:none!important;color:#285d52!important;font-size:14px}
.auth-field-hint{color:#64748b;font-size:12px;font-weight:400;line-height:1.6}
.auth-error{margin:16px 0 0;padding:12px 14px;border:1px solid #edc5bc;border-radius:10px;background:#fff3eb;color:#b23b22;font-size:13px;line-height:1.65;white-space:pre-wrap}
.auth-error:empty{display:none}
.auth-warning{padding:14px;border:1px solid #e6d8b4;border-radius:10px;background:#f7f0dc;color:#806428;font-size:13px;line-height:1.65}
.auth-stores{display:grid;gap:12px;margin:26px 0}
.auth-store{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:86px;padding:14px 16px;border:1px solid #d0dcd7!important;background:#fff!important;text-align:left}
.auth-store:hover{border-color:#87aa9d!important;box-shadow:0 3px 12px rgb(36 49 66 / 7%)}
.auth-store-copy{display:grid;gap:7px;min-width:0}
.auth-store-copy strong{overflow-wrap:anywhere;font-size:16px}
.auth-store-copy small,.auth-store-state small{color:#64748b;font-size:12px;font-weight:400;line-height:1.5}
.auth-store-state{display:grid;flex:none;gap:5px;max-width:46%;text-align:right}
.auth-store-state b{color:#205f52;font-size:13px;font-weight:650}
.auth-store-state b::after{margin-left:6px;content:"›"}
.auth-store[data-limited=true] .auth-store-state b{color:#806428}
.auth-eyebrow{margin:0 0 8px!important;color:#64748b;font-size:12px;font-weight:650;letter-spacing:.8px}
.auth-device{margin:18px 0;padding:16px;border:1px solid #d5e1da;border-radius:12px;background:#f2f6f3}
.auth-device>small{display:block;margin-bottom:7px;color:#64748b;font-size:12px}
.auth-device>strong{display:block;overflow-wrap:anywhere;font-size:16px}
.auth-device p{margin:8px 0 0;color:#64748b;font-size:13px}
.auth-takeover{box-sizing:border-box;width:min(600px,90vw);max-height:calc(100dvh - 40px);padding:30px;overflow:auto;border:0;border-radius:18px;background:#fff;color:#183a35;box-shadow:0 20px 60px rgb(11 37 33 / 20%)}
.auth-takeover::backdrop{background:#12383288}
.auth-takeover h2{margin:0;font-size:24px;line-height:1.35}
.auth-takeover form{display:block;margin-top:18px}
.auth-takeover label{margin:14px 0}
.auth-takeover p{line-height:1.65}
.auth-takeover [data-error]{color:#b23b22}
.auth-takeover [data-error]:empty{display:none}
.auth-takeover .auth-modal-actions button.secondary{border-color:#ccd7dc;background:#fff;color:#23455e}
.auth-takeover>.auth-link{margin-top:12px}
.auth-modal-actions{display:flex;gap:12px;margin-top:22px}
.auth-modal-actions button{flex:1;min-height:50px}
@media(max-width:900px){
  .auth-shell{grid-template-columns:minmax(300px,38%) minmax(0,1fr)}
  .auth-brand{padding:30px}
  .auth-brand h1{font-size:32px}
  .auth-main{padding:30px}
}
@media(max-width:760px){
  .auth-shell{grid-template-columns:1fr}
  .auth-brand{display:none}
  .auth-main{min-height:100dvh;padding:24px}
  .auth-form h2{font-size:26px}
}
@media(max-width:380px){
  .auth-main{padding:20px 16px}
  .auth-store{align-items:flex-start;flex-direction:column;gap:10px}
  .auth-store-state{max-width:100%;text-align:left}
  .auth-store-state b::after{content:""}
  .auth-code{flex-direction:column}
  .auth-code button{width:100%}
  .auth-takeover{padding:22px}
}
@media(prefers-reduced-motion:reduce){
  .auth-store{transition:none}
}

.scheduled-estimate{margin:12px 0;padding:12px;border:1px solid #c7e0d5;border-radius:9px;background:#edf6f2}
.scheduled-estimate>div{display:flex;align-items:center;justify-content:space-between}
.scheduled-estimate strong{color:#205f52;font-size:23px}
.scheduled-estimate small{color:#60756b;font-size:12px}
.scheduled-estimate p{margin:6px 0 0;font-size:13px}

.auth-icon{flex:none;width:20px;height:20px}
.auth-input-wrap{display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #ccd7dc;border-radius:10px;background:#fff;color:#64748b}
.auth-input-wrap:focus-within{border-color:#205f52;outline:3px solid rgb(32 95 82 / 18%);outline-offset:1px}
.auth-input-wrap input{min-width:0;flex:1;width:0;padding:12px 0;border:0;background:transparent}
.auth-input-wrap input:focus-visible{outline:none}
.auth-phone-prefix{padding-right:10px;border-right:1px solid #ccd7dc;font-size:15px;font-weight:400;color:#64748b}
.auth-password-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:0}
.auth-password-heading label{margin:0}
.auth-password-toggle{display:grid;place-items:center;flex:none;min-width:40px;min-height:44px;padding:8px;border:0;background:transparent;color:#285d52}
.auth-code{flex-direction:row}
.auth-code .auth-code-send{position:relative;flex:none;width:auto;min-width:110px;min-height:44px;padding:8px 0 8px 10px;border:0;border-radius:0;background:transparent;color:#285d52;font-size:13px}
.auth-code-send::before{position:absolute;top:50%;left:0;height:20px;transform:translateY(-50%);border-left:1px solid #ccd7dc;content:""}
.auth-code-status:empty{display:none}
.auth-error{display:flex;align-items:flex-start;gap:8px}
.auth-error[hidden]{display:none}
.auth-error .auth-icon{margin-top:1px}
.auth-footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px;margin-top:8px}

.auth-brand-caption{margin:4px 0 0;color:#b9d5d0;font-size:14px;font-weight:400;line-height:1.4}
.auth-phone-hint{margin:0;text-align:right;font-size:12px}
.auth-phone-hint:empty{display:none}
.auth-input-wrap:has(input[aria-invalid=true]){border:2px solid #b23b22;background:#fff8f5}
.auth-input-wrap input[aria-invalid=true]{border:0;background:transparent}
.auth-reset-input button span{display:none}
.auth-current-account{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0;padding:12px 14px;border-radius:10px;background:#e8eeeb;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.auth-current-account>span{flex:none;color:#64748b}
.auth-current-account strong{text-align:right}
.auth-form .auth-modal-actions{align-items:stretch;margin-top:0}
.auth-form .auth-modal-actions button{width:auto;min-height:54px;margin-top:0}
.auth-form .auth-modal-actions .secondary{flex:0 0 120px;border:1px solid #ccd7dc;background:#fff;color:#183a35;font-weight:400}
@media(max-width:380px){.auth-current-account{align-items:flex-start;flex-direction:column;gap:4px}.auth-current-account strong{text-align:left}.auth-form .auth-modal-actions .secondary{flex-basis:90px}}

.auth-conflict-title{display:flex;align-items:center;gap:12px}
.auth-conflict-title svg{flex:none;width:28px;height:28px}
.auth-conflict-device{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.auth-conflict-device>div{min-width:0;overflow-wrap:anywhere}
.auth-conflict-device strong{font-size:16px}
@media(max-width:520px){.auth-conflict-device{flex-direction:column;gap:10px}}

.auth-device-presence { flex:none; text-align:right; color:var(--auth-green,#14665d); white-space:nowrap; }
.auth-device-presence small { display:block; margin-top:6px; color:#637078; }

.auth-form:has(.auth-store-selection){width:min(100%,470px)}
.auth-store-selection>p.muted{margin:10px 0 0}
.auth-store-selection>p.muted::after{display:block;width:40px;height:2px;margin-top:16px;background:#b99b58;content:""}
.auth-store-card{overflow:hidden;border:1px solid #d0dcd7;border-radius:12px;background:#fff}
.auth-store-card[data-limited=true]{border-color:#edc89a}
.auth-store-card .auth-store{gap:14px;width:100%;min-height:78px;padding:16px;border:0!important;border-radius:0}
.auth-store-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:10px;background:#e3eeea;color:#205f52}
.auth-store-card[data-limited=true] .auth-store-icon{background:#edf0ef;color:#879a94}
.auth-store-card .auth-store-copy{flex:1;gap:6px}
.auth-store-card[data-limited=true] .auth-store-copy strong{color:#637570}
.auth-store-card .auth-store-state{display:flex;align-items:center;gap:16px;max-width:none}
.auth-store-card .auth-store-state b{padding:5px 10px;border-radius:20px;background:#e3eeea;font-size:12px;font-weight:400;white-space:nowrap}
.auth-store-card .auth-store-state b::after{content:none}
.auth-store-card[data-limited=true] .auth-store-state b{background:#edf0ef;color:#788a84}
.auth-store-chevron{font-size:24px;line-height:1;color:#879a94}
.auth-store-note{display:flex;align-items:flex-start;gap:8px;margin:0;padding:10px 16px;border-top:1px solid #edc89a;background:#fcf5eb;color:#9a4c0a;font-size:12px;line-height:1.6}
.auth-store-note .auth-icon{width:16px;height:16px;margin-top:2px}
.auth-store-selection>.auth-link{margin-top:2px}

.auth-password-change{width:min(520px,calc(100vw - 32px));background:#f5f8f5}
.auth-password-change-title{display:flex;align-items:center;gap:12px}
.auth-password-change-title>span{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:#e8eeeb;color:#205f52}
.auth-change-account{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;padding:12px 14px;border-radius:10px;background:#e8eeeb;font-size:14px;overflow-wrap:anywhere}
.auth-change-account>span{flex:none;color:#64748b}
.auth-change-account strong{text-align:right}
.auth-password-change form{gap:0;margin:0}
.auth-change-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.auth-change-heading label{margin:0}
.auth-change-heading .auth-link{font-size:13px}
.auth-password-change form>label{margin:18px 0 0}
.auth-password-change [data-error]:empty{display:none}
.auth-password-change .auth-modal-actions{margin-top:18px}
.auth-password-change .auth-modal-actions button{min-height:54px}
.auth-password-change .auth-modal-actions .secondary{flex:0 0 120px;border:1px solid #ccd7dc;background:#fff;color:#183a35;font-weight:400}
@media(max-width:520px){.auth-store-card .auth-store{gap:10px;padding:12px}.auth-store-card .auth-store-state{gap:8px}.auth-store-card .auth-store-state b{padding:5px 7px}.auth-store-icon{width:36px;height:36px}.auth-store-note{padding:10px 12px}.auth-change-account{align-items:flex-start;flex-direction:column;gap:4px}.auth-change-account strong{text-align:left}.auth-change-heading{align-items:flex-start;flex-direction:column;gap:0}.auth-password-change .auth-modal-actions .secondary{flex-basis:90px}}
