.w-volume { display: block; }
.w-volume .wv-controls { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.w-volume .wv-tblock { flex: 1 1 16rem; max-width: 360px; }
.w-volume .wv-tlabel { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.25rem; }
.w-volume .wv-ends { display: flex; justify-content: space-between; }
.w-volume .wv-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.w-volume .wv-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start; }
@media (max-width: 900px) { .w-volume .wv-grid { grid-template-columns: minmax(0, 1fr); } }

.w-volume .wv-plotbox { width: 100%; background: var(--surface); }
.w-volume .wv-help { margin-top: 0.35rem; }
.w-volume .wv-svg { display: block; margin: 0 auto; max-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.w-volume .wv-axis { stroke: var(--line-strong); stroke-width: 1; }
.w-volume .wv-axt { fill: var(--ink-3); font-family: var(--font); font-size: 12px; pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.w-volume .wv-area { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.w-volume .wv-areatext { fill: var(--accent); font-size: 12px; font-weight: 600; pointer-events: none; paint-order: stroke; stroke: var(--accent-soft); stroke-width: 3px; }
.w-volume .wv-origin { fill: var(--ink-2); }
.w-volume .wv-arrow { cursor: grab; outline: none; }
.w-volume .wv-arrow:active { cursor: grabbing; }
.w-volume .wv-hit { stroke: transparent; stroke-width: 18; stroke-linecap: round; }
.w-volume .wv-hhit { fill: transparent; }
.w-volume .wv-shaft { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.w-volume .wv-ring { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 2.5 2.5; pointer-events: none; }
.w-volume .wv-arrow.is-sel .wv-ring { stroke: var(--accent); }
.w-volume .wv-handle { fill: var(--surface); stroke: var(--ink-3); stroke-width: 2; }
.w-volume .wv-arrow.is-sel .wv-shaft { stroke: var(--accent); stroke-width: 4; }
.w-volume .wv-arrow.is-sel .wv-handle { fill: var(--accent); stroke: var(--accent); }
.w-volume .wv-arrow:focus-visible .wv-handle { stroke: var(--focus); stroke-width: 3.5; }
.w-volume .wv-arrow:focus-visible .wv-hhit { stroke: var(--focus); stroke-width: 2; }
.w-volume .wv-label { fill: var(--ink-2); font-size: 12px; cursor: pointer; font-family: var(--font); }
.w-volume .wv-label.is-sel { fill: var(--accent); font-weight: 600; }
.w-volume .wv-labelbg { fill: var(--surface); fill-opacity: 0.75; cursor: pointer; }
.w-volume .wv-leader { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 2; pointer-events: none; }

.w-volume .wv-h { margin-bottom: 0.35rem; }
.w-volume .wv-names { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.15rem; }
.w-volume .wv-names li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.75rem; }
.w-volume .wv-meta { color: var(--ink-3); font-size: var(--text-xs); align-self: center; }
.w-volume .wv-eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0.3rem; align-items: stretch; margin-bottom: 0.5rem; }
.w-volume .wv-cell { background: var(--surface-2); border-radius: var(--radius-s); padding: 0.3rem 0.5rem; min-width: 0; }
.w-volume .wv-cell.is-area { background: var(--accent-soft); }
.w-volume .wv-cl { font-size: var(--text-xs); color: var(--ink-2); }
.w-volume .wv-cv { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.w-volume .wv-cs { font-size: var(--text-xs); color: var(--ink-3); }
.w-volume .wv-op { align-self: center; font-size: 1.15rem; color: var(--ink-3); }
.w-volume .wv-prob { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: baseline; border-top: 1px solid var(--line); padding-top: 0.4rem; margin-bottom: 0.9rem; }
.w-volume .wv-prob .wv-cl { grid-column: 1; }
.w-volume .wv-pv { grid-column: 2; grid-row: 1 / span 2; font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.w-volume .wv-prob .wv-cs { grid-column: 1; }

.w-volume .wv-list { display: grid; }
.w-volume .wv-row { display: grid; grid-template-columns: 14.5rem minmax(2rem, 1fr) 3rem 4.2rem; gap: 0.5rem; align-items: center; text-align: left; width: 100%; height: 26px; padding: 0 0.4rem; background: transparent; border: 1px solid transparent; border-radius: var(--radius-s); min-height: 0; font-size: var(--text-xs); }
.w-volume button.wv-row:hover { background: var(--surface-2); border-color: var(--line); }
.w-volume .wv-row.is-sel { background: var(--accent-soft); border-color: var(--accent); }
.w-volume .wv-head { height: auto; padding-bottom: 0.15rem; color: var(--ink-2); border-bottom: 1px solid var(--line); border-radius: 0; }
.w-volume .wv-head .wv-pd, .w-volume .wv-head .wv-pi { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.25rem; justify-content: flex-end; }
.w-volume .wv-same { margin-top: 0.25rem; border-top: 1px solid var(--line); border-radius: 0; }
.w-volume .wv-pn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-volume .wv-bars { display: flex; flex-direction: column; gap: 2px; }
.w-volume .wv-fill { display: block; height: 5px; border-radius: 2px; min-width: 1px; }
.w-volume .wv-pd { text-align: right; color: var(--accent); }
.w-volume .wv-pi { text-align: right; color: var(--m-ancestral); }
.w-volume .wv-sw { display: inline-block; width: 0.8rem; height: 0.4rem; border-radius: 2px; }
.w-volume .wv-sw-dpp { background: var(--accent); }
.w-volume .wv-sw-ind { background: var(--m-ancestral); }
@media (max-width: 640px) {
  .w-volume .wv-row { grid-template-columns: minmax(0, 1fr) 2.2rem 2.8rem 4.3rem; gap: 0.3rem; padding: 0.1rem 0.2rem; height: auto; min-height: 26px; }
  .w-volume .wv-pn { white-space: normal; line-height: 1.15; }
  
}
.w-volume .wv-readout { margin-top: 1rem; }
.w-volume .wv-head .wv-pd { padding-right: 0.5rem; }

.w-volume .wv-more { width: 100%; margin-top: 0.35rem; }
@media (pointer: coarse) {
  .w-volume .wv-row { min-height: 44px; }
  .w-volume .wv-head, .w-volume .wv-same { min-height: 0; }
}
