/* Interval capture (statistics/assets/tools/ci-capture.js). OWNED BY THIS TOOL ONLY.
   The same role colours as the sampling distribution machine: the true
   value is the population's blue, each center dot the sample's orange; an
   interval that captures is green, one that misses vermillion, thicker and
   crossed (shape as well as colour). */
.ci-svg,.ci-qfig{--ci-pop:#0072B2;--ci-pop-ink:#005A8C;--ci-samp:#E69F00;--ci-samp-ink:#8A5A00;--ci-samp-edge:#9C6A00;
  --ci-hit:#009E73;--ci-hit-ink:#00704F;--ci-miss:#D55E00;--ci-miss-ink:#A84A00;--ci-plain:#5E6B69;}
:root[data-theme="dark"] .ci-svg,:root[data-theme="dark"] .ci-qfig{--ci-pop:#6CB8EC;--ci-pop-ink:#8FCBF2;--ci-samp:#F3C04F;--ci-samp-ink:#F6CF75;--ci-samp-edge:#C9962A;
  --ci-hit:#4FD1AA;--ci-hit-ink:#7BE0C1;--ci-miss:#FF9A5C;--ci-miss-ink:#FFB385;--ci-plain:#AEB9B7;}
.ci-card{display:grid;gap:14px;}
.ci-fig{position:relative;min-height:360px;height:min(72vh,600px);}
.ls-root .ci-fig{flex:1 1 auto;height:auto;min-height:300px;}
.ci-svg{display:block;width:100%;height:100%;font-family:var(--font-ui);user-select:none;-webkit-user-select:none;}
.ci-fig .ci-svg{position:absolute;inset:0;cursor:pointer;}
.ci-svg:focus-visible{outline:3px solid var(--cink);outline-offset:2px;border-radius:8px;}
.ci-qfig{margin:0;}
.ci-qfig .ci-svg{height:auto;}
.ci-h{font-weight:900;font-size:13.5px;fill:var(--ink);}
.ci-h.ci-small{font-size:12.5px;}
.ci-hs{font-weight:700;fill:var(--muted);}
.ci-c-hit{fill:var(--ci-hit-ink);} .ci-c-miss{fill:var(--ci-miss-ink);} .ci-c-pop{fill:var(--ci-pop-ink);} .ci-c-samp{fill:var(--ci-samp-ink);}
.ci-lab{font-weight:800;font-size:12.5px;fill:var(--ink);paint-order:stroke;stroke:var(--white);stroke-width:3.5px;stroke-linejoin:round;}
.ci-tk{fill:var(--muted);font-weight:700;font-size:11.5px;font-variant-numeric:tabular-nums;}
.ci-empty{fill:var(--muted);font-weight:700;font-size:14px;}
.ci-true{stroke:var(--ci-pop);stroke-width:2.4;}
.ci-claim{stroke:var(--ci-miss);stroke-width:2;stroke-dasharray:5 4;}
.ci-iv{stroke-linecap:round;}
.ci-iv.is-hit{stroke:var(--ci-hit);}
.ci-iv.is-miss{stroke:var(--ci-miss);}
.ci-iv.is-plain{stroke:var(--ci-plain);}
.ci-iv.is-sel{stroke-width:5px !important;}
.ci-selband{fill:var(--ctint);}
.ci-x{stroke:var(--ci-miss-ink);stroke-width:2;stroke-linecap:round;fill:none;}
.ci-est{fill:var(--ci-samp);stroke:var(--ci-samp-edge);stroke-width:.8;}
.ci-brace{fill:none;stroke:var(--ci-samp-ink);stroke-width:1.6;}
.ci-axis{stroke:var(--ink);stroke-width:1.5;}
.ci-tick{stroke:var(--ink);stroke-width:1.2;}
.ci-grid{stroke:var(--line);stroke-width:1;}
.ci-levl{stroke:var(--ci-pop);stroke-width:1.4;stroke-dasharray:5 4;}
.ci-rate{fill:none;stroke:var(--ci-hit-ink);stroke-width:2.2;stroke-linejoin:round;}
/* dock */
.ci-ctl{display:flex;flex-direction:column;gap:10px;}
.ci-lev{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
.ci-lev button{min-height:44px;border-radius:12px;border:2px solid var(--line);background:var(--paper);color:var(--ink);font:800 15px var(--font-ui);cursor:pointer;}
.ci-lev button[aria-pressed="true"]{border-color:var(--cink);background:var(--ctint);color:var(--cink);}
.ci-n .bt-out{min-width:7ch;}
.ci-go{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px;}
.ci-pops{border:0;padding:0;margin:0 0 8px;display:grid;gap:6px;}
.ci-pops legend{font:800 14px var(--font-ui);margin-bottom:4px;}
.ci-pops .bt-radio,.ci-zopt{display:flex;gap:10px;align-items:center;min-height:44px;font-weight:700;}
