/* Additive mobile-only variant. Tokens are MW Panel's existing brand palette. */
.mw-mobile-bottom-nav.mw-mobile-bottom-nav--wave {
  --mw-nav-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mw-nav-safe-left: env(safe-area-inset-left, 0px);
  --mw-nav-safe-right: env(safe-area-inset-right, 0px);
  --mw-nav-ink: var(--mw-text-secondary, #6b6b7b);
  --mw-nav-active: var(--mw-primary-dark, #47735c);
  position: fixed;
  inset: auto calc(12px + var(--mw-nav-safe-right)) calc(10px + var(--mw-nav-safe-bottom)) calc(12px + var(--mw-nav-safe-left));
  width: auto;
  max-width: 620px;
  height: 88px;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--mw-nav-count), minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
  overflow: visible;
}
.mw-mobile-bottom-nav--wave::before {
  content: '';
  position: absolute;
  inset: -12px -12px calc(-10px - var(--mw-nav-safe-bottom));
  background: linear-gradient(180deg, rgba(250, 250, 248, 0), var(--mw-bg, #fafaf8) 28px);
  pointer-events: none;
  z-index: -3;
}

.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 88px;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(30, 30, 48, 0.12));
  z-index: -2;
}
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__surface path {
  fill: var(--mw-surface, #fff);
  stroke: var(--mw-border, #e2ddd8);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__bubble {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  border: 2px solid var(--mw-nav-active);
  border-radius: 50%;
  background: var(--mw-surface, #fff);
  box-shadow: 0 3px 8px rgba(71, 115, 92, 0.12);
  pointer-events: none;
  z-index: -1;
}
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 44px;
  min-height: 80px;
  margin: 0;
  padding: 32px 0 0;
  gap: 7px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--mw-nav-ink);
  font: inherit;
  transform: none;
  transition: color 120ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item.active,
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item:hover,
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item:active {
  background: transparent;
  color: var(--mw-nav-active);
  transform: none;
}
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item:focus-visible {
  outline: 3px solid var(--mw-nav-active);
  outline-offset: 2px;
}
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__icon,
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item.active .mw-mobile-bottom-nav__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
  color: inherit;
  transition: none;
  pointer-events: none;
}
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__label {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  padding: 0 1px;
  margin: 0;
  clip: auto;
  clip-path: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(10px, 2.7vw, 11px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.15px;
  color: inherit;
}
.mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__badge {
  position: absolute;
  top: -9px;
  left: 16px;
  min-width: 18px;
  height: 18px;
  border: 2px solid var(--mw-surface, #fff);
  background: var(--mw-error, #c43030);
  color: #fff;
  padding: 0 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  box-shadow: none;
}

/* Existing layout reserves 98px + safe area: exactly 88px bar + 10px inset.
   Add breathing room without touching desktop spacing or scroll containers. */
@media (max-width: 767px) {
  .mw-has-bottom-nav .ant-layout-content {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 359px) {
  .mw-mobile-bottom-nav.mw-mobile-bottom-nav--wave {
    left: calc(8px + var(--mw-nav-safe-left));
    right: calc(8px + var(--mw-nav-safe-right));
  }
}
@media (prefers-reduced-motion: reduce) {
  .mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item { transition: none; }
}
@media (forced-colors: active) {
  .mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__surface path { fill: Canvas; stroke: CanvasText; }
  .mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__bubble { background: Canvas; border-color: Highlight; }
  .mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item { color: ButtonText; }
  .mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item.active { color: Highlight; }
  .mw-mobile-bottom-nav--wave .mw-mobile-bottom-nav__item:focus-visible { outline-color: Highlight; }
}
@media print { .mw-mobile-bottom-nav.mw-mobile-bottom-nav--wave { display: none; } }
