:root{--bg: #f8fafc;--bar: #0f172a;--bar-fg: #e2e8f0;--accent: #3b82f6;--btn: 48px}*{box-sizing:border-box}html,body,#root{margin:0;height:100%;overflow:hidden;background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-user-select:none;user-select:none}.app{display:flex;flex-direction:column;height:100%}.loading{display:grid;place-items:center;height:100%;color:#64748b}.bar{display:flex;align-items:center;gap:6px;padding:6px 10px;background:var(--bar);color:var(--bar-fg);flex-wrap:wrap}.bar.top{padding-top:calc(6px + env(safe-area-inset-top))}.bar.bottom{padding-bottom:calc(6px + env(safe-area-inset-bottom));justify-content:center}.bar button,.bar select{min-width:var(--btn);min-height:var(--btn);border:0;border-radius:10px;background:#1e293b;color:var(--bar-fg);font-size:20px;cursor:pointer;padding:0 10px}.bar button:disabled{opacity:.35;cursor:default}.bar button.on{background:var(--accent);color:#fff}.bar button:not(:disabled):active{transform:scale(.94)}.bar .swatch{min-width:36px;min-height:36px;border-radius:50%;border:3px solid transparent;padding:0}.bar .swatch.on{border-color:#fff;box-shadow:0 0 0 2px var(--accent)}.bar .size i{display:block;margin:auto;border-radius:50%;background:currentColor}.bar .sep{width:1px;height:28px;background:#334155;margin:0 4px}.bar .spacer{flex:1}.brand{font-size:18px;letter-spacing:.5px;margin-right:8px}.status{font-size:13px;color:#94a3b8}.status[data-status=error]{color:#f87171}.status.offline{color:#fbbf24}.pages{display:flex;gap:4px}.pages .tabs{display:flex;gap:4px;max-width:36vw;overflow-x:auto;scrollbar-width:thin}.pages button{min-width:40px;font-size:15px}.board{position:relative;flex:1;overflow:hidden;background:#fff}.board canvas{position:absolute;top:0;right:0;bottom:0;left:0;display:block}.toast{position:absolute;left:50%;bottom:90px;transform:translate(-50%);background:#0f172a;color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;box-shadow:0 4px 16px #0000004d}.app{position:relative}.pen-settings{position:absolute;left:50%;bottom:calc(var(--btn) + 24px + env(safe-area-inset-bottom));transform:translate(-50%);z-index:5;display:grid;gap:10px;min-width:260px;padding:12px 14px;border-radius:12px;background:var(--bar);color:var(--bar-fg);box-shadow:0 6px 24px #00000059;font-size:15px}.pen-settings label{display:grid;gap:4px}.pen-settings select,.pen-settings input[type=range]{width:100%;min-height:36px;font-size:15px;border-radius:8px;border:0;background:#1e293b;color:var(--bar-fg)}.pen-settings output{float:right;color:#94a3b8}.pen-settings input[type=checkbox]{width:20px;height:20px;vertical-align:middle}.bar button.clear{font-size:15px}.sim{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:flex;flex-direction:column;background:var(--bg)}.sim-view{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none}.bar button.text{font-size:16px}.formula{font-size:18px;font-family:Times New Roman,serif;font-style:italic;margin-left:8px}.sim-params{gap:10px;font-size:16px}.sim-params input[type=range]{width:min(420px,40vw);min-height:40px;accent-color:var(--accent)}.sim-params output{min-width:72px;font-variant-numeric:tabular-nums}.sim-params .note{font-size:12px;color:#94a3b8}.sim-params .swatch.height{background:linear-gradient(135deg,#3b82f6,#f59e0b)}.sim-params input.op{width:min(160px,18vw)}.sim-menu{position:fixed;z-index:20;display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:14px;background:var(--bar);box-shadow:0 8px 30px #0000004d}.sim-menu button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:56px;min-width:300px;padding:8px 14px;border:0;border-radius:10px;background:#1e293b;color:var(--bar-fg);font-size:17px;cursor:pointer;text-align:left}.sim-menu button small{font-size:13px;color:#94a3b8}.sim-tabs{display:inline-flex;gap:4px}.bar .sim-tabs button{font-size:15px}.readout{position:absolute;top:10px;left:10px;z-index:2;pointer-events:none;padding:8px 12px;border-radius:12px;background:#ffffffe0;color:#0f172a;font-size:15px;box-shadow:0 2px 10px #0f172a1f;max-width:calc(100% - 20px)}.readout .formula{font:600 16px system-ui,sans-serif}.readout .small,.info .small{font-size:12px;color:#475569}.readout table{border-collapse:collapse;margin-top:4px;font-variant-numeric:tabular-nums}.readout th{text-align:left;padding:1px 6px 1px 0;font-style:italic}.readout td{padding:1px 14px 1px 0;min-width:92px}.readout .c-F{color:#dc2626}.readout .c-a{color:#16a34a}.readout .c-v{color:#2563eb}.readout .c-f{color:#ea580c}.info{position:absolute;top:10px;right:10px;z-index:2;width:min(380px,calc(100% - 20px));padding:10px 14px;border-radius:12px;background:#fffffff2;color:#0f172a;font-size:14px;box-shadow:0 2px 10px #0f172a26}.info p{margin:6px 0}.info button{min-height:40px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-size:15px;padding:0 14px;cursor:pointer}.newton .param{display:inline-flex;align-items:center;gap:4px;position:relative}.newton .param label{font-style:italic;font-weight:600;min-width:22px;text-align:right}.newton .param input[type=range]{width:min(180px,16vw)}.newton .param input.num{width:64px;min-height:40px;border-radius:8px;border:2px solid transparent;background:#f8fafc;color:#0f172a;font-size:16px;text-align:right;padding:0 6px}.newton .param input.num.bad{border-color:#ef4444;background:#fef2f2}.newton .param .unit{font-size:13px;color:#94a3b8;min-width:18px}.newton .param .err{position:absolute;bottom:100%;right:0;white-space:nowrap;font-size:12px;color:#fff;background:#ef4444;padding:2px 6px;border-radius:6px}.newton .speeds{display:inline-flex;gap:2px}.newton .speeds button{font-size:15px;min-width:48px}.newton button.run{font-size:16px;min-width:120px;background:#15803d}.newton button.run.on{background:#b45309}.newton .toggle{display:inline-flex;align-items:center;gap:6px}.newton .toggle input{width:22px;height:22px}.chem-eq b{font-style:normal;color:#fbbf24}.disclaimer{position:absolute;left:50%;bottom:10px;transform:translate(-50%);z-index:2;pointer-events:none;max-width:calc(100% - 20px);padding:6px 12px;border-radius:10px;background:#ffffffd9;color:#475569;font-size:13px;text-align:center}.disclaimer.strong{background:#fef3c7;color:#92400e;font-weight:600;font-size:15px;border:2px solid #f59e0b}.readout.chem{max-width:min(360px,calc(100% - 20px))}.readout.chem th,.readout.chem td{padding-right:12px;min-width:0;text-align:center}.readout.chem thead th{font-style:normal;font-weight:600;font-size:13px;color:#475569}.readout.chem .el-H,.readout.chem .el-O{font-style:normal}.readout.chem .el-O{color:#b91c1c}.readout .ok{color:#15803d;margin-top:4px}.pick{position:absolute;left:10px;bottom:80px;z-index:2;pointer-events:none;display:grid;gap:2px;max-width:min(380px,calc(100% - 20px));padding:6px 12px;border-radius:10px;background:#ffffffe0;color:#0f172a;font-size:14px}.pick .hint{color:#64748b}.chem-ctl .stages{display:inline-flex;gap:4px}.chem-ctl .stages button{font-size:15px}.chem-ctl output{min-width:40px;text-align:center}.formula-chip{position:absolute;right:12px;bottom:calc(var(--btn) + 26px + env(safe-area-inset-bottom));z-index:6;display:flex;align-items:center;gap:8px;max-width:calc(100% - 24px);padding:6px 6px 6px 14px;border-radius:14px;background:#0f172aeb;color:#e2e8f0;box-shadow:0 4px 18px #00000040;font-size:15px}.formula-chip .f{font:italic 17px Times New Roman,serif;white-space:nowrap}.formula-chip .m{color:#94a3b8;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.formula-chip button{min-height:40px;min-width:40px;border:0;border-radius:10px;background:#1e293b;color:#e2e8f0;font-size:15px;padding:0 12px;cursor:pointer}.formula-chip button.go,.formula-panel button.go{background:var(--accent);color:#fff}.formula-panel{position:absolute;top:calc(var(--btn) + 22px + env(safe-area-inset-top));right:10px;z-index:8;width:min(430px,calc(100% - 20px));max-height:calc(100% - 2 * var(--btn) - 50px);overflow:auto;display:grid;gap:8px;padding:12px 14px;border-radius:14px;background:#fff;color:#0f172a;box-shadow:0 8px 30px #0f172a40;font-size:15px;-webkit-user-select:text;user-select:text}.formula-panel .row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.formula-panel .head .src{flex:1;color:#64748b;font-size:13px}.formula-panel button{min-height:44px;border:0;border-radius:10px;background:#e2e8f0;color:#0f172a;font-size:15px;padding:0 14px;cursor:pointer}.formula-panel button:disabled{opacity:.4;cursor:default}.formula-panel button.x{min-width:44px;padding:0}.formula-panel button.confirm{background:#f59e0b;color:#111827}.formula-panel button.ref{background:#ede9fe;color:#4c1d95}.formula-panel button.link{background:none;color:#2563eb;min-height:32px;padding:0 4px;font-size:13px}.formula-panel .ftext{width:100%;min-height:48px;border:2px solid #cbd5e1;border-radius:10px;padding:0 12px;font:20px Times New Roman,serif;color:#0f172a;background:#f8fafc}.formula-panel .ftext:focus{outline:none;border-color:var(--accent)}.formula-panel .alts button{min-height:36px;font:italic 16px Times New Roman,serif;background:#f1f5f9}.formula-panel .alts small,.formula-panel .small,.formula-panel .hint{color:#64748b;font-size:12px;margin:0}.formula-panel .hint{font-size:14px}.formula-panel .warn{margin:0;padding:6px 10px;border-radius:8px;background:#fef3c7;color:#92400e;font-size:14px}.formula-panel .ok{margin:0;color:#15803d;font-size:13px}.froute{display:grid;gap:4px;padding:8px 10px;border-radius:10px;background:#f8fafc;border-left:4px solid #94a3b8}.froute.s-library{border-color:#16a34a}.froute.s-buildable{border-color:#2563eb}.froute.s-related{border-color:#7c3aed}.froute.s-unsupported{border-color:#f59e0b}.froute.s-invalid{border-color:#ef4444}.froute .badge{font-weight:600;font-size:14px}.froute small{color:#64748b}.froute .fpretty{font:italic 22px Times New Roman,serif}.froute .reason{margin:0;font-size:14px;color:#334155}.fexplain summary{cursor:pointer;color:#2563eb;min-height:32px;display:flex;align-items:center}.fexplain h4{margin:8px 0 2px;font-size:13px;color:#475569}.fexplain ul{margin:0;padding-left:18px;font-size:13px}.fexplain .tag{font-size:11px;padding:1px 6px;border-radius:6px;background:#e0f2fe;color:#075985}.fexplain .tag.illustration{background:#fef3c7;color:#92400e}.formula-panel .foot label{display:inline-flex;align-items:center;gap:6px;font-size:14px}.formula-panel .foot input{width:20px;height:20px}.froute .fpretty.chem{font:20px system-ui,sans-serif}.bar.top .status:not(.offline){display:inline-block;width:4.8em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sim-menu button.formula-entry{background:#1e3a8a}.froute.s-dynamic{border-color:#0891b2}.vdse-box{display:grid;gap:6px;padding:8px 10px;border-radius:10px;background:#ecfeff}.vdse-box .busy{margin:0;color:#0e7490;font-size:14px}.vdse-box .busy:before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;border:2px solid #67e8f9;border-top-color:#0e7490;border-radius:50%;animation:vspin .8s linear infinite;vertical-align:-1px}@keyframes vspin{to{transform:rotate(360deg)}}.vdse-preview{height:200px;border-radius:8px;overflow:hidden;background:#f8fafc;touch-action:none}.vbadge{font-size:12px;padding:2px 8px;border-radius:8px;background:#cffafe;color:#155e75;white-space:nowrap}.vdse-params{flex-wrap:wrap;row-gap:6px}.vdse-params .dom{display:inline-flex;align-items:center;gap:4px;font-size:14px}.vdse-params .dom input{width:4.2em;min-height:40px;border:1px solid #475569;border-radius:8px;background:#0f172a;color:#e2e8f0;padding:0 6px;font-size:15px}.vdse-params .dom select{min-height:40px}.vdse-params .warn{color:#fbbf24;font-size:14px}.froute.s-needsParams{border-color:#0d9488}.gen-box{background:#f0fdfa}.gen-box .gparams{gap:10px}.gen-box .gparam{display:inline-flex;align-items:center;gap:6px;font:italic 16px Times New Roman,serif}.gen-box .gparam input{width:6em;min-height:40px;border:2px solid #cbd5e1;border-radius:8px;padding:0 8px;font:16px system-ui,sans-serif;background:#fff;color:#0f172a}.gen-box .gparam input:focus{outline:none;border-color:var(--accent)}.gchecks{margin:0;padding:0;list-style:none;display:grid;gap:2px;font-size:13px}.gchecks .ok{color:#15803d}.gchecks .bad{color:#b91c1c;font-weight:600}.gen-preview{height:170px;border-radius:8px;overflow:auto;background:#fff;border:1px solid #e2e8f0}.gen-preview canvas{width:100%;height:100%;display:block}.gen-view{display:flex;flex-direction:column;background:#fff}.gen-canvas{flex:1;min-height:0;width:100%;display:block;touch-action:none}.gen-readout{padding:6px 12px;font-size:14px;color:#334155;background:#f8fafc;border-top:1px solid #e2e8f0;font-variant-numeric:tabular-nums}.gen-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 10px;background:#f8fafc;border-top:1px solid #e2e8f0;font-size:14px}.gen-controls button{min-height:44px;min-width:44px;border:0;border-radius:10px;background:#e2e8f0;color:#0f172a;font-size:15px;padding:0 14px;cursor:pointer}.gen-controls button.go{background:var(--accent);color:#fff}.gen-controls select{min-height:40px;font-size:15px;border-radius:8px}.gen-controls input[type=range]{width:min(320px,40vw);min-height:40px;accent-color:var(--accent)}.gen-controls output{font-variant-numeric:tabular-nums}.gen-controls .note{width:100%;font-size:12px;color:#64748b}.gen-rx{flex:1;overflow:auto;padding:12px 16px}.rx-label{margin:0 0 10px;padding:6px 10px;border-radius:8px;background:#ede9fe;color:#4c1d95;font-size:14px}.rx-eq{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.rx-side{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end}.rx-term{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 8px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0}.rx-copies{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;max-width:420px}.rx-cap{font:16px system-ui,sans-serif;color:#0f172a}.rx-arrow{font-size:30px;color:#334155}.rx-more{align-self:center;font-size:13px;color:#475569}.rx-tally{margin-top:12px;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}.rx-tally th,.rx-tally td{padding:4px 12px;border-bottom:1px solid #e2e8f0;text-align:center}.rx-tally tr.on td{background:#fef3c7}.rx-tally .dot{display:inline-block;width:12px;height:12px;margin-right:6px;border-radius:50%;border:1px solid #334155;vertical-align:-1px}.rx.compact .rx-term{padding:3px 4px}.rx.compact .rx-tally{margin-top:6px;font-size:12px}.bar .formula.chem{font:18px system-ui,sans-serif}.composer-box{background:#faf5ff}.composer-box .gparams{gap:10px}.composer-box .gparam{display:inline-flex;align-items:center;gap:6px;font:italic 16px Times New Roman,serif}.composer-box .gparam input{width:6em;min-height:40px;border:2px solid #cbd5e1;border-radius:8px;padding:0 8px;font:16px system-ui,sans-serif;background:#fff;color:#0f172a}.composer-box .gparam input:focus{outline:none;border-color:var(--accent)}.composer-box h4{margin:6px 0 2px;font-size:13px}.composer-box .tag{font-size:12px;padding:2px 8px;border-radius:6px}.composer-box .tag.illustration{background:#fef3c7;color:#92400e}.composer-box .tag.simulation{background:#dcfce7;color:#166534}.composer-consent{display:grid;gap:6px;padding:8px;border:2px solid #a855f7;border-radius:10px;background:#fff}.composer-consent pre{margin:0;padding:6px;background:#f1f5f9;border-radius:6px;font-size:12px;white-space:pre-wrap}.composer-box .byai{color:#b45309;font-weight:600}.py-view{display:flex;background:#f8fafc}.py-svg{flex:1;min-width:0;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}.py-svg g[data-part]{cursor:pointer}.py-handle{stroke:#0f172a;cursor:grab}.py-handle:not([fill]){fill:#fff}.py-handle:active{cursor:grabbing;fill:#fde68a}.py-readout{pointer-events:auto}.py-know{width:min(400px,42vw);flex:none;overflow-y:auto;padding:8px 14px 24px;background:#fff;color:#0f172a;font-size:14px;border-left:1px solid #e2e8f0}.py-know h3{font-size:15px;margin:12px 0 4px;color:#1e3a8a}.py-know section{border-bottom:1px solid #f1f5f9;padding-bottom:6px}.py-know ul,.py-know ol{margin:4px 0;padding-left:18px}.py-know .small{font-size:12.5px;color:#475569}.py-know .ok{color:#15803d;font-style:normal}.py-know .bad{color:#b91c1c;font-style:normal}.py-know .chip{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12.5px;font-weight:600}.py-know .chip.review{background:#fef3c7;color:#92400e}.py-know button{min-height:40px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-size:14px;padding:0 12px;cursor:pointer}.py-know .formula{font-size:16px;margin-left:0}.py-look{position:absolute;left:10px;bottom:10px;z-index:2;display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:12px;background:#fffffff2;color:#0f172a;font-size:14px;box-shadow:0 2px 10px #0f172a26}.py-look .swatches{display:flex;gap:6px}.py-look .swatch{width:34px;height:34px;border-radius:50%;border:3px solid transparent;cursor:pointer}.py-look .swatch.on{border-color:#0f172a}.py-look .toggle{display:flex;align-items:center;gap:6px}.py .param.computed output{font-weight:700;color:#fbbf24}@media(max-width:760px){.py-know{position:absolute;right:0;top:0;bottom:0;width:min(360px,92vw);z-index:3;box-shadow:-4px 0 18px #0f172a2e}}.hwr-train{z-index:30}.hwr-train .train-title{font-size:18px;margin-left:8px}.train-body{flex:1;overflow-y:auto;padding:14px 18px;color:#0f172a;display:flex;flex-direction:column;gap:12px;align-items:flex-start}.train-body .row{display:flex;flex-wrap:wrap;gap:8px}.train-body button{min-height:44px;border:0;border-radius:10px;background:#e2e8f0;color:#0f172a;font-size:16px;padding:0 14px;cursor:pointer}.train-body button.go{background:var(--accent);color:#fff}.train-body button.danger{background:#dc2626;color:#fff}.train-body button:disabled{opacity:.4;cursor:default}.train-body .small{font-size:14px;color:#475569;max-width:760px}.train-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;width:100%;max-width:900px}.train-grid button{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:72px;padding:6px}.train-grid button.done{background:#dcfce7}.train-grid .sym{font:600 26px Times New Roman,serif}.train-grid small{font-size:12px;color:#475569}.train-prompt{font-size:20px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.train-prompt .sym.big{font:600 44px Times New Roman,serif}.train-pad{display:flex;flex-direction:column;gap:10px}.train-pad canvas{width:min(70vw,52vh,460px);height:min(70vw,52vh,460px);background:#fff;border:2px dashed #94a3b8;border-radius:14px;touch-action:none}.train-result{font-size:20px}.pen-settings .train-entry{min-height:44px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-size:16px;cursor:pointer}.train-pad.wide canvas{width:min(92vw,900px);height:min(40vh,300px)}.library{z-index:25}.library .lib-title{font-size:18px;margin-left:8px}.lib-body{flex:1;min-height:0;display:flex;gap:0;color:#0f172a;background:#f8fafc}.lib-list{width:min(420px,100%);flex:0 0 auto;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:8px;border-right:1px solid #e2e8f0;background:#fff}.lib-search{width:100%;min-height:48px;border:2px solid #cbd5e1;border-radius:10px;padding:0 12px;font-size:17px;background:#f8fafc;color:#0f172a}.lib-search:focus{outline:none;border-color:var(--accent)}.lib-list .row,.lib-detail .row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.lib-list .chip{min-height:40px;border:0;border-radius:999px;padding:0 14px;background:#e2e8f0;color:#0f172a;font-size:15px;cursor:pointer}.lib-list .chip.on{background:var(--accent);color:#fff}.lib-list .chip.board{background:#ede9fe;color:#4c1d95}.lib-list .small,.lib-detail .small{color:#64748b;font-size:13px;margin:0}.lib-list .warn,.lib-detail .warn{margin:0;padding:6px 10px;border-radius:8px;background:#fef3c7;color:#92400e;font-size:14px}.lib-hits{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.lib-hits button{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:64px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#0f172a;text-align:left;cursor:pointer;font-size:15px}.lib-hits button.on{border-color:var(--accent);background:#eff6ff}.lib-hits .t small{color:#64748b;font-size:12px}.lib-hits .f{font:17px Times New Roman,serif}.lib-hits .meta{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.lib-hits .why{color:#2563eb;font-size:12px}.chip.status{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600}.chip.status.review{background:#fef3c7;color:#92400e}.chip.status.ok{background:#dcfce7;color:#166534}.lib-detail{flex:1;min-width:0;overflow-y:auto;padding:14px 20px 40px;display:flex;flex-direction:column;gap:4px;-webkit-user-select:text;user-select:text}.lib-detail h2{margin:0 0 4px;font-size:22px}.lib-detail h3{margin:12px 0 4px;font-size:15px;color:#334155;text-transform:none}.lib-detail h4{margin:6px 0 2px;font-size:14px;color:#475569}.lib-detail p,.lib-detail li{font-size:15px;line-height:1.45;margin:2px 0}.lib-detail ul,.lib-detail ol{margin:0;padding-left:20px}.lib-detail .big-f{font:26px Times New Roman,serif}.lib-detail .f{font-family:Times New Roman,serif;font-size:17px}.lib-detail .ok{color:#15803d;font-size:14px;margin:2px 0}.lib-detail .note{background:#fff7ed;border-radius:8px;padding:4px 8px}.lib-detail .url{word-break:break-all}.lib-vars{border-collapse:collapse;font-size:15px}.lib-vars td{border-bottom:1px solid #e2e8f0;padding:4px 10px 4px 0;vertical-align:top}.lib-vars .sym{font:italic 17px Times New Roman,serif}.lib-vars .unit{white-space:nowrap}.lib-app{border-left:3px solid #cbd5e1;padding:2px 0 6px 10px;margin:4px 0}.lib-app[data-basis=quantified]{border-left-color:#22c55e}.lib-detail button.go{align-self:flex-start;min-height:44px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-size:15px;padding:0 16px;cursor:pointer}.formula-panel .lib-links{display:flex;flex-direction:column;gap:4px;padding:6px 8px;border-radius:10px;background:#f1f5f9}.formula-panel .lib-links small{color:#475569;font-size:12px}.formula-panel button.lib-link{min-height:40px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;background:#fff;padding:4px 10px;font-size:14px}@media(max-width:760px){.lib-list{width:100%;border-right:0}.lib-list.has-detail{display:none}}.lib-list .chip.status{min-height:0;padding:2px 8px;font-size:12px;cursor:default}.lib-list .chip.board{align-self:flex-start;flex:0 0 auto;height:44px;min-height:44px;white-space:nowrap}.lib-list .chip{flex-shrink:0}.ink-review{display:grid;gap:6px}.ink-preview{width:100%;max-height:120px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;touch-action:manipulation}.ink-preview .tbox{fill:#94a3b814;stroke:#94a3b8;cursor:pointer}.ink-preview .tbox.unsure{fill:#f59e0b24;stroke:#d97706;stroke-dasharray:4 3}.ink-preview .tbox.fixed{fill:#16a34a1a;stroke:#16a34a;stroke-dasharray:none}.ink-preview .tbox.on{stroke:#2563eb;stroke-width:3;fill:#2563eb1f}.formula-panel .tokens{gap:4px}.formula-panel button.tok{min-width:40px;min-height:48px;padding:0 8px;font:600 22px Times New Roman,serif;background:#f1f5f9;border:2px solid transparent}.formula-panel button.tok sup,.formula-panel button.tok sub{font-size:.65em}.formula-panel button.tok.unsure{background:#fffbeb;border:2px dashed #d97706}.formula-panel button.tok.fixed{background:#f0fdf4;border-color:#16a34a}.formula-panel button.tok.on{border:2px solid #2563eb;background:#eff6ff}.formula-panel button.near{background:#eef2ff;color:#3730a3;text-align:left}.tok-editor{display:grid;gap:6px;padding:8px;border-radius:10px;background:#f8fafc;border:1px solid #cbd5e1}.tok-editor .row small{color:#64748b}.formula-panel .tok-editor .alts button{min-width:48px;font:600 20px Times New Roman,serif}.formula-panel .tok-editor .alts button.ctx{font:15px system-ui,sans-serif;background:#eef2ff;color:#3730a3}.formula-panel .tok-editor .roles button.on{background:#2563eb;color:#fff}.type-box{display:grid;gap:6px}.type-box input{flex:1;min-width:0;min-height:44px;font:22px Times New Roman,serif;padding:0 10px;border:1px solid #94a3b8;border-radius:10px}.type-box .keys{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:4px}.formula-panel .type-box .keys button{min-width:0;padding:0;font:18px Times New Roman,serif;background:#fff;border:1px solid #cbd5e1}.formula-panel .type-box .keys button.mod{background:#e0e7ff}.rewrite-pad{display:grid;gap:6px}.rewrite-pad canvas{width:100%;height:150px;background:#fff;border:2px solid #cbd5e1;border-radius:10px;touch-action:none}.sug-box{display:grid;gap:6px;padding:8px 10px;border-radius:12px;background:#f0f9ff;border:1px solid #bae6fd}.sug-box .sug-head strong{flex:1}.sug-box .sug-subjects{display:inline-flex;gap:4px;flex-wrap:wrap}.formula-panel .sug-box button.chip{min-height:36px;padding:0 10px;font-size:13px;background:#e0f2fe}.formula-panel .sug-box button.chip.on{background:#0369a1;color:#fff}.sug-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}.sug-row{display:grid;gap:2px;padding:6px 8px;border-radius:10px;background:#fff;border-left:4px solid #94a3b8}.sug-row.rel-exact,.sug-row.rel-alt{border-color:#16a34a}.sug-row.rel-similar{border-color:#f59e0b}.sug-row.rel-shape,.sug-row.rel-reverse,.sug-row.rel-coef{border-color:#7c3aed}.sug-f{font:italic 20px Times New Roman,serif}.sug-f.big{font-size:26px}.sug-row small{color:#475569;font-size:12px}.sug-row .sug-why{color:#334155}.sug-row .simst.t-library{color:#15803d;font-weight:600}.sug-row .simst.t-none{color:#94a3b8}.sug-def{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.formula-panel .sug-row button{min-height:40px}.sug-none p{margin:0 0 6px;color:#92400e}.sug-search input{width:100%;min-height:44px;border:2px solid #cbd5e1;border-radius:10px;padding:0 10px;font-size:16px}.sug-preview h4{margin:4px 0 0;font-size:13px}.sug-preview p{margin:0}.sug-preview ul{margin:0;padding-left:18px}.sug-preview .chip.review{padding:1px 6px;border-radius:6px;background:#fef3c7;color:#92400e}.geo .geo-info{position:absolute;left:10px;top:10px;z-index:2;max-width:min(520px,calc(100% - 20px));display:grid;gap:6px;padding:10px 12px;border-radius:12px;background:#ffffffe6;color:#0f172a;box-shadow:0 4px 16px #0f172a1f;font-size:16px;pointer-events:none}.geo .geo-given{color:#475569;font-size:14px}.geo .geo-status{font-weight:600}.geo .geo-status.warn{color:#b91c1c}.geo .geo-ratios{display:flex;flex-wrap:wrap;gap:14px;font:italic 17px Times New Roman,serif;font-weight:600}.geo .geo-sel{color:#334155;font-size:15px}.geo .geo-info{max-height:calc(100% - 20px);overflow:auto;pointer-events:auto}.geo .geo-details{display:grid;gap:4px;font-size:15px;color:#1e293b;pointer-events:auto}.geo .geo-edges{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.geo .geo-edges label{font:italic 600 17px Times New Roman,serif;display:inline-flex;align-items:center;gap:4px}.geo .geo-edges select{min-height:40px;min-width:64px;font-size:16px;border-radius:8px;border:2px solid #cbd5e1;background:#f8fafc;color:#0f172a}.geo .geo-err{color:#b91c1c;font-weight:600}.geo .geo-pt{display:inline-block;margin-right:12px}.geo .bar.bottom .note{color:#94a3b8;font-size:14px}@media(min-width:1800px)and (pointer:coarse){.geo .geo-info{font-size:22px;max-width:760px}.geo .geo-ratios{font-size:24px}.geo .geo-given,.geo .geo-sel{font-size:19px}}.geo .geo-modes{display:inline-flex;gap:4px}.geo .geo-stroke{color:#0f766e;font-weight:600;font-size:15px}.geo .sim-view[data-mode=construct],.geo .sim-view[data-mode=write]{cursor:crosshair}.geo .geo-ai{position:absolute;right:10px;top:10px;z-index:3;width:min(440px,calc(100% - 20px));max-height:calc(100% - 20px);overflow:auto;display:grid;gap:8px;padding:12px 14px;border-radius:14px;background:#fff;color:#0f172a;box-shadow:0 8px 30px #0f172a40;font-size:15px}.geo .geo-ai .head{display:flex;justify-content:space-between;align-items:center}.geo .geo-ai textarea{width:100%;box-sizing:border-box;font:16px system-ui,sans-serif;padding:8px 10px;border:2px solid #cbd5e1;border-radius:10px;resize:vertical}.geo .geo-ai button{min-height:44px;border:0;border-radius:10px;background:#e2e8f0;color:#0f172a;font-size:15px;padding:0 14px;cursor:pointer}.geo .geo-ai button.go,.geo .geo-ai button.on{background:var(--accent);color:#fff}.geo .geo-ai button.link{background:none;min-height:32px}.geo .geo-ai input{min-height:40px;width:7em;margin-left:8px;font-size:16px;border:2px solid #cbd5e1;border-radius:8px;padding:0 8px}.geo .geo-ai .geo-ai-q{display:grid;gap:8px}.geo .geo-ai .geo-ai-choice{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.geo .geo-ai .geo-ai-ev code{margin:0 4px;padding:1px 4px;background:#f1f5f9;border-radius:4px;font-size:13px}.geo .geo-ai .warn{color:#b91c1c;font-weight:600}.geo .geo-ai .note{color:#475569;font-size:14px}.formula-chip.smart-card{flex-direction:column;align-items:stretch;gap:5px;width:min(380px,calc(100% - 24px));font-size:14px;max-height:calc(100% - 2 * var(--btn) - 60px);overflow:auto;padding:10px 10px 8px 14px}.smart-card .sb-head{display:flex;align-items:center;gap:8px}.smart-card .sb-head strong{flex:1;font-size:16px}.smart-card .sb-read{font:italic 16px Times New Roman,serif;color:#cbd5e1}.smart-card .sb-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}.smart-card .sb-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:10px;background:#1e293b}.smart-card .sb-row.board{background:#0f2a4a}.smart-card .sb-t{flex:1;display:grid;gap:2px;min-width:0}.smart-card .sb-t small{color:#94a3b8;font-size:12px}.smart-card .sb-row button{background:#334155}.smart-card .chip.review{background:#fef3c7;color:#78350f;border-radius:6px;padding:0 5px}.smart-card .sb-foot{display:flex;gap:6px;flex-wrap:wrap}.smart-card .sb-note{color:#94a3b8;font-size:12px}.embed-layer{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;z-index:1}.embed{position:absolute;transform-origin:0 0;pointer-events:auto;touch-action:none;display:flex;flex-direction:column;background:#fff;border:1.5px solid #93c5fd;border-radius:12px;box-shadow:0 6px 22px #0f172a2e;overflow:hidden;-webkit-user-select:none;user-select:none}.embed-bar{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 4px 0 10px;background:#eff6ff;color:#1e3a8a;cursor:grab;font-size:15px}.embed-bar .spacer{flex:1}.embed-bar .grip{color:#93c5fd}.embed-bar button{min-width:40px;min-height:36px;border:0;border-radius:8px;background:transparent;color:#1e3a8a;font-size:17px;cursor:pointer}.embed-body{flex:1;min-height:0;position:relative}.embed-size{position:absolute;right:0;bottom:0;width:26px;height:26px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 50%,#93c5fd 50%)}.py-embed{display:flex;flex-direction:column;height:100%}.py-embed-f{padding:4px 10px;font:italic 15px Times New Roman,serif;color:#0f172a;line-height:1.25}.py-embed-f .num{font-size:16px}.py-embed-svg{flex:1 1 160px;min-height:140px;width:100%;touch-action:none}.py-embed-params{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:2px 30px 2px 10px}.embed-body{overflow:hidden}.py-embed-params .param{display:inline-flex;align-items:center;gap:2px}.py-embed-params button{min-width:34px;min-height:34px;padding:0 6px;border:0;border-radius:8px;background:#e2e8f0;font-size:17px}.py-embed-params output{min-width:30px;text-align:center;font-variant-numeric:tabular-nums}.py-embed-hint{padding:0 10px 4px;color:#64748b;font-size:12px}.py-embed .py-embed-hint{display:none}.m3-embed{display:flex;flex-direction:column;height:100%}.m3-view{flex:1 1 160px;min-height:140px;position:relative}.m3-view canvas{position:absolute;top:0;right:0;bottom:0;left:0}.py-embed-f.small-f{font:14px system-ui,sans-serif}.geo-desc.warn{color:#b45309}.m3-paused{flex:1;width:100%;height:100%;border:0;background:#f1f5f9;color:#334155;font-size:15px}.py-embed-params small{color:#475569;font-size:12px}.embed.min{height:auto}.embed.min .embed-bar{border-radius:12px}.m3-slot{display:flex;flex-direction:column;height:100%}.m3-slot>.m3-embed{flex:1;min-height:0}.smart-card .sb-assume{color:#fde68a;font-size:12px}.gm-row{display:flex;flex-wrap:wrap;gap:4px;padding:2px 30px 2px 8px}.gm{border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#0f172a;font-size:13px;padding:2px 7px;min-height:30px;cursor:pointer}.gm.on{background:#ede9fe;border-color:#a78bfa}.gm-l{font-style:italic}.gm-formula{margin:2px 8px;padding:4px 8px;border-radius:8px;background:#faf5ff;color:#4c1d95;font:13px Times New Roman,serif}.gprop{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:2px 30px 4px 8px;padding:4px;border-radius:10px;background:#f1f5f9;font-size:13px}.gprop button{min-width:34px;min-height:32px;border:0;border-radius:8px;background:#e2e8f0;font-size:14px;padding:0 8px}.gprop button.on{background:#1d4ed8;color:#fff}.gprop button:disabled{opacity:.4}.gprop .spacer{flex:1}.gprop select{min-height:32px;border-radius:8px}.gseg{display:inline-flex;gap:2px}.gwarn{flex-basis:100%;color:#b45309;font-size:12px}.gsel{align-self:flex-start;margin:0 8px 4px;border:0;background:transparent;color:#1d4ed8;font-size:13px;min-height:28px}.g4-tools,.g4-pts{display:flex;flex-wrap:wrap;gap:4px;padding:2px 8px}.g4-tools button,.g4-pts button{min-height:32px;padding:0 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;font-size:13px}.g4-tools button.on,.g4-pts button.sel{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.g4-pts button.hi,.g4-deps li.hi{background:#fef3c7}.g4-deps{margin:2px 8px;padding-left:20px;font-size:13px;max-height:84px;overflow-y:auto;flex:0 0 auto}.g4-deps li{padding:1px 2px}.g4-name{border:0;background:transparent;font-weight:600;color:#0f766e;min-height:28px;padding:0 2px}.g4-del{border:0;background:transparent;color:#b91c1c;min-height:28px;min-width:28px}.g4-why{color:#b45309}.les-panel{position:fixed;top:56px;right:8px;bottom:8px;width:min(380px,calc(100vw - 16px));z-index:60;display:flex;flex-direction:column;gap:6px;padding:10px;background:#fff;color:#0f172a;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 8px 28px #0f172a2e}.les-panel header{display:flex;align-items:center;gap:8px}.les-panel header small{flex:1;color:#475569}.les-panel header button{min-width:40px;min-height:40px;border:0;background:transparent;font-size:18px}.les-search{min-height:44px;border:2px solid #cbd5e1;border-radius:10px;padding:0 10px;font-size:16px}.les-grades,.les-subs{display:flex;flex-wrap:wrap;gap:4px}.les-grades button,.les-subs button{min-width:40px;min-height:40px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;font-size:15px}.les-subs button{padding:0 12px}.les-grades button.on,.les-subs button.on{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.les-list{flex:1;min-height:0;overflow-y:auto;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.les-list ul{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}.les-th{display:flex;justify-content:space-between;gap:8px}.les-th small,.les-none{color:#64748b}.les-item{display:grid;grid-template-columns:1fr auto;gap:2px 8px;align-items:center;padding:6px 8px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.les-item .les-q{grid-column:1;color:#475569}.les-place{grid-column:2;grid-row:1 / span 2;min-height:40px;padding:0 10px;border:0;border-radius:8px;background:#1d4ed8;color:#fff;font-size:14px}.les-nat{margin-left:6px;padding:0 6px;border-radius:6px;font-size:11px;background:#e0f2fe;color:#075985}.les-nat.CONCEPT{background:#fef3c7;color:#92400e}.les-nat.QUANT{background:#dcfce7;color:#166534}.g4-group{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;margin-right:6px}.g4-group>small{color:#64748b;font-weight:600}.g4-val{color:#1d4ed8}.g4-gbtn{font-weight:600;background:#f1f5f9!important}.g4-gbtn.on{background:#e0e7ff!important;border-color:#6366f1!important;color:#1e1b4b!important}.tri-fams{display:flex;flex-wrap:wrap;gap:4px 10px;padding:0 8px 2px;font-size:13px;font-weight:600}.gr-sliders{display:flex;flex-wrap:wrap;gap:2px 12px;padding:2px 8px}.gr-sl{display:inline-flex;align-items:center;gap:6px;font-size:13px}.gr-sl input[type=range]{width:120px;min-height:32px}.gr-sl output{min-width:34px;font-variant-numeric:tabular-nums}.ph-play{min-width:40px;min-height:36px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;font-size:16px}.ph-note{color:#b45309}.ceq-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;padding:6px 8px;font-size:18px}.ceq-term{display:inline-flex;align-items:center;gap:4px}.ceq-coef{display:inline-flex;flex-direction:column;align-items:center}.ceq-coef button{min-width:30px;min-height:22px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc;font-size:13px;line-height:1}.ceq-coef output{font-weight:700;color:#1d4ed8;min-width:22px;text-align:center}.ceq-sp{display:inline-flex;flex-direction:column;align-items:center;font-weight:600}.ceq-ox{color:#7c3aed;font-size:11px;font-weight:500}.ceq-arrow,.ceq-plus{color:#475569;padding:0 2px}.ceq-atoms{margin:2px 8px;border-collapse:collapse;font-size:13px}.ceq-atoms th,.ceq-atoms td{padding:1px 10px;border-bottom:1px solid #e2e8f0;text-align:center}.ceq-atoms tr.ok td{color:#15803d}.ceq-atoms tr.bad td{color:#b91c1c;font-weight:700}.chip{min-height:34px;padding:0 8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font-size:13px}.chip.on{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.lb svg line,.lb svg polyline,.lb svg polygon,.lb svg text,.lb svg path,.ph svg line,.ph svg polyline,.ph svg polygon,.ph svg text,.bs svg line,.bs svg polyline,.bs svg polygon,.bs svg text,.bs svg path,.gr svg line,.gr svg text,.gr svg path:not([data-testid=gr-area]){pointer-events:none}.embed.hide-measures .gm-row,.embed.hide-measures .gm-formula,.embed.hide-measures .py-embed-f,.embed.hide-measures .tri-fams,.embed.hide-measures .py-embed-hint{display:none}.les-depth{margin-left:6px;padding:0 6px;border-radius:6px;font-size:11px;background:#fee2e2;color:#991b1b}.ceq-pt{display:block;width:calc(100% - 16px);max-height:110px;margin:0 8px;background:#f8fafc;border-radius:8px}@media(pointer:coarse){.gr-sl input[type=range]{width:150px;min-height:44px}.chip,.g4-tools button,.g4-pts button,.gsel,.ph-play{min-height:44px}.ceq-coef button{min-width:40px;min-height:32px}.py-embed-params button{min-width:40px;min-height:40px}}.geo4>.m3-view{flex:1 0 180px}.g4-panel{flex:0 1 auto;min-height:0;max-height:58%;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.g4-pts button.free{border-color:#2563eb}.g4-pts button.dep{border-color:#f59e0b;border-style:dashed}.g4-legend{display:inline-flex;align-items:center;gap:4px;color:#64748b;font-size:11px;margin-left:4px}.g4-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#2563eb}.g4-legend i.dep{background:#f59e0b;margin-left:6px}.bar .brand.ss-open{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;padding:0 4px;min-width:0;cursor:pointer}.embed.full{position:fixed;top:0;right:0;bottom:0;left:0;width:auto;height:auto;transform:none;z-index:50;border-radius:0;border:0}.embed.full .embed-bar{cursor:default;min-height:48px}.embed.full .fs-bar button{min-width:44px;min-height:40px;font-size:16px}.app.focus-mode .bar,.app.focus-mode .embed:not(.full){display:none}.app.focus-mode .embed-layer{z-index:40;overflow:visible}@media(min-aspect-ratio:4/3){.embed.full .geo4:not(.teach){display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,36%);grid-template-rows:auto minmax(0,1fr) auto}.embed.full .geo4:not(.teach)>.py-embed-f{grid-column:1 / -1}.embed.full .geo4:not(.teach)>.m3-view{grid-column:1;grid-row:2;min-height:0}.embed.full .geo4:not(.teach)>.gwarn{grid-column:1;grid-row:3}.embed.full .geo4:not(.teach)>.g4-panel{grid-column:2;grid-row:2 / 4;max-height:none;border-left:1px solid #e2e8f0}}.plan{margin:10px 0;padding:10px 12px;border:1.5px solid #93c5fd;border-radius:12px;background:#fff}.plan-head{display:flex;align-items:center;gap:8px}.plan-head h2{margin:0;font-size:17px;color:#1e3a8a}.plan-head .spacer{flex:1}.plan-note{color:#475569}.plan-pick{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:15px}.plan-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0;font-size:14px;color:#334155}.plan-sec{border-top:1px solid #e2e8f0;padding:8px 0}.plan-sec h3{margin:4px 0;font-size:16px}.plan-f{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}.plan-f code{background:#f1f5f9;border-radius:6px;padding:2px 6px;font-size:13px}.plan-m{display:flex;flex-direction:column;gap:3px;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px}.plan-m.on{border-color:#1d4ed8;background:#eff6ff}.plan-m button{align-self:flex-start}.plan-none{color:#92400e;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.embed-body:has(.geo4.teach){container-type:inline-size}.geo4.teach{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto minmax(160px,1fr) auto;height:100%;background:#faf8f3;color:#15213b}.geo4.teach>.tch-hint{grid-column:1 / -1;display:flex;gap:8px;align-items:flex-start;padding:8px 12px;background:#e6edf5;color:#1b2a4a;font-size:14px;line-height:1.4;border-bottom:1px solid #d5deea}.geo4.teach>.tch-hint svg{flex:none;margin-top:1px;color:#2c5a8a}.geo4.teach>.tch-rail{grid-row:2;display:flex;flex-direction:column;gap:4px;padding:6px;border-right:1px solid #e5e0d4;background:#f3f0e8;overflow-y:auto}.geo4.teach>.m3-view{grid-row:2;grid-column:2;min-height:0}.geo4.teach>.gwarn{grid-column:1 / -1;padding:4px 12px}.geo4.teach>.tch-under{grid-column:1 / -1;max-height:40%;overflow-y:auto;padding:6px 12px 10px;border-top:1px solid #e5e0d4;touch-action:pan-y}.tch-tool{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:#4a556f;text-align:left;font:inherit;cursor:pointer}.tch-tool:hover{background:#efebe1}.tch-tool.on{background:#1b2a4a;color:#fff}.tch-tool span{display:none;flex-direction:column;gap:1px;min-width:0}.tch-tool b{font-size:15px;font-weight:600}.tch-tool small{font-size:12px;line-height:1.3;opacity:.8}.tch-hist{display:flex;flex-direction:column;gap:4px;margin-top:auto;padding-top:6px;border-top:1px solid #e5e0d4}.tch-hist button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;white-space:nowrap;border:1px solid #e5e0d4;border-radius:10px;background:#fff;color:#15213b;font:inherit;font-size:14px;cursor:pointer}.tch-hist button span{display:none}.tch-hist button:disabled{opacity:.4}.tch-status{min-height:28px;font-size:14.5px;line-height:1.45;display:flex;flex-direction:column;gap:2px}.tch-info{color:#15213b}.tch-note{color:#1b2a4a;font-weight:600}.tch-muted{color:#7b8398}.tch-results{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.tch-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#f9e8e6;color:#b3261e;font-size:14px;font-weight:600}.tch-badge.ok{background:#e3f1ea;color:#2f7a57}.tch-badge small{font-weight:400;opacity:.85}.tch-hide{display:flex;flex-direction:column;gap:2px;margin:6px 0;padding:8px 10px;border:1px solid #e5e0d4;border-radius:10px;background:#fff}.tch-hrow{display:flex;align-items:center;gap:8px;min-height:40px;font-size:14.5px}.tch-hrow input{width:22px;height:22px}.tch-hrow small{color:#7b8398}.tch-adv{margin-top:6px}.tch-adv>summary{min-height:44px;display:flex;align-items:center;gap:6px;color:#4a556f;font-size:13.5px;cursor:pointer;list-style:none}.tch-adv>summary:before{content:"▸";font-size:14px}.tch-adv[open]>summary:before{content:"▾"}.tch-adv .g4-panel{max-height:none}@container (min-width: 820px){.geo4.teach{grid-template-columns:236px minmax(0,1fr) 300px;grid-template-rows:auto minmax(0,1fr)}.geo4.teach>.tch-rail{grid-row:2}.geo4.teach>.m3-view{grid-row:2;grid-column:2}.geo4.teach>.tch-under{grid-row:2;grid-column:3;max-height:none;border-top:0;border-left:1px solid #e5e0d4}.geo4.teach>.gwarn{grid-row:3}.tch-tool span{display:flex}.tch-tool{align-items:flex-start}.tch-tool svg{margin-top:2px}.tch-hist{flex-direction:row}.tch-hist button{flex:1}.tch-hist button span{display:inline;font-size:12px}}.tch-quick{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0}.tch-quick small{width:100%;color:#4a556f;font-size:13px}.vz-chipq{min-height:44px;padding:0 14px;border-radius:999px;border:1px solid #cfc8b8;background:#fff;color:#15213b;font:600 15px inherit;font-family:inherit;cursor:pointer}.vz-chipq:hover{background:#efebe1}.xl{display:flex;flex-direction:column;gap:8px;min-height:0;color:#15213b}.xl-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.xl-tabs button{display:flex;flex-direction:column;align-items:center;gap:1px;min-height:48px;padding:4px 2px;border:1px solid #e5e0d4;border-radius:10px;background:#fff;color:#4a556f;font:600 12.5px system-ui,sans-serif;line-height:1.15;cursor:pointer}.xl-tabs button b{width:20px;height:20px;border-radius:50%;background:#efebe1;color:#15213b;font-size:12px;display:grid;place-items:center}.xl-tabs button.on{background:#1b2a4a;border-color:#1b2a4a;color:#fff}.xl-tabs button.on b{background:#fff;color:#1b2a4a}.xl-body{display:flex;flex-direction:column;gap:8px;font-size:14.5px;line-height:1.5}.xl-body p{margin:0}.xl-body ul{margin:0;padding-left:18px}.xl-body li{margin:2px 0}.xl-card{border:1px solid #e5e0d4;border-radius:10px;background:#fff;padding:8px 10px}.xl-card-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:4px}.xl-tag{font-size:11px;font-weight:600;padding:1px 7px;border-radius:999px}.xl-tag.computed{background:#e3f1ea;color:#2f7a57}.xl-tag.illus{background:#f3f0e8;color:#7b6a3a}.xl-tag.exp{background:#e6edf5;color:#2c5a8a}.xl-tag.review{background:#fdf0dc;color:#9a5b00}.xl-num{font-variant-numeric:tabular-nums;font-weight:700}.xl-warn{color:#b3261e;font-weight:600}.kit,.tit{display:grid;grid-template-columns:minmax(0,1fr);height:100%;background:#faf8f3;color:#15213b;overflow:hidden}.embed-body:has(.kit),.embed-body:has(.tit){container-type:inline-size}.kit-main,.tit-main{position:relative;display:flex;flex-direction:column;min-height:0}.kit-svg,.tit-svg{flex:1 1 200px;width:100%;min-height:180px;touch-action:manipulation;-webkit-user-select:none;user-select:none}.kit-side,.tit-side{min-height:0;overflow-y:auto;padding:8px 10px 12px;border-top:1px solid #e5e0d4;touch-action:pan-y}.kit-pal{position:absolute;left:8px;right:8px;bottom:8px;display:flex;flex-direction:column;gap:6px;padding:8px 10px;border:1px solid #cfc8b8;border-radius:12px;background:#fffffff7;box-shadow:0 6px 20px #0f172a1f;font-size:14px}.kit-row{display:flex;flex-wrap:wrap;gap:6px}.kit-sl{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px}.kit-sl input[type=range]{flex:1 1 160px;min-height:40px}.kit-flow{display:flex;align-items:center;gap:8px;min-height:40px;font-size:14px}.kit-flow input{width:22px;height:22px}@container (min-width: 820px){.kit,.tit{grid-template-columns:minmax(0,1fr) 360px}.kit-side,.tit-side{border-top:0;border-left:1px solid #e5e0d4}}.tit-ctrl{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 8px}.tit-ctrl input[type=range]{flex:1 1 160px;min-height:40px}.tit-note{margin:0;padding:0 8px 6px;font-size:12px;color:#4a556f;display:flex;flex-wrap:wrap;gap:6px;align-items:center}.tit-step{display:inline-flex;align-items:center;gap:4px;font-size:13px}.tit-step button{min-width:40px;min-height:40px;border:0;border-radius:8px;background:#efebe1;font-size:17px}.tit-step output{min-width:36px;text-align:center;font-variant-numeric:tabular-nums}.gd-bar{display:flex;flex-direction:column;gap:6px;padding:6px 8px;border-top:1px solid #e5e0d4;background:#f3f0e8;color:#15213b;font-size:14px}.gd-bar.idle{flex-direction:row;align-items:center;gap:10px}.gd-bar.idle small{color:#4a556f;font-size:12.5px;line-height:1.3}.gd-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.gd-btn{min-width:48px;min-height:48px;padding:0 12px;border-radius:12px;border:1px solid #cfc8b8;background:#fff;color:#15213b;font:600 15px system-ui,sans-serif;cursor:pointer;touch-action:manipulation}.gd-btn.main{background:#1b2a4a;border-color:#1b2a4a;color:#fff;min-width:64px}.gd-btn:disabled{opacity:.4;cursor:default}.gd-title{flex:1 1 160px;min-width:0;font-size:14px;line-height:1.3}.gd-title b{font-variant-numeric:tabular-nums;margin-right:4px}.gd-dots{display:flex;gap:4px}.gd-dots i{width:9px;height:9px;border-radius:50%;background:#d8d2c4}.gd-dots i.on{background:#2f7d4f}.gd-dots i.cur{background:#1b2a4a}.gd-manual{display:flex;flex-direction:column;gap:6px}.gd-manual b{font-size:14px;color:#8a4b08}.gd-manual small{color:#4a556f}.gd-card{display:flex;flex-direction:column;gap:8px;font-size:14.5px;line-height:1.5}.gd-card p{margin:0}.gd-card-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:15.5px}.gd-ok{font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:#fde7e7;color:#8a1c1c}.gd-ok.on{background:#e3f2e8;color:#1f6b3d}.gd-steps{margin:0;padding-left:20px;font-size:13px;color:#4a556f}.gd-steps li.on{color:#1f6b3d}.gd-steps li.cur{color:#15213b;font-weight:700}.kit-hl{pointer-events:none;animation:gd-pulse 1.4s ease-in-out infinite}@keyframes gd-pulse{50%{opacity:.1}}@media(prefers-reduced-motion:reduce){.kit-hl{animation:none}}.geo4.teach>.tch-guide{grid-column:1 / -1}.geo4.teach>.tch-guide .gd-bar{border-top:1px solid #e5e0d4}.geo4.teach>.tch-under{order:9}@container (min-width: 820px){.geo4.teach{grid-template-rows:auto minmax(0,1fr) auto}.geo4.teach>.tch-rail{grid-row:2 / 4}.geo4.teach>.tch-under{grid-row:2 / 4}.geo4.teach>.tch-guide{grid-row:3;grid-column:2}.geo4.teach>.gwarn{grid-row:4}.geo4.teach.gd-wide{grid-template-columns:236px minmax(0,1fr)}.geo4.teach.gd-wide>.tch-under{display:none}.kit.gd-wide,.tit.gd-wide{grid-template-columns:minmax(0,1fr)}.kit.gd-wide>.kit-side,.tit.gd-wide>.tit-side{display:none}}.kit.gd-on .kit-main>.kit-pal{position:static;margin:0 8px 6px;order:1}.kit-main>.gd-bar{order:2}.kit.gd-wide>.kit-side,.tit.gd-wide>.tit-side,.geo4.teach.gd-wide>.tch-under{display:none}.kit.gd-wide,.tit.gd-wide{grid-template-columns:minmax(0,1fr)}.xl-hide{align-self:flex-end;min-height:40px;padding:0 10px;border:0;background:none;color:#4a556f;font:500 13px system-ui,sans-serif;cursor:pointer}.xl-show{position:absolute;top:8px;right:8px;z-index:3;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid #cfc8b8;background:#fffffff2;color:#15213b;font:600 13.5px system-ui,sans-serif;box-shadow:0 4px 14px #0f172a1a;cursor:pointer}.geo4.teach>.m3-view{position:relative}.xl-muted{color:#4a556f;font-size:13px}.xl-table{width:100%;border-collapse:collapse;font-size:13.5px;font-variant-numeric:tabular-nums;margin:4px 0}.xl-table th,.xl-table td{padding:4px 6px;border-bottom:1px solid #ece7dc;text-align:left}.xl-table th{color:#4a556f;font-weight:600}.xl-steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}.xl-steps li{display:flex;align-items:flex-start;gap:8px;padding:6px 8px;border-radius:8px;background:#faf8f3;border:1px solid #ece7dc}.xl-steps li .mk{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;background:#e3f2e8;color:#1f6b3d}.xl-steps li.no .mk{background:#fde7e7;color:#8a1c1c}.xl-steps li span{flex:1}.xl-steps li small{display:block;color:#4a556f;font-size:12px}.xl-steps li button{flex:none;min-height:32px;border:1px solid #cfc8b8;border-radius:8px;background:#fff;font-size:12px;cursor:pointer}.xl-concl{padding:8px 10px;border-radius:10px;font-weight:600}.xl-concl.ok{background:#e3f2e8;color:#1f6b3d}.xl-concl.no{background:#fdf0e1;color:#8a4b08}.xl-eq{font-size:16px;font-weight:700;text-align:center;padding:6px;letter-spacing:.02em}.xl-swatch{display:inline-block;width:16px;height:16px;border-radius:4px;border:1px solid #cfc8b8;vertical-align:-3px;margin-right:4px}.embed-body:has(.deep){container-type:inline-size}.deep{display:grid;grid-template-columns:minmax(0,1fr);height:100%;background:#faf8f3;color:#15213b}.deep-main{position:relative;min-height:0;overflow:auto}.deep-main>.py-embed{height:100%}.deep-side{min-height:0;overflow-y:auto;padding:8px 10px 12px;border-top:1px solid #e5e0d4;touch-action:pan-y}.deep.deep-hidden>.deep-side{display:none}@container (min-width: 820px){.deep{grid-template-columns:minmax(0,1fr) 380px}.deep-side{border-top:0;border-left:1px solid #e5e0d4}.deep.deep-hidden{grid-template-columns:minmax(0,1fr)}}.deep-svg{width:100%;height:auto;display:block;margin:4px 0}.deep-bbt td,.deep-bbt th{text-align:center}.deep-list{margin:0;padding-left:18px}.deep-list li{margin:4px 0}.deep-list .vz-chipq{min-height:34px;padding:0 10px;font-size:13px;margin-left:6px}.deep .gm{min-height:44px;padding:4px 12px;font-size:14px}.deep .gprop button,.deep .gsel{min-width:48px;min-height:48px}@media(pointer:coarse){.embed.full .gm,.embed.full .gsel,.embed.full .xl-hide,.embed.full .ph-play{min-height:44px}.embed.full .gm{padding:4px 10px}.embed.full .ph-play,.embed.full .chip{min-width:44px}.embed.full .ceq-coef button,.embed.full .py-embed-params button,.embed.full .gprop button,.embed.full button[class^=mol-],.embed.full [data-testid^=mol-]{min-width:44px;min-height:44px}.embed.full .gprop select{min-height:44px}.embed.full .tit-step button,.embed.full [data-testid^=grp-]{min-width:44px;min-height:44px}.embed.full .param select,.embed.full .embed-body select{min-height:44px;min-width:44px}.embed.full .g4-name,.embed.full .g4-del,.embed.full .g4-pts button{min-width:44px;min-height:44px}.embed.full input[type=checkbox]{width:22px;height:22px}.embed.full label:has(>input[type=checkbox]){display:inline-flex;align-items:center;gap:6px;min-height:44px}}.embed.full .ceq-pt{max-height:none;height:min(36vh,300px)}@container (min-width: 600px) and (max-width: 819px){.deep{grid-template-columns:minmax(0,1fr) 280px}.deep-side{border-top:0;border-left:1px solid #e5e0d4}.deep.deep-hidden{grid-template-columns:minmax(0,1fr)}.deep .xl-tabs button{font-size:12px}}.tch-objs{display:flex;flex-direction:column;gap:2px}.tch-objs .tch-quick{margin:2px 0}.tch-objs .tch-quick small{width:auto;min-width:44px}.tch-near{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;border-radius:10px;background:#fef3c7}.tch-rel{padding:8px 10px;border-radius:12px;border:1px solid #e5e0d4;background:#fff;display:flex;flex-direction:column;gap:4px}.tch-rel.ok{border-color:#86efac}.tch-rel.no{border-color:#fcd34d;background:#fffbeb}.tch-rel ul{margin:0;padding-left:18px;font-size:14px}.tch-rel-v{color:#4a556f}.vz-chipq.on{background:#1b2a4a;color:#fff;border-color:#1b2a4a}.rv-wrap{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.rv-svg{flex:1 1 200px;max-width:300px;width:100%;height:auto;background:#f8fafc;border-radius:12px}.rv-side{flex:1 1 160px;display:flex;flex-direction:column;gap:6px}.rv-stage{font-size:15px;color:#1b2a4a}.rv-btns{display:flex;flex-wrap:wrap;gap:6px}.xl-tag.illus{background:#f1f5f9}.chemlab{display:flex;flex-direction:column;height:100%;min-height:0;background:#f4f1ea}.chemlab-bar{display:flex;align-items:center;gap:6px;padding:6px 8px;border-bottom:1px solid #e5e0d4;background:#faf8f3}.chemlab-eqbtn{min-height:44px;border:1px solid #e5e0d4;border-radius:10px;background:#fff;padding:0 12px;font:600 16px system-ui,sans-serif;color:#15213b}.chemlab-eqbtn b{margin-left:8px;font-size:13px}.chemlab-eqbtn b.ok{color:#15803d}.chemlab-eqbtn b.no{color:#b3261e}.chemlab-bar .spacer{flex:1}.chemlab-stage{position:relative;flex:1 1 auto;min-height:220px}.lab3d{position:absolute;top:0;right:0;bottom:0;left:0}.chemlab-stage .rv-svg{max-width:none;height:100%;width:100%}.chemlab-need{padding:16px}.chemlab-read{display:flex;flex-wrap:wrap;gap:4px 14px;padding:6px 10px;border-top:1px solid #e5e0d4;background:#faf8f3;font:13.5px system-ui,sans-serif;color:#4a556f;font-variant-numeric:tabular-nums}.chemlab-read b{color:#15213b}.chemlab-eq .py-embed{height:auto}.lab-pour{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.lab3d-wrap{position:absolute;top:0;right:0;bottom:0;left:0}.tit-main{position:relative}.tit-views{position:absolute;top:6px;left:6px;z-index:2;display:flex;gap:4px}.tit-stage{flex:1 1 200px;min-height:200px;display:flex;gap:0}.tit-stage.flat{display:block}.tit-stage.flat>.tit-svg{height:100%}.tit-3d{position:relative;flex:1 1 58%;min-width:0}.tit-svg.tit-graph{flex:0 1 42%;width:42%;height:auto;min-height:0}.lab-sol3d{position:relative;flex:1 1 220px;min-height:220px}.mol-prov{margin:2px 8px;padding:4px 8px;border-radius:8px;font-size:13px;background:#f1f5f9;color:#334155}.mol-prov.exp{background:#dcfce7;color:#14532d}.mol-prov.ideal,.mol-prov.vsepr{background:#fef9c3;color:#713f12}.mol-prov.illus{background:#f1f5f9}.mol-atom{margin:2px 8px;padding:6px 8px;border-radius:8px;background:#fff;border:1px solid #e5e0d4;font-size:13.5px}.tf-embed{min-height:0}.tf-embed .tf-svg{min-height:120px}.tf-status{flex:none;margin:4px 8px;padding:6px 10px;border-radius:8px;font:14px system-ui,sans-serif;background:#fff7ed;color:#9a3412}.tf-status.ok{background:#dcfce7;color:#166534}.tf-vec{position:relative;display:inline-block;padding-right:.1em}.tf-vec:before{content:"";position:absolute;left:.05em;right:.15em;top:.02em;border-top:1.4px solid currentColor}.tf-vec:after{content:"";position:absolute;right:-.05em;top:calc(-.2em + .7px);border:.22em solid transparent;border-left:.32em solid currentColor;border-right:0}.tf-svg *:not(.py-handle){pointer-events:none}.tf-svg .py-handle{pointer-events:auto}.xl-sm{display:none}@media(max-width:720px),(max-height:520px){.xl-lg{display:none}.xl-sm{display:inline}.deep,.kit,.tit,.geo4.teach{position:relative}.deep{grid-template-columns:minmax(0,1fr)!important}.deep>.deep-main{position:static;height:100%}.kit:not(.gd-on),.tit:not(.gd-on){grid-template-columns:minmax(0,1fr)!important}.geo4.teach{grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto auto!important}.geo4.teach>.tch-rail{grid-row:2!important}.geo4.teach>.m3-view{grid-row:2!important;grid-column:2!important}.geo4.teach>.tch-guide{grid-row:3!important;grid-column:1 / -1!important}.geo4.teach>.gwarn{grid-row:4!important}.deep:not(.deep-hidden)>.deep-side,.kit:not(.gd-wide)>.kit-side:has(>.xl),.tit:not(.gd-wide)>.tit-side:has(>.xl),.geo4.teach:not(.gd-wide)>.tch-under:has(>.xl){position:absolute;left:0;right:0;bottom:0;z-index:8;max-height:62%;overflow-y:auto;overscroll-behavior:contain;padding-top:0;border:1px solid #e5e0d4;border-bottom:0;border-radius:16px 16px 0 0;background:#faf8f3;box-shadow:0 -10px 28px #0f172a33}.deep-side .xl,.kit-side .xl,.tit-side .xl,.tch-under .xl{display:flex;flex-direction:column;gap:8px}.deep-side .xl-hide,.kit-side .xl-hide,.tit-side .xl-hide,.tch-under .xl-hide{order:-1;position:sticky;top:0;z-index:1;align-self:stretch;min-height:44px;margin:0 -10px;background:inherit;text-align:center;font-weight:600;border-bottom:1px solid #e5e0d4}.deep-side .xl-hide:before,.kit-side .xl-hide:before,.tit-side .xl-hide:before,.tch-under .xl-hide:before{content:"";display:block;width:40px;height:4px;margin:0 auto 4px;border-radius:2px;background:#cfc8b8}.xl-show{top:auto;bottom:10px;right:10px;min-height:44px;padding:0 16px;z-index:7}.deep>.deep-main .xl-show{position:absolute}.deep.deep-hidden>.deep-main{box-sizing:border-box;padding-bottom:60px}.kit.gd-wide:not(.gd-on)>.kit-main,.tit.gd-wide:not(.gd-on)>.tit-main,.geo4.teach.gd-wide:not(.gd-on){box-sizing:border-box;padding-bottom:60px}}@media(max-height:520px)and (min-width:721px){.deep:not(.deep-hidden)>.deep-side,.kit:not(.gd-wide)>.kit-side:has(>.xl),.tit:not(.gd-wide)>.tit-side:has(>.xl),.geo4.teach:not(.gd-wide)>.tch-under:has(>.xl){top:0;left:auto;width:min(420px,48%);max-height:none;border-radius:16px 0 0 16px;border:1px solid #e5e0d4;border-right:0;box-shadow:-10px 0 28px #0f172a33}}:root[data-theme] .embed :where(button:not(.py-handle)){background-color:var(--t-surface2);color:var(--t-text);border-color:var(--t-border-strong)}:root[data-theme] .embed :where(select,input:not([type=range]):not([type=checkbox])){background-color:var(--t-surface);color:var(--t-text);border-color:var(--t-border-strong)}:root[data-theme] .embed :where(label,output,small,p,li,td,th,h4,.param,.py-embed-params,.gr-sliders,.gm-row){color:inherit}:root[data-theme] .embed .embed-body,:root[data-theme] .embed .deep-main{background:var(--t-sim-bg);color:var(--t-sim-ink)}:root[data-theme] .embed :where(.embed-body,.deep-main) :where(button:not(.py-handle)){background-color:var(--t-sim-panel);color:var(--t-sim-ink);border-color:var(--t-sim-panel-border)}:root[data-theme] .embed :where(.deep-side) :where(button:not(.py-handle)){background-color:var(--t-surface2);color:var(--t-text);border-color:var(--t-border-strong)}:root[data-theme] .embed .deep-side{background:var(--t-bg);color:var(--t-text)}:root[data-theme],:root[data-theme] body,:root[data-theme] #root{background:var(--t-bg)}:root[data-theme] .bar{background:var(--t-bar);color:var(--t-bar-fg)}:root[data-theme] .bar button,:root[data-theme] .bar select{background:var(--t-bar-btn);color:var(--t-bar-fg)}:root[data-theme] .bar button.on{background:var(--t-accent);color:var(--t-accent-ink)}:root[data-theme] .loading{color:var(--t-text2)}:root[data-theme] .embed{background:var(--t-surface);border-color:var(--t-border-strong);color:var(--t-text)}:root[data-theme] .embed-bar{background:var(--t-surface2);color:var(--t-heading)}:root[data-theme] .embed-bar button{color:var(--t-heading)}:root[data-theme] .embed.full{background:var(--t-bg)}:root[data-theme] .embed.full .fs-bar{background:var(--t-surface);color:var(--t-text);border-bottom-color:var(--t-border)}:root[data-theme] .embed.full .fs-bar button{color:var(--t-text2)}:root[data-theme] .embed.full .fs-bar button:hover{background:var(--t-hover);color:var(--t-text)}:root[data-theme] .embed.full .fs-bar button.on{background:var(--t-accent-soft);color:var(--t-accent)}:root[data-theme] .embed.full .fs-bar .fs-sep{background:var(--t-border)}:root[data-theme] .py-embed-f,:root[data-theme] .gr-sl,:root[data-theme] .gr-sl output{color:var(--t-sim-ink)}:root[data-theme] .gm{background:var(--t-sim-panel);border-color:var(--t-sim-panel-border);color:var(--t-sim-ink)}:root[data-theme] .gm.on{border-color:var(--t-sim-line)}:root[data-theme] .gm-formula{color:var(--t-sim-ink2)}:root[data-theme] .deep{background:var(--t-bg);color:var(--t-text)}:root[data-theme] .deep-side{border-color:var(--t-border)}:root[data-theme] .xl{color:var(--t-text)}:root[data-theme] .xl-tabs button{background:var(--t-surface);border-color:var(--t-border);color:var(--t-text2)}:root[data-theme] .xl-tabs button b{background:var(--t-surface2);color:var(--t-text)}:root[data-theme] .xl-tabs button.on{background:var(--t-accent);border-color:var(--t-accent);color:var(--t-accent-ink)}:root[data-theme] .xl-tabs button.on b{background:var(--t-accent-ink);color:var(--t-accent)}:root[data-theme] .xl-card{background:var(--t-surface);border-color:var(--t-border);color:var(--t-text)}:root[data-theme] .xl-muted,:root[data-theme] .xl-hide{color:var(--t-text2)}:root[data-theme] .xl-show{background:var(--t-surface);border-color:var(--t-border-strong);color:var(--t-text)}:root[data-theme] .xl-table th,:root[data-theme] .xl-table td{border-bottom-color:var(--t-border)}:root[data-theme] .xl-table th{color:var(--t-text2)}:root[data-theme] .vz-chipq{background:var(--t-surface);border-color:var(--t-border-strong);color:var(--t-text)}:root[data-theme] .vz-chipq:hover{background:var(--t-hover)}:root[data-theme] .vz-chipq.on{background:var(--t-accent);border-color:var(--t-accent);color:var(--t-accent-ink)}:root[data-theme] .th-ready{background:var(--t-sim-bg);color:var(--t-sim-ink)}:root[data-theme] .th-ready .py-handle:not([fill]){fill:var(--t-sim-handle)}:root[data-theme] .th-ready .py-handle{stroke:var(--t-sim-handle-stroke)}:root[data-theme] .th-ready .py-embed-f{color:var(--t-sim-ink)}:root[data-theme=high-contrast] :focus-visible{outline:3px solid #ffc800;outline-offset:2px}:root[data-theme=high-contrast] .vz-chipq,:root[data-theme=high-contrast] .gm,:root[data-theme=high-contrast] .xl-card,:root[data-theme=high-contrast] .xl-tabs button{border-width:2px}:root[data-theme=high-contrast] .th-ready .py-handle{stroke-width:3px}.th-pick{position:relative}.th-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:80;display:grid;gap:6px;width:280px;padding:10px;border-radius:14px;background:var(--t-surface, #fff);color:var(--t-text, #15213b);border:1px solid var(--t-border-strong, #cfc8b8);box-shadow:0 10px 30px #0000002e}.th-menu.left{right:auto;left:0;top:auto;bottom:calc(100% + 6px)}.th-menu h4{margin:0 0 2px;font:600 13px system-ui,sans-serif;color:var(--t-text2, #4a556f)}.th-opt{display:flex;align-items:center;gap:10px;min-height:48px;padding:4px 10px;border-radius:10px;border:2px solid transparent;background:transparent;color:inherit;font:600 15px system-ui,sans-serif;text-align:left;cursor:pointer}.th-opt:hover{background:var(--t-hover, #efebe1)}.th-opt.on{border-color:var(--t-accent, #2c5a8a)}.th-sw{display:inline-grid;grid-template-columns:repeat(3,12px);flex:none;border-radius:6px;overflow:hidden;border:1px solid rgba(0,0,0,.25)}.th-sw i{display:block;width:12px;height:28px}:root[data-theme] .chemlab{background:var(--t-bg)}:root[data-theme] .chemlab-bar,:root[data-theme] .chemlab-read{background:var(--t-surface);border-color:var(--t-border);color:var(--t-text2)}:root[data-theme] .chemlab-read b{color:var(--t-text)}:root[data-theme] .chemlab-eqbtn{background:var(--t-surface);border-color:var(--t-border);color:var(--t-text)}:root[data-theme] .ceq-row,:root[data-theme] .ceq-sp,:root[data-theme] .ceq-atoms{color:var(--t-text)}:root[data-theme] .ceq-coef button{background:var(--t-surface2);border-color:var(--t-border-strong);color:var(--t-text)}:root[data-theme] .ceq-coef output{color:var(--t-accent)}:root[data-theme] .ceq-arrow,:root[data-theme] .ceq-plus{color:var(--t-text2)}:root[data-theme] .ceq-atoms th,:root[data-theme] .ceq-atoms td{border-bottom-color:var(--t-border)}:root[data-theme] .gsel{color:var(--t-accent)}:root[data-theme] .chip{background:var(--t-surface);border-color:var(--t-border-strong);color:var(--t-text)}:root[data-theme] .chip.on{background:var(--t-accent);border-color:var(--t-accent);color:var(--t-accent-ink)}.more-wrap{position:relative}.more-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:60;display:grid;gap:6px;min-width:240px;padding:10px;border-radius:14px;background:var(--t-surface, #fff);color:var(--t-text, #15213b);border:1px solid var(--t-border-strong, #cfc8b8);box-shadow:0 10px 30px #00000040}.bar .more-menu button,.bar .more-menu select{min-height:48px;justify-content:flex-start;text-align:left;background:var(--t-surface2, #f3f0e8);color:var(--t-text, #15213b);font-size:16px}.more-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px}.bar .more-menu .th-pick button{width:100%;display:flex;align-items:center;gap:8px}.bar .more-menu .th-menu{right:auto;left:0;top:calc(100% + 6px)}.bar .more-menu .th-pick .lbl.opt{display:inline}.splash{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center;background:radial-gradient(circle at 30% 20%,var(--t-accent-soft, #e6edf5),transparent 55%),var(--t-bg, #faf8f3);color:var(--t-text, #15213b);font-family:system-ui,-apple-system,sans-serif;animation:sp-in .5s ease-out}@keyframes sp-in{0%{opacity:0}}.sp-brand{font:800 64px/1 system-ui,sans-serif;letter-spacing:-.02em;color:var(--t-heading, #1b2a4a)}.sp-slogan{margin:0;font-size:26px;font-weight:700;color:var(--t-accent, #2c5a8a)}.sp-sub{margin:0;max-width:640px;font-size:16px;color:var(--t-text2, #4a556f)}.sp-tracks{display:grid;grid-template-columns:repeat(3,minmax(200px,300px));gap:16px;margin:8px 0}.sp-track{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px;border-radius:16px;background:var(--t-surface, #fff);border:1px solid var(--t-border, #e5e0d4)}.sp-track small{font-weight:700;color:var(--t-text3, #7b8398);text-transform:uppercase;letter-spacing:.08em;font-size:12px}.sp-art{width:120px;height:90px}.sp-f{min-height:30px;font:italic 600 19px Times New Roman,serif;animation:sp-morph 1.7s ease-in-out both}.sp-track.toan .sp-f{color:#1d4ed8}.sp-track.ly .sp-f{color:#c2410c}.sp-track.hoa .sp-f{color:#15803d}@keyframes sp-morph{0%{opacity:0;transform:translateY(10px) scale(.92);filter:blur(4px)}18%,82%{opacity:1;transform:none;filter:none}to{opacity:0;transform:translateY(-10px) scale(1.05);filter:blur(4px)}}.sp-draw{stroke:#1d4ed8;stroke-dasharray:220;animation:sp-draw 2.4s ease-in-out infinite alternate}@keyframes sp-draw{0%{stroke-dashoffset:220}to{stroke-dashoffset:0}}.sp-sq{fill:#93c5fd;opacity:.55;animation:sp-pulse 2.4s ease-in-out infinite alternate}.sp-sq.b{fill:#fca5a5;animation-delay:.6s}@keyframes sp-pulse{0%{opacity:.2}to{opacity:.7}}.sp-ink{stroke:var(--t-text, #15213b)}.sp-wave{stroke:#f97316;animation:sp-shift 1.6s linear infinite}@keyframes sp-shift{0%{transform:translate(0)}to{transform:translate(-60px)}}.sp-ball{fill:#2563eb}.sp-mol{transform-origin:60px 52px;animation:sp-rot 4s ease-in-out infinite}.sp-bond{stroke:#9e9e9e}@keyframes sp-rot{50%{transform:rotate(18deg) scale(1.06)}}.sp-stats{display:grid;grid-template-columns:repeat(4,minmax(130px,200px));gap:12px}.sp-stats div{display:flex;flex-direction:column;gap:2px;padding:10px;border-radius:12px;background:var(--t-surface2, #f3f0e8)}.sp-stats b{font-size:28px;color:var(--t-heading, #1b2a4a);font-variant-numeric:tabular-nums}.sp-stats span{font-size:13px;color:var(--t-text2, #4a556f)}.sp-bar{width:min(520px,80vw);height:6px;border-radius:99px;background:var(--t-border, #e5e0d4);overflow:hidden}.sp-bar i{display:block;height:100%;background:var(--t-accent, #2c5a8a);animation:sp-fill linear both}@keyframes sp-fill{0%{width:0}to{width:100%}}.sp-skip{min-height:48px;padding:0 22px;border-radius:999px;border:1px solid var(--t-border-strong, #cfc8b8);background:var(--t-surface, #fff);color:var(--t-text, #15213b);font:600 16px system-ui,sans-serif;cursor:pointer}@media(max-width:900px){.sp-tracks{grid-template-columns:1fr 1fr 1fr}.sp-stats{grid-template-columns:repeat(2,1fr)}.sp-brand{font-size:48px}}@media(prefers-reduced-motion:reduce){.splash *,.splash{animation-duration:.01ms!important;animation-iteration-count:1!important}}.login{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;display:grid;place-items:center;padding:16px;overflow:auto;background:radial-gradient(circle at 70% 10%,var(--t-accent-soft, #e6edf5),transparent 55%),var(--t-bg, #faf8f3);font-family:system-ui,-apple-system,sans-serif;color:var(--t-text, #15213b)}.login-card{display:flex;flex-direction:column;gap:12px;width:min(420px,100%);padding:24px;border-radius:20px;background:var(--t-surface, #fff);border:1px solid var(--t-border, #e5e0d4);box-shadow:0 20px 50px #0000001f}.login-brand{font:800 40px/1 system-ui,sans-serif;color:var(--t-heading, #1b2a4a);text-align:center}.login-sub{margin:-4px 0 4px;text-align:center;color:var(--t-accent, #2c5a8a);font-weight:600}.login-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:var(--t-surface2, #f3f0e8)}.login-tabs button{min-height:44px;border:0;border-radius:9px;background:transparent;font:600 15px system-ui,sans-serif;color:var(--t-text2, #4a556f);cursor:pointer}.login-tabs button.on{background:var(--t-surface, #fff);color:var(--t-text, #15213b);box-shadow:0 1px 3px #0000001a}.login-form{display:grid;gap:10px}.login-form input{min-height:48px;padding:0 14px;border-radius:12px;border:1px solid var(--t-border-strong, #cfc8b8);background:var(--t-surface, #fff);color:var(--t-text, #15213b);font-size:16px;-webkit-user-select:text;user-select:text}.login-main{min-height:48px;border:0;border-radius:12px;background:var(--t-accent, #2c5a8a);color:var(--t-accent-ink, #fff);font:700 16px system-ui,sans-serif;cursor:pointer}.login-main:disabled{opacity:.6}.login-or{display:flex;align-items:center;gap:10px;color:var(--t-text3, #7b8398);font-size:13px}.login-or:before,.login-or:after{content:"";flex:1;height:1px;background:var(--t-border, #e5e0d4)}.login-google{display:flex;justify-content:center;min-height:44px}.login-sso{min-height:48px;border-radius:999px;border:1px solid var(--t-border-strong, #cfc8b8);background:var(--t-surface, #fff);color:var(--t-text, #15213b);font:600 15px system-ui,sans-serif;cursor:pointer}.login-sso.apple{background:#000;color:#fff;border-color:#000}.login-sso:disabled{opacity:.45;cursor:default}.login-link{min-height:44px;border:0;background:none;color:var(--t-accent, #2c5a8a);font:600 15px system-ui,sans-serif;cursor:pointer}.login-row{display:flex;justify-content:space-between}.login-note{margin:0;font-size:13.5px;color:var(--t-text2, #4a556f)}.login-msg{margin:0;padding:8px 10px;border-radius:10px;background:var(--t-accent-soft, #e6edf5);font-size:14px}.acc-me{display:flex;align-items:center;gap:12px}.acc-me div{display:flex;flex-direction:column}.acc-me small{color:var(--t-text2, #4a556f)}.acc-av{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--t-accent, #2c5a8a);color:var(--t-accent-ink, #fff);font:700 20px system-ui,sans-serif}:root[data-theme] .embed svg text:not([fill]){fill:var(--t-sim-ink)}:root[data-theme] .embed svg [fill="#0f172a" i],:root[data-theme] .embed svg [fill="#111827" i],:root[data-theme] .embed svg [fill="#1e293b" i],:root[data-theme] .embed svg [fill="#334155" i],:root[data-theme] .embed svg [fill="#15213b" i],:root[data-theme] .embed svg [fill="#1b2a4a" i]{fill:var(--t-sim-ink)}:root[data-theme] .embed svg [stroke="#0f172a" i],:root[data-theme] .embed svg [stroke="#111827" i],:root[data-theme] .embed svg [stroke="#1e293b" i],:root[data-theme] .embed svg [stroke="#334155" i],:root[data-theme] .embed svg [stroke="#15213b" i],:root[data-theme] .embed svg [stroke="#1b2a4a" i]{stroke:var(--t-sim-ink)}:root[data-theme] .embed svg [fill="#475569" i],:root[data-theme] .embed svg [fill="#64748b" i],:root[data-theme] .embed svg [fill="#4a556f" i]{fill:var(--t-sim-ink2)}:root[data-theme] .embed svg [stroke="#475569" i],:root[data-theme] .embed svg [stroke="#64748b" i],:root[data-theme] .embed svg [stroke="#4a556f" i]{stroke:var(--t-sim-ink2)}:root[data-theme] .embed svg [fill="#94a3b8" i]{fill:var(--t-sim-axis)}:root[data-theme] .embed svg [stroke="#94a3b8" i]{stroke:var(--t-sim-axis)}:root[data-theme] .embed svg [fill="#cbd5e1" i],:root[data-theme] .embed svg [fill="#e2e8f0" i],:root[data-theme] .embed svg [fill="#e5e7eb" i]{fill:var(--t-sim-grid)}:root[data-theme] .embed svg [stroke="#cbd5e1" i],:root[data-theme] .embed svg [stroke="#e2e8f0" i],:root[data-theme] .embed svg [stroke="#e5e7eb" i]{stroke:var(--t-sim-grid)}:root[data-theme] .embed svg [fill="#fff" i],:root[data-theme] .embed svg [fill="#ffffff" i],:root[data-theme] .embed svg [fill=white i],:root[data-theme] .embed svg [fill="#f8fafc" i],:root[data-theme] .embed svg [fill="#f1f5f9" i],:root[data-theme] .embed svg [fill="#eff6ff" i]{fill:var(--t-sim-panel)}:root[data-theme] .embed svg [fill="#1d4ed8" i]{fill:var(--t-sim-line)}:root[data-theme] .embed svg [stroke="#1d4ed8" i]{stroke:var(--t-sim-line)}:root[data-theme] .embed svg [fill="#dbeafe" i]{fill:var(--t-sim-fill)}:root[data-theme] .embed .py-handle:not([fill]){fill:var(--t-sim-handle)}:root[data-theme] .embed .py-handle{stroke:var(--t-sim-handle-stroke)}:root[data-theme] .embed .m3-view,:root[data-theme] .embed .lab3d-wrap{background:var(--t-sim-bg3d)}:root[data-theme=dark-lab] .embed .embed-body{--t-text: #111827;--t-text2: #334155;--t-text3: #475569;--t-heading: #111827;--t-surface: #f1f4f8;--t-surface2: #e1e7ef;--t-hover: #d5dce6;--t-border: #b8c2cf;--t-border-strong: #94a3b8;--t-accent: #1667b8;--t-accent-ink: #ffffff;--t-accent-soft: #d6e6f8;--t-bg: #edf1f6;color-scheme:light}:root[data-theme=dark-lab] .embed .embed-body .deep-side,:root[data-theme=dark-lab] .embed .embed-body .chemlab-bar,:root[data-theme=dark-lab] .embed .embed-body .chemlab-read{--t-text: #e8eef8;--t-text2: #aebbd2;--t-text3: #7d8ba6;--t-heading: #f1f5fb;--t-surface: #141c2c;--t-surface2: #1a2436;--t-hover: #212d43;--t-border: #273450;--t-border-strong: #38496d;--t-accent: #4fc3f7;--t-accent-ink: #06121f;--t-accent-soft: #173049;--t-bg: #0d1320;color-scheme:dark}:root[data-theme] .embed .deep-side{--t-sim-ink: var(--t-text);--t-sim-ink2: var(--t-text2);--t-sim-panel: var(--t-surface);--t-sim-panel-border: var(--t-border);--t-sim-bg: var(--t-bg);--t-sim-line: var(--t-accent)}:root[data-theme=dark-lab] .chemlab-eqbtn b.ok{color:#6ee7a8}:root[data-theme=dark-lab] .chemlab-eqbtn b.no{color:#ff9b91}.login-reason{margin:0;padding:10px 12px;border-radius:10px;background:#fff4e5;color:#7a4100;font-size:14px}.login.fb{z-index:880;background:#0f172a73}.fb-h{margin:0;font:700 20px system-ui,sans-serif;color:var(--t-heading, #1b2a4a)}.fb textarea{width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--t-border-strong, #cfc8b8);background:var(--t-surface, #fff);color:var(--t-text, #15213b);font:16px system-ui,sans-serif;resize:vertical;-webkit-user-select:text;user-select:text}.fb-send{padding:0 20px}@media(max-width:720px),(max-height:520px){.embed.full .fs-bar{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.embed.full .fs-bar .lbl{display:none}.embed.full .fs-bar strong{flex:1 1 auto;min-width:60px;font-size:14px}.embed.full .fs-bar button{flex:none}}.login-pw{position:relative;display:flex}.login-pw input{flex:1;padding-right:92px}.login-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:0 10px;border:0;border-radius:10px;background:var(--t-surface2, #f3f0e8);color:var(--t-text, #15213b);font:600 13px system-ui,sans-serif;cursor:pointer}.login-mismatch{color:#b3261e;font-size:13px;margin-top:-4px}.login-form input[aria-invalid=true]{border-color:#b3261e}a.ss-nav{text-decoration:none;color:var(--vz-text-2);box-sizing:border-box}.embed.full .fs-bar a[data-testid=feedback-open]{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 10px;border-radius:10px;color:var(--t-text2, #4a556f);text-decoration:none}.dn .login-card{width:min(460px,100%)}.dn-tiers .vz-chipq{min-width:96px}.dn-custom{display:flex;align-items:center;gap:10px;font-size:15px}.dn-custom input{flex:1;min-height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--t-border-strong, #cfc8b8);background:var(--t-surface, #fff);color:var(--t-text, #15213b);font-size:16px;-webkit-user-select:text;user-select:text}.dn-qr{display:flex;flex-direction:column;align-items:center;gap:6px}.dn-qr svg{width:220px;height:220px;border-radius:10px;border:1px solid var(--t-border, #e5e0d4)}.dn-qr p{margin:0;font-size:14px}.dn-info td:first-child{color:var(--t-text2, #4a556f)}.donate-btn,.bar .donate-btn,.ss-rail .donate-btn.ss-nav{background:linear-gradient(135deg,#dc2626,#c2410c)!important;color:#fff!important;border:0;font-weight:700;box-shadow:0 2px 8px #c2410c59}.donate-btn:hover{filter:brightness(1.08)}.donate-btn .vz-ic{color:#fff}.bar .donate-btn{display:inline-flex;align-items:center;gap:6px;font-size:16px;padding:0 14px;border-radius:999px}:root[data-theme=high-contrast] .donate-btn{outline:2px solid #000;outline-offset:1px}@media(max-width:720px),(max-height:520px){:root[data-theme] .embed .kit-side,:root[data-theme] .embed .tit-side,:root[data-theme] .embed .tch-under{background:var(--t-bg);color:var(--t-text);border-color:var(--t-border)}:root[data-theme] .embed :is(.deep-side,.kit-side,.tit-side,.tch-under) .xl-hide{border-bottom-color:var(--t-border);color:var(--t-text)}}
