/* Optional UI sizing layer; default map-first behaviour remains unchanged. */
#workspace-explore.manager-resizable #manager-resize-help {
  flex: 1 1 300px;
  margin: 0;
  color: #d7e8e5;
  font-size: 13px;
  line-height: 1.6;
}
#workspace-explore.manager-resizable #manager-size-reset {
  margin-left: auto;
  min-height: 42px;
  padding: 9px 14px;
  color: #d8eee5;
  background: #12354a;
  border-color: #648d94;
}
#workspace-explore.manager-resizable #manager-size-reset:hover { background: #1c4b5a; }
#workspace-explore.manager-resizable[data-detail-open="true"] {
  grid-template-columns: minmax(0, 1fr) 18px var(--manager-detail-width, clamp(350px, 30vw, 440px));
  column-gap: 8px;
}
#workspace-explore.manager-resizable #manager-school-details {
  grid-column: 3;
  height: var(--manager-detail-height, auto);
  min-height: 0;
}
#workspace-explore.manager-resizable #manager-school-selector {
  top: calc(var(--manager-controls-height, 50px) + 14px);
  width: var(--manager-selector-width, 318px);
  height: var(--manager-selector-height, auto);
  max-height: var(--manager-selector-limit, calc(100dvh - 120px));
  min-height: 0;
}
#workspace-explore.manager-resizable #school-map {
  height: var(--manager-map-height, clamp(480px, calc(100dvh - 220px), 800px));
  min-height: 0;
}
#workspace-explore.manager-resizable .manager-resize-handle {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  border: 1px solid #7caaa6;
  border-radius: 8px;
  color: #245d62;
  background: #e5f0e8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  touch-action: none;
  user-select: none;
  cursor: ns-resize;
}
#workspace-explore.manager-resizable .manager-resize-handle:hover,
#workspace-explore.manager-resizable .manager-resize-handle.is-dragging {
  color: #073f43;
  border-color: #30c8ad;
  background: #b6ecda;
}
#workspace-explore.manager-resizable .manager-resize-handle:focus-visible {
  outline: 3px solid #2ac5b4;
  outline-offset: 3px;
  z-index: 8;
}
#workspace-explore.manager-resizable .manager-resize-grip {
  display: block;
  width: 26px;
  height: 5px;
  flex: 0 0 auto;
  border-block: 1px solid currentColor;
  opacity: .85;
}
#workspace-explore.manager-resizable .manager-resize-divider {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 18px;
  min-height: 120px;
  height: min(55vh, 440px);
  margin-top: 10px;
  cursor: ew-resize;
  background: #153e50;
  color: #b3efdf;
  flex-direction: column;
  gap: 14px;
  border-color: #699b9e;
}
#workspace-explore.manager-resizable .manager-resize-divider .manager-resize-grip {
  width: 5px;
  height: 35px;
  border-block: 0;
  border-inline: 1px solid currentColor;
}
#workspace-explore.manager-resizable[data-detail-open="false"] .manager-resize-divider { display: none; }
#workspace-explore.manager-resizable .manager-resize-map-height {
  min-height: 34px;
  border-radius: 0 0 15px 15px;
  border-width: 1px 0 0;
}
#workspace-explore.manager-resizable .manager-panel-controls {
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 8px;
}
#workspace-explore.manager-resizable .manager-resize-panel-height {
  width: 100%;
  min-height: 30px;
  order: 2;
}
#workspace-explore.manager-resizable .manager-resize-selector-width {
  margin-right: auto;
  min-height: 36px;
  padding: 5px 10px;
  cursor: ew-resize;
  order: -1;
}
#workspace-explore.manager-resizable .manager-resize-selector-width .manager-resize-grip { display: none; }
.manager-is-resizing, .manager-is-resizing * { user-select: none !important; }

@media (max-width: 780px) {
  #workspace-explore.manager-resizable,
  #workspace-explore.manager-resizable[data-detail-open="true"] { grid-template-columns: minmax(0, 1fr); }
  #workspace-explore.manager-resizable .manager-resize-divider,
  #workspace-explore.manager-resizable .manager-resize-selector-width { display: none; }
  #workspace-explore.manager-resizable #manager-school-details {
    grid-column: 1;
    height: var(--manager-detail-sheet-height, auto);
    max-height: var(--manager-detail-sheet-height, 72svh);
    width: auto;
  }
  #workspace-explore.manager-resizable #manager-school-selector {
    top: auto;
    width: auto;
    height: var(--manager-selector-sheet-height, auto);
    max-height: calc(100svh - 110px);
  }
  #workspace-explore.manager-resizable #school-map {
    height: var(--manager-map-height, clamp(420px, calc(100svh - 260px), 620px));
  }
  #workspace-explore.manager-resizable .manager-resize-panel-height { min-height: 36px; }
  #workspace-explore.manager-resizable .manager-resize-map-height { min-height: 40px; }
  #workspace-explore.manager-resizable #manager-resize-help { flex-basis: 100%; font-size: 12px; }
}
@media print {
  #workspace-explore.manager-resizable .manager-resize-handle { display: none; }
  #workspace-explore.manager-resizable[data-detail-open="true"] { display: block; }
  #workspace-explore.manager-resizable #manager-school-selector,
  #workspace-explore.manager-resizable #manager-school-details { height: auto; max-height: none; }
}
