h1, .view-head h2, .reagents h2, .yield strong {font-family: Georgia, serif; font-weight: 500}
h1 {font-size: clamp(42px, 5vw, 66px); line-height: 1.03; letter-spacing: -.055em}
.eyebrow {text-transform: uppercase; letter-spacing: .11em}
.lead {max-width: 640px}
.bench {display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(275px, 1fr); gap: 16px; align-items: stretch}
.viewer {display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; color: #f2f6e9; background: #1b3735}
.view-head, .view-foot {display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px}
.view-head {border-bottom: 1px solid #49635c}
.view-head h2, .reagents h2 {margin: 0; font-size: 24px; letter-spacing: -.035em}
.switch {display: inline-flex; padding: 3px; border: 1px solid #607770; border-radius: 24px}
.switch button, .rotation button {border: 0; background: transparent; color: #e1ebe2; cursor: pointer}
.switch button {font-size: 13px; font-weight: bold; border-radius: 16px; padding: 4px 13px}
.switch [aria-pressed=true] {background: #e8f0d9; color: #173b34}
#scene {display: block; width: 100%; height: clamp(270px, 27vw, 360px); flex: 1 0 auto; touch-action: pan-y; cursor: grab}
#scene:active {cursor: grabbing}
.view-foot {font: 12px/1.4 Arial, sans-serif; background: #162f2d}
.rotation, #ion-key, #ion-key span {display: flex; align-items: center}
.rotation {gap: 6px}
.rotation button {border: 1px solid #617971; border-radius: 50%; width: 31px; height: 31px; font-size: 19px; line-height: 1}
#ion-key {gap: 6px 15px; flex-wrap: wrap; padding: 9px 18px; font-size: 12px; background: #162f2d; border-top: 1px solid #47615a}
#ion-key[hidden] {display: none}
#ion-key span {gap: 5px}
#ion-key i {width: 9px; height: 9px; border-radius: 50%; background: var(--ion)}
.calcium {--ion: #ffb47d}.carbonate {--ion: #8be5ce}.sodium {--ion: #c5abff}.chloride {--ion: #79bbff}.solid {--ion: #fffbea}
.reagents {background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 21px}
.reagents .hint {margin: 4px 0 8px}
.bottle {display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line)}
.formula-label {font: 500 21px Georgia, serif; color: #285e54}
.bottle h3 {font-size: 13px; margin: 1px 0}
.bottle small {color: var(--muted); font-size: 11px}
.dose {padding: 7px 16px; min-height: 40px; border: 0; border-radius: 6px; cursor: pointer; background: #246858; color: white; font-size: 14px; font-weight: bold}
.dose:disabled {background: #d8dfd8; color: #53635a; cursor: default}
.yield {display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 13px 0 4px; color: #235d50}
.yield span {font-size: 13px; font-weight: bold}.yield strong {font-size: 26px; white-space: nowrap}
.observation {font-size: 13px; color: var(--muted); line-height: 1.5; min-height: 3em}
#reset {font-size: 12px; min-height: 36px; padding: 5px 10px}
.lesson-bottom .panel {border-radius: 10px}
@media(max-width:760px) {
  .bench {grid-template-columns: minmax(0, 1fr)}
  #scene {height: 255px}
  .view-head, .view-foot {padding: 9px 12px}
  .view-head h2 {font-size: 21px}
  .reagents {padding: 16px}
  .lead {margin-bottom: 16px}
}

@media(max-width:760px) {
  .reagents {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px}
  .reagents > :not(.bottle) {grid-column: 1 / -1}
  .bottle {grid-template-columns: 1fr; justify-items: start; gap: 4px; padding: 6px 0 10px}
  .dose {width: 100%}
  #reset {justify-self: start}
}
