
.chem-embed-section{margin:22px 0;background:#fff;border:1px solid #e5daf9;border-radius:24px;overflow:hidden;box-shadow:0 12px 36px #38248110}.chem-embed-heading{padding:26px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #ece5fa}.chem-embed-heading h2{margin:8px 0;font-size:23px;color:#28174f}.chem-embed-heading p{font-size:12px;color:#796c90;line-height:1.8}.chem-provider{font-size:11px;color:#6e4bc0;background:#f2ebff;padding:10px 13px;border-radius:99px;font-weight:700}.chem-embed-layout{display:grid;grid-template-columns:258px minmax(0,1fr)}.chem-embed-menu{background:#fbf9ff;border-right:1px solid #eee8fa;padding:16px;display:flex;flex-direction:column;gap:8px}.chem-embed-menu .group-title{font-size:10px;letter-spacing:1px;color:#8a7caa;font-weight:800;margin:14px 6px 6px}.chem-embed-menu button{font:600 12px 'Be Vietnam Pro',sans-serif;text-align:left;line-height:1.6;background:transparent;color:#4c3b78;border:1px solid transparent;border-radius:12px;padding:12px;cursor:pointer}.chem-embed-menu button:hover{background:#f3eeff}.chem-embed-menu button.active{background:#eee6ff;color:#6430d5;border-color:#d9c7ff;font-weight:800}.chem-embed-main{min-width:0}.chem-embed-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;background:#faf8ff;border-bottom:1px solid #e8e1f5}.chem-embed-toolbar strong{display:block;font-size:14px;color:#291753}.chem-embed-toolbar small{display:block;color:#8a7ca0;font-size:11px;margin-top:6px}.chem-embed-actions{display:flex;flex-wrap:wrap;gap:7px}.chem-embed-actions button,.chem-embed-actions a{border:1px solid #dfd1fa;border-radius:10px;padding:9px 12px;background:white;color:#6136cf;font:700 11px 'Be Vietnam Pro',sans-serif;text-decoration:none;cursor:pointer}.chem-embed-actions #chemEmbedFull{background:#7439e9;color:white;border-color:#7439e9}.chem-embed-view{height:min(65vw,630px);min-height:440px;position:relative;background:#f5f1fc}.chem-embed-view iframe{display:block;width:100%;height:100%;border:0;background:white}.chem-embed-credit{padding:12px 18px;font-size:10px;color:#827395;line-height:1.7}.chem-embed-credit a{color:#663bd2}.chem-embed-offline{padding:40px;color:#594584;text-align:center;font-size:14px}.chem-embed-view:fullscreen{width:100vw;height:100dvh;min-height:0;background:white}.chem-embed-view:fullscreen iframe{height:100%;width:100%}.chem-embed-view:fullscreen .chem-embed-offline{padding:12vh 20px}@media(max-width:1100px){.chem-embed-layout{grid-template-columns:210px minmax(0,1fr)}.chem-embed-toolbar{align-items:flex-start;flex-direction:column}}@media(max-width:720px){.chem-embed-layout{grid-template-columns:1fr}.chem-embed-menu{border-right:0;border-bottom:1px solid #eee8fa;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.chem-embed-menu .group-title{grid-column:1/-1}.chem-embed-heading{padding:20px;flex-direction:column;align-items:flex-start}.chem-embed-view{min-height:350px;height:65vh}.chem-provider{font-size:10px}}
/* Only one experiment area: PhET and Qurio models share the same lower workspace */
#chemLocalWorkbench[hidden]{display:none!important}
#chemEmbedFrame[hidden]{display:none!important}
#chemLocalWorkbench{height:100%;overflow:auto;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff}
#chemLocalWorkbench .chem-work-head{padding:15px 22px!important}
#chemLocalWorkbench .chem-body{min-height:440px}
#chemEmbedView:has(#chemLocalWorkbench:not([hidden])){height:auto;min-height:580px}
#chemEmbedView:fullscreen #chemLocalWorkbench{height:100dvh;overflow:auto}
#chemEmbedView:fullscreen:has(#chemLocalWorkbench:not([hidden])){height:100dvh;overflow:auto}
