.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0}.header-actions>.language{margin:0}.header-actions #account-host{position:relative;min-width:0}.auth-header-buttons{display:flex;align-items:center;gap:8px}.auth-header-buttons button{font:inherit;font-size:13px;line-height:1.3;padding:8px 13px;border-radius:7px;white-space:nowrap;cursor:pointer}.auth-header-login{color:#b4c3d8;border:1px solid transparent;background:transparent}.auth-header-login:hover{color:#f1f5fc;background:#a5bedb0d}.auth-header-signup{color:#e3edf9;background:#304158;border:1px solid #a5bedb32}.auth-header-signup:hover{background:#3b506d}.auth-account-menu{position:relative;font-size:13px}.auth-account-menu>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:5px 0;color:#c8d7eb;max-width:185px;line-height:1.4}.auth-account-menu>summary::-webkit-details-marker{display:none}.auth-avatar{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;background:#2e425c;border:1px solid #aec9ea25;border-radius:50%;color:#c6d9ef;font-size:12px;font-weight:600}.auth-account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:125px}.auth-account-menu>summary svg{flex-shrink:0;color:#8b9eb7}.auth-account-popover{position:absolute;right:0;top:calc(100% + 10px);width:245px;max-width:calc(100vw - 40px);box-sizing:border-box;background:#172334;border:1px solid #a5bedb32;box-shadow:0 14px 35px #0005;border-radius:10px;padding:17px;display:grid;gap:7px;z-index:40}.auth-account-popover>b{font-size:14px;line-height:1.5;color:#dbe6f6;overflow-wrap:anywhere}.auth-private-label{font-size:10px;color:#7f95b2;margin-top:4px}.auth-account-email{font-size:12px;line-height:1.5;color:#a3b5cd;overflow-wrap:anywhere}.auth-account-popover>a{margin-top:9px;padding-top:12px;border-top:1px solid #a5bedb22;color:#b9cee9;font-size:12px;text-decoration:none}.auth-account-popover>a:hover{color:#fff}.auth-dialog{width:min(435px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid #a5bedb38;background:linear-gradient(145deg,#1b293c,#121d2b);color:#dce7f7;border-radius:14px;box-sizing:border-box;box-shadow:0 24px 90px #0008;overscroll-behavior:contain}.auth-dialog::backdrop{background:#060d18b8;backdrop-filter:blur(5px)}.auth-dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:20px}.auth-eyebrow{font-size:9px;letter-spacing:2px;color:#7f98b9;margin:0 0 11px}.auth-dialog-heading h2{font-size:25px;line-height:1.3;margin:0;letter-spacing:-.4px}.auth-close{padding:0;border:0;line-height:1;font-size:26px;background:none;color:#94a9c6;cursor:pointer}.auth-intro{margin:12px 0 23px;color:#9aadc7;font-size:13px;line-height:1.7}.auth-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:4px;background:#0b1421a8;border:1px solid #a5bedb18;border-radius:8px;margin-bottom:23px}.auth-tabs button{font:inherit;font-size:13px;padding:9px 5px;border:0;border-radius:5px;background:transparent;color:#879fbe;line-height:1.4;cursor:pointer}.auth-tabs button[aria-selected=true]{color:#ebf2fc;background:#30435d;box-shadow:0 2px 8px #0002}.auth-provider-link{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;border-radius:7px;background:#e2eaf5;color:#162437;border:1px solid #e7eef9;text-decoration:none;font-size:14px;line-height:1.5;font-weight:600}.auth-provider-link>span{font-weight:400;font-size:16px;margin-left:auto;color:#56708e}.auth-provider-link>svg{margin-right:auto;flex-shrink:0}.auth-provider-link:hover{background:#fff;color:#112033}.auth-provider-note{font-size:11px;line-height:1.8;color:#829bbd;margin:12px 0 0}.auth-mode-switch{display:flex;justify-content:center;align-items:baseline;gap:8px;font-size:12px;line-height:1.6;color:#859cba;margin-top:26px;padding-top:20px;border-top:1px solid #a5bedb19}.auth-mode-switch button,.auth-phone-account,.auth-session-retry{font:inherit;font-size:12px;color:#b8d0ed;background:none;border:0;padding:0;cursor:pointer;line-height:1.6}.auth-mode-switch button:hover,.auth-phone-account:hover{color:#fff}.auth-phone-label{font-size:12px;line-height:1.5;color:#b4c6de;display:block;margin-bottom:8px}.auth-phone-row{display:grid;grid-template-columns:115px minmax(0,1fr);gap:8px}.auth-phone-row select,.auth-phone-row input{font:inherit;font-size:12px;padding:10px 8px;border:1px solid #a5bedb2b;border-radius:6px;min-width:0;box-sizing:border-box;width:100%;background:#101b2a;color:#cddcf0;line-height:1.5;outline:none}.auth-phone-row input:focus,.auth-phone-row select:focus{border-color:#a5c5ed;box-shadow:0 0 0 2px #a5c5ed17}.auth-send-code{font:inherit;font-size:13px;line-height:1.5;margin-top:12px;padding:10px;width:100%;border:1px solid #a5bedb18;border-radius:6px;background:#29384d;color:#7e93af;opacity:.7}.auth-phone-unavailable{margin-top:17px;padding:13px 14px;border:1px solid #a5bedb1a;border-radius:7px;background:#0d17256e}.auth-phone-unavailable>b{font-size:12px;font-weight:500;color:#b1c1d8;line-height:1.5}.auth-phone-unavailable>p{font-size:11px;line-height:1.8;color:#8299b8;margin:6px 0 0}.auth-phone-account{margin-top:12px}.auth-session-error{display:flex;align-items:start;justify-content:space-between;gap:12px;font-size:11px;line-height:1.7;padding:11px;margin-bottom:15px;border:1px solid #afbbd020;border-radius:6px;color:#acbdd5}.auth-session-retry{flex-shrink:0;font-size:11px}.auth-dialog [hidden]{display:none!important}.auth-dialog :focus-visible,.header-actions :focus-visible{outline:2px solid #b3d2f5;outline-offset:3px}
@media (max-width:599px) and (orientation:portrait){.header-actions{gap:11px}.auth-header-buttons{gap:4px}.auth-header-buttons button{font-size:12px;padding:7px 10px}.auth-account-menu>summary{max-width:140px}.auth-account-name{max-width:88px}}
@media (max-width:599px) and (orientation:portrait){.header-inner{height:auto;min-height:88px;padding:12px 0;gap:10px;align-items:center}.header-inner>.brand{flex-shrink:1;min-width:0}.header-actions{flex-direction:column-reverse;align-items:flex-end;gap:7px;flex-shrink:0;max-width:116px}.auth-header-buttons{gap:3px}.auth-header-buttons button{font-size:11px;padding:5px 8px;border-radius:5px}.auth-header-login{padding-left:4px!important;padding-right:5px!important}.auth-account-menu>summary{max-width:112px;font-size:11px;gap:5px}.auth-avatar{width:23px;height:23px;font-size:10px}.auth-account-name{max-width:70px}.auth-account-menu>summary svg{display:none}.auth-account-popover{top:calc(100% + 7px);width:235px;padding:15px}.auth-dialog{padding:22px}.auth-dialog-heading h2{font-size:23px}.auth-intro{font-size:12px}.auth-tabs button{font-size:12px}.auth-provider-link{font-size:13px}.auth-phone-row{grid-template-columns:108px minmax(0,1fr)}}


/* Keep account controls on the outer edge of the shared header. */
.header-inner>.header-actions{margin-left:auto;flex-shrink:0;gap:16px}.auth-header-buttons button{height:34px;padding-top:0;padding-bottom:0}.header-actions>.language{height:34px;box-sizing:border-box;display:flex;align-items:center}
@media (max-width:599px) and (orientation:portrait){.header-inner>.header-actions{gap:6px}.auth-header-buttons button{height:28px}.header-actions>.language{height:28px}}


.header-actions .language-switch,.header-actions .auth-header-buttons button{box-sizing:border-box;height:34px;min-height:34px;max-height:34px;border-radius:7px;align-items:center}.header-actions .language-switch{display:flex;padding:3px;gap:3px}.header-actions .language-switch button{box-sizing:border-box;height:26px;min-height:26px;padding-top:0;padding-bottom:0;display:flex;align-items:center;justify-content:center}.header-actions .auth-header-buttons button{display:flex;align-items:center;justify-content:center}
@media (max-width:599px) and (orientation:portrait){.header-actions .language-switch,.header-actions .auth-header-buttons button{height:28px;min-height:28px;max-height:28px}.header-actions .language-switch button{height:20px;min-height:20px}}


/* Shared header control sizing, including nested language buttons. */
.header-inner>.header-actions{gap:8px}.header-actions .auth-header-buttons{gap:4px}.header-actions .auth-header-buttons button,.header-actions .language-switch button{font-size:13px;font-weight:600;line-height:1}.header-actions .auth-header-buttons button{padding-inline:10px;border-width:1px}.header-actions .language-switch{padding:3px;gap:2px}.header-actions .language-switch button{padding-inline:8px}.header-actions .auth-header-login{border-color:#a5bedb32;background:#182334}
@media (max-width:599px) and (orientation:portrait){.header-actions .auth-header-buttons button,.header-actions .language-switch button{font-size:11px}.header-actions .auth-header-buttons{gap:4px}.header-actions .auth-header-buttons button{padding-inline:8px}}


.header-actions .language-switch{height:34px!important;min-height:34px!important;max-height:34px!important;box-sizing:border-box!important;border:1px solid #a5bedb32!important;padding:3px!important;margin:0!important}.header-actions .auth-header-buttons button{height:34px!important;min-height:34px!important;max-height:34px!important;box-sizing:border-box!important;margin:0!important}.header-actions .language-switch button{height:26px!important;min-height:26px!important;max-height:26px!important;box-sizing:border-box!important;margin:0!important}
@media (max-width:599px) and (orientation:portrait){.header-actions .language-switch,.header-actions .auth-header-buttons button{height:28px!important;min-height:28px!important;max-height:28px!important}.header-actions .language-switch button{height:20px!important;min-height:20px!important;max-height:20px!important}}


@media (max-width:599px) and (orientation:portrait){.header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;padding:16px 0 12px;row-gap:12px}.header-inner>.brand{grid-column:1;grid-row:1}.header-inner>.header-actions{display:contents}.header-actions>.language{grid-column:2;grid-row:1;justify-self:end}.header-actions>#account-host{grid-column:1/-1;grid-row:2;justify-self:end}.auth-header-buttons{gap:6px}.auth-header-buttons button{min-width:54px}}

