.chem-root{color:#f8fafc;background:radial-gradient(circle at 50% 0,#0f2942 0%,#070b14 70%);min-height:100vh;padding-bottom:5rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.chem-topbar{backdrop-filter:blur(16px);z-index:100;background:#0f172ad9;border-bottom:1px solid #94a3b826;padding:1rem 5%;position:sticky;top:44px}.topbar-inner{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;max-width:1280px;margin:0 auto;display:flex}.brand-group{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.back-pill{color:#cbd5e1;background:#ffffff12;border:1px solid #94a3b833;border-radius:99px;padding:.45rem 1rem;font-size:.85rem;font-weight:600;text-decoration:none;transition:all .2s}.back-pill:hover{color:#fff;background:#38bdf826;border-color:#38bdf8}.title-block h1{color:#fff;letter-spacing:-.02em;margin:0;font-size:1.35rem;font-weight:800}.title-block p{color:#94a3b8;margin:2px 0 0;font-size:.8rem}.chem-tabs{flex-wrap:wrap;gap:.45rem;display:flex}.chem-tab{color:#94a3b8;cursor:pointer;background:#1e293bb3;border:1px solid #94a3b833;border-radius:10px;padding:.55rem 1rem;font-size:.85rem;font-weight:700;transition:all .2s}.chem-tab:hover{color:#fff;border-color:#64748b}.chem-tab.active{color:#fff;background:linear-gradient(135deg,#0284c7,#2563eb);border-color:#38bdf8;box-shadow:0 4px 14px #0284c759}.chem-main{max-width:1280px;margin:2rem auto 0;padding:0 5%}.chem-section{display:none}.chem-section.active{animation:.3s fadeInSec;display:block}@keyframes fadeInSec{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.module-grid{grid-template-columns:1.25fr 1fr;align-items:start;gap:1.5rem;display:grid}@media (width<=980px){.module-grid{grid-template-columns:1fr}}.panel-card{background:#0f172ac7;border:1px solid #94a3b82e;border-radius:20px;padding:1.5rem;box-shadow:0 20px 40px #00000059}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:#38bdf8;margin-bottom:.25rem;font-size:.72rem;font-weight:800;display:inline-block}.panel-card h2{color:#fff;margin:0 0 1rem;font-size:1.45rem;font-weight:800}.family-filters{flex-wrap:wrap;gap:.35rem;margin-bottom:1rem;display:flex}.fam-btn{color:#cbd5e1;cursor:pointer;background:#1e293bcc;border:1px solid #94a3b833;border-radius:99px;padding:.3rem .75rem;font-size:.75rem;font-weight:600}.fam-btn.active{color:#0f172a;background:#38bdf8;border-color:#38bdf8;font-weight:800}.periodic-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:.55rem;margin-bottom:1.5rem;display:grid}.pt-cell{border:1.5px solid #94a3b838;border-top:3px solid var(--el-color,#38bdf8);color:#f8fafc;cursor:pointer;text-align:left;background:#1e293bbf;border-radius:12px;padding:.5rem .55rem;transition:transform .15s,border-color .15s,box-shadow .15s,opacity .2s}.pt-cell:hover{border-color:var(--el-color,#38bdf8);transform:translateY(-3px)}.pt-cell.active{border-color:var(--el-color,#38bdf8);background:#0e749052;transform:scale(1.03);box-shadow:0 0 16px #38bdf859}.pt-cell.dimmed{opacity:.25}.pt-top{color:#94a3b8;justify-content:space-between;font-size:.68rem;font-weight:700;display:flex}.pt-v{color:#fbbf24}.pt-sym{color:#fff;margin:2px 0;font-size:1.35rem;font-weight:900;line-height:1.15}.pt-name{color:#cbd5e1;white-space:nowrap;text-overflow:ellipsis;font-size:.68rem;overflow:hidden}.tile-anatomy{background:#1e293b80;border:1px solid #94a3b82e;border-radius:16px;grid-template-columns:125px 1fr;align-items:center;gap:1.25rem;padding:1.1rem;display:grid}@media (width<=600px){.tile-anatomy{grid-template-columns:1fr}}.anatomy-tile{text-align:center;background:#0f172a;border:3px solid #38bdf8;border-radius:14px;padding:.75rem;box-shadow:0 10px 25px #0006}.anat-top{justify-content:space-between;font-size:.78rem;font-weight:800;display:flex}.anat-z{color:#f43f5e}.anat-val{color:#fbbf24}.anat-sym{color:#fff;margin:.2rem 0;font-size:2.4rem;font-weight:900;line-height:1.1}.anat-name{color:#e2e8f0;font-size:.85rem;font-weight:700}.anat-mass{color:#38bdf8;margin-top:4px;font-family:monospace;font-size:.75rem}.anatomy-legend h3{color:#fde68a;margin:0 0 .5rem;font-size:.95rem}.anatomy-legend ul{color:#cbd5e1;margin:0;padding-left:1.1rem;font-size:.84rem;line-height:1.5}.anatomy-legend li{margin-bottom:.35rem}.inspector-top{justify-content:space-between;align-items:center;gap:1rem;display:flex}.family-badge{text-transform:uppercase;letter-spacing:.06em;color:#38bdf8;border:1px solid #38bdf8;border-radius:99px;margin-bottom:.35rem;padding:.25rem .7rem;font-size:.72rem;font-weight:800;display:inline-block}.lewis-box{text-align:center;background:#1e293bbf;border:1px solid #fbbf244d;border-radius:12px;padding:.35rem .6rem}.lewis-label{color:#fde68a;font-size:.65rem;font-weight:700;display:block}.canvas-wrap{text-align:center;background:#090d16;border:1px solid #38bdf833;border-radius:16px;margin:.9rem 0;padding:.5rem}#bohrCanvas{max-width:100%;height:auto}.shell-pills{flex-wrap:wrap;justify-content:center;gap:.4rem;padding-bottom:.4rem;display:flex}.shell-tag{color:#94a3b8;background:#1e293be6;border:1px solid #94a3b833;border-radius:99px;padding:.2rem .65rem;font-size:.75rem}.shell-tag.shell-val{color:#fde68a;background:#78350f59;border-color:#fbbf2480}.atom-metrics{grid-template-columns:repeat(4,1fr);gap:.5rem;margin-bottom:1rem;display:grid}.metric-pill{text-align:center;background:#1e293ba6;border:1px solid #94a3b826;border-radius:12px;padding:.6rem .4rem}.mp-num{font-size:1.3rem;font-weight:900;display:block}.mp-lbl{color:#94a3b8;font-size:.68rem}.mp-proton .mp-num{color:#f43f5e}.mp-neutron .mp-num{color:#94a3b8}.mp-electron .mp-num{color:#38bdf8}.mp-valence .mp-num{color:#fbbf24}.context-callout{color:#e2e8f0;background:#0e74902e;border-left:4px solid #38bdf8;border-radius:0 12px 12px 0;padding:.85rem 1rem;font-size:.88rem;line-height:1.55}.callout-row{color:#bae6fd;flex-wrap:wrap;justify-content:space-between;gap:.5rem;margin-bottom:.5rem;font-size:.82rem;display:flex}.molecule-selector{grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:.5rem;margin-bottom:1rem;display:grid}.mol-btn{color:#f8fafc;cursor:pointer;text-align:center;background:#1e293bcc;border:1.5px solid #94a3b833;border-radius:12px;padding:.6rem;transition:all .2s}.mol-btn.active{background:#0284c747;border-color:#38bdf8;box-shadow:0 0 14px #38bdf840}.mol-formula{color:#fff;font-size:1.25rem;font-weight:900;display:block}.mol-sub{color:#94a3b8;font-size:.68rem}.bond-canvas-container{text-align:center;background:#090d16;border:1px solid #38bdf838;border-radius:16px;margin-bottom:1rem;padding:.75rem}#bondCanvas{max-width:100%;height:auto}.octet-status-badge{color:#fcd34d;background:#f59e0b26;border:1px solid #f59e0b59;border-radius:99px;margin-top:.4rem;padding:.4rem 1rem;font-size:.82rem;font-weight:700;display:inline-block}.octet-status-badge.bonded{color:#6ee7b7;background:#10b9812e;border-color:#10b98173}.slider-labels{justify-content:space-between;align-items:center;margin-bottom:.45rem;font-size:.85rem;font-weight:700;display:flex}.pct-pill{color:#7dd3fc;background:#38bdf826;border-radius:99px;padding:.2rem .65rem;font-size:.78rem}.chem-slider{accent-color:#38bdf8;cursor:pointer;width:100%;margin-bottom:.9rem}.bond-btns{flex-wrap:wrap;gap:.75rem;display:flex}.btn-action-primary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#0284c7,#2563eb);border:none;border-radius:10px;padding:.7rem 1.25rem;font-size:.88rem;font-weight:700}.btn-action-ghost{color:#cbd5e1;cursor:pointer;background:#1e293bcc;border:1px solid #94a3b84d;border-radius:10px;padding:.7rem 1.15rem;font-size:.88rem;font-weight:600}.bond-lead{color:#cbd5e1;margin-bottom:1.1rem;font-size:.94rem;line-height:1.6}.en-comparison-card{background:#1e293b8c;border:1px solid #94a3b82e;border-radius:14px;margin-bottom:1rem;padding:1rem}.en-comparison-card h3{color:#fde68a;margin:0 0 .5rem;font-size:.9rem}.en-meter-row{flex-wrap:wrap;justify-content:space-between;margin-bottom:.65rem;font-family:monospace;font-size:.84rem;display:flex}.en-verdict{color:#38bdf8;font-weight:700}.en-scale-bar{text-align:center;border-radius:8px;grid-template-columns:1fr 1.3fr 1.2fr;padding-bottom:14px;font-size:.72rem;display:grid;position:relative;overflow:hidden}.en-zone{padding:.35rem .2rem;font-weight:700}.z-pure{color:#6ee7b7;background:#10b98140}.z-polar{color:#7dd3fc;background:#38bdf840}.z-ionic{color:#fda4af;background:#f43f5e40}.en-marker{color:#fbbf24;font-size:1rem;transition:left .35s;position:absolute;bottom:-2px;transform:translate(-50%)}.bond-rules-grid{grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1rem;display:grid}.rule-box{background:#1e293b73;border:1px solid #94a3b824;border-radius:12px;padding:.85rem}.rule-box h4{color:#fff;margin:0 0 .35rem;font-size:.88rem}.rule-box p{color:#cbd5e1;margin:0;font-size:.8rem;line-height:1.45}.sample-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.5rem;margin-bottom:1.25rem;display:grid}.sample-btn{color:#f8fafc;cursor:pointer;text-align:left;background:#1e293bbf;border:1.5px solid #94a3b838;border-radius:12px;padding:.6rem;font-size:.82rem;font-weight:700}.sample-btn small{color:#94a3b8;font-weight:500}.sample-btn.active{background:#0e74904d;border-color:#38bdf8}.ph-stage{background:#090d16;border:1px solid #94a3b829;border-radius:16px;grid-template-columns:150px 1fr;align-items:center;gap:1.25rem;padding:1.25rem;display:grid}@media (width<=600px){.ph-stage{grid-template-columns:1fr}}.beaker-col{flex-direction:column;align-items:center;display:flex}.dropper{flex-direction:column;align-items:center;margin-bottom:8px;display:flex;position:relative}.dropper-bulb{background:#a855f7;border-radius:10px 10px 4px 4px;width:22px;height:18px}.dropper-glass{background:#e2e8f080;border-radius:0 0 4px 4px;width:8px;height:22px}.falling-drop{opacity:0;background:#a855f7;border-radius:50%;width:10px;height:10px;position:absolute;top:38px}.falling-drop.drop-anim{animation:.45s ease-in forwards dropFall}@keyframes dropFall{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(55px)}}.beaker{background:#ffffff08;border:3px solid #e2e8f08c;border-top:none;border-radius:0 0 18px 18px;width:110px;height:135px;position:relative;overflow:hidden}.beaker-liquid{width:100%;height:72%;transition:background .6s;position:absolute;bottom:0;left:0}.beaker-marks{color:#ffffffa6;flex-direction:column;justify-content:space-between;font-family:monospace;font-size:.58rem;display:flex;position:absolute;top:12px;bottom:12px;right:6px}.ph-big-badge{border-radius:99px;margin-bottom:.5rem;padding:.35rem .9rem;font-size:.85rem;font-weight:800;display:inline-block}.ph-readout h3{margin:0 0 .45rem;font-size:1.05rem}.ph-readout p{color:#cbd5e1;margin:0 0 .85rem;font-size:.85rem;line-height:1.5}.ph-spectrum{text-align:center;border-radius:8px;grid-template-columns:repeat(7,1fr);font-size:.68rem;font-weight:800;display:grid;overflow:hidden}.ph-spectrum span{padding:4px 0}.lavoisier-stage{background:#090d16;border:1px solid #94a3b829;border-radius:16px;grid-template-columns:190px 1fr;align-items:center;gap:1.25rem;padding:1.25rem;display:grid}@media (width<=600px){.lavoisier-stage{grid-template-columns:1fr}}.flask-assembly{flex-direction:column;align-items:center;display:flex}.reaction-balloon{text-align:center;z-index:3;background:radial-gradient(circle at 35% 30%,#fb7185,#e11d48);border-radius:50% 50% 45% 45%;justify-content:center;align-items:center;width:58px;height:42px;padding:4px;font-size:.62rem;font-weight:800;transition:all .9s cubic-bezier(.2,.9,.3,1.2);display:flex}.reaction-balloon.inflated{width:112px;height:108px;font-size:.78rem;box-shadow:0 0 25px #f43f5e8c}.erlenmeyer{flex-direction:column;align-items:center;margin-top:-4px;display:flex}.erl-neck{border-left:3px solid #e2e8f099;border-right:3px solid #e2e8f099;width:26px;height:22px}.erl-body{background:#ffffff08;border:3px solid #e2e8f099;border-radius:12px 12px 22px 22px;width:104px;height:82px;position:relative;overflow:hidden}.erl-liquid{background:linear-gradient(#38bdf859,#0284c78c);width:100%;height:58%;position:absolute;bottom:0}.co2-foam{background:repeating-radial-gradient(circle,#ffffffbf 0,#ffffff1a 6px);width:100%;height:0;transition:height .6s}.co2-foam.bubbling{height:24px}.digital-scale{width:155px;margin-top:6px}.scale-plate{background:#94a3b8;border-radius:4px;height:6px;margin:0 12px}.scale-screen{text-align:center;background:#0f172a;border:2px solid #334155;border-radius:10px;padding:6px 10px}.scale-lbl{color:#94a3b8;font-size:.52rem;font-weight:700;display:block}.scale-val{color:#34d399;font-family:monospace;font-size:1.25rem;font-weight:900}.reaction-telemetry{flex-direction:column;gap:.65rem;display:flex}.tele-box{background:#1e293b8c;border:1px solid #94a3b829;border-radius:12px;padding:.7rem .9rem}.tele-lbl{color:#94a3b8;font-size:.74rem;font-weight:700;display:block}.tele-val{color:#f8fafc;margin:2px 0;font-size:1.15rem;font-weight:800;display:block}.tele-box small{color:#38bdf8;font-size:.74rem}.tele-law p{color:#cbd5e1;margin:4px 0 0;font-size:.82rem;line-height:1.45}.quiz-container{max-width:1000px;margin:0 auto}.quiz-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem;display:flex}.quiz-score-pill{color:#6ee7b7;background:#10b98133;border:1px solid #10b98166;border-radius:99px;padding:.5rem 1.1rem;font-weight:800}.quiz-grid{grid-template-columns:1fr 1fr;gap:1.25rem;display:grid}@media (width<=820px){.quiz-grid{grid-template-columns:1fr}}.quiz-card{background:#1e293b8c;border:1px solid #94a3b82e;border-radius:16px;padding:1.2rem}.quiz-card h3{color:#f8fafc;margin:0 0 .85rem;font-size:.95rem;line-height:1.45}.quiz-opts{flex-direction:column;gap:.45rem;display:flex}.quiz-opt-btn{color:#e2e8f0;text-align:left;cursor:pointer;background:#0f172acc;border:1px solid #94a3b840;border-radius:10px;padding:.65rem .85rem;font-size:.84rem;transition:all .15s}.quiz-opt-btn.correct{color:#fff;background:#10b98140;border-color:#10b981;font-weight:700}.quiz-opt-btn.wrong{background:#f43f5e40;border-color:#f43f5e}.quiz-feedback{border-radius:10px;margin-top:.75rem;padding:.65rem .85rem;font-size:.8rem;line-height:1.45}.fb-ok{color:#a7f3d0;background:#10b98124}.fb-err{color:#fde68a;background:#f59e0b26}
