.app-tab-bar {
  position: fixed;
  z-index: 50;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - 20px), 560px);
  min-height: 70px;
  margin-inline: auto;
  padding: 8px 8px calc(7px + env(safe-area-inset-bottom));
  border: 1px solid var(--theme-color-border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--theme-color-surface) 91%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  backdrop-filter: blur(24px) saturate(130%);
}
.app-tab-bar a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-direction: column;
  border-radius: 17px;
  color: var(--theme-color-text-muted);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}
.app-tab-bar svg {
  display: block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  max-width: 21px;
  max-height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.app-tab-bar a[aria-current="page"] { color: var(--theme-color-primary); }
.app-tab-bar__chat { transform: translateY(-13px); }
.app-tab-bar .app-tab-bar__chat-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--theme-color-primary) 65%, white 8%);
  border-radius: 19px;
  background: linear-gradient(145deg, var(--theme-color-primary), var(--theme-color-primary-strong));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-color-primary) 32%, transparent);
}
.app-tab-bar .app-tab-bar__chat-icon svg {
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  padding: 13px;
  color: #fff;
}
.app-tab-bar__chat > span:last-child { margin-top: -1px; }
.app-tab-bar a:focus-visible {
  outline: 3px solid var(--theme-color-focus);
  outline-offset: 2px;
}
@media (min-width: 720px) {
  .app-tab-bar { bottom: 18px; }
}
