.vs, .vs-stage { container-type: inline-size; }
.vs-stage { box-sizing: border-box; aspect-ratio: 16 / 9; width: min(100%, calc(var(--room, 70dvh) * 16 / 9)); margin-inline: auto; overflow: clip;
  background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); }
@container (max-width: 800px) { .vs-stage { aspect-ratio: 1; width: min(100%, var(--room, 70dvh)); } }
@container (max-width: 560px) { .vs-stage { aspect-ratio: 4 / 5; width: min(100%, calc(var(--room, 70dvh) * 4 / 5)); } }
.vs-in { box-sizing: border-box; height: 100%; padding: 0 3.6cqi 3cqi; display: grid; grid-template-rows: auto minmax(0, 1fr); position: relative; }
.vs-chapters { display: grid; box-sizing: border-box; isolation: isolate; }
.vs-in, .vs-chapters, .vs-ch { grid-template-columns: minmax(0, 1fr); }
.vs-ch, .vs-cap { margin: 0; opacity: 0; transition: opacity 400ms var(--cds-ease-out); }
.vs-ch.vs-on, .vs-cap.vs-on { opacity: 1; } .vs-ch:not(.vs-on) { pointer-events: none; }
.vs-ch { grid-area: 1 / 1; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
.vs-say { grid-row: 3; } .vs-draw { grid-row: 4; } .vs-src { grid-row: 5; }
.vs-draw { container-type: size; display: flex; flex-direction: column; justify-content: safe center; font-size: max(12px, 1.8cqi); }
.vs-in { --marks: max(24px, 4cqi); --row: 32px; --ctl: 176px; }
@media (pointer: coarse) { .vs-in { --marks: max(32px, 4cqi); --row: 52px; --ctl: 240px; } }
.vs-line { grid-area: 1 / 1; height: var(--marks); display: flex; gap: 6px; }
.vs-mk { flex: 1; min-inline-size: 0; position: relative; display: flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; forced-color-adjust: none; outline-offset: -3px; }
.vs-mk::before { content: ''; position: absolute; inset-inline: 0; background: var(--cds-chart-muted); }
.vs-mk i { position: relative; display: block; width: 0; background: var(--color-fg); }
.vs-mk::before, .vs-mk i { height: 3px; border-radius: 3px; }
@media (forced-colors: active) { .vs-mk::before { background: GrayText; } .vs-mk i { background: CanvasText; } }
.vs-chapters, .vs-caps { grid-area: 2 / 1; }
.vs-caps, .vs-say { font-size: max(14px, 2cqi); line-height: 1.4; }
.vs-say { block-size: 2lh; } .vs-ch h1, .vs-ch h2 { margin: 0.1em 0 0.3em; }
.vs-cap { position: absolute; inset-inline: 3.6cqi; display: grid; font-weight: var(--cds-font-weight-medium); }
.vs-s { grid-area: 1 / 1; opacity: 0; } .vs-s.vs-on { opacity: 1; }
.vs-caps { pointer-events: none; } .vs-hush .vs-caps { opacity: 0; }
.vs-label { margin: 0; padding-block: calc((var(--row) - 1lh) / 2); padding-inline-end: var(--ctl); text-transform: uppercase; }
.vs-controls { position: absolute; inset-block-start: var(--marks); inset-inline-end: calc(3.6cqi - 6px); height: var(--row); display: flex; align-items: center; gap: 8px; }
.vs-controls { transition: opacity 200ms var(--cds-ease-out); }
@media (hover: hover) { .vs-playing .vs-stage:is(.vs-idle:not(.vs-held), :not(:hover, .vs-touch)):not(:has(:focus-visible)) .vs-controls { opacity: 0; transition: opacity var(--cds-dur-slow) var(--cds-ease-out) 300ms; } }
@media (prefers-reduced-motion: reduce) { .vs-controls { transition: none !important; } }
.vs-controls > button { flex: none; height: calc(100% - 8px); min-inline-size: 24px; padding-inline: 6px; font: inherit; font-size: 13px; color: var(--color-fg); background: none; border: 0; border-radius: 6px; cursor: pointer; }
@media (hover: hover) { .vs-controls > button:hover { background: var(--cds-border); } .vs-mk:hover::before, .vs-mk:hover i { height: 5px; } }
.vs-controls > button:has(svg) { display: grid; place-items: center; padding-inline: 4px; }
.vs-controls svg { grid-area: 1 / 1; inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .vs-controls > button:has(svg) { min-inline-size: 40px; } .vs-controls svg { inline-size: 20px; block-size: 20px; } }
.vs-cc[aria-pressed="false"] { color: var(--color-fg-muted); text-decoration: line-through; }
.vs.vs-playing .vs-toggle > :first-child, .vs:not(.vs-playing) .vs-toggle > :last-child { visibility: hidden; }
[data-read-sound][aria-pressed="true"] > :first-child, [data-read-sound]:not([aria-pressed="true"]) > :last-child { visibility: hidden; }
@container (max-width: 560px) { .vs-line { gap: 4px; } .vs-say { block-size: 3lh; } .vs-chapters { padding-top: calc(var(--row) + 4px); } .vs-label { padding: 0; } }
.vs-now { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media print {
  .vs-stage { aspect-ratio: auto; width: 100%; border: 0; background: none; } .vs-line, .vs-controls { display: none; }
  .vs-ch { grid-area: auto; opacity: 1; aspect-ratio: 16 / 10; } .vs-ch + .vs-ch { break-before: page; }
  .vs-say { block-size: 4lh; } .vs-cap { display: block; } .vs-cap, .vs-s, .vs-hush .vs-caps { opacity: 1; }
}

/* The piece */
.vs-label { font-size: max(11px, 1.3cqi); letter-spacing: 0.06em; color: var(--color-fg-muted); }
.vs-ch h2 { font-size: max(18px, 3.4cqi); font-weight: var(--cds-font-weight-medium); line-height: 1.2; }
.vs-ch h1 { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: max(26px, 5.4cqi); line-height: 1.1; }
.vs-src { margin: 0.6em 0 0; font-size: max(11px, 1.3cqi); color: var(--color-fg-muted); }
.vs-sub { margin: 0 0 1.2em; font-size: 1.25em; color: var(--color-fg-muted); max-width: 40em; }
.vs-bigs { display: flex; flex-wrap: wrap; gap: 2em 5em; }
.vs-big { display: flex; flex-direction: column; }
.vs-bignum { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: min(12cqi, 30cqh); line-height: 1; font-variant-numeric: tabular-nums; color: var(--color-fg); }
.vs-bigcap { color: var(--color-fg-muted); margin-top: 0.3em; }

/* Bars */
.vs-barwrap { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.vs-bars { flex: 1; min-height: 0; position: relative; display: grid; grid-auto-rows: minmax(0, 1fr); }
.vs-row { display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr); align-items: center; gap: 1em; min-height: 0; cursor: default; }
.vs-rowlab { line-height: 1.2; color: var(--color-fg); text-align: end; }
.vs-track { position: relative; height: min(64%, 13cqh); }
.vs-zero { position: absolute; inset-block: -0.4em; width: 1px; background: var(--cds-chart-axis); }
.vs-bar { position: absolute; inset-block: 0; border-radius: 4px; transform-origin: left center; forced-color-adjust: none; }
.vs-bar.vs-neg { transform-origin: right center; }
.vs-val { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: var(--cds-font-weight-medium); font-size: 1.15em; }
@media (forced-colors: active) { .vs-bar { background: CanvasText !important; } }
.vs-gap { margin: 0.6em 0 0; text-align: center; font-size: 1.2em; }
.vs-gap b { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: 1.8em; }
.vs-tip { position: absolute; z-index: 2; pointer-events: none; max-width: 22em; padding: 0.5em 0.7em; font-size: 0.9em; line-height: 1.35;
  background: var(--cds-surface-popover); border: 1px solid var(--cds-border); box-shadow: var(--cds-shadow-popover); border-radius: 6px; color: var(--color-fg); }
.vs-tip span { display: block; color: var(--cds-text-secondary); }

/* Dots */
.vs-dotwrap { height: 100%; display: flex; align-items: center; justify-content: center; gap: 6cqi; }
.vs-dots { position: relative; width: min(100cqh, 52cqi); aspect-ratio: 1; flex: none; }
.vs-dotgrid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr); gap: 3%; padding: 0; box-sizing: border-box; }
.vs-dot { border-radius: 50%; background: var(--cds-chart-muted); forced-color-adjust: none; transition: background-color 300ms var(--cds-ease-out); }
.vs-legend { display: flex; flex-direction: column; gap: 1.6em; min-width: 0; }
.vs-leg { display: flex; flex-direction: column; }
.vs-leg b { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: min(7cqi, 18cqh); line-height: 1; font-variant-numeric: tabular-nums; }
.vs-leg > span { color: var(--color-fg-muted); max-width: 16em; }
.vs-sw { display: inline-block; width: 0.8em; height: 0.8em; border-radius: 50%; margin-inline-end: 0.4em; vertical-align: -0.05em; forced-color-adjust: none; }
@container (max-width: 560px) { .vs-dotwrap { flex-direction: column; gap: 1em; } .vs-dots { width: min(60cqh, 70cqi); } .vs-legend { flex-direction: row; gap: 2em; } }

/* Moves */
.vs-moves { height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1em; }
.vs-move { min-height: 0; overflow: hidden; box-sizing: border-box; padding: 0.9em 1.1em; border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); background: var(--color-bg); display: flex; flex-direction: column; justify-content: center; gap: 0.3em; }
.vs-move b { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: min(4.2cqi, 11cqh); line-height: 1; font-variant-numeric: tabular-nums; color: var(--color-fg); }
.vs-move strong { font-weight: var(--cds-font-weight-medium); font-size: 1.02em; line-height: 1.25; }
.vs-move > span { color: var(--color-fg-muted); line-height: 1.3; font-size: 0.9em; }
@container (max-width: 560px) { .vs-moves { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 0.5em; } .vs-move { padding: 0.4em 0.8em; } .vs-move > span { display: none; } }
/* Finding tags and the recap */
.vs-move em { font-style: normal; font-size: 0.85em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-fg-muted); }
.vs-recap { height: 100%; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 0.6em; }
.vs-rec { min-height: 0; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1em; padding: 0.5em 1em; border-bottom: 1px solid var(--color-border-line); }
.vs-rec:last-child { border-bottom: 0; }
.vs-rec i { font-style: normal; font-family: var(--font-anthropic-serif); font-size: min(4cqi, 12cqh); line-height: 1; color: var(--color-fg-muted); font-variant-numeric: tabular-nums; }
.vs-rec strong { display: block; font-weight: var(--cds-font-weight-medium); font-size: 1.1em; }
.vs-rec span { display: block; color: var(--color-fg-muted); line-height: 1.3; }
@container (max-width: 560px) { .vs-rec { padding: 0.2em 0.4em; } .vs-move em { display: none; } }
@media print { .vs-rec { opacity: 1 !important; } }
@media print { .vs-bar { transform: none !important; } .vs-val, .vs-gap, .vs-move, .vs-big, .vs-leg { opacity: 1 !important; } }
