html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.public-operations,
#public-event-operations-root,
#event-operations-root,
.ops-view,
.ops-panel,
.ops-program-card,
.ops-task > div,
.ops-run-sheet article > div {
  min-width: 0;
}

.public-operations {
  width: 100%;
  box-sizing: border-box;
}

.public-ops-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  width: 100%;
}

.public-ops-toolbar > * {
  min-width: 0;
}

.public-ops-toolbar > div {
  overflow: hidden;
}

.public-ops-toolbar strong,
.public-ops-toolbar span,
.public-ops-toolbar button,
.public-ops-toolbar a {
  overflow-wrap: anywhere;
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ops-hero > div:first-child {
  min-width: 0;
}

.ops-hero h2,
.ops-hero p,
.ops-program-card h3,
.ops-program-card p,
.ops-panel-heading h3,
.ops-task strong,
.ops-task small,
.ops-run-sheet strong,
.ops-run-sheet p {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.ops-hero-badge {
  flex: none;
}

.ops-program-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
}

.ops-program-tabs button {
  flex: 0 1 auto;
  min-width: 132px;
  max-width: 100%;
}

.ops-section-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.ops-section-tabs button {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 8px;
  color: #244a8f !important;
  font-size: 14px !important;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow: visible;
}

.ops-section-tabs button.is-active {
  color: #fff !important;
}

.ops-command-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.ops-program-card {
  width: 100%;
}

.ops-card-stats > span,
.ops-conflict-grid > article,
.ops-resource-grid > article,
.ops-metrics > article {
  min-width: 0;
}

.ops-panel-heading > div {
  min-width: 0;
}

.ops-outreach-integrated-heading {
  flex-wrap: wrap;
}

.ops-outreach-integrated-actions {
  margin-left: auto;
}

.ops-outreach-frame {
  width: 100%;
  height: 900px;
  min-height: 640px;
  overflow: hidden;
}

html.is-embedded,
html.is-embedded body {
  height: auto;
  overflow: hidden !important;
}

.is-embedded main {
  overflow: visible;
}

.is-embedded .hero {
  display: block;
  padding: 12px;
  border-radius: 0;
  background: #eaf1fb !important;
}

.is-embedded .hero > div:first-child {
  display: none;
}

.is-embedded .hero-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}

.is-embedded .hero-actions > * {
  width: 100%;
  min-width: 0;
  padding-inline: 9px;
  white-space: normal;
  text-align: center;
}

.is-embedded .sync-strip {
  margin-top: 10px;
}

@media (max-width: 1050px) {
  .public-ops-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-ops-toolbar > div {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 4px;
  }

  .public-ops-toolbar > button,
  .public-ops-toolbar > a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 820px) {
  .public-operations {
    padding-inline: 14px;
  }

  .ops-hero {
    gap: 16px;
    padding: 22px;
  }

  .ops-hero h2 {
    font-size: clamp(27px, 5vw, 34px);
  }

  .ops-section-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-panel-heading {
    flex-wrap: wrap;
  }

  .ops-outreach-integrated-actions {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .public-operations {
    padding: 10px 10px 32px;
  }

  .public-ops-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .public-ops-toolbar > div {
    text-align: left;
  }

  .public-ops-toolbar > a {
    grid-column: 1 / -1;
  }

  .ops-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 17px;
  }

  .ops-hero-badge {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: fit-content;
    padding: 8px 12px;
  }

  .ops-hero-badge strong {
    font-size: 20px;
  }

  .ops-program-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .ops-program-tabs button {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    white-space: normal;
  }

  .ops-section-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .ops-section-tabs button {
    min-height: 44px;
  }

  .ops-program-card,
  .ops-panel {
    padding: 15px;
  }

  .ops-card-top,
  .ops-panel-heading {
    gap: 9px;
  }

  .ops-card-top {
    flex-wrap: wrap;
  }

  .ops-program-card > p {
    min-height: 0;
  }

  .ops-task {
    grid-template-columns: 32px 42px minmax(0, 1fr);
    padding: 10px 8px;
  }

  .ops-run-sheet article {
    grid-template-columns: 54px 48px minmax(0, 1fr);
    gap: 8px;
  }

  .ops-outreach-integrated {
    padding: 0;
  }

  .ops-outreach-integrated-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ops-outreach-data-note {
    margin-inline: 14px;
  }

  .is-embedded .hero-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 340px) {
  .public-ops-toolbar {
    grid-template-columns: 1fr;
  }

  .public-ops-toolbar > *,
  .public-ops-toolbar > a {
    grid-column: 1;
  }

  .ops-program-tabs,
  .ops-section-tabs {
    grid-template-columns: 1fr;
  }

  .is-embedded .hero-actions {
    grid-template-columns: 1fr;
  }
}
