/* The same field is used on public experiment pages and in publisher embeds. */
[data-experiment-viewer]:empty { display: none; }
.exv {
  --exv-ink: #edf3e7;
  --exv-muted: #bdcfbf;
  --exv-line: #496656;
  --exv-pale: #c8eaaa;
  --exv-amber: #ffda83;
  color-scheme: dark;
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  margin-block: 1.25rem;
  padding: clamp(1rem, 3.5vw, 1.85rem);
  color: var(--exv-ink);
  background: #152e25;
  border: 1px solid #2f4e3d;
  border-radius: 1.1rem;
  box-shadow: 0 4px 13px #20332112;
  font-family: inherit;
  line-height: 1.45;
}
.exv *, .exv *::before, .exv *::after { box-sizing: border-box; }
.exv :is(p, figure, fieldset, legend) { margin: 0; }
.exv [hidden] { display: none !important; }
.exv button, .exv input { font: inherit; }
.exv :is(button, a, summary, input):focus-visible {
  outline: 3px solid var(--exv-amber);
  outline-offset: 3px;
}
.exv-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .95rem; }
.exv .exv-counter { font-family: var(--font-mono, ui-monospace, monospace); color: var(--exv-ink); font-size: .81rem; font-weight: 600; line-height: 1.4; }
.exv .exv-progress { display: block; width: clamp(2.75rem, 20%, 7rem); height: .32rem; appearance: none; border: none; border-radius: 9px; overflow: hidden; background: #3d5848; color: var(--exv-pale); }
.exv-progress::-webkit-progress-bar { background: #3d5848; }
.exv-progress::-webkit-progress-value { background: var(--exv-pale); }
.exv-progress::-moz-progress-bar { background: var(--exv-pale); }
.exv-field { display: grid; gap: clamp(.5rem, 2.6vw, 1.2rem); }
.exv-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exv .exv-figure { display: flex; flex-direction: column; min-width: 0; align-items: center; padding: clamp(.55rem, 2.5vw, 1.15rem); background: #102a22; border: 1px solid #3b5949; border-radius: .65rem; }
.exv .exv-caption, .exv .exv-metrics { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .12rem .5rem; }
.exv .exv-caption { padding: 0 0 .6rem; color: var(--exv-ink); }
.exv-caption strong { color: inherit; font-size: 1rem; line-height: 1.3; font-weight: 650; }
.exv .exv-caption code { font-family: var(--font-mono, ui-monospace, monospace); color: var(--exv-muted); font-size: .73rem; line-height: 1.3; background: none; padding: 0; border: 0; }
.exv .exv-board { display: block; width: min(100%, 17rem); height: auto; margin: auto; border: 1px solid #456151; border-radius: .25rem; }
.exv .exv-metrics { padding-top: .65rem; color: var(--exv-muted); font-variant-numeric: tabular-nums; font-size: .78rem; line-height: 1.35; }
.exv .exv-legend { display: flex; align-items: center; gap: .4rem; margin-top: .55rem; font-size: .78rem; line-height: 1.35; color: var(--exv-muted); }
.exv-glyph { color: var(--exv-amber); font-size: 1.25em; }
.exv .exv-prediction { border: 0; padding: 0; min-width: 0; margin: 1rem 0 0; }
.exv .exv-prediction legend { color: var(--exv-ink); padding: 0; font-weight: 600; font-size: 1rem; }
.exv-choices { display: flex; flex-wrap: wrap; gap: .3rem .55rem; padding-top: .3rem; }
.exv-choices label { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .55rem .35rem 0; min-height: 2.5rem; color: var(--exv-muted); cursor: pointer; font-size: .9rem; }
.exv-choices input { margin: 0; width: 1rem; height: 1rem; accent-color: var(--exv-pale); cursor: inherit; }
.exv-choices input:checked + span { color: var(--exv-ink); font-weight: 650; }
.exv-choices input:disabled { opacity: .75; }
.exv-prediction:disabled label { cursor: default; }
.exv-controls, .exv-handoffs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.exv-controls { margin-bottom: .85rem; }
.exv-controls button { min-height: 2.8rem; padding: .55rem 1rem; border-radius: .48rem; font-size: .95rem; font-weight: 650; line-height: 1.35; cursor: pointer; }
.exv .exv-step { color: #13291b; border: 1px solid var(--exv-pale); background: var(--exv-pale); }
.exv .exv-step:hover:not([aria-disabled=true]) { background: #dcf4c9; }
.exv .exv-secondary { color: var(--exv-ink); border: 1px solid #668370; background: transparent; }
.exv .exv-secondary:hover:not(:disabled, [aria-disabled=true]) { background: #254331; }
.exv-controls button:disabled, .exv-controls button[aria-disabled=true] { cursor: default; opacity: .55; }
.exv .exv-result { margin: 1rem 0 0; border-left: 3px solid var(--exv-amber); padding: .65rem .85rem; background: #203b2b; border-radius: 0 .3rem .3rem 0; color: var(--exv-ink); }
.exv .exv-result p { color: var(--exv-ink); font-size: 1rem; line-height: 1.5; }
.exv .exv-result strong { display: block; color: #f9dead; margin-bottom: .2rem; }
.exv .exv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.exv-extra { margin-top: 1.15rem; border-top: 1px solid var(--exv-line); padding-top: .35rem; }
.exv-handoffs { gap: .2rem 1.1rem; }
.exv .exv-sim-link, .exv .exv-text-action { display: inline-flex; align-items: center; padding: .45rem 0; min-height: 2.75rem; font: inherit; font-size: .88rem; color: var(--exv-pale); line-height: 1.4; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; border: none; background: transparent; cursor: pointer; }
.exv .exv-sim-link:hover, .exv .exv-text-action:hover { color: #ebf9db; }
.exv-share-note { color: var(--exv-ink); font-size: .85rem; }
.exv-share-note:not(:empty) { margin-block: .25rem .65rem; }
.exv .exv-url { border-radius: .35rem; width: 100%; padding: .55rem; background: #102a22; color: var(--exv-ink); border: 1px solid #72927d; }
.exv .exv-data { margin: .1rem 0 0; color: var(--exv-muted); background: none; border: 0; padding: 0; }
.exv-data > summary { cursor: pointer; width: fit-content; padding: .6rem 0; min-height: 2.75rem; font-size: .86rem; }
.exv-data-body { font-size: .85rem; }
.exv .exv-data-body p { color: var(--exv-muted); }
.exv-record { display: grid; gap: .25rem; margin-top: .6rem; }
.exv-record code { color: var(--exv-ink); overflow-wrap: anywhere; white-space: normal; }
.exv-record small { color: var(--exv-muted); }
.exv-unavailable { padding: 1rem; border: 1px solid currentColor; border-radius: .5rem; }
.exv[data-embedded=true] { margin: 0; padding: clamp(.6rem, 2.5vw, 1rem); }
.exv[data-embedded=true] .exv-board { width: min(100%, 10rem); }
@media (max-width: 430px) {
  .exv { padding: .75rem; }
  .exv .exv-caption { align-content: start; }
  .exv-compare .exv-caption, .exv-compare .exv-metrics { flex-direction: column; }
  .exv-choices label { min-height: 2.75rem; }
  .exv-controls button { padding-inline: .7rem; }
}
@media (forced-colors: active) {
  .exv .exv-board { forced-color-adjust: none; }
  .exv .exv-step, .exv .exv-secondary { border: 1px solid ButtonText; }
}

.exv[data-embedded=true] .exv-result:not(.exv-sr) { margin: 0 0 .75rem; }

.exv .exv-predict-panel { margin: -.3rem 0 .45rem; border: 0; padding: 0; background: transparent; }
.exv-predict-panel summary { min-height: 2.25rem; width: fit-content; padding-block: .4rem; color: var(--exv-pale); cursor: pointer; font-size: .88rem; }
.exv .exv-predict-panel .exv-prediction { margin: 0 0 .5rem; }
