.test-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}
.live-stream-card {
  margin-top: 0;
  padding: 25px;
  background: #fff;
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(18, 35, 63, .12);
}
.live-stream-card h3 { margin: 6px 0; }
.live-stream-card p { color: #58708f; }
.live-stream-card iframe {
  display: block;
  width: 100%;
  height: clamp(210px, 23vw, 315px);
  min-height: 0;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #071223;
}
.stream-note { font-size: .85rem; margin: 12px 0 0; }
.hardware-error { color: #8e302c !important; }
@media (min-width: 981px) {
  .test-workspace {
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 1.5625fr) minmax(360px, 1.44fr);
    width: 127.47%;
    align-items: stretch;
  }
  .test-layout { display: contents; }
  .logic-card,
  .output-card { height: 100%; }
  .live-stream-card { display: flex; flex-direction: column; }
}
@media (max-width: 980px) {
  .test-workspace { grid-template-columns: 1fr; width: 100%; }
  .test-layout { display: grid; }
  .live-stream-card iframe { height: clamp(195px, 50vw, 285px); }
}
