/* Founder Mode + Audio — brand tokens only */
.fm-toolbar {
  position: fixed;
  inset-inline-end: 0.75rem;
  bottom: 4.5rem;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: min(96vw, 28rem);
  padding: 0.45rem;
  background: var(--charcoal);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.fm-btn {
  appearance: none;
  border: 1px solid rgba(243, 237, 223, 0.25);
  background: var(--surface-action);
  color: var(--ivory);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.fm-btn.is-on, .fm-btn:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.fm-pencil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-inline-start: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-action);
  color: var(--gold-text);
  vertical-align: middle;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}
.fm-ctx { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; align-items: flex-start; }
.fm-series-tools {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 1.4rem;
  padding: 0.7rem; border: 1px dashed rgba(212, 175, 55, 0.5); border-radius: 12px;
  background: var(--surface-action);
}
body.founder-mode-on { padding-bottom: 5rem; }

.tr-player {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.tr-player-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }
#tr-seek { width: 100%; accent-color: var(--gold); }
.audio-chapters { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.audio-ch-btn {
  width: 100%; text-align: right; padding: 0.7rem 0.9rem;
  background: var(--surface-action); color: var(--ink); border: 1px solid var(--line);
}
.audio-ch-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.fm-editor:fullscreen { background: var(--paper); padding: 1.5rem; overflow: auto; }

@media (max-width: 720px) {
  .fm-toolbar { inset-inline: 0.5rem; bottom: 4.2rem; max-width: none; }
}
