body {
  margin: 0;
  background: #f3f4f6;
  color: #1f2328;
  font-family: "Inter", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.runner-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

.runner-card {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.runner-header {
  padding: 24px;
}

.runner-logo {
  display: none;
  height: 32px;
  width: auto;
  margin: 0 0 8px;
}

.runner-eyebrow {
  margin: 0 0 8px;
  color: #00b061;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.runner-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1.15;
}

.runner-description {
  max-width: 780px;
  margin: 12px 0 0;
  color: #475467;
  font-size: 1rem;
  line-height: 1.6;
}

.runner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.runner-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 600;
}

.runner-status {
  margin-top: 16px;
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.runner-status--info {
  border-left: 4px solid #00b061;
}

.runner-status--error {
  border-left: 4px solid #dc2626;
  color: #7f1d1d;
  background: #fff5f5;
}

.runner-status--ready {
  border-left: 4px solid #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.runner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.runner-snippet-card {
  display: block;
  padding: 18px;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.runner-snippet-card:hover {
  transform: translateY(-2px);
  border-color: #00b061;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
}

.runner-snippet-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.runner-snippet-card p {
  margin: 0;
  color: #475467;
  font-size: 0.92rem;
  line-height: 1.55;
}

.runner-snippet-card code {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 0.78rem;
  font-family: "Roboto Mono", "Fira Code", "Consolas", monospace;
}

.runner-editor-host {
  margin-top: 16px;
}

.runner-editor-host .py-editor-box {
  min-height: 420px;
}

.runner-editor-host .py-editor-output {
  min-height: 420px;
}

body.runner-embedded {
  background: transparent;
}

body.runner-embedded .runner-shell {
  padding: 0;
}

body.runner-embedded .runner-header {
  padding: 16px 18px;
}

body.runner-embedded .runner-header h1 {
  font-size: 1.35rem;
}

body.runner-embedded .runner-description {
  font-size: 0.92rem;
}

body.runner-embedded .runner-logo {
  display: block;
}

body.runner-embedded .runner-eyebrow {
  display: none;
}

body.runner-embedded .runner-meta {
  display: none !important;
}

body.runner-embedded .runner-status:not(.runner-status--ready):not(.runner-status--error) {
  display: none !important;
}

@media (max-width: 768px) {
  .runner-shell {
    padding: 12px;
  }

  .runner-header {
    padding: 18px;
  }

  .runner-editor-host .py-editor-box,
  .runner-editor-host .py-editor-output {
    min-height: 0;
  }
}
