.detail-shell {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: #05070b;
  transition: opacity .28s ease, visibility .28s ease;
}
.detail-shell.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.detail-shell-frame, .detail-shell-retiring {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #05070b;
}
html.detail-shell-open,
html.detail-shell-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .detail-shell { transition: none; }
}
/* No loading interstitial: the iframe is usable as its document renders. */
.detail-load-error {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: #101720;
  color: #eef3fa;
}
.detail-load-error[hidden] { display: none; }
.detail-load-error p { margin: 0; }

.detail-shell { background: transparent; }
.detail-shell.has-page { background: #05070b; }
.detail-shell-frame, .detail-shell-retiring { position: absolute; inset: 0; }
.detail-shell-frame[data-ready="false"] { opacity: 0; pointer-events: none; }

.detail-shell-retiring { pointer-events: none; }
