/* Interactive apps #201+ */
.shell--app {
  max-width: 42rem;
}

.app-stage {
  width: 100%;
}

.app-panel {
  padding: 1.25rem 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.app-preview {
  margin: 1rem 0;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  min-height: 4rem;
}

.code-out {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--accent-2);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  word-break: break-all;
}

.md-preview {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.55;
}

.md-preview h1,
.md-preview h2 {
  font-family: var(--font-display);
  margin: 0.75rem 0 0.35rem;
}

.md-preview code {
  padding: 0.15rem 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  font-size: 0.85em;
}
