/* Final row/float guard for C329. Loaded after the broad footer sheet.
   OPERATOR 3-COLUMN (Philip's locked footer, also in enterprise-d which wins the cascade):
   ONE row -> legal LEFT (col 1) | "1031 Intelligence" CENTER (col 2) | nav RIGHT (col 3). */
html body .site-foot .ft-strip,
html body.ovh .site-foot .ft-strip {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  justify-items: stretch !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 980px !important;
}

html body .site-foot .ft-main,
html body.ovh .site-foot .ft-main,
html body .site-foot .ft-legal,
html body.ovh .site-foot .ft-legal {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

html body .site-foot .ft-main::-webkit-scrollbar,
html body.ovh .site-foot .ft-main::-webkit-scrollbar,
html body .site-foot .ft-legal::-webkit-scrollbar,
html body.ovh .site-foot .ft-legal::-webkit-scrollbar {
  display: none !important;
}

html body .site-foot .ft-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: 1 !important;
  justify-self: start !important;
  justify-content: flex-start !important;
}

html body .site-foot .ft-lg,
html body.ovh .site-foot .ft-lg {
  grid-column: 2 !important;
  grid-row: 1 !important;
  order: 2 !important;
  justify-self: center !important;
  display: inline-block !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

html body .site-foot .ft-legal,
html body.ovh .site-foot .ft-legal {
  grid-column: 3 !important;
  grid-row: 1 !important;
  order: 3 !important;
  /* SWAP (Philip 2026-06-22): legal row now sits RIGHT (column 3), flanking the centered
     brand; the public nav (.ft-main) takes the LEFT (column 1). NOT centered. */
  width: auto !important;
  justify-content: flex-end !important;
  justify-self: end !important;
}

html body .site-foot .ft-nav a,
html body.ovh .site-foot .ft-nav a,
html body .site-foot .ft-nav span,
html body.ovh .site-foot .ft-nav span,
html body .site-foot .ft-note,
html body.ovh .site-foot .ft-note {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

@media (min-width: 901px) {
  html body.ovh.report-body .hybrid-report-list,
  html body.ovh.report-body .report-list.hybrid-report-list,
  html body.ovh.room-body .room-list-panel .room-list {
    padding-right: 0 !important;
  }

  /* dead 170px gutter block removed (was defeated by enterprise-b1:50-55/154-159 + enterprise-e:2-9; full-width rows already win via those sheets) */
}

@media (max-width: 720px) {
  html body.ovh.report-body main.shell.report-page .report-map-card .leaflet-report-map-shell:not(.is-expanded) .report-map-controls,
  html body.ovh.room-body .room-map-shell:not(.is-expanded) .room-map-controls {
    top: 18px !important;
    right: 18px !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    height: 36px !important;
    min-height: 36px !important;
    max-width: calc(100% - 36px) !important;
    gap: 6px !important;
  }

  html body.ovh.report-body main.shell.report-page .report-map-card .leaflet-report-map-shell:not(.is-expanded) .report-map-controls,
  html body.ovh.report-body .leaflet-report-map-shell:not(.is-expanded) .report-map-controls {
    top: 18px !important;
    right: 92px !important;
  }

  html body.ovh.report-body .view-controls,
  html body.ovh.room-body .view-controls {
    right: 72px !important;
    bottom: 132px !important;
  }

  html body.ovh.report-body main.shell.report-page .report-map-card .leaflet-report-map-shell:not(.is-expanded) .report-map-controls .map-control-zoom,
  html body.ovh.report-body main.shell.report-page .report-map-card .leaflet-report-map-shell:not(.is-expanded) .report-map-controls .map-control-expand,
  html body.ovh.report-body .leaflet-report-map-shell:not(.is-expanded) .report-map-controls .map-control-zoom,
  html body.ovh.report-body .leaflet-report-map-shell:not(.is-expanded) .report-map-controls .map-control-expand,
  html body.ovh.room-body .room-map-shell:not(.is-expanded) .room-map-controls .map-control-zoom,
  html body.ovh.room-body .room-map-shell:not(.is-expanded) .room-map-controls .map-control-expand {
    display: inline-flex !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    flex: 0 0 36px !important;
    order: 0 !important;
  }
}

/* C336 current repair: report and room pages are dense work surfaces. Their
   React mount wrappers must not behave like full-page rectangles, and the
   small support controls belong in the chrome rail instead of over the board. */
html body.report-body #report-root,
html body.report-body #report-root > div,
html body.room-body #room-root,
html body.room-body #room-root > div {
  display: contents !important;
}

html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-row,
html body.ovh.room-body .room-chat-launch-row {
  position: fixed !important;
  top: auto !important;
  right: 28px !important;
  bottom: 26px !important;
  left: auto !important;
  z-index: 1200 !important;
  width: auto !important;
  transform: none !important;
}

html body.ovh.report-body .site-guide:not(.is-open) .site-guide-quick-launch {
  display: none !important;
}

html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch,
html body.ovh.room-body .room-chat-launch {
  width: auto !important;
  min-width: 166px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 5px 15px 5px 6px !important;
  border-radius: 999px !important;
  gap: 10px !important;
  justify-content: flex-start !important;
  align-items: center !important;
  overflow: visible !important;
}

html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-copy,
html body.ovh.room-body .room-chat-launch-copy {
  display: grid !important;
  gap: 1px !important;
  text-align: left !important;
  min-width: 0 !important;
}

html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-copy strong,
html body.ovh.room-body .room-chat-launch-copy strong {
  display: block !important;
  color: var(--ovh-goldb, #e9c28f) !important;
  font-family: var(--ovh-serif, var(--serif)) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-copy small,
html body.ovh.room-body .room-chat-launch-copy small {
  display: block !important;
  color: var(--ovh-dim, #9a917f) !important;
  font-size: 7px !important;
  letter-spacing: .13em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-mark,
html body.ovh.room-body .room-chat-launch-mark {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
}

html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch::before,
html body.ovh.room-body .room-chat-launch::before {
  display: none !important;
}

/* CYCLE215 operator reversal: restore the teal status light, anchored to the orb's bottom-right
   (the CYCLE193 "stray broken light" was the un-anchored, far-corner version). */
html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch::after,
html body.ovh.room-body .room-chat-launch::after {
  content: none !important;
  display: none !important;
}

html body.ovh.report-body .view-controls,
html body.ovh.room-body .view-controls {
  position: fixed !important;
  top: auto !important;
  right: 218px !important;
  bottom: 37px !important;
  left: auto !important;
  z-index: 1201 !important;
}

html body.ovh.report-body .view-controls-launch,
html body.ovh.room-body .view-controls-launch {
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
}

html body.ovh.report-body .view-controls-panel,
html body.ovh.room-body .view-controls-panel {
  position: fixed !important;
  top: auto !important;
  right: 28px !important;
  bottom: 84px !important;
  left: auto !important;
  width: auto !important;
  min-width: 244px !important;
  max-width: min(340px, calc(100vw - 56px)) !important;
  min-height: 0 !important;
  max-height: none !important;
}

@media (max-width: 560px) {
  html body .site-foot,
  html body.ovh .site-foot {
    padding: 12px 8px 14px !important;
    overflow-x: visible !important;
  }

  html body .site-foot .ft-strip,
  html body.ovh .site-foot .ft-strip {
    gap: 6px !important;
  }

  html body .site-foot .ft-main,
  html body.ovh .site-foot .ft-main,
  html body .site-foot .ft-legal,
  html body.ovh .site-foot .ft-legal {
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-content: center !important;
    gap: 6px 12px !important;
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    overflow: visible !important;
    white-space: normal !important;
    text-align: center !important;
  }

  html body .site-foot .ft-main,
  html body.ovh .site-foot .ft-main,
  html body .site-foot .ft-legal,
  html body.ovh .site-foot .ft-legal {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: center !important;
  }

  html body .site-foot .ft-nav a,
  html body.ovh .site-foot .ft-nav a,
  html body .site-foot .ft-nav span,
  html body.ovh .site-foot .ft-nav span,
  html body .site-foot .ft-note,
  html body.ovh .site-foot .ft-note {
    font-size: 7px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  html body .site-foot .ft-lg,
  html body.ovh .site-foot .ft-lg {
    font-size: 16px !important;
    line-height: 1 !important;
  }

  html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-row {
    top: auto !important;
    right: 10px !important;
    bottom: 240px !important;
  }

  html body.ovh.room-body .room-chat-launch-row {
    top: auto !important;
    right: 10px !important;
    bottom: 58px !important;
  }

  html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch,
  html body.ovh.room-body .room-chat-launch {
    min-width: 126px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding-right: 12px !important;
    gap: 7px !important;
  }

  html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-mark,
  html body.ovh.room-body .room-chat-launch-mark {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-copy strong,
  html body.ovh.room-body .room-chat-launch-copy strong {
    font-size: 15px !important;
  }

  html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-copy small,
  html body.ovh.room-body .room-chat-launch-copy small {
    font-size: 7px !important;
  }

  html body.ovh.report-body .view-controls {
    top: auto !important;
    right: 150px !important;
    bottom: 248px !important;
  }

  html body.ovh.room-body .view-controls {
    top: auto !important;
    right: 150px !important;
    bottom: 66px !important;
  }

  html body.ovh.report-body .view-controls-panel {
    top: auto !important;
    right: 10px !important;
    bottom: 290px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 20px) !important;
  }

  html body.ovh.room-body .view-controls-panel {
    top: auto !important;
    right: 166px !important;
    bottom: 58px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 20px) !important;
  }

}

html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch-row.is-dragged,
html body.ovh.room-body .room-chat-launch-row.is-dragged {
  left: var(--xavier-left) !important;
  top: var(--xavier-top) !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

html body.ovh.xavier-launch-dragged.report-body .site-guide:not(.is-open) .site-guide-launch-row,
html body.ovh.xavier-launch-dragged.room-body .room-chat-launch-row {
  left: var(--xavier-left) !important;
  top: var(--xavier-top) !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

html body.ovh.xavier-launch-dragged.report-body .view-controls,
html body.ovh.xavier-launch-dragged.room-body .view-controls {
  left: max(8px, calc(var(--xavier-left) - 50px)) !important;
  top: calc(var(--xavier-top) + 5px) !important;
  right: auto !important;
  bottom: auto !important;
}

html body.ovh.xavier-launch-dragged.report-body .view-controls-panel,
html body.ovh.xavier-launch-dragged.room-body .view-controls-panel {
  left: max(8px, calc(var(--xavier-left) - 78px)) !important;
  top: max(8px, calc(var(--xavier-top) - 73px)) !important;
  right: auto !important;
  bottom: auto !important;
}

/* C363/C365 final float + controls locks. */
html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch .site-guide-launch-copy,html body.ovh.room-body .room-chat-launch .room-chat-launch-copy{display:grid !important;gap:1px !important;text-align:left !important}
html body.ovh.report-body .site-guide:not(.is-open) .site-guide-launch,html body.ovh.room-body .room-chat-launch{width:auto !important;min-width:158px !important;height:44px !important;min-height:44px !important;padding:5px 13px 5px 5px !important;border-radius:999px !important;gap:9px !important}
html body.ovh.report-body .view-controls,html body.ovh.room-body .view-controls{z-index:2147483201 !important}
@media (max-width:560px){html body.ovh.report-body .view-controls,html body.ovh.room-body .view-controls{right:176px !important}}
html body.ovh.xavier-launch-dragged.report-body .view-controls,html body.ovh.xavier-launch-dragged.room-body .view-controls{left:var(--xavier-left) !important;top:min(calc(100vh - 40px),calc(var(--xavier-top) + 50px)) !important;right:auto !important;bottom:auto !important}