/* Scoped additions preserve the existing H2+ worksheet and reference app. */
body.chemistry-sheet .wb-intro{margin:22px 0;padding:18px 20px;background:#f0edf7;border-inline-start:3px solid #73539e;color:#51465f;font-size:14px}
body.chemistry-sheet .wb-intro p{margin:0}
body.chemistry-sheet .wb-section{margin:34px 0 0;padding:25px 0;border-top:1px solid #d7d3e4;scroll-margin-top:20px}
body.chemistry-sheet .wb-section h2{color:#302547;font-size:24px;line-height:1.5;margin:0 0 8px}
body.chemistry-sheet .wb-section h3{font-size:18px;margin:0 0 14px;overflow-wrap:anywhere}
body.chemistry-sheet .wb-lead,body.chemistry-sheet .wb-note{color:#6d657e;font-size:14px;margin:0 0 18px;line-height:1.9}
body.chemistry-sheet .wb-form{padding:20px;background:#f0edf7;border-top:3px solid #73539e;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}
body.chemistry-sheet .wb-form label{display:grid;gap:7px;min-width:0;color:#443653;font-weight:650;font-size:14px}
body.chemistry-sheet .wb-form .wb-wide{grid-column:1/-1}
body.chemistry-sheet .wb-form :is(input,textarea){box-sizing:border-box;max-width:100%;width:100%;min-width:0;border:1px solid #afa1c5;border-radius:3px;background:#fff;color:#302547;padding:10px 12px;font:15px/1.6 system-ui,sans-serif;min-height:46px}
body.chemistry-sheet .wb-form textarea{direction:ltr;text-align:left;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;tab-size:2}
body.chemistry-sheet .wb-form textarea[name=molecular_payload]{min-height:270px;font-size:13px;line-height:1.6}
body.chemistry-sheet .wb-form small{font-size:12px;font-weight:400;color:#6d657e;line-height:1.8}
body.chemistry-sheet .wb-actions{display:flex;gap:12px;flex-wrap:wrap;grid-column:1/-1}
body.chemistry-sheet .wb-section button{min-height:46px;border:1px solid #a693c0;border-radius:3px;background:#fff;color:#563c8b;padding:10px 16px;font:650 14px/1.6 system-ui,sans-serif;cursor:pointer}
body.chemistry-sheet .wb-section button[type=submit]{background:#67458f;border-color:#67458f;color:#fff}
body.chemistry-sheet .wb-section button:disabled{opacity:.5;cursor:default}
body.chemistry-sheet .wb-section [data-wb-message]{min-height:28px;margin:14px 0;color:#6d657e;font-size:14px;overflow-wrap:anywhere}
body.chemistry-sheet .wb-section [data-wb-message][data-state=failure]{color:#9a3f3f}
body.chemistry-sheet .wb-section [data-wb-message][data-state=pending]{color:#67458f}
body.chemistry-sheet .wb-result-card{padding:22px;margin:18px 0;background:#fff;border:1px solid #ddd7e7;min-width:0}
body.chemistry-sheet .wb-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}
body.chemistry-sheet .wb-values>div{padding:11px 0;border-bottom:1px solid #e8e3ed;min-width:0}
body.chemistry-sheet .wb-values dt{font-size:12px;color:#6d657e;font-weight:500}
body.chemistry-sheet .wb-values dd{margin:4px 0 0;font-size:15px;color:#443653;font-weight:650;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body.chemistry-sheet .wb-values bdi{white-space:pre-wrap}
body.chemistry-sheet .wb-result-card .wb-note{margin:16px 0 0;font-size:12px}
body.chemistry-sheet .wb-section details{margin:16px 0;color:#51465f}
body.chemistry-sheet .wb-section summary{cursor:pointer;font-size:14px;padding:8px 0}
body.chemistry-sheet .wb-section [data-wb-evidence]{border-top:1px solid #d7d3e4;padding-top:14px}
body.chemistry-sheet .wb-section [data-wb-evidence] dd{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:400;font-size:12px;direction:ltr;text-align:left}
body.chemistry-sheet .wb-section [data-wb-raw]{max-height:350px;overflow:auto;padding:16px;background:#f0edf7;color:#302547;direction:ltr;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace}
body.chemistry-sheet .wb-section [hidden]{display:none!important}
body.chemistry-sheet .wb-section :is(input,textarea,button,summary,a):focus-visible{outline:3px solid #926ac2;outline-offset:3px}
@media(max-width:650px){body.chemistry-sheet .wb-form,body.chemistry-sheet .wb-values{grid-template-columns:minmax(0,1fr)}body.chemistry-sheet .wb-form,body.chemistry-sheet .wb-result-card{padding:16px}body.chemistry-sheet .wb-section h2{font-size:21px}}
