/* Share the template palette with the assistant launcher while both buttons are enabled. */
:root{--chem-floating-button-bg:var(--brand,#126e68)}
:root[data-theme=dark]{--chem-floating-button-bg:var(--brand-dark,#217d72)}
.chem-back-to-top{position:fixed;right:29px;bottom:24px;z-index:90;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:7px;background:var(--chem-floating-button-bg);color:var(--chem-floating-button-bg);box-shadow:0 6px 22px #062d4026;cursor:pointer;touch-action:manipulation}
.chem-back-to-top[hidden]{display:none!important}.chem-back-to-top svg{display:block;width:24px;height:24px;pointer-events:none}.chem-back-to-top:hover{filter:brightness(1.1)}.chem-back-to-top:focus-visible{outline:3px solid var(--ink,#20323b);outline-offset:4px}
body:has(.chem-back-to-top) #chem-plugin-chat{bottom:80px}
body:has(.chem-back-to-top) #chem-plugin-chat .cc-toggle{background:var(--chem-floating-button-bg)}
body:has(.chem-back-to-top) #chem-plugin-chat .cc-panel{max-height:calc(100dvh - 172px)}
@media(max-width:600px){.chem-back-to-top{right:19px;bottom:16px;width:44px;height:44px;border-radius:7px}.chem-back-to-top svg{width:22px;height:22px}body:has(.chem-back-to-top) #chem-plugin-chat{bottom:72px}body:has(.chem-back-to-top) #chem-plugin-chat .cc-panel{max-height:calc(100dvh - 160px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
@media print{.chem-back-to-top{display:none!important}}
