.nav-item {
  position: relative;
  min-width: 0;
  height: 54px;
  padding: 5px 4px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  transform: translateZ(0);
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 120ms ease,
    opacity 120ms ease;
}

.nav-item:active {
  background: var(--overlay-fill);
  transform: scale(0.96);
  opacity: 0.82;
}

.nav-item span,
.nav-item small {
  display: block;
}

.nav-item .nav-icon {
  height: 27px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon .pix-mark {
  width: 20px;
  height: 20px;
}

.nav-item small {
  margin-top: 1px;
  font-size: 9px;
  font-weight: 600;
}

.nav-item.active {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent-text);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
  opacity: 0.72;
}

.loader-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 22px;
  background: var(--page-bg);
  color: var(--text);
  text-align: center;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loader-screen.done {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 62px;
  height: 62px;
  margin: auto;
  font-size: 27px;
}

.loader-line {
  width: 150px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--overlay-fill-strong);
}

.loader-line i {
  width: 45%;
  height: 100%;
  display: block;
  background: var(--accent);
  animation: load 1s ease-in-out infinite;
}

@keyframes load {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(330%);
  }
}

.loader-screen small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(var(--dock-height) + var(--safe-bottom) + 28px);
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  transform: translate(-50%, 20px);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-bg) 90%, transparent);
  color: var(--text);
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
