/* Focused tasks live inside the existing panels; no extra floating menu. */
.side-menu-tools {
  min-width: 0;
  margin-block: 14px 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #d9e3f1);
}
.side-menu-tools > h3 { margin: 0 0 10px; font-size: 13px; line-height: 1.4; }
.side-menu-tool-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 8px; min-width: 0; }
.side-menu-tool-actions > button { max-width: 100%; min-height: 34px; white-space: normal; text-align: left; line-height: 1.4; }
[data-thermal-host] { min-width: 0; max-width: 100%; }
[data-thermal-host]:empty { display: none; }
.side-menu-disclosure {
  min-width: 0;
  margin-block: 10px;
  padding: 10px;
  border: 1px solid var(--line, #d9e3f1);
  border-radius: 10px;
  background: var(--surface-solid, #fff);
  color: var(--text, #172033);
}
.side-menu-disclosure > summary { cursor: pointer; font-size: 12px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.side-menu-disclosure[open] > summary { margin-bottom: 10px; }
.side-menu-disclosure > summary:focus-visible { outline: 2px solid var(--blue, #0879ed); outline-offset: 4px; border-radius: 3px; }
.side-menu-disclosure > .product-selection-facts { margin-bottom: 0; }
.side-menu-disclosure .danger-btn { margin-top: 12px; }
.plant-room-menu-section.side-menu-disclosure { padding: 12px; }
.plant-room-menu-section.side-menu-disclosure > summary { display: list-item; list-style: disclosure-closed inside; padding: 0; }
.plant-room-menu-section.side-menu-disclosure[open] > summary { list-style-type: disclosure-open; margin-bottom: 10px; }
.plant-room-menu-section.side-menu-disclosure > summary small { display: block; }
.side-menu-scope { display: grid; gap: 3px; margin: 0 0 12px; min-width: 0; }
.side-menu-scope > span, .side-menu-scope > small { color: var(--muted, #617187); font-size: 11px; }
.side-menu-scope > strong { font-size: 13px; overflow-wrap: anywhere; }

/* The 821–1180px desktop layout puts panels into grid rows. Keep those rows
   scrollable instead of letting a long report grow beyond the viewport. */
@media (min-width: 821px) and (max-width: 1180px) and (hover: hover) and (pointer: fine) {
  html[data-workspace="floor"] .workspace > :is(.inspector, .product-panel, .pipe-panel, .results-panel) {
    min-height: 0;
    height: auto;
    max-height: calc(100dvh - 180px);
    overflow: auto;
    align-self: start;
    overscroll-behavior: contain;
  }
}
@media (any-pointer: coarse) {
  .side-menu-tool-actions > button, .side-menu-disclosure > summary { min-height: 44px; }
  .side-menu-disclosure > summary { align-content: center; }
}
/* Tablet drawers are 340px wide: keep helpers on the canvas beside them,
   rather than covering schedule rows, warning text or the last form field. */
@media (min-width: 600px) and (any-pointer: coarse), (min-width: 600px) and (hover: none) {
  html[data-workspace="floor"]:has(.workspace > :is(.inspector,.product-panel,.pipe-panel,.results-panel):not(.closed-panel))
    :is(.workspace-assistant-launcher,.my-day-designer-comments:not(.is-open)) {
    right: calc(340px + max(16px, env(safe-area-inset-right, 0px)));
  }
}
