.shd-dock,
.shd-dock * {
  box-sizing: border-box;
}

.shd-dock,
.shd-dock-spacer {
  display: none;
}

.shd-dock {
  --shd-indicator-x: 0px;
  --shd-indicator-w: 0px;
  position: fixed;
  z-index: 9998;
  inset-inline: var(--shd-inset, 10px);
  inset-block-end: calc(var(--shd-inset, 10px) + env(safe-area-inset-bottom, 0px));
  color: var(--shd-text, #233368);
  direction: inherit;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform, opacity;
}

.shd-dock__surface {
  width: min(100%, 640px);
  margin-inline: auto;
  padding: 5px;
  background: rgba(var(--shd-surface-rgb, 255, 255, 255), var(--shd-surface-opacity, .92));
  border: 1px solid rgba(var(--shd-text-rgb, 35, 51, 104), .13);
  border-radius: var(--shd-radius, 14px);
  box-shadow:
    0 16px 42px rgba(17, 31, 67, .17),
    0 3px 12px rgba(17, 31, 67, .07);
  pointer-events: auto;
  overflow: hidden;
  -webkit-backdrop-filter: blur(var(--shd-blur, 10px)) saturate(135%);
  backdrop-filter: blur(var(--shd-blur, 10px)) saturate(135%);
}

.shd-dock--count-2 .shd-dock__surface {
  max-width: 286px;
}

.shd-dock--count-3 .shd-dock__surface {
  max-width: 380px;
}

.shd-dock--count-4 .shd-dock__surface {
  max-width: 470px;
}

.shd-dock--count-5 .shd-dock__surface {
  max-width: 550px;
}

.shd-dock__list {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(var(--shd-items, 5), minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shd-dock__list::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--shd-indicator-w);
  border-radius: max(8px, calc(var(--shd-radius, 14px) - 4px));
  background: rgba(var(--shd-active-rgb, 237, 240, 247), var(--shd-active-opacity, .82));
  transform: translate3d(var(--shd-indicator-x), 0, 0);
  opacity: 0;
  transition:
    transform 360ms cubic-bezier(.2, .8, .2, 1),
    width 360ms cubic-bezier(.2, .8, .2, 1),
    opacity 160ms ease;
}

.shd-dock__list.shd-indicator-ready::before {
  opacity: 1;
}

.shd-dock__item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.shd-dock__link {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 64px;
  padding: 7px 2px 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--shd-text, #233368) !important;
  border: 0;
  border-radius: max(8px, calc(var(--shd-radius, 14px) - 4px));
  text-decoration: none !important;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shd-dock__link::after {
  content: "";
  position: absolute;
  inset-inline: 32%;
  inset-block-end: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--shd-accent, #fdd302);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.shd-dock__item.is-current .shd-dock__link::after,
.shd-dock__item.is-visual-active .shd-dock__link::after {
  opacity: 1;
  transform: scaleX(1);
}

.shd-dock__icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  flex: 0 0 25px;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.shd-dock__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.shd-dock__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font: inherit;
  font-size: clamp(9.5px, 2.65vw, 11.5px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shd-dock__item.is-current .shd-dock__icon,
.shd-dock__item.is-visual-active .shd-dock__icon {
  transform: translateY(-1px) scale(1.06);
}

.shd-dock__link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--shd-accent, #fdd302);
}

.shd-dock--count-2 .shd-dock__icon,
.shd-dock--count-3 .shd-dock__icon {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
}

.shd-dock--dense .shd-dock__list {
  gap: 1px;
}

.shd-dock--dense .shd-dock__link {
  padding-inline: 1px;
}

.shd-dock--dense .shd-dock__icon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
}

.shd-dock--dense .shd-dock__label {
  font-size: clamp(8.6px, 2.2vw, 10px);
  letter-spacing: -.01em;
}

.shd-dock--icons-only .shd-dock__list,
.shd-dock--icons-only .shd-dock__link {
  min-height: 54px;
}

.shd-dock--icons-only .shd-dock__label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.shd-dock-spacer {
  width: 100%;
  height: calc(90px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.shd-dock-spacer.is-collapsed {
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.shd-dock.is-hidden,
body.shd-keyboard-open .shd-dock {
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, calc(100% + 28px), 0);
}

@media (hover: hover) and (pointer: fine) {
  .shd-dock__link:hover .shd-dock__icon {
    transform: translateY(-1px) scale(1.04);
  }
}

@media (max-width: 359px) {
  .shd-dock {
    inset-inline: max(4px, calc(var(--shd-inset, 10px) - 4px));
  }

  .shd-dock--dense {
    inset-inline: 2px;
  }

  .shd-dock__surface {
    padding: 4px;
  }

  .shd-dock--dense .shd-dock__surface {
    padding-inline: 3px;
  }

  .shd-dock__list,
  .shd-dock__link {
    min-height: 60px;
  }

  .shd-dock__icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .shd-dock__label {
    font-size: 9px;
  }

  .shd-dock--dense .shd-dock__list,
  .shd-dock--dense .shd-dock__link {
    min-height: 58px;
  }

  .shd-dock--dense .shd-dock__icon {
    width: 20.5px;
    height: 20.5px;
    flex-basis: 20.5px;
  }

  .shd-dock--dense .shd-dock__label {
    font-size: 8.15px;
    font-weight: 680;
  }

  .shd-dock--dense .shd-dock__link::after {
    inset-inline: 36%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shd-dock,
  .shd-dock__list::before,
  .shd-dock__link::after,
  .shd-dock__icon {
    transition: none !important;
    animation: none !important;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .shd-dock__surface {
    background: rgba(var(--shd-surface-rgb, 255, 255, 255), .96);
  }
}
