/* One centered heading row, preserving each existing Back handler. */
html body main .hub-page-heading{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;width:100%;margin:0 0 8px;min-height:44px}
html body main .hub-page-heading::after{content:'';width:44px}
html body main .hub-page-heading>:is(h1,h2){grid-column:2;grid-row:1;text-align:center;margin:0!important;min-width:0;font-size:22px;line-height:1.25}
html body main .hub-page-heading>:is(button,a){grid-column:1;grid-row:1;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:44px!important;min-width:44px!important;height:44px;min-height:44px;padding:4px!important;margin:0!important;font-size:20px}
html body main :is(.account-nav,.account-head nav):empty{display:none}
/* A returning dashboard reserves geometry only while its live request loads. */
html[data-hub-business-return] body #business-dashboard [data-biz-view=home]>.biz-alert[hidden]{display:flex!important;visibility:hidden;min-height:var(--hub-business-request-height);height:var(--hub-business-request-height);flex:none}
html[data-hub-business-return] body main>#home.active{visibility:hidden}
/* Language follows the same typography and touch targets as its menu neighbors. */
html body #business-dashboard #biz-account-menu .biz-language-slot{width:100%;padding:0;min-height:44px}
html body #business-dashboard #biz-account-menu #language-toggle{box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;gap:10px;width:100%;max-width:none;height:44px;min-height:44px;margin:0;padding:10px 12px;border:0;border-bottom:1px solid #e8edf3;border-radius:0;background:#fff;color:#172d71;font:600 14px/1.4 system-ui;text-align:start}
html body #business-dashboard #biz-account-menu #language-toggle::before{content:'›';width:16px;text-align:center;font-size:18px;color:#61718a}
html body #business-dashboard #biz-account-menu #language-toggle>svg{display:none}
html body #business-dashboard #biz-account-menu #language-toggle>span:last-child{margin-inline-start:auto}
html body #language-menu{padding:6px!important;border:1px solid #d6dfeb;border-radius:10px;box-shadow:0 8px 24px #15255422;background:#fff;scrollbar-gutter:stable}
html body #language-menu button{box-sizing:border-box;display:block;width:100%;max-width:none;min-width:0;height:auto!important;min-height:44px!important;margin:0!important;padding:8px 12px!important;border:0!important;border-radius:6px!important;background:white;color:#172d71;font:500 14px/1.4 system-ui!important;text-align:start!important;white-space:normal}
html body #language-menu button[aria-checked=true]{background:#eef1fa;font-weight:700!important}
html body #expense-category-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html body #expense-category-totals>button:first-child{grid-column:1/-1}
html body #expense-category-totals>button[aria-pressed=true]{background:#172d79;color:white;border-color:#172d79}
html body #expense-category-totals>button[aria-pressed=true] strong{color:inherit}

html body main .hub-page-heading>:is(button,a){position:static!important;inset:auto!important}
html body main .hub-page-heading:has(>:is(h1,h2)[hidden]){display:none}
html body main #directory-service-step:has(#category-choice-heading[hidden]) #directory-back-to-property{display:none!important}

/* Override the earlier menu rule and inherited language-button font together. */
html body #business-dashboard #biz-account-menu .biz-menu-panel #language-toggle{font:600 14px/1.4 system-ui!important;color:#172d71!important;opacity:1!important;padding:10px 12px!important;min-height:44px!important;height:44px!important;max-height:none!important;gap:10px!important;letter-spacing:normal!important}
html body #business-dashboard #biz-account-menu .biz-menu-panel #language-toggle>span{font:inherit!important;color:inherit!important;opacity:1!important}
html body #business-dashboard #biz-account-menu .biz-menu-panel #language-toggle::before{flex:0 0 16px;font-size:18px;line-height:1;margin:0}
