/* Shared workbench view controls. Homepage composition now lives in m3e-workbench-vnext.css. */
html[data-design-system="expressive"] body.single-page-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
html[data-design-system="expressive"] body #moduleViewWorkbench {
  width: 100%; max-width: 1500px; min-width: 0;
  margin-inline: auto; padding: 24px 36px 48px;
}
html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading { margin: 12px 0 26px; }
html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading > p {
  margin: 0 0 14px; color: var(--md-muted); font-size: 13px; letter-spacing: 2px;
}
html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading h1 {
  margin: 0; font-size: clamp(36px,3.6vw,54px); line-height: 1.15;
  letter-spacing: -2px; color: var(--md-on-surface);
}
html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading > div {
  margin-top: 14px; color: var(--md-muted); font-size: 14px;
}
html[data-design-system="expressive"] #moduleViewWorkbench :is(#workbenchHome,#workbenchAnalysis)[hidden] { display: none !important; }
html[data-design-system="expressive"] body #moduleViewWorkbench[data-workbench-view="overview"] #dashboard-overview { display: none; }

/* Home typography foundation; retired prototype selectors removed for the current design. */
html[data-design-system="expressive"] #workbenchHome { min-width: 0; font-size: 16px; line-height: 1.55; }

html[data-design-system="expressive"] #workbenchHome .home-button[hidden] { display: none !important; }

/* Original analysis remains available through its four view controls. */
html[data-design-system="expressive"] body #moduleViewWorkbench .filter-panel {
  display: grid; grid-template-columns: minmax(140px,1fr) minmax(140px,1fr) minmax(130px,1fr) auto;
  gap: 10px 16px; padding: 0; margin: 0 0 22px; border: 0; border-radius: 0; background: transparent;
}
html[data-design-system="expressive"] body #moduleViewWorkbench .filter-panel .workbench-view-switch {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-column: 1/-1;
  width: max-content; max-width: 100%; gap: 3px; padding: 4px; margin: 0 0 10px; background: var(--md-surface-container);
}
html[data-design-system="expressive"] body #moduleViewWorkbench .workbench-view-switch button { min-width: 0; padding: 10px 20px; }
html[data-design-system="expressive"] body #moduleViewWorkbench .filter-panel .field { min-width: 0; gap: 6px; }
html[data-design-system="expressive"] body #moduleViewWorkbench .filter-panel .field label { text-align: left; padding-left: 4px; }
html[data-design-system="expressive"] body #moduleViewWorkbench .filter-panel .reset-button { align-self: end; padding: 0 20px; }
html[data-design-system="expressive"] body #moduleViewWorkbench .filter-chips { grid-column: 1/-1; justify-content: flex-start; margin: 0; min-height: 0; }
html[data-design-system="expressive"] body #moduleViewWorkbench .filter-chips:empty { display: none; }
html[data-design-system="expressive"] body #workbenchAnalysis .panel { padding: 26px; border-radius: 30px; }
html[data-design-system="expressive"] body #workbenchAnalysis .section-label { margin-top: 28px; }
html[data-design-system="expressive"] body #workbenchAnalysis .section-label::before,
html[data-design-system="expressive"] body #workbenchAnalysis .section-label::after { display: none; }
html[data-design-system="expressive"] body #moduleViewWorkbench[data-analysis-section="hours"] #workbenchAnalysis :is(#dashboard-kpis,#kpiGrid,#dashboard-efficiency),
html[data-design-system="expressive"] body #moduleViewWorkbench[data-analysis-section="hours"] #workbenchAnalysis .chart-grid > article:not(#dashboard-hours) { display: none; }

/* Global navigation geometry and collapsed states belong to m3e-shell-vnext.css. */
@media (max-width:1099px) {
  html[data-design-system="expressive"] body #moduleViewWorkbench { padding-inline: 24px; }

}
@media (max-width:759px) {
  html[data-design-system="expressive"] body #moduleViewWorkbench { padding: 8px 18px 96px; }
  html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading { margin: 8px 0 24px; }
  html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading h1 { font-size: 34px; letter-spacing: -1.5px; }
  html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading > p { margin-bottom: 10px; font-size: 12px; letter-spacing: 1px; }
  html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading > div { margin-top: 10px; font-size: 13px; }

  html[data-design-system="expressive"] body #moduleViewWorkbench .filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  html[data-design-system="expressive"] body #moduleViewWorkbench .filter-panel .workbench-view-switch { width: 100%; margin-bottom: 4px; }
  html[data-design-system="expressive"] body #moduleViewWorkbench .workbench-view-switch button { padding: 10px 6px; font-size: 12px; }
  html[data-design-system="expressive"] body #workbenchAnalysis .panel { padding: 20px; }
}
@media (max-width:599px) {
  html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading h1 { font-size: 32px; }

}
@media (max-width:359px) {
  html[data-design-system="expressive"] body #moduleViewWorkbench { padding-inline: 12px; }
  html[data-design-system="expressive"] #moduleViewWorkbench .expressive-page-heading h1 { font-size: 28px; }

}

