/* V1.6 palette and cards, with compact, independent navigation and explicit page structure. */
body{overflow-wrap:break-word}
#app>.sidebar{width:236px;padding:22px 15px 15px}
#app>.content{margin-left:236px;min-width:0}
#app .sidebar .brand img{width:66px;max-height:64px}
#app .sidebar .brand b{font-size:15px}
#app .sidebar .brand small{font-size:9px;line-height:1.45;letter-spacing:.025em}
#app .sidebar nav{padding:2px 3px 12px;scroll-padding:12px}
#app .nav-group{margin:4px 0}
#app .nav-group>summary{padding:10px 9px;font-size:11px;letter-spacing:.015em}
#app .nav-group .navlink{display:flex;align-items:center;gap:10px;position:relative;float:none;min-width:0;max-width:100%;width:100%;clear:both;padding:9px 11px;margin:2px 0;min-height:37px;font-size:12px;line-height:1.45;text-decoration:none;white-space:normal;box-sizing:border-box}
#app .nav-text{display:block;flex:1;min-width:0;white-space:normal;overflow-wrap:break-word}
#app .nav-arrow{display:block;flex:0 0 auto;margin-left:auto;opacity:.65}
#app .navlink.active,#app .navlink.active:hover{background:#087b50;border-left-color:#ffcc20}
#app .identity{padding:10px;line-height:1.45;font-size:11px}
#app .identity b{overflow-wrap:normal}
#app .content main{max-width:1360px;padding:28px 32px}
#app .pagehead{margin-bottom:22px}
#app .pagehead h1{font-size:clamp(25px,2.4vw,32px);margin-bottom:0}
#app .topbar{min-height:72px;padding:12px 28px}
#app .hero{padding:26px 28px;min-height:154px}
#app .hero-title{font-size:25px;line-height:1.25;margin:0 0 12px}
#app .hero p{font-size:14px}
#app .quote{font-size:20px}
#app .card{padding:24px;border-radius:18px}
#app .foot{padding-top:10px}
#app .public .hero{min-height:240px;padding:36px}
#app .public .hero h1{font-size:clamp(31px,3.5vw,44px)}
#app .public>.card>.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#hqInboxSlot{display:inline-flex;align-items:center;min-width:0}
.hq-inbox.hq-inbox-inline{position:static!important;inset:auto!important;display:inline-flex;z-index:auto}
.hq-inbox-inline .hq-inbox-trigger{border-radius:10px!important;padding:9px 12px!important;box-shadow:none!important;font:600 12px/1.4 "Segoe UI",system-ui,sans-serif;color:#004d3f!important;background:#edf4ef!important;border:1px solid #dfe9e4!important;white-space:nowrap}
.hq-inbox-count{font-size:11px}
.hq-inbox:not(.hq-inbox-inline){bottom:16px;right:16px}
.hq-inbox-dialog .hq-inbox-item h3{font-size:16px!important}
.hq-inbox-dialog .hq-inbox-actions button{width:auto!important;flex:none!important;min-height:0!important}
.hq-shell-header{min-height:72px!important;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.hq-shell-header>div>b{display:block;font:700 18px/1.4 "Segoe UI",system-ui,sans-serif}
.hq-shell-header small{display:block;color:#5b716a;font:12px/1.6 "Segoe UI",system-ui,sans-serif}
.hq-shell-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hq-shell-actions a{font:600 13px/1.5 "Segoe UI",system-ui,sans-serif}
body.hq-unified{margin:0!important;padding-top:0!important;padding-right:0!important;padding-bottom:0!important}
body.hq-unified>main{box-sizing:border-box;width:100%;max-width:1260px!important;padding:24px 32px!important}
body.hq-unified>main>.brand{display:none}
body.hq-unified .card{box-sizing:border-box;padding:24px!important;border-radius:18px!important;min-width:0}
body.hq-unified .card h1{font-size:28px!important}
body.hq-unified .card h2{font-size:22px!important}
.hq-unified-rail{overflow:hidden!important;isolation:isolate}
.hq-unified-rail nav{box-sizing:border-box!important;overflow-x:hidden!important;overflow-y:auto!important;width:100%!important;padding:2px 3px 12px!important;flex:1;min-height:0}
.hq-unified-rail nav a{box-sizing:border-box!important;position:static!important;transform:none!important;left:auto!important;width:100%!important;max-width:100%!important;padding:9px 11px!important;margin:2px 0!important;font:600 12px/1.45 "Segoe UI",system-ui,sans-serif!important;text-align:left!important;text-indent:0!important;white-space:normal!important;overflow-wrap:break-word!important}
.hq-unified-rail nav a.active{background:#087b50!important;color:white!important;box-shadow:inset 3px 0 #ffcc20}
.hq-unified-rail nav details{margin:4px 0!important;border:0!important;padding:0!important}
.hq-unified-rail nav summary{font:700 11px/1.5 "Segoe UI",system-ui,sans-serif!important;letter-spacing:.015em!important;padding:10px 9px!important;margin:0!important;text-align:left!important}
.hq-shell-menu{display:none}
body.hq-unified .row>*{min-width:0}
body.hq-unified .card p{line-height:1.65}
body.hq-unified .card .row{gap:10px}
@media(max-width:1100px){#app .topbar{padding:12px 20px}#app .content main{padding:24px}.hq-shell-actions{gap:8px}}
@media(max-width:850px){
 body.hq-unified{padding-top:64px!important;padding-left:0!important}
 .hq-unified-rail{height:64px;overflow:visible!important}
 .hq-unified-rail .hq-rail-home{display:none}
 .hq-shell-menu{display:block!important;flex:none!important;width:auto!important;padding:8px 12px!important;border:1px solid #ffffff44!important;border-radius:8px!important;background:#ffffff15!important;color:white!important;font:600 13px/1.4 system-ui!important;cursor:pointer}
 .hq-unified-rail nav{display:none!important;position:absolute!important;top:64px!important;left:0!important;right:0!important;width:100%!important;max-height:calc(100dvh - 64px);height:auto!important;background:#004638!important;padding:12px 16px 22px!important;box-shadow:0 14px 25px #002c3733;overscroll-behavior:contain}
 .hq-unified-rail.hq-menu-open nav{display:block!important}
 body.hq-unified>main{padding:20px!important}
 .hq-shell-header{padding:16px!important}
}
@media(max-width:780px){
 #app>.sidebar{width:min(290px,85vw);padding:18px 14px}
 #app>.content{margin-left:0}
 #app .content main{padding:22px 16px}
 #app .topbar{gap:10px;padding:12px 16px}
 #app .topbar .row{flex-basis:100%}
 #app .topbar-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:7px}
 #app .pagehead h1{font-size:26px}
 #app .hero{padding:22px;min-height:auto}
 #app .hero-title{font-size:22px}
 #app .card{padding:20px}
 #app .public>.card>.grid{grid-template-columns:1fr;gap:12px}
 .hq-inbox-inline .hq-inbox-trigger{font-size:11px!important;padding:8px 10px!important}
 body.hq-unified>main{padding:18px 16px!important}
 body.hq-unified .card{padding:20px!important}
}
@media print{.hq-inbox,.hq-inbox-dialog,.hq-shell-menu{display:none!important}}

#app .stats{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
@media(max-width:500px){#app .stats{grid-template-columns:1fr}}

#hqInboxSlot .hq-inbox-trigger{margin:0!important;min-width:0!important;width:auto!important;flex:none!important}
