

/* 2026-04 redesign layer */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-right: 8px;
  background: linear-gradient(180deg, rgba(106, 170, 255, 0.85), rgba(52, 114, 211, 0.95));
  color: #f6fbff;
  font-size: 16px;
  font-weight: 800;
}

.brand-title {
  display: block;
  line-height: 1;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: rgba(231, 241, 255, 0.78);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.desktop-meta {
  color: #6d84a3;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  margin-right: 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3d84ff, #2f67d8);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(31, 92, 189, 0.28);
}

.metric-tile-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-tile {
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 0.62rem 0.72rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.94));
}

.metric-tile__label {
  font-size: 0.76rem;
  color: var(--text-500);
  font-weight: 700;
}

.metric-tile__value {
  margin-top: 0.2rem;
  color: var(--text-900);
  font-size: 1.58rem;
  line-height: 1;
  font-weight: 800;
}

.metric-tile__sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--text-500);
}

.dashboard-shell-card {
  overflow: visible;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.users-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 991.98px) {
  .navbar {
    position: sticky;
    top: 0;
  }

  .navbar-brand .brand-subtitle,
  .desktop-meta {
    display: none;
  }

  html,
  body {
    scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .app-main {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
    border-top: 1px solid #d9e2f2;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(11, 32, 68, 0.08);
  }

  .mobile-tabbar__item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    min-width: 0;
    padding: 2px 2px;
    text-decoration: none;
    color: #7b879e;
    border-radius: 0;
    position: relative;
  }

  .mobile-tabbar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: currentColor;
  }

  .mobile-tabbar__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    line-height: 1;
  }

  .mobile-tabbar__label {
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-tabbar__item.active {
    color: #2f6bff;
    background: transparent;
  }

  .mobile-tabbar__item.active::before {
    display: none;
  }

  .metric-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .users-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .page-hero {
    padding: 0.48rem 0.54rem;
  }

  .page-hero--tight {
    padding: 0.42rem 0.52rem;
  }

  .summary-strip__item--asset {
    min-width: 210px;
    flex-basis: 210px;
  }

  .metric-tile__value {
    font-size: 1.32rem;
  }

  .users-filter-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .brand-subtitle {
  color: rgba(210, 229, 251, 0.72);
}

html[data-theme="dark"] .desktop-meta {
  color: rgba(207, 227, 250, 0.82);
}

html[data-theme="dark"] .page-number {
  background: linear-gradient(180deg, #5a9eff, #3b7ef0);
}

html[data-theme="dark"] .metric-tile {
  background: linear-gradient(160deg, rgba(24, 38, 57, 0.96), rgba(17, 29, 45, 0.96));
  border-color: rgba(142, 170, 204, 0.3);
}

html[data-theme="dark"] .mobile-tabbar {
  border-top-color: #17304b;
  background: rgba(12, 24, 41, 0.94);
  box-shadow: 0 -8px 22px rgba(2, 8, 18, 0.42);
}

html[data-theme="dark"] .mobile-tabbar__item {
  color: #7f96b5;
}

html[data-theme="dark"] .mobile-tabbar__item.active {
  color: #60a5fa;
}