.cv-stats-lab { margin: 2.5rem 0; padding: clamp(1rem,3vw,2rem); border: 2px solid var(--ink); border-radius: 17px; background: var(--white); color: var(--ink); min-width: 0; scroll-margin-top: 7rem; }
.article-body .cv-stats-lab h2 { margin: .35rem 0 1rem; font-size: clamp(1.5rem,4vw,2rem); line-height: 1.25; }
.article-body .cv-stats-lab h3 { margin: 0 0 .7rem; font-size: 1.2rem; line-height: 1.4; }
.article-body .cv-stats-lab p { font-size: 1rem; line-height: 1.65; }
.article-body .cv-stats-lab .cv-stats-kicker { margin: 0 0 .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cv-stats-lab [hidden] { display: none !important; }
.cv-stats-controls { margin: 1.5rem 0; }
.cv-stats-controls fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.cv-stats-controls legend { font-size: 1.05rem; font-weight: 800; padding: 0 0 .8rem; }
.cv-stats-fields { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 1rem; align-items: end; }
.cv-stats-controls label { display: block; min-width: 0; font-size: 1rem; font-weight: 700; }
.cv-stats-controls input, .cv-stats-controls select { display: block; width: 100%; min-width: 0; min-height: 48px; font: inherit; margin: .4rem 0; }
.cv-stats-controls input { accent-color: var(--ink); cursor: pointer; padding: .5rem 0; }
.cv-stats-controls select { padding: .6rem; color: var(--ink); background: #fff; border: 1px solid #678478; border-radius: 7px; }
.cv-stats-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin: .8rem 0 1rem; }
.cv-stats-preview > div { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: .5rem .7rem; border-left: 3px solid var(--ink); background: #e8f0d3; }
.cv-stats-preview span { font-size: .875rem; }
.cv-stats-preview strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cv-stats-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.cv-stats-presets button { min-height: 48px; font-size: .9375rem; white-space: normal; padding: .7rem .5rem; }
.cv-stats-lab :disabled { opacity: .55; cursor: not-allowed; }
.cv-stats-lab :focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.article-body .cv-stats-lab .cv-stats-help { font-size: .9375rem; color: #42594e; margin: .7rem 0; }
.cv-stats-workspace { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin: 1.5rem 0; align-items: start; }
.cv-stats-workspace > div { min-width: 0; }
.cv-stats-formula { border-left: 3px solid var(--ink); padding: .7rem .8rem; background: #f1f3e5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cv-stats-reason, .cv-stats-question details { border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); margin-top: 1.5rem; }
.cv-stats-lab summary { min-height: 48px; padding: .85rem 1rem; font-weight: 750; font-size: 1rem; cursor: pointer; }
.cv-stats-lab details p { margin: .4rem 1rem 1rem; }
.cv-stats-question { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; margin-top: 1.5rem; }
.cv-stats-question details { margin-top: .75rem; }
.cv-stats-error { border: 1px solid #9b281d; color: #792116; background: #fff0eb; padding: .8rem; }
.cv-stats-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:800px) { .cv-stats-workspace { grid-template-columns: minmax(0,1fr); } }
@media(max-width:620px) { .cv-stats-fields { grid-template-columns: minmax(0,1fr); } .cv-stats-presets { grid-template-columns: repeat(2,minmax(0,1fr)); } .cv-stats-preview { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:380px) { .cv-stats-preview strong { font-size: 1.05rem; } }
.cv-stats-comparison { border-left: 3px solid var(--ink); background: #f1f3e5; padding: .8rem 1rem; }
.cv-stats-rows { list-style: none; margin: 1rem 0 .4rem !important; padding: 0 !important; }
.cv-stats-row { display: grid; grid-template-columns: 64px minmax(0,1fr) 58px; align-items: center; gap: .4rem; min-height: 38px; margin: .35rem 0 !important; font-size: .9375rem; }
.cv-stats-label { font-weight: 700; font-size: .875rem; }
.cv-stats-row > strong { text-align: right; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.cv-stats-track { display: block; height: 18px; background: #edf0e3; border-right: 1px solid #b4c1b7; }
.cv-stats-track i { display: block; height: 100%; background: #286b60; }
.cv-stats-row.is-editable .cv-stats-label { color: #8a461a; }
.cv-stats-row.is-editable .cv-stats-track i { background: repeating-linear-gradient(135deg,#a45b26 0 4px,#c17c40 4px 8px); }
.cv-stats-centers { border-top: 1px solid var(--line-strong); padding-top: .5rem; }
.cv-stats-row.is-mean .cv-stats-track i { background: #126578; }
.cv-stats-row.is-median .cv-stats-track i { background: repeating-linear-gradient(90deg,#0b2d26 0 6px,#51735c 6px 9px); }
.cv-stats-axis { display: flex; justify-content: space-between; margin: .25rem calc(58px + .4rem) .75rem calc(64px + .4rem); font-size: .8rem; font-variant-numeric: tabular-nums; }
.article-body .cv-stats-lab .cv-stats-sort-title { margin-bottom: .5rem; font-weight: 750; }
.cv-stats-sorted { display: grid; gap: .3rem; list-style: none; padding: 0 !important; margin: .5rem 0 1rem !important; }
.cv-stats-sorted li { display: flex; flex-direction: column; align-items: center; min-width: 0; margin: 0 !important; padding: .35rem .1rem; border: 1px solid #98aa9f; background: #f8f8ef; border-radius: 6px; }
.cv-stats-sorted span { font-size: .75rem; }
.cv-stats-sorted strong { font-size: 1rem; }
.cv-stats-sorted .is-central { border: 2px solid var(--ink); background: #dbefa1; }
.cv-stats-takeaway { border-left: 3px solid #a85924; padding: .8rem 1rem; background: #fff2e4; }
