/* bubble_dock.css — where the chat bubble sits on the desktop shell.
 *
 * Seth 2026-10-31: the bubble covered the group chat's send button. Both
 * bubbles (Seth's console, seth_chat.js; Chatwoot's for everyone else) pin
 * themselves `right: 20px`, and on the desktop shell that corner belongs to
 * the right sidebar (styles/desktop-shell.css: 340px open, the 52px gutter
 * closed), whatever it shows: the group chat's composer, the calendar's foot.
 * Here the bubble, its panel and its toast step left of the sidebar, onto the
 * page, and travel with it as it opens and closes.
 *
 * A stylesheet of Delta Note's own, not a change to seth_chat.js: that file is
 * shared with Delta Drills, which has no shell. `html[data-desktop-shell]`
 * outranks both widgets' single-class rules; Chatwoot's are `!important`-free
 * too, but its holder is restated with `!important` because the SDK sets
 * inline styles on open.
 */
html[data-desktop-shell] {
  --bubble-dock-right: calc(var(--shell-right-width) + 20px);
}
html[data-desktop-shell][data-shell-right='closed'] {
  --bubble-dock-right: calc(var(--shell-gutter-width) + 20px);
}
html[data-desktop-shell] :is(.dsc-launch, .dsc-toast, .dsc-panel),
html[data-desktop-shell] :is(.woot-widget-bubble, .woot-widget-holder).woot-elements--right {
  right: var(--bubble-dock-right) !important;
  transition: right 270ms ease;
}
@media (prefers-reduced-motion: reduce) {
  html[data-desktop-shell] :is(.dsc-launch, .dsc-toast, .dsc-panel),
  html[data-desktop-shell] :is(.woot-widget-bubble, .woot-widget-holder).woot-elements--right {
    transition: none;
  }
}
