:root{color-scheme:light;--page:#f4f6f1;--paper:#fffefa;--ink:#253c35;--muted:#7b877d;--line:#e1e6dc;--green:#35694f;--green-soft:#e7eee1;--orange:#d98160;--radius:18px;font-family:system-ui,sans-serif;color:var(--ink);background:var(--page);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #d99861;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}.app-shell{max-width:1340px;margin:auto;padding:0 52px}.masthead{height:104px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:38px}.brand{font-family:system-ui,sans-serif;font-size:37px;font-weight:800;letter-spacing:-2px;color:var(--ink);text-decoration:none;display:flex;align-items:center}.brand-period{color:var(--orange)}.brand-mark{display:inline-flex;position:relative;font-size:25px;letter-spacing:0;margin-right:13px;transform:rotate(-35deg);color:var(--green)}.brand-mark:after{content:'';position:absolute;top:19px;left:15px;width:19px;height:3px;background:var(--green)}.brand-mark span{font-size:16px;margin:15px 0 0 5px}.header-note{font-size:10px;font-weight:650;letter-spacing:1.65px;color:var(--muted)}.local-badge{margin-left:auto;font-size:12px;color:#647362;display:flex;align-items:center;gap:9px}.local-badge i,.live-dot{width:6px;height:6px;background:#79a47a;display:inline-block;border-radius:50%}.intro{display:flex;align-items:center;justify-content:space-between;padding:47px 0 39px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--green);margin:0 0 16px}h1{font-family:system-ui,sans-serif;font-size:clamp(34px,4vw,50px);font-weight:650;letter-spacing:-2.2px;line-height:1.16;margin:0}h1 em{font-style:normal;color:var(--green)}.intro-copy{color:var(--muted);font-size:14px;margin:18px 0 0}.intro-doodle{width:270px;height:170px;position:relative;margin-right:48px;transform:rotate(-9deg)}.doodle-atom{position:absolute;border:1px solid #d6ded0;border-radius:50%;display:grid;place-items:center;font-family:system-ui,sans-serif;font-weight:650;background:#fcfcf6;box-shadow:0 5px 0 #e6eadf}.doodle-atom.oxygen{width:70px;height:70px;left:104px;top:16px;font-size:27px;color:#b46e51;background:#f4e7db;border-color:#ead6c5}.h-left,.h-right{width:46px;height:46px;font-size:19px;top:95px}.h-left{left:44px}.h-right{left:192px}.doodle-line{position:absolute;width:78px;height:7px;border-top:2px solid #b4c1ac;top:91px}.doodle-line.one{left:72px;transform:rotate(-46deg)}.doodle-line.two{left:151px;transform:rotate(46deg)}.doodle-caption{position:absolute;bottom:-13px;left:49px;font-size:11px;color:#87917c;font-style:italic;white-space:nowrap}.studio{background:var(--paper);border:1px solid #dce3d5;border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 32px #31462a06,0 2px 3px #31462a03}.toolbar{display:flex;gap:26px;align-items:center;padding:21px 24px 19px;border-bottom:1px solid var(--line)}.tool-label{display:block;font-size:9px;font-weight:700;letter-spacing:1.6px;color:#88917f;margin-bottom:10px}.tool-group{display:flex;gap:5px}.tool-group button{display:flex;align-items:center;justify-content:center;gap:7px;background:transparent;color:#697365;border:1px solid transparent;border-radius:8px;padding:8px 10px;font-size:12px;transition:background .15s,border-color .15s,transform .15s}.tool-group button:hover{background:#f0f3eb}.tool-group button:active{transform:translateY(1px)}.tool-group button[aria-pressed=true]{background:var(--green-soft);border-color:#cedbc3;color:var(--ink);box-shadow:0 1px 2px #31462a09}.element-dot{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;font-size:12px;font-weight:700;border:1px solid #d5ddcc;background:#f9faf4}.element-dot.oxygen{color:#ab664b;background:#f7e7dd;border-color:#ebd1c0}.element-dot.carbon{color:#fff;background:#4d6357;border-color:#4d6357}kbd{font-family:inherit;font-size:9px;color:#929c89;margin-left:3px}.tool-icon{font-size:21px;line-height:25px}.clear-button{margin:20px 0 0 auto;white-space:nowrap;border:0;background:none;color:#8d8479;font-size:11px;padding:8px}.clear-button:hover{color:#ae5d47}.clear-button span{margin-left:6px;font-size:17px}.canvas-heading{display:flex;justify-content:space-between;gap:15px;padding:18px 25px 0;font-size:11px;color:#8a9384}.canvas-heading>span:first-child{font-size:9px;letter-spacing:1.5px;font-weight:650;white-space:nowrap}.live-dot{margin-right:7px;width:5px;height:5px}
/* The backend owns this subtree; these selectors support its semantic markup. */
#board .in-component circle { filter: drop-shadow(0 0 5px #71936a60); }
#workspace{position:relative;min-width:0}#board{display:block;width:100%;height:auto;min-height:290px;max-height:590px;background-image:radial-gradient(#cfd9c6 .85px,transparent .85px);background-size:22px 22px;touch-action:none;user-select:none;-webkit-user-select:none}#workspace[data-tool=place] #board{cursor:crosshair}#board [data-atom]{cursor:pointer}#workspace[data-tool=move] #board [data-atom]{cursor:grab}#workspace[data-tool=erase] #board [data-atom],#workspace[data-tool=erase] #board [data-a][data-b]{cursor:not-allowed}#board [data-atom] circle{stroke-width:2;transition:filter .15s,stroke .15s}#board [data-atom]:hover circle{filter:brightness(.96);stroke:#71936a}#board [data-atom].is-selected circle{stroke:#cf9858;stroke-width:4;filter:drop-shadow(0 0 5px #d6ab6b66)}#board [data-atom].is-dragging{cursor:grabbing;opacity:.85}#board text{font-family:system-ui,sans-serif;font-weight:650;pointer-events:none}#board [data-a][data-b]{cursor:pointer}#board .bond-hit{stroke:transparent;stroke-width:18;pointer-events:stroke}#board .bond-line{stroke:#85927e;stroke-width:4;stroke-linecap:round}#board [data-a][data-b]:hover .bond-line{stroke:#cf9858}.atom-h{fill:#fbfcf6;stroke:#cbd6c0}.atom-o{fill:#f3dfd0;stroke:#d8b69b}.atom-c{fill:#4c6356;stroke:#3e5648}.atom-label-h{fill:#53674b}.atom-label-o{fill:#a56547}.atom-label-c{fill:#fff}#inspector,.inspector{border-top:1px solid var(--line);padding:18px 25px;background:#f8f9f3;font-size:13px;color:#72806b}#inspector h2,.inspector h2,#inspector h3,.inspector h3{font-size:14px;color:var(--ink);margin:0 0 8px}#inspector p,.inspector p{margin:5px 0;line-height:1.6}.inspector-grid{display:flex;gap:24px;flex-wrap:wrap}.inspector-label{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.inspector-value{font-weight:650;color:var(--ink)}.empty-state{fill:#98a18e;font-size:14px;font-weight:400!important}.workspace-error,.error{color:#ae5d47;background:#fbede5;padding:12px 20px;font-size:13px}#workspace[aria-busy=true]{opacity:.7;pointer-events:none}.studio-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 24px;border-top:1px solid var(--line);font-size:11px;color:#909781}.footer-spark{color:#a4ae91;margin-right:7px;font-size:17px}#request-status{color:#6e8264;text-align:right}.page-footer{display:flex;justify-content:space-between;gap:20px;padding:23px 2px 30px;color:#909889;font-size:11px}.page-footer>span:last-child{font-size:9px;letter-spacing:1.25px}.page-footer>span:last-child span{padding:0 10px;color:#bbc1b2}
@media(min-width:1400px){.intro{padding-top:58px;padding-bottom:47px}}@media(max-width:1100px){.app-shell{padding:0 28px}.toolbar{gap:14px;padding:18px}.tool-group button{padding:7px}.tool-group kbd{display:none}.element-tool>span:nth-child(2){display:none}.intro-doodle{margin-right:15px}.header-note{display:none}}@media(max-width:720px){.app-shell{padding:0 16px}.masthead{height:78px}.brand{font-size:32px}.local-badge{font-size:10px}.intro{padding:32px 0 29px}h1{font-size:36px;letter-spacing:-1.6px}.intro-copy{font-size:12px;max-width:245px;line-height:1.6}.intro-doodle{width:125px;transform:scale(.65) rotate(-9deg);transform-origin:right center;margin-left:-80px;margin-right:0}.toolbar{gap:12px;flex-wrap:wrap;padding:16px}.tool-section{flex:1}.tool-group{gap:3px}.tool-group button{padding:6px 7px;font-size:11px}.clear-button{margin:0 0 0 auto;padding:0;font-size:10px}.tool-label{font-size:8px}.canvas-heading{padding:16px 16px 0;flex-direction:column;gap:9px}#tool-hint{font-size:11px;min-height:26px}#board{min-height:300px}.studio-footer{padding:12px 16px;font-size:10px;align-items:flex-start}.studio-footer>span:first-child{max-width:180px}.page-footer{font-size:10px;line-height:1.6}.page-footer>span:last-child{font-size:8px;max-width:130px;text-align:right}#inspector,.inspector{padding:15px 16px}}@media(max-width:400px){.intro-doodle{display:none}.local-badge{font-size:9px}.toolbar{gap:15px 8px}.tool-group button{padding:5px}.tool-group button[data-tool=move] span:last-child,.tool-group button[data-tool=erase] span:last-child{display:none}.studio-footer{flex-direction:column;gap:7px}.studio-footer>span:first-child{max-width:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Open sites represent simplified capacity, not orbital geometry. */
#board [data-atom] .capacity-site{fill:var(--paper);stroke:#71936a;stroke-width:1.8;filter:none;pointer-events:none}
#board [data-atom].is-compatible>circle:first-child{stroke:#4b8c62;stroke-width:4;filter:drop-shadow(0 0 6px #71936a66)}
#board [data-atom].is-compatible .capacity-site{fill:#90bb8b;stroke:#35694f}
#board [data-atom].is-incompatible>circle:first-child{stroke:#b77660;stroke-dasharray:4 3}
#board .placement-preview{opacity:.78;pointer-events:none}
#board .snap-bond{stroke:#568a60;stroke-width:4;stroke-linecap:round;stroke-dasharray:6 5;pointer-events:none}
