.pyodide-runner {
  border: 1px solid #c0c0c0;
  border-radius: 8px;
  margin: 1em 0;
  background: #fff;
}

.pyodide-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #f5f5f5;
  border-bottom: 1px solid #d0d0d0;
}

.pyodide-label {
  font-size: 0.8em;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pyodide-buttons {
  display: flex;
  gap: 6px;
}

.pyodide-btn {
  border: none;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.85em;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s;
}

.pyodide-run {
  background: #4caf50;
  color: white;
}
.pyodide-run:hover {
  background: #43a047;
}
.pyodide-run:disabled {
  background: #aaa;
  cursor: wait;
}

.pyodide-reset {
  background: #e0e0e0;
  color: #333;
}
.pyodide-reset:hover {
  background: #bdbdbd;
}

.pyodide-editor-container {
  border-bottom: 1px solid #e0e0e0;
}

.pyodide-editor-container .CodeMirror {
  height: 300px;
  font-size: 0.9em;
  line-height: 1.5;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
}

.pyodide-editor-container .CodeMirror-scroll {
  min-height: 50px;
}

.pyodide-loading {
  padding: 8px 16px;
  color: #888;
  font-size: 0.85em;
  font-style: italic;
}

.pyodide-output {
  margin: 0 !important;
  padding: 12px 16px !important;
  background: #000 !important;
  color: #fff !important;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace !important;
  font-size: 0.9em !important;
  line-height: 1.5 !important;
  border-top: 2px solid #4caf50;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
}

.pyodide-output.pyodide-error {
  color: #ff4444 !important;
  border-top-color: #e53935;
}

.pyodide-output.pyodide-no-output {
  color: #888 !important;
  font-style: italic;
}

/* Read-only display block for turtle/pygame/image code */
.pyodide-runner.readonly .pyodide-toolbar {
  background: #e8e8e8;
}
