html{font-size:16px}
body{color:#111827!important;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body,button,input,select,textarea,a,span,strong,b,em,small,label,h1,h2,h3,h4,p{letter-spacing:0!important}
:where(.workspace,.sidebar,.ai-panel){font-size:15px}
:where(.topbar h1){font-size:1.42rem!important;line-height:1.16!important}
:where(.module-head h2,.section-head h3,.table-toolbar h3,.ai-card h3,.action-card h3){line-height:1.22!important}
:where(.topbar p,.module-head p,.table-toolbar p,.profile em,.empty,small,em){color:#4b5563}
:where(.menu a,.menu span,.app-menu a,.app-menu span,.nav-collapse,.back-button,.ai-manager-link){min-height:31px!important;font-size:.76rem!important;line-height:1.25!important}
:where(.menu section a,.app-menu section a:not(.menu-title)){font-size:.74rem!important}
:where(.app-menu > .top-main-link){
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  padding:7px 11px!important;
  margin:0 0 6px!important;
  border:1px solid #e2eaf4!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#1f2937!important;
  font-size:.76rem!important;
  font-weight:850!important;
  text-decoration:none!important;
}
:where(.app-menu > .top-main-link.active){
  color:#fff!important;
  border-color:#175cd3!important;
  background:#175cd3!important;
}
:where(.app-menu .menu-primary){
  display:grid!important;
  gap:6px!important;
  margin:2px 0 8px!important;
  padding:8px!important;
  border:1px solid #e2eaf4!important;
  border-radius:12px!important;
  background:#f8fbff!important;
}
:where(.app-menu .menu-primary .menu-primary-title){
  min-height:22px!important;
  display:flex!important;
  align-items:center!important;
  padding:0 3px 2px!important;
  color:#0f172a!important;
  font-size:.72rem!important;
  font-weight:950!important;
  text-transform:none!important;
}
:where(.app-menu .menu-primary .main-nav-link){
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  padding:7px 11px!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  color:#334155!important;
  background:transparent!important;
  font-size:.76rem!important;
  font-weight:850!important;
  line-height:1.2!important;
}
:where(.app-menu .menu-primary .main-nav-link:hover){
  color:#175cd3!important;
  border-color:#cfe0f7!important;
  background:#eef5ff!important;
}
:where(.app-menu .menu-primary .main-nav-link.active){
  color:#fff!important;
  border-color:#175cd3!important;
  background:#175cd3!important;
  box-shadow:0 8px 18px rgba(23,92,211,.16)!important;
}
:where(.tabs a,.actions a,.actions button,.quick-actions a,.filters button,.task-tabs button,.primary,.inline-sync button){min-height:34px!important;font-size:.76rem!important;line-height:1.2!important}
:where(input,select,textarea,button){font-size:.78rem!important;line-height:1.32!important}
:where(input,select){min-height:36px}
:where(textarea){line-height:1.45!important}
:where(.kpi span,.source-row span,.line span,.table-row span,.table-row em,.table-row u,.table-row strong,.table-row b,.task-row span,.task-row strong,.task-row em,.task-row u,.employee-row span,.employee-row strong,.employee-row b,.employee-row u,.report-row span,.report-row strong,.report-row em,.schedule-row span,.schedule-row strong,.schedule-row em,.schedule-row u){font-size:.75rem!important;line-height:1.32!important}
:where(.table-head,.task-row.head,.employee-row.head,.report-row.head,.schedule-row.head){font-size:.69rem!important}
:where(.badge){font-size:.7rem!important;line-height:1.2!important}
:where(.deal-card strong,.calendar-item span,.crm-message p,.ai-card a span,.ai-card p span,.report-line span){font-size:.78rem!important;line-height:1.4!important}
:where(.deal-card em,.deal-card small,.line em,.ai-card a em,.ai-card p em,.report-line em,.crm-message span){font-size:.68rem!important;line-height:1.32!important}
:where(.crm-client-card-main em,.crm-client-card-contact span,.crm-client-card-contact small,.crm-client-card-contact b){font-size:.68rem!important;line-height:1.3!important}
:where(.crm-client-stage label,.crm-client-reminder label,.crm-channel-start label,.crm-dialog-link label,.deal-modal label,.task-modal label,.action-card label){font-size:.66rem!important;line-height:1.25!important}
:where(.crm-source-menu label,.crm-analytics-source-list label,.permission-grid label){font-size:.74rem!important;line-height:1.25!important}
:where(.ai-panel,.sidebar){scrollbar-width:thin}
:where(.chat-thread,.ai-history,.crm-dialog-thread,.crm-ai-dialogs){scrollbar-width:thin;scrollbar-gutter:stable}
:where(.ai-panel.is-collapsed){align-content:start!important}
:where(.ai-panel.is-collapsed) > :not(header){display:none!important}
:where(.ai-panel.is-collapsed) header{position:sticky;top:0;z-index:2;background:inherit}
:where(.ai-panel.is-collapsed) header button{transform:rotate(180deg)}
@media (min-width:1181px){
  body.sidebar-collapsed :where(.layout-shell,.crm-shell,.integrations-shell,.marketing-shell,.employees-shell,.warehouse-shell,.growth-shell,main:has(> .ai-panel)){
    grid-template-columns:72px minmax(0,1fr) minmax(300px,340px)!important;
  }
  body.sidebar-collapsed :where(.finance-shell,.sales-shell,.docs-shell,.settings-shell,.ai-shell,.audit-shell,main:not(:has(> .ai-panel))){
    grid-template-columns:72px minmax(0,1fr)!important;
  }
  body.sidebar-collapsed :where(.sidebar,.finance-sidebar,.growth-sidebar){
    width:72px!important;
    padding:12px 8px!important;
    overflow:visible!important;
    gap:10px!important;
  }
  body.sidebar-collapsed :where(.brand){
    justify-content:center!important;
    padding:0!important;
  }
  body.sidebar-collapsed :where(.brand strong,.sync-now-form span){
    display:none!important;
  }
  body.sidebar-collapsed :where(.back-button,.ai-manager-link,.sync-now-form button,.theme-toggle,.nav-collapse){
    width:100%!important;
    min-width:0!important;
    justify-content:center!important;
    padding:0!important;
    font-size:0!important;
  }
  body.sidebar-collapsed .back-button::before{content:"←";font-size:1rem}
  body.sidebar-collapsed .ai-manager-link::before{content:"AI";font-size:.68rem;font-weight:900}
  body.sidebar-collapsed .sync-now-form button::before{content:"↻";font-size:1rem}
  body.sidebar-collapsed .theme-toggle::before{content:"Т";font-size:.74rem;font-weight:900}
  body.sidebar-collapsed .nav-collapse::before{content:"›";font-size:1.1rem;font-weight:900}
  body.sidebar-collapsed :where(.app-menu){
    gap:7px!important;
    overflow:visible!important;
  }
  body.sidebar-collapsed :where(.app-menu section){
    margin:0!important;
  }
  body.sidebar-collapsed :where(.app-menu section > a:not(.menu-title),.app-menu .menu-primary .main-nav-link){
    display:none!important;
  }
  body.sidebar-collapsed :where(.app-menu a,.app-menu span,.app-menu .menu-title,.app-menu > .top-main-link,.app-menu .menu-primary .menu-primary-title){
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    justify-content:center!important;
    padding:0!important;
    margin:0!important;
    border-radius:11px!important;
    font-size:0!important;
    position:relative!important;
  }
  body.sidebar-collapsed :where(.app-menu a[data-short]::before,.app-menu span[data-short]::before){
    content:attr(data-short);
    font-size:.66rem;
    font-weight:950;
    letter-spacing:0!important;
  }
  body.sidebar-collapsed :where(.app-menu .menu-title)::after{
    display:none!important;
  }
  body.sidebar-collapsed :where(.app-menu a[title]:hover::after,.app-menu a[title]:focus-visible::after){
    content:attr(title);
    position:absolute;
    left:52px;
    top:50%;
    z-index:80;
    transform:translateY(-50%);
    min-height:28px;
    display:flex;
    align-items:center;
    border-radius:9px;
    background:#111827;
    color:#fff;
    padding:0 9px;
    box-shadow:0 12px 28px rgba(15,23,42,.22);
    font-size:.68rem;
    white-space:nowrap;
  }
}
:where(.ask-form){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
:where(.ask-form input){min-height:40px;border:1px solid var(--line,#e6ebf2);border-radius:10px;background:#fff;color:#111827;padding:0 12px}
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > .topbar,
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > :where(.finance-topbar,.growth-topbar){
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
  overflow:visible!important;
}
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > .topbar > *,
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > :where(.finance-topbar,.growth-topbar) > *{
  min-width:0!important;
  max-width:100%;
}
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > .topbar > div:first-child,
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > :where(.finance-topbar,.growth-topbar) > div:first-child{
  flex:1 1 260px!important;
  min-width:220px!important;
}
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > .topbar .search,
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > :where(.finance-topbar,.growth-topbar) .search{
  flex:1 1 260px!important;
  max-width:520px!important;
  min-width:220px!important;
}
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > .topbar :where(.profile,.user-pill),
:where(.workspace,.workarea,.finance-workspace,.growth-workspace) > :where(.finance-topbar,.growth-topbar) :where(.profile,.user-pill){
  flex:0 1 260px!important;
  min-width:0!important;
  max-width:260px!important;
}
:where(.topbar) :where(.profile span,.profile strong,.profile em,.user-pill span,.user-pill strong,.user-pill em){
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
:where(.topbar) :where(.top-actions){
  flex:0 1 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
}
:where(.topbar) :where(.icon-btn,.top-actions button){
  flex:0 1 auto!important;
}

/* Unified top menus across workspace pages */
:where(.workspace,.workarea) > .module-head{
  display:grid!important;
  grid-template-columns:1fr!important;
  align-items:stretch!important;
  gap:10px!important;
  padding:12px!important;
  border:1px solid #dbe7f5!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:0 12px 28px rgba(16,24,40,.06)!important;
  overflow:visible!important;
}
body :where(.workspace,.workarea) > .module-head > *{
  grid-column:1 / -1!important;
  grid-row:auto!important;
  justify-self:stretch!important;
  min-width:0!important;
  max-width:100%!important;
}
:where(.workspace,.workarea) > .module-head > div:first-child:not(.quick-actions):not(.actions):not(.tabs):not(.periods):not(.segment-tabs){
  min-width:0!important;
}
:where(.workspace,.workarea) > .module-head h2{
  margin:0 0 4px!important;
  color:#101828!important;
  font-size:1rem!important;
  font-weight:900!important;
  line-height:1.18!important;
}
:where(.workspace,.workarea) > .module-head p{
  margin:0!important;
  color:#4b5563!important;
  font-size:.74rem!important;
  line-height:1.35!important;
}
:where(.workspace,.workarea) > .module-head > .tabs,
:where(.workspace,.workarea) > .module-head > .periods,
:where(.workspace,.workarea) > .module-head > .segment-tabs,
:where(.workspace,.workarea) > nav.tabs{
  width:100%!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  padding:4px!important;
  border:1px solid #e2eaf4!important;
  border-radius:12px!important;
  background:#f2f6fb!important;
  box-shadow:none!important;
  scrollbar-width:thin;
}
:where(.workspace,.workarea) > .module-head > .tabs a,
:where(.workspace,.workarea) > .module-head > .periods a,
:where(.workspace,.workarea) > .module-head > .segment-tabs a,
:where(.workspace,.workarea) > nav.tabs a{
  flex:0 1 auto!important;
  min-height:34px!important;
  height:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#334155!important;
  font-size:.74rem!important;
  font-weight:850!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
:where(.workspace,.workarea) > .module-head > .tabs a:hover,
:where(.workspace,.workarea) > .module-head > .periods a:hover,
:where(.workspace,.workarea) > .module-head > .segment-tabs a:hover,
:where(.workspace,.workarea) > nav.tabs a:hover{
  color:#175cd3!important;
  background:#e7f0ff!important;
}
:where(.workspace,.workarea) > .module-head > .tabs a.active,
:where(.workspace,.workarea) > .module-head > .periods a.active,
:where(.workspace,.workarea) > .module-head > .segment-tabs a.active,
:where(.workspace,.workarea) > nav.tabs a.active{
  color:#fff!important;
  background:#175cd3!important;
  box-shadow:0 8px 18px rgba(23,92,211,.2)!important;
}
:where(.workspace,.workarea) > .module-head > .quick-actions,
:where(.workspace,.workarea) > .module-head > .actions{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  padding-top:10px!important;
  border-top:1px solid #e7eef8!important;
}
:where(.workspace,.workarea) > .module-head > :where(.custom-period,.crm-force-refresh,.inline-sync),
:where(.workspace,.workarea) > .module-head form.custom-period{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
  max-width:100%!important;
}
:where(.workspace,.workarea) > .module-head > :where(.custom-period,.crm-force-refresh,.inline-sync) input,
:where(.workspace,.workarea) > .module-head form.custom-period input{
  flex:1 1 145px!important;
  min-width:130px!important;
  max-width:190px!important;
}
:where(.workspace,.workarea) > .module-head > :where(.custom-period,.crm-force-refresh,.inline-sync) button,
:where(.workspace,.workarea) > .module-head form.custom-period button{
  flex:0 1 auto!important;
  min-height:34px!important;
}
:where(.workspace,.workarea) > .module-head > .quick-actions a,
:where(.workspace,.workarea) > .module-head > .actions > a,
:where(.workspace,.workarea) > .module-head > .actions > button,
:where(.workspace,.workarea) > .module-head > .quick-actions button,
:where(.workspace,.workarea) > .module-head > .actions .inline-sync button,
:where(.workspace,.workarea) > .module-head > .quick-actions details > summary,
:where(.workspace,.workarea) > .module-head > .actions details > summary{
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 11px!important;
  border:1px solid #d8e4f2!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#1f2937!important;
  box-shadow:0 3px 10px rgba(16,24,40,.04)!important;
  font-size:.72rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  flex:0 1 auto!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
:where(.workspace,.workarea) > .module-head > .quick-actions a:hover,
:where(.workspace,.workarea) > .module-head > .actions > a:hover,
:where(.workspace,.workarea) > .module-head > .actions > button:hover,
:where(.workspace,.workarea) > .module-head > .quick-actions button:hover,
:where(.workspace,.workarea) > .module-head > .quick-actions details > summary:hover,
:where(.workspace,.workarea) > .module-head > .actions details > summary:hover{
  color:#175cd3!important;
  border-color:#b9d2f5!important;
  background:#f5f9ff!important;
}
:where(.workspace,.workarea) > .module-head :where(.primary){
  background:#175cd3!important;
  border-color:#175cd3!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(23,92,211,.2)!important;
}
:where(.workspace,.workarea) > .module-head :where(.success){
  border-color:rgba(18,183,106,.28)!important;
  background:#ecfdf3!important;
  color:#027a48!important;
}
:where(.workspace,.workarea) > .module-head :where(.warn){
  border-color:rgba(245,158,11,.3)!important;
  background:#fff7e8!important;
  color:#b45309!important;
}
:where(.workspace,.workarea) > .module-head :where(.purple,.ai,.rules){
  border-color:rgba(124,58,237,.22)!important;
  background:#f5f3ff!important;
  color:#5b21b6!important;
}
:where(.workspace,.workarea) > .module-head :where(.inline-sync button,.crm-force-refresh button){
  border-color:rgba(18,183,106,.28)!important;
  background:#ecfdf3!important;
  color:#027a48!important;
}
:where(.workspace,.workarea) > .module-head :where(.crm-source-note,.crm-retention-link){
  flex-basis:100%!important;
  justify-content:flex-start!important;
  min-height:32px!important;
  border:1px solid #e7eef8!important;
  background:#f8fafc!important;
  color:#475467!important;
  box-shadow:none!important;
  font-size:.7rem!important;
}

/* Same header treatment for pages that use their own workspace/header names. */
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card){
  display:grid!important;
  grid-template-columns:1fr!important;
  align-items:stretch!important;
  gap:10px!important;
  padding:12px!important;
  border:1px solid #dbe7f5!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:0 12px 28px rgba(16,24,40,.06)!important;
  overflow:visible!important;
}
body :where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) > *{
  grid-column:1 / -1!important;
  grid-row:auto!important;
  justify-self:stretch!important;
  min-width:0!important;
  max-width:100%!important;
}
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) h2{
  margin:0 0 4px!important;
  color:#101828!important;
  font-size:1rem!important;
  font-weight:900!important;
  line-height:1.18!important;
}
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) p{
  margin:0!important;
  color:#4b5563!important;
  font-size:.74rem!important;
  line-height:1.35!important;
}
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) > .quick-actions{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  padding-top:10px!important;
  border-top:1px solid #e7eef8!important;
}
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) > .quick-actions a,
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) > .quick-actions button{
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 11px!important;
  border:1px solid #d8e4f2!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#1f2937!important;
  box-shadow:0 3px 10px rgba(16,24,40,.04)!important;
  font-size:.72rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) > .quick-actions a:hover,
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) > .quick-actions button:hover{
  color:#175cd3!important;
  border-color:#b9d2f5!important;
  background:#f5f9ff!important;
}
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) :where(.primary){
  background:#175cd3!important;
  border-color:#175cd3!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(23,92,211,.2)!important;
}
:where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) :where(.danger){
  border-color:rgba(239,68,68,.22)!important;
  background:#fff1f1!important;
  color:#b42318!important;
}
:where(.finance-header-card) > .period-filter,
:where(.topbar) .filters{
  width:100%!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  padding:4px!important;
  border:1px solid #e2eaf4!important;
  border-radius:12px!important;
  background:#f2f6fb!important;
  box-shadow:none!important;
}
:where(.finance-header-card) > .custom-period{
  grid-column:1!important;
  grid-row:auto!important;
  justify-self:start!important;
  justify-content:flex-start!important;
  width:100%!important;
}
:where(.finance-header-card) > .period-filter a,
:where(.topbar) .filters a,
:where(.topbar) .filters button{
  flex:0 0 auto!important;
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#334155!important;
  font-size:.74rem!important;
  font-weight:850!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
:where(.finance-header-card) > .period-filter a:hover,
:where(.topbar) .filters a:hover,
:where(.topbar) .filters button:hover{
  color:#175cd3!important;
  background:#e7f0ff!important;
}
:where(.finance-header-card) > .period-filter a.active,
:where(.topbar) .filters a.active,
:where(.topbar) .filters button.active{
  color:#fff!important;
  background:#175cd3!important;
  box-shadow:0 8px 18px rgba(23,92,211,.2)!important;
}
:where(.crm-ops-strip){
  display:grid!important;
  grid-template-columns:minmax(170px,1.1fr) repeat(4,minmax(120px,1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
  margin:0 0 10px!important;
}
:where(.dialog-list-panel) > .crm-ops-strip{
  grid-template-columns:1fr 1fr!important;
  margin:0!important;
}
:where(.crm-ops-score,.crm-ops-provider){
  min-width:0!important;
  min-height:44px!important;
  display:grid!important;
  align-content:center!important;
  gap:2px!important;
  padding:8px 10px!important;
  border:1px solid #dbe5f0!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#111827!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
:where(.crm-ops-score){
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:9px!important;
}
:where(.crm-ops-score) b{
  width:32px!important;
  height:32px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:10px!important;
  background:#111827!important;
  color:#fff!important;
  font-size:.78rem!important;
  font-weight:900!important;
}
:where(.crm-ops-strip.tone-good .crm-ops-score) b{background:#059669!important}
:where(.crm-ops-strip.tone-warn .crm-ops-score) b{background:#d97706!important}
:where(.crm-ops-strip.tone-bad .crm-ops-score) b{background:#dc2626!important}
:where(.crm-ops-score span,.crm-ops-provider em){
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#667085!important;
  font-size:.68rem!important;
  font-style:normal!important;
  line-height:1.25!important;
}
:where(.crm-ops-provider strong){
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#101828!important;
  font-size:.72rem!important;
  font-weight:900!important;
}
:where(.crm-ops-provider.tone-good){border-color:#bbf7d0!important;background:#f0fdf4!important}
:where(.crm-ops-provider.tone-warn){border-color:#fed7aa!important;background:#fffbeb!important}
:where(.crm-ops-provider.tone-bad){border-color:#fecdd3!important;background:#fff1f2!important}
@media(max-width:1180px){
  :where(.topbar h1){font-size:1.32rem!important}
  :where(.workspace,.sidebar,.ai-panel){font-size:15px}
  :where(.workspace,.workarea) > .module-head > .tabs,
  :where(.workspace,.workarea) > .module-head > .periods,
  :where(.workspace,.workarea) > .module-head > .segment-tabs,
  :where(.workspace,.workarea) > nav.tabs{flex-wrap:wrap!important;overflow:visible!important}
  :where(.workspace,.workarea) > .module-head > .quick-actions,
  :where(.workspace,.workarea) > .module-head > .actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  :where(.workspace,.workarea) > .module-head > .quick-actions a,
  :where(.workspace,.workarea) > .module-head > .actions > a,
  :where(.workspace,.workarea) > .module-head > .actions > button,
  :where(.workspace,.workarea) > .module-head > .quick-actions button,
  :where(.workspace,.workarea) > .module-head > .actions .inline-sync,
  :where(.workspace,.workarea) > .module-head > .actions .inline-sync button,
  :where(.workspace,.workarea) > .module-head > .quick-actions details,
  :where(.workspace,.workarea) > .module-head > .quick-actions details > summary,
  :where(.workspace,.workarea) > .module-head > .actions details,
  :where(.workspace,.workarea) > .module-head > .actions details > summary{width:100%!important}
  :where(.workspace,.workarea) > .module-head :where(.primary,.crm-source-note,.crm-retention-link){grid-column:1/-1!important}
  :where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) > .quick-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  :where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) > .quick-actions a,
  :where(.finance-workspace,.growth-workspace) > :where(.finance-header-card,.growth-header-card) > .quick-actions button{width:100%!important}
  :where(.finance-header-card) > .period-filter,
  :where(.topbar) .filters{display:grid!important;grid-template-columns:1fr 1fr!important}
  :where(.finance-header-card) > .period-filter a,
  :where(.topbar) .filters a,
  :where(.topbar) .filters button{width:100%!important}
  :where(.crm-ops-strip){grid-template-columns:1fr 1fr!important}
}

/* Anti-overlap layer: allow dense operational screens to grow instead of stacking text. */
:where(.topbar,.finance-topbar,.growth-topbar,.module-head,.finance-header-card,.growth-header-card){
  height:auto!important;
  min-height:0!important;
  align-content:start!important;
}
:where(.topbar,.finance-topbar,.growth-topbar){
  padding-block:8px!important;
}
:where(.topbar h1,.topbar p,.module-head h2,.module-head p,.finance-header-card h1,.finance-header-card p,.growth-header-card h1,.growth-header-card p){
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
:where(.card,.kpi,.table-screen,.chart-card,.cashflow-card,.revenue-card,.sales-chart-card,.plan-card,.funnel-card,.send-card){
  min-width:0!important;
  max-width:100%!important;
}
:where(.card){
  overflow:visible!important;
}
:where(.data-table,.task-table,.tasks-table,.employee-table,.report-table,.schedule-table,.mini-table){
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  scrollbar-width:thin;
}
:where(.table-row,.task-row,.employee-row,.report-row,.schedule-row){
  min-width:0;
}
:where(.table-row > *,.task-row > *,.employee-row > *,.report-row > *,.schedule-row > *){
  min-width:0!important;
  max-width:100%!important;
}
:where(.table-row span,.table-row em,.table-row strong,.table-row b,.task-row span,.task-row em,.task-row strong,.task-row b,.employee-row span,.employee-row em,.employee-row strong,.employee-row b,.report-row span,.report-row em,.report-row strong,.report-row b,.schedule-row span,.schedule-row em,.schedule-row strong,.schedule-row b){
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
:where(.quick-actions a,.actions a,.actions button,.table-toolbar a,.table-toolbar button,.pending-actions button,.sync-now-form button){
  height:auto!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
:where(.table-toolbar,.section-head){
  flex-wrap:wrap!important;
  min-width:0!important;
}
:where(.table-toolbar > div,.section-head > div){
  min-width:0!important;
  max-width:100%!important;
}
@media(max-width:1180px){
  :where(.topbar,.finance-topbar,.growth-topbar){
    align-items:stretch!important;
  }
  :where(.table-row,.task-row,.employee-row,.report-row,.schedule-row){
    width:100%!important;
  }
  :where(.card){
    overflow:visible!important;
  }
  :where(.task-card .task-row,.money-card .money-row,.table-card .data-row,.payment-list a){
    min-width:0!important;
    width:100%!important;
  }
  :where(.task-card .task-row){
    grid-template-columns:16px minmax(0,1fr) minmax(56px,auto)!important;
  }
  :where(.mini-table p){
    min-width:0!important;
    width:100%!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:4px 8px!important;
    padding-block:8px!important;
  }
  :where(.mini-table p > em,.mini-table p > small){
    grid-column:1/-1!important;
  }
  :where(.mini-table p > u){
    grid-column:auto!important;
  }
  :where(.source-compare-card){
    overflow:visible!important;
  }
  :where(.source-compare-chart){
    overflow:visible!important;
  }
  :where(.compare-head){
    display:none!important;
  }
  :where(.compare-row){
    min-width:0!important;
    width:100%!important;
    grid-template-columns:1fr 1fr!important;
    align-items:stretch!important;
  }
  :where(.compare-row strong){
    grid-column:1/-1!important;
  }
  :where(.finance-chart svg,.line-chart svg,.combo-chart svg){
    overflow:hidden!important;
  }
  :where(.combo-chart,.sales-chart){
    overflow:hidden!important;
  }
  :where(.combo-chart .chart-day,.sales-chart .chart-day){
    min-width:0!important;
  }
  :where(.xaxis){
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  :where(.xaxis span){
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    text-align:center!important;
  }
  :where(.doc-line){
    min-width:0!important;
    width:100%!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:4px 8px!important;
  }
  :where(.doc-line > small,.doc-line > em){
    grid-column:1/-1!important;
  }
  :where(.doc-line > u){
    grid-column:auto!important;
  }
  :where(.crm-source-picker,.marketing-source-picker){
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  :where(.crm-source-menu,.marketing-source-menu){
    position:static!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:auto!important;
  }
  :where(.crm-source-menu label,.crm-source-menu legend,.marketing-source-menu label){
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
}

/* Warehouse needs its action header to remain a real card; generic anti-overlap
   rules must not collapse it or push controls behind KPI cards. */
.warehouse-shell .workarea > .topbar{
  height:auto!important;
  min-height:48px!important;
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) minmax(240px,300px) auto!important;
  gap:12px!important;
  align-items:center!important;
  align-content:center!important;
  padding-block:0!important;
  overflow:visible!important;
}
.warehouse-shell .workarea > .module-head{
  height:auto!important;
  min-height:154px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  align-items:stretch!important;
  align-content:stretch!important;
  padding:12px!important;
  border:1px solid #dbe7f5!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:0 12px 28px rgba(16,24,40,.06)!important;
  overflow:visible!important;
}
.warehouse-shell .workarea > .module-head > *{
  grid-column:1/-1!important;
  grid-row:auto!important;
  min-width:0!important;
}
.warehouse-shell .workarea > .module-head > .quick-actions{
  width:100%!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  padding-top:10px!important;
  border-top:1px solid #e7eef8!important;
  position:static!important;
}
.warehouse-shell .workarea > .module-head > .quick-actions a{
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 11px!important;
  border:1px solid #d8e4f2!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#1f2937!important;
  box-shadow:0 3px 10px rgba(16,24,40,.04)!important;
  font-size:.72rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
.warehouse-shell .workarea > .module-head > .quick-actions a.primary{
  background:#175cd3!important;
  border-color:#175cd3!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(23,92,211,.2)!important;
}
.warehouse-shell .workarea > .module-head > .quick-actions a.success{
  border-color:rgba(18,183,106,.28)!important;
  background:#ecfdf3!important;
  color:#027a48!important;
}
.warehouse-shell .workarea > .module-head > .quick-actions a.warn{
  border-color:rgba(245,158,11,.3)!important;
  background:#fff7e8!important;
  color:#b45309!important;
}
.warehouse-shell .workarea > .module-head > .quick-actions a.ai,
.warehouse-shell .workarea > .module-head > .quick-actions a.rules{
  border-color:rgba(124,58,237,.22)!important;
  background:#f5f3ff!important;
  color:#5b21b6!important;
}
@media(max-width:720px){
  .warehouse-shell .side{
    padding:12px 14px!important;
    gap:8px!important;
    border-right:0!important;
    border-bottom:1px solid #e6ebf2!important;
  }
  .warehouse-shell .side .app-menu,
  .warehouse-shell .side .side-bottom,
  .warehouse-shell .side .back-button,
  .warehouse-shell .side .ai-manager-link,
  .warehouse-shell .side .sync-now-form{
    display:none!important;
  }
  .warehouse-shell .workarea{
    padding:12px!important;
    gap:12px!important;
  }
  .warehouse-shell .workarea > .topbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    min-height:0!important;
    align-items:stretch!important;
  }
  .warehouse-shell .workarea > .topbar > *{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .warehouse-shell .workarea > .topbar .search{
    width:100%!important;
    max-width:100%!important;
  }
  .warehouse-shell .workarea > .topbar .profile{
    grid-template-columns:30px minmax(0,1fr)!important;
  }
  .warehouse-shell .workarea > .module-head{
    margin-top:0!important;
    min-height:0!important;
  }
  .warehouse-shell .workarea > .module-head > .quick-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .warehouse-shell .workarea > .module-head > .quick-actions a{
    width:100%!important;
    min-height:38px!important;
  }
  .warehouse-shell .workarea > .module-head > .quick-actions a.primary,
  .warehouse-shell .workarea > .module-head > .quick-actions a[href*="stock"]{
    grid-column:1/-1!important;
  }
}

/* Site-wide warehouse-style display layer. Keep module actions visible and
   prevent every section-specific stylesheet from pinning them into old rows. */
body .workspace > .module-head,
body .workarea > .module-head{
  height:auto!important;
  min-height:154px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  align-items:stretch!important;
  align-content:stretch!important;
  padding:12px!important;
  border:1px solid #dbe7f5!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:0 12px 28px rgba(16,24,40,.06)!important;
  overflow:visible!important;
}
body .workspace > .module-head > *,
body .workarea > .module-head > *{
  grid-column:1/-1!important;
  grid-row:auto!important;
  justify-self:stretch!important;
  min-width:0!important;
  max-width:100%!important;
}
body .workspace > .module-head > .quick-actions,
body .workspace > .module-head > .actions,
body .workarea > .module-head > .quick-actions,
body .workarea > .module-head > .actions{
  width:100%!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  padding-top:10px!important;
  border-top:1px solid #e7eef8!important;
  position:static!important;
}
body .workspace > .module-head > .quick-actions a,
body .workspace > .module-head > .quick-actions button,
body .workspace > .module-head > .actions > a,
body .workspace > .module-head > .actions > button,
body .workspace > .module-head > .actions details > summary,
body .workarea > .module-head > .quick-actions a,
body .workarea > .module-head > .quick-actions button,
body .workarea > .module-head > .actions > a,
body .workarea > .module-head > .actions > button,
body .workarea > .module-head > .actions details > summary{
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 11px!important;
  border:1px solid #d8e4f2!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#1f2937!important;
  box-shadow:0 3px 10px rgba(16,24,40,.04)!important;
  font-size:.72rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
  text-decoration:none!important;
}
body .workspace > .module-head :is(.primary),
body .workarea > .module-head :is(.primary){
  background:#175cd3!important;
  border-color:#175cd3!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(23,92,211,.2)!important;
}
body .workspace > .module-head :is(.success),
body .workarea > .module-head :is(.success){
  border-color:rgba(18,183,106,.28)!important;
  background:#ecfdf3!important;
  color:#027a48!important;
}
body .workspace > .module-head :is(.warn),
body .workarea > .module-head :is(.warn){
  border-color:rgba(245,158,11,.3)!important;
  background:#fff7e8!important;
  color:#b45309!important;
}
body .workspace > .module-head :is(.ai,.purple,.rules),
body .workarea > .module-head :is(.ai,.purple,.rules){
  border-color:rgba(124,58,237,.22)!important;
  background:#f5f3ff!important;
  color:#5b21b6!important;
}
body .workspace > .topbar,
body .workarea > .topbar{
  height:auto!important;
  min-height:48px!important;
  align-content:center!important;
  overflow:visible!important;
}
body :is(.finance-workspace,.growth-workspace) > :is(.finance-header-card,.growth-header-card){
  height:auto!important;
  min-height:154px!important;
  align-content:stretch!important;
}
body :is(.finance-workspace,.growth-workspace) > :is(.finance-header-card,.growth-header-card) > *{
  grid-column:1/-1!important;
  grid-row:auto!important;
  justify-self:stretch!important;
}
body :is(.crm-source-picker,.marketing-source-picker):not([open]) > :not(summary){
  display:none!important;
}
body :is(.crm-source-picker,.marketing-source-picker)[open]{
  z-index:80!important;
}
body :is(.crm-source-menu,.marketing-source-menu){
  z-index:81!important;
}
body :is(.growth-table,.product-table){
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  scrollbar-width:thin;
}
body.crm-section-deals .crm-sales-control{
  grid-template-columns:1fr!important;
}
body.crm-section-deals .kanban{
  min-height:0!important;
  align-items:start!important;
}
body.crm-section-deals .lane{
  grid-template-rows:auto auto!important;
  min-height:0!important;
}
body.crm-section-deals .crm-count-only{
  min-height:74px!important;
  display:grid!important;
  align-content:center!important;
  gap:5px!important;
  padding:12px!important;
  border:1px dashed #dbe5f0!important;
  border-radius:12px!important;
  background:#fbfcff!important;
}
body.crm-section-deals .crm-count-only strong{
  color:#101828!important;
  font-size:1.25rem!important;
  line-height:1!important;
}
body.crm-section-deals .crm-count-only em{
  color:#667085!important;
  font-size:.68rem!important;
  font-style:normal!important;
}
body.crm-section-deals .crm-analytics-only{
  grid-template-columns:minmax(0,1fr)!important;
}
body.crm-section-message-ai .crm-ai-control-table .table-row{
  grid-template-columns:minmax(96px,.62fr) minmax(120px,.72fr) minmax(150px,1fr) minmax(150px,1fr) minmax(86px,.55fr)!important;
  min-width:0!important;
}
body.crm-section-follow-up .crm-follow-up-table .table-row{
  grid-template-columns:minmax(130px,.9fr) minmax(118px,.82fr) minmax(160px,1.05fr) minmax(72px,.45fr) minmax(130px,.9fr) minmax(68px,.38fr)!important;
  min-width:0!important;
}
body:is(.crm-section-message-ai,.crm-section-follow-up) :is(.crm-ai-control-table,.crm-follow-up-table) .table-row > *{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
}
body:is(.crm-section-message-ai,.crm-section-follow-up) :is(.crm-ai-control-table,.crm-follow-up-table) .table-row :is(strong,span,b,small,em){
  white-space:normal!important;
}
body .crm-site3-ad-table .table-row{
  min-width:0!important;
  grid-template-columns:minmax(230px,1.35fr) minmax(140px,.85fr) minmax(105px,.65fr) minmax(110px,.65fr) minmax(72px,.45fr) minmax(72px,.42fr) minmax(104px,.62fr) minmax(104px,.62fr) minmax(104px,.62fr) minmax(82px,.45fr)!important;
}
body .crm-site3-ad-table :is(strong,strong a,strong em,span,b,em){
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
}
body .crm-site3-summary-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
body .crm-site3-account-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
body .crm-site3-account-card{
  display:grid!important;
  gap:10px!important;
  min-width:0!important;
}
body .crm-site3-account-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
body .crm-site3-account-metrics span{
  min-width:0!important;
  display:grid!important;
  gap:2px!important;
  padding:8px!important;
  border:1px solid #edf1f7!important;
  border-radius:8px!important;
  background:#fbfcff!important;
}
body .crm-site3-account-metrics b{
  font-size:.82rem!important;
  line-height:1.1!important;
}
body .crm-site3-account-metrics em{
  color:#667085!important;
  font-size:.58rem!important;
  font-style:normal!important;
}
body .crm-site3-top-buy{
  display:grid!important;
  gap:0!important;
}
body .crm-site3-buy-row{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) minmax(160px,.7fr) 58px 72px!important;
  gap:10px!important;
  align-items:center!important;
  padding:10px 0!important;
  border-top:1px solid #eef2f7!important;
}
body .crm-site3-buy-row :is(strong,span,b,em){
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
}
body .crm-site3-buy-row em{
  color:#667085!important;
  font-style:normal!important;
  font-size:.62rem!important;
}

@media(max-width:720px){
  body .crm-site3-summary-grid,
  body .crm-site3-account-grid{
    grid-template-columns:1fr!important;
  }
  body .crm-site3-account-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .crm-site3-buy-row,
  body .crm-site3-ad-table .table-row{
    grid-template-columns:1fr!important;
  }
  body .crm-site3-ad-table .table-head{
    display:none!important;
  }
  body :is(.layout-shell,.crm-shell,.settings-shell,.employees-shell,.sales-shell,.docs-shell,.audit-shell,.integrations-shell,.marketing-shell,.warehouse-shell,.finance-shell,.growth-shell,.ai-shell) > :is(.sidebar,.side,.finance-sidebar,.growth-sidebar){
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:12px 14px!important;
    gap:8px!important;
    border-right:0!important;
    border-bottom:1px solid #e6ebf2!important;
  }
  body :is(.layout-shell,.crm-shell,.settings-shell,.employees-shell,.sales-shell,.docs-shell,.audit-shell,.integrations-shell,.marketing-shell,.warehouse-shell,.finance-shell,.growth-shell,.ai-shell) > :is(.sidebar,.side,.finance-sidebar,.growth-sidebar) :is(.app-menu,.main-menu,.section-menu,.side-bottom,.collapse,.nav-collapse,.back-button,.ai-manager-link,.sync-now-form){
    display:none!important;
  }
  body :is(.layout-shell,.crm-shell,.settings-shell,.employees-shell,.sales-shell,.docs-shell,.audit-shell,.integrations-shell,.marketing-shell,.warehouse-shell,.finance-shell,.growth-shell,.ai-shell) > :is(.workspace,.workarea,.finance-workspace,.growth-workspace){
    padding:12px!important;
    gap:12px!important;
  }
  body .workspace > .topbar,
  body .workarea > .topbar,
  body .finance-workspace > .finance-topbar,
  body .growth-workspace > .growth-topbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    min-height:0!important;
    align-items:stretch!important;
  }
  body .workspace > .topbar > *,
  body .workarea > .topbar > *,
  body .finance-workspace > .finance-topbar > *,
  body .growth-workspace > .growth-topbar > *{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    justify-self:stretch!important;
  }
  body :is(.topbar,.finance-topbar,.growth-topbar) .search{
    width:100%!important;
    max-width:100%!important;
  }
  body :is(.topbar,.finance-topbar,.growth-topbar) .profile,
  body :is(.topbar,.finance-topbar,.growth-topbar) .user-pill{
    grid-template-columns:30px minmax(0,1fr)!important;
  }
  body .workspace > .module-head,
  body .workarea > .module-head,
  body :is(.finance-workspace,.growth-workspace) > :is(.finance-header-card,.growth-header-card){
    min-height:0!important;
    margin-top:0!important;
  }
  body .workspace > .module-head > .quick-actions,
  body .workspace > .module-head > .actions,
  body .workarea > .module-head > .quick-actions,
  body .workarea > .module-head > .actions,
  body :is(.finance-workspace,.growth-workspace) > :is(.finance-header-card,.growth-header-card) > .quick-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  body .workspace > .module-head > .quick-actions a,
  body .workspace > .module-head > .quick-actions button,
  body .workspace > .module-head > .actions > a,
  body .workspace > .module-head > .actions > button,
  body .workspace > .module-head > .actions details,
  body .workspace > .module-head > .actions details > summary,
  body .workarea > .module-head > .quick-actions a,
  body .workarea > .module-head > .quick-actions button,
  body .workarea > .module-head > .actions > a,
  body .workarea > .module-head > .actions > button,
  body .workarea > .module-head > .actions details,
  body .workarea > .module-head > .actions details > summary,
  body :is(.finance-workspace,.growth-workspace) > :is(.finance-header-card,.growth-header-card) > .quick-actions a,
  body :is(.finance-workspace,.growth-workspace) > :is(.finance-header-card,.growth-header-card) > .quick-actions button{
    width:100%!important;
    min-height:38px!important;
  }
  body .workspace > .module-head :is(.primary,.crm-source-note,.crm-retention-link),
  body .workarea > .module-head :is(.primary,.crm-source-note,.crm-retention-link),
  body :is(.finance-workspace,.growth-workspace) > :is(.finance-header-card,.growth-header-card) :is(.primary){
    grid-column:1/-1!important;
  }
}
