:root{--bg:#10212a;--panel:#152933;--text:#ecf4f0;--muted:#a4bdba;--line:#314952;--accent:#b8d9b5;--highlight:#244239;--sans:Inter,Segoe UI,system-ui,sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:14px}button,input,select{font:inherit}button,select{border:1px solid var(--line);border-radius:6px;background:#1a313a;color:var(--text);min-height:36px;padding:7px 12px}button{cursor:pointer;font-weight:550;touch-action:manipulation}button:hover{background:#294650}button.active,button[aria-pressed=true]{border-color:#91bba5;background:var(--highlight)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f3d58f;outline-offset:3px}button:disabled{opacity:.45;cursor:wait}a{color:#b6d8d0;text-underline-offset:3px}header{height:64px;display:flex;justify-content:space-between;align-items:center;padding:9px 20px;border-bottom:1px solid var(--line);background:#0d1d25}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--text)}.brand strong{display:block;font-size:21px;font-weight:600;letter-spacing:-.5px}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.25px;margin-top:2px}.molecule-mark{display:block;width:45px;height:34px;position:relative}.molecule-mark i{position:absolute;left:0;top:7px;width:15px;height:15px;border-radius:100%;background:#ecefe9}.molecule-mark b{position:absolute;left:12px;top:0;width:31px;height:31px;border-radius:100%;background:radial-gradient(at 30% 25%,#b1d6ad,#409569 75%)}nav{display:flex;align-items:center;gap:12px}.version{font-size:10px;color:var(--muted)}.toolbar{height:46px;display:flex;align-items:center;gap:10px;padding:5px 20px;border-bottom:1px solid var(--line)}.toolbar label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.toolbar button,.toolbar select{font-size:12px;min-height:30px;padding:5px 10px}.model-tag{margin-left:auto;color:var(--muted);font-size:11px}main{height:calc(100% - 110px);display:grid;grid-template-columns:minmax(0,1fr) 330px}.stage{position:relative;min-width:0;min-height:0;overflow:hidden}#scene,#overlay{position:absolute;inset:0;width:100%;height:100%;display:block}#scene{touch-action:none}#overlay{pointer-events:none}.scene-top{position:absolute;top:22px;left:24px;right:24px;pointer-events:none;display:flex;gap:20px;justify-content:space-between;align-items:flex-start}.scene-top h1{font-size:20px;letter-spacing:-.4px;font-weight:550;margin:0 0 6px}.scene-top p{margin:0;color:var(--muted);font-size:12px}.view-tabs{pointer-events:auto;display:flex;gap:3px;border:1px solid var(--line);padding:3px;border-radius:8px;background:#10212ad9}.view-tabs button{font-size:11px;padding:5px 10px;min-height:30px;border-color:transparent;background:transparent}.view-tabs button.active{background:#2d4a4d;border-color:#536b6f}.status-area{position:absolute;right:23px;top:83px;display:flex;flex-direction:column;align-items:flex-end;gap:7px;font-size:11px;color:var(--muted);pointer-events:none}.status-area span{padding:7px 10px;background:#10212add;border:1px solid var(--line);border-radius:6px}.try-this{position:absolute;left:24px;top:104px;max-width:275px;font-size:12px;line-height:1.6;padding:12px 38px 12px 14px;background:#142b32e8;border-left:2px solid #92bda0;border-radius:4px}.try-this button{position:absolute;right:2px;top:2px;padding:0;width:26px;min-height:26px;background:transparent;border:0}.readouts{position:absolute;left:24px;bottom:86px;display:flex;align-items:flex-end;gap:30px}.readouts small{color:var(--muted);font-size:11px;display:block;margin-bottom:7px}.readouts strong{font-size:21px;font-weight:500}.readouts em{font-style:normal;color:var(--muted);font-size:12px}.readouts .speed-readout{background:#10212ae5;padding:11px 14px;text-align:left}.speed-readout strong{font-size:14px}.speed-readout small{color:#d4d5ac}.transport{position:absolute;bottom:18px;left:24px;right:24px;display:flex;align-items:center;gap:9px;padding:7px;border:1px solid var(--line);background:#10212ae9;border-radius:8px}.primary{background:#315344;border-color:#6e927e}.rateLabel{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.rateLabel select{font-size:11px}#achieved{font-size:10px;color:var(--muted);flex:1}aside{overflow-y:auto;overscroll-behavior:contain;border-left:1px solid var(--line);background:var(--panel);scrollbar-width:thin;scrollbar-color:#405962 var(--panel)}.panel{padding:20px;border-bottom:1px solid var(--line)}.panel h2{font-size:13px;margin:0 0 14px;font-weight:600}.panel p{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}.panel h2 span{float:right;font-size:9px;color:var(--muted);font-weight:400}.panel label:not(.check){display:block;font-size:11px;color:var(--muted);margin:14px 0 8px}.panel label>select{display:block;width:100%;margin-top:7px}.panel output:not(#tempValue){float:right;color:var(--text)}input[type=range]{display:block;width:100%;accent-color:#c1d8ab;margin:12px 0;min-height:23px;touch-action:pan-y}input[type=checkbox]{accent-color:#afd7b1}.check{display:flex;gap:8px;align-items:center;line-height:1.4;font-size:12px;margin:12px 0}.two,.samples{display:grid;grid-template-columns:1fr 1fr;gap:7px}.two button,.samples button{font-size:11px}.samples button{min-height:42px}.panel .small{font-size:10px;line-height:1.6}.temperature{display:flex;gap:7px;align-items:baseline}.temperature output{font-size:46px;font-weight:350;letter-spacing:-1.5px}.temperature span{color:var(--muted)}.ends{display:flex;justify-content:space-between;color:var(--muted);font-size:9px}.reference{border-top:1px solid var(--line);padding-top:12px}.reference b{color:#d4d5ac}.explanation{border-left:2px solid #bdd39f}.explanation p{color:var(--text);font-size:13px;line-height:1.75}.explanation a{font-size:11px}.checks{display:grid;grid-template-columns:1fr 1fr;gap:9px;font-size:11px}.checks label{margin:0!important;display:flex!important;align-items:center;gap:5px}.spaced{margin-top:24px!important}details{margin-top:17px;font-size:11px}summary{cursor:pointer;padding:7px 0;color:#d4d5ac}pre{font-size:10px;white-space:pre-wrap;line-height:1.65}.palettes{display:grid;grid-template-columns:1fr 1fr;gap:7px}.palettes button{display:flex;align-items:center;font-size:10px;padding:7px;gap:6px}.palettes i{display:inline-grid;place-items:center;font-size:20px;width:30px;height:30px;border-radius:4px;border:1px solid #708078}.colours label{display:flex!important;align-items:center;justify-content:space-between}input[type=color]{width:46px;padding:1px;height:28px;border:1px solid #62736b;background:transparent}.sheet-head,.sheet-tabs,.mobile-dock{display:none}.panel>button{margin-top:8px}dialog{background:#142831;color:var(--text);border:1px solid #57736e;border-radius:12px;width:min(850px,94vw);max-height:88dvh;padding:0;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#020a10b8;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#142831;z-index:2}.modal-head h2{font-size:20px;font-weight:550;margin:0}.modal-head button{font-size:12px}#modalBody{padding:24px;line-height:1.7;overflow:auto}#modalBody h3{font-size:15px;color:#c5dec6;margin-top:25px}#modalBody p{font-size:14px;color:#c6d7d2}.speed-big{font-size:64px;font-weight:350;line-height:1.2;letter-spacing:-2px}.speed-big small{font-size:24px;letter-spacing:0}.speed-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.speed-grid h3{margin:0 0 14px!important}.speed-detail{font-size:26px;margin:15px 0}#graphCanvas{width:100%;height:360px;display:block}.graph-legend{display:flex;gap:18px;font-size:12px}.graph-legend i{width:16px;height:3px;display:inline-block;vertical-align:middle;margin-right:6px}.graph-values{display:flex;gap:25px;font-size:15px;margin:14px 0}#toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#254539;border:1px solid #b0d0b2;color:#f2f8ed;border-radius:8px;padding:14px 22px;max-width:min(600px,92vw);font-size:14px;z-index:30}.presentation-controls[hidden],#presentationCaption[hidden],[hidden]{display:none!important}body.present .toolbar{display:none}body.present header{height:48px}body.present main{height:calc(100% - 48px);display:block}body.present aside{display:none}body.present .scene-top{top:20px}body.present .stage{height:100%}body.present .transport{display:none}body.present .readouts{bottom:92px}body.present .readouts small{font-size:16px}body.present .readouts strong{font-size:30px}body.present .readouts .speed-readout strong{font-size:21px}.presentation-controls{position:absolute;left:20px;right:20px;bottom:16px;display:flex;gap:10px;align-items:center;background:#10212aec;border:1px solid #56706d;padding:9px;border-radius:9px}.presentation-controls button{font-size:16px;min-height:43px;flex:1}#presentationCaption{position:absolute;left:5%;right:5%;bottom:190px;background:#10212af0;border-left:3px solid #bed8ba;padding:22px 28px;max-width:1140px;margin:auto}#presentationCaption strong{font-size:27px;font-weight:550}#presentationCaption p{font-size:clamp(26px,1.75vw,34px);line-height:1.5;margin:9px 0 0}body.present .try-this{display:none}body.present #structureBadge{font-size:18px}.light{--bg:#f2f5ec;--panel:#eef2e8;--text:#142e27;--muted:#446056;--line:#a4b8aa;--highlight:#d6e5d5;color-scheme:light}.light header,.light .toolbar{background:#edf2e7}.light button,.light select{background:#e4ece0;color:#142e27}.light a{color:#235f4b}.light .model-tag{color:#446056}.light .transport,.light .readouts .speed-readout,.light .view-tabs,.light .status-area span,.light .try-this,.light #presentationCaption,.light .presentation-controls{background:#f2f5ecee;color:#142e27}.light .view-tabs button.active{background:#bfd7c4}.light .reference b,.light summary{color:#704315}
@media(max-width:1200px){main{grid-template-columns:minmax(0,1fr) 300px}.scene-top{flex-direction:column;gap:13px}.status-area{top:116px}.try-this{top:135px}.readouts{gap:18px}.transport{gap:6px}.transport button{font-size:11px;padding:7px 9px}}
@media(max-width:900px){header{height:54px;padding:8px 13px}.brand strong{font-size:17px}.brand small{font-size:9px}.molecule-mark{transform:scale(.85);width:35px}nav{gap:6px}nav>a,.version{display:none}nav button{font-size:11px;padding:5px 8px;min-height:30px}.toolbar{height:41px;padding:5px 12px;gap:7px}.toolbar .model-tag{display:none}main{display:block;height:calc(100dvh - 95px - 66px - env(safe-area-inset-bottom))}.stage{height:100%}.scene-top{top:16px;left:15px;right:15px;gap:10px}.scene-top h1{font-size:17px}.scene-top p{font-size:10px}.view-tabs{align-self:flex-start}.view-tabs button{font-size:10px;padding:4px 8px;min-height:29px}.status-area{right:15px;top:112px;max-width:60%;font-size:9px}.try-this{display:none}.readouts{left:14px;bottom:55px;gap:18px}.readouts strong{font-size:17px}.readouts small{font-size:9px}.readouts .speed-readout{padding:8px 10px;max-width:155px}.readouts .speed-readout strong{font-size:11px}.readouts>div:last-child{display:none}.transport{left:12px;right:12px;bottom:9px;padding:5px;gap:5px}.transport #playBtn,.transport .rateLabel{display:none}.transport button{min-height:29px;padding:4px 8px;font-size:10px}.mobile-dock{display:flex;position:fixed;bottom:0;left:0;right:0;gap:7px;padding:9px 11px calc(9px + env(safe-area-inset-bottom));height:calc(66px + env(safe-area-inset-bottom));border-top:1px solid #506961;background:#10212af7;z-index:12}.mobile-dock button{flex:1;font-size:11px;padding:9px 5px;min-height:43px}.mobile-dock button:first-child{border-color:#93b8a1}aside{display:none;position:fixed;left:0;right:0;bottom:calc(66px + env(safe-area-inset-bottom));height:min(70dvh,650px);z-index:14;border:1px solid #637e72;border-radius:14px 14px 0 0;box-shadow:0 -14px 65px #0008}aside.open{display:block}aside .sheet-head{position:sticky;top:0;background:var(--panel);z-index:2;display:flex;justify-content:space-between;align-items:center;padding:12px 16px}.sheet-head button{font-size:12px;min-height:33px}.sheet-tabs{display:flex;position:sticky;top:57px;z-index:2;gap:4px;overflow:auto;padding:4px 12px 10px;background:var(--panel)}.sheet-tabs button{font-size:10px;white-space:nowrap;padding:5px 8px}.panel{padding:18px}.panel h2{font-size:14px}.panel label:not(.check){font-size:12px}input[type=range]{min-height:33px}.panel .small{font-size:11px}.panel .explanation p{font-size:15px}.panel.hidden-panel{display:none}.sheet-tabs .active{border-color:#94bda7}.panel .two button,.samples button{font-size:12px;min-height:41px}body.present main{height:calc(100dvh - 48px - 66px - env(safe-area-inset-bottom))}body.present .presentation-controls{display:none}body.present .readouts{bottom:18px}body.present .readouts strong{font-size:19px}body.present .readouts small{font-size:10px}body.present .readouts .speed-readout strong{font-size:12px}body.present .status-area #structureBadge{font-size:11px}#presentationCaption{bottom:115px;left:12px;right:12px;padding:14px}#presentationCaption strong{font-size:18px}#presentationCaption p{font-size:17px;line-height:1.5}.speed-big{font-size:39px}.speed-big small{font-size:15px}.speed-grid{gap:15px;grid-template-columns:1fr}.speed-detail{font-size:22px}.modal-head{padding:15px}.modal-head h2{font-size:16px}#modalBody{padding:17px}#graphCanvas{height:280px}.graph-values{font-size:12px;gap:12px}.graph-legend{font-size:10px;gap:12px}body.sheet-open #controls{display:block!important}.light .mobile-dock{background:#e8efe3}.light .sheet-head,.light .sheet-tabs{background:#eef2e8}}
body.present.sheet-open aside{display:block;position:fixed;right:0;top:48px;width:350px;height:calc(100dvh - 48px);z-index:18;border-left:1px solid #687f74}body.present.sheet-open aside .sheet-head{display:flex;justify-content:space-between;align-items:center;padding:12px;position:sticky;top:0;background:var(--panel);z-index:2}body.present.sheet-open aside .panel.hidden-panel{display:none}
@media(max-width:900px){body.present.sheet-open aside{top:auto;left:0;width:100%;height:min(70dvh,650px);bottom:calc(66px + env(safe-area-inset-bottom))}}
@media(max-width:940px) and (max-height:520px) and (orientation:landscape){header{height:42px}.brand small,.toolbar{display:none}main,body.present main{height:calc(100dvh - 42px);width:calc(100% - 91px)}.mobile-dock{left:auto;top:42px;bottom:0;width:91px;height:auto;flex-direction:column;padding:8px;border-top:0;border-left:1px solid #506961}.mobile-dock button{font-size:10px;min-height:40px}.scene-top{top:10px;gap:7px}.scene-top h1{font-size:14px}.view-tabs button{min-height:26px}.status-area{top:13px;max-width:30%;font-size:9px}.readouts{bottom:55px}.readouts small{font-size:8px}.speed-readout{max-width:175px!important}aside,body.present.sheet-open aside{left:auto;right:91px;top:42px;bottom:0;height:calc(100dvh - 42px);width:340px;border-radius:0}.sheet-tabs{top:57px}#presentationCaption{bottom:100px;right:15px;left:15px;padding:10px 14px}#presentationCaption p{font-size:16px}#presentationCaption strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.extra-level{display:none!important}body.present .extra-level,body.sheet-open .extra-level{display:block!important}body.present dialog{width:min(1180px,95vw)}body.present .modal-head h2{font-size:27px}body.present #graphCanvas{height:480px}body.present .graph-values{font-size:21px}body.present .graph-legend{font-size:17px}.view-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.view-choices button{min-height:54px;text-align:left}@media(max-width:900px){body.present dialog{width:94vw}body.present #graphCanvas{height:300px}body.present .modal-head h2{font-size:17px}body.present .graph-values{font-size:12px;flex-wrap:wrap}body.present .graph-legend{font-size:10px}.view-choices{grid-template-columns:1fr}}

body.present.sheet-open aside .sheet-tabs{display:flex;gap:4px;overflow:auto;position:sticky;top:57px;background:var(--panel);padding:4px 10px 10px;z-index:2}body.present.sheet-open aside .sheet-tabs button{font-size:10px;white-space:nowrap;padding:5px 8px}.light dialog,.light .modal-head{background:#f2f5ec;color:#142e27}.light #modalBody p{color:#294f42}.light #modalBody h3{color:#1d5b42}.light #graphCanvas{background:#142831;border-radius:6px}.light .graph-legend,.light .graph-values{color:#173f32}
.pair-space{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 8px}.pair-space button{font-size:10px;min-height:39px;padding:6px 8px}.pair-space button.active{border-color:#91bba5;background:var(--highlight)}#tumble3D{width:100%;margin-top:8px}
@media(max-width:900px){.pair-space button{font-size:11px;min-height:43px}}
