.backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 12, 16, 0.82);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.panel {
  flex: 1;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-height: calc(100vh - 48px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
}

.meta {
  min-width: 0;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.linkBtn {
  padding: 8px 14px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.linkBtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.close {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  background: var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.close:hover {
  background: #3d4f63;
}

.frameWrap {
  flex: 1;
  min-height: 0;
  background: #0a0d11;
}

.frame {
  width: 100%;
  height: 100%;
  min-height: 65vh;
  border: none;
  display: block;
}

.noPreview {
  margin: 0;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
