:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#183b43;background:#f3f7f6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}a{color:#176861}button{cursor:pointer;border:1px solid #bbcecb;border-radius:8px;padding:10px 13px;background:#fff;color:#174a48;font-weight:650}button:hover:not(:disabled){background:#e1f1e9;border-color:#4c8c78}button:disabled{opacity:.45;cursor:default}:focus-visible{outline:3px solid #bd7820;outline-offset:4px}.site-header{display:flex;justify-content:space-between;align-items:center;padding:14px max(24px,calc((100vw - 1440px)/2));background:white;border-bottom:1px solid #d9e4e1;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:20px;font-weight:750}.brand img{object-fit:contain}.site-header>a:last-child{font-size:14px;font-weight:600}main{max-width:1488px;margin:auto;padding:32px 24px}.intro{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:1.8px;color:#52776d;font-weight:800;margin:0 0 12px}h1{font-size:clamp(28px,3vw,42px);letter-spacing:-1.3px;margin:0 0 10px;line-height:1.12}.lede{margin:0;color:#54716f;font-size:18px}.worksheet-badge{border-left:3px solid #7ea890;padding:5px 0 5px 15px;line-height:1.6;font-size:13px;color:#54716f;white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}.puzzle-panel,.result-card{background:#fff;border:1px solid #d3e1dd;border-radius:16px;overflow:hidden;box-shadow:0 6px 18px #163e3310}.challenge-bar{background:#e9f1eb;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px}label{display:block;font-size:12px;font-weight:750;margin-bottom:7px;color:#4d6d60}select{width:min(100%,340px);border:1px solid #b6cbc0;background:#fff;border-radius:7px;padding:9px 30px 9px 10px;color:#193f35;font-weight:600}.target{display:flex;align-items:end;flex-direction:column;gap:4px}.target strong{font-size:29px}.target span{font-size:11px;white-space:nowrap;color:#537366}.instructions{padding:20px 24px 12px}h2{font-size:19px;margin:0 0 10px}p{line-height:1.6}.instructions p{margin:0;font-size:14px;color:#526e6f;max-width:720px}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:4px 24px 16px}.toolbar button{font-size:13px}.toolbar span{font-size:12px;color:#5c7773;margin:0 auto 0 3px}.quiet{background:transparent}.board-scroll{overflow:auto;background:#f7faf9;border-block:1px solid #e0e9e5}#board{width:100%;min-width:620px;display:block;touch-action:none;user-select:none}.piece{cursor:grab}.piece.dragging{cursor:grabbing}.piece:focus-visible{outline:none}.piece:focus-visible .tile-outline{stroke:#b77c1a;stroke-width:3}.piece.selected .tile-outline{stroke:#15786a;stroke-width:3}.tile-outline{stroke:#546b67;stroke-width:1.5;stroke-linejoin:round}.piece text{pointer-events:none}.board-footer{display:flex;justify-content:space-between;padding:13px 24px;font-size:12px;color:#57746c;gap:15px}#bond-count{font-weight:750}.status{margin:0 24px 16px;padding:12px 14px;background:#edf4f0;border-radius:8px;font-size:14px;min-height:46px}.status.success{background:#dff2e7;color:#1e6343}.keyboard{padding:0 24px 20px;font-size:12px;color:#526e6f}.keyboard summary{cursor:pointer;font-weight:650}.learning-panel{display:grid;gap:22px}.result-card{padding:24px}.locked{border:1px dashed #b9cec4;background:#f8fbf9;border-radius:10px;padding:25px 16px;text-align:center;color:#667f77;min-height:250px;display:flex;flex-direction:column;justify-content:center}.locked>span{font-size:45px;letter-spacing:12px;color:#8aa99b}.locked h3{font-size:16px;margin:12px 0 4px}.locked p{font-size:13px;margin:0}.guide,.note{padding:0 8px}.guide p,.guide li,.note p{font-size:14px;color:#526e6f}.guide ul{padding-left:20px;line-height:1.8}.pair-demo{background:#e8efec;padding:18px 8px;border-radius:8px;text-align:center;font-size:20px;font-weight:650;white-space:nowrap}.pair-demo span{color:#247e6d;letter-spacing:2px}.pair-demo b{margin:0 10px;color:#90a89c}.note .small{font-size:12px;color:#6a817b}.result-svg{width:100%;height:auto;display:block;min-height:180px}.result-caption{text-align:center;font-size:13px}.success-label{color:#217253;font-weight:700;font-size:13px}.result-card button{width:100%;margin-top:10px}footer{text-align:center;padding:18px;font-size:12px;color:#6a817b}.electron{fill:#203c44}.electron-shared{fill:#087863}@media(min-width:1500px){#board{max-height:650px}}@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 270px}.result-card{padding:18px}main{padding:25px 16px}.toolbar{padding-inline:16px}}@media(max-width:820px){.workspace{grid-template-columns:1fr}.learning-panel{grid-template-columns:1fr 1fr}.result-card{grid-row:span 2}.worksheet-badge{display:none}}@media(max-width:520px){main{padding:22px 10px}.site-header{padding:10px 16px}.brand{font-size:16px;gap:5px}.brand img{width:58px;height:40px}.site-header>a:last-child{font-size:12px}.learning-panel{grid-template-columns:1fr}.challenge-bar{padding:16px}.challenge-bar select{max-width:230px;font-size:13px}.target strong{font-size:23px}.instructions{padding:18px 16px 12px}.board-footer{padding:12px 16px;font-size:11px}.toolbar span{order:3;width:100%;margin-top:5px}.status{margin-inline:16px}.intro{margin-bottom:20px}.lede{font-size:16px}}@media print{body{background:white}header,.intro,.puzzle-panel,.guide,.note,footer,#print{display:none!important}main{padding:0}.workspace,.learning-panel{display:block}.result-card{border:0;box-shadow:none;max-width:600px;margin:20px auto}.result-svg{max-height:450px}.result-card .eyebrow:before{content:'VariableVista · '}}
/* Keep controls available while students work lower on the board. */
.puzzle-panel{overflow:clip}.toolbar{position:sticky;top:0;z-index:3;background:#fff;padding-top:10px;border-bottom:1px solid #e0e9e5}.learning-panel{position:sticky;top:18px}
@media(max-width:820px){.learning-panel{position:static}}
@media print{.learning-panel{position:static}}
.learning-panel{max-height:calc(100vh - 36px);overflow:auto;scrollbar-width:thin}.view-result{display:block;margin:0 24px 18px;font-size:14px;font-weight:700}.view-result[hidden]{display:none}#lewis-result{scroll-margin-top:15px}
@media(max-width:820px){.learning-panel{max-height:none;overflow:visible}}
@media print{.learning-panel{max-height:none;overflow:visible}.view-result{display:none}}
.bank-piece{cursor:grab}.bank-piece:focus-visible{outline:none}.bank-piece:focus-visible .tile-outline{stroke:#bd7820;stroke-width:3}.bank-piece:hover .tile-outline{stroke:#16856e;stroke-width:3}.pattern-label{display:flex;align-items:center;gap:7px;margin:0;font-size:12px}.pattern-label select{font-size:12px;padding:8px;max-width:210px}.structure-result+.structure-result{border-top:1px solid #d3e1dd;padding-top:12px}.draft-label{font-size:12px;color:#806026}.result-card .small{font-size:12px;line-height:1.5;color:#617972}.result-svg{min-height:140px;max-height:300px}
.isomer-label{padding:12px;background:#e7f3ed;border-radius:8px;margin:10px 0}.isomer-label h3{font-size:17px;margin:0 0 8px;line-height:1.35}.isomer-label p{font-size:13px;margin:0;line-height:1.5}
/* Empty board areas can scroll on touchscreens; tiles still drag directly. */
#board{touch-action:pan-x pan-y}.piece,.bank-piece{touch-action:none}
@media(max-width:520px){.challenge-bar{flex-wrap:wrap}.challenge-bar>div:first-child{min-width:0;flex:1 1 100%}.challenge-bar select{max-width:100%;width:100%}.target{align-items:start}.target strong{font-size:18px}.toolbar{position:static}}
@media print{.result-card{overflow:visible}.structure-result{break-inside:avoid}.result-svg{max-height:400px}}
.puzzle-panel,.learning-panel,.result-card{min-width:0}.board-scroll{max-width:100%}
@media(max-width:820px){.workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.learning-panel{grid-template-columns:minmax(0,1fr)}}
.site-header{flex-wrap:wrap}.challenge-bar>div{min-width:0}.target strong{overflow-wrap:anywhere}
@media print{.worksheet-download{display:none}}
