/* Account UI reuses the approved palette, type and dialog system. */
#auth-entry{flex:none;min-height:36px;min-width:48px;max-width:84px;padding:7px 11px;border:1px solid var(--strong-line);border-radius:11px;background:var(--surface);color:var(--fg);font:600 12px/1.5 var(--sans);white-space:nowrap}
#auth-entry:hover{background:var(--soft)}
#auth-dialog{width:calc(100% - 32px);max-width:460px;padding:26px;overflow:auto;margin-top:calc(var(--internal-banner-height,44px) + 18px);max-height:calc(100dvh - var(--internal-banner-height,44px) - 36px)}
.auth-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.auth-dialog-top .eyebrow{margin:0;font-weight:600}
.auth-dialog-top .icon-button{font:400 26px/1 var(--sans);width:40px;min-width:40px;height:40px;padding:8px}
#auth-dialog h2{font:600 30px/1.3 var(--display);letter-spacing:0;overflow-wrap:anywhere}
.auth-intro{font:400 14px/1.7 var(--sans);color:var(--muted);margin:12px 0 20px}
.auth-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:20px}
.auth-tabs button{flex:1;min-height:40px;font-size:14px;border-radius:8px}
.auth-tabs button[aria-selected=true]{background:var(--soft);font-weight:600}
#auth-form{display:flex;flex-direction:column;gap:16px}
.auth-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.auth-field label{font:500 14px/1.5 var(--sans)}
.auth-input-wrap,.auth-password-wrap{position:relative;min-width:0}
.auth-field input{display:block;width:100%;min-width:0;min-height:48px;border:1px solid var(--strong-line);border-radius:12px;padding:11px 13px;background:var(--surface);color:var(--fg);font:400 16px/1.5 var(--sans)}
.auth-password-wrap input{padding-right:66px}
.auth-field input[aria-invalid=true]{outline:2px solid var(--fg);outline-offset:1px}
.auth-password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);min-width:50px;min-height:38px;padding:6px;border-radius:8px;font:500 12px/1.5 var(--sans)}
.auth-password-toggle:hover{background:var(--soft)}
.auth-hint{font:400 12px/1.7 var(--sans);color:var(--muted);margin:0}
#auth-password-hint{margin-top:-8px}
.auth-form-links{display:flex;justify-content:flex-end;margin-top:-6px}
.auth-text-button{font:500 13px/1.6 var(--sans);padding:6px 0;text-align:left;text-decoration:underline;text-underline-offset:3px;min-height:34px}
#auth-form>.button,.auth-mail-message>.button{width:100%;justify-content:center;margin-top:2px}
.auth-bottom-link{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px}
.auth-message{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--fg);font:400 13px/1.7 var(--sans);margin-bottom:16px;overflow-wrap:anywhere}
.auth-message[hidden]{display:none}
.auth-error{border-color:var(--strong-line);font-weight:500}
.auth-service-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin-bottom:16px;border:1px dashed var(--strong-line);border-radius:10px;font:400 12px/1.6 var(--sans);color:var(--muted)}
.auth-service-note .auth-text-button{flex:none;font-size:12px}
.auth-local-note{border-top:1px solid var(--line);margin-top:22px;padding-top:14px;font:400 11px/1.7 var(--sans);color:var(--muted)}
.auth-mail-message{display:flex;flex-direction:column;gap:16px;font:400 14px/1.7 var(--sans)}
.auth-email-target{overflow-wrap:anywhere;font-weight:600}
.auth-account-card{display:flex;flex-direction:column;gap:6px;padding:17px;border:1px solid var(--line);border-radius:13px;background:var(--surface);font:400 14px/1.6 var(--sans);overflow-wrap:anywhere}
.auth-account-card small{font-size:12px;color:var(--muted)}
.auth-account-actions{display:flex;flex-direction:column;gap:14px;margin-top:20px}
.auth-account-actions .button{justify-content:center}
.auth-preview-note p{margin:0}
.auth-unavailable-button{width:100%;justify-content:center;margin-bottom:12px}
.auth-dialog[aria-busy=true] input{opacity:.75}
@media(max-width:639px){#auth-dialog{padding:20px;max-height:calc(100dvh - var(--internal-banner-height,56px) - 24px);margin-top:calc(var(--internal-banner-height,56px) + 12px)}#auth-dialog h2{font-size:27px}.auth-intro{font-size:13px}#auth-entry{min-width:42px;max-width:70px;min-height:34px;padding:6px 8px;font-size:12px}.auth-local-note{margin-top:18px}}
@media(prefers-reduced-motion:reduce){#auth-dialog *,#auth-entry{transition:none!important;animation:none!important}}

/* Header room without removing the main search or mobile shelf entry. */
@media(max-width:639px){.nav-actions .search-launch{display:none}}
@media(max-width:359px){.nav-actions>[data-open-shelf]{display:none}}
