@import './pane.css';
@import './drawer.css';
@import './comb/controls.css';
.area-map[data-map-view='agents'] { --activity-top: 6px; --activity-height: 28px; }
.map-hud__top, .map-hud__bottom { display:contents; }
@media (min-width:760px) {
  .map-hud__top {
    position:absolute; z-index:2; display:flex; align-items:center; gap:8px;
    inset-block-start:var(--activity-top, 6px); inset-inline-start:var(--map-inset);
  }
}
@media (min-width:1040px) {
  .area-map[data-map-view='areas'] .map-hud__left { inset-block-start:calc(var(--map-inset) + 48px); }
  .area-map[data-map-view='agents'] .map-hud__left { display:none; }
  .area-map[data-map-view='agents'] .area-map__stage { inset:calc(var(--activity-top) + var(--activity-height) + 4px) calc(var(--map-right) + 20px) 44px 8px; }
  /* The bottom row is one row: the legend at the left, the kinds of work beside it, the zoom controls at the right.
     Nothing else stands there: the run count goes, and Back shows only when there is a place to go back to. */
  .area-map[data-map-view='agents'] .map-hud__bottom {
    position:absolute; z-index:1; display:flex; align-items:center; gap:20px; pointer-events:none;
    inset:auto var(--stage-end, 50px) 6px 12px;
  }
  .area-map[data-map-view='agents'] .map-hud__bottom > * { position:static; inset:auto; pointer-events:auto; }
  .area-map[data-map-view='agents'] .map-hud__tools { margin-inline-start:auto; flex:none; gap:6px; justify-content:flex-end; }
  .area-map[data-map-view='agents'] .map-hud__tools > :is([popovertarget], .map-hud__count) { display:none; }
}
@media (min-width:1040px) and (pointer:fine) {
  .area-map[data-map-view='agents'] .map-hud__bottom .map-tool { min-width:32px; min-height:32px; padding:0 var(--space-1); }
}
.area-map[data-map-view='agents'] .map-hud__count { display:none; }
.area-map[data-map-view='agents'] .map-tool[aria-label='Back to previous Map view']:disabled { display:none; }

@media (max-width:759.98px) {
  .area-map[data-map-view='agents'] { --activity-top: 54px; }
  /* The stage reaches down to the sheet's handle: the zoom controls stand over its foot. */
  .area-map[data-map-view='agents'] .area-map__stage { top:calc(var(--activity-top) + var(--activity-height)); bottom:76px; }
  .area-map[data-map-view='agents'] .map-hud__tools { inset:auto 6px 78px; }
}
