/* Mobile primary navigation shared by the decision and trading-audit surfaces. */
body.home-page {
  --primary-tab-accent: #52dacb;
  --primary-tab-active-bg: rgba(49, 207, 191, .13);
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

body.trade-overview-page {
  --primary-tab-accent: #8fc3ff;
  --primary-tab-active-bg: rgba(96, 165, 250, .16);
}

.global-bottom-tabs {
  position: fixed;
  z-index: 1000;
  left: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-height: 58px;
  padding: 4px 10px max(4px, env(safe-area-inset-bottom));
  border: 1px solid rgba(74, 101, 119, .85);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: rgba(8, 21, 31, .98);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.global-bottom-tab {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 48px;
  border-radius: 12px;
  color: #8da0ad;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.global-bottom-tab svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.global-bottom-tab.is-active {
  background: var(--primary-tab-active-bg);
  color: var(--primary-tab-accent);
}

.global-bottom-tab:focus-visible {
  outline: 2px solid var(--primary-tab-accent);
  outline-offset: 2px;
}

/* The audit is a wide desktop workspace and already exposes its peer route in the top bar. */
@media (min-width: 769px) {
  body.trade-overview-page .global-bottom-tabs { display: none; }
}
