/* Shared account controls must remain bounded even with an older Admin stylesheet cached. */
body:not(.login) #header{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;height:58px!important;min-height:58px!important;padding:6px 16px!important;margin:0!important;box-sizing:border-box!important;clear:both}
body:not(.login) #header .engine-header-brand{display:flex!important;align-items:center!important;gap:8px!important;color:#183544;text-decoration:none;min-width:0;flex:0 1 auto}
body:not(.login) #header .engine-header-brand img,.public-engine-header img{width:36px!important;height:30px!important;min-width:36px!important;max-width:36px!important;max-height:30px!important;object-fit:contain!important;display:block}
.engine-header-brand span{font:700 16px/1.2 Arial,sans-serif}.engine-header-brand small{display:block;font-size:10px;font-weight:400}
body:not(.login) #header .custom-userbar{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;padding:0!important;min-width:0}
body:not(.login) #header #user-tools{position:relative!important;float:none!important;margin:0!important;padding:0!important;top:auto!important;right:auto!important}.custom-userbar .user-avatar{width:36px!important;height:36px!important}.custom-userbar .user-info{padding:0!important;margin:0!important}
select[data-account-menu]{width:145px;max-width:36vw;height:32px;padding:4px 24px 4px 7px;border:1px solid #9eb7c5;border-radius:3px;background:#f5fafc;color:#183544;font:12px Arial,sans-serif}
#account-auth-dialog{position:fixed;inset:0;width:min(430px,calc(100vw - 28px));max-height:90vh;overflow:auto;padding:24px;border:1px solid #94afbf;border-radius:10px;background:white;color:#183544;font:14px/1.45 system-ui;box-sizing:border-box;box-shadow:0 12px 45px #152c3d45}
#account-auth-dialog:not([open]){display:none}#account-auth-dialog::backdrop{background:#152c3d88}#account-auth-dialog .auth-close{position:absolute;right:10px;top:8px;padding:3px 9px;background:white;color:#183544;border:0;font-size:24px;cursor:pointer}#account-auth-dialog h2{font-size:23px;margin:0 0 16px}#account-auth-dialog label{display:block;margin:12px 0 5px;font-weight:600}#account-auth-dialog input:not([type=hidden]){display:block;width:100%;box-sizing:border-box;padding:10px;border:1px solid #819eaf;border-radius:4px;color:#183544;background:white;font:inherit}#account-auth-dialog small{display:block;font-size:11px;color:#456073}#account-auth-dialog .errorlist,#account-auth-dialog [role=alert]{color:#a41414}#account-auth-dialog button{cursor:pointer;font:inherit}#account-auth-dialog button[type=submit]{margin-top:17px;padding:10px 20px;border:0;background:#087a8c;color:white;border-radius:4px}#account-auth-dialog [data-auth-mode]{border:0;background:transparent;color:#006578;text-decoration:underline;padding:0}
@media(max-width:650px){body:not(.login) #header{padding:5px 8px!important;gap:6px!important;height:auto!important;min-height:52px!important}.engine-header-brand small{display:none}.engine-header-brand span{font-size:12px}.custom-userbar .user-avatar{width:28px!important;height:28px!important}select[data-account-menu]{width:110px}.public-engine-header{flex-wrap:wrap}}

.custom-userbar{margin-left:auto}[data-account-menu-logout][hidden]{display:none!important}select[data-account-menu]{width:200px;max-width:55vw;display:inline-block!important;visibility:visible!important;opacity:1!important}
#profile-create-dialog select{display:block!important;position:static!important;width:100%!important;height:38px!important;clip:auto!important;opacity:1!important;visibility:visible!important;padding:7px 9px;border:1px solid #819eaf;background:white;color:#183544}
#profile-create-dialog input[type=checkbox]{display:inline-block!important;position:static!important;width:17px!important;height:17px!important;appearance:auto!important;opacity:1!important;clip:auto!important;vertical-align:middle;margin:3px 8px 3px 0!important}
#profile-create-dialog label:before,#profile-create-dialog label:after{display:none!important}
#profile-create-dialog h2{margin:8px 0 12px}#profile-create-dialog form>p{margin:10px 0}#profile-create-dialog label{margin:0 0 5px;display:block}#profile-create-dialog input:not([type=checkbox]):not([type=hidden]){box-sizing:border-box;width:100%;padding:8px;border:1px solid #819eaf}
#profile-create-dialog form>p:has(input[type=checkbox]){display:flex;align-items:start;gap:6px}#profile-create-dialog form>p:has(input[type=checkbox]) label{order:1;font-weight:400}#profile-create-dialog form>p:has(input[type=checkbox]) input{flex:0 0 auto}
