.ms-study {
  --ms-ink: #302728;
  --ms-subtle: #665d59;
  --ms-accent: #754855;
  --ms-line: #cfc6ba;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--ms-ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
}
.ms-study *, .ms-study *::before, .ms-study *::after { box-sizing: border-box; }
.ms-study img { display: block; }
.ms-study figure, .ms-study p { margin: 0; }
.ms-study button, .ms-study input { font: inherit; color: inherit; }
.ms-study button:focus-visible, .ms-study input:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 3px; }
.ms-control { padding: 16px 0 0; border-top: 1px solid var(--ms-line); }
.ms-control-line, .ms-scale, .ms-gas-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-control-line label { font-size: 1rem; font-weight: 600; }
.ms-control-line output, .ms-scale, .ms-study .ms-flow { color: var(--ms-subtle); font-size: .875rem; }
.ms-control-line output { text-align: right; }
.ms-range-control input[type=range] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 100%;
  height: 38px;
  min-height: 36px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  accent-color: var(--ms-accent);
}
.ms-range-control input[type=range]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--ms-accent) var(--ms-position), var(--ms-line) var(--ms-position));
}
.ms-range-control input[type=range]::-moz-range-track { background: var(--ms-line); height: 2px; }
.ms-range-control input[type=range]::-moz-range-progress { background: var(--ms-accent); height: 2px; }
.ms-range-control input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #784854;
  border: 2px solid #fff9f2;
  box-shadow: 0 0 0 1px #784854;
  border-radius: 50%;
  margin-top: -8px;
}
.ms-range-control input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #784854;
  border: 2px solid #fff9f2;
  box-shadow: 0 0 0 1px #784854;
  border-radius: 50%;
}
.ms-scale { margin-top: -3px; }
.ms-fog-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0 0 12px; }
.ms-grapes { position: relative; overflow: hidden; aspect-ratio: 1.03; background: #c0b5a6; }
.ms-grapes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-sheen { position: absolute; inset: 0; background: linear-gradient(130deg, transparent 23%, #fff6e113 48%, #fff9ee20 53%, transparent 59%); pointer-events: none; }
.ms-fog-pair figcaption { font-size: .875rem; color: var(--ms-ink); font-weight: 600; padding: 9px 4px 0 0; }
.ms-barrier-plate {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  margin-bottom: 15px;
  background: #ede4da;
  min-height: 228px;
  overflow: hidden;
}
.ms-pack-photo { display: grid; align-content: center; background: #eae1d7; }
.ms-cheese {
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 86%, transparent);
}
.ms-compare { align-self: stretch; display: grid; grid-template-rows: 1fr 1fr; gap: 1px; background: #d7cbbb; }
.ms-section { display: flex; flex-direction: column; justify-content: center; padding: 14px clamp(11px, 1.5vw, 24px); background: #eee8de; }
.ms-section strong { display: block; font-size: .875rem; font-weight: 600; line-height: 1.2; color: var(--ms-ink); }
.ms-diagram { height: 76px; position: relative; margin-top: 4px; }
.ms-sheet {
  position: absolute;
  inset: calc(50% - 4px) 0 auto;
  height: 8px;
  background: repeating-linear-gradient(0deg, #99aba7 0 1px, #cdd8cc 1px 3px, #d8c7ad 3px 4px, #a5b5ac 4px 6px);
  border-block: 1px solid #929e90;
  transform: skewX(-30deg);
  opacity: .95;
}
.ms-high .ms-sheet {
  background: repeating-linear-gradient(0deg, #96aca4 0 1px, #c9d5c5 1px 2px, #bb9b7f 2px 3px);
}
.ms-paths { position: absolute; inset: 0; }
.ms-barrier[data-medium=water] .ms-paths { transform: scaleY(-1); }
.ms-molecule { position: absolute; top: 5px; left: var(--ms-column); width: 12px; height: 10px; transform: translateY(0); }
.ms-molecule b { position: absolute; top: 2px; left: 1px; width: 6px; height: 6px; background: #78505a; border-radius: 50%; }
.ms-molecule b:nth-child(2) { left: 5px; top: 4px; background: #a1747c; }
.ms-molecule b:nth-child(3) { display: none; }
.ms-barrier[data-medium=water] .ms-molecule b { background: #4e727f; }
.ms-barrier[data-medium=water] .ms-molecule b:nth-child(2), .ms-barrier[data-medium=water] .ms-molecule b:nth-child(3) { display: block; left: 5px; top: 1px; height: 4px; width: 4px; background: #7795a0; }
.ms-barrier[data-medium=water] .ms-molecule b:nth-child(3) { left: 0; top: 7px; }
.ms-running .ms-molecule { animation-duration: 2.35s; animation-delay: var(--ms-delay); animation-fill-mode: both; animation-timing-function: ease-in-out; }
.ms-running .ms-pass { animation-name: ms-transmit; }
.ms-running .ms-stay { animation-name: ms-retain; }
@keyframes ms-transmit { 0% { transform: translate(0, 0); } 40% { transform: translate(2px, 22px); } 72% { transform: translate(-2px, 42px); } 100% { transform: translate(1px, 55px); } }
@keyframes ms-retain { 0% { transform: translate(0, 0); } 54% { transform: translate(0, 23px); } 100% { transform: translate(-3px, 11px); } }
.ms-gas-control { padding-top: 12px; flex-wrap: wrap; gap: 2px 12px; }
.ms-gases { display: flex; border: 1px solid #b9aba3; padding: 2px; border-radius: 40px; }
.ms-study .ms-gases button, .ms-study .ms-replay {
  border: 0;
  padding: 7px 14px;
  min-height: 36px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
}
.ms-study .ms-gases button { border-radius: 40px; white-space: nowrap; }
.ms-study .ms-gases button[aria-pressed=true] { background: #443138; color: #fff9ef; }
.ms-study .ms-replay { display: inline-flex; align-items: center; gap: 5px; padding: 7px 0 7px 6px; color: var(--ms-ink); }
.ms-replay span:first-child { font-family: Arial, sans-serif; line-height: 1; font-size: 1.3rem; }
.ms-study .ms-flow { margin: 10px 0 0; }
.ms-probe-window { width: 100%; aspect-ratio: 900 / 298; position: relative; overflow: hidden; margin-bottom: 15px; background: #9c8979; }
.ms-probe-window .ms-atlas { position: absolute; width: 500%; height: 500%; min-width: 500%; max-width: none; max-height: none; object-fit: fill; pointer-events: none; }
@media(max-width:620px) {
  .ms-barrier-plate { min-height: 193px; }
  .ms-diagram { height: 70px; }
  .ms-section { padding: 10px 12px; }
  .ms-control { padding-top: 12px; }
  .ms-fog-pair figcaption { padding-top: 7px; }
  .ms-fog-pair { margin-bottom: 9px; }
  .ms-gas-control { padding-top: 9px; }
}
@media(max-width:420px) {
  .ms-gas-control { column-gap: 6px; }
  .ms-study .ms-gases button { padding-inline: 11px; }
  .ms-range-control { width: 100%; }
  .ms-control-line label, .ms-control-line output { font-size: .875rem; }
}
@media(prefers-reduced-motion:reduce) {
  .ms-running .ms-molecule { animation: none; }
  .ms-running .ms-pass { transform: translateY(55px); }
  .ms-running .ms-stay { transform: translateY(11px); }
}
