/* Home layout: scoped to the dashboard, including its shared application shell. */
@media screen {
 .workspace:has(.office-dashboard) main{padding:24px 32px 40px!important}
 .workspace:has(.office-dashboard) .page-shell>header{width:calc(100% - 64px);max-width:1376px;margin:20px auto 0;min-height:64px;padding:8px 16px;border-radius:20px;box-shadow:0 2px 8px #193d2808}
 .workspace:has(.office-dashboard) .office-account{margin-block:0}
 .workspace:has(.office-dashboard) .sidebar .brand{margin-bottom:12px}
 .workspace:has(.office-dashboard) .sidebar nav{margin-top:20px}
 .workspace .office-dashboard{display:grid;gap:20px}
 .workspace .office-dashboard .hub-heading{align-items:center;flex-direction:row;margin:0;gap:16px}
 .office-home-title{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:6px}
 .workspace .office-home-title h1{margin:0}
 .workspace .office-home-title .eyebrow{margin:0}
 .workspace .office-home-settings{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--rule-strong);border-radius:12px;background:var(--surface);white-space:nowrap;font-size:14px}
 .workspace .office-dashboard .notice{margin:0}
 .workspace .office-dashboard .hub-stats{margin:0;grid-column:1/-1}
 .workspace .office-dashboard .hub-stats>a{padding:14px 20px;border-radius:16px}
 .workspace .office-dashboard .office-stat-overdue{background:var(--warn-bg);border-color:var(--warn-rule);color:var(--warn-ink)}
 .workspace .office-dashboard .office-stat-overdue strong{color:var(--warn-ink)}
 .office-stat-overdue>span>span{display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;font-size:12px;font-weight:700}
 .workspace .office-dashboard .office-home-primary{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;align-items:stretch}
 .workspace .office-dashboard .office-presentation{min-height:0;padding:20px 24px;gap:16px}
 .workspace .office-dashboard .office-presentation h2{font-size:22px;margin:4px 0 8px}
 .workspace .office-dashboard .office-presentation p:not(.eyebrow){margin:0 0 12px}
 .workspace .office-dashboard .office-cover{width:80px;height:116px;padding:12px;box-shadow:none}
 .workspace .office-dashboard .office-cover img{width:56px}
 .workspace .office-dashboard .office-cover strong{font-size:16px}
 .workspace .office-dashboard .hub-panel{padding:20px 24px}
 .workspace .office-dashboard .hub-section-title{align-items:center;margin-bottom:8px}
 .workspace .office-dashboard .hub-section-title h2{margin:0;font-size:20px}
 .workspace .office-dashboard .hub-section-title>a{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0;font-size:14px}
 .workspace .office-dashboard .hub-empty{margin:0;padding:12px 0;text-align:left}
 .workspace .office-dashboard .office-home-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
 .workspace .office-dashboard .office-home-sections>.card:last-child:nth-child(odd of .card){grid-column:1/-1}
 .workspace .office-dashboard .office-notification{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0}
 .workspace .office-dashboard .office-notification .hub-link{display:block;max-width:100%;min-height:44px;line-height:1.6;border-radius:0;box-shadow:none;overflow-wrap:break-word}
 .workspace .office-dashboard .office-notification small{margin:0}
 .workspace .office-dashboard .office-launchers{margin:0;gap:12px}
 @media(max-width:1199px){
  .workspace .office-dashboard .office-cover{display:none}
  .workspace .office-dashboard .office-presentation .hub-button{white-space:normal;text-align:center}
 }
 @media(max-width:800px){
  .workspace:has(.office-dashboard) .page-shell>header{width:calc(100% - 32px);margin:12px auto 0;padding:8px 12px}
  .workspace:has(.office-dashboard) main{padding:20px 16px 32px!important}
  .workspace .office-dashboard{gap:16px}
  .office-home-title{display:block}
  .workspace .office-home-title .eyebrow{margin-top:4px}
  .workspace .office-dashboard .hub-heading{align-items:flex-start}
  .workspace .office-dashboard .hub-heading>div>p{font-size:14px}
  .workspace .office-dashboard .office-home-primary,.workspace .office-dashboard .office-home-sections{grid-template-columns:1fr;gap:16px}
  .workspace .office-dashboard .hub-stats>a{padding:12px 10px;gap:4px;flex-direction:column;align-items:flex-start}
  .workspace .office-dashboard .hub-panel,.workspace .office-dashboard .office-presentation{padding:16px 20px}
  .workspace .office-dashboard .office-launchers{grid-template-columns:1fr;gap:8px}
  .workspace .office-dashboard .office-launchers>a{min-height:0;padding:12px 16px}
  .workspace .office-dashboard .office-today-empty .hub-empty a{margin-left:0;display:flex}
 }
}

/* Match the existing task counters; wrap evenly on smaller screens. */
.workspace .office-dashboard .hub-stats.has-website-stat{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.workspace .office-dashboard .hub-stats.has-website-stat{grid-template-columns:repeat(2,minmax(0,1fr))}}
