.tw-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(calc(100vw - 28px), 440px);
  bottom: calc(14px + var(--tw-safe-b));
  z-index: var(--z-tabbar);
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: var(--radius-pill);
  isolation: isolate;
  overflow: clip;
  contain: layout paint style;
  background:
    radial-gradient(120% 180% at 50% 0%, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 44%),
    linear-gradient(180deg, rgb(255 255 255 / .08), transparent 58%),
    color-mix(in srgb, var(--theme-surface) 58%, transparent);
  backdrop-filter: blur(22px) saturate(1.55) brightness(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.55) brightness(1.05);
  border: 1px solid rgb(255 255 255 / .14);
  box-shadow: 0 18px 42px rgb(0 0 0 / .24), inset 0 1px 0 rgb(255 255 255 / .18), inset 0 -1px 0 rgb(0 0 0 / .16);
}

[data-reduced-transparency="true"] .tw-tabbar,
[data-motion-profile="lite"] .tw-tabbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: color-mix(in srgb, var(--theme-surface) 94%, transparent);
}

.tw-tabbar__selection {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(120% 160% at 50% 0%, color-mix(in srgb, var(--color-accent) 26%, transparent), transparent 64%),
    color-mix(in srgb, var(--color-accent) 16%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 4px 18px color-mix(in srgb, var(--color-accent) 14%, transparent);
  will-change: transform, width;
}

.tw-tabbar__selection[data-ready="true"] {
  opacity: 1;
}

.tw-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 7px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--theme-text-muted);
  transition: color .25s ease;
  will-change: transform;
}

.tw-tab[aria-current="page"] {
  color: var(--theme-text);
}

.tw-tab-icon {
  width: 22px;
  height: 22px;
  transition: transform .5s var(--ease);
}

.tw-tab[aria-current="page"] .tw-tab-icon {
  transform: translateY(-1px) scale(1.08);
  color: var(--color-accent);
}

.tw-tabbar[inert] {
  pointer-events: none;
}
