.case-live-prototype {
  display: none;
  min-width: 0;
  margin: 0 0 var(--grid-gap);
}

@media (min-width: 810px) {
  .case-live-prototype:not([hidden]) { display: block; }
}

.case-prototype-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1200 / 900;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  isolation: isolate;
}

.case-prototype-frame {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 1200px;
  height: 900px;
  max-width: none;
  border: 0;
  transform: scale(var(--prototype-scale, 1));
  transform-origin: top left;
  background: var(--paper);
}

.case-prototype-frame:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.case-prototype-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--group-gap);
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  pointer-events: none;
}

.case-prototype-status[hidden] { display: none; }

.case-prototype-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--copy-gap) var(--action-gap);
  padding-top: var(--copy-gap);
}

.case-prototype-caption {
  display: grid;
  gap: var(--metadata-gap);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.case-prototype-caption strong { font-weight: 500; color: var(--ink); }
.case-prototype-actions { display: flex; align-items: center; gap: var(--label-gap); }

.case-prototype-reload {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  transition: background var(--motion-color) ease;
}

.case-prototype-reload svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) { .case-prototype-reload:hover { background: #292929; } }
@media (pointer: coarse) { .case-prototype-reload { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .case-prototype-reload { transition: none; } }
