/* SEVN Vital: score views (switcher, readout, tooltip, legends). Shared by the explorer and the public sample view.
   Tuned for the dark "night" surfaces both pages draw these views on. */
.sv-switch { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(8, 13, 27, .72); border: 1px solid rgba(186, 208, 255, .16); }
.sv-switch button { appearance: none; border: 0; background: transparent; color: #B3BCD2; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px 0 11px; border-radius: 999px; font: 600 13px/1 'Manrope', system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-2, .26s), color var(--dur-2, .26s); }
.sv-switch button svg { width: 15px; height: 15px; flex: none; opacity: .85; }
.sv-switch button:hover { color: #E9EEF9; }
.sv-switch button[aria-checked="true"] { background: #E9EEF9; color: #070B16; }
.sv-switch button:focus-visible { outline: 2px solid #3EE6B0; outline-offset: 2px; }

.sv-host { position: relative; }
.sv-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sv-rings-wrap { max-width: 470px; margin: 0 auto; }
.sv-mark { outline: none; }
.sv-mark:focus-visible > :first-child, .sv-mark:focus-visible { outline: none; }
.sv-mark:focus-visible { filter: drop-shadow(0 0 0.5px #E9EEF9) drop-shadow(0 0 4px rgba(62, 230, 176, .55)); }
.sv-ribbon:focus-visible { outline: 2px solid #3EE6B0; outline-offset: 4px; border-radius: 6px; }
.sv-tip { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; min-width: 160px; max-width: 260px; padding: 9px 11px; border-radius: 10px; background: #E9EEF9; color: #0B1122; font: 500 12.5px/1.45 'Manrope', system-ui, sans-serif; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); opacity: 0; transition: opacity var(--dur-1, .16s) var(--ease-out, ease-out); }
.sv-tip.is-on { opacity: 1; }
.sv-tip b { font-weight: 750; }
.sv-tip .mono { font-family: 'IBM Plex Mono', monospace; font-size: 11px; opacity: .7; }
.sv-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

.sv-arc { animation: sv-draw var(--dur-4, 480ms) var(--ease-out, cubic-bezier(.22, .8, .24, 1)) both; }
@keyframes sv-draw { from { stroke-dasharray: 0 9999; } }
.sv-bar { transform-box: fill-box; transform-origin: left center; animation: sv-grow var(--dur-4, 480ms) var(--ease-out, cubic-bezier(.22, .8, .24, 1)) both; }
@keyframes sv-grow { from { transform: scaleX(0); } }
.sv-line { stroke-dasharray: 4000; animation: sv-line calc(var(--dur-4, 480ms) + 120ms) var(--ease-out, cubic-bezier(.22, .8, .24, 1)) both; }
@keyframes sv-line { from { stroke-dashoffset: 4000; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sv-arc, .sv-bar, .sv-line { animation: none; } .sv-tip { transition: none; } }

.sv-readout { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-end; }
.sv-readout > div { display: grid; gap: 4px; }
.sv-k { font: 500 10.5px/1.3 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #8C96B0; }
.sv-sep { letter-spacing: .04em; text-transform: none; }
.sv-v { font: 330 40px/1 'Fraunces', Georgia, serif; letter-spacing: -0.03em; color: #E9EEF9; font-variant-numeric: tabular-nums; }
.sv-v small { font: 500 12.5px 'Manrope', sans-serif; color: #8C96B0; letter-spacing: 0; margin-left: 5px; }
.sv-v--sm { font-size: 28px; }
.sv-ins { font-size: 22px; color: #FFB48A; font-weight: 400; }

.sv-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font: 500 11.5px/1.4 'Manrope', sans-serif; color: #B3BCD2; }
.sv-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sv-legend i { display: inline-block; flex: none; }
.lg-arc { width: 18px; height: 9px; border: 3px solid #14A374; border-bottom: 0; border-radius: 10px 10px 0 0; }
.lg-thick { width: 18px; height: 8px; background: linear-gradient(#7F6FEA 0 0) left/5px 100% no-repeat, linear-gradient(#7F6FEA 0 0) right/10px 100% no-repeat; }
.lg-dash, .lg-hatch { width: 16px; height: 10px; border: 1px dashed #8C96B0; border-radius: 3px; }
.lg-hatch { border-style: solid; border-color: rgba(186, 208, 255, .2); background: repeating-linear-gradient(45deg, rgba(186, 208, 255, .22) 0 2px, transparent 2px 5px); }
.lg-bar { width: 18px; height: 8px; border-radius: 2px; background: #3092D0; }
.lg-line { width: 18px; height: 2px; background: #3EE6B0; border-radius: 2px; }
.lg-band { width: 18px; height: 10px; background: rgba(62, 230, 176, .2); }
.lg-pin { width: 8px; height: 8px; background: #E9EEF9; transform: rotate(45deg); }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; background: #3EE6B0; }
.sv-formula { margin: 12px 0 0; font: 500 12px/1.6 'IBM Plex Mono', monospace; color: #B3BCD2; overflow-wrap: anywhere; }
.sv-formula b { color: #E9EEF9; }
.sv-formula span { color: #8C96B0; }
.sv-cap { caption-side: top; text-align: left; font: 500 11px/1.4 'IBM Plex Mono', monospace; color: #8C96B0; padding: 0 0 8px; }
.sv-total th, .sv-total td { font-weight: 700; }

/* public sample view (paper page, dark card) */
.sv-bar { margin-bottom: 12px; }
.sv-bar .sv-switch { background: #10182E; }
.sv-card { min-height: 300px; }
.sv-card .sv-readout { margin: 2px 4px 16px; }
.sv-card .sv-formula { margin: 14px 4px 2px; }
.sv-stage-pub { position: relative; }
.sv-blurb { margin: 10px 2px 0; font-size: 14px; line-height: 1.55; color: #464D62; }
.sv-legend--paper { display: flex; margin-top: 8px; color: #464D62; }
.sv-legend--paper .lg-dash, .sv-legend--paper .lg-hatch { border-color: #6B7186; }
@media (max-width: 560px) { .sv-bar .sv-switch button span { display: none; } .sv-bar .sv-switch button { padding: 0 12px; } .sv-card { padding: 14px 10px; } }
.sv-legend--paper .lg-pin { background: #131828; } .sv-legend--paper .lg-band { background: rgba(14,143,103,.25); }

/* motion: marks lift toward the pointer's attention; selected and hovered marks brighten */
.sv-mark { transition: opacity var(--dur-1, .16s) var(--ease-out, ease-out), filter var(--dur-1, .16s) var(--ease-out, ease-out); }
.sv-svg:has(.sv-mark[data-dim]:hover) .sv-mark[data-dim]:not(:hover),
.sv-svg:has(.sv-mark[data-dim]:focus-visible) .sv-mark[data-dim]:not(:focus-visible) { opacity: .62; }
@media (prefers-reduced-motion: reduce) { .sv-mark { transition: opacity var(--dur-1, .16s); } }
