/* ── Overlay Pill ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

#ws-overlay {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Page list (expands above pill) ─────────────────────────── */

#ws-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.25s ease;
  pointer-events: none;
}

#ws-list.open {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
}

.ws-page-btn {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  text-align: center;
}

.ws-page-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.ws-page-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: transparent;
}

/* ── Pill toggle button ──────────────────────────────────────── */

#ws-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.15s, transform 0.15s;
  user-select: none;
  letter-spacing: 0.01em;
}

#ws-pill:hover {
  background: rgba(30, 30, 30, 0.96);
  transform: translateY(-1px);
}

#ws-pill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

#ws-pill.open #ws-pill-icon {
  transform: rotate(180deg);
}

#ws-pill-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Empty state ─────────────────────────────────────────────── */

#ws-empty {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 12px;
  color: #888;
  display: none;
  text-align: center;
}
