.dashboard-home .dh-body{display:grid;gap:20px;max-width:1440px;margin:0 auto;color:#17364f}
.dashboard-home .dh-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:4px 0}
.dashboard-home .dh-heading h2{font-size:27px;line-height:1.2;margin:5px 0 8px;border:0;padding:0;font-weight:650;letter-spacing:-.5px}
.dashboard-home .dh-date{font-size:13px;color:#61768a;margin:0;text-transform:none}
.dashboard-home .dh-heading p.muted{margin:0;font-size:14px}
.dashboard-home button{min-height:44px;margin:0;white-space:normal;text-decoration:none!important}
.dashboard-home button:focus-visible,.dashboard-home input:focus-visible,.dashboard-home summary:focus-visible{outline:3px solid #6097cc;outline-offset:3px}
.dashboard-home .dh-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dashboard-home .dh-metric{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:15px;border:1px solid #dbe4ed;border-radius:10px;background:white;padding:17px 20px;text-align:left;color:#27465f}
.dashboard-home .dh-metric>span:first-child{font-size:14px;font-weight:550}
.dashboard-home .dh-metric strong{font-size:27px;line-height:1.1;font-variant-numeric:tabular-nums;font-weight:650;color:#174b78}
.dashboard-home .dh-metric[data-kind=overdue][data-active=true] strong{color:#a74632}
.dashboard-home .dh-metric:hover,.dashboard-home .dh-record:hover{background:#f2f6fb;border-color:#b6cce0}
.dashboard-home .dh-arrow{color:#718aa0;font-size:23px;line-height:1;flex-shrink:0}
.dashboard-home .dh-quick{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dashboard-home .dh-quick-label{font-size:13px;color:#61768a;margin-right:8px;font-weight:600}
.dashboard-home .dh-quick button{padding:8px 16px;background:transparent;border:1px solid #d5e0ec;border-radius:7px;font-size:13px}
.dashboard-home .dh-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:start}
.dashboard-home .dh-card{min-width:0;background:white;border:1px solid #dbe4ed;border-radius:11px;overflow:hidden;margin:0;padding:0;box-shadow:0 2px 4px #17364f03}
.dashboard-home .dh-card-head{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #e7edf3}
.dashboard-home .dh-card h3{font-size:16px;font-weight:650;margin:0;line-height:1.4}
.dashboard-home .dh-card-head button{background:transparent;border:0;font-size:12px;padding:4px 8px;color:#225b8b}
.dashboard-home .dh-tabs{display:flex;flex-wrap:wrap;gap:5px;padding:9px 18px 0}
.dashboard-home .dh-tabs button{font-size:12px;padding:7px 12px;border:1px solid transparent;background:transparent;border-radius:6px}
#workspace .dashboard-home .dh-tabs button:not([aria-pressed="true"]):hover {
  background: #f3f6fa;
}

#workspace .dashboard-home .dh-tabs button[aria-pressed="true"] {
  background: #e2eef9;
  color: #163f66;
  border-color: #9bbbd8;
  box-shadow: inset 0 -2px #2a5e8b;
}

#workspace .dashboard-home .dh-tabs button:focus-visible {
  outline: 2px solid #235b8b;
  outline-offset: 2px;
}

@media (forced-colors: active) {
  #workspace .dashboard-home .dh-tabs button[aria-pressed="true"] {
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
    forced-color-adjust: none;
  }

  #workspace .dashboard-home .dh-tabs button:focus-visible {
    outline-color: Highlight;
  }
}
.dashboard-home .dh-empty{padding:20px 18px;margin:0;font-size:14px;color:#687f91;line-height:1.6}
.dashboard-home .dh-record{display:flex;justify-content:space-between;gap:16px;align-items:center;border:0;border-radius:0;border-bottom:1px solid #e7edf3;padding:13px 18px;background:white;text-align:left;width:100%;color:#17364f;min-width:0}
.dashboard-home .dh-record:last-child{border-bottom:0}
.dashboard-home .dh-record-text{display:grid;gap:4px;min-width:0;flex:1;overflow-wrap:anywhere}
.dashboard-home .dh-record-text strong{font-size:14px;font-weight:600;line-height:1.4}
.dashboard-home .dh-record-text .muted{font-size:12px;line-height:1.4;white-space:normal}
.dashboard-home .dh-record-meta{display:grid;gap:6px;text-align:right;max-width:37%;font-size:12px;flex-shrink:0}
.dashboard-home .dh-record-meta small{color:#61768a;font-size:11px}
.dashboard-home .dh-record-meta .badge{font-size:11px;white-space:normal}
.dashboard-home .dh-count{display:inline-block;margin-left:8px;padding:2px 7px;background:#edf3f9;border-radius:5px;font-size:12px;color:#45617b}
.dashboard-home .dh-search{display:block;margin:14px 18px;width:calc(100% - 36px);max-width:500px;min-height:44px;font-size:14px}
.dashboard-home .dh-matter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-home .dh-matter{border-top:1px solid #e7edf3;border-bottom:0;min-height:76px}
.dashboard-home .dh-matter:nth-child(odd){border-right:1px solid #e7edf3}
.dashboard-home .dh-missing summary{padding:14px 18px;min-height:44px;font-weight:600;font-size:14px;cursor:pointer}
.dashboard-home .dh-updated{font-size:11px;color:#6b7f91;text-align:right;margin:0}
@media(max-width:1000px){.dashboard-home .dh-grid{grid-template-columns:1fr}.dashboard-home .dh-metric{padding:15px;gap:10px}.dashboard-home .dh-metric>span:first-child{font-size:13px}}
@media(max-width:600px){.dashboard-home .dh-body{gap:14px}.dashboard-home .dh-heading{align-items:flex-start}.dashboard-home .dh-heading h2{font-size:23px}.dashboard-home .dh-heading>button{font-size:12px;padding:8px;max-width:110px}.dashboard-home .dh-metrics{grid-template-columns:1fr;gap:8px}.dashboard-home .dh-metric{padding:12px 16px}.dashboard-home .dh-metric strong{font-size:23px}.dashboard-home .dh-quick-label{flex-basis:100%;margin:0}.dashboard-home .dh-quick button{flex:1 1 40%;font-size:13px}.dashboard-home .dh-matter-list{grid-template-columns:1fr}.dashboard-home .dh-matter:nth-child(odd){border-right:0}.dashboard-home .dh-card-head{padding:12px 14px}.dashboard-home .dh-card-head button{max-width:45%}.dashboard-home .dh-record{padding:12px 14px}.dashboard-home .dh-record-meta{max-width:35%}.dashboard-home .dh-updated{text-align:left}}

/* One compact status bar; zero counts use quiet, descriptive text. */
#workspace .dashboard-home .dh-statusbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#workspace .dashboard-home .dh-status-item {
  --status-ink: #52677e;
  --status-fill: #f3f6fa;
  --status-ring: #c9d5e0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  background: #fff;
  color: #344e65;
  font-size: 14px;
  line-height: 1.4;
  text-align: start;
}

#workspace .dashboard-home .dh-status-item[data-active="true"] {
  --status-ink: #163f66;
  --status-fill: #e2eef9;
  --status-ring: #9bbbd8;
}

#workspace .dashboard-home .dh-status-item[data-kind="overdue"][data-active="true"] {
  --status-ink: #823c20;
  --status-fill: #fff0e7;
  --status-ring: #d9a385;
}

#workspace .dashboard-home .dh-status-count {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 44px;
  height: 44px;
  padding: 0 5px;
  box-sizing: border-box;
  border: 2px solid var(--status-ring);
  border-radius: 24px;
  background: var(--status-fill);
  color: var(--status-ink);
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

#workspace .dashboard-home .dh-status-label { min-width: 0; overflow-wrap: anywhere; }
#workspace .dashboard-home .dh-status-item:hover { background: #f5f8fb; }
#workspace .dashboard-home .dh-status-item[aria-pressed="true"] {
  background: #eaf3fc;
  border-color: #9bbbd8;
  box-shadow: inset 0 -3px #2a5e8b;
}

@media (max-width: 660px) {
  #workspace .dashboard-home .dh-statusbar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #workspace .dashboard-home .dh-status-item { min-height: 60px; padding: 7px 12px; }
}

@media (forced-colors: active) {
  #workspace .dashboard-home .dh-status-item[aria-pressed="true"] { border: 2px solid Highlight; }
}

/* Personal staff greeting; compact controls, no change to portal or access rules. */
.dashboard-home .dh-heading>div:first-child{min-width:0;flex:1}
.dashboard-home .dh-heading .dh-greeting-line{max-width:70ch;line-height:1.6;overflow-wrap:anywhere}
.dashboard-home .dh-heading-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;flex-shrink:0;max-width:100%}
.dashboard-home .dh-humour{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;font-size:13px;font-weight:400;color:#536c81;cursor:pointer}
.dashboard-home .dh-humour input[type=checkbox]{width:17px;height:17px;min-height:0!important;margin:0;accent-color:#1f4e79}
.dashboard-home .dh-heading-controls>button{font-size:13px;padding:8px 12px}
@media(max-width:700px){.dashboard-home .dh-heading{flex-direction:column;align-items:stretch;gap:8px}.dashboard-home .dh-heading-controls{justify-content:space-between;flex-shrink:1;gap:10px}.dashboard-home .dh-heading h2{font-size:23px}}

/* Preview: a quiet single-column shortcut list of at most five recent matters. */
.dashboard-home .dh-recent-matters .dh-matter-list{display:block}
.dashboard-home .dh-recent-matters .dh-card-head{padding:12px 18px;gap:16px}
.dashboard-home .dh-recent-matters h3{font-size:15px;font-weight:500;line-height:1.5}
.dashboard-home .dh-recent-matters .dh-card-head button{font-size:12px;font-weight:400;min-height:44px;padding:4px 0;flex-shrink:0}
.dashboard-home .dh-recent-matters .dh-matter{min-height:62px;padding:10px 18px;border:0;border-bottom:1px solid #e8edf2}
.dashboard-home .dh-recent-matters .dh-matter:last-child{border-bottom:0}
.dashboard-home .dh-recent-matters .dh-record-text{gap:2px}
.dashboard-home .dh-recent-matters .dh-record-text strong{font-size:14px;font-weight:400;line-height:1.5;color:#304a60}
.dashboard-home .dh-recent-matters .dh-record-text .muted{font-size:12px;line-height:1.5;color:#687b8b;font-weight:400}
.dashboard-home .dh-recent-matters .dh-arrow{font-size:18px;color:#7a8d9d}
@media(max-width:600px){.dashboard-home .dh-recent-matters .dh-card-head{padding:10px 14px;gap:12px;align-items:center}.dashboard-home .dh-recent-matters h3{font-size:14px}.dashboard-home .dh-recent-matters .dh-card-head button{max-width:43%;white-space:normal;line-height:1.5}.dashboard-home .dh-recent-matters .dh-matter{padding:10px 14px}.dashboard-home .dh-recent-matters .dh-record-text strong{font-size:14px}}
