.mu-rot[data-mono] {
  display: inline-grid;
  max-width: 100%;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  vertical-align: baseline;
}
.mu-rot-type { position: relative; display: inline-grid; max-width: 100%; min-width: 0; }
.mu-rot-layer, .mu-rot-measure {
  grid-area: 1 / 1;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.mu-rot-measure { visibility: hidden; pointer-events: none; }
.mu-rot-word, .mu-rot-mask, .mu-rot-glyph { display: inline-block; }
.mu-rot-word { max-width: 100%; }
.mu-rot-glyph { position: relative; transform-origin: 50% 80%; }
.mu-rot-mask { overflow: clip; vertical-align: bottom; }
.mu-rot-noise { position: absolute; inset: 0; overflow: hidden; text-align: center; }

.mu-rot-player[data-mono] {
  --rot-muted: #a5a5a5;
  --rot-line: #383838;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  width: 100%;
  container-type: inline-size;
  overflow: clip;
  background: #111;
  color: #f6f6f6;
  font: 500 1rem/1.3 Inter, "Helvetica Neue", Arial, sans-serif;
  text-align: start;
}
.mu-rot-player:has(.mu-rot-picker:not([hidden])) { grid-template-columns: minmax(8rem, 22%) minmax(0, 1fr); }
.mu-rot-picker { display: flex; flex-direction: column; gap: 1rem; border-inline-end: 1px solid var(--rot-line); padding: 1.5rem .75rem; }
.mu-rot-caption { color: var(--rot-muted); font: 550 .66rem/1.2 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .10em; }
.mu-rot-picker > .mu-rot-caption { padding-inline: .5rem; }
.mu-rot-options { display: grid; gap: .13rem; }
.mu-rot-options label {
  position: relative; display: flex; align-items: center; gap: .65rem;
  min-height: 2rem; padding: .25rem .55rem; border-radius: .2rem;
  color: #bcbcbc; cursor: pointer; font-size: .86rem;
}
.mu-rot-options label::before {
  content: ""; width: .42rem; height: .42rem; flex: none;
  border: 1px solid #777; border-radius: 50%;
}
.mu-rot-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mu-rot-options label:hover { color: white; background: #202020; }
.mu-rot-options label:has(:checked) { color: white; background: #2b2b2b; }
.mu-rot-options label:has(:checked)::before { background: currentColor; border-color: currentColor; }
.mu-rot-options label:has(:focus-visible) { outline: 2px solid currentColor; outline-offset: 1px; }
.mu-rot-select { display: none; color-scheme: dark; border: 1px solid #555; border-radius: .25rem; background: #202020; padding: .45rem; }
.mu-rot-player .mu-rot-stage {
  display: grid; position: relative; min-width: 0; min-height: 17rem;
  grid-template-rows: minmax(0,1fr) auto; padding: clamp(1.35rem,4.5cqi,4rem);
  padding-bottom: 1.15rem;
}
.mu-rot-player .mu-rot-type {
  align-self: center; justify-self: start; padding-block: .3em;
  font-size: clamp(2.75rem, 10.3cqi, 8rem); line-height: 1.12;
  font-weight: 450; letter-spacing: -.065em;
}
.mu-rot-player .mu-rot-layer { perspective: 800px; }
.mu-rot-transport { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .75rem; border-top: 1px solid var(--rot-line); }
.mu-rot-position { color: var(--rot-muted); font: .72rem/1.2 ui-monospace, monospace; white-space: nowrap; }
.mu-rot-position b { color: white; font-weight: 600; }
.mu-rot-position .mu-rot-caption { margin-inline-end: .42rem; }
.mu-rot-actions { display: inline-flex; align-items: center; gap: .16rem; }
.mu-rot-actions button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 2.15rem; min-height: 2.15rem; padding: .3rem; color: inherit; background: transparent; border: 1px solid transparent; border-radius: .25rem; }
.mu-rot-actions button:hover:enabled { background: #282828; }
.mu-rot-actions [data-rot-play] { min-width: 4.8rem; border-color: #505050; font-size: .77rem; }
.mu-rot-play-icon, [data-rot-stopped] .mu-rot-pause-icon { display: none; }
[data-rot-stopped] .mu-rot-play-icon { display: inline; }
@container (max-width: 34rem) {
  .mu-rot-picker { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: .65rem 1rem; border: 0; border-bottom: 1px solid var(--rot-line); }
  .mu-rot-picker > .mu-rot-caption { padding: 0; }
  .mu-rot-options { display: none; }
  .mu-rot-select { display: block; min-width: 9rem; }
  .mu-rot-player .mu-rot-stage { grid-column: 1 / -1; min-height: clamp(13rem,60cqi,20rem); }
}
@container (max-width: 18rem) {
  .mu-rot-transport { flex-wrap: wrap; }
}
