.cm{--cm-ink:#122e39;--cm-teal:#126e71;--cm-lime:#cbf681;--cm-line:#d5e3e0;--cm-muted:#516b73;color:var(--cm-ink);font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:1400px;margin:auto;padding:18px 22px 30px}
.cm *{box-sizing:border-box}.cm button,.cm input,.cm select,.cm textarea{font:inherit}.cm button{cursor:pointer;touch-action:manipulation}.cm button:focus-visible,.cm input:focus-visible,.cm select:focus-visible,.cm textarea:focus-visible,.cm summary:focus-visible{outline:3px solid #c17718;outline-offset:3px}.cm button:disabled{cursor:default;opacity:.48}.cm h2,.cm h3,.cm p{margin:0}.cm h2{font-size:clamp(1.4rem,2.3vw,2rem);line-height:1.2;letter-spacing:-.035em}.cm h3{font-size:1.03rem;line-height:1.35}.cm p+p{margin-top:10px}.cm small{font-size:.8rem}.cm sub{line-height:0}.cm svg{display:block;max-width:100%;height:auto}.cm .cm-muted{color:var(--cm-muted)}
.cm-stations{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.cm-station{display:flex;align-items:center;gap:8px;border:1px solid var(--cm-line);background:#fff;color:var(--cm-ink);border-radius:11px;padding:10px 12px;font-size:.86rem;font-weight:650;flex:1;white-space:nowrap}.cm-station span{font-size:.75rem;display:grid;place-items:center;border-radius:50%;background:#eef4f2;width:23px;height:23px;flex-shrink:0}.cm-station[aria-pressed=true]{background:var(--cm-ink);border-color:var(--cm-ink);color:white}.cm-station[aria-pressed=true] span{background:var(--cm-lime);color:var(--cm-ink)}
.cm-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.cm-heading p{margin-top:7px;max-width:760px;color:var(--cm-muted);font-size:.92rem}.cm-eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.13em;color:var(--cm-teal);font-weight:800;margin-bottom:6px}.cm-btn,.cm-choice{border:1px solid var(--cm-line);background:white;color:var(--cm-ink);padding:10px 14px;border-radius:9px;font-weight:650;font-size:.9rem;min-height:43px}.cm-btn:hover,.cm-choice:hover{border-color:var(--cm-teal);background:#f1f8f5}.cm-btn-primary{background:var(--cm-teal);color:white;border-color:var(--cm-teal)}.cm-btn-primary:hover{background:#0a5558;color:#fff}.cm-btn-lime{background:var(--cm-lime);border-color:var(--cm-lime)}.cm-choice[aria-pressed=true]{background:var(--cm-ink);border-color:var(--cm-ink);color:white}.cm-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cm-row-between{justify-content:space-between}.cm-push{margin-top:16px}.cm-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.85fr);gap:18px;align-items:start}.cm-panel{border:1px solid var(--cm-line);border-radius:18px;background:#fff;padding:19px;min-width:0}.cm-panel-tint{background:#eff7f4}.cm-stack{display:grid;gap:14px}.cm-callout{border-left:4px solid var(--cm-teal);padding:12px 15px;background:#eff7f4;border-radius:0 10px 10px 0;font-size:.9rem}.cm-callout strong{display:block;margin-bottom:4px}.cm-feedback{padding:12px 15px;border-radius:11px;background:#eef5f3;border:1px solid var(--cm-line);font-size:.92rem;min-height:50px}.cm-feedback[data-status=good]{background:#eff9de;border-color:#b6d98c}.cm-feedback[data-status=retry]{background:#fff4de;border-color:#e8c889}.cm-label{display:block;font-weight:700;font-size:.85rem;margin-bottom:6px}.cm select,.cm textarea{width:100%;border:1px solid #abc2bf;border-radius:9px;padding:10px;background:white;color:var(--cm-ink)}.cm textarea{resize:vertical;min-height:95px;font-size:.9rem}.cm input[type=range]{width:100%;accent-color:var(--cm-teal);min-height:28px}.cm-range-label{display:flex;justify-content:space-between;gap:10px;font-size:.8rem;color:var(--cm-muted)}.cm-badge{display:inline-block;background:#e7f0ee;padding:4px 9px;border-radius:99px;font-size:.75rem;font-weight:750}.cm-stat{font-size:2rem;font-weight:800;letter-spacing:-.04em;line-height:1.15}.cm-stat small{font-size:.85rem;font-weight:600;letter-spacing:0}.cm-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cm-fact{background:#f1f6f4;border-radius:11px;padding:12px;font-size:.82rem}.cm-fact strong{display:block;margin-bottom:4px}.cm-notes{font-size:.8rem;color:var(--cm-muted);margin-top:10px!important}.cm details{border:1px solid var(--cm-line);border-radius:10px;background:#fff;padding:11px 13px;font-size:.88rem}.cm details+details{margin-top:8px}.cm summary{cursor:pointer;font-weight:700}.cm details p{margin-top:9px}.cm details ul{padding-left:21px;margin-bottom:3px}
.cm-particle-wrap{position:relative;margin-top:14px;background:#f2f8f6;border-radius:14px;overflow:hidden}.cm-particles{width:100%;min-height:200px;max-height:300px}.cm-particle-legend{display:flex;justify-content:space-between;gap:10px;padding:9px 12px;font-size:.77rem;border-top:1px solid var(--cm-line);background:#e9f3ef}.cm-transitions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:.8rem}.cm-transition{padding:10px;border:1px solid var(--cm-line);border-radius:10px;background:white}.cm-transition strong{display:block;color:var(--cm-teal);font-size:.86rem}.cm-phase-chart{margin-top:10px;max-height:240px;width:100%}.cm-stage-big{display:flex;justify-content:space-between;align-items:center;gap:12px}.cm-formula{font-size:1.7rem;letter-spacing:-.025em;font-weight:800;white-space:nowrap}.cm-formula-small{font-size:1.1rem}.cm-atom-key{display:flex;gap:12px;flex-wrap:wrap;font-size:.78rem}.cm-atom-key span{display:flex;align-items:center;gap:5px}.cm-atom-dot{display:inline-block;width:14px;height:14px;border:1px solid #49636c;border-radius:50%}.cm-builder{min-height:170px;display:flex;align-content:center;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;border:1px dashed #a7c4bc;background:#f0f7f4;border-radius:14px;padding:16px;margin:14px 0}.cm-atom{width:49px;height:49px;border:2px solid #486169;border-radius:50%;font-size:1.08rem;font-weight:800;display:grid;place-items:center;box-shadow:0 3px 0 #122e3910}.cm-atom:hover{outline:2px dashed var(--cm-teal);outline-offset:3px}.cm-atom-H{background:#fff;color:#122e39}.cm-atom-O{background:#eb7b70;color:#122e39}.cm-atom-C{background:#415761;color:white}.cm-atom-N{background:#8cbaf0;color:#122e39}.cm-addatom{display:flex;align-items:center;gap:9px;flex:1}.cm-addatom b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;border:1px solid #789198;font-size:.8rem}.cm-formula-cards{display:flex;flex-wrap:wrap;gap:7px}.cm-formula-cards .cm-choice{min-width:65px}.cm-molecules{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.cm-molecules svg{width:110px;background:#f1f7f4;border-radius:11px}.cm-counts{width:100%;border-collapse:collapse;font-size:.85rem}.cm-counts th,.cm-counts td{padding:8px 9px;text-align:left;border-bottom:1px solid var(--cm-line)}.cm-counts th{font-weight:700;color:var(--cm-muted)}.cm-counts tr:last-child td{border-bottom:0}.cm-good-text{color:#386112;font-weight:750}.cm-retry-text{color:#915c0a;font-weight:750}.cm-reaction-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}.cm-reaction-controls label{background:#f1f6f4;border-radius:10px;padding:10px}.cm-reaction-controls .cm-formula{font-size:1.3rem}.cm-reaction-display{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin:8px 0}.cm-coefficient{color:var(--cm-teal)}.cm-reaction-animation{width:100%;min-height:170px;background:#f2f8f6;border-radius:12px;margin-top:13px}.cm-separation-visual{background:#eff7f4;border-radius:13px;margin-top:14px;min-height:230px;display:grid;place-items:center}.cm-separation-visual svg{width:100%;max-height:285px}.cm-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.cm-methods .cm-choice{font-size:.84rem;text-align:left}.cm-methods .cm-choice[aria-pressed=true]{background:var(--cm-teal);border-color:var(--cm-teal)}.cm-lab-switch{display:flex;gap:8px;margin-bottom:17px}.cm-lab-switch button{flex:1}.cm-lab-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:18px;align-items:start}.cm-water-visual{height:170px;width:100%}.cm-chart{width:100%;max-height:240px}.cm-data-table-wrap{max-height:260px;overflow:auto;border:1px solid var(--cm-line);border-radius:11px;overscroll-behavior:contain}.cm-data-table-wrap table{width:100%;border-collapse:collapse;font-size:.8rem}.cm-data-table-wrap th,.cm-data-table-wrap td{padding:7px 10px;text-align:left;border-bottom:1px solid var(--cm-line)}.cm-data-table-wrap th{position:sticky;top:0;background:#eaf2ef}.cm-synthetic{background:#fff1d7;color:#765311;border-radius:7px;padding:6px 10px;font-size:.76rem;font-weight:700}.cm-tubes{width:100%;max-height:295px}.cm-lab-observations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.cm-lab-observations div{border-radius:9px;background:#f0f6f3;padding:10px;font-size:.79rem}.cm-lab-observations strong{display:block;font-size:.8rem;margin-bottom:4px}.cm-print-note{display:none}
@media(min-width:1150px) and (max-height:850px){.cm{padding-top:12px}.cm-stations{margin-bottom:13px}.cm-heading{margin-bottom:12px}.cm-panel{padding:15px}.cm-particles{max-height:225px;min-height:180px}.cm-phase-chart{max-height:190px}.cm-water-visual{height:145px}.cm-chart{max-height:195px}.cm-tubes{max-height:230px}.cm-stack{gap:11px}.cm-push{margin-top:12px}}
@media(max-width:850px){.cm{padding:14px}.cm-station{flex:1 1 calc(33.33% - 14px);justify-content:center;font-size:.78rem;padding:9px}.cm-grid,.cm-lab-grid{grid-template-columns:1fr}.cm-heading{gap:9px}.cm-heading>.cm-btn{font-size:.78rem;padding:8px 10px}.cm-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.cm-particles{max-height:280px}}
@media(max-width:500px){.cm{padding:10px 8px 24px}.cm-stations{gap:5px}.cm-station{flex-basis:calc(50% - 5px);white-space:normal;justify-content:flex-start;font-size:.76rem}.cm-panel{padding:13px;border-radius:13px}.cm-heading{flex-wrap:wrap}.cm-facts{grid-template-columns:1fr}.cm-transitions{grid-template-columns:1fr 1fr}.cm-lab-observations{grid-template-columns:1fr}.cm-atom{width:42px;height:42px}.cm-reaction-controls{gap:6px}.cm-reaction-controls label{padding:8px}.cm-formula{font-size:1.3rem}.cm-reaction-display{gap:6px}.cm-molecules svg{width:90px}.cm-data-table-wrap{max-height:240px}.cm-addatom{min-width:calc(50% - 8px)}}
@media(prefers-reduced-motion:reduce){.cm *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.cm-stations,.cm-btn,.cm-choice,.cm input[type=range],.cm-lab-switch{display:none!important}.cm{padding:0;font-size:11pt}.cm-grid,.cm-lab-grid{display:block}.cm-panel{break-inside:avoid;margin-bottom:12px}.cm-data-table-wrap{max-height:none;overflow:visible}.cm-print-note{display:block}.cm textarea{min-height:100px}}
