/* ════════════════════════════════════════════════════════════════════════════
   ThoughtsToThings.Studio — shared variant picker (bottom-center FAB).
   Visual is intentionally neutral so it sits cleanly on top of any variant's
   own aesthetic. Mirrors the Hiwar dashboard picker pattern.
   ════════════════════════════════════════════════════════════════════════════ */

#ttt-picker {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(20, 20, 24, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  box-shadow:
    0 8px 32px -8px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: #fff;
}

#ttt-picker button,
#ttt-picker a {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

#ttt-picker .ttt-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  transition: background 160ms ease, color 160ms ease;
}
#ttt-picker .ttt-arrow:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

#ttt-picker .ttt-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 14px;
  min-width: 110px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 160ms ease;
}
#ttt-picker .ttt-label:hover {
  background: rgba(255, 255, 255, 0.12);
}
#ttt-picker .ttt-name {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
#ttt-picker .ttt-meta {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
}

#ttt-picker .ttt-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

#ttt-picker .ttt-toggle {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: background 160ms ease, color 160ms ease;
}
#ttt-picker .ttt-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}
#ttt-picker .ttt-toggle.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #14141a;
}

/* Sheet — variant list, opens upward when label is clicked */
#ttt-sheet {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 999998;
  width: min(92vw, 460px);
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px;
  background: rgba(20, 20, 24, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.6);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
#ttt-sheet[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#ttt-sheet ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
#ttt-sheet li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 13.5px;
  transition: background 160ms ease;
}
#ttt-sheet li a:hover {
  background: rgba(255, 255, 255, 0.08);
}
#ttt-sheet li a.is-active {
  background: rgba(255, 255, 255, 0.12);
}
#ttt-sheet .ttt-sheet-num {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  min-width: 24px;
}
#ttt-sheet .ttt-sheet-name {
  flex: 1;
  font-weight: 600;
}
#ttt-sheet .ttt-sheet-aesthetic {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

/* Make sure the picker doesn't get clipped by container overflow */
@media (max-width: 480px) {
  #ttt-picker {
    bottom: 12px;
    font-size: 11px;
  }
  #ttt-picker .ttt-label { min-width: 90px; }
  #ttt-picker .ttt-toggle { padding: 0 10px; font-size: 10px; }
}
