.glue-dots {
  position: relative;
  overflow: hidden;
}

.glue-dots-backdrop {
  position: absolute;
  inset: 0;
}

.glue-dots-canvas {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}

.glue-dots-defs {
  pointer-events: none;
  position: absolute;
  height: 0;
  width: 0;
}

.glue-dots-content {
  position: relative;
  z-index: 10;
  height: 100%;
  width: 100%;
}

.pipeline {
  position: relative;
  isolation: isolate;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.speeding-text {
  position: relative;
  overflow: hidden;
}

/* An optical sample field, separate from the scenario copy and the controls. */
.chem-sample-mount {grid-area:specimens; position:relative; width:min(100%,24rem); aspect-ratio:360/205; align-self:center;}
#chem-scenarios .cf-route-lead:has(.chem-sample-mount[data-ready])::before,
#chem-scenarios .cf-route-lead:has(.chem-sample-mount[data-ready])::after {visibility:hidden;}
.chem-grain-field {position:absolute; inset:0; display:grid; place-items:center start; isolation:isolate;}
.chem-grain-disc {
  position:relative; height:96%; aspect-ratio:1; border-radius:50%; overflow:hidden;
  border:1px solid #7698ad; outline:1px solid #304e62; outline-offset:3px;
  background:radial-gradient(circle at 38% 34%,#284a62,#102c44 75%);
}
.chem-grain-disc::before,.chem-grain-disc::after {content:"";position:absolute;pointer-events:none;}
.chem-grain-disc::before {inset:0;background:radial-gradient(circle,#9fbece var(--plate-diameter),transparent calc(var(--plate-diameter) + .5px)) center/var(--plate-step) var(--plate-step);}
.chem-grain-disc:has(canvas)::before {opacity:0;}
.chem-grain-canvas {width:100%;height:100%;touch-action:pan-y;}
.chem-grain-disc::after {inset:9%;border-radius:inherit;border:1px solid #aac4d440;border-right-color:var(--chem-ink,#ff0041);}
.chem-grain-field::after {content:"";width:12%;height:2px;position:absolute;left:0;top:50%;background:linear-gradient(90deg,#ff0041,transparent);pointer-events:none;}
.chem-grain-field[data-scenario="-1"] {opacity:.65;}
/* Keep the site's existing live region responsible for announcements. */
#chem-data .ce-list-title:has(.chem-meter-mount[data-ready]) .ce-count {
 position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap;
}
.chem-meter-mount {display:flex;align-items:baseline;gap:.4rem;flex-wrap:wrap;max-width:100%;margin-top:.7rem;}
.chem-meter-label {font:inherit;font-size:.78rem;color:#c0d1da;line-height:1.35;}
.chem-meter-value {font-variant-numeric:tabular-nums;align-self:center;}
.chem-meter-total {color:#b4c6d0;font-size:.95rem;font-variant-numeric:tabular-nums;}
.chem-meter-rule {position:relative;flex-basis:100%;height:3px;background:#7591a240;overflow:hidden;}
.chem-meter-rule::before {content:"";position:absolute;inset:0;transform-origin:left;transform:scaleX(var(--chem-complete));background:#ff0041;transition:transform .32s cubic-bezier(.2,.7,.3,1);}
.chem-flow-mount {min-width:0;margin-block:1.5rem .6rem;overflow:hidden;}
.chem-production-flow {font-family:inherit;color:#f3ecdb;}
@media(max-width:760px) {
  .chem-sample-mount {width:100%;aspect-ratio:1/1;}
  .chem-grain-field {place-items:center end;}
  .chem-grain-disc {height:88%;}
  .chem-grain-field::after{left:10%;}
}
@media(prefers-reduced-motion:reduce) { .chem-meter-rule::before {transition:none;} }
.chem-flow-mount { container-type:inline-size; }
/* Upstream's optional running-status caption is English-only. Node titles and
   the flowing connections express this three-part, locally named diagram. */
.chem-production-flow > div > div:last-child > div:nth-child(2) {display:none;}
.chem-production-flow > div > div:first-child circle[fill] {fill:#aec8d6;}
@container (max-width:520px) {
 .chem-production-flow > div {
  flex-direction:column!important; justify-content:center!important; gap:5px!important; padding-inline:4px!important;
 }
 .chem-production-flow > div > div:last-child {flex:none!important;text-align:center!important;}
}
@media(min-width:761px) {
 .chem-grain-field::before {content:"";position:absolute;inset:17% -2% 3% 43%;background:url('/design-fable/pressmotion-laboratory.svg') center/contain no-repeat;opacity:.78;}
 .chem-grain-field::after {left:50%;top:60%;width:11%;height:1px;background:#ff0041;transform:rotate(19deg);}
 .chem-grain-disc {z-index:1;}
}
