.support-float {
  --dock-size: 50px;
  --dock-inset: 20px;
  --panel-limit: 570px;
  position: fixed;
  z-index: 150;
  left: max(var(--dock-inset), env(safe-area-inset-left, 0px));
  top: max(var(--dock-inset), env(safe-area-inset-top, 0px));
  bottom: max(var(--dock-inset), env(safe-area-inset-bottom, 0px));
  width: var(--dock-size);
  direction: rtl;
  pointer-events: none;
}
.support-dock-anchor {
  position: absolute; left: 0; bottom: 0; top: var(--dock-y, auto);
  width: 100%; height: var(--dock-size);
}
.support-dock-anchor > :is(.floating-links, .floating-links-direct, .support-float-panel) { pointer-events: auto; }
.support-float [data-dock-handle] {
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.support-float[data-dragging] [data-dock-handle] { cursor: grabbing; outline: 2px solid var(--contact-bg); outline-offset: 3px; }
.support-dock-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.support-float .floating-links-list { flex-direction: column-reverse; max-height: var(--dock-menu-room, calc(100vh - 100px)); }
.support-float[data-direction="down"] .floating-links-list { flex-direction: column; top: calc(100% + 3px); bottom: auto; }
.support-float-panel {
  position: absolute; z-index: 2; left: 0; top: var(--dock-panel-y, auto); bottom: calc(100% + 8px);
  box-sizing: border-box; display: flex; flex-direction: column;
  width: min(390px, calc(100vw - 2 * var(--dock-inset) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  height: var(--dock-panel-height, min(var(--panel-limit), calc(100vh - 100px)));
  background: #fff; border: 1px solid #e8dfd0; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 50px #0004;
}
.support-float-panel[hidden] { display: none; }
.support-float-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; min-height: 47px; background: #f4a308; color: #111; }
.support-float-header strong { font-size: 14px; }
.support-float-header button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: #fff7; font-size: 25px; line-height: 1; color: #111; cursor: pointer; }
.support-float-header button:hover { background: #fff; }
.support-float iframe { border: 0; width: 100%; flex: 1; min-height: 0; background: #fff; }
.support-float-panel :is(button,a):focus-visible { outline: 3px solid #b86a00; outline-offset: 2px; }
html[data-theme="dark"] .support-float-panel { background: #1b1c1d; border-color: #494844; }
@media (max-width: 600px) {
  .support-float { --dock-inset: 12px; --dock-size: 46px; --panel-limit: 520px; }
}
@media (prefers-reduced-motion: no-preference) {
  .support-float-panel:not([hidden]) { animation: support-panel-in 180ms ease-out both; transform-origin: bottom left; }
  .support-float[data-direction="down"] .support-float-panel { transform-origin: top left; }
  @keyframes support-panel-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
}
.support-float .floating-links-direct:focus-visible { outline: 2px solid var(--contact-bg); outline-offset: 2px; }
