#ehca-dialog.ehca-account-popover{position:fixed;inset:auto;margin:0;left:var(--account-left,12px);top:var(--account-top,80px);width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - var(--account-top,80px) - 12px);padding:0;border:0;border-radius:16px;overflow:auto;box-shadow:0 12px 40px #0003;}
#ehca-dialog.ehca-account-popover::backdrop{background:transparent;}
#ehca-dialog.ehca-account-popover .ehca-card{width:100%;max-width:none;padding:0;box-shadow:none;border:0;}
#ehca-dialog.ehca-account-popover .ehca-content{padding:18px 20px;}
#ehca-dialog.ehca-account-popover .ehca-eyebrow,#ehca-dialog.ehca-account-popover #ehca-description,#ehca-dialog.ehca-account-popover #ehca-types{display:none;}
#ehca-dialog.ehca-account-popover .ehca-brand{display:flex;padding:14px 20px;letter-spacing:0;}
#ehca-dialog.ehca-account-popover .ehca-brand #ehca-title{display:block;font-size:18px;}
#ehca-dialog.ehca-account-popover .ehca-identity{padding:0 0 12px;margin:0;border-bottom:1px solid #e5e5e5;}
#ehca-dialog.ehca-account-popover #ehca-profile-status:empty{display:none;}
#ehca-dialog.ehca-account-popover .ehca-account-menu{display:flex;flex-direction:column;}
#ehca-dialog.ehca-account-popover .ehca-account-menu button,#ehca-dialog.ehca-account-popover [data-action="image-bank"],#ehca-dialog.ehca-account-popover [data-action="logout"]{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:0;border-bottom:1px solid #e7e7e7;border-radius:0;padding:14px 3px;margin:0;background:white;color:#333;font-size:16px;line-height:1.3;font-weight:500;text-transform:none;}
#ehca-dialog.ehca-account-popover .ehca-account-menu span{display:inline-flex;justify-content:center;width:24px;font-size:24px;}
#ehca-dialog.ehca-account-popover .ehca-account-menu button:hover{background:#f3f6f4;}
#ehca-dialog.ehca-account-popover [data-action="logout"]{color:#c01818;border-bottom:0;font-weight:700;}
#ehca-dialog.ehca-account-popover [hidden]{display:none!important;}
#ehca-dialog.ehca-account-popover .ep-profile-testing{border-top:1px solid #ddd;margin-top:12px;padding-top:12px;}

#ehca-dialog .ehca-admin-tools{display:none;border-top:2px solid #dce4dd;margin-top:14px;padding-top:14px;}
#ehca-dialog .ehca-admin-tools:has([data-action="image-bank"]:not([hidden])),#ehca-dialog .ehca-admin-tools:has(.ep-profile-testing){display:block;}
#ehca-dialog .ehca-admin-tools h3{font-size:15px;margin:0 0 10px;text-transform:none;}
#ehca-dialog .ehca-admin-tools .ep-profile-testing{border:0;margin:0;padding:0 0 10px;}
#ehca-dialog.ehca-account-popover .ehca-account-menu button,#ehca-dialog.ehca-account-popover [data-action="image-bank"],#ehca-dialog.ehca-account-popover [data-action="logout"]{justify-content:flex-start;}

#ehca-dialog.ehca-account-popover [data-action="logout"]{justify-content:center;text-align:center;}
#ehca-dialog.ehca-account-popover .ehca-account-menu svg,#ehca-dialog.ehca-account-popover [data-action="image-bank"] svg{width:24px;height:24px;flex:0 0 24px;}
#ehca-dialog.ehca-account-popover .ehca-identity{text-align:left;justify-content:flex-start;gap:12px;}
#ehca-dialog.ehca-account-popover .ehca-profile-photo{width:48px;height:48px;flex:0 0 48px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#eef2ee;}
#ehca-dialog.ehca-account-popover .ehca-profile-photo img{width:100%;height:100%;object-fit:cover;}
#ehca-dialog.ehca-account-popover .ehca-admin-tools{text-align:left;}
#ehca-dialog.ehca-account-popover [data-action="catalog-refresh"]{display:block;width:100%;text-align:center;border:1px solid #739900;border-radius:10px;padding:12px 14px;margin:10px 0 4px;background:#99cc00;color:#18320f;font-size:15px;line-height:1.3;font-weight:700;text-transform:none;box-shadow:0 2px 4px #0002;cursor:pointer;}
#ehca-dialog.ehca-account-popover [data-action="catalog-refresh"]:hover{background:#89b800;}
#ehca-dialog.ehca-account-popover [data-action="catalog-refresh"]:disabled{opacity:.6;cursor:wait;}

#ehca-dialog .ehca-brand{gap:16px;align-items:center;}
#ehca-dialog .ehca-brand #ehca-title{margin:0;font-size:22px;line-height:1.25;text-transform:none;color:inherit;}
#ehca-dialog .ehca-brand .ehca-close{flex-shrink:0;}
#ehca-dialog:not(.ehca-account-popover) .ehca-content{padding-top:18px;}
#ehca-dialog .ehca-brand #ehca-title{letter-spacing:0;font-size:20px;}

/* Keep company registration compact without shrinking text or touch targets. */
#ehca-dialog:has([data-view="register"]:not([hidden])) .ehca-content{padding:14px 24px 16px;}
#ehca-dialog:has([data-view="register"]:not([hidden])) #ehca-description{margin-bottom:10px;}
#ehca-dialog #ehca-register-form{margin:10px 0 4px;}
#ehca-dialog #ehca-register-form label{margin-bottom:4px;}
#ehca-dialog #ehca-register-form input:not([type="radio"]){height:44px;margin-bottom:10px;}
#ehca-dialog #ehca-register-form .ehca-password{margin-bottom:10px;}
#ehca-dialog #ehca-register-form .ehca-password input{margin:0;}
#ehca-dialog #ehca-register-form .ehca-person-type{margin-bottom:12px;}
#ehca-dialog #ehca-register-form .ehca-person-type legend{margin-bottom:4px;}
#ehca-dialog #ehca-register-form .ehca-person-type label{padding:9px 11px;margin:0;}
#ehca-dialog #ehca-register-form .ehca-hint{margin:-3px 0 10px;}
#ehca-dialog #ehca-register-submit{margin:8px 0 2px;}
#ehca-dialog #ehca-register-back{margin:0;}
#ehca-dialog .ehca-admin-tools .ep-profile-testing > strong{display:none;}

#ehca-dialog .ehca-admin-tools .ep-profile-testing > p{display:none;}
#ehca-dialog .ehca-admin-tools{margin-top:8px;padding-top:10px;}
#ehca-dialog .ehca-admin-tools h3{margin-bottom:6px;}
#ehca-dialog .ehca-admin-tools .ep-profile-testing{padding-bottom:8px;}
#ehca-dialog .ehca-admin-tools .ep-profile-testing button{padding:8px 9px;font-size:13px;min-height:40px;}
#ehca-dialog.ehca-account-popover [data-action="image-bank"]{border:1px solid #bdd0c2;border-radius:8px;background:#f0f6f2;padding:10px 12px;}
#ehca-dialog.ehca-account-popover [data-action="image-bank"]:hover{background:#e3efe6;border-color:#267342;}

#ehca-dialog.ehca-account-popover [data-action="image-bank"]{background:#238345;border-color:#1b7139;color:#fff;font-weight:700;}
#ehca-dialog.ehca-account-popover [data-action="image-bank"]:hover{background:#196b36;border-color:#155b2d;}
#ehca-dialog .ehca-admin-tools .ep-profile-testing button{min-height:34px;padding:6px 9px;}

#ehca-dialog.ehca-account-popover [data-action="catalog-refresh"]{display:flex;align-items:center;justify-content:flex-start;gap:14px;text-align:left;}
#ehca-dialog.ehca-account-popover [data-action="catalog-refresh"]::before{content:"";display:block;width:24px;height:24px;flex:0 0 24px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7v5h-5M4 17v-5h5M6.1 6.1A8 8 0 0 1 20 12M4 12a8 8 0 0 0 13.9 5.9'/%3E%3C/svg%3E") center/contain no-repeat;}