.dashboard-nav {
  position: sticky;
  top: .75rem;
  z-index: 20;
  display: flex;
  gap: .4rem;
  margin: 0 0 1.5rem;
  padding: .45rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px #071d3b12;
}

.dashboard-nav button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .45rem;
  padding: .7rem .85rem;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.dashboard-nav button:hover,
.dashboard-nav button[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}

.dashboard-nav button span {
  font-size: 1rem;
}

.mobile-more {
  display: none !important;
}

.role-hidden,
.plan-hidden {
  display: none !important;
}

.app-view {
  min-width: 0;
}

.view-heading {
  margin-bottom: 1.5rem;
}

.view-heading h1 {
  margin: .2rem 0;
  color: var(--navy);
  font: 700 clamp(2rem, 5vw, 3.4rem)/1 Georgia, serif;
}

.view-heading p:last-child {
  color: var(--muted);
}

.overview-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.overview-actions button {
  display: grid;
  gap: .25rem;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  text-align: left;
  box-shadow: 0 10px 24px #071d3b0b;
}

.overview-actions button:hover {
  border-color: var(--gold);
  background: #fffdf8;
}

.overview-actions span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 5.5rem;
  }

  .dashboard-nav {
    position: fixed;
    inset: auto .65rem .65rem;
    z-index: 100;
    justify-content: space-around;
    margin: 0;
    padding: .35rem;
    overflow: visible;
    border-radius: 18px;
  }

  .dashboard-nav button {
    display: grid;
    justify-items: center;
    gap: .1rem;
    min-width: 4.4rem;
    padding: .45rem .55rem;
    font-size: .7rem;
  }

  .dashboard-nav button span {
    font-size: 1.05rem;
    line-height: 1;
  }

  .dashboard-nav .secondary {
    position: absolute;
    right: 0;
    bottom: calc(100% + .5rem);
    display: none;
    width: min(15rem, calc(100vw - 1.3rem));
    justify-items: start;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    box-shadow: 0 14px 36px #071d3b2b;
  }

  .dashboard-nav .secondary.more-open {
    display: flex;
  }

  .dashboard-nav .secondary:nth-of-type(4) { bottom: calc(100% + .5rem); }
  .dashboard-nav .secondary:nth-of-type(5) { bottom: calc(100% + 3.65rem); }
  .dashboard-nav .secondary:nth-of-type(6) { bottom: calc(100% + 6.8rem); }
  .dashboard-nav .secondary:nth-of-type(7) { bottom: calc(100% + 9.95rem); }

  .mobile-more {
    display: grid !important;
  }

  .overview-actions {
    grid-template-columns: 1fr;
  }
}
