.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  min-height: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
}

.tabbar__link {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: var(--space-8) var(--space-2) 0;
  text-align: center;
  margin-top: -1px;
  font: inherit;
  font-size: var(--font-size-table-head);
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-top: 3px solid transparent;
}

.tabbar__link:hover {
  text-decoration: none;
}

.tabbar__link--current {
  font-weight: 600;
  color: var(--primary-text-hover);
  border-top-color: var(--primary);
}

.tabbar__icon {
  position: relative;
  display: flex;
}

.tabbar__badge {
  position: absolute;
  top: -8px;
  left: 12px;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-6);
  font-size: var(--font-size-table-head);
  font-weight: 700;
  color: var(--on-primary);
  background: var(--warn);
}

@media (width >= 720px) {
  .tabbar {
    display: none;
  }
}
