.dashboard-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 12px}.dashboard-widget-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}.dashboard-widget-grid[hidden],.dashboard-widget-picker[hidden]{display:none}.dashboard-widget{min-width:0;max-width:100%;container-type:inline-size}.dashboard-size-small{grid-column:span 1}.dashboard-size-half{grid-column:span 2}.dashboard-size-full{grid-column:1/-1}.dashboard-widget-content>.panel,.dashboard-widget-content>.metric,.dashboard-widget-content>.assessor-vital{margin:0;width:100%;box-sizing:border-box}.dashboard-widget-content .panelbody{max-height:560px;overflow:auto}.dashboard-widget-content .tablewrap{max-width:100%;overflow-x:auto}.dashboard-widget-content .office-task-preview{overflow-wrap:anywhere}.dashboard-widget-content>.assessor-vital{min-height:140px}.dashboard-widget-content>.metric{min-height:140px}.dashboard-widget-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;background:#eee;border:1px dashed #666;border-bottom:0;border-radius:8px 8px 0 0}.dashboard-widget-controls button,.dashboard-widget-controls select{min-height:40px}.dashboard-widget-controls label{display:flex;gap:8px;align-items:center}.dashboard-drag-handle{cursor:grab;max-width:100%;white-space:normal}.dashboard-drag-handle:active{cursor:grabbing}.dashboard-widget-picker{padding:20px;margin-top:16px;background:#fff;border:1px solid #ccc;border-radius:8px}.dashboard-widget-choices{display:flex;flex-wrap:wrap;gap:12px}.dashboard-widget-picker section{margin-top:20px}.dashboard-widget-content[inert]{opacity:.75}.dashboard-widget-content .assessor-priority-filters,.dashboard-widget-content .actions{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:1100px){html:not(.full-desktop-view) .dashboard-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html:not(.full-desktop-view) .dashboard-size-half,html:not(.full-desktop-view) .dashboard-size-full{grid-column:1/-1}}
@media(max-width:600px){html:not(.full-desktop-view) .dashboard-widget-grid{gap:12px}html:not(.full-desktop-view) .dashboard-widget-controls{padding:10px}html:not(.full-desktop-view) .dashboard-widget-controls button{min-height:44px}html:not(.full-desktop-view) .dashboard-widget-content .panelbody{padding:12px}html:not(.full-desktop-view) .dashboard-widget-picker{padding:12px}html:not(.full-desktop-view) .dashboard-widget-controls label{flex-wrap:wrap}}
.dashboard-widget-content>.metric{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;padding:22px;border:1px solid #d6d6d6;border-radius:12px;background:#fff;color:#333}.dashboard-widget-content .metric .value{font-size:clamp(23px,2.1vw,34px);line-height:1.2;overflow-wrap:anywhere}.dashboard-widget-content .metric small{font-size:12px;line-height:1.5;color:#666}
@media(max-width:450px){html:not(.full-desktop-view) .dashboard-widget-content>.metric{padding:14px}html:not(.full-desktop-view) .dashboard-widget-content .metric .value{font-size:24px}}
.dashboard-widget-content[inert]{pointer-events:none}

.dashboard-drag-handle{touch-action:none;user-select:none}.dashboard-drop-target{outline:3px dashed #555;outline-offset:4px}.dashboard-widget-content .director-status-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #eee;font-size:14px}.dashboard-widget-content .director-status-row strong{text-align:right;overflow-wrap:anywhere}


/* Dashboard actions share the heading row; editing controls remain above widgets. */
.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.dashboard-heading>.dashboard-editor-toolbar{margin:0 0 0 auto;flex:0 0 auto;flex-wrap:nowrap;gap:12px}
.dashboard-options{position:relative}.dashboard-options>summary{list-style:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #d9dde2;border-radius:7px;background:white;color:#333;font-size:26px;line-height:1;cursor:pointer}
.dashboard-options>summary::-webkit-details-marker{display:none}.dashboard-options>summary:focus-visible{outline:3px solid #555;outline-offset:3px}
.dashboard-heading>.dashboard-editor-toolbar>button{min-height:44px}
.dashboard-options-items{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:210px;max-width:80vw;padding:8px;display:flex;flex-direction:column;gap:12px;border:1px solid #d9dde2;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0002}
.dashboard-options-items>button{text-align:left;min-height:44px;width:100%}
.dashboard-editor-toolbar:empty{display:none}

/* Equal outer dimensions, sized to the tallest small tile without clipping text. */
.dashboard-small-tile{box-sizing:border-box;height:var(--dashboard-small-tile-height,auto)!important}


/* Editing keeps the real tiles visible; one compact toolbar serves the selection. */
.dashboard-widget-editable{position:relative;overflow:visible;outline:1px dashed #96969a;outline-offset:3px;border-radius:12px}
.dashboard-widget-editable .dashboard-widget-content[inert]{opacity:1}
.dashboard-widget-editable>.dashboard-drag-handle{position:absolute;inset:0;z-index:3;width:100%;height:100%;max-width:none;min-height:0;padding:0;margin:0!important;background:transparent;border:0;border-radius:12px;cursor:grab;touch-action:none}
.dashboard-widget-editable>.dashboard-drag-handle:hover{background:#00000004}
.dashboard-widget-selected{outline:3px solid #555;outline-offset:3px}
.dashboard-widget-dragging{opacity:.55}
.dashboard-drop-target{outline:3px dashed #b51220;outline-offset:4px}
.dashboard-drop-target:after{content:attr(data-drop-label);position:absolute;left:8px;top:8px;z-index:5;background:#333;color:white;border-radius:6px;padding:8px 12px;pointer-events:none;font-size:12px}
.dashboard-selection-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;margin-bottom:18px;background:#fff;border:1px solid #d9dde2;border-radius:8px;position:sticky;top:8px;z-index:20}
.dashboard-selection-tools[hidden]{display:none}.dashboard-selection-tools>strong{margin-right:auto;font-size:14px}
.dashboard-direction-buttons{display:flex;gap:12px}.dashboard-direction-buttons>button,.dashboard-selection-tools>button{display:grid;place-items:center;width:40px;min-height:40px;padding:4px;font-size:21px}.dashboard-selection-tools select{min-height:40px;max-width:100%;padding:6px}
@media(max-width:600px){.dashboard-selection-tools>strong{flex-basis:100%}.dashboard-direction-buttons{gap:12px}.dashboard-direction-buttons>button{width:36px}.dashboard-selection-tools{top:64px}}
.dashboard-selection-tools{position:fixed;top:auto;bottom:24px;left:50%;transform:translateX(-50%);width:min(900px,calc(100vw - 32px));box-sizing:border-box;z-index:1001;box-shadow:0 8px 32px #0003}
@media(max-width:600px){.dashboard-selection-tools{top:auto;bottom:78px}}

/* One compact identity/header treatment for every staff dashboard layout. */
#content .dashboard-unified-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:4px 0 20px;margin:0 0 20px;border-bottom:1px solid #ddd}
#content .dashboard-header-identity{flex:1;min-width:0}
#content .dashboard-header-context{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:12px;color:#666;font-size:13px}
#content .dashboard-header-context h1{margin:0;font-size:13px;line-height:1.5;font-weight:700;color:#444}
#content .dashboard-header-context>span{border-left:1px solid #ccc;padding-left:12px}
#content .dashboard-unified-header .assessor-welcome-profile{display:flex;align-items:center;flex-wrap:nowrap;gap:16px;margin:0;padding:0;border:0}
#content .dashboard-unified-header .assessor-welcome-copy{flex:1;min-width:0}
#content .dashboard-unified-header .crm-greeting-photo{width:64px;height:64px;flex-basis:64px;object-fit:cover}
#content .dashboard-unified-header .welcome-title{line-height:1.5}
#content .dashboard-unified-header .welcome-title strong{font-size:22px;color:#292929}
#content .dashboard-unified-header .daily-fact{margin:6px 0 0;font-size:13px;line-height:1.5;color:#666}
#content .dashboard-header-actions{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
#content .dashboard-header-actions>.dashboard-editor-toolbar{margin:0;flex-wrap:nowrap;gap:12px}
#content .dashboard-header-actions>.dashboard-editor-toolbar>button{min-height:44px}
#content .dashboard-refreshed{font-size:11px;line-height:1.5;color:#666;text-align:right}
@media(max-width:800px){
 #content .dashboard-unified-header{align-items:flex-start;flex-direction:column;gap:14px}
 #content .dashboard-header-actions{align-self:flex-end}
}
@media(max-width:450px){
 #content .dashboard-unified-header .crm-greeting-photo{width:52px;height:52px;flex-basis:52px}
 #content .dashboard-unified-header .assessor-welcome-profile{gap:12px;align-items:flex-start}
 #content .dashboard-unified-header .welcome-title strong{font-size:19px}
 #content .dashboard-header-context{margin-bottom:12px}
}


/* Phone dashboard: compact identity row and two readable summary tiles per row. */
@media screen and (max-width:600px){
 html:not(.full-desktop-view) #content .dashboard-unified-header{gap:12px;padding:0 0 14px;margin-bottom:14px}
 html:not(.full-desktop-view) #content .dashboard-header-context{font-size:11px;gap:6px 8px;margin-bottom:10px}
 html:not(.full-desktop-view) #content .dashboard-header-context h1{font-size:11px}
 html:not(.full-desktop-view) #content .dashboard-header-context>span{padding-left:8px}
 html:not(.full-desktop-view) #content .dashboard-unified-header .crm-greeting-photo{width:44px;height:44px;flex-basis:44px}
 html:not(.full-desktop-view) #content .dashboard-unified-header .assessor-welcome-profile{gap:10px}
 html:not(.full-desktop-view) #content .dashboard-unified-header .welcome-title strong{font-size:18px;line-height:1.3;display:block}
 html:not(.full-desktop-view) #content .dashboard-unified-header .welcome-title>span{display:block;font-size:13px;line-height:1.4;margin-top:2px}
 html:not(.full-desktop-view) #content .dashboard-unified-header .daily-fact{font-size:12px;line-height:1.4;margin-top:6px}
 html:not(.full-desktop-view) #content .dashboard-header-actions{width:100%;flex-direction:row;justify-content:space-between;align-items:center;gap:12px}
 html:not(.full-desktop-view) #content .dashboard-header-actions>.dashboard-editor-toolbar{order:2;gap:12px}
 html:not(.full-desktop-view) #content .dashboard-header-actions>.dashboard-editor-toolbar>button{min-height:44px;font-size:13px;padding:8px 10px}
 html:not(.full-desktop-view) #content .dashboard-refreshed{order:1;text-align:left;font-size:10px;max-width:145px}
 html:not(.full-desktop-view) #content .director-home .director-summary,html:not(.full-desktop-view) #content .dashboard-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:0;align-items:stretch}
 html:not(.full-desktop-view) #content .director-summary>.metric,html:not(.full-desktop-view) #content .dashboard-widget-grid>.dashboard-size-small{grid-column:span 1}
 html:not(.full-desktop-view) #content :is(.director-summary,.dashboard-widget-content)>.crm-summary-metric{min-height:132px;padding:12px;height:auto!important}
 html:not(.full-desktop-view) #content .dashboard-widget-content:has(>.crm-summary-metric){height:100%}
 html:not(.full-desktop-view) #content .dashboard-widget-content>.crm-summary-metric{height:100%!important}
 html:not(.full-desktop-view) #content :is(.director-summary,.dashboard-widget-content)>.crm-summary-metric .label{font-size:12px;line-height:1.4;min-height:4.2em;padding-right:28px}
 html:not(.full-desktop-view) #content :is(.director-summary,.dashboard-widget-content)>.crm-summary-metric .value{font-size:clamp(17px,5vw,22px);line-height:1.2;letter-spacing:-.4px;margin:8px 0 0;overflow-wrap:normal}
 html:not(.full-desktop-view) #content :is(.director-summary,.dashboard-widget-content)>.crm-summary-metric>.director-info{top:2px;right:0}
 html:not(.full-desktop-view) #content :is(.director-summary,.dashboard-widget-content)>.crm-summary-metric>small:not([hidden]){font-size:11px;margin-top:8px;padding-top:8px}
}

@media screen and (max-width:600px){
 html:not(.full-desktop-view) #content .dashboard-unified-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px 12px}
 html:not(.full-desktop-view) #content .dashboard-header-identity,html:not(.full-desktop-view) #content .dashboard-header-actions{display:contents}
 html:not(.full-desktop-view) #content .dashboard-header-context{grid-column:1;grid-row:1;margin:0}
 html:not(.full-desktop-view) #content .dashboard-unified-header .assessor-welcome-profile{grid-column:1/-1;grid-row:2}
 html:not(.full-desktop-view) #content .dashboard-header-actions>.dashboard-editor-toolbar{grid-column:2;grid-row:1;gap:6px}
 html:not(.full-desktop-view) #content .dashboard-refreshed{display:none}
 html:not(.full-desktop-view) #content .dashboard-refresh-button>.dashboard-refresh-label{display:none}
 html:not(.full-desktop-view) #content .dashboard-header-actions>.dashboard-editor-toolbar>.dashboard-refresh-button{width:44px;height:44px;padding:0;justify-content:center}
 html:not(.full-desktop-view) #content .dashboard-header-actions .dashboard-options>summary{box-sizing:border-box;width:44px;height:44px;border:1px solid #d9dde2;border-radius:7px;background:#fff;font-size:22px}
}

@media(min-width:801px){#content .dashboard-unified-header .crm-greeting-photo{width:80px;height:80px;flex-basis:80px}}

@media(min-width:801px){#content .dashboard-header-context h1{font-size:1.85rem;line-height:1.2;letter-spacing:-1px;color:#25272b}#content .dashboard-header-context{gap:12px 16px;margin-bottom:16px}}

/* Role dashboards load asynchronously; only the unified header is presented. */
#content:has(> .dashboard-unified-header) .assessor-welcome-profile:not(.dashboard-unified-header .assessor-welcome-profile),
#content:has(> .dashboard-unified-header) .dashboard-period,
#content:has(> .dashboard-unified-header) .heading:not(.dashboard-unified-header .heading):has(> h1){display:none}
@media(max-width:600px){
 html:not(.full-desktop-view) #content .dashboard-unified-header .assessor-welcome-profile{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:16px 10px}
 html:not(.full-desktop-view) #content .dashboard-unified-header .assessor-welcome-copy,
 html:not(.full-desktop-view) #content .dashboard-unified-header .welcome-copy{display:contents}
 html:not(.full-desktop-view) #content .dashboard-unified-header .welcome-title{grid-column:2;grid-row:1}
 html:not(.full-desktop-view) #content .dashboard-unified-header .daily-fact{grid-column:1/-1;margin:0;text-align:left}
}

/* Shared panel geometry for default and personalised staff dashboards. */
#content .panel[data-dashboard-widget]{
 box-sizing:border-box;display:flex;flex-direction:column;min-width:0;margin:0;
 height:480px;
}
#content .panel[data-dashboard-widget]>.panelhead{
 box-sizing:border-box;flex:0 0 72px;min-height:72px;padding:16px 20px;
 display:flex;align-items:center;justify-content:space-between;gap:12px;
}
#content .panel[data-dashboard-widget]>.panelhead h2{margin:0;min-width:0}
.dashboard-panel-heading{display:grid;gap:4px;min-width:0;flex:1 1 180px}
.dashboard-panel-heading>h2,.dashboard-panel-heading>h3{margin:0}
.dashboard-panel-subtitle{color:var(--muted,#525c6b);font-size:.8125rem;line-height:1.35;font-weight:400;overflow-wrap:anywhere}
#content .panel[data-dashboard-widget]>.panelhead:has(>.dashboard-panel-heading){flex-basis:auto;flex-wrap:wrap}
#content .panel[data-dashboard-widget]>.panelbody{
 box-sizing:border-box;flex:1 1 auto;min-height:0;max-height:none;
 overflow:auto;scrollbar-gutter:stable;padding:20px;
}
#content .dashboard-widget-grid,#content .director-panels{gap:20px;align-items:stretch}
@media(max-width:900px){
 html:not(.full-desktop-view) #content .panel[data-dashboard-widget]{height:auto}
 html:not(.full-desktop-view) #content .panel[data-dashboard-widget]>.panelhead{
  flex-basis:auto;min-height:64px;height:auto;flex-wrap:wrap;padding:16px;
 }
 html:not(.full-desktop-view) #content .panel[data-dashboard-widget]>.panelbody{
  flex:none;overflow:visible;scrollbar-gutter:auto;padding:16px;
 }
}
@media(max-width:600px){
 html:not(.full-desktop-view) #content .dashboard-widget-grid,
 html:not(.full-desktop-view) #content .director-panels{gap:12px}
}

/* Caseload is a compact summary, not a scrollable work-list panel. */
#content .panel[data-dashboard-widget="assessor.caseload"]{height:auto;min-height:0}
#content .panel[data-dashboard-widget="assessor.caseload"]>.panelbody{flex:none;overflow:visible;scrollbar-gutter:auto}
#content .assessor-daily-dashboard>.panel[data-dashboard-widget="assessor.caseload"]{margin-bottom:20px}

/* Keep a clear bottom edge below dashboard scroll areas across staff roles. */
#content .panel[data-dashboard-widget]>.panelbody,
#content .office-overview-grid>.office-dashboard-pane:not([data-dashboard-widget])>.panelbody{margin-bottom:16px}
#content .panel[data-dashboard-widget="assessor.caseload"]>.panelbody{margin-bottom:0}
@media(max-width:900px){
 html:not(.full-desktop-view) #content .panel[data-dashboard-widget]>.panelbody{margin-bottom:0}
}

/* Keep the inbox action outside the scrolling messages at every viewport size. */
#content .dashboard-messages-panel{display:flex;flex-direction:column}
#content .panel.dashboard-messages-panel>.panelbody{min-height:0;margin-bottom:0;flex:1 1 auto}
#content .dashboard-messages-panel>.dashboard-message-footer{
 flex:0 0 auto;position:static;display:flex;flex-wrap:wrap;gap:12px;
 margin:0;padding:16px 20px;border-top:1px solid #e3e5e9;background:#fff;
}
#content .dashboard-message-footer>button{margin:0;min-height:44px}
@media(max-width:900px){
 html:not(.full-desktop-view) #content .dashboard-messages-panel>.dashboard-message-footer{padding:16px}
}


/* Phone identity remains compact before and after asynchronous header assembly. */
@media screen and (max-width:600px){
 html:not(.full-desktop-view) #content .dashboard-header-context{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:12px;line-height:1.35}
 html:not(.full-desktop-view) #content .dashboard-header-context h1{font-size:20px;line-height:1.2;font-weight:600;letter-spacing:-.4px}
 html:not(.full-desktop-view) #content .dashboard-header-context > span{border:0;padding:0}
 html:not(.full-desktop-view) #content .dashboard-unified-header{gap:12px;padding-bottom:14px}
 html:not(.full-desktop-view) #content .dashboard-header-actions > .dashboard-editor-toolbar{gap:12px}
 html:not(.full-desktop-view) #content .dashboard-header-actions .dashboard-options > summary,
 html:not(.full-desktop-view) #content .dashboard-header-actions .dashboard-refresh-button{box-sizing:border-box;border-color:#e4e5e8;border-radius:9px;width:44px;height:44px;min-height:44px}
 html:not(.full-desktop-view) body[data-workspace-page="dashboard"] #content .assessor-welcome-profile{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:12px 10px;margin:0;padding:0;border:0}
 html:not(.full-desktop-view) body[data-workspace-page="dashboard"] #content .assessor-welcome-profile :is(.assessor-welcome-copy,.welcome-copy){display:contents}
 html:not(.full-desktop-view) body[data-workspace-page="dashboard"] #content .assessor-welcome-profile .crm-greeting-photo{width:44px;height:44px;min-width:44px;flex-basis:44px;object-fit:cover}
 html:not(.full-desktop-view) body[data-workspace-page="dashboard"] #content .assessor-welcome-profile .welcome-title{grid-column:2;grid-row:1;line-height:1.4}
 html:not(.full-desktop-view) body[data-workspace-page="dashboard"] #content .assessor-welcome-profile .welcome-title strong{display:block;font-size:18px;line-height:1.3}
 html:not(.full-desktop-view) body[data-workspace-page="dashboard"] #content .assessor-welcome-profile .welcome-title > span{display:block;font-size:13px;line-height:1.4;margin-top:2px}
 html:not(.full-desktop-view) body[data-workspace-page="dashboard"] #content .assessor-welcome-profile .daily-fact{grid-column:1/-1;margin:0;font-size:12px;line-height:1.4;text-align:left}
}


/* Desktop office/director quick creation, matching the standard boxed controls. */
#header-new{position:relative;flex:0 0 auto}
#header-new>summary{box-sizing:border-box;list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 12px;border:1px solid #d9dde2;border-radius:7px;background:#fff;color:#333;cursor:pointer;font-size:.875rem;font-weight:600;white-space:nowrap}
#header-new>summary::-webkit-details-marker{display:none}
#header-new>summary:hover,#header-new[open]>summary{background:#f5f5f5}
#header-new>summary:focus-visible{outline:3px solid #555;outline-offset:3px}
.workspace-new-plus{font-size:18px;line-height:1}
.workspace-new-items{position:absolute;right:0;top:calc(100% + 8px);z-index:50;box-sizing:border-box;width:220px;max-width:calc(100vw - 24px);padding:12px;display:flex;flex-direction:column;gap:12px;border:1px solid #d9dde2;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0002}
.workspace-new-items>button{text-align:left;min-height:44px;width:100%;margin:0}
@media(max-width:1100px){
 html:not(.full-desktop-view) .topbar>#header-new{position:static}
 html:not(.full-desktop-view) #header-new>summary{min-height:44px;padding:0 10px}
 html:not(.full-desktop-view) .topbar .workspace-new-items{right:12px}
}

/* Keep mobile work lists bounded; their action footer remains outside the scroll. */
@media(max-width:900px){
 html:not(.full-desktop-view) #content .panel[data-dashboard-widget]:not([data-dashboard-widget="assessor.caseload"])>.panelbody,
 html:not(.full-desktop-view) #content .office-overview-grid>.office-dashboard-pane>.panelbody{max-height:360px;overflow:auto;overscroll-behavior:contain}
}

/* Data sources populate below the already-rendered shared header. Their legacy
   identity rows must never paint while requests are in flight. */
#content > .dashboard-unified-header ~ .dashboard-source .assessor-welcome-profile,
#content > .dashboard-unified-header ~ .dashboard-source .heading:has(h1),
#content > .dashboard-unified-header ~ .dashboard-source > h1,
#content > .dashboard-unified-header ~ .dashboard-source .dashboard-period,
#content > .dashboard-unified-header ~ .dashboard-custom-heading{display:none}

/* Give the shared messages panel enough room to show more than two rows. */
#content .panel.dashboard-messages-panel{min-height:460px}
#content .panel.dashboard-messages-panel>.panelbody{max-height:480px;overflow:auto}

/* Give large Home panels the same work-list space across staff dashboards. */
body[data-workspace-page="dashboard"] #content .panel[data-dashboard-widget]:not([data-dashboard-widget="assessor.caseload"]){
 height:680px;
}
body[data-workspace-page="dashboard"] #content .panel.dashboard-messages-panel>.panelbody{
 max-height:none;
}
@media(max-width:900px){
 html:not(.full-desktop-view) body[data-workspace-page="dashboard"] #content .panel[data-dashboard-widget]:not([data-dashboard-widget="assessor.caseload"]){
  height:auto;min-height:540px;
 }
 html:not(.full-desktop-view) body[data-workspace-page="dashboard"] #content .panel[data-dashboard-widget]:not([data-dashboard-widget="assessor.caseload"])>.panelbody{
  max-height:500px;
 }
}

/* Fit the chart and its summary at normal sizes, with scrolling for unusually tall content. */
:is(#content,#dashboard-snapshot) .panel.director-sales-chart[data-dashboard-widget]{height:auto;min-height:480px}
:is(#content,#dashboard-snapshot) .panel.director-sales-chart[data-dashboard-widget]>.panelbody{
 max-height:44rem;overflow:auto;scrollbar-gutter:auto;
}
@media(max-width:900px){
 html:not(.full-desktop-view) :is(#content,#dashboard-snapshot) .panel.director-sales-chart[data-dashboard-widget]{min-height:0}
}

.commission-dashboard-detail .director-payment-pace{margin-block-start:24px}

.director-business-hero>.panel{grid-column:1/-1}
#content .director-business-hero>.panel[data-dashboard-widget="director.income"]{height:auto}
#content .director-business-hero>.panel[data-dashboard-widget="director.income"]>.panelbody{overflow:visible;scrollbar-gutter:auto}
.director-company-link{max-width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}
