.voice-player {
  min-width: 0;
  padding: clamp(.8rem, 2.6vw, 1.6rem);
  border: 1px solid #c3cdbf;
  border-radius: .55rem;
  background: #fffef8;
  color: #263932;
}
.voice-player [hidden] { display:none; }
.vp-options { display:grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap:.7rem; }
.vp-options label, .vp-slider { display:grid; align-content:start; gap:.3rem; color:var(--muted); font-size:.82em; font-weight:650; }
.vp-options select { width:100%; min-width:0; padding:.46em .32em; border:1px solid #aab5a5; background:#fffefa; border-radius:.24rem; color:var(--ink); }
.voice-player button { min-height:2.55em; padding:.36em .8em; cursor:pointer; font-size:.9em; font-weight:600; line-height:1.25; white-space:normal; }
.vp-score { margin:.95rem 0 .7rem; padding:.65rem .75rem .45rem; background:#f4f3e8; border:1px solid #d7dbc9; border-radius:.3rem; }
.vp-score figcaption { display:flex; align-items:baseline; justify-content:space-between; gap:.2rem .75rem; flex-wrap:wrap; color:var(--ink); }
.vp-score figcaption strong { font:600 1.22em/1.25 var(--serif); }
.vp-score figcaption span { color:var(--muted); font-size:.84em; }
.vp-score svg { display:block; width:100%; height:auto; margin:.55em 0 0; }
.vp-rule { stroke:#b9c2af; stroke-width:1; }
.vp-bar { stroke:#a5ae99; stroke-width:1; stroke-dasharray:2 3; }
.vp-axis { fill:#44554a; font:13px var(--sans); }
.vp-note-name { fill:#354d3e; font:bold 13px var(--sans); }
.vp-ledger { stroke:#52665a; stroke-width:1.3; }
.vp-duration { stroke:#637f6b; stroke-width:3.5; stroke-linecap:round; }
.vp-head { fill:#2d4b39; }
.vp-active .vp-head { fill:#a34025; stroke:#71301c; stroke-width:1.5; }
.vp-active .vp-duration { stroke:#a34025; stroke-width:5; }
.vp-active .vp-note-name { fill:#83351e; }
.vp-playhead { stroke:#a34025; stroke-width:1.7; stroke-dasharray:4 3; }
.vp-reading { margin:.1rem 0 .15rem; color:#344936; font-size:.93em; font-weight:650; font-variant-numeric:tabular-nums; }
.vp-hear,.vp-cues { display:flex; flex-wrap:wrap; gap:.36rem; }
.vp-hear button,.vp-cues button { border:1px solid #bcc7b9; border-radius:.26rem; color:#344b40; background:#fffefa; }
.vp-hear button[aria-pressed=true] { background:#e5ede2; border-color:#58715c; box-shadow:inset 0 -2px #58715c; }
.vp-hear button:hover,.vp-cues button:hover { background:#eef1e7; }
.vp-transport { display:flex; align-items:end; gap:.55rem .8rem; flex-wrap:wrap; margin:.85rem 0; }
.vp-play { background:var(--forest); color:#fff; border:1px solid var(--forest); border-radius:.25rem; }
.vp-slider { flex:1 1 8rem; min-width:0; }
.vp-slider input { width:100%; margin:.25rem 0; accent-color:var(--forest); cursor:pointer; }
.vp-clock { padding:.36em 0; font-size:.87em; font-variant-numeric:tabular-nums; color:var(--muted); }
.vp-cues button { padding:.36em .65em; font-size:.84em; }
.vp-reduction { display:inline-block; margin-top:.7rem; font-size:.91em; }
.vp-error { color:#803721; margin:.5rem 0; }
@media(max-width:42rem) { .vp-options { grid-template-columns:minmax(0,1fr); } }
@media(max-width:35rem) { .vp-score { padding-inline:.45rem; } .vp-clock { flex-basis:100%; padding:0; } }

.vp-clef { fill:#405548; font:32px "Segoe UI Symbol","Noto Music","Apple Symbols",serif; }
.vp-key { margin:.2rem 0; color:var(--muted); font-size:.82em; line-height:1.4; }
.vp-score svg { cursor:crosshair; }
.vp-measure { display:flex; align-items:center; flex-wrap:wrap; gap:.35em .65em; margin:.2em 0 .7em; color:var(--muted); font-size:.86em; font-weight:650; }
.vp-measure select { color:var(--ink); background:#fffefa; border:1px solid #aab5a5; border-radius:.25rem; padding:.32em; }
