/* Shared web navigation. PWA never mounts these elements. */
html.trek-shared-shell body>.header,html.trek-shared-shell .trek-obsolete-scroll,html.trek-shared-shell .profile-tabs-nav[hidden],html.trek-shared-shell #workspace-rail-tooltip{display:none!important}
html.trek-web-navigation body{background:radial-gradient(ellipse 680px 430px at 0 4%,#e5efff,transparent 76%),radial-gradient(ellipse 560px 380px at 100% 28%,#eeeaff,transparent 78%),#f5f8fd!important}
.trek-web-shell,.trek-web-shell *,.trek-menu-popup *,.trek-search-panel *,.trek-account-panel *,.trek-menu-section *{box-sizing:border-box}
html.trek-shared-shell body>.trek-web-shell{position:sticky;top:10px;z-index:100;display:grid;grid-template-columns:auto 38px minmax(0,1fr) auto;align-items:center;gap:10px;width:calc(100% - 40px);margin:12px 20px 18px;padding:8px 14px;background:#fff;border:1px solid #dce5f3;border-radius:18px;box-shadow:0 6px 24px #20345709;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#5c6d87;isolation:isolate}
.trek-web-shell .trek-wordmark{display:flex;align-items:baseline;gap:12px;min-width:0;max-width:270px;padding-right:10px;text-decoration:none!important;color:#172033;white-space:nowrap;border-right:1px solid #e5ebf5}
.trek-web-shell .trek-wordmark-text{font-size:32px;font-weight:800;line-height:1.15;letter-spacing:-1.5px;flex:none}
.trek-web-shell .trek-page-label{position:relative;top:-5px;font-size:13px;font-weight:600;line-height:1.3;letter-spacing:0;color:#64748b;min-width:0;overflow:hidden;text-overflow:ellipsis}
.trek-web-shell .trek-shell-toggle{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #dce5f3;border-radius:10px;background:#fff;color:#64748b;cursor:pointer}
.trek-web-shell .trek-shell-toggle:disabled{opacity:.35;cursor:default}
.trek-web-shell .trek-menu{display:flex;min-width:0;width:100%;height:50px;position:relative}
.trek-web-shell .trek-menu-strip{display:flex;align-items:center;gap:7px;flex:1;min-width:0;height:50px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:4px 2px}
.trek-web-shell .trek-menu-group{flex:0 0 auto;line-height:0}
html.trek-shared-shell .trek-menu-control{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;width:42px;height:42px;padding:9px;border:1px solid transparent;border-radius:11px;background:transparent;color:#5c6d87;text-decoration:none;font:inherit;cursor:pointer;transition:background-color 140ms ease,color 140ms ease,border-color 140ms ease}
.trek-web-shell .trek-menu-control>span{display:none}
html.trek-shared-shell .trek-menu-control svg,.trek-web-shell .trek-shell-toggle svg{display:block;width:24px;height:24px;min-width:24px;min-height:24px;flex:0 0 24px;stroke-width:1.8;transform:none!important;filter:none}
html.trek-shared-shell .trek-menu-control:hover{background:#f0f4fc;color:#315ed9}
html.trek-shared-shell .trek-menu-control.trek-menu-current{background:#eaf1ff;border-color:#d1dfff;color:#285beb}
html.trek-shared-shell .trek-menu-control:focus-visible,.trek-shell-toggle:focus-visible{outline:2px solid #769bfa;outline-offset:1px}
.trek-web-shell .trek-shell-actions{display:flex;align-items:center;gap:6px;flex:none;padding-left:10px;border-left:1px solid #e5ebf5;min-width:0}
html.trek-shared-shell .trek-web-shell .trek-action-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important;flex:0 0 42px!important;margin:0!important;padding:9px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#5c6d87!important;position:relative;box-shadow:none!important;text-decoration:none;cursor:pointer}
html.trek-shared-shell .trek-web-shell .trek-action-icon svg{width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;min-height:24px!important;max-height:24px!important;flex:0 0 24px!important;margin:0!important;transform:none!important;stroke-width:1.8}
.trek-web-shell .trek-shell-actions>.notify{position:relative;width:42px;flex:0 0 42px;margin:0}
.trek-web-shell .header-user-links{display:flex;align-items:center;margin:0;padding:0;flex:none}
.trek-web-shell .header-profile-link{display:flex;align-items:center;gap:8px;max-width:165px;padding:4px 6px!important;border:0!important;border-radius:10px;background:transparent!important;text-decoration:none!important;color:#25334a;font-size:12px;font-weight:600;white-space:nowrap}
.trek-web-shell .header-profile-avatar{display:grid;place-items:center;width:34px!important;height:34px!important;flex:0 0 34px;border-radius:50%;overflow:hidden;color:#fff}
.trek-web-shell .header-profile-avatar svg{width:21px;height:21px}.trek-web-shell .header-profile-avatar img{width:100%;height:100%;object-fit:cover}
.trek-menu-popup,.trek-search-panel,.trek-account-panel{position:fixed;z-index:200;background:#fff;border:1px solid #dce5f3;border-radius:14px;box-shadow:0 12px 28px #20345718;color:#455775;font-family:inherit}
.trek-menu-popup[hidden],.trek-search-panel[hidden],.trek-account-panel[hidden],.trek-search-results[hidden],.trek-menu-scroll[hidden]{display:none!important}
.trek-menu-popup{width:min(340px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:65vh;padding:8px;overflow:auto;overscroll-behavior:contain}
.trek-menu-popup strong{display:block;padding:9px 10px;font-size:13px;color:#24324b}
html.trek-shared-shell .trek-menu-popup .trek-menu-control{display:flex;justify-content:flex-start;width:100%;height:auto;min-height:40px;padding:9px;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.trek-menu-popup .trek-menu-control>span{display:inline}
.trek-menu-section{display:flex;align-items:center;gap:5px;width:calc(100% - 40px);margin:0 20px 18px;padding:6px 10px;border:1px solid #e1e8f2;border-radius:12px;background:#fff;overflow:hidden}
.trek-menu-section-track{display:flex;gap:5px;flex:1 1 0;min-width:0;width:0;overflow-x:auto;scrollbar-width:none}
html.trek-shared-shell .trek-menu-section .trek-menu-control{width:auto;height:36px;padding:6px 9px;font-size:12px;white-space:nowrap}
html.trek-shared-shell .trek-menu-section .trek-menu-scroll{width:32px;flex:0 0 32px;padding:4px}.trek-menu-scroll>span{display:none}.trek-menu-scroll:disabled{opacity:.3;cursor:default}
.trek-search-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);padding:12px;overflow:auto}
.trek-search-panel input{min-width:0;width:100%;padding:10px;border:1px solid #dce5f3;border-radius:9px;font:inherit;font-size:13px}
.trek-search-panel>button{border:0;border-radius:9px;background:#285beb;color:#fff;padding:10px 14px;font:inherit;font-size:13px;cursor:pointer}
.trek-search-results{grid-column:1/-1;display:grid;gap:3px;border-top:1px solid #edf1f7;padding-top:8px;font-size:13px;color:#64748b}.trek-search-results>a{display:grid;gap:3px;padding:10px;border-radius:9px;color:#34455f;text-decoration:none}.trek-search-results>a:hover{background:#eef4ff}.trek-search-results strong{font-size:13px;font-weight:600}.trek-search-results small{font-size:11px;color:#7b879b}
.trek-account-panel{width:240px;max-width:calc(100vw - 24px);padding:6px}
.trek-account-panel>a,.trek-account-panel>button{display:block!important;width:100%!important;height:auto!important;min-height:38px!important;padding:9px 12px!important;text-align:left!important;color:#455775;background:transparent!important;border:0!important;border-radius:8px!important;font:inherit!important;font-size:13px!important;line-height:20px!important;text-decoration:none!important;cursor:pointer}
.trek-account-panel>a:hover,.trek-account-panel>button:hover{background:#f0f4fa!important}.trek-account-panel>.header-logout-link{border-top:1px solid #edf1f7!important;border-radius:0!important;margin-top:4px}.trek-account-panel #a11yToggle>span{display:inline!important}
html.trek-shared-shell .profile-page-beta .profile-tabs-nav[hidden]{display:none!important}
html.trek-shared-shell .profile-page-beta>.workspace-hero{padding:22px!important;min-height:0!important;border-radius:18px!important}.profile-page-beta .profile-identity-strip{box-shadow:none!important}.profile-page-beta .workspace-title{font-size:28px!important}
@media(max-width:1250px){.trek-web-shell .trek-page-label{display:none}.trek-web-shell .header-profile-link>span:last-child{display:none}.trek-web-shell .header-profile-link{padding:4px!important}}
@media(max-width:860px){html.trek-shared-shell body>.trek-web-shell{position:relative;top:0;grid-template-columns:auto 38px minmax(0,1fr) auto;gap:6px;width:calc(100% - 20px);margin:10px;padding:6px 10px;border-radius:14px}.trek-web-shell .trek-wordmark{border:0;padding:0}.trek-web-shell .trek-wordmark-text{font-size:28px}.trek-web-shell .trek-shell-actions{gap:2px;padding-left:5px}.trek-web-shell .header-mail-btn,.trek-web-shell .header-deldoc-btn,.trek-web-shell a[href$="/lock"]{display:none!important}.trek-menu-section{width:calc(100% - 20px);margin:0 10px 12px}}
@media(max-width:540px){html.trek-shared-shell body>.trek-web-shell{grid-template-columns:auto 38px minmax(0,1fr) auto}.trek-web-shell .trek-shell-actions>.notify,.trek-web-shell .header-chat-btn{display:none!important}.trek-web-shell .trek-menu-strip{gap:3px}}
@media(prefers-reduced-motion:reduce){.trek-web-shell *,.trek-menu-popup,.trek-menu-section{transition:none!important;animation:none!important}}
/* Keep action sizing rules from overriding compact web visibility. */
@media(max-width:860px){html.trek-shared-shell .trek-web-shell .trek-shell-actions :is(.header-mail-btn,.header-deldoc-btn,a[href$="/lock"]){display:none!important}}
@media(max-width:540px){html.trek-shared-shell .trek-web-shell .trek-shell-actions :is(.header-chat-btn,.notify){display:none!important}}
/* Compact gap between the shared header and page content. */
html.trek-shared-shell body>.trek-web-shell{margin-bottom:8px}
html.trek-shared-shell body>main.container{padding-top:0!important}
html.trek-shared-shell .mycab-beta-page{padding-top:6px!important}
.trek-menu-tour-shade{position:fixed;inset:0;background:#17243b66;z-index:30000}
.trek-menu-tour-ring{position:fixed;z-index:30001;border:2px solid #7399ff;border-radius:14px;background:#ffffff12;pointer-events:none;box-sizing:border-box}
.trek-menu-tour-dialog{position:fixed;z-index:30002;max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:22px;border:1px solid #dce5f3;border-radius:18px;background:#fff;color:#24324b;box-shadow:0 18px 60px #182b5240;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.trek-menu-tour-dialog small{font-size:11px;color:#6e82a4;font-weight:600}.trek-menu-tour-dialog h2{margin:10px 0;font-size:20px;line-height:1.3;font-weight:650}.trek-menu-tour-dialog p{margin:0;font-size:14px;line-height:1.65;color:#64748b}.trek-menu-tour-dialog>div{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-top:20px}.trek-menu-tour-dialog button{padding:9px 11px;border:1px solid #dce5f3;background:#fff;color:#536681;border-radius:9px;cursor:pointer;font:inherit;font-size:12px}.trek-menu-tour-dialog button[data-menu-tour-next]{color:#fff;background:#2c5bf0;border-color:#2c5bf0}.trek-menu-tour-dialog button[hidden]{display:none}.trek-menu-tour-dialog button:focus-visible{outline:2px solid #7399ff;outline-offset:2px}
/* A module keeps its home link; the adjacent chevron opens its working pages. */
.trek-menu-popup .trek-menu-branch{display:flex;align-items:center;gap:2px;border-radius:11px;min-width:0}.trek-menu-popup .trek-menu-branch>.trek-menu-control{flex:1;min-width:0}.trek-menu-popup .trek-menu-branch-arrow{border:0;background:transparent;color:#7e8da6;flex:0 0 32px;min-height:38px;border-radius:8px;display:grid;place-items:center;cursor:pointer}.trek-menu-branch:hover,.trek-menu-branch.is-open{background:#f0f4fc}.trek-menu-branch-arrow:hover,.trek-menu-branch-arrow:focus-visible{background:#e6eefc;color:#3567b7}.trek-menu-nested{width:310px}.trek-menu-popup.trek-menu-nested-overlay{z-index:205;box-shadow:0 18px 60px #20345730}.trek-menu-nested .trek-menu-control{min-height:37px!important;font-size:13px!important}.trek-menu-branch-arrow svg{width:16px;height:16px}
.trek-menu-nested-back{border:0;background:transparent;color:#627897;padding:9px 10px;text-align:left;cursor:pointer;font:inherit;font-size:12px;border-radius:8px}.trek-menu-nested-back:hover{background:#eff4fc}
