/* Common identity rail on the portal, project workspace and salary screens. */
:root{--rail-width:236px;--rail-ink:#213b35;--rail-line:#ccd9d0;--rail-ground:#edf2eb}
.manage-shell{display:grid;grid-template-columns:var(--rail-width) minmax(0,1fr);min-height:100svh}
.manage-main{min-width:0}
.manage-rail,#sidebar.manage-rail{box-sizing:border-box;align-self:start;position:sticky;top:0;z-index:2;display:flex;flex-direction:column;gap:22px;height:100svh;overflow-y:auto;padding:32px 17px 18px;background:linear-gradient(155deg,#f5f7ed 0%,#e8eee6 65%,#e2eee6 100%);border-right:1px solid var(--rail-line);color:var(--rail-ink)}
.manage-rail .brand-switch{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;width:100%}
.brand-switch .brand-item{position:relative;display:flex;align-items:center;min-height:55px;padding:10px 14px;box-sizing:border-box;border:1px solid transparent;border-radius:12px;text-decoration:none;background:none;box-shadow:none;margin:0;transition:background-color .15s,border-color .15s}
.brand-switch .brand-item img{display:block;object-fit:contain;width:118px;max-width:100%;height:auto}
.brand-switch .brand-item:hover{background:transparent;border-color:transparent;text-decoration:underline}
.brand-switch .brand-item:focus-visible{outline:3px solid #387968;outline-offset:2px}
.brand-switch .brand-item[aria-current=page]{min-height:76px;background:transparent;border-color:transparent;box-shadow:none}
.brand-switch .brand-item[aria-current=page]::before{content:none;position:absolute;left:-1px;top:17px;bottom:17px;border-radius:0 3px 3px 0;width:4px;background:#276453}
.brand-switch .brand-item[aria-current=page] img{width:166px}
.brand-switch .brand-item[aria-disabled=true]{opacity:.52;cursor:default}
.manage-rail .rail-body{border-top:1px solid #c5d3c7;padding-top:17px}
.manage-rail .nav{color:#344d40}.manage-rail .nav:hover{background:#dde7dc;color:#163c31}
.manage-rail .nav.active{background:#d2e3d0;color:#123c31}
.manage-rail .sidefoot{border-color:#c5d3c7;color:#4e6559}
.manage-rail .sidefoot small{color:inherit}
.manage-shell .workspace{background:#fafbf7}
.work-head{justify-content:flex-end}
body.entry-page{display:block;min-height:100svh;padding:0}
.entry-content{display:flex;align-items:center;justify-content:center;min-width:0;padding:clamp(20px,5vw,80px);background:radial-gradient(ellipse at 80% 10%,#dfeadd 0,transparent 55%),#f7f8f3}
.entry-content main{width:min(100%,480px);padding:clamp(25px,5vw,50px);border:1px solid #cbd9ce;box-shadow:0 15px 45px #163c2b0a}
.portal-main{color:#203a32;background:radial-gradient(ellipse at top right,#e5efde 0,transparent 60%),#f8f9f5}
.portal-main header{display:flex;justify-content:flex-end;padding:20px clamp(20px,4vw,48px);max-width:none}
.portal-main main{max-width:950px;margin:5vh auto;padding:0 clamp(20px,4vw,52px) 44px}
.portal-main h1{font-size:clamp(38px,5.5vw,68px);font-weight:680;letter-spacing:-.065em;color:#133d32;margin:0 0 26px}
.portal-choices{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.portal-choices .module-card{display:flex;position:relative;flex-direction:column;align-items:flex-start;border:1px solid #cddbcf;background:white;border-radius:19px;padding:clamp(20px,2.8vw,32px);text-decoration:none;color:#223b33;box-shadow:0 5px 15px #344c3408;transition:box-shadow .18s,border-color .18s}
.portal-choices .module-card:hover,.portal-choices .module-card:focus-visible{outline:2px solid #628674;outline-offset:2px;box-shadow:0 10px 26px #344c3418}
.module-card .card-identity{display:flex;align-items:center;height:55px;margin:0 0 19px}
.card-identity img{width:min(100%,196px);height:auto;display:block}
.module-card p{margin:0 0 28px;line-height:1.55;color:#435b50}
.module-card strong{margin-top:auto;display:block;border-top:1px solid #e1e8df;width:100%;padding-top:15px;font-size:15px}
@media(max-width:1050px) and (min-width:851px){:root{--rail-width:210px}.manage-rail,#sidebar.manage-rail{padding-left:12px;padding-right:12px}.brand-switch .brand-item[aria-current=page] img{width:150px}}
@media(max-width:850px){
 .manage-shell,.layout.manage-shell{display:block}
 .manage-rail,#sidebar.manage-rail{position:relative;display:flex;gap:0;padding:8px max(10px,3vw);height:auto;overflow:visible;border-right:none;border-bottom:1px solid var(--rail-line)}
 .manage-rail .brand-switch{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;align-items:stretch}
 .manage-rail .brand-switch:has([data-brand=group][aria-current]){grid-template-columns:1.4fr 1fr 1fr}
 .manage-rail .brand-switch:has([data-brand=work][aria-current]){grid-template-columns:1fr 1.4fr 1fr}
 .manage-rail .brand-switch:has([data-brand=salary][aria-current]){grid-template-columns:1fr 1fr 1.4fr}
 .brand-switch .brand-item,.brand-switch .brand-item[aria-current=page]{min-width:0;min-height:48px;padding:6px clamp(4px,1.2vw,10px);border-radius:8px;justify-content:center}
 .brand-switch .brand-item img{width:min(100%,100px)}.brand-switch .brand-item[aria-current=page] img{width:min(100%,142px)}
 .brand-switch .brand-item[aria-current=page]::before{height:3px;width:auto;top:auto;bottom:0;left:12px;right:12px;border-radius:2px}
 .manage-rail .rail-body{padding:5px 0 0;margin-top:4px;border:0}
 #sidebar.manage-rail .mobile-menu{position:static;display:block;margin:0 0 0 auto;background:white;border-color:#c7d6cb;color:#27483b;min-height:40px}
 #sidebar.manage-rail:not(.open) #nav{display:none}#sidebar.manage-rail.open #nav{display:grid}
 .portal-main main{margin:16px auto 0}.entry-content{min-height:calc(100svh - 65px)}
}
@media(max-width:620px){.portal-choices{grid-template-columns:1fr;gap:13px}.card-identity img{width:167px}.module-card .card-identity{height:auto;margin-bottom:13px}}
@media(prefers-reduced-motion:reduce){.brand-switch .brand-item,.module-card{transition:none}}
@media print{.manage-rail{display:none!important}.manage-shell{display:block}}
.layout.manage-shell{grid-template-columns:var(--rail-width) minmax(0,1fr)}
body.entry-page{place-items:normal}.entry-page .manage-shell{width:100%;min-width:0}.entry-content main{min-width:0}
@media(max-width:400px){.portal-main h1,.entry-content h1{font-size:clamp(25px,7.5vw,30px);overflow-wrap:anywhere}}