.ase-boundary {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}
.ase-boundary
  :is(.ase-boundary-intro, .ase-boundary-stations, .ase-boundary-reading, .ase-boundary-hunt) {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-width: 0;
}
.ase-boundary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.ase-boundary-visual {
  min-width: 0;
  align-self: start;
}
.brc-page .ase-boundary-stage {
  height: clamp(370px, 35vw, 530px);
  border-radius: 12px;
  background: radial-gradient(ellipse at 47% 43%, #e2f1f0 0, #b5cfd3 67%, #8ba9b2);
}
.ase-boundary-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  padding: 1rem;
  text-align: center;
  background: #bbd1d6;
}
.brc-page .ase-boundary-loading {
  color: #153541;
}
.ase-boundary-stage[data-fallback] {
  height: 8rem;
}
.ase-boundary-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.ase-boundary-leaders path {
  fill: none;
  stroke: #1d5160;
  stroke-width: 1;
  opacity: 0.52;
}
.ase-boundary-leaders path.is-active {
  stroke: #034840;
  stroke-width: 2.5;
  opacity: 1;
}
.ase-boundary-leaders circle {
  fill: #bce7dd;
  stroke: #123b48;
}
.ase-boundary-leaders circle.is-active {
  fill: #5affda;
  stroke-width: 2;
}
.brc-page .ase-boundary-badge {
  z-index: 3;
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  min-height: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #48757f;
  background: #f1fbf9;
  color: #183c47;
  border-radius: 50%;
  font: 700 14px var(--mono, monospace);
}
.brc-page .ase-boundary-badge[aria-pressed='true'] {
  color: #fff;
  background: #084a48;
  border-color: #c1fff1;
  box-shadow: 0 0 0 3px #154b4844;
}
.ase-boundary-tools,
.ase-boundary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.55rem;
}
.brc-page .ase-boundary-tools :is(button, details) {
  font-size: 0.87rem;
}
.ase-boundary-picker {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.brc-page .ase-boundary-picker button {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  text-align: left;
  border-radius: 8px;
  min-height: 44px;
  padding: 0.42rem 0.52rem;
  font-size: 0.9rem;
}
.ase-boundary-key {
  flex: none;
  font: 0.85rem var(--mono, monospace);
  padding: 0.16rem 0.3rem;
  color: #bcd8ed;
  background: #153047;
  border-radius: 4px;
}
.ase-boundary-picker [aria-pressed='true'] .ase-boundary-key {
  color: #072d2c;
  background: #82dfcf;
}
.ase-boundary-reading,
.ase-boundary-evidence {
  border-left: 3px solid #58c5b9;
  padding: 0.6rem 0.8rem;
  background: #0b2030;
  border-radius: 0 6px 6px 0;
}
.ase-boundary-hunt {
  border: 1px solid #38556a;
  background: #0a1826;
  border-radius: 12px;
  padding: 1rem;
}
.ase-boundary-evidence {
  border-color: #9bbed7;
  background: #102435;
}
.ase-boundary-evidence b {
  display: block;
  margin-bottom: 0.3rem;
}
.ase-boundary-outcome:empty {
  display: none;
}
.brc-page .ase-boundary-outcome {
  color: #bdf1e6;
}
.ase-boundary-actions [data-count] {
  font-size: 0.9rem;
  color: #bce4dd;
}
@media (max-width: 860px) {
  .ase-boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brc-page .ase-boundary-stage {
    height: clamp(330px, 72vw, 470px);
  }
}
@media (max-width: 400px) {
  .brc-page .ase-boundary-picker button {
    padding: 0.35rem;
    font-size: 0.84rem;
  }
}
.ase-close-up :is(.ase-boundary-leaders, .ase-boundary-badge) {
  display: none;
}
.ase-detail-label {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  border-radius: 0.35rem;
  padding: 0.25rem 0.55rem;
  background: #143c45;
  color: #ecf9f7;
  font-size: 0.83rem;
  pointer-events: none;
}
