/* One professional type and surface system for authenticated product screens.
   Refinement is declared before the compatibility palette: intentional important
   declarations take priority without competing with each legacy app's selectors. */
@layer workspace-refinement {
 html[data-workspace-palette] body {
  font-family:"Workspace Sans",Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:14px!important;font-weight:500!important;line-height:1.6!important;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
 }
 html[data-workspace-palette] :is(button,input,select,textarea) {font-family:inherit!important;font-weight:550!important}
 html[data-workspace-palette] .crm-content :is(h1,h2,h3,h4),
 html[data-workspace-palette] dialog :is(h1,h2,h3,h4) {
  font-family:"Workspace Sans",Inter,system-ui,sans-serif!important;
  font-weight:720!important;letter-spacing:-.035em!important;line-height:1.25!important;color:var(--ui-ink)!important;
 }
 html[data-workspace-palette] .crm-content h1 {font-size:clamp(27px,2.35vw,35px)!important}
 html[data-workspace-palette] .crm-content h2 {font-size:clamp(19px,1.6vw,23px)!important}
 html[data-workspace-palette] .crm-content h3 {font-size:17px!important}
 html[data-workspace-palette] .crm-content h4 {font-size:14px!important;letter-spacing:-.015em!important}
 html[data-workspace-palette] .crm-content :is(strong,b) {font-weight:700!important}
 html[data-workspace-palette] .crm-content :is(p,li,dd) {font-weight:500!important}
 html[data-workspace-palette] .crm-content :is(small,.hint,.muted,.scope-note,.readonly-note) {font-weight:500!important;line-height:1.55!important}
 html[data-workspace-palette] .crm-content :is(.eyebrow,.kicker,.desk-eyebrow,.analytics-eyebrow,.bs-kicker,.field-heading,.info-line>span) {font-weight:700!important;letter-spacing:.07em!important;color:var(--ui-ink)!important}
 html[data-workspace-palette] .crm-content .ops-pearl-heading h1 {font-size:clamp(29px,2.75vw,43px)!important;font-weight:700!important;line-height:1.12!important;letter-spacing:-.055em!important}
 html[data-workspace-palette] .ops-pearl-summary-copy>span {font-size:11px!important;font-weight:600!important;color:var(--ui-ink)!important}
 html[data-workspace-palette] .ops-pearl-summary-copy strong {font-weight:680!important;letter-spacing:-.055em!important}
 html[data-workspace-palette] .ops-pearl-summary-copy small {font-size:10px!important;font-weight:500!important}
 html[data-workspace-palette] .ops-pearl-feature-label {font-size:13px!important;font-weight:700!important;line-height:1.5!important}
 html[data-workspace-palette] .ops-pearl-feature-value {font-weight:650!important}
 html[data-workspace-palette] .ops-pearl-card-heading h2 {font-size:19px!important;font-weight:700!important;letter-spacing:-.035em!important}
 html[data-workspace-palette] .ops-pearl-priority strong {font-size:12px!important;font-weight:650!important}
 html[data-workspace-palette] .ops-pearl-card {box-shadow:0 5px 14px #31212b03,0 16px 38px #31212b05!important}

 /* Interior work panels: light surfaces, a clear heading and real hierarchy. */
 html[data-workspace-palette] .crm-content :is(.panel,.vcrm-panel,.ops-panel,.core-card,.poa-card,.pex-panel,.psp-panel,.wf-panel,.execution-panel) {
  background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;
  border-radius:18px!important;box-shadow:0 3px 8px #31212b02,0 14px 32px #31212b06!important;min-width:0;
 }
 html[data-workspace-palette] .crm-content :is(.panel-header,.panel-h,.rs-panel-head,.analytics-panel-head,.execution-panel>header) {
  background:linear-gradient(120deg,color-mix(in srgb,var(--ui-accent) 5%,var(--ui-surface)),var(--ui-surface) 75%)!important;
  border-bottom:1px solid var(--ui-line)!important;padding:17px 20px!important;
 }
 html[data-workspace-palette] .crm-content :is(.panel-header,.panel-h,.rs-panel-head,.analytics-panel-head) :is(h2,h3) {margin:0!important}
 html[data-workspace-palette] .crm-content :is(.panel-body,.vcrm-panel,.ops-panel,.core-card,.poa-card,.pex-panel,.psp-panel,.wf-panel) {padding:20px!important}
 html[data-workspace-palette] .crm-content :is(.table-toolbar,.vcrm-toolbar,.execution-toolbar,.files-toolbar,.table-view-tools) {
  background:var(--ui-surface)!important;border-color:var(--ui-line)!important;border-radius:12px!important;
  gap:10px!important;padding:13px 16px!important;
 }
 html[data-workspace-palette] .crm-content :is(.page-heading,.page-head,.page-header,.vcrm-heading,.auto-heading,.heading,.mfg-feature-heading) {gap:18px!important;margin-bottom:22px!important}
 html[data-workspace-palette] .crm-content :is(.page-heading,.page-head,.page-header,.vcrm-heading,.auto-heading,.heading,.mfg-feature-heading)>div>p {font-size:13px!important;line-height:1.65!important;max-width:75ch}

 /* Data tables stay data tables; scrolling stays inside the table wrapper. */
 html[data-workspace-palette] .crm-content table {font-size:13px!important;font-variant-numeric:tabular-nums}
 html[data-workspace-palette] .crm-content th {
  background:color-mix(in srgb,var(--ui-accent) 5%,var(--ui-surface))!important;color:var(--ui-ink)!important;
  font-size:11.5px!important;font-weight:750!important;letter-spacing:.045em!important;line-height:1.5!important;
  border-color:var(--ui-line)!important;
 }
 html[data-workspace-palette] .crm-content td {font-size:13px!important;font-weight:500!important;line-height:1.6!important;border-color:var(--ui-line)!important}
 html[data-workspace-palette] .crm-content td :is(a,strong,b) {font-weight:650!important}
 html[data-workspace-palette] .crm-content td :is(small,.muted) {font-size:12px!important}
 html[data-workspace-palette] .crm-content tbody tr:nth-child(even) {background:color-mix(in srgb,var(--ui-accent) 1.8%,var(--ui-surface))!important}
 html[data-workspace-palette] .crm-content tbody tr:hover {background:color-mix(in srgb,var(--ui-accent) 4.5%,var(--ui-surface))!important}
 html[data-workspace-palette] .crm-content :is(.table-wrap,.table-scroll,.vcrm-table-wrap,.core-table,.pex-table,.fc-table-scroll) {border-radius:14px!important;box-shadow:0 4px 16px #31212b03!important}
 html[data-workspace-palette] .crm-content :is(.empty,.empty-state,.files-empty) {padding:30px 22px!important;line-height:1.7!important;border-radius:14px!important;background:color-mix(in srgb,var(--ui-accent) 2.5%,var(--ui-surface))!important}

 html[data-workspace-palette] .crm-content :is(.btn,.button),
 html[data-workspace-palette] dialog :is(.btn,.button) {font-size:12px!important;font-weight:650!important;min-height:38px;padding:10px 16px!important;border-radius:11px!important;letter-spacing:-.01em!important}
 html[data-workspace-palette] .crm-content :is(.btn-primary,.btn.primary,.button.primary),
 html[data-workspace-palette] dialog :is(.btn-primary,.btn.primary,.button.primary,button[type=submit]) {
  background:linear-gradient(125deg,var(--ui-feature-top),var(--ui-feature-bottom))!important;
  color:var(--ui-feature-ink)!important;border-color:transparent!important;box-shadow:0 5px 12px color-mix(in srgb,var(--ui-accent) 16%,transparent)!important;
 }
 html[data-workspace-palette] .crm-content :is(.btn,.button):hover {border-color:color-mix(in srgb,var(--ui-accent) 40%,var(--ui-line))!important}
 html[data-workspace-palette] .crm-content :is(.section-tabs,.owner-tabs,[role=tablist]) {border:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;border-radius:13px!important;padding:5px!important;gap:5px!important}
 html[data-workspace-palette] .crm-content :is(.section-tab,[role=tab]) {font-size:12px!important;font-weight:650!important;border-radius:9px!important;padding:9px 14px!important;min-height:36px!important}
 html[data-workspace-palette] .crm-content :is(.section-tab.active,[role=tab][aria-selected=true]) {background:var(--ui-active)!important;color:var(--ui-on-active)!important;box-shadow:0 3px 8px #27182010!important}

 html[data-workspace-palette] :is(.form-grid,.field-grid,.capture-fields) label,
 html[data-workspace-palette] dialog label {color:var(--ui-ink)!important;font-size:12.5px!important;font-weight:650!important;line-height:1.6!important}
 html[data-workspace-palette] :is(.form-grid,.field-grid) input,
 html[data-workspace-palette] :is(.form-grid,.field-grid) select,
 html[data-workspace-palette] :is(.form-grid,.field-grid) textarea,
 html[data-workspace-palette] dialog :is(input,select,textarea) {
  font-size:13px!important;font-weight:500!important;min-height:42px;background:var(--ui-surface)!important;
  border:1px solid color-mix(in srgb,var(--ui-ink) 15%,var(--ui-line))!important;border-radius:10px!important;
 }
 html[data-workspace-palette] :is(input,select,textarea):focus-visible {
  border-color:var(--ui-accent)!important;outline:2px solid color-mix(in srgb,var(--ui-accent) 20%,transparent)!important;outline-offset:2px!important;
 }
 /* A programmatically focused page landmark is not an interactive control.
    Preserve control focus rings without drawing the browser's blue frame over
    a retained product page when its route changes. */
 html[data-workspace-palette] .crm-workspace>:is(main,section).crm-content[tabindex="-1"]:focus {outline:none!important}
 html[data-workspace-palette] .crm-content :is(.capture-panel,.inline-record-fields,.inline-field-editor,fieldset),
 html[data-workspace-palette] dialog fieldset {border-radius:12px!important;background:color-mix(in srgb,var(--ui-accent) 2%,var(--ui-surface))!important}
 html[data-workspace-palette] dialog h2 {font-size:25px!important;font-weight:730!important}
 html[data-workspace-palette] :is(.pill,.badge,.status-pill,.tag) {font-weight:650!important;font-size:10.5px!important;letter-spacing:.01em!important}
 html[data-workspace-palette] .crm-content svg text {font-family:"Workspace Sans",Inter,system-ui,sans-serif!important;font-weight:550!important}

 html[data-workspace-density=compact] .crm-content :is(.panel-body,.vcrm-panel,.ops-panel,.core-card,.poa-card,.pex-panel,.psp-panel,.wf-panel) {padding:15px!important}
 html[data-workspace-shape=structured] .crm-content :is(.panel,.vcrm-panel,.ops-panel,.core-card,.poa-card,.pex-panel,.psp-panel,.wf-panel,.execution-panel) {border-radius:9px!important}
 html[data-workspace-mode=night] .crm-content :is(.panel,.vcrm-panel,.ops-panel,.core-card,.poa-card,.pex-panel,.psp-panel,.wf-panel,.execution-panel,.ops-pearl-card) {box-shadow:0 8px 28px #00000020!important}
 @media(max-width:700px) {
  html[data-workspace-palette] .crm-content .ops-pearl-heading h1 {font-size:30px!important}
  html[data-workspace-palette] .crm-content :is(.panel-body,.vcrm-panel,.ops-panel,.core-card,.poa-card,.pex-panel,.psp-panel,.wf-panel) {padding:16px!important}
  html[data-workspace-palette] .crm-content :is(.panel-header,.panel-h,.rs-panel-head,.analytics-panel-head) {padding:14px 16px!important}
  html[data-workspace-palette] .crm-content td {font-size:12px!important}
 }
}

/* Content transitions stay inside the working pane while navigation remains stable. */
@layer workspace-refinement {
 .crm-shell .crm-content.workspace-content-enter,.suite-frame #suite-content.workspace-content-enter {
  animation:workspace-content-enter 180ms cubic-bezier(.2,.7,.2,1) both!important;
 }
 .crm-shell .crm-content[data-workspace-content-state="loading"]:has(>p[role="status"]:only-child) {
  position:relative;min-height:min(360px,calc(100dvh - 150px));
 }
 .crm-shell .crm-content[data-workspace-content-state="loading"]:has(>p[role="status"]:only-child)::after {
  content:'';display:block;position:absolute;pointer-events:none;left:24px;right:24px;top:66px;height:190px;
  border:1px solid var(--ui-line,#e5e4e7);border-radius:16px;
  background:linear-gradient(var(--ui-soft,#f3f2f4),var(--ui-soft,#f3f2f4)) 20px 22px/35% 13px no-repeat,
   linear-gradient(var(--ui-soft,#f3f2f4),var(--ui-soft,#f3f2f4)) 20px 54px/63% 10px no-repeat,
   linear-gradient(var(--ui-soft,#f3f2f4),var(--ui-soft,#f3f2f4)) 20px 91px/calc(100% - 40px) 1px no-repeat,
   linear-gradient(var(--ui-soft,#f3f2f4),var(--ui-soft,#f3f2f4)) 20px 117px/52% 10px no-repeat,
   linear-gradient(var(--ui-soft,#f3f2f4),var(--ui-soft,#f3f2f4)) 20px 147px/72% 10px no-repeat,
   var(--ui-surface,#fff);
  animation:workspace-loading-breathe 1200ms ease-in-out infinite;
 }
 @media(hover:hover) and (pointer:fine) {
  html[data-workspace-palette] .crm-shell :is(.btn,.desk-btn,.analytics-button,.bs-button,.crm-icon-button,.crm-nav-link,summary),
  html[data-workspace-palette] .suite-frame :is(button,.suite-button) {
   transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease,box-shadow 180ms ease,translate 180ms cubic-bezier(.2,.7,.2,1)!important;
  }
  html[data-workspace-palette] .crm-shell :is(.btn,.desk-btn,.analytics-button,.bs-button,.crm-icon-button):hover:not(:disabled):not([aria-disabled="true"]) {translate:0 -1px}
  html[data-workspace-palette] .crm-shell .crm-navigation .crm-nav-link:hover {translate:1px 0}
  html[data-workspace-palette] .crm-shell :is(.owner-department-card,.tool-card,.suite-app-card,.mfg-feature-tile) {
   transition:box-shadow 180ms ease,border-color 160ms ease,translate 200ms cubic-bezier(.2,.7,.2,1)!important;
  }
  html[data-workspace-palette] .crm-shell :is(.owner-department-card,.tool-card,.suite-app-card,.mfg-feature-tile):hover {translate:0 -2px}
 }
 @keyframes workspace-content-enter {from{opacity:.82;translate:0 4px}to{opacity:1;translate:0 0}}
 @keyframes workspace-loading-breathe {0%,100%{opacity:.65}50%{opacity:1}}
 @media(prefers-reduced-motion:reduce) {
  .workspace-content-enter,.crm-content[data-workspace-content-state="loading"]::after {animation:none!important;translate:none!important}
  html[data-workspace-palette] .crm-shell :is(a,button,summary,.owner-department-card,.tool-card,.suite-app-card,.mfg-feature-tile) {transition:none!important;translate:none!important}
 }
 .dashboard-motion-paused .workspace-content-enter,.dashboard-motion-paused .crm-content[data-workspace-content-state="loading"]::after {animation:none!important;translate:none!important}
 .dashboard-motion-paused :is(a,button,summary,.owner-department-card,.tool-card,.suite-app-card,.mfg-feature-tile) {translate:none!important}
}

/* Fit more live records on desktop while retaining the workspace's natural scroll and card geometry. */
@layer workspace-refinement {
 @media screen and (min-width:901px) {
  html[data-workspace-palette] body:has(.crm-shell:is(
   [data-owner-product=hospital],[data-owner-product=diagnostics],[data-owner-product=pharmacy],[data-owner-product=ca_practice],[data-owner-product=legal],[data-owner-product=insurance],[data-owner-product=housing],
   [data-owner-product=education],[data-owner-product=workforce],[data-owner-product=hr],
   [data-owner-product=real_estate],[data-owner-product=restaurant],[data-owner-product=hotel],[data-owner-product=salon],
   [data-owner-product=store],[data-owner-product=automobile],[data-owner-product=fitness],[data-owner-product=travel],
   [data-business-workspace],[data-operations-product])) {
   --workspace-dense-gap:12px;--workspace-dense-inset:12px;--ui-gap:16px;--ui-cell:7px;
   font-size:13px!important;line-height:1.45!important;

   @media (max-width:1100px) {--workspace-dense-gap:9px;--workspace-dense-inset:10px}
   &:is(html[data-workspace-density=compact] body) {--workspace-dense-gap:9px;--workspace-dense-inset:10px;--ui-gap:12px;--ui-cell:6px}
   & .crm-shell {--crm-sidebar-width:clamp(204px,16vw,228px)!important}
   & .crm-sidebar {padding:9px 9px 7px!important}
   & :is(.crm-brand-row,.crm-nav-search,.crm-nav-search input) {min-height:29px!important}
   & .crm-brand>span {font-size:18px!important}
   & .crm-brand .workspace-product-logo {width:30px!important;height:25px!important}
   & .crm-product-label {margin:5px 5px 7px!important}
   & .crm-product-label .workspace-parent-brand {margin-top:1px}
   & .crm-company {min-height:38px!important;padding:5px 7px!important}
   & :is(.crm-company,.crm-account) .crm-avatar {width:25px!important;height:25px!important;min-width:25px!important;flex-basis:25px!important}
   & :is(.crm-company,.crm-account) small {margin-top:1px}
   & .crm-nav-search {margin:6px 0 5px!important;height:29px!important;max-height:29px!important}
   & .crm-nav-search input {height:29px!important;max-height:29px!important;padding-block:4px!important}
   & .crm-sidebar>.crm-navigation {padding-bottom:5px!important;scroll-padding-block:5px;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-color:color-mix(in srgb,var(--ui-muted) 65%,var(--ui-line)) transparent!important}
   & .crm-navigation .crm-nav-link {min-height:28px!important;padding:5px 6px!important;gap:6px!important;font-size:12px!important;line-height:1.35!important}
   & .crm-navigation :is(.crm-nav-group,.ps-suite-links>strong) {margin:7px 6px 2px!important}
   & .crm-navigation :is(.crm-nav-accordion,.ps-service-menu) {margin:1px 0!important}
   & .crm-navigation :is(.crm-nav-accordion>summary,.ps-service-menu>summary) {min-height:28px!important;padding:4px 5px!important}
   & .crm-navigation details[data-workspace-menu-group]>summary>.crm-accordion-count {min-width:0!important;padding:2px 4px!important}
   & .crm-navigation :is(.crm-nav-accordion-items,.ps-service-menu-items) {padding:1px 2px 2px 7px!important}
   & .crm-intelligence-dock .crm-intel-dock-link {min-height:31px!important;height:31px!important;padding:4px 8px!important}
   & .crm-account {margin-top:5px!important;min-height:35px!important;padding-top:5px!important}

   & .crm-topbar.ops-pearl-header {margin:7px 14px 0!important;padding:5px 8px!important;min-height:45px!important;gap:6px!important}
   & .workspace-view-navigation {flex:1 1 14rem!important;min-width:0!important}
   & .workspace-view-navigation :is(.ops-pearl-header-tabs .ops-pearl-header-tab,.workspace-all-views) {min-height:28px!important;padding:4px 8px!important}
   & .crm-content {padding:var(--workspace-dense-inset) 14px 64px!important;min-width:0}
   & .crm-content :is(h1,.ops-pearl-heading h1) {font-size:clamp(23px,1.85vw,28px)!important;line-height:1.15!important;margin-block:0 5px!important}
   & .crm-content h2 {font-size:17px!important;line-height:1.26!important}
   & .crm-content h3 {font-size:14px!important;line-height:1.3!important}
   & dialog:is(#industry-dialog,#modal,.nb-dialog) {padding:16px!important}
   & dialog h2 {font-size:21px!important}
   & .crm-content :is(.page-heading,.page-head,.page-header,.vcrm-heading,.rs-heading,.care-heading,.business-interior-heading,.desk-heading,.analytics-heading,.head) {gap:var(--workspace-dense-gap)!important;margin-bottom:var(--workspace-dense-gap)!important;padding:var(--workspace-dense-inset) 14px!important}
   & :is(.crm-content,dialog) :is(.btn,.button) {font-size:12px!important;min-height:30px!important;padding:5px 9px!important;line-height:1.35!important}
   & :is(.crm-content,dialog) :is(select,input:not([type=checkbox],[type=radio],[type=file],[type=range],[type=hidden],[type=button],[type=submit])) {min-height:30px!important;font-size:13px!important;padding-block:4px!important}
   & .crm-content :is(.section-tab,[role=tab]) {min-height:29px!important;font-size:12px!important;padding:5px 9px!important}
   & .crm-content :is(.vcrm-panel,.rs-panel,.care-panel,.panel-body,.ops-panel,.portfolio-pearl-departments,.portfolio-pearl-intelligence,.owner-department-card) {padding:var(--workspace-dense-inset)!important}
   & .crm-content :is(.vcrm-form-grid,.care-form,.industry-toolbar,.vcrm-toolbar,.industry-actions,.sp-task-links,.care-daily-actions,.nb-toolbar) {gap:7px!important}
   & dialog :is(.vcrm-form-grid,.care-form,.nb-form-grid) {gap:8px!important}
   & .crm-content :is(td,th) {padding:var(--ui-cell) 9px!important;line-height:1.35!important}
   & .crm-content td {font-size:12px!important}
   & .crm-content :is(.sp-task-launcher,.neighbour-tasks,.care-daily) {margin-bottom:var(--workspace-dense-gap)!important}
   & .crm-content :is(.sp-task-launcher,.neighbour-all-tasks,.care-daily-more) summary {padding-block:4px;min-height:25px}
   & .crm-content :is(.sp-task-launcher,.neighbour-tasks,.care-daily):not(:has(>details[open],>.care-daily-visits)) {
    display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;
    padding:var(--workspace-dense-inset)!important;
   }
   & :is(.sp-task-launcher,.neighbour-tasks,.care-daily):not(:has(>details[open],>.care-daily-visits)) :is(h2,details,.neighbour-task-actions) {margin-block:0!important}

   & :is(.ops-pearl-overview,.ops-department-dashboard) {gap:var(--workspace-dense-gap)!important;max-width:none!important}
   & .portfolio-pearl-departments {display:grid!important;grid-template-columns:auto minmax(0,1fr) minmax(120px,170px);align-items:center;gap:8px!important}
   & .portfolio-pearl-departments>label {display:grid!important;grid-column:3;grid-row:1;gap:3px;font-size:11px!important}
   & .portfolio-pearl-departments h2 {margin-block:2px 0!important}
   & .portfolio-pearl-departments .owner-tabs {grid-column:2;grid-row:1;width:100%!important;min-width:0!important;padding:3px!important;gap:3px!important}
   & .ops-pearl-intro {min-height:0!important;gap:var(--workspace-dense-gap)!important}
   & .ops-pearl-heading {flex:1 0 min(24%,245px)!important}
   & .ops-pearl-heading p {margin-block:0 4px!important;font-size:12px!important;line-height:1.45!important}
   & .ops-pearl-summary {flex:4 1 340px!important;gap:7px!important}
   & .ops-pearl-summary-metric {gap:7px!important;align-items:flex-start;padding:8px!important}
   & .ops-pearl-summary-copy {gap:3px!important}
   & .ops-pearl-summary-copy strong {font-size:clamp(19px,1.75vw,26px)!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere}
   & .ops-pearl-icon {width:27px!important;height:27px!important}
   & .ops-pearl-icon svg {width:14px!important;height:14px!important}
   & .portfolio-pearl-meta {margin-block:0!important;gap:6px 10px!important}
   & .ops-pearl-dashboard {
    grid-template-columns:minmax(0,1fr) minmax(0,2.15fr) minmax(0,1.28fr)!important;
    grid-template-areas:'feature activity health' 'feature calendar priorities'!important;
    grid-template-rows:minmax(150px,auto) minmax(140px,auto)!important;gap:var(--workspace-dense-gap)!important;
   }
   & .ops-pearl-card-heading {gap:6px!important;margin-block-end:7px!important;flex-wrap:wrap}
   & .ops-pearl-card-heading h2 {font-size:16px!important}
   & .ops-pearl-overview :is(.ops-pearl-feature,.ops-pearl-card,.ops-pearl-recent,.sp-priority-board,.care-daily-visits) {padding:var(--workspace-dense-inset)!important}
   & .ops-pearl-feature {gap:10px!important}
   & .ops-pearl-feature-label {margin-block-end:10px!important;padding-inline-end:22px}
   & .ops-pearl-feature-value {font-size:32px!important;margin-block-end:10px!important}
   & .ops-pearl-feature[data-portfolio-value-size] .ops-pearl-feature-value {font-size:18px!important;white-space:normal!important;overflow-wrap:anywhere}
   & .ops-pearl-feature-note {margin-block-start:8px!important}
   & .ops-pearl-feature-origin {padding-block-start:8px!important}
   & .ops-pearl-gauge-value strong {font-size:25px!important}
   & .ops-pearl-activity-chart {max-height:128px!important}
   & .portfolio-pearl-snapshot {min-height:0!important;max-height:160px!important}
   & .ops-pearl-week {padding-block-end:5px}
   & .ops-pearl-calendar-body {padding-block-start:5px}
   & .ops-pearl-dashboard :is(.ops-pearl-source-note,.ops-pearl-calendar-footer) {margin-block:6px 0!important}
   & .ops-pearl-more {gap:var(--workspace-dense-gap)!important}
   & :is(.sp-queue-cards,.neighbour-metrics,.care-daily-stages,.nb-grid) {gap:7px!important}
   & :is(.sp-queue-card,.neighbour-metric,.care-daily-stage) {padding:8px!important;gap:4px!important}
   & :is(.sp-queue-card,.neighbour-metric,.care-daily-stage) strong {font-size:22px!important}
   & :is(.sp-priority-records,.neighbour-today-list) li {padding-block:6px}
   & :is(.nb-heading,.nb-status,.nb-prebuilt) {margin-bottom:var(--workspace-dense-gap)!important}
   & .nb-toolbar {padding:8px!important}
   & .nb-card {padding:12px 12px 24px!important}
  }
 }
}

@layer workspace-refinement{
 @media screen and (min-width:901px){
  html[data-workspace-palette] .crm-shell:is([data-operations-product],[data-owner-product=real_estate],[data-owner-product=restaurant],[data-owner-product=hotel],[data-owner-product=salon],[data-owner-product=store],[data-owner-product=automobile],[data-owner-product=fitness],[data-owner-product=travel]) {
   & .crm-content :is(.panel,.rs-panel,.industry-panel) {padding:var(--workspace-dense-inset)!important;margin-block-end:var(--workspace-dense-gap)!important}
   & .crm-content :is(.panel-header,.panel-h,.rs-panel-head,.industry-toolbar) {padding:8px 10px!important;gap:7px!important}
   & .ops-pearl-overview > .workspace-task-launcher {padding:8px var(--workspace-dense-inset);margin:0}
   & .crm-content > .workspace-task-launcher {padding:8px var(--workspace-dense-inset);margin-block-end:var(--workspace-dense-gap)}
   & .workspace-task-launcher:not(:has(details[open])) {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}
   & .workspace-task-launcher .workspace-task-heading {gap:6px 10px}
   & .workspace-task-launcher .workspace-task-links {gap:5px}
   & .workspace-task-launcher:not(:has(details[open])) > details {margin:0}
   & .workspace-department-switcher {padding:8px var(--workspace-dense-inset)!important;gap:6px 8px!important}
   & .workspace-department-switcher > label {font-size:12px}
   & .people-dashboard-host {margin-block:4px!important}
  }
 }
}

@layer workspace-refinement{
 @media screen and (min-width:901px){
  html[data-workspace-palette] .crm-shell[data-business-workspace] .crm-content :is(.panel,.desk-panel,.analytics-panel,.wf-panel,.execution-panel){
   padding:var(--workspace-dense-inset)!important;margin-block-end:var(--workspace-dense-gap)!important
  }
  html[data-workspace-palette] .crm-shell[data-business-workspace] .crm-content :is(.panel-header,.analytics-panel-head,.table-toolbar,.desk-tools,.execution-toolbar){
   padding:7px 10px!important;gap:7px!important
  }
  html[data-workspace-palette] .crm-shell[data-business-workspace] .crm-content :is(.form-grid,.fields,.wf-form,.desk-actions,.analytics-actions,.controls,.actions){gap:7px!important}
  html[data-workspace-palette] .crm-shell[data-business-workspace] .crm-content :is(.head,.business-interior-heading,.desk-heading,.analytics-heading) p{margin-block:3px;line-height:1.45!important}
  html[data-workspace-palette] .crm-shell[data-business-workspace] .workspace-department-switcher {padding:8px 12px!important;gap:6px 8px!important}
  html[data-workspace-palette] .crm-shell[data-business-workspace] .workspace-department-switcher label {min-width:0}
 }
}

@layer workspace-refinement{
 @media screen and (min-width:901px){
  html[data-workspace-palette] .crm-shell:is([data-owner-product=education],[data-owner-product=workforce],[data-owner-product=hr]) {
   & .crm-content :is(.panel,.people-panel,.campus-panel,.workspace-task-launcher) {padding:var(--workspace-dense-inset)!important;margin-block:0 var(--workspace-dense-gap)!important}
   & .crm-content :is(.heading,.panel-h,.people-heading,.campus-heading,.edu-list-tools) {padding:8px 10px!important;gap:7px!important;margin-block-end:8px!important}
   & .crm-content :is(.form-grid,.people-grid,.campus-form,.shift-actions) {gap:8px!important}
   & .workspace-department-switcher {padding:8px 12px!important;gap:6px 8px!important}
   & .workspace-department-switcher label {min-width:0}
   & .people-dashboard-host {margin-block:4px!important}
   & .workspace-task-launcher:not(:has(details[open])) {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
   & .workspace-task-launcher :is(h2,details) {margin:0!important}
  }
 }
}
