.dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(var(--bottom) + 10px);
  width: min(calc(100% - 24px), 456px);
  height: var(--dock-h);
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  transition: transform .42s var(--ease-out), opacity .3s var(--ease);
}

.dock-main {
  flex: 1;
  min-width: 0;
  height: 100%;
}

.dock-solo {
  flex: none;
  width: var(--dock-h);
  height: var(--dock-h);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--hint);
  transition: transform .25s var(--spring), color .2s var(--ease), background .2s var(--ease);
}

.dock-solo:active {
  transform: scale(.92);
}

.dock-solo.is-on {
  color: var(--text);
  background: color-mix(in srgb, var(--glass) 70%, rgba(255, 255, 255, .16));
}

:root[data-theme="light"] .dock-solo.is-on {
  background: rgba(255, 255, 255, .92);
}

.dock-panel.is-idle .lens {
  opacity: 0;
}

.lens {
  transition: opacity .2s var(--ease);
}

body.no-dock .dock {
  transform: translate(-50%, calc(100% + var(--bottom) + 24px));
  opacity: 0;
  pointer-events: none;
}

.dock-panel {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .25s var(--ease);
}

.dock-panel.is-pressed {
  transform: scale(1.0355);
}

.dock-glass {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.lens {
  position: absolute;
  top: 5px;
  left: 0;
  width: var(--lens-w, 80px);
  height: calc(100% - 10px);
  border-radius: 999px;
  transform-origin: 50% 50%;
  will-change: transform;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, .11) 100%);
  -webkit-backdrop-filter: blur(1.5px) saturate(160%) brightness(1.12);
  backdrop-filter: blur(1.5px) saturate(160%) brightness(1.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
}

:root[data-theme="light"] .lens {
  background: linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, .75) 100%);
  box-shadow: 0 10px 24px rgba(20, 40, 90, .16);
}

.lens-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.6px;
  overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.lens-ring > i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240%;
  aspect-ratio: 1;
  margin: -120% 0 0 -120%;
  background: conic-gradient(
    rgba(255, 255, 255, .42) 0deg,
    rgba(255, 255, 255, .06) 80deg,
    rgba(255, 255, 255, .3) 170deg,
    rgba(255, 255, 255, .05) 260deg,
    rgba(255, 255, 255, .42) 360deg
  );
  will-change: transform;
}

.lens-glint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(110% 70% at 50% 0%, rgba(255, 255, 255, .55), transparent 62%);
  opacity: .55;
  will-change: transform;
}

.dock-items {
  position: absolute;
  inset: 0;
  display: flex;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.dock-item {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--hint);
  transition: color .2s var(--ease);
}

.dock-item .ti {
  transition: transform .35s var(--spring);
}

.dock-item.is-on {
  color: var(--text);
}

.dock-item.is-on .ti {
  transform: scale(1.06);
}
