.studio-preview-trigger { display: block; position: relative; cursor: zoom-in; }
a.studio-preview-trigger > span {
  position: absolute; bottom: .65rem; right: .65rem; border: 1px solid #667889;
  border-radius: .4rem; background: #0b1321; color: #fff; font: 700 .82rem/1.3 system-ui;
  padding: .45rem .65rem;
}
.studio-preview-trigger:focus-visible { outline: 2px solid #4e96ff; outline-offset: 4px; }
.studio-preview {
  box-sizing: border-box; width: min(96vw, 112rem); max-width: none; max-height: 95dvh;
  padding: 0; margin: auto; overflow: auto; color: #eef4fc; background: #121b26;
  border: 1px solid #516174; border-radius: .75rem; font-family: system-ui, sans-serif;
}
.studio-preview::backdrop { background: #05080ceb; }
.studio-preview header {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding: .6rem 1rem; background: #121b26; border-bottom: 1px solid #384758;
}
.studio-preview h2 { margin: 0; font-size: 1rem; color: inherit; }
.studio-preview-actions { display: flex; align-items: center; gap: .9rem; }
.studio-preview-actions a { color: #a7d7ff; font-size: .85rem; }
.studio-preview-actions button {
  color: #eef4fc; background: #26374a; border: 1px solid #65788e; border-radius: .35rem;
  padding: .45rem .7rem; font: 700 .85rem system-ui; cursor: pointer;
}
.studio-preview img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
  .studio-preview img { width: 55rem; max-width: none; }
  .studio-preview header { left: 0; }
}
