/* Adapted from Bencho jelly-tabs; Pro licence: app use only, not a standalone component distribution. */
/* ══ Jelly tabs ═══════════════════════════════════════════
   lab/JellyTabs.tsx. A playback-speed picker in a card. The swell,
   the jelly and the nudge are transforms the component writes on
   each pill; the fill only fades */
.jlt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: var(--fill-slab, #fff);
  color: var(--fill-on, #17181a);
  font-family: var(--font-ui);
  user-select: none;
  -webkit-user-select: none;}

[data-stroke="on"] .jlt { box-shadow: 0 0 0 1px var(--pane-edge); }

.jlt-label { font-size: 13px; color: color-mix(in srgb, var(--fill-on, #17181a) 55%, var(--fill-slab, #fff)); }

/* room round the row for the swell, measured by the component, so
   the swollen pill and the nudged ends stay inside the card */
.jlt-row { display: inline-flex; align-items: center; gap: 4px; padding: var(--jlt-py, 6px) var(--jlt-px, 14px); }

/* the button only carries the transform; the face is the pill */
.jlt-pill {
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transform-origin: 50% 50%;
  -webkit-tap-highlight-color: transparent;}

.jlt-pill[data-on] { cursor: default; }

.jlt-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--fill-on, #17181a) 7%, var(--fill-slab, #fff));
  color: color-mix(in srgb, var(--fill-on, #17181a) 72%, var(--fill-slab, #fff));
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease, color 200ms ease;}

.jlt-pill:not([data-on]):hover .jlt-face { color: var(--fill-on, #17181a); }

.jlt-pill:active .jlt-face { transform: scale(0.97); }

.jlt-pill[data-on] .jlt-face { background: var(--fill-on, #17181a); color: var(--fill-slab, #fff); }

.jlt-pill:focus-visible { outline: none; }

.jlt-pill:focus-visible .jlt-face { outline: 2px solid var(--signal, #2231dd); outline-offset: 2px; }
