
/* v3.7.233: TTS player styles — now theme-aware via var() refs. */
.wtpp-tts-active-paragraph {
  background: var(--code-bg, var(--code-bg));
  border-left: 4px solid var(--red, var(--red));
  padding-left: 14px;
  margin-left: -18px;
  transition: background 0.2s, border-color 0.2s;
}
.wtpp-tts-bar-active main p,
.wtpp-tts-bar-active article p,
.wtpp-tts-bar-active .doc-body p,
.wtpp-tts-bar-active .content p { cursor: pointer; }
.wtpp-tts-badge {
  position: fixed; bottom: 16px; right: 16px;
  /* v3.7.397: var(--red-bg) for theme-stable white-text-on-red contrast */
  background: var(--red-bg, var(--red-bg));
  color: var(--pure-white);
  font-family: 'Inconsolata', 'Courier New', monospace;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 4px; cursor: pointer;
  box-shadow: 0 2px 8px var(--ov-black-15);
  z-index: 9990; border: none;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s, transform 0.15s;
}
.wtpp-tts-badge:hover, .wtpp-tts-badge:focus {
  background: var(--blue, var(--blue-bg));
  transform: translateY(-1px);
  outline: 2px solid var(--blue, var(--blue)); outline-offset: 2px;
}
.wtpp-tts-badge svg { width: 14px; height: 14px; }
.wtpp-tts-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--paper, var(--paper));
  border-top: 3px solid var(--red, var(--red));
  padding: 12px 20px; z-index: 9999;
  box-shadow: 0 -2px 12px var(--ov-black-10);
  display: none; flex-direction: column; gap: 8px;
}
.wtpp-tts-bar.wtpp-tts-bar-open { display: flex; }
.wtpp-tts-bar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* v3.7.257: TTS button cosmetic CSS absorbed into design system.
   Layout-only properties retained — design system doesn't provide
   min-height/min-width tokens at this level. Cascade verification:
   wtpp-tts-styles (line ~1459) is BEFORE wtpp-btn-system (line ~1907),
   so design system wins on all cosmetic conflicts already. The
   dropped rules were either dead code (cosmetics shadowed by design
   system) or behavioral duplicates (hover/focus replaced by design
   system's subtler treatment). */
.wtpp-tts-btn { min-height: 32px; gap: 5px; }
.wtpp-tts-btn-primary { min-width: 80px; }
.wtpp-tts-btn svg { width: 12px; height: 12px; }
.wtpp-tts-progress {
  font-family: 'Inconsolata', 'Courier New', monospace;
  font-size: 12px; color: var(--ink, var(--ink));
  font-weight: 500; letter-spacing: 0.03em; min-width: 140px;
}
.wtpp-tts-progress.wtpp-tts-status-end {
  color: var(--red, var(--red)); font-weight: 600;
}
.wtpp-tts-select {
  background: var(--paper, var(--paper));
  border: 1px solid var(--ink-muted, var(--ink-muted));
  color: var(--ink, var(--ink));
  font-family: 'Inconsolata', 'Courier New', monospace;
  font-size: 12px; padding: 5px 8px; border-radius: 3px;
  cursor: pointer; max-width: 240px;
}
.wtpp-tts-select:focus {
  outline: 2px solid var(--blue, var(--blue)); outline-offset: 1px;
  border-color: var(--red, var(--red));
}
.wtpp-tts-label {
  font-family: 'Inconsolata', 'Courier New', monospace;
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft, var(--ink-soft));
  letter-spacing: 0.06em; text-transform: uppercase;
}
.wtpp-tts-spacer { flex: 1 1 auto; min-width: 8px; }
.wtpp-tts-close {
  background: transparent; border: none; font-size: 18px;
  color: var(--ink-soft, var(--ink-soft)); cursor: pointer;
  padding: 4px 8px; border-radius: 3px; line-height: 1;
  font-family: serif;
}
.wtpp-tts-close:hover, .wtpp-tts-close:focus {
  /* v3.7.397: var(--red-bg) for theme-stable white-text-on-red contrast */
  background: var(--red-bg, var(--red-bg));
  color: var(--pure-white);
  outline: 2px solid var(--blue, var(--blue)); outline-offset: 2px;
}
@media (max-width: 720px) {
  .wtpp-tts-bar { padding: 10px 12px; }
  .wtpp-tts-progress { min-width: 100px; font-size: 11px; }
  .wtpp-tts-select { max-width: 140px; font-size: 11px; }
  .wtpp-tts-label { display: none; }
}
@media print {
  .wtpp-tts-badge, .wtpp-tts-bar { display: none !important; }
  .wtpp-tts-active-paragraph { background: none; border-left: none; padding-left: 0; margin-left: 0; }
}
.in-iframe .wtpp-tts-badge, .in-iframe .wtpp-tts-bar { display: none !important; }
