/* Real-run lab panels (added on top of the teaching site styles). */
.realrun-panel {
  margin: 1.2rem 0 0.4rem;
  border: 2px solid #16a34a;
  border-radius: 12px;
  padding: 1rem 1.1rem 0.9rem;
  background: rgba(22, 163, 74, 0.06);
}
.realrun-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.realrun-badge {
  background: #16a34a; color: #fff; font-weight: 700;
  border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.95rem;
}
.realrun-title { font-weight: 600; font-size: 1.02rem; }
.realrun-row { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.7rem; flex-wrap: wrap; }
.realrun-label { font-weight: 600; }
.realrun-select {
  font-size: 1rem; padding: 0.35rem 0.5rem; border-radius: 8px;
  border: 1px solid var(--hatch-widget-border, #999); max-width: 100%;
}
.realrun-editor {
  width: 100%; min-height: 300px; margin-top: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem; line-height: 1.5;
  background: #0d1117; color: #e6edf3;
  border: 1px solid #30363d; border-radius: 10px; padding: 0.8rem;
  box-sizing: border-box; resize: vertical; white-space: pre;
}
.realrun-run {
  background: #16a34a; color: #fff; border: 0; cursor: pointer;
  font-size: 1.05rem; font-weight: 700; border-radius: 10px; padding: 0.55rem 1.3rem;
}
.realrun-run:disabled { opacity: 0.55; cursor: wait; }
.realrun-reset {
  background: transparent; cursor: pointer; font-size: 0.98rem;
  border: 1px solid #16a34a; color: inherit; border-radius: 10px; padding: 0.5rem 1rem;
}
.realrun-status { font-weight: 600; }
.realrun-out {
  margin-top: 0.8rem; max-height: 430px; overflow: auto;
  background: #0d1117; color: #e6edf3; border-radius: 10px; padding: 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.realrun-out.is-pass { border: 2px solid #16a34a; }
.realrun-out.is-fail { border: 2px solid #dc2626; }
.realrun-note { margin: 0.6rem 0 0; font-size: 0.92rem; opacity: 0.85; }
.realrun-pill {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  background: #111827; color: #e5e7eb; border-radius: 999px;
  padding: 0.4rem 0.9rem; font-size: 0.9rem; box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.realrun-pill.is-ok { border: 2px solid #16a34a; }
.realrun-pill.is-off { border: 2px solid #d97706; }
