/* MH Office — large-surface paint stabilization, 2026-11-10.
 * Narrow CSS-only release. No task records, permissions, filters or handlers change.
 * First verified in a separate logged-in Chrome QA tab with 126 task rows.
 */
html.mh-glass-office {
  background-color: var(--mh-bg, var(--bg, #f7f5f4)) !important;
}

/* Remove large full-document radial paint work; cards keep their gradients. */
html.mh-glass-office body {
  background-image: none !important;
}

/* Do not blur multi-thousand-pixel panels or fixed sidebar every time we scroll.
   Their existing opaque/semitransparent backgrounds are preserved. */
html.mh-glass-office .nav-section,
html.mh-glass-office .tasks-panel,
html.mh-glass-office header,
html.mh-glass-office #mhChatOfficeSidebar {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Keep task filters and toolbar fixed in normal page flow, but bound the list
   itself to a viewport-sized scroll container. All rows remain in the DOM.
   Existing search, sorting, selection and task-open listeners are untouched. */
html.mh-glass-office #taskList {
  max-height: min(68vh, 720px) !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

@media (max-width: 720px) {
  html.mh-glass-office #taskList {
    max-height: 60vh !important;
  }
}

/* Never clip the full task list when printing. */
@media print {
  html.mh-glass-office #taskList {
    max-height: none !important;
    overflow: visible !important;
  }
}
