.dashboard-page {
  min-height: 100vh;
  margin: 0;
  color: #16233b;
  background:
    radial-gradient(circle at 20% 15%, rgba(191, 219, 254, 0.42), transparent 32%),
    linear-gradient(135deg, #f6f9ff 0%, #eef4fb 44%, #eaf1f8 100%);
  font-family: var(--kb-font, Inter, system-ui, sans-serif);
  overflow-x: hidden;
}

.dashboard-page *,
.dashboard-page *::before,
.dashboard-page *::after {
  box-sizing: border-box;
}

.dashboard-shell {
  width: min(100%, 1680px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: 18px 0 46px rgba(15, 23, 42, 0.05);
  z-index: 20;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: #1e3a8a;
  text-decoration: none;
}

.dashboard-brand-mark {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.dashboard-brand-wordmark {
  width: 92px;
  height: auto;
  display: block;
}

.dashboard-nav {
  display: grid;
  gap: 7px;
}

.dashboard-nav-link,
.dashboard-nav-link.kb-nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 16px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus-visible,
.dashboard-nav-link.active {
  color: #1d4ed8;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.14);
}

.dashboard-nav-link:focus-visible,
.dashboard-brand:focus-visible,
.dashboard-foot-link:focus-visible,
.dashboard-topbar-link:focus-visible,
.dashboard-icon-button:focus-visible,
.dashboard-account:focus-visible,
.dashboard-search button:focus-visible,
.dashboard-search input:focus-visible,
.dashboard-filter-row a:focus-visible,
.dashboard-card a:focus-visible,
.dashboard-demo-banner a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.dashboard-nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.74);
}

.dashboard-nav-icon svg,
.dashboard-icon-button svg,
.dashboard-search-icon svg,
.dashboard-kpi-icon svg {
  width: 18px;
  height: 18px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-sidebar-card {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(191, 219, 254, 0.84);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.dashboard-sidebar-card p,
.dashboard-sidebar-card strong,
.dashboard-sidebar-card span {
  margin: 0;
}

.dashboard-sidebar-card p {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-sidebar-card strong {
  color: #0f172a;
  font-size: 15px;
}

.dashboard-sidebar-card span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 750;
}

.dashboard-sidebar-footer {
  display: grid;
  gap: 8px;
}

.dashboard-foot-link {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.dashboard-foot-link:hover {
  color: #1d4ed8;
}

.dashboard-foot-link-danger {
  color: #b91c1c;
}

.dashboard-main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 42px) 42px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-eyebrow,
.dashboard-section-label {
  margin: 0;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-topbar h1 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.dashboard-wave {
  display: inline-block;
  transform-origin: 70% 70%;
}

.dashboard-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-mode-badge,
.dashboard-topbar-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.dashboard-mode-badge {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.9);
  border: 1px solid rgba(147, 197, 253, 0.76);
}

.dashboard-mode-live .dashboard-mode-badge {
  color: #047857;
  background: rgba(209, 250, 229, 0.9);
  border-color: rgba(110, 231, 183, 0.76);
}

.dashboard-topbar-link {
  color: #ffffff;
  background: #1d4ed8;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.2);
}

.dashboard-topbar-link:hover {
  background: #1e40af;
}

.dashboard-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 15px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.dashboard-icon-button:hover {
  background: #eff6ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-account {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 18px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.dashboard-account-avatar,
.dashboard-profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  font-weight: 900;
}

.dashboard-account-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.dashboard-account strong,
.dashboard-account small {
  display: block;
}

.dashboard-account strong {
  font-size: 13px;
  line-height: 1.15;
}

.dashboard-account small {
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

.dashboard-demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(147, 197, 253, 0.72);
  border-radius: 18px;
  color: #1e3a8a;
  background: rgba(239, 246, 255, 0.9);
}

.dashboard-demo-banner strong {
  white-space: nowrap;
}

.dashboard-demo-banner span {
  flex: 1;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
}

.dashboard-demo-banner a {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.dashboard-demo-banner a:hover {
  text-decoration: underline;
}

.dashboard-mode-live .dashboard-demo-banner {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 336px);
  gap: 22px;
  align-items: start;
}

.dashboard-workspace,
.dashboard-rail {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-card,
.dashboard-hero-card,
.dashboard-kpi-card,
.dashboard-trust-strip {
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.07);
}

.dashboard-hero-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  position: relative;
}

.dashboard-hero-card::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -64px;
  top: -68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 68%);
  pointer-events: none;
}

.dashboard-hero-copy {
  max-width: 690px;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.dashboard-hero-copy h2,
.dashboard-card-header h2,
.dashboard-profile-card h2,
.dashboard-activity-card h2,
.dashboard-shortcuts-card h2 {
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.035em;
}

.dashboard-hero-copy h2 {
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.05;
}

.dashboard-hero-copy p:last-child {
  max-width: 580px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}

.dashboard-search {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  padding: 8px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.09);
}

.dashboard-search-icon {
  display: grid;
  place-items: center;
  color: #2563eb;
}

.dashboard-search input {
  width: 100%;
  min-height: 44px;
  border: 0;
  color: #0f172a;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
}

.dashboard-search input:focus-visible {
  outline-offset: 0;
}

.dashboard-search button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: #1d4ed8;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.dashboard-search button:hover {
  background: #1e40af;
}

.dashboard-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.dashboard-filter-row a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: #1d4ed8;
  background: #eff6ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-filter-row a:hover {
  background: #dbeafe;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-kpi-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  min-height: 158px;
}

.dashboard-kpi-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
}

.dashboard-kpi-card p,
.dashboard-kpi-card strong,
.dashboard-kpi-card span {
  margin: 0;
}

.dashboard-kpi-card p {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-kpi-card strong {
  color: #0f172a;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.dashboard-kpi-card span:last-child {
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.dashboard-kpi-card-green .dashboard-kpi-icon {
  color: #047857;
  background: #d1fae5;
}

.dashboard-kpi-card-purple .dashboard-kpi-icon {
  color: #7c3aed;
  background: #ede9fe;
}

.dashboard-kpi-card-amber .dashboard-kpi-icon {
  color: #b45309;
  background: #fef3c7;
}

.dashboard-card {
  padding: 22px;
}

.dashboard-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-card-header-compact {
  margin-bottom: 14px;
}

.dashboard-card-header h2 {
  margin-top: 4px;
  font-size: 22px;
}

.dashboard-card-header a {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.dashboard-card-header a:hover {
  text-decoration: underline;
}

.dashboard-persona-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-persona-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.dashboard-persona-card img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  display: block;
  object-fit: cover;
  background: #e2e8f0;
}

.dashboard-persona-content {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.dashboard-persona-content h3,
.dashboard-persona-content p {
  margin: 0;
}

.dashboard-persona-content h3 {
  color: #0f172a;
  font-size: 16px;
}

.dashboard-persona-content p {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-persona-content strong {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
}

.dashboard-persona-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dashboard-persona-tags span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #475569;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-persona-content a {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.dashboard-persona-content a:hover {
  text-decoration: underline;
}

.dashboard-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.dashboard-trust-strip div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
}

.dashboard-trust-strip strong {
  color: #0f172a;
  font-size: 14px;
}

.dashboard-trust-strip span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.dashboard-profile-card {
  text-align: center;
}

.dashboard-profile-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  font-size: 22px;
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.2);
}

.dashboard-profile-card h2 {
  font-size: 22px;
}

.dashboard-profile-card p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
}

.dashboard-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.dashboard-profile-stats span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-profile-stats strong {
  color: #0f172a;
  font-size: 22px;
}

.dashboard-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.dashboard-activity-list li {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 12px;
}

.dashboard-activity-dot {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.11);
}

.dashboard-activity-dot-success {
  background: #059669;
  box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.11);
}

.dashboard-activity-dot-info {
  background: #2563eb;
}

.dashboard-activity-dot-budget {
  background: #7c3aed;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.11);
}

.dashboard-activity-dot-trust {
  background: #b45309;
  box-shadow: 0 0 0 5px rgba(180, 83, 9, 0.11);
}

.dashboard-activity-list strong,
.dashboard-activity-list p,
.dashboard-activity-list time {
  display: block;
}

.dashboard-activity-list strong {
  color: #0f172a;
  font-size: 14px;
}

.dashboard-activity-list p {
  margin: 4px 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.dashboard-activity-list time {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-shortcut-list {
  display: grid;
  gap: 10px;
}

.dashboard-shortcut-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  color: #0f172a;
  background: #f8fafc;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.dashboard-shortcut-list a:hover {
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.14);
}

.dashboard-shortcut-list strong,
.dashboard-shortcut-list span {
  display: block;
}

.dashboard-shortcut-list strong {
  font-size: 14px;
}

.dashboard-shortcut-list span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1280px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-activity-card,
  .dashboard-shortcuts-card {
    min-height: 100%;
  }
}

@media (max-width: 1120px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    height: auto;
    padding: 18px;
  }

  .dashboard-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-sidebar-card,
  .dashboard-sidebar-footer {
    display: none;
  }
}

@media (max-width: 860px) {
  .dashboard-main {
    padding: 20px 14px 34px;
  }

  .dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-account {
    width: 100%;
  }

  .dashboard-kpis,
  .dashboard-persona-grid,
  .dashboard-trust-strip,
  .dashboard-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dashboard-sidebar {
    gap: 18px;
  }

  .dashboard-nav {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-nav-link,
  .dashboard-nav-link.kb-nav-item {
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
  }

  .dashboard-nav-icon {
    width: 30px;
    height: 30px;
  }

  .dashboard-search {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .dashboard-search button {
    grid-column: 1 / -1;
  }

  .dashboard-kpis,
  .dashboard-persona-grid,
  .dashboard-trust-strip,
  .dashboard-rail {
    grid-template-columns: 1fr;
  }

  .dashboard-demo-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page *,
  .dashboard-page *::before,
  .dashboard-page *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
