.page-link{display:inline-flex;align-items:center;padding:10px 13px;text-decoration:none;font-size:.875rem;font-weight:600;border-radius:8px;white-space:nowrap}.page-link[aria-current=page]{background:#e2f3f0;color:#075854}.page-link:hover{background:#edf3f7}.page-link:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.library-page .app-header nav{display:flex;flex-wrap:wrap}.library-main{max-width:1640px;margin:auto;padding:32px 26px 48px}.library-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.library-intro h1{font-size:2rem;margin-bottom:10px}.library-intro p{color:var(--muted);font-size:.94rem;max-width:700px}.library-intro button{white-space:nowrap}.library-intro button span{margin-left:20px}.library-workspace{display:grid;grid-template-columns:256px minmax(0,1fr) 264px;gap:22px;align-items:start}.catalog{margin:0;border:0;padding:0;min-width:0}.catalog>summary{display:flex;align-items:center;justify-content:space-between;font-size:.95rem;list-style:none;margin-bottom:15px}.catalog>summary span{font-size:.72rem;color:var(--muted);font-weight:400}.catalog-filters{display:grid;gap:8px;margin-bottom:14px}.catalog-filters input{min-width:0;width:100%;padding:11px;border:1px solid var(--line);border-radius:8px;background:white;font-size:.8rem;color:var(--ink)}.catalog-filters select{font-size:.8rem}.molecule-cards{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:644px;overflow:auto;padding:3px}.molecule-card{display:flex;flex-direction:column;min-width:0;align-items:start;text-align:left;padding:0 0 10px;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:10px}.molecule-card[aria-pressed=true]{border-color:#238c89;background:#edf9f6;box-shadow:0 0 0 1px #238c89}.molecule-card svg{display:block;width:100%;height:74px;background:#eaf0f5;margin-bottom:9px}.molecule-card[aria-pressed=true] svg{background:#dcefeb}.molecule-card strong{font-size:.8rem;margin:0 8px 3px}.molecule-card small{font-weight:400;font-size:.7rem;color:var(--muted);margin:0 8px}.molecule-card:focus-visible{outline-offset:-3px}#emptyCatalog{font-size:.9rem;color:var(--muted);padding:20px 5px}.library-viewer{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:white;min-width:0}.library-viewer-heading{display:flex;align-items:center;gap:12px;padding:19px 20px}.library-viewer-heading>div{flex:1}.library-viewer-heading h2{font-size:1.5rem}.library-viewer-heading .eyebrow{font-size:.65rem;margin-bottom:3px;display:block}.library-viewer-heading button{font-size:.78rem}.formula{font-size:1rem;color:var(--muted);white-space:nowrap}.library-stage{height:475px;position:relative;background:radial-gradient(ellipse at 45% 42%,#263648,#131d29);overflow:hidden}.library-stage canvas{display:block;width:100%;height:100%;touch-action:none}.library-stage-top{position:absolute;inset:18px 18px auto;display:flex;justify-content:space-between;gap:12px;color:#b8cbd7;font-size:.65rem;pointer-events:none}.library-stage-top>span:first-child{letter-spacing:.08em;font-weight:600}.library-stage-hint{position:absolute;bottom:19px;left:18px;color:#b8cbd7;font-size:.7rem;pointer-events:none;max-width:65%;line-height:1.4}.library-stage-zoom{position:absolute;bottom:12px;right:12px;display:flex;gap:3px}.library-stage-zoom button{background:#26384a;border-color:#475665;color:#e3eef3;font-size:1.1rem;padding:5px;width:34px;min-height:34px}.library-stage-zoom button:hover{background:#38546a}#libraryError{position:absolute;inset:34% 10% auto;background:#24374b;color:white;padding:18px;border-radius:9px;font-size:.9rem}.library-view-controls{padding:14px 17px;border-bottom:1px solid #e6edf2;display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between}.library-checks{display:flex;gap:12px;flex-wrap:wrap}.library-checks .check{font-size:.75rem}.library-checks input{width:15px;height:15px}.library-legend{padding:14px 20px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;color:var(--muted);font-size:.72rem}.library-legend>span{display:flex;align-items:center;gap:6px}.element-dot{width:11px;height:11px;display:inline-block;border:1px solid #151a1e;border-radius:50%}.element-dot.c{background:#42474d}.element-dot.h{background:#f6f7f8}.element-dot.o{background:#d83d37}.element-dot.n{background:#3979d6}.selected-key{margin-left:auto;font-size:.65rem}.library-atom-inspector{padding:14px 20px;background:#f7fafc;border-top:1px solid #e6edf2}.library-atom-picker{display:flex;gap:14px;align-items:center;margin-bottom:10px}.library-atom-picker label{font-size:.8rem;font-weight:600;white-space:nowrap}.library-atom-picker select{font-size:.8rem;width:auto;min-width:0;flex:1;min-height:36px}.library-atom-inspector #libraryAtomInfo{font-size:.78rem;color:var(--muted);line-height:1.6}.neighbor-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.neighbor-chips button{font-size:.72rem;min-height:30px;padding:4px 8px}.library-model-caption{padding:12px 20px;font-size:.71rem;line-height:1.55;color:var(--muted)}.molecule-story{padding:7px 0}.molecule-story>.eyebrow{font-size:.63rem}.molecule-story h2{font-size:1.2rem;margin:9px 0 12px}.molecule-story>p{font-size:.86rem;color:var(--muted)}.look-card{border-left:3px solid #4a9694;padding:3px 0 3px 14px;margin:24px 0}.look-card .eyebrow{color:#106a67;font-size:.66rem}.look-card p,.library-question>p{font-size:.85rem;line-height:1.6}.library-question{background:#e7efef;border:1px solid #d6e6e3;padding:17px;border-radius:11px;margin-bottom:18px}.library-question details{border-color:#c7dbd6;margin-top:12px;padding-top:12px}.library-question summary{font-size:.78rem;margin-bottom:0}.library-question details[open] summary{margin-bottom:10px}.library-question details p{font-size:.82rem;color:#385865}.compare-link{display:block;font-weight:600;font-size:.8rem;margin:15px 0}.molecule-note{font-size:.74rem!important;line-height:1.6;border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.molecule-source{border-top:1px solid var(--line);margin-top:18px;padding-top:14px;display:flex;gap:5px;flex-direction:column;font-size:.7rem;color:var(--muted)}.molecule-source a{font-size:.76rem}.library-about{padding:22px 0 0;margin:26px 0 0}.library-about>div{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.library-about p{font-size:.85rem;color:var(--muted)}.reaction-ideas{margin-top:52px;padding-top:32px;border-top:1px solid var(--line);scroll-margin-top:20px}.reaction-ideas h2{font-size:1.5rem}.ideas-intro{font-size:.9rem;color:var(--muted);margin:10px 0 20px}.idea-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.idea-grid article{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;min-width:0}.idea-number{font-size:.63rem;font-weight:700;letter-spacing:.08em;color:var(--accent)}.idea-grid h3{margin:12px 0;font-size:1rem}.reaction-formula{background:#edf3f7;border-radius:6px;padding:10px;font-size:.83rem;line-height:1.6;margin-bottom:14px;color:#234e5c}.idea-grid p{font-size:.84rem}.idea-grid small{display:block;margin-top:14px;font-size:.74rem;line-height:1.6;color:var(--muted)}.ideas-sources{font-size:.76rem;color:var(--muted);margin-top:18px;line-height:1.7}
#libraryViewer:is(:fullscreen,.window-fullscreen){padding:0;background:#fff}#libraryViewer:is(:fullscreen,.window-fullscreen) .library-stage{height:calc(100dvh - 210px);min-height:300px}#libraryViewer:is(:fullscreen,.window-fullscreen) .library-atom-inspector,#libraryViewer:is(:fullscreen,.window-fullscreen) .library-model-caption{display:none}
@media(max-width:1200px){.library-workspace{grid-template-columns:220px minmax(0,1fr);gap:18px}.molecule-story{grid-column:2;display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;padding:14px 2px}.molecule-story>.eyebrow,.molecule-story>h2,.molecule-story>#moleculeDescription{grid-column:1}.molecule-story h2{margin:0}.molecule-story>.look-card{grid-column:2;grid-row:1/4;margin:0}.library-question{grid-column:1;margin:0}.molecule-note,.molecule-source{margin:0}.library-stage{height:480px}.molecule-cards{max-height:684px}}
@media(max-width:720px){.library-main{padding:23px 14px 32px}.library-intro{align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:24px}.library-intro h1{font-size:1.65rem}.library-intro p{font-size:.86rem}.library-intro button{font-size:.8rem}.library-workspace{display:flex;flex-direction:column;gap:18px}.catalog{width:100%;background:white;border:1px solid var(--line);border-radius:12px;padding:14px}.catalog>summary{margin:0;cursor:pointer}.catalog>summary:before{content:'▸';font-size:.8rem;color:var(--accent);margin-right:8px}.catalog[open]>summary:before{content:'▾'}.catalog[open]>summary{margin-bottom:13px}.catalog-filters{grid-template-columns:1fr 1fr;gap:8px}.molecule-cards{grid-template-columns:repeat(3,minmax(0,1fr));max-height:350px}.molecule-card svg{height:66px}.molecule-card strong{font-size:.73rem}.library-viewer{width:100%}.library-viewer-heading{padding:15px;gap:8px}.library-viewer-heading h2{font-size:1.25rem}.library-viewer-heading button{padding:5px;font-size:.7rem}.library-viewer-heading .formula{font-size:.9rem}.library-stage{height:360px}.library-view-controls{padding:12px;gap:12px}.library-stage-top{inset:15px 12px auto;font-size:.56rem}.library-stage-hint{left:12px;bottom:15px;font-size:.64rem;max-width:65%}.library-stage-zoom{right:8px;bottom:10px;gap:2px}.library-stage-zoom button{width:28px;min-height:30px}.library-legend{padding:12px 15px;gap:10px;font-size:.65rem}.selected-key{width:100%;margin:0}.library-atom-inspector{padding:12px 15px}.library-atom-picker{align-items:start;flex-direction:column;gap:6px}.library-atom-picker select{width:100%}.library-model-caption{padding:12px 15px}.molecule-story{display:block;width:100%;padding:5px 2px}.molecule-story>h2{margin:8px 0 12px}.molecule-story>.look-card{margin:22px 0}.molecule-story>.library-question{margin-bottom:18px}.molecule-note,.molecule-source{margin-top:18px}.library-about>div{display:block}.library-about p{margin-bottom:12px}.idea-grid{grid-template-columns:1fr}.reaction-ideas{margin-top:35px}.idea-grid article{padding:20px}.library-page .app-header nav{width:auto;gap:0}.page-link{font-size:.77rem;padding:9px 10px}}

.structure-controls{padding:14px 18px;background:#eef5f8;border-top:1px solid var(--line)}.structure-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.structure-actions button[aria-pressed=true]{background:#d1eee9;border-color:#5b9e97;color:#075854}.structure-controls details{margin-top:12px}.structure-controls p{font-size:.875rem;color:var(--muted);margin-top:12px;line-height:1.5}.structure-force-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.structure-force-grid label{display:block;font-size:.875rem}.structure-force-grid output{float:right;font-size:.8rem;color:var(--muted)}.structure-force-grid input{display:block;width:100%;margin-top:7px}.structure-controls summary{font-size:.875rem}.structure-hint{margin-bottom:0}@media(max-width:480px){.structure-force-grid{grid-template-columns:1fr}}

.reaction-open-link{display:block;margin-top:18px;font-size:.875rem;font-weight:600;color:#126b67}

#libraryViewer:is(:fullscreen,.window-fullscreen),#reactionViewer:is(:fullscreen,.window-fullscreen){overflow:auto;background:white}#libraryViewer:is(:fullscreen,.window-fullscreen) .library-stage,#reactionViewer:is(:fullscreen,.window-fullscreen) .library-stage{height:calc(100dvh - 355px);min-height:260px}
