/* Match the directory workspace without replacing any original page controls. */
@media(min-width:721px){
 body.agent-top-layout .directory-workspace .directory-body{display:grid;grid-template-columns:var(--shell-rail) minmax(0,1fr);gap:var(--shell-gap);height:100%;min-height:0}
 body.agent-top-layout{--shell-rail:145px;--shell-gap:18px;--shell-pad:16px;--shell-bg:#fff;--shell-line:var(--agent-theme-line,#dce5ed);--shell-ink:var(--agent-theme-ink,#334b61);--shell-accent:var(--agent-theme-primary,#1682aa)}
 :root[data-agent-theme=night] body.agent-top-layout{--shell-bg:#192638}
 body.agent-top-layout.agent-top-layout .agent-top-navigation :is(.agent-desktop-primary>[data-service-tab],.agent-top-categories>button){box-sizing:border-box;flex:0 0 86px;width:86px;min-width:86px;height:66px;min-height:66px;padding:6px 4px;margin:0 2px;gap:6px;white-space:nowrap;font-size:12px;line-height:18px}
 body.agent-top-layout.agent-top-layout .agent-top-navigation .agent-nav-icon{box-sizing:content-box;width:21px;height:21px;padding:6px;flex:none}
 body.agent-top-layout.agent-top-layout .agent-top-navigation :is(strong,button>span:not(.agent-desktop-primary-icon)){font-size:12px;line-height:18px}
 body.agent-top-layout .main-pane>.agent-page-fit:is(.directory-workspace,.personal-settings-page){padding:var(--shell-pad)!important}
 body.agent-top-layout :is(.directory-body,.personal-settings-layout),body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-layout{grid-template-columns:var(--shell-rail) minmax(0,1fr);gap:var(--shell-gap);align-items:stretch}
 body.agent-top-layout :is(.directory-categories,.personal-settings-nav),body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-categories{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;padding:14px 16px 0 0;margin:0;border:0;border-right:1px solid var(--shell-line);background:var(--shell-bg);min-height:100%;position:static}
 body.agent-top-layout.agent-section-active .main-pane{grid-template-columns:calc(var(--shell-pad) + var(--shell-rail) + 1px) minmax(0,1fr);column-gap:0!important;align-items:stretch}
 body.agent-top-layout.agent-section-active .agent-section-nav{position:relative;align-self:stretch;max-height:none;overflow:auto;gap:12px;padding:30px 17px 16px 16px;border:1px solid var(--shell-line);border-right:0;border-radius:12px 0 0 12px;box-shadow:none;background:var(--shell-bg)}
 body.agent-top-layout.agent-section-active .agent-section-nav::after{content:'';position:absolute;top:16px;bottom:16px;right:0;border-right:1px solid var(--shell-line);pointer-events:none}
 body.agent-top-layout.agent-section-active .main-pane>:is(#agentReportPanel,.card){border-left:0;border-radius:0 12px 12px 0;box-shadow:none;padding:16px 18px!important;background:var(--shell-bg)}
 body.agent-top-layout :is(.directory-categories,.personal-settings-nav,.agent-section-nav)>button,body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-category{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;height:46px;min-height:46px;flex:none;padding:11px 12px!important;margin:0!important;border:1px solid var(--shell-line)!important;border-radius:24px!important;background:var(--shell-bg)!important;color:var(--shell-ink)!important;font:500 13px/22px -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif!important;white-space:nowrap;box-shadow:none!important;text-align:left}
 body.agent-top-layout :is(.directory-categories,.personal-settings-nav,.agent-section-nav)>button:hover,body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-category:hover{border-color:var(--shell-accent)!important;color:var(--shell-accent)!important}
 body.agent-top-layout :is(.directory-categories,.personal-settings-nav,.agent-section-nav)>button[aria-current=page],body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-category[aria-pressed=true]{border-color:var(--shell-accent)!important;background:var(--shell-accent)!important;color:#fff!important;box-shadow:0 4px 12px color-mix(in srgb,var(--shell-accent) 22%,transparent)!important}
 body.agent-top-layout :is(.personal-settings-nav,.agent-section-nav)>button::after{content:'›';margin-left:auto;font-size:17px;font-weight:500}
 body.agent-top-layout :is(.personal-settings-nav,.agent-section-nav)>button svg{box-sizing:content-box;width:17px!important;height:17px!important;min-width:17px;flex:none;padding:0!important;margin:0!important;stroke:currentColor;color:inherit!important;background:transparent!important;border-radius:0!important;box-shadow:none!important}
 body.agent-top-layout .agent-section-nav>button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.agent-top-layout #agentSupportChat.agent-funding-page>.rf-application-management{position:relative;padding:16px!important;background:var(--shell-bg);border:1px solid var(--shell-line)}
 body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-layout{position:relative;padding-top:0;overflow:visible}
 body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-heading{margin-left:calc(var(--shell-rail) + var(--shell-gap));height:34px;min-height:34px;flex:none;box-sizing:border-box;margin-bottom:12px}
 body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-heading-actions>*{box-sizing:border-box;height:34px;min-height:34px;margin:0;padding:6px 10px;font-size:12px;line-height:20px}
 body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-categories{margin-top:-46px;padding-top:14px;min-height:calc(100% + 46px)}
 body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-category{gap:4px}
 body.agent-top-layout #agentSupportChat.agent-funding-page .rf-app-category b{margin-left:auto;min-width:16px;font-size:10px;padding-inline:2px}
 body.agent-top-layout :is(.directory-heading>strong,.personal-settings-content>h2,.personal-settings-content>.pm-heading,.agent-page-fit>h2){font-size:18px!important;line-height:27px}
}
