.instrument-viewer { margin: 0 0 30px; min-width: 0; }
.instrument-viewer__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.instrument-viewer__title { margin: 0; font: 600 clamp(16px, 2vw, 21px)/1.4 var(--font); letter-spacing: -.025em; }
.instrument-viewer__controls { display: flex; flex-shrink: 0; gap: 6px; }
.instrument-viewer__controls button { display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 1px solid var(--subtle); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.instrument-viewer__controls button:hover:enabled { background: var(--accent-soft); border-color: var(--accent); }
.instrument-viewer__controls button:disabled { opacity: .4; cursor: default; }
.instrument-viewer__stage { position: relative; width: 100%; height: clamp(220px, 28vw, 360px); overflow: hidden; border-radius: 12px; background: var(--band-wash, #f8f3f6); touch-action: pan-y pinch-zoom; cursor: grab; }
.instrument-viewer__stage:active { cursor: grabbing; }
.instrument-viewer__stage:focus-visible, .instrument-viewer button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.instrument-viewer__canvas, .instrument-viewer__poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.instrument-viewer[data-state="ready"] .instrument-viewer__poster { visibility: hidden; }
.instrument-viewer__status { position: absolute; z-index: 1; bottom: 18px; left: 20px; right: 20px; margin: 0; color: var(--secondary); font-size: 14px; }
.instrument-viewer__retry { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 20px; min-height: 44px; border: 1px solid var(--accent); border-radius: 24px; background: var(--paper); color: var(--ink); cursor: pointer; }
.instrument-viewer[data-state="fallback"] .instrument-viewer__status { bottom: 80px; text-align: center; }
body.dark .instrument-viewer__stage { background: var(--band-night, #20232e); }
@media (max-width: 600px) {
  .instrument-viewer__header { align-items: flex-start; gap: 10px; }
  .instrument-viewer__title { max-width: 18ch; }
  .instrument-viewer__stage { height: 220px; }
  .instrument-viewer__controls { gap: 4px; }
  .instrument-viewer__controls button { width: 36px; height: 36px; min-height: 36px; }
}
@media print { .instrument-viewer__controls, .instrument-viewer__retry, .instrument-viewer__status { display: none; } }
