.ae-ci-equation {
  padding: .55rem .85rem;
  border-inline-start: 3px solid #398c85;
  font-family: "STIX Two Text", "Cambria Math", Georgia, serif;
  font-size: 1.13em;
  overflow-wrap: anywhere;
}

#ae-coherence {
  margin: 2rem 0;
  padding: clamp(.8rem, 3vw, 1.5rem);
  border: 1px solid #3b5864;
  border-radius: .8rem;
  background: #14252e;
  color: #f1f7f8;
  color-scheme: dark;
}

#ae-coherence :is(h2, p, th, td, label, li) { color: inherit; }
#ae-coherence h2 { margin-block-start: 0; }
#ae-coherence .ae-ci-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 1.1rem 0;
}
#ae-coherence label { display: block; font-weight: 650; }
#ae-coherence output { color: #94f2dc; font-variant-numeric: tabular-nums; }
#ae-coherence input[type="range"] {
  display: block;
  width: 100%;
  min-height: 1.6rem;
  margin: .25rem 0 0;
  accent-color: #83e3cf;
}
#ae-coherence .ae-ci-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
#ae-coherence button {
  background: #213b46;
  border: 1px solid #7aa7b0;
  border-radius: .45rem;
  color: #f1f7f8;
  font: inherit;
  font-size: .92em;
  cursor: pointer;
  min-height: 44px;
  padding: .4rem .65rem;
}
#ae-coherence button:hover { background: #30505b; }
#ae-coherence :focus-visible { outline: 2px solid #ffe09c; outline-offset: 3px; }
#ae-coherence table { width: 100%; border-collapse: collapse; margin: .65rem 0 1rem; }
#ae-coherence :is(th, td) {
  background: transparent;
  border: 1px solid #587780;
  text-align: left;
  padding: .5rem;
  font-variant-numeric: tabular-nums;
}
#ae-coherence .ae-ci-meter {
  display: block;
  width: 100%;
  max-width: 10rem;
  height: .5rem;
  margin-top: .2rem;
  border-radius: .25rem;
  background: #38535d;
  overflow: hidden;
}
#ae-coherence .ae-ci-meter-fill {
  display: block;
  width: 50%;
  height: 100%;
  background: #83e3b1;
}
#ae-coherence .ae-ci-meter-full { width: 100%; }
#ae-coherence td:last-child .ae-ci-meter-fill { background: #efc77c; }
#ae-coherence #ae-ci-samples:not(:empty) {
  margin-top: 1rem;
  padding: .5rem .8rem;
  border: 1px solid #587780;
  border-radius: .4rem;
}
#ae-coherence #ae-ci-samples p { margin-block: .25rem; }
#ae-coherence #ae-ci-samples ul { margin-block: .35rem; padding-inline-start: 1.3rem; }

@media (max-width: 420px) {
  #ae-coherence :is(th, td) { padding: .28rem; font-size: .9em; }
}
