/* Owns the authenticated workspace shell and home; module-specific layouts stay scoped to their modules. */
#appScreen.workspace-modern {
  --home-bg:#f4f7fb;--home-surface:#fff;--home-text:#16243c;--home-muted:#65748b;
  --home-border:#dce4ef;--home-blue:#0865e8;--home-sidebar:#082c70;
  --global-bg:var(--home-bg);--global-surface:var(--home-surface);--global-text:var(--home-text);
  --global-border:var(--home-border);--global-sidebar:224px;--global-topbar:64px;
  background:var(--home-bg);color:var(--home-text);
}
#appScreen.workspace-modern .shell-main {background:var(--home-bg)!important;}
#appScreen.workspace-modern .sidebar {background:var(--home-sidebar)!important;border-right:0!important;color:#e9effb!important;}
#appScreen.workspace-modern .sidebar-brand {border-color:#ffffff20!important;min-height:54px!important;}
#appScreen.workspace-modern .sidebar-brand:has(img[src^="/logo-sidebar"])::before {filter:brightness(0) invert(1);}
#appScreen.workspace-modern .sidebar-brand img[src^="/logo-sidebar"] {filter:brightness(0) invert(1);}
#appScreen.workspace-modern .sidebar-search {background:#ffffff0d!important;border-color:#ffffff25!important;color:#c9d6ed!important;}
#appScreen.workspace-modern .sidebar-search input {color:#eef4ff!important;}
#appScreen.workspace-modern .sidebar-search input::placeholder {color:#c3cfe3!important;}
#appScreen.workspace-modern .firm-navigation {display:none!important;}
#appScreen.workspace-modern .sidebar .sidebar-nav {display:flex!important;gap:4px!important;}
#appScreen.workspace-modern .sidebar-nav>.nav-item {display:flex!important;}
#appScreen.workspace-modern .sidebar-nav>.sidebar-nav-group {display:flex!important;flex-direction:column;}
#appScreen.workspace-modern .sidebar .nav-item,
#appScreen.workspace-modern .sidebar .sidebar-group-toggle {
  box-sizing:border-box;position:relative;min-height:42px!important;margin:0!important;padding:10px 12px!important;
  border:0!important;border-radius:6px!important;background:transparent!important;color:#dae5f7!important;
  font-size:13px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;
}
#appScreen.workspace-modern .sidebar-group-toggle>span {display:flex;align-items:center;gap:12px;}
#appScreen.workspace-modern .sidebar-group-toggle svg {width:18px;height:18px;color:#b6c9e7!important;}
#appScreen.workspace-modern .sidebar-group-toggle>svg {width:14px;height:14px;}
#appScreen.workspace-modern .sidebar .nav-label {color:inherit!important;font-size:inherit!important;font-weight:inherit!important;}
#appScreen.workspace-modern .sidebar .nav-icon {background:transparent!important;color:#b6c9e7!important;width:22px!important;min-width:22px!important;}
#appScreen.workspace-modern .sidebar .nav-item:hover,
#appScreen.workspace-modern .sidebar .sidebar-group-toggle:hover {background:#ffffff10!important;color:#fff!important;}
#appScreen.workspace-modern .sidebar .nav-item.active {background:#ffffff14!important;color:#fff!important;}
#appScreen.workspace-modern .sidebar .nav-item.active::before {background:#ffbe00!important;top:7px;bottom:7px;width:3px;}
#appScreen.workspace-modern .sidebar-nav-group.is-expanded>.sidebar-group-toggle {background:#ffffff0c!important;color:#fff!important;}
#appScreen.workspace-modern .sidebar-nav-group .nav-item {font-size:12px!important;margin-left:15px!important;width:calc(100% - 15px)!important;padding-left:16px!important;}
#appScreen.workspace-modern .sidebar .account-menu--sidebar {background:var(--home-sidebar)!important;border-top:1px solid #ffffff25!important;padding-top:10px;}
/* Let the account footer occupy its actual height instead of covering the final navigation item. */
#appScreen .sidebar .account-menu--sidebar {position:relative!important;inset:auto!important;flex:0 0 auto!important;width:100%;box-sizing:border-box;margin:8px 0 0!important;}
#appScreen .sidebar .sidebar-nav {flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;padding-bottom:12px!important;scroll-padding-block:8px;}
#appScreen .sidebar .sidebar-nav>* {flex-shrink:0;}
#appScreen .sidebar .mobile-support-menu {box-sizing:border-box;align-items:center!important;gap:12px!important;min-height:42px!important;text-decoration:none!important;}
#appScreen .sidebar .mobile-support-menu .nav-label {min-width:0;white-space:normal;line-height:1.4!important;}
#appScreen.workspace-modern .sidebar .account-pill,
#appScreen.workspace-modern .sidebar #logoutBtn.sidebar-signout {color:#e9effb!important;background:transparent!important;border-color:#ffffff25!important;}
#appScreen.workspace-modern .sidebar .account-pill .avatar {background:#ffffffde;color:#082c70;}
#appScreen.workspace-modern .sidebar #logoutBtn.sidebar-signout:hover {background:#ffffff10!important;}
#appScreen.workspace-modern .sidebar .sidebar-nav .nav-item[hidden],
#appScreen.workspace-modern .sidebar-nav>.nav-item.user-module-hidden,
#appScreen.workspace-modern .sidebar-nav>.nav-item.commercial-access-hidden,
#appScreen.workspace-modern .sidebar-nav>.sidebar-nav-group.commercial-group-hidden,
#appScreen.workspace-modern .sidebar-nav>.sidebar-nav-group.user-module-group-hidden,
#appScreen.workspace-modern .sidebar-nav>.sidebar-nav-group[hidden] {display:none!important;}

#appScreen.workspace-modern #liquidTopNav {background:var(--home-surface)!important;border-bottom:1px solid var(--home-border)!important;box-shadow:none!important;backdrop-filter:none!important;gap:12px!important;}
#appScreen.workspace-modern .liquid-nav-scroll,#appScreen.workspace-modern .liquid-divider,#appScreen.workspace-modern .liquid-logo {display:none!important;}
#appScreen.workspace-modern .workspace-breadcrumb {display:flex;align-items:center;gap:9px;min-width:0;margin-right:auto;font-size:13px;color:var(--home-muted);white-space:nowrap;}
#appScreen.workspace-modern .workspace-breadcrumb i {font-style:normal;color:#a5b1c3;}
#appScreen.workspace-modern .workspace-breadcrumb b {font-weight:500;overflow:hidden;text-overflow:ellipsis;max-width:210px;}
#appScreen.workspace-modern .shell:not(.dashboard-mode) .workspace-breadcrumb {display:none;}
#appScreen.workspace-modern .shell.dashboard-mode .global-top-search,
#appScreen.workspace-modern .shell.dashboard-mode .oa-launch {display:none!important;}
#appScreen.workspace-modern .global-taxpayer {margin-left:0!important;min-width:0!important;}
#appScreen.workspace-modern #globalTaxpayerToggle {border:1px solid var(--home-border)!important;border-radius:6px!important;background:var(--home-surface)!important;height:38px!important;padding:6px 10px!important;min-width:170px!important;max-width:240px!important;}
#appScreen.workspace-modern #globalTaxpayerToggle b {font-size:12px!important;font-weight:500!important;color:var(--home-text)!important;}
#appScreen.workspace-modern #globalTaxpayerToggle small {font-size:10px!important;}
#appScreen.workspace-modern.firm-workspace #globalTaxpayerToggle small,
#appScreen.workspace-modern.firm-workspace #globalTaxpayerToggle>span {display:none!important;}
#appScreen.workspace-modern .workspace-period {display:flex;gap:4px;align-items:center;}
#appScreen.workspace-modern .workspace-period :is(#portfolioYear,#portfolioMonth) {width:auto;min-width:76px;height:38px!important;min-height:38px!important;padding:6px 10px!important;border:1px solid var(--home-border)!important;border-radius:6px!important;background:var(--home-surface)!important;color:var(--home-text)!important;font:500 12px Inter,system-ui,sans-serif;}
#appScreen.workspace-modern .shell:not(.dashboard-mode) .workspace-period {display:none;}
#appScreen.workspace-modern .liquid-account-short {margin-right:46px!important;width:34px!important;height:34px!important;background:#e4eaf6!important;color:#082c70!important;}
body:has(#appScreen.workspace-modern:not([hidden])) .user-notification-center {top:12px!important;right:21px!important;}
body:has(#appScreen.workspace-modern:not([hidden])) .notification-bell {width:36px;height:36px;border:0;background:transparent;color:var(--global-text);box-shadow:none;border-radius:6px;}

#appScreen.workspace-home-enabled #dashboardView {max-width:1600px!important;padding:28px 26px 36px!important;}
#appScreen.workspace-home-enabled #dashboardView>.welcome-banner,
#appScreen.workspace-home-enabled #dashboardActiveCompany,
#appScreen.workspace-home-enabled #workflowStart,
#appScreen.workspace-home-enabled #dashboardOperationalSummary,
#appScreen.workspace-home-enabled #complianceCenter,
#appScreen.workspace-home-enabled #dashGrid,
#appScreen.workspace-home-enabled .dash-section-head--soon,
#appScreen.workspace-home-enabled .dash-grid--soon,
#appScreen.workspace-home-enabled .dashboard-security-note,
#appScreen.workspace-home-enabled .shell.dashboard-mode #workContext {display:none!important;}
#appScreen.workspace-home-enabled #accountingPortfolioDashboard {display:block!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important;box-shadow:none!important;}
#appScreen.workspace-modern .workspace-home {color:var(--home-text);font-size:13px;line-height:1.5;}
#appScreen.workspace-modern .workspace-home * {box-sizing:border-box;}
#appScreen.workspace-modern .workspace-home h1 {font-size:29px!important;line-height:1.2!important;font-weight:700!important;margin:0 0 7px!important;color:var(--home-text)!important;}
#appScreen.workspace-modern .workspace-home h2 {font-size:16px!important;font-weight:650!important;margin:0!important;color:var(--home-text)!important;}
#appScreen.workspace-modern .workspace-home button {cursor:pointer;}
#appScreen.workspace-modern .workspace-home button:disabled {cursor:default;opacity:.45;}
#appScreen.workspace-modern .workspace-home button:focus-visible,
#appScreen.workspace-modern .sidebar button:focus-visible {outline:2px solid #ffbe00!important;outline-offset:3px!important;}
#appScreen.workspace-modern .workspace-home svg {width:18px;height:18px;flex:none;stroke-width:1.7;}
#appScreen.workspace-modern .home-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;}
#appScreen.workspace-modern .home-heading p {margin:0;color:var(--home-muted);font-size:14px;}
#appScreen.workspace-modern .home-heading-actions {display:flex;align-items:center;gap:8px;}
#appScreen.workspace-modern .home-primary {display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:40px!important;padding:9px 16px!important;border:1px solid var(--home-blue)!important;border-radius:6px!important;background:var(--home-blue)!important;color:#fff!important;font-size:13px!important;font-weight:600!important;white-space:nowrap;}
#appScreen.workspace-modern .home-refresh {display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid var(--home-border);border-radius:6px;background:var(--home-surface);color:var(--home-muted);}
#appScreen.workspace-modern .home-kpis {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px;}
#appScreen.workspace-modern .home-kpis>article {display:flex;align-items:center;gap:15px;min-height:108px;padding:19px;border:1px solid var(--home-border);border-radius:8px;background:var(--home-surface);}
#appScreen.workspace-modern .home-kpis>article>span {display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:50%;background:#edf4ff;color:var(--home-blue);}
#appScreen.workspace-modern .home-kpis>article>span svg {width:23px;height:23px;}
#appScreen.workspace-modern .home-kpis>article>div {flex:1;min-width:0;}
#appScreen.workspace-modern .home-kpis small {display:block;font-size:12px;color:var(--home-muted);}
#appScreen.workspace-modern .home-kpis b {display:flex;align-items:center;gap:8px;font-size:27px;line-height:1.4;font-weight:650;color:var(--home-text);}
#appScreen.workspace-modern .home-kpis b em {font-size:19px;font-weight:550;font-style:normal;}
#appScreen.workspace-modern .home-kpi-close>span {background:#eaf8f0;color:#139254;}
#appScreen.workspace-modern .home-warning-dot {width:10px;height:10px;border-radius:50%;background:#eea10b;}
#appScreen.workspace-modern .home-progress {display:flex;align-items:center;gap:8px;margin-top:4px;}
#appScreen.workspace-modern .home-progress>span {height:6px;flex:1;border-radius:10px;background:var(--home-border);overflow:hidden;}
#appScreen.workspace-modern .home-progress i {display:block;height:100%;background:#139254;}
#appScreen.workspace-modern .home-progress small {font-size:11px;}
#appScreen.workspace-modern .home-grid {display:grid;grid-template-columns:minmax(0,2.6fr) minmax(255px,1fr);align-items:start;gap:16px;margin-bottom:18px;}
#appScreen.workspace-modern :is(.home-table-panel,.home-attention,.home-route) {min-width:0;border:1px solid var(--home-border);border-radius:8px;background:var(--home-surface);overflow:hidden;}
#appScreen.workspace-modern .home-table-panel>header {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 18px;border-bottom:1px solid var(--home-border);flex-wrap:wrap;}
#appScreen.workspace-modern .home-filters {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
#appScreen.workspace-modern .home-filters label {display:flex;align-items:center;gap:7px;margin:0!important;padding:0 10px;border:1px solid var(--home-border);border-radius:6px;height:36px;color:var(--home-muted);}
#appScreen.workspace-modern #portfolioSearch {min-height:0!important;height:32px!important;width:145px;min-width:0;padding:0!important;border:0!important;background:transparent!important;font-size:12px!important;color:var(--home-text)!important;box-shadow:none!important;outline-offset:3px;}
#appScreen.workspace-modern #portfolioStatus {width:156px;min-height:36px!important;height:36px!important;padding:5px 8px!important;border:1px solid var(--home-border)!important;border-radius:6px!important;background:var(--home-surface)!important;font-size:12px!important;color:var(--home-text)!important;}
#appScreen.workspace-modern .home-table-scroll {overflow-x:auto;}
#appScreen.workspace-modern .home-table-scroll table {width:100%;min-width:660px;font-size:12px!important;border-collapse:collapse;}
#appScreen.workspace-modern .home-table-scroll table th {padding:11px 16px!important;background:var(--home-bg);color:var(--home-muted);font-size:11px!important;font-weight:600!important;text-align:left;}
#appScreen.workspace-modern .home-table-scroll table td {padding:14px 16px!important;vertical-align:middle;border-top:1px solid var(--home-border);font-size:12px!important;}
#appScreen.workspace-modern .home-table-scroll table tbody tr:hover {background:var(--home-bg);}
#appScreen.workspace-modern .home-client {display:block!important;width:100%!important;padding:0!important;border:0!important;background:transparent!important;color:var(--home-text);text-align:left!important;min-width:0!important;min-height:0!important;}
#appScreen.workspace-modern .home-client b {display:block;font-size:12px;font-weight:550;line-height:1.45;max-width:230px;}
#appScreen.workspace-modern .home-client small {display:block;color:var(--home-muted);font-size:10px;margin-top:2px;}
#appScreen.workspace-modern .home-status {display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border-radius:20px;background:#eff2f7;color:#607189;font-size:11px;white-space:nowrap;}
#appScreen.workspace-modern .home-status>span {width:7px;height:7px;border-radius:50%;background:#91a0b6;}
#appScreen.workspace-modern .home-status.good {background:#e8f8ef;color:#137c49;}
#appScreen.workspace-modern .home-status.good>span {background:#169c60;}
#appScreen.workspace-modern .home-status.warning {background:#fff5e4;color:#9b6507;}
#appScreen.workspace-modern .home-status.warning>span {background:#eca10b;}
#appScreen.workspace-modern .home-link {display:inline-flex;align-items:center;gap:7px;padding:2px 0!important;border:0;background:transparent;color:var(--home-blue);font-size:12px;font-weight:550;text-align:left!important;min-height:0!important;min-width:0!important;}
#appScreen.workspace-modern .home-link svg {width:14px;height:14px;}
#appScreen.workspace-modern .home-table-panel>footer {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-top:1px solid var(--home-border);color:var(--home-muted);font-size:11px;}
#appScreen.workspace-modern .home-table-panel footer nav {display:flex;align-items:center;gap:8px;}
#appScreen.workspace-modern .home-table-panel footer button {display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--home-border);border-radius:4px;background:var(--home-surface);color:var(--home-text);}
#appScreen.workspace-modern .home-empty {padding:30px 20px;text-align:center;color:var(--home-muted);font-size:13px;}
#appScreen.workspace-modern .home-attention>header {padding:18px;border-bottom:1px solid var(--home-border);}
#appScreen.workspace-modern .home-attention article {display:flex;align-items:flex-start;gap:12px;padding:19px 18px;border-bottom:1px solid var(--home-border);}
#appScreen.workspace-modern .home-attention article:last-child {border:0;}
#appScreen.workspace-modern .home-attention-icon {color:var(--home-text);padding-top:3px;}
#appScreen.workspace-modern .home-attention-icon.warning {color:#e49a07;}
#appScreen.workspace-modern .home-attention article b {display:block;font-size:12px;font-weight:550;line-height:1.5;}
#appScreen.workspace-modern .home-attention article small {display:block;color:var(--home-muted);font-size:11px;margin:4px 0 7px;}
#appScreen.workspace-modern .home-attention-empty {display:grid;justify-items:center;gap:8px;padding:30px 20px;text-align:center;color:var(--home-muted);}
#appScreen.workspace-modern .home-attention-empty>svg {width:30px;height:30px;color:#159b60;}
#appScreen.workspace-modern .home-attention-empty b {color:var(--home-text);font-size:13px;font-weight:550;}
#appScreen.workspace-modern .home-attention-empty p {margin:0;font-size:12px;line-height:1.6;}
#appScreen.workspace-modern .home-route {padding:20px;}
#appScreen.workspace-modern .home-route>header {display:flex;justify-content:space-between;align-items:center;gap:10px;}
#appScreen.workspace-modern .home-route header>span {color:var(--home-muted);font-size:12px;}
#appScreen.workspace-modern .home-route ol {display:flex;padding:0;margin:22px 0 20px;list-style:none;}
#appScreen.workspace-modern .home-route li {flex:1;position:relative;text-align:center;}
#appScreen.workspace-modern .home-route li:not(:last-child)::after {content:'';position:absolute;top:17px;left:calc(50% + 23px);right:calc(-50% + 23px);height:1px;background:var(--home-border);}
#appScreen.workspace-modern .home-route li.complete::after {background:#36b575;}
#appScreen.workspace-modern .home-route button {display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;padding:0;border:0;background:transparent;color:var(--home-muted);}
#appScreen.workspace-modern .home-route button:disabled {opacity:1;color:var(--home-muted)!important;}
#appScreen.workspace-modern .home-route button:disabled>b {color:var(--home-muted)!important;}
#appScreen.workspace-modern .home-route button>span {display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:var(--home-border);color:var(--home-muted);font-size:14px;font-weight:600;}
#appScreen.workspace-modern .home-route button>b {font-size:12px;font-weight:500;}
#appScreen.workspace-modern .home-route li.complete button>span {background:#149c60;color:#fff;}
#appScreen.workspace-modern .home-route li.current button>span {background:var(--home-blue);color:#fff;}
#appScreen.workspace-modern .home-route li.current button>b {color:var(--home-blue);}
#appScreen.workspace-modern .home-route p {margin:0;color:var(--home-muted);font-size:11px;}
#appScreen.workspace-modern .home-source {display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:12px 0 0;color:var(--home-muted);font-size:10px;}
#appScreen.workspace-modern .home-source svg {width:12px;height:12px;}
#appScreen.workspace-modern .home-loading {display:flex;align-items:center;justify-content:center;gap:12px;min-height:230px;padding:24px;border:1px solid var(--home-border);border-radius:8px;background:var(--home-surface);color:var(--home-muted);}
#appScreen.workspace-modern .home-error {flex-wrap:wrap;}
#appScreen.workspace-modern .home-muted {color:var(--home-muted);font-size:11px;}
#appScreen.workspace-modern .workspace-home [hidden] {display:none!important;}

@media(min-width:1101px) {
  #appScreen.workspace-modern .shell:not(.sidebar-collapsed) .sidebar {width:224px!important;}
  #appScreen.workspace-modern .shell:not(.sidebar-collapsed) .shell-main {margin-left:224px!important;padding-top:64px!important;}
  #appScreen.workspace-modern .shell:not(.sidebar-collapsed) #liquidTopNav {left:224px!important;height:64px!important;padding:0 22px!important;}
  #appScreen.workspace-modern .shell.sidebar-collapsed .sidebar-group-toggle {display:flex!important;justify-content:center;padding:8px!important;}
  #appScreen.workspace-modern .shell.sidebar-collapsed .sidebar-group-toggle>span {font-size:0!important;gap:0!important;}
  #appScreen.workspace-modern .shell.sidebar-collapsed .sidebar-group-toggle>svg {display:none!important;}
}
@media(max-width:1350px) {
  #appScreen.workspace-modern .home-grid {grid-template-columns:minmax(0,1fr) 260px;}
  #appScreen.workspace-modern .home-kpis>article {padding:15px;gap:10px;}
  #appScreen.workspace-modern .home-kpis>article>span {width:34px;height:34px;}
  #appScreen.workspace-modern .home-kpis small {font-size:11px;}
  #appScreen.workspace-modern .home-kpis b {font-size:24px;}
}
@media(max-width:1100px) {
  #appScreen.workspace-modern .shell:not(.sidebar-open) .sidebar {transform:translateX(-110%)!important;visibility:hidden!important;pointer-events:none!important;}
  #appScreen.workspace-modern .shell.sidebar-open .sidebar {transform:none!important;visibility:visible!important;pointer-events:auto!important;z-index:1200!important;}
  #appScreen.workspace-modern .home-grid {grid-template-columns:1fr;}
  #appScreen.workspace-modern .home-attention {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  #appScreen.workspace-modern .home-attention>header {grid-column:1/-1;}
  #appScreen.workspace-modern .workspace-breadcrumb,#appScreen.workspace-modern .workspace-period {display:none;}
  #appScreen.workspace-modern .shell.dashboard-mode .global-top-search {display:flex!important;}
}
@media(max-width:700px) {
  #appScreen.workspace-home-enabled #dashboardView {padding:16px 12px 100px!important;}
  #appScreen.workspace-modern .home-heading {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:18px;}
  #appScreen.workspace-modern .home-heading>div {min-width:0;}
  #appScreen.workspace-modern .workspace-home h1 {font-size:24px!important;}
  #appScreen.workspace-modern .home-heading p {font-size:12px;}
  #appScreen.workspace-modern .home-heading-actions {display:grid;grid-template-columns:48px minmax(0,1fr);width:100%;margin:0;gap:10px!important;}
  #appScreen.workspace-modern #dashboardView .home-heading-actions button {height:48px!important;min-height:48px!important;margin:0!important;align-self:stretch!important;}
  #appScreen.workspace-modern #dashboardView .home-heading-actions .home-refresh {width:48px!important;padding:0!important;}
  #appScreen.workspace-modern .home-kpis {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  #appScreen.workspace-modern .home-kpis>article {padding:12px;min-height:92px;gap:8px;}
  #appScreen.workspace-modern .home-kpis>article>span {width:28px;height:28px;}
  #appScreen.workspace-modern .home-kpis>article>span svg {width:18px;height:18px;}
  #appScreen.workspace-modern .home-kpis small {font-size:10px;}
  #appScreen.workspace-modern .home-kpis b {font-size:23px;}
  #appScreen.workspace-modern .home-kpis b em {font-size:15px;}
  #appScreen.workspace-modern .home-table-panel>header {padding:14px;gap:12px;}
  #appScreen.workspace-modern .home-filters {width:100%;flex-wrap:nowrap;}
  #appScreen.workspace-modern .home-filters label {flex:1;min-width:0;height:40px;}
  #appScreen.workspace-modern #portfolioSearch {width:100%;font-size:16px!important;}
  #appScreen.workspace-modern #portfolioStatus {width:145px;height:40px!important;}
  #appScreen.workspace-modern .home-attention {display:block;}
  #appScreen.workspace-modern .home-route {padding:16px 12px;}
  #appScreen.workspace-modern .home-route header {flex-wrap:wrap;}
  #appScreen.workspace-modern .home-route button>b {font-size:10px;}
  #appScreen.workspace-modern .home-route button>span {width:30px;height:30px;}
  #appScreen.workspace-modern .home-route li:not(:last-child)::after {top:15px;left:calc(50% + 18px);right:calc(-50% + 18px);}
  #appScreen.workspace-modern .home-source {justify-content:center;font-size:9px;}
  body:has(#appScreen.workspace-modern:not([hidden])) .user-notification-center {top:calc(8px + env(safe-area-inset-top))!important;right:12px!important;}
  #appScreen.workspace-modern .workspace-period {display:flex!important;grid-area:3/1/4/5;justify-content:flex-end;}
  #appScreen.workspace-modern .shell:not(.dashboard-mode) .workspace-period {display:none!important;}
  #appScreen.workspace-modern .shell.dashboard-mode #liquidTopNav {grid-template-rows:44px 44px 36px!important;height:calc(156px + env(safe-area-inset-top))!important;}
  #appScreen.workspace-modern .shell.dashboard-mode .shell-main {padding-top:calc(168px + env(safe-area-inset-top))!important;}
  #appScreen.workspace-modern .liquid-account-short {margin-right:0!important;}
}
html[data-theme="dark"] #appScreen.workspace-modern {
  --home-bg:#111827;--home-surface:#192335;--home-text:#e8effa;--home-muted:#a1afc5;
  --home-border:#344158;--home-blue:#6ba6ff;--home-sidebar:#081e48;
}
html[data-theme="dark"] #appScreen.workspace-modern .home-kpis>article>span {background:#253b5a;}
html[data-theme="dark"] #appScreen.workspace-modern .home-kpi-close>span {background:#183d31;color:#6bdba3;}
html[data-theme="dark"] #appScreen.workspace-modern .home-status {background:#2c394f;color:#c6d1e3;}
html[data-theme="dark"] #appScreen.workspace-modern .home-status.good {background:#193d30;color:#83e2b0;}
html[data-theme="dark"] #appScreen.workspace-modern .home-status.warning {background:#47371d;color:#f4c575;}
html[data-theme="dark"] #appScreen.workspace-modern .home-primary {background:#1769e0!important;border-color:#1769e0!important;}
html[data-theme="dark"] #appScreen.workspace-modern .shell-main {background:var(--home-bg)!important;}
html[data-theme="dark"] #appScreen.workspace-modern .home-table-scroll :is(th,td) {background:transparent!important;color:var(--home-text)!important;}
html[data-theme="dark"] #appScreen.workspace-modern .home-table-scroll th {background:var(--home-bg)!important;color:var(--home-muted)!important;}

/* Company home presents one context and a suggested action, with independent module access. */
#appScreen.workspace-modern .home-eyebrow {display:block;color:var(--home-muted);font-size:10px;letter-spacing:.09em;font-weight:650;margin-bottom:7px;}
#appScreen.workspace-modern .home-client-view .home-heading {align-items:flex-start;margin-bottom:10px;}
#appScreen.workspace-modern .home-client-view .home-heading>div:first-child {min-width:0;flex:1;}
#appScreen.workspace-modern .home-client-view h1 {font-size:26px!important;line-height:1.3!important;overflow-wrap:anywhere;margin:0 0 8px!important;}
#appScreen.workspace-modern .home-client-view .home-heading p {line-height:1.5;}
#appScreen.workspace-modern .home-shortcuts {display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;margin:0 0 22px;}
#appScreen.workspace-modern .home-shortcuts>span {font-size:11px;color:var(--home-muted);}
#appScreen.workspace-modern #dashboardView .home-shortcuts .home-link {display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;min-height:36px!important;font-size:12px!important;margin:0!important;padding:6px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--home-blue)!important;white-space:normal!important;}
#appScreen.workspace-modern .home-shortcuts .home-link svg {width:15px;height:15px;}
#appScreen.workspace-modern .home-next {display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px 26px;background:var(--home-surface);border:1px solid var(--home-border);border-left:4px solid var(--home-blue);border-radius:10px;margin-bottom:16px;}
#appScreen.workspace-modern .home-next>div {min-width:0;}
#appScreen.workspace-modern .home-next h2 {font-size:20px!important;line-height:1.4;margin:0 0 7px;}
#appScreen.workspace-modern .home-next p {max-width:760px;margin:0;color:var(--home-muted);font-size:13px;line-height:1.65;}
#appScreen.workspace-modern #dashboardView .home-next .home-primary {flex:none;align-self:center!important;margin:0!important;}
#appScreen.workspace-modern .home-client-kpis {grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px;}
#appScreen.workspace-modern .home-client-kpis>article {box-sizing:border-box;min-height:56px;padding:10px 14px;gap:10px;}
#appScreen.workspace-modern .home-client-kpis>article>span {width:28px;height:28px;}
#appScreen.workspace-modern .home-client-kpis>article>span svg {width:17px;height:17px;}
#appScreen.workspace-modern .home-client-kpis>article>div {display:flex;align-items:center;justify-content:space-between;gap:12px;}
#appScreen.workspace-modern .home-client-kpis small {font-size:11px;line-height:1.4;}
#appScreen.workspace-modern .home-client-kpis b {flex:none;font-size:20px;gap:4px;}
#appScreen.workspace-modern .home-client-kpis b em {font-size:14px;}
#appScreen.workspace-modern .home-tasks {background:var(--home-surface);border:1px solid var(--home-border);border-radius:10px;overflow:hidden;}
#appScreen.workspace-modern .home-tasks>header {padding:20px 24px;border-bottom:1px solid var(--home-border);}
#appScreen.workspace-modern .home-tasks>header p {margin:6px 0 0;color:var(--home-muted);font-size:12px;line-height:1.6;}
#appScreen.workspace-modern .home-tasks ul {list-style:none;margin:0;padding:0;}
#appScreen.workspace-modern .home-tasks li {display:grid;grid-template-columns:34px minmax(0,1fr) 170px 60px;align-items:center;gap:18px;padding:18px 24px;border-bottom:1px solid var(--home-border);}
#appScreen.workspace-modern .home-tasks li:last-child {border-bottom:0;}
#appScreen.workspace-modern .home-task-icon {display:grid;place-items:center;width:34px;height:34px;background:var(--home-bg);color:var(--home-muted);border-radius:8px;}
#appScreen.workspace-modern .home-task-copy {min-width:0;}
#appScreen.workspace-modern .home-task-copy h3 {font-size:13px!important;line-height:1.5;margin:0 0 4px!important;font-weight:600;}
#appScreen.workspace-modern .home-task-copy p {margin:0;font-size:12px;line-height:1.6;color:var(--home-muted);overflow-wrap:anywhere;}
#appScreen.workspace-modern .home-tasks .home-status {justify-self:start;}
#appScreen.workspace-modern #dashboardView .home-tasks .home-link {margin:0!important;min-height:36px!important;align-self:center!important;background:transparent!important;border:0!important;color:var(--home-blue)!important;}
@media(max-width:900px) {
  #appScreen.workspace-modern .home-next {align-items:flex-start;flex-direction:column;gap:16px;}
  #appScreen.workspace-modern #dashboardView .home-next .home-primary {align-self:flex-start!important;}
  #appScreen.workspace-modern .home-tasks li {grid-template-columns:32px minmax(0,1fr) 60px;gap:8px 14px;}
  #appScreen.workspace-modern .home-task-copy {grid-column:2;}
  #appScreen.workspace-modern .home-tasks .home-status {grid-column:2;grid-row:auto;}
  #appScreen.workspace-modern .home-tasks .home-link,#appScreen.workspace-modern .home-tasks li>.home-muted {grid-column:3;grid-row:1/3;}
}
@media(max-width:700px) {
  #appScreen.workspace-modern .home-client-view .home-heading {grid-template-columns:minmax(0,1fr) 48px;gap:12px;}
  #appScreen.workspace-modern .home-client-view .home-heading-actions {display:block;width:48px;}
  #appScreen.workspace-modern .home-client-view h1 {font-size:22px!important;}
  #appScreen.workspace-modern .home-shortcuts {gap:2px 16px;margin-bottom:16px;}
  #appScreen.workspace-modern .home-shortcuts>span {width:100%;margin-bottom:2px;}
  #appScreen.workspace-modern #dashboardView .home-shortcuts .home-link {min-height:44px!important;}
  #appScreen.workspace-modern .home-next {padding:20px 16px;gap:16px;}
  #appScreen.workspace-modern #dashboardView .home-next .home-primary {width:100%!important;min-height:48px!important;white-space:normal!important;}
  #appScreen.workspace-modern .home-client-kpis {grid-template-columns:1fr;gap:8px;}
  #appScreen.workspace-modern .home-client-kpis>article {min-height:48px;padding:8px 12px;}
  #appScreen.workspace-modern .home-client-kpis>article>span {width:24px;height:24px;}
  #appScreen.workspace-modern .home-client-kpis>article>div {display:flex;align-items:center;justify-content:space-between;gap:12px;}
  #appScreen.workspace-modern .home-client-kpis small {font-size:11px;max-width:170px;}
  #appScreen.workspace-modern .home-client-kpis b {flex:none;font-size:18px;}
  #appScreen.workspace-modern .home-tasks>header {padding:18px 16px;}
  #appScreen.workspace-modern .home-tasks li {padding:16px;grid-template-columns:minmax(0,1fr) 52px;gap:9px 12px;}
  #appScreen.workspace-modern .home-task-icon {display:none;}
  #appScreen.workspace-modern .home-task-copy,#appScreen.workspace-modern .home-tasks .home-status {grid-column:1;}
  #appScreen.workspace-modern .home-tasks .home-link,#appScreen.workspace-modern .home-tasks li>.home-muted {grid-column:2;grid-row:1/3;min-height:44px!important;}
}

#appScreen.workspace-modern .home-fiscal {margin:0 0 20px;}
#appScreen.workspace-modern .home-fiscal>header {display:flex;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap;}
#appScreen.workspace-modern .home-fiscal>header h2 {font-size:17px!important;font-weight:700;margin:0!important;color:var(--home-text);}
#appScreen.workspace-modern .home-fiscal>header>small {margin-left:auto;font-size:11px;color:var(--home-muted);}
#appScreen.workspace-modern .home-fiscal-grid {display:grid;grid-template-columns:1.12fr repeat(5,minmax(0,1fr));gap:0;border:1px solid var(--home-border);border-radius:16px;overflow:hidden;background:var(--home-surface);box-shadow:0 8px 24px #082c7008;}
#appScreen.workspace-modern #dashboardView .home-fiscal-item {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;width:100%!important;min-width:0!important;min-height:178px!important;box-sizing:border-box;margin:0!important;padding:18px 10px 14px!important;background:var(--home-surface)!important;border:0!important;border-left:1px solid var(--home-border)!important;border-radius:0!important;box-shadow:none!important;text-align:center!important;color:var(--home-text)!important;white-space:normal!important;}
#appScreen.workspace-modern #dashboardView .home-fiscal-item.danger {background:linear-gradient(180deg,#fff5f5,var(--home-surface))!important;}
#appScreen.workspace-modern .home-fiscal-icon {display:grid;place-items:center;width:42px;height:42px;flex:none;margin-bottom:10px;border-radius:50%;background:var(--home-bg);color:var(--home-muted);}
#appScreen.workspace-modern .home-fiscal-icon svg {width:24px;height:24px;}
#appScreen.workspace-modern .home-fiscal-icon.good {background:#e7f7ee;color:#07864e;}
#appScreen.workspace-modern .home-fiscal-icon.warning {background:#fff2d8;color:#9b6507;}
#appScreen.workspace-modern .home-fiscal-icon.danger {background:#ffe8e9;color:#db3445;}
#appScreen.workspace-modern .home-fiscal-title {display:grid;gap:4px;line-height:1.25;}
#appScreen.workspace-modern .home-fiscal-title b {font-size:11px;font-weight:500;color:var(--home-muted);}
#appScreen.workspace-modern .home-fiscal-title strong {font-size:18px;font-weight:750;color:var(--home-text);}
#appScreen.workspace-modern .home-fiscal-item>small {display:block;font-size:10px;line-height:1.45;color:var(--home-muted);margin:6px 0 10px;overflow-wrap:anywhere;}
#appScreen.workspace-modern .home-fiscal-action {display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-top:auto;font-size:11px;font-weight:650;line-height:1.3;color:var(--home-blue);}
#appScreen.workspace-modern .home-fiscal-action svg {width:13px;height:13px;flex:none;}
#appScreen.workspace-modern .home-fiscal-no-access {font-size:10px;color:var(--home-muted);margin-top:auto;}
#appScreen.workspace-modern button.home-fiscal-item:hover {background:var(--home-bg)!important;}
#appScreen.workspace-modern button.home-fiscal-item:focus-visible {outline:2px solid var(--home-blue)!important;outline-offset:-3px;}
#appScreen.workspace-modern .home-fiscal-summary {display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:20px 18px;background:linear-gradient(130deg,#102444,#082c70);color:#fff;}
#appScreen.workspace-modern .home-summary-icon {display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#ffffff18;color:#d7e8ff;margin-bottom:12px;}
#appScreen.workspace-modern .home-summary-icon svg {width:24px;height:24px;}
#appScreen.workspace-modern .home-fiscal-summary h3 {font-size:17px!important;line-height:1.3;margin:0 0 8px!important;color:white!important;font-weight:650;}
#appScreen.workspace-modern .home-fiscal-summary p {display:flex;align-items:center;gap:7px;font-size:12px!important;line-height:1.4;margin:0 0 7px!important;color:white!important;}
#appScreen.workspace-modern .home-fiscal-summary small {font-size:10px;line-height:1.4;color:#c6d5ed;}
.home-fiscal-dot {display:inline-block;width:8px;height:8px;flex:none;border-radius:50%;background:#94a3b8;}
.home-fiscal-dot.good {background:#13a468;}.home-fiscal-dot.warning {background:#f5a400;}.home-fiscal-dot.danger {background:#fa4c55;}
#appScreen.workspace-modern .home-fiscal-legend {display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:10px;font-size:10px;color:var(--home-muted);}
#appScreen.workspace-modern .home-fiscal-legend>span {display:flex;align-items:center;gap:6px;}
html[data-theme=dark] #appScreen.workspace-modern .home-fiscal-icon.good {background:#193d30;color:#83e2b0;}
html[data-theme=dark] #appScreen.workspace-modern .home-fiscal-icon.warning {background:#47371d;color:#f4c575;}
html[data-theme=dark] #appScreen.workspace-modern .home-fiscal-icon.danger {background:#48232e;color:#ff9eac;}
html[data-theme=dark] #appScreen.workspace-modern #dashboardView .home-fiscal-item.danger {background:linear-gradient(180deg,#34202c,var(--home-surface))!important;}
@media(max-width:1200px){#appScreen.workspace-modern .home-fiscal-grid{grid-template-columns:repeat(3,minmax(0,1fr));}#appScreen.workspace-modern #dashboardView .home-fiscal-item:nth-child(n+4){border-top:1px solid var(--home-border)!important;}#appScreen.workspace-modern #dashboardView .home-fiscal-item:nth-child(4){border-left:0!important;}}
@media(max-width:700px){#appScreen.workspace-modern .home-fiscal-grid{grid-template-columns:repeat(2,minmax(0,1fr));}#appScreen.workspace-modern .home-fiscal-summary{grid-column:1/-1;}#appScreen.workspace-modern #dashboardView .home-fiscal-item{min-height:164px!important;padding:16px 10px!important;border-top:1px solid var(--home-border)!important;}#appScreen.workspace-modern #dashboardView .home-fiscal-item:nth-child(even){border-left:0!important;}#appScreen.workspace-modern #dashboardView .home-fiscal-item:nth-child(odd){border-left:1px solid var(--home-border)!important;}#appScreen.workspace-modern #dashboardView .home-fiscal-item[data-home-indicator=declarations]{grid-column:1/-1;border-left:0!important;}}

/* First-use actions stay visible after setup and in the selected company. */
#appScreen.workspace-modern .home-heading-actions {flex-wrap:wrap;}
#appScreen.workspace-modern .home-secondary {display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:40px!important;padding:9px 15px!important;border:1px solid var(--home-border)!important;border-radius:6px!important;background:var(--home-surface)!important;color:var(--home-blue)!important;font-size:13px!important;font-weight:600!important;white-space:nowrap;}
#appScreen.workspace-modern .home-heading-actions svg {width:18px;height:18px;flex:none;}
#appScreen.workspace-modern .home-first-client {display:flex;flex-direction:column;align-items:center;gap:12px;padding:10px 0;}
#appScreen.workspace-modern .home-first-client-icon {display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#eaf2ff;color:var(--home-blue);}
#appScreen.workspace-modern .home-first-client-icon svg {width:32px;height:32px;}
#appScreen.workspace-modern .home-first-client h3 {margin:0;color:var(--home-text);font-size:17px;}
#appScreen.workspace-modern .home-first-client p {margin:0 0 3px;}
#appScreen.workspace-modern .home-first-client button svg {width:20px;height:20px;}
#appScreen.workspace-modern .home-client-view .home-heading-actions {display:flex;width:auto;}
html[data-theme=dark] #appScreen.workspace-modern .home-first-client-icon {background:#173456;}
@media(max-width:700px){
 #appScreen.workspace-modern .home-heading-actions,#appScreen.workspace-modern .home-client-view .home-heading-actions {display:flex;width:100%;gap:8px!important;}
 #appScreen.workspace-modern .home-heading-actions .home-primary,#appScreen.workspace-modern .home-heading-actions .home-secondary {flex:1 1 auto;}
 #appScreen.workspace-modern .home-heading-actions .home-refresh {flex:0 0 48px;}
}
