.tm-player {
  --tm-ink: #214639;
  --tm-muted: #526356;
  --tm-deep: #214d41;
  --tm-light: #e3edcf;
  color: var(--tm-ink);
  min-width: 0;
  line-height: 1.55;
}
.tm-player [hidden] { display: none !important; }
.tm-player button, .tm-player input { font: inherit; }
.tm-player .tm-intro { font-size: 1rem; margin: 0 0 .5rem; }
.tm-player .tm-safety { font-size: .88rem; color: var(--tm-muted); margin: 0 0 1rem; }
.tm-deck {
  border: 1px solid #365d48;
  border-radius: 1.1rem;
  background: var(--tm-deep);
  color: #fffef6;
  padding: clamp(1rem, 4vw, 1.45rem);
}
.tm-header { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.tm-phase-number, .tm-clock { font-variant-numeric: tabular-nums; font-size: .88rem; }
.tm-phase-number { color: var(--tm-light); font-weight: 650; }
.tm-clock { color: #fffef8; }
.tm-progress {
  display: block;
  appearance: none;
  width: 100%;
  height: .26rem;
  margin: .65rem 0 1.1rem;
  border: 0;
  border-radius: 1rem;
  background: #5d7c67;
  color: #d8e9ad;
  overflow: hidden;
}
.tm-progress::-webkit-progress-bar { background: #5d7c67; border-radius: 1rem; }
.tm-progress::-webkit-progress-value { background: #d8e9ad; border-radius: 1rem; }
.tm-progress::-moz-progress-bar { background: #d8e9ad; border-radius: 1rem; }
.tm-words { min-height: 6.5rem; }
.tm-player .tm-heading {
  margin: 0 0 .55rem;
  color: #fffef6;
  font: normal clamp(1.5rem, 5vw, 2rem)/1.16 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}
.tm-main-cue, .tm-mid-cue { margin: 0; line-height: 1.54; font-size: 1rem; }
.tm-player .tm-mid-cue { margin-top: .65rem; padding-left: .75rem; border-left: .14rem solid #adc49e; color: #e1edcf; }
.tm-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: 1.1rem; }
.tm-actions button {
  min-height: 2.55rem; padding: .48rem .95rem; border-radius: 1.5rem; font-weight: 600; line-height: 1.2;
  border: 1px solid #839e88; background: transparent; color: #fafbf0; cursor: pointer;
}
.tm-actions .tm-main-action { background: #edf3df; border-color: #edf3df; color: #204639; }
.tm-actions button:hover:enabled { background: #3a6553; }
.tm-actions .tm-main-action:hover:enabled { background: #dce9c9; }
.tm-actions button:disabled { color: #a7b9a7; border-color: #647e6b; cursor: default; }
.tm-player .tm-status { color: #e1edcf; font-size: .86rem; margin: .65rem 0 0; }
.tm-player :is(.tm-status, .tm-audio-note):empty { display: none; }
.tm-options { padding: .9rem 0; }
.tm-option { display: flex; align-items: center; gap: .6rem; font-size: .97rem; font-weight: 600; min-height: 2rem; }
.tm-option input { accent-color: var(--tm-deep); width: 1.15rem; height: 1.15rem; margin: 0; }
.tm-player .tm-voice-note, .tm-player .tm-audio-note { font-size: .86rem; color: var(--tm-muted); margin: 0 0 .45rem 1.78rem; }
.tm-player .tm-cloud { min-height: 2.5rem; margin: .05rem 0 .65rem 1.78rem; padding: .4rem .85rem; border: 1px solid #a5b8a2; border-radius: 1.4rem; background: #f4f6ec; color: var(--tm-ink); font-size: .88rem; }
.tm-volume { display: flex; align-items: center; gap: .6rem; margin: .25rem 0 .15rem 1.78rem; font-size: .86rem; flex-wrap: wrap; }
.tm-volume input { accent-color: var(--tm-deep); width: 6.5rem; min-height: 1.6rem; }
.tm-volume output { min-width: 2.4rem; font-variant-numeric: tabular-nums; }
.tm-outline { border-block: 1px solid #d8ded0; margin-block: .15rem; }
.tm-outline summary { cursor: pointer; padding: .7rem 0; font-weight: 600; color: var(--tm-ink); font-size: .95rem; }
.tm-outline ol { margin: 0 0 .5rem; padding-inline-start: 1.6rem; }
.tm-outline li { padding: .17rem .05rem; line-height: 1.4; color: var(--tm-muted); }
.tm-outline li span { margin-inline-start: .6rem; font-size: .82rem; font-variant-numeric: tabular-nums; color: #5d725d; }
.tm-outline a, .tm-exit { color: #345c48; text-decoration: underline; text-underline-offset: .18em; }
.tm-outline a { display: inline-block; font-size: .86rem; margin: 0 0 .75rem; }
.tm-player .tm-exit { display: block; padding: .6rem 0 .15rem; border: 0; background: transparent; font-size: .9rem; }
.tm-player :is(button, input, a, summary):focus-visible { outline: 3px solid #a57f36; outline-offset: 3px; }
.tm-deck :is(button, [tabindex]):focus-visible { outline: 3px solid #e5cf80; outline-offset: 3px; }
@media(max-width: 24rem) {
  .tm-deck { padding: .85rem; }
  .tm-actions button { padding-inline: .72rem; }
  .tm-header { flex-wrap: wrap; }
  .tm-volume { margin-left: 0; }
}
@media(prefers-reduced-motion: reduce) {
  .tm-player *, .tm-player *::before, .tm-player *::after { animation: none !important; transition: none !important; }
}
