/* Primary navigation reserves the same icon, label and caret tracks in every module. */
#work-shell>aside>.hub-menu{scrollbar-gutter:stable}
#work-shell>aside .hub-menu :is(#module-navigation>button,#task-management-nav,#client-nav-parent,#year-end-nav,#nonresident-nav,#hst-nav,#payroll-nav,#single-invoice-nav,#hub-settings-nav,#toolbox-nav,#business-my-tasks-nav,#business-management-nav)[hidden]{display:none!important}
#work-shell>aside .hub-menu :is(#module-navigation>button,#task-management-nav,#client-nav-parent,#year-end-nav,#nonresident-nav,#hst-nav,#payroll-nav,#single-invoice-nav,#hub-settings-nav,#toolbox-nav,#business-my-tasks-nav,#business-management-nav){display:grid!important;grid-template-columns:18px minmax(0,1fr) 12px!important;column-gap:5px!important;align-items:center;box-sizing:border-box;width:100%;min-width:0;padding:9px 5px!important;border:1px solid transparent!important;white-space:nowrap}
#work-shell>aside .hub-menu :is(#module-navigation>button,#task-management-nav,#client-nav-parent,#year-end-nav,#nonresident-nav,#hst-nav,#payroll-nav,#single-invoice-nav,#hub-settings-nav,#toolbox-nav,#business-my-tasks-nav,#business-management-nav):focus-visible{outline:2px solid #b8ddff!important;outline-offset:-3px}
#work-shell>aside .hub-menu :is(#module-navigation>button,#task-management-nav,#client-nav-parent,#year-end-nav,#nonresident-nav,#hst-nav,#payroll-nav,#single-invoice-nav,#hub-settings-nav,#toolbox-nav,#business-my-tasks-nav,#business-management-nav)>svg{grid-column:1;grid-row:1;width:18px;height:18px;min-width:18px;margin:0}
#work-shell>aside .hub-menu :is(#module-navigation>button,#task-management-nav,#client-nav-parent,#year-end-nav,#nonresident-nav,#hst-nav,#payroll-nav,#single-invoice-nav,#hub-settings-nav,#toolbox-nav,#business-my-tasks-nav,#business-management-nav)>span:not(.recurring-nav-caret){grid-column:2;grid-row:1;min-width:0}
#work-shell>aside .hub-menu :is(#module-navigation>button,#task-management-nav,#client-nav-parent,#year-end-nav,#nonresident-nav,#hst-nav,#payroll-nav,#single-invoice-nav,#hub-settings-nav,#toolbox-nav,#business-my-tasks-nav,#business-management-nav)>.recurring-nav-caret{grid-column:3;grid-row:1;justify-self:end;position:relative;display:block;width:12px;height:12px;margin:0;line-height:12px;font-size:0!important;transform:none!important}
#work-shell>aside .hub-menu :is(#module-navigation>button,#task-management-nav,#client-nav-parent,#year-end-nav,#nonresident-nav,#hst-nav,#payroll-nav,#single-invoice-nav,#hub-settings-nav,#toolbox-nav,#business-my-tasks-nav,#business-management-nav)>.recurring-nav-caret::before{content:"";position:absolute;left:3px;top:3px;width:5px;height:5px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:rotate(-45deg)}
#work-shell>aside .hub-menu :is(#module-navigation>button,#task-management-nav,#client-nav-parent,#year-end-nav,#nonresident-nav,#hst-nav,#payroll-nav,#single-invoice-nav,#hub-settings-nav,#toolbox-nav,#business-my-tasks-nav,#business-management-nav)[aria-expanded=true]>.recurring-nav-caret::before{top:2px;transform:rotate(45deg)}
/* Toolbox uses a label span; keep its text at the shared label track start. */
#work-shell>aside .hub-menu #toolbox-nav{text-align:left}

.hub-menu button .task-navigation-caption{min-width:0;white-space:normal;word-break:keep-all;overflow-wrap:normal;text-align:left;line-height:1.4}

/* Counted leaf entries have no caret; the submenu entry also has no icon. */
#work-shell>aside .hub-menu #assigned-to-me-nav>.task-navigation-caption{grid-column:1/-1;grid-row:1}
#work-shell>aside .hub-menu #signature-nav>.task-navigation-caption{grid-column:2/-1!important;grid-row:1}
