/* Artifact frames of the tessairact|code chat (artifact_frame.js): one sandboxed runner per
   artifact, its optional title and its status line. Tokens come from chat.css. The frame height
   follows the runner's reports; the chat is light, so the frame asks the runner for light. */

.artifact-frame {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
}

.artifact-frame-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.artifact-frame-runner {
  display: block;
  width: 100%;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-solid);
  color-scheme: light;
}

.artifact-frame-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.artifact-frame-status:empty {
  display: none;
}

.artifact-frame[data-status="error"] .artifact-frame-status,
.artifact-frame[data-status="timeout"] .artifact-frame-status,
.artifact-frame[data-status="refused"] .artifact-frame-status {
  color: var(--red);
}
