/* One full-width workspace: desktop top navigation, mobile bottom navigation. */
.app-shell{grid-template-columns:minmax(0,1fr)!important}
.app-shell .app-main{width:100%;min-width:0}
.app-shell .topbar{display:flex!important;align-items:center;gap:24px!important;height:64px!important;min-height:64px!important;flex:0 0 64px!important;padding:0 28px!important;overflow:visible!important}
.topbar .topbar-title{display:none!important}
.header-brand{display:inline-flex;align-items:center;gap:9px;flex:none;padding:8px 0;background:transparent!important;border:0;color:var(--hm5-text);font-size:14px;font-weight:800;letter-spacing:.12em;cursor:pointer}
.header-brand svg{color:var(--hm-accent);flex:none}
.top-primary-nav{display:flex;align-items:center;gap:4px;margin-right:auto;min-width:0}
.top-primary-links{display:flex;align-items:center;gap:4px}
.top-primary-nav button{border:0;background:transparent;color:var(--hm5-muted);padding:10px 13px;min-height:40px;border-radius:8px;font-size:13px;font-weight:650;white-space:nowrap;cursor:pointer}
.top-primary-nav button:is(.active,:hover){background:var(--hm-soft);color:var(--hm-accent)}
.desktop-more-wrap{position:relative}
.desktop-more-menu{position:absolute;top:calc(100% + 10px);left:0;width:200px;padding:6px;z-index:80;background:var(--hm5-panel);border:1px solid var(--hm5-line);border-radius:10px;box-shadow:0 12px 32px #0003}
.desktop-more-menu button{display:block;width:100%;text-align:left;min-height:42px}
.topbar .topbar-actions{display:flex;align-items:center;gap:10px!important;flex:0 0 auto;flex-wrap:nowrap;margin-left:auto}
.topbar .icon-button,.topbar .avatar{display:inline-flex;align-items:center;justify-content:center;width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px;padding:8px!important;line-height:1;border-radius:10px}
.topbar .icon-button svg{width:20px;height:20px;flex:none}
.topbar .avatar{position:relative;border-radius:50%;font-size:13px;background:var(--hm-soft);color:var(--hm5-text);border:1px solid var(--hm5-line)}
.topbar [hidden],.desktop-more-menu[hidden]{display:none!important}
.profile-unread-dot{position:absolute;right:0;top:0;width:9px;height:9px;border:2px solid var(--hm-topbar);border-radius:50%;background:var(--hm-danger)}
#accountMenu{top:calc(100% + 12px);right:0;width:min(280px,calc(100vw - 24px));padding:6px;border:1px solid var(--hm5-line);border-radius:12px;background:var(--hm5-panel);color:var(--hm5-text);box-shadow:0 12px 36px #0004;overflow-y:auto}
#accountMenu:before{display:none}
#accountMenu .account-menu-head{padding:12px 12px 14px;margin-bottom:5px;border-color:var(--hm5-line);gap:5px}
#accountMenu .account-menu-head strong{font-size:14px;color:var(--hm5-text)}
#accountMenu .account-menu-eyebrow,#accountMenu .account-menu-email,#accountMenu .account-version{color:var(--hm5-muted)}
.account-version{font-size:10px;line-height:1.5}
#accountMenu .account-menu-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:42px;padding:10px 12px;margin:0;border:0;border-radius:7px;background:transparent;color:var(--hm5-text);font-size:13px;font-weight:550;text-align:left;text-decoration:none;cursor:pointer}
#accountMenu .account-menu-item:hover{background:var(--hm-soft)}
#accountMenu .account-menu-signout{color:var(--hm-danger);border-top:1px solid var(--hm5-line);border-radius:0;margin-top:5px;padding-top:12px}
#accountMenu #alertCount{position:static;min-width:18px;height:18px;border:0;padding:1px 5px;font-size:10px;line-height:1}
#alertPanel{top:calc(100% + 12px);right:0}
@media(min-width:801px){.mobile-nav{display:none!important}}
@media(max-width:800px){
 .top-primary-nav{display:none!important}
 .app-shell .topbar{gap:12px!important;height:calc(56px + env(safe-area-inset-top,0px))!important;min-height:calc(56px + env(safe-area-inset-top,0px))!important;flex-basis:calc(56px + env(safe-area-inset-top,0px))!important;padding:env(safe-area-inset-top,0px) calc(14px + env(safe-area-inset-right,0px)) 0 calc(14px + env(safe-area-inset-left,0px))!important}
 .header-brand{font-size:12px;letter-spacing:.1em}
 .header-brand svg{width:25px;height:23px}
 .topbar .topbar-actions{gap:7px!important}
 .topbar .topbar-verse-button{display:none!important}
 .mobile-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;position:fixed;bottom:0;left:0;right:0;z-index:45;background:var(--hm-topbar);border-top:1px solid var(--hm5-line);padding:5px 5px calc(8px + env(safe-area-inset-bottom,0px));}
 .mobile-nav button{min-height:44px;display:grid;justify-items:center;align-content:center;gap:2px;padding:7px 2px;border:0;border-radius:8px;background:transparent;color:var(--hm5-muted);font-size:10px;font-weight:650}
 .mobile-nav button>span{font-size:21px;line-height:1}
 .mobile-nav button.active{background:var(--hm-soft);color:var(--hm-accent)}
 #mainArea{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
 #alertPanel{position:fixed;left:12px;right:12px;top:calc(64px + env(safe-area-inset-top,0px))!important;width:auto;max-height:calc(100dvh - 150px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important}
 #accountMenu{max-height:calc(100dvh - 150px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
}

/* Home actions and helper copy should not inherit surface fills. */
body[data-hm-theme] .hm-quick-section,
body[data-hm-theme] .hm-detail-note,
body[data-hm-theme] .hm-disclaimer{background:transparent!important}
body[data-hm-theme] .hm-next-step{background:transparent!important;padding:18px 0;min-height:0;gap:14px}
body[data-hm-theme] .hm-next-step .hm-text-action{background:transparent!important;color:var(--hm-accent,var(--hm5-gold));padding:9px 0;font-size:12px}
.hm-next-mark{padding:10px;font-size:20px}
.hm-quick-section{margin:24px 0}
@media(max-width:640px){
 .hm-next-step{flex-wrap:wrap}
 .hm-next-step>.hm-text-action{margin-left:55px}
}

/* Home: one aligned content column and intentional spacing for action panels. */
#mainArea>#home{width:100%;max-width:1080px!important;margin-inline:auto;min-width:0}
#home .hm-home-head{gap:24px;flex-wrap:wrap;margin-bottom:24px}
#home .hm-position{margin-bottom:16px}
#home .hm-stat-grid{margin-bottom:16px}
#home .hm-overview-strip{margin:0 0 24px}
body[data-hm-theme] #home .hm-quick-section{
 background:var(--hm5-surface)!important;border:1px solid var(--hm5-line);
 border-radius:14px;padding:22px 24px;margin:0 0 16px;min-width:0
}
#home .hm-quick-section .hm-section-heading{margin:0 0 16px}
#home .hm-section-heading h2{font-size:22px;margin-top:5px}
#home .hm-action-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#home .hm-action-row button{min-height:44px;padding:11px 16px;white-space:normal}
body[data-hm-theme] #home .hm-next-step{
 display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;
 gap:16px;padding:20px 24px;margin:0;border:1px solid var(--hm5-line);
 border-radius:14px;background:var(--hm5-surface)!important
}
#home .hm-next-mark{display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:10px;font-size:22px}
#home .hm-next-step h2{font-size:18px;line-height:1.3;margin:5px 0}
#home .hm-next-step p{font-size:13px;line-height:1.55;max-width:55ch}
body[data-hm-theme] #home #homeNextAction{
 justify-self:end;margin:0;padding:10px 14px;min-height:42px;max-width:240px;
 border:1px solid var(--hm5-line);border-radius:9px;background:var(--hm5-raised)!important;
 color:var(--hm5-text);font-size:12px;line-height:1.4;white-space:normal;text-align:center
}
body[data-hm-theme] #home .hm-disclaimer{
 display:block;background:transparent!important;border:0;padding:0;margin:18px 2px 0;
 max-width:78ch;font-size:11px;line-height:1.65;color:var(--hm5-muted)
}
@media(max-width:760px){
 #home .hm-home-head{align-items:flex-start}
 #home .hm-period-picker{width:100%;gap:10px}
 #home .hm-period-picker label{flex:1;min-width:0}
 #home .hm-period-picker select{width:100%!important}
 body[data-hm-theme] #home .hm-next-step{grid-template-columns:36px minmax(0,1fr);gap:12px;padding:18px}
 #home .hm-next-mark{width:36px;height:36px}
 body[data-hm-theme] #home #homeNextAction{grid-column:2;justify-self:start;max-width:100%;margin:0}
 body[data-hm-theme] #home .hm-quick-section{padding:18px}
}
@media(max-width:480px){
 #home .hm-action-row{display:grid;grid-template-columns:1fr;width:100%;gap:9px}
 #home .hm-action-row button{width:100%;justify-content:center}
 #home .hm-overview-strip{grid-template-columns:1fr}
 #home .hm-overview-strip>div{padding:12px 16px;border-right:0}
 #home .hm-overview-strip>div:not(:last-child){border-right:0;border-bottom:1px solid var(--hm5-line)}
}


@media(min-width:641px) and (max-width:800px){
 #alertPanel{left:auto;right:14px;width:360px;max-width:calc(100vw - 28px)}
}
