:root {
  --ground: #F2F4F3;
  --surface: #FFFFFF;
  --ink: #17201F;
  --muted: #55625F;
  --accent: #2E6B63;
  --accent-tint: #DCEBE7;
  --border: #E1E6E4;
  --chip-border: #C5D3CF;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 480px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 24px; margin: 8px 0 4px; }
h2 { font-size: 18px; margin: 0 0 4px; }
h3 { font-size: 16px; margin: 0 0 2px; }
.muted { color: var(--muted); margin: 0 0 12px; }
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 16px;
  margin: 16px 0;
}
.run { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--chip-border);
  background: var(--accent-tint);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button:disabled { opacity: 0.6; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
label.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
label.stack { display: block; margin-bottom: 10px; }
label.stack input, label.stack textarea { display: block; width: 100%; margin-top: 4px; }
input, select, textarea {
  min-height: 44px;
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}
input[type="number"] { width: 80px; }
audio { width: 100%; margin-top: 12px; }
.out { margin: 10px 0 0; font-size: 14px; color: var(--muted); white-space: pre-wrap; }
.out:empty { display: none; }
pre {
  background: var(--ground);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}
