/* A task-first entry point. Secondary information stays available on demand. */
#appScreen .operation-home-dashboard{max-width:1160px;margin-inline:auto}
#appScreen .operation-home-dashboard #workflowStart,
#appScreen .operation-home-dashboard .dashboard-quick-header,
#appScreen .operation-home-dashboard .dashboard-security-note,
#appScreen .operation-home-dashboard>.dashboard-recent-activity,
#appScreen .shell.dashboard-mode #workContext{display:none!important}
#appScreen .operation-home{--home-surface:#fff;--home-text:#172b45;--home-muted:#596c83;--home-line:#dbe4ef;--home-soft:#f1f6fd;--home-accent:#1764c0;color:var(--home-text);margin:8px 0 28px}
html[data-theme="dark"] #appScreen .operation-home{--home-surface:#172231;--home-text:#edf3fb;--home-muted:#b1bfd0;--home-line:#35455c;--home-soft:#20334c;--home-accent:#8bbcff}
#appScreen .operation-home-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
#appScreen .operation-home-kicker{font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--home-accent)}
#appScreen .operation-home h1{margin:8px 0;font-size:30px;letter-spacing:-.035em;line-height:1.2;color:var(--home-text)}
#appScreen .operation-home-heading p,#appScreen .operation-area-heading p{margin:0;color:var(--home-muted);font-size:14px;line-height:1.5}
#appScreen .operation-company-change,#appScreen .operation-home-back{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--home-line);border-radius:10px;background:var(--home-surface);color:var(--home-text);font-size:13px;font-weight:600;cursor:pointer}
#appScreen .operation-home svg{width:20px;height:20px;flex-shrink:0}
#appScreen .operation-home-search{display:flex;align-items:center;gap:12px;max-width:650px;min-height:50px;padding:0 16px;margin-bottom:24px;border:1px solid var(--home-line);border-radius:12px;background:var(--home-surface);color:var(--home-muted)}
#appScreen .operation-home-search input{width:100%;min-width:0;min-height:48px;border:0;outline:0;background:transparent;color:var(--home-text);font:inherit;font-size:14px;box-shadow:none;padding:0}
#appScreen .operation-home-search input::placeholder{color:var(--home-muted)}
#appScreen .operation-home-search:focus-within{outline:3px solid var(--home-accent);outline-offset:2px}
#appScreen .operation-area-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#appScreen .operation-area-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:188px;padding:22px;border:1px solid var(--home-line);border-radius:16px;background:var(--home-surface);color:var(--home-text);cursor:pointer;box-shadow:none;transition:border-color .15s,background .15s}
#appScreen .operation-area-card:hover{border-color:var(--home-accent);background:var(--home-soft)}
#appScreen .operation-area-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:var(--home-soft);color:var(--home-accent);flex-shrink:0}
#appScreen .operation-area-card>b{font-size:17px;line-height:1.35;margin:16px 0 6px}
#appScreen .operation-area-card>small{color:var(--home-muted);font-size:13px;line-height:1.5;margin-bottom:18px}
#appScreen .operation-area-go{display:flex;align-items:center;gap:8px;margin-top:auto;color:var(--home-accent);font-size:12px;font-weight:700}
#appScreen .operation-area-go svg{width:16px;height:16px}
#appScreen .operation-home-back{width:fit-content;margin-bottom:20px;border:0;padding-left:0;background:transparent;color:var(--home-accent)}
#appScreen .operation-area-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}
#appScreen .operation-area-heading h2,#appScreen .operation-search-heading h2{font-size:23px;line-height:1.3;margin:0 0 5px;color:var(--home-text)}
#appScreen .operation-task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#appScreen .operation-task{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:90px;padding:18px;text-align:left;background:var(--home-surface);border:1px solid var(--home-line);border-radius:12px;color:var(--home-text);cursor:pointer}
#appScreen .operation-task:hover{border-color:var(--home-accent);background:var(--home-soft)}
#appScreen .operation-task b,#appScreen .operation-task small{display:block}
#appScreen .operation-task b{font-size:14px;line-height:1.5;margin-bottom:4px}
#appScreen .operation-task small{font-size:12px;color:var(--home-muted);line-height:1.5}
#appScreen .operation-task>svg{color:var(--home-accent);width:18px}
#appScreen .operation-search-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
#appScreen .operation-search-heading span,#appScreen .operation-home-empty{font-size:13px;color:var(--home-muted)}
#appScreen .operation-home button:focus-visible{outline:3px solid var(--home-accent);outline-offset:3px}
#appScreen .operation-home-disclosure{border:1px solid #dbe4ef;border-radius:12px;margin:12px 0;background:#fff;color:#172b45}
#appScreen .operation-home-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;padding:16px 20px;cursor:pointer;list-style:none}
#appScreen .operation-home-disclosure>summary::-webkit-details-marker{display:none}
#appScreen .operation-home-disclosure>summary b,#appScreen .operation-home-disclosure>summary small{display:block}
#appScreen .operation-home-disclosure>summary b{font-size:14px;margin-bottom:4px}
#appScreen .operation-home-disclosure>summary small{font-size:12px;color:#596c83}
#appScreen .operation-home-disclosure>summary>svg{width:18px;height:18px;transition:transform .15s}
#appScreen .operation-home-disclosure[open]>summary>svg{transform:rotate(180deg)}
#appScreen .operation-home-disclosure-content{padding:4px 20px 20px;min-width:0}
#appScreen .operation-home-dashboard #homeAllTools #dashGrid{display:grid!important}
#appScreen .operation-home-dashboard #homeAllTools .dashboard-tool-group>header{padding:12px 0!important}
html[data-theme="dark"] #appScreen .operation-home-disclosure{background:#172231;border-color:#35455c;color:#edf3fb}
html[data-theme="dark"] #appScreen .operation-home-disclosure>summary small{color:#b1bfd0}
/* Start with a short sidebar; show section entries only after choosing a group. */
#appScreen .shell.dashboard-mode .sidebar .sidebar-nav>.nav-item[data-view="dashboard"]{display:flex!important}
#appScreen .shell.dashboard-mode .sidebar .sidebar-nav-group.is-collapsed>.nav-item{display:none!important}
#appScreen .shell.dashboard-mode .sidebar .firm-navigation{display:none!important}
#appScreen .shell.dashboard-mode #liquidTopNav [data-quick-nav]:not([data-quick-nav="dashboard"]){display:none!important}
@media(max-width:900px){#appScreen .operation-area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#appScreen .operation-home-heading{align-items:flex-start}#appScreen .operation-home h1{font-size:27px}}
@media(max-width:600px){#appScreen .operation-home-heading{flex-direction:column;gap:14px;margin-bottom:18px}#appScreen .operation-home h1{font-size:25px}#appScreen .operation-company-change{width:100%}#appScreen .operation-area-grid,#appScreen .operation-task-list{grid-template-columns:1fr}#appScreen .operation-area-card{min-height:0;display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:14px;padding:17px}#appScreen .operation-area-card .operation-area-icon{grid-row:1/4}#appScreen .operation-area-card>b{margin:0 0 5px;font-size:16px}#appScreen .operation-area-card>small{margin:0 0 10px}#appScreen .operation-area-go{grid-column:2}#appScreen .operation-home-disclosure>summary{padding:15px}#appScreen .operation-home-disclosure-content{padding:0 12px 16px}#appScreen .operation-home-search input{font-size:16px}}
@media(prefers-reduced-motion:reduce){#appScreen .operation-home *,#appScreen .operation-home-disclosure *{transition:none}}
#appScreen .operation-payroll-toggle{font-weight:700!important;justify-content:space-between!important;padding-left:12px!important}
#appScreen .operation-payroll-toggle>svg{width:14px;height:14px}
#appScreen .operation-payroll-toggle[aria-expanded="true"]>svg{transform:rotate(180deg)}
#appScreen .operation-home-dashboard .dash-section-head--soon,
#appScreen .operation-home-dashboard .dash-grid--soon{display:none!important}
#appScreen .operation-home-search input{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
@media(max-width:700px){
 #appScreen.mobile-firm-enabled:not(.mf-full-dashboard) #dashboardView.operation-home-dashboard>#operationHome,
 #appScreen.mobile-firm-enabled:not(.mf-full-dashboard) #dashboardView.operation-home-dashboard>.operation-home-disclosure{display:block!important}
 #appScreen #dashboardView.operation-home-dashboard>.mf-home{display:none!important}
}
#appScreen .shell.dashboard-mode #liquidTopNav .global-top-search{display:none!important}
#appScreen #operationHome .operation-home-search input{border:0!important;box-shadow:none!important;background:transparent!important}
@media(max-width:600px){#appScreen #operationHome .operation-company-change{width:100%!important}}

/* Account capacity remains visible above the operation chooser. */
#appScreen.mobile-firm-enabled:not(.mf-full-dashboard) #dashboardView.operation-home-dashboard>.operation-account-summary,#appScreen #dashboardView>.operation-account-summary{display:grid!important;order:-1;margin-bottom:24px!important}
#appScreen #dashboardView>.operation-account-summary .welcome-stats{display:grid!important}
#appScreen #dashboardView>.operation-account-summary .welcome-text{min-width:0}
#appScreen #dashboardView>.operation-account-summary .welcome-text h1{overflow-wrap:anywhere}
@media(max-width:720px){#appScreen #dashboardView>.operation-account-summary{grid-template-columns:minmax(0,1fr)!important}#appScreen #dashboardView>.operation-account-summary .welcome-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.billing-active-issuer{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 16px;margin-bottom:16px;border:1px solid var(--line,#dbe4ef);border-radius:10px}.billing-active-issuer small{font-size:10px;letter-spacing:.06em}.billing-active-issuer b{font-size:14px}.billing-active-issuer span{font-size:13px}

#appScreen #dashboardView>.operation-account-summary .welcome-stats{border:0!important;border-radius:0!important;overflow:visible!important;height:auto!important}
#appScreen #dashboardView>.operation-account-summary .welcome-stat{height:auto!important;overflow:visible!important}
#appScreen #dashboardView>.operation-account-summary .welcome-stat small{font-size:11px!important;line-height:1.4!important}

/* Keep only the account summary pinned below the global navigation. */
#appScreen #dashboardView>.operation-account-summary{position:sticky!important;top:calc(var(--global-topbar,64px) + 8px)!important;z-index:40;background:#fff!important;box-shadow:0 4px 12px rgba(20,35,65,.06)!important}
html[data-theme="dark"] #appScreen #dashboardView>.operation-account-summary{background:#172231!important}
@media(max-width:900px){#appScreen #dashboardView>.operation-account-summary{top:calc(var(--mobile-header-height,62px) + env(safe-area-inset-top) + 8px)!important}}
/* Clip horizontal overflow without creating an extra scrolling ancestor. */
html:has(#dashboardView.operation-home-dashboard:not([hidden])),body:has(#dashboardView.operation-home-dashboard:not([hidden])){overflow-x:clip!important;overflow-y:visible!important}
