/* The header owns its layout; existing tabs/actions keep their original IDs. */
:root{--pc-header-height:72px;--pc-header-extra:14px;--pc-first-banner-height:0px}
.home-header{height:auto;min-height:72px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;padding:12px 24px;align-items:center;background:#fff;border-bottom:1px solid #e1e8e4;box-shadow:0 3px 14px #203c2c05;position:sticky;top:0;z-index:25;isolation:isolate;overflow:visible}
.home-header *{box-sizing:border-box}
.home-brand{display:flex;align-items:center;gap:10px;min-width:0;max-width:265px;line-height:1.2}
.home-brand-mark{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;background:#1e7550;color:#fff;border-radius:11px;font-size:23px;font-weight:800;box-shadow:inset 0 0 0 1px #ffffff1f}
.home-brand-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.home-brand #programBrand{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;letter-spacing:-.4px;font-weight:750;color:#1e2c25}
.home-brand-caption{font-size:10px;font-weight:400;letter-spacing:.02em;color:#7b8980;white-space:nowrap}
.home-version{align-self:flex-start;margin-top:1px;background:#f0f4f1;color:#748179;font-size:10px;padding:3px 5px;white-space:nowrap}
.home-header .home-primary-nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;min-width:0;overflow:visible;white-space:normal;flex:none}
.home-primary-nav>.tab,.home-primary-nav>.home-menu>summary{min-height:44px;border:1px solid transparent;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 13px;line-height:20px;white-space:nowrap;color:#55645c;font-weight:600;font-size:14px;background:transparent;text-decoration:none}
.home-primary-nav>.tab{flex:0 1 auto;min-width:0}
.home-primary-nav>.tab.active,.home-primary-nav>.home-menu>summary.active{background:#e9f4ed;color:#1c6c45;border-color:#e0eee5;box-shadow:0 1px 2px #24533905}
.home-header button:hover,.home-header summary:hover{background:#f3f7f4;color:#235c3e}
.home-header button:focus-visible,.home-header summary:focus-visible{outline:3px solid #3a956c80;outline-offset:2px}
.home-header .count-badge{position:static;flex:0 0 auto;min-width:18px;height:18px;line-height:18px;padding:0 5px;margin:0;border-radius:6px;font-size:10px;font-weight:700;vertical-align:middle}
.home-header .home-header-actions{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px}
.home-menu{position:relative;min-width:0}
.home-menu>summary{cursor:pointer;list-style:none;user-select:none;-webkit-tap-highlight-color:transparent}
.home-menu>summary::-webkit-details-marker{display:none}
.home-header .home-menu-trigger{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 11px;border:1px solid #e1e7e3;border-radius:11px;line-height:20px;font-size:13px;font-weight:600;color:#4c5f53;background:#fff;white-space:nowrap}
.home-menu[open]>summary{background:#f0f7f2;border-color:#bfd7c7;color:#216543}
.home-chevron{display:block;flex:0 0 14px;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .14s ease}
.home-menu[open]>summary>.home-chevron{transform:rotate(180deg)}
.home-more-menu{flex:0 1 auto;max-width:190px}
#headerMoreLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-more-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:6px;background:#f6e9c9;color:#856622;font-size:10px;font-weight:700}
.home-menu-panel{position:absolute;top:calc(100% + 10px);left:0;width:256px;max-width:calc(100vw - 24px);max-height:min(640px,calc(100dvh - var(--pc-header-height) - 22px));overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #dde8e0;border-radius:16px;padding:8px;box-shadow:0 12px 36px #21372b26,0 2px 6px #21372b08;color:#263d2e;z-index:1;white-space:normal;text-align:left}
.home-menu-panel button,.home-menu-panel .tab{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#3c5144;font-size:14px;line-height:20px;text-align:left;white-space:normal;overflow-wrap:anywhere;font-weight:500}
.home-menu-panel .tab.active{color:#1f7049;background:#eaf5ee;font-weight:700}
.home-menu-panel .count-badge{margin-left:auto}
.home-menu-group+.home-menu-group{border-top:1px solid #edf1ee;margin-top:6px;padding-top:6px}
.home-menu-heading{padding:8px 12px 5px;color:#8a978f;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;line-height:15px}
.home-menu-divider{height:1px;background:#edf1ee;margin:6px 4px}
.home-tools-panel,.home-profile-panel{left:auto;right:0}
.home-tools-panel{width:304px}
.home-menu-panel button small{display:block;font-size:11px;line-height:17px;font-weight:400;color:#8b978f}
.home-action-symbol{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border:1px solid #dbe8de;background:#f1f7f3;border-radius:9px;font-size:10px;letter-spacing:-.5px;font-weight:800;color:#4a765a}
.home-tools-icon{flex:0 0 17px;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.45}
.home-action-icon{flex:0 0 31px;width:31px;height:31px;padding:5px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.home-header .home-profile-trigger{padding:5px 9px 5px 5px;gap:8px;border-color:transparent;background:#f6f8f6;max-width:220px}
.home-user-initials{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:10px;background:#e1eee4;color:#306b46;font-size:12px;font-weight:700;letter-spacing:-.2px}
.home-profile-trigger #who{display:block;min-width:0;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;color:#425548}
.home-profile-panel{width:240px}
.home-profile-identity{margin:0 4px 4px;padding:2px 8px 12px;border-bottom:1px solid #edf1ee;font-size:14px;font-weight:600;line-height:21px;color:#2d4736;overflow-wrap:anywhere;white-space:normal}
.home-menu-panel #logoutBtn{color:#aa5149}
.home-menu-panel #logoutBtn:hover{background:#fcf1ef;color:#9e423b}
.home-header details:not([open])>.home-menu-panel{display:none}
.home-header [hidden]{display:none!important}
#app>.settings-menu,#app .settings-menu{top:var(--pc-header-height);z-index:15}
#app>.email-reminder-banner{top:var(--pc-header-height);z-index:19}
#app>#videoEmailBanner{top:calc(var(--pc-header-height) + var(--pc-first-banner-height));z-index:18}
#app>main .board-wrap{max-height:calc(100vh - 125px - var(--pc-header-extra))}
#app .chat-hub-conversation{height:calc(100vh - 90px - var(--pc-header-extra))}
#app .chat-hub-split{height:calc(100vh - 190px - var(--pc-header-extra))}
#app .chat-hub-conversation-pane>.chat-hub-conversation{height:100%}
@media(max-width:1279px){
 .home-header{grid-template-columns:minmax(0,1fr) auto;gap:9px 16px;padding:11px 20px 9px;min-height:114px}
 .home-brand{grid-column:1;grid-row:1;max-width:100%}
 .home-header-actions{grid-column:2;grid-row:1}
 .home-header .home-primary-nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;padding-top:7px;border-top:1px solid #edf1ee}
 .home-primary-nav>.tab{flex:0 1 auto}
 .home-more-menu{max-width:230px}
 .home-more-menu .home-menu-panel{left:auto;right:0}
}
@media(max-width:650px){
 .home-header{padding:9px 12px 7px;gap:6px 8px;min-height:110px}
 .home-brand{gap:7px}
 .home-brand-mark{width:31px;height:31px;flex-basis:31px;border-radius:10px;font-size:20px}
 .home-brand #programBrand{font-size:16px;max-width:180px;letter-spacing:-.3px}
 .home-brand-caption,.home-version{display:none}
 .home-header .home-header-actions{gap:4px}
 .home-header .home-tools-trigger{width:44px;padding:8px;border-color:transparent;background:#f5f8f5}
 .home-tools-label,.home-tools-trigger>.home-chevron{display:none}
 .home-header .home-profile-trigger{width:44px;padding:5px;border-color:transparent;background:transparent;justify-content:center}
 .home-profile-trigger #who,.home-profile-trigger>.home-chevron{display:none}
 .home-user-initials{flex-basis:32px;width:32px;height:32px;border-radius:10px}
 .home-header .home-primary-nav{display:grid;grid-template-columns:repeat(var(--pc-nav-columns,5),minmax(0,1fr));gap:3px;padding-top:6px;min-width:0}
 .home-primary-nav>.tab,.home-primary-nav>.home-menu>summary{font-size:12px;padding:9px 4px;gap:3px;border-radius:9px;min-height:44px;line-height:18px}
 .home-primary-nav>.home-menu{width:100%;max-width:100%}
 .home-primary-nav>.home-menu>summary>.home-chevron{width:11px;height:11px;flex-basis:11px}
 .home-header .count-badge,.home-more-badge{min-width:15px;height:16px;line-height:16px;padding:0 3px;font-size:9px;border-radius:5px}
 .home-menu-panel{position:fixed;top:calc(var(--pc-header-height) + 8px);left:12px!important;right:12px!important;width:auto;max-width:none;max-height:calc(100dvh - var(--pc-header-height) - 24px);border-radius:15px}
 .home-profile-panel{left:auto!important;min-width:min(260px,calc(100vw - 24px));width:min(260px,calc(100vw - 24px))}
 .home-tools-panel{left:auto!important;min-width:min(310px,calc(100vw - 24px));width:min(310px,calc(100vw - 24px))}
}
@media(max-width:430px){
 .home-header .home-primary-nav{grid-template-columns:repeat(var(--pc-nav-small-columns,3),minmax(0,1fr));gap:6px}
 .home-primary-nav>.tab,.home-primary-nav>.home-menu>summary{font-size:12px;padding:10px 3px;gap:3px}
}
@media(max-width:370px){.home-brand #programBrand{font-size:15px;max-width:145px}.home-header{padding-left:9px;padding-right:9px}}
@media(prefers-reduced-motion:reduce){.home-header *{transition:none!important;animation:none!important}}

/* Owner preference editor: no fixed table widths on tablets or narrow browsers. */
.navigation-menu-scope{color:#61766a;font-size:13px;line-height:1.5;max-width:720px}
.navigation-menu-rows{display:grid;gap:8px;max-width:720px;margin:18px 0}
.navigation-menu-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;border:1px solid #dce7e0;border-radius:12px;min-width:0}
.navigation-menu-choice{display:flex;align-items:center;gap:12px;flex:1;min-width:0;cursor:pointer;margin:0}
.navigation-menu-choice input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#1e7550}
.navigation-menu-choice span{min-width:0;overflow-wrap:anywhere}
.navigation-menu-choice b{display:block;font-size:14px;font-weight:600;line-height:1.4}
.navigation-menu-choice small{display:block;color:#718378;font-size:12px;margin-top:3px;line-height:1.4}
.navigation-menu-order{display:flex;gap:5px;flex:0 0 auto}
.navigation-menu-order button{width:40px;min-height:40px;padding:5px;font-size:18px;line-height:1}
.navigation-menu-order button:disabled{opacity:.28;cursor:default}
.navigation-menu-actions{display:flex;flex-wrap:wrap;gap:8px}
.navigation-menu-status{min-height:24px;margin-top:12px;font-size:14px;line-height:1.5;color:#286a48;max-width:720px}
.navigation-menu-status.error{color:#b43232}
@media(max-width:650px){.home-primary-nav>.tab{white-space:normal;overflow-wrap:anywhere;min-height:44px;height:100%}.navigation-menu-row{padding:10px;gap:8px}.navigation-menu-choice{gap:8px}.navigation-menu-order button{width:36px;min-height:40px}}
