/* Static ambient instrumentation, clipped only by ordinary rounded overflow.
   It follows the canonical face and never changes the content's layout. */
.agent-card-ambient {
  position: absolute;
  left: var(--card-inner-offset-x);
  top: var(--card-inner-offset-y);
  width: var(--card-inner-width);
  height: var(--card-inner-height);
  border-radius: var(--card-inner-radius);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 1;
}
.agent-card-ambient::before,
.agent-card-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/card-ambient/instrumentation.svg') center / 100% 100% no-repeat;
  opacity: .34;
}
/* The master uses the same artwork/intensity, fitted to its existing aperture.
   Keep the compact central shell and content independent of lateral geometry. */
.agent-card-shell[data-side="center"] > .agent-card-ambient {
  left: 6px;
  top: 23px;
  width: calc(100% - 12px);
  height: calc(100% - 46px);
  border-radius: var(--card-corner-radius);
}
.agent-card-ambient::after {
  background-image: url('../assets/card-ambient/peripheral.svg');
  opacity: .72;
}
.agent-card-telemetry {
  position: absolute;
  /* Uniform aspect ratio, including the shorter master aperture.
     Visible signal = 68/72 × 21.0526% = 19.88% of each inner face. */
  right: 5.5556%;
  top: 18.3206%;
  width: 21.0526%;
  aspect-ratio: 72 / 20;
  background: url('../assets/card-ambient/telemetry.svg?v=mc1-r3') center / 100% 100% no-repeat;
  opacity: .82;
  transform: none;
}
.agent-card-shell[data-side="right"] .agent-card-telemetry { transform: none; }
.agent-card-shell[data-side="right"] > .agent-card-ambient::after {
  transform: scaleX(-1);
}
/* QA-only amplification; normal rendering is unaffected by this opt-in. */
body[data-ambient-qa="on"] .agent-card-ambient::before,
body[data-ambient-qa="on"] .agent-card-ambient::after,
body[data-ambient-qa="on"] .agent-card-telemetry { opacity: 1; }
