.xsh-quick-launcher {
  position: fixed;
  left: calc(100vw - 68px);
  top: 84px;
  width: 44px;
  height: 44px;
  z-index: 9999;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.xsh-quick-launcher::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: none;
  width: min(290px, calc(100vw - 28px));
  height: 14px;
  background: transparent;
  pointer-events: auto;
}

.xsh-quick-launcher.is-open::after {
  display: block;
}

.xsh-quick-launcher[data-side="left"]::after {
  right: 0;
}

.xsh-quick-launcher[data-side="right"]::after {
  left: 0;
}

.xsh-quick-launcher[data-vertical="up"]::after {
  bottom: 44px;
}

.xsh-quick-launcher[data-vertical="down"]::after {
  top: 44px;
}

.xsh-quick-button {
  position: relative;
  z-index: 2;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #191919 0%, #111111 100%);
  color: #e0a12a;
  line-height: 1;
  cursor: grab;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.xsh-quick-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.xsh-quick-button-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.xsh-quick-button:hover,
.xsh-quick-button:focus-visible,
.xsh-quick-launcher.is-open .xsh-quick-button {
  border-color: #e0a12a;
  background: #e0a12a;
  color: #111111;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  outline: none;
}

.xsh-quick-launcher.is-dragging .xsh-quick-button {
  cursor: grabbing;
  transform: scale(0.98);
}

.xsh-quick-panel {
  position: absolute;
  z-index: 1;
  width: min(290px, calc(100vw - 28px));
  display: flex;
  max-height: var(--xsh-panel-max-height, calc(100vh - 28px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(216, 155, 43, 0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 30, 43, 0.985), rgba(10, 15, 25, 0.985));
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.xsh-quick-launcher[data-side="left"][data-vertical="up"] .xsh-quick-panel {
  right: 0;
  bottom: 58px;
  transform-origin: bottom right;
}

.xsh-quick-launcher[data-side="right"][data-vertical="up"] .xsh-quick-panel {
  left: 0;
  bottom: 58px;
  transform-origin: bottom left;
}

.xsh-quick-launcher[data-side="left"][data-vertical="down"] .xsh-quick-panel {
  right: 0;
  top: 58px;
  transform-origin: top right;
}

.xsh-quick-launcher[data-side="right"][data-vertical="down"] .xsh-quick-panel {
  left: 0;
  top: 58px;
  transform-origin: top left;
}

.xsh-quick-launcher:hover .xsh-quick-panel,
.xsh-quick-launcher:focus-within .xsh-quick-panel,
.xsh-quick-launcher.is-open .xsh-quick-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.xsh-quick-launcher.is-dragging .xsh-quick-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.xsh-quick-panel-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.xsh-quick-panel-title {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.xsh-quick-panel-note {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

.xsh-quick-actions {
  display: grid;
  gap: 7px;
  padding: 10px;
  overflow-y: auto;
}

.xsh-quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #e2e8f0;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.xsh-quick-action:hover,
.xsh-quick-action:focus-visible {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  outline: none;
  transform: translateX(2px);
}

.xsh-quick-action--primary {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #d89b2b, #edb43f);
  color: #111827;
  font-weight: 700;
}

.xsh-quick-action--primary:hover,
.xsh-quick-action--primary:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, #e0a536, #f2c15a);
  color: #111827;
}

.xsh-quick-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.075);
  color: #cbd5e1;
}

.xsh-quick-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xsh-quick-action--primary .xsh-quick-icon {
  background: rgba(15, 23, 42, 0.12);
  color: #111827;
}

.xsh-quick-action-copy {
  min-width: 0;
}

.xsh-quick-action-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.xsh-quick-action-description {
  display: block;
  margin-top: 1px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
}

.xsh-quick-action--primary .xsh-quick-action-description {
  color: rgba(17, 24, 39, 0.72);
}

@media (max-width: 640px) {
  .xsh-quick-launcher {
    left: calc(100vw - 62px);
    top: 74px;
    width: 42px;
    height: 42px;
  }

  .xsh-quick-button {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .xsh-quick-button-icon svg {
    width: 18px;
    height: 18px;
  }

  .xsh-quick-launcher[data-vertical="up"]::after {
    bottom: 42px;
  }

  .xsh-quick-launcher[data-vertical="down"]::after {
    top: 42px;
  }

  .xsh-quick-launcher[data-side="left"][data-vertical="up"] .xsh-quick-panel,
  .xsh-quick-launcher[data-side="right"][data-vertical="up"] .xsh-quick-panel {
    bottom: 55px;
  }

  .xsh-quick-launcher[data-side="left"][data-vertical="down"] .xsh-quick-panel,
  .xsh-quick-launcher[data-side="right"][data-vertical="down"] .xsh-quick-panel {
    top: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xsh-quick-button,
  .xsh-quick-panel,
  .xsh-quick-action {
    transition: none;
  }
}
