/* Shared theme layer for the standalone HTML guides.
   The guides define their own light palette as CSS variables; this overrides them
   for dark mode (Resonate-style palette) and styles the floating controls. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1f2b;
  --surface: #262d3d;
  --surface2: #2d3548;
  --border: #38415a;
  --accent: #37e2b4;
  --green: #4ade9a;
  --yellow: #e5b93c;
  --red: #ff6b5e;
  --orange: #ff9a4d;
  --purple: #a78bfa;
  --teal: #2dd4bf;
  --key: #ffd166;
  --text: #eceff5;
  --text-dim: #b0b9cc;
  --code-bg: #141823;
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--text); }

.guide-controls {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 300;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
.guide-controls a,
.guide-controls button {
  background: var(--surface, #f5f6fa);
  border: 1px solid var(--border, #d0d4e0);
  border-radius: 999px;
  color: var(--text, #1e2030);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
  text-decoration: none;
}
.guide-controls a:hover,
.guide-controls button:hover { border-color: var(--accent, #3b6fd4); color: var(--accent, #3b6fd4); }
@media print { .guide-controls { display: none; } }
