.portal-legacy-header[hidden]{display:none!important}
#portal-unified-header #portal-account-menu{position:relative;display:block;margin:0;max-width:100%;font-size:14px;color:#174b3b}
#portal-unified-header #portal-account-menu>summary{cursor:pointer;list-style:none;padding:10px;overflow-wrap:anywhere;border:1px solid #c4d2cc;border-radius:4px;background:#fff;color:#174b3b}
#portal-unified-header #portal-account-menu>nav{position:absolute;right:0;top:100%;z-index:1002;display:block;min-width:170px;max-width:calc(100vw - 24px);padding:6px;background:#fff;border:1px solid #c4d2cc;border-radius:4px;box-shadow:0 4px 14px #0003}
#portal-unified-header #portal-account-menu:not([open])>nav{display:none!important}
#portal-unified-header #portal-account-menu>nav>a,#portal-unified-header #portal-account-menu button{display:block;box-sizing:border-box;width:100%;padding:12px;margin:0;text-align:left;font:inherit;color:#174b3b;background:#fff;border:0;cursor:pointer;text-decoration:none}
#portal-unified-header #portal-account-menu form{display:block;margin:0;padding:0}
#portal-unified-header{box-sizing:border-box;display:flex;align-items:center;gap:16px;flex-wrap:wrap;width:100%;height:auto;min-height:76px;padding:12px 20px;background:#fff;color:#183d30;border-bottom:3px solid #24785a;font:15px system-ui,sans-serif;position:relative;z-index:1000;letter-spacing:0}
#portal-unified-header .portal-brand{display:flex;align-items:center;flex:none;padding:0;background:none;border:0}
#portal-unified-header .portal-brand img{width:112px;height:48px;object-fit:contain}
#portal-unified-header .portal-section-title{font-size:18px;line-height:1.3;min-width:140px;overflow-wrap:anywhere;flex:1 0 140px}
#portal-unified-header .portal-header-tools,#portal-unified-header .login-welcome{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}
#portal-unified-header .portal-main-menu{position:static;margin:0;border:0;padding:0;background:none;flex:none}
#portal-unified-header .portal-main-menu>summary{display:flex;align-items:center;gap:8px;min-height:44px;box-sizing:border-box;padding:8px 12px;border:1px solid #9ab4a7;border-radius:4px;background:#f1f6f3;color:#164834;cursor:pointer;list-style:none;font-size:15px;margin:0}
#portal-unified-header summary::-webkit-details-marker{display:none}
#portal-unified-header .portal-main-menu>summary img{width:22px;height:22px}
#portal-unified-header .portal-main-menu:not([open])>nav{display:none!important}
#portal-unified-header .portal-main-menu>nav{position:absolute;left:12px;right:12px;top:100%;max-height:min(70vh,700px);overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;padding:18px;background:#fff;color:#183d30;border:1px solid #9bb2a6;border-radius:4px;box-shadow:0 6px 18px #0002;z-index:1001;text-align:left}
#portal-unified-header nav section{padding:0;margin:0;background:none;border:0;min-width:0}
#portal-unified-header nav h2{font:600 14px system-ui;margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid #ccd8d1;color:#526358}
#portal-unified-header .portal-main-menu nav a{display:block;text-align:left;padding:10px;color:#164834;text-decoration:none;border:0;border-radius:3px;white-space:normal;overflow-wrap:anywhere;background:none;font:15px system-ui}
#portal-unified-header .portal-main-menu nav a:hover,#portal-unified-header nav a[aria-current=page]{background:#e5f0e9}
#portal-unified-header :focus-visible{outline:3px solid #2376b7;outline-offset:2px}
#portal-unified-header .portal-connection{font-size:12px;max-width:220px;overflow-wrap:anywhere}
#portal-unified-header .portal-account-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#portal-unified-header .portal-header-tools{margin-left:auto}
@media(max-width:700px){#portal-unified-header{padding:10px 12px;gap:10px}#portal-unified-header .portal-brand img{width:88px;height:40px}#portal-unified-header .portal-section-title{flex-basis:calc(100% - 210px);font-size:16px}#portal-unified-header .portal-header-tools{width:100%;justify-content:flex-end}#portal-unified-header .portal-main-menu>nav{grid-template-columns:1fr}#portal-unified-header .portal-connection{max-width:100%}}
/* The account and application controls cannot change the common header geometry. */
#portal-unified-header { display:grid; grid-template-columns:190px 112px minmax(140px,1fr) minmax(120px,240px); grid-template-rows:54px; gap:16px; height:84px; min-height:84px; padding:12px 20px; }
#portal-unified-header .portal-brand img { width:190px; height:54px; max-width:100%; object-fit:contain; }
#portal-unified-header .portal-section-title { min-width:0; margin:0; }
#portal-unified-header .portal-header-tools { width:100%; min-width:0; margin:0; justify-content:flex-end; }
#portal-unified-header .login-welcome { min-width:0; max-width:100%; flex-wrap:nowrap; }
#portal-unified-header #portal-account-menu { width:100%; }
#portal-unified-header #portal-account-menu>summary { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#portal-unified-header a[aria-disabled=true] { color:#58636b; cursor:not-allowed; }
.portal-section-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; padding:8px 20px; background:#edf3ef; border-bottom:1px solid #cfdbd5; font:14px Arial,sans-serif; }
.portal-section-tools :is(button,a) { width:auto; margin:0; padding:6px 10px; }
.portal-section-tools button { background:#fff; color:#174c39; border:1px solid #a6bdb0; border-radius:4px; min-height:36px; }
#portal-unified-header :is(strong,a,summary,button) { font-family:Arial,Helvetica,sans-serif; }
#portal-unified-header .portal-main-menu>nav { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); align-items:start; }
#portal-unified-header .portal-nav-group { min-width:0; margin:0; padding:0; border:0; background:transparent; }
#portal-unified-header .portal-nav-group>summary { display:list-item; list-style:disclosure-closed inside; margin:0 0 8px; padding:0 0 8px; border-bottom:1px solid #ccd8d1; cursor:pointer; color:#526358; font:600 14px Arial,sans-serif; }
#portal-unified-header .portal-nav-group[open]>summary { list-style-type:disclosure-open; }
#portal-unified-header .portal-nav-group>summary::-webkit-details-marker { display:inline; }
#portal-unified-header .portal-nav-group:not([open])>div { display:none!important; }
/* Mail controls belong beside the account, outside its replaceable welcome node. */
#portal-unified-header{grid-template-columns:190px 112px minmax(100px,1fr) auto}
#portal-unified-header .portal-header-tools{width:auto;max-width:540px;flex-wrap:nowrap;gap:10px}
#portal-unified-header .portal-quick-tools{display:flex;align-items:center;flex:0 0 auto;min-width:0}
#portal-unified-header .soup-mail-alert-controls{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;margin:0;max-height:36px}
#portal-unified-header .soup-mail-alert-controls :is(button,a){box-sizing:border-box;min-height:36px;margin:0;padding:6px 9px;font:14px/1.3 Arial,sans-serif;white-space:nowrap;border:1px solid #a0b6aa;border-radius:4px;background:#fff;color:#164d37;text-decoration:none}
#portal-unified-header .soup-mail-alert-controls .soup-mail-audio{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;padding:7px}
#portal-unified-header .soup-mail-audio img{display:block;width:20px;height:20px}
#portal-unified-header .soup-mail-alert-controls .has-new{background:#ffe07d;color:#302400;border-color:#9e7400}
#portal-unified-header .login-welcome{width:210px;flex:0 1 210px}
#portal-unified-header .portal-account-tools{width:100%;flex-wrap:nowrap}
body.acv-portal #emergency-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:12px;margin-bottom:18px;border-bottom:1px solid #c6d2cd}
body.acv-portal #emergency-navigation>button{margin:0;align-self:center}
#portal-unified-header #portal-account-menu>summary{margin:0;line-height:1.3}
@media(min-width:801px) and (max-width:1100px){
 #portal-unified-header{grid-template-columns:130px 100px minmax(80px,1fr) auto;gap:10px;padding-inline:12px}
 #portal-unified-header .portal-brand img{width:130px}
 #portal-unified-header .portal-main-menu>summary{padding-inline:8px}
 #portal-unified-header .portal-section-title{font-size:16px}
 #portal-unified-header .login-welcome{width:170px;flex-basis:170px}
}
@media(max-width:800px) {
 #portal-unified-header { grid-template-columns:minmax(0,1fr) 112px; grid-template-rows:48px 40px; height:116px; min-height:116px; padding:8px 12px; gap:8px 12px; }
 #portal-unified-header .portal-brand img { width:174px; height:48px; }
 #portal-unified-header .portal-main-menu { grid-column:2; grid-row:1; }
 #portal-unified-header .portal-section-title { display:none; }
 #portal-unified-header .portal-header-tools { grid-row:2; grid-column:1/-1;width:100%;max-width:100%;gap:6px; }
 #portal-unified-header .login-welcome{width:auto;flex:1 1 90px}
 #portal-unified-header .portal-quick-tools{flex:0 0 auto}
 #portal-unified-header .soup-mail-alert-controls{gap:4px}
 #portal-unified-header .soup-mail-alert-controls :is(button,a){font-size:12px;padding-inline:6px}
 #portal-unified-header .portal-main-menu>nav { grid-template-columns:1fr; }
 .portal-section-tools { padding:8px 12px; }
}

/* Server-supplied owner-only metadata never grants access. */
#portal-unified-header .portal-main-menu nav a.portal-owner-only { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; border-left:3px solid #276b93; background:#edf5fa; padding-left:10px; }
#portal-unified-header .portal-owner-label { min-width:0; overflow-wrap:anywhere; }
#portal-unified-header .portal-owner-badge { font:600 11px/1.4 Arial,Helvetica,sans-serif; color:#205c7d; white-space:nowrap; }
#portal-unified-header .portal-main-menu nav a.portal-owner-only:hover,
#portal-unified-header .portal-main-menu nav a.portal-owner-only[aria-current=page] { background:#dcecf5; }
