/* The controls the site and the studio share: pills, copy buttons, buttons, the theme switch, code colours */
.pill, .who button, .tabs [role="tab"], .tabs .copy, .file .copy, .downloads a, .reset, .more {
  display: inline-block; padding: 7px 14px; border: 0; border-radius: 999px;
  background: var(--pill); color: var(--soft); font-size: 13px; line-height: 1.3;
}
.pill[aria-selected="true"], .pill[aria-pressed="true"], .who button[aria-pressed="true"], .tabs [aria-selected="true"] { background: var(--text); color: var(--bg); font-weight: 700; }
.more { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn { display: inline-block; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--pill);
  color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.2; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn:disabled { opacity: 0.5; cursor: default; }
/* The theme switch: the moon offers dark, the sun light */
.theme { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line);
  border-radius: 50%; background: none; color: var(--soft); }
.theme:hover { color: var(--text); }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun, :root[data-theme="dark"] .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
/* Syntax colours, from colour.js; strings and keys darker in light, to read on a white panel */
.t-str { color: var(--link); }
.t-key { color: var(--key); }
.t-num { color: var(--num); }
.t-mute { color: var(--mute); }
.t-cmd { color: var(--text); }
