.page-dashboard-body {
  --muted: var(--feed-muted-color, #64748b);
  --card-border: var(--feed-card-border, rgba(148, 163, 184, 0.28));
  --card-bg: var(--feed-card-bg, rgba(255, 255, 255, 0.82));
  --card-shadow: var(--feed-card-shadow, 0 32px 70px -26px rgba(15, 23, 42, 0.45));
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-color);
}

.page-dashboard-body.dark {
  --muted: var(--feed-muted-color, #94a3b8);
  --card-bg: var(--feed-card-bg, rgba(2, 6, 23, 0.82));
  --card-shadow: var(--feed-card-shadow, 0 40px 95px -24px rgba(2, 6, 23, 0.85));
}

.feed-navbar__context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-right: clamp(12px, 1.8vw, 24px);
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-color);
  min-width: 140px;
  gap: 2px;
}

.feed-navbar__context-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.feed-navbar__context-value {
  font-weight: 600;
  font-size: 14px;
}

.dashboard-layout {
  margin-top: clamp(24px, 4vw, 48px);
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}

.dashboard-hero {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 28px);
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.08)) var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.dash-ident {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(99, 102, 241, 0.45);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 20px 35px -20px rgba(15, 23, 42, 0.6);
}

.dash-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 14px;
}

.dash-header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-header-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.65);
}

.dash-header-meta span:first-child::before {
  display: none;
}

.dashboard-hero__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-action:hover,
.quick-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.16);
  outline: none;
}

.quick-action__icon {
  font-size: 22px;
}

.quick-action__label {
  font-size: 14px;
  line-height: 1.2;
}

.dashboard-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.glance-card {
  padding: clamp(16px, 2.4vw, 22px);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.04), rgba(99, 102, 241, 0.12)) var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glance-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.glance-value {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
}

.glance-meta {
  font-size: 13px;
  color: var(--muted);
}

.dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.dash-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: clamp(22px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.dash-card.wide {
  grid-column: 1 / -1;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head h2 {
  font-size: 20px;
  margin: 0;
}

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-pill {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.16), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
}

.stat-pill .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-pill .value {
  font-size: 24px;
  font-weight: 700;
}

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-item {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  background: rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dash-item:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}

.dash-item .item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-item .item-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.dash-table th,
.dash-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.dash-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

.dash-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.12);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row.full {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.18);
  color: var(--text-color, #e2e8f0);
  font: inherit;
}

.form-row textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-color, #e2e8f0);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn.ghost:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: inherit;
}

.sidebar-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.08);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.dashboard-sidebar__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dashboard-sidebar__link:hover,
.dashboard-sidebar__link:focus-visible {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(2px);
  outline: none;
}

.dashboard-sidebar__link.is-active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
}

.health-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.health-score {
  font-size: 34px;
  font-weight: 700;
}

.health-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.health-meter__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #22d3ee, #6366f1);
  transition: width 0.4s ease;
}

.health-meta {
  font-size: 13px;
  color: var(--muted);
}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: inherit;
  font-size: 13px;
}

.mini-list__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#teamActivityList li {
  flex-direction: column;
  align-items: flex-start;
}

.mini-meta {
  font-size: 12px;
  color: var(--muted);
}

.mini-list li strong {
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  background: rgba(99, 102, 241, 0.14);
  color: rgba(99, 102, 241, 0.95);
}

.status-pill.status-published {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

.status-pill.status-draft {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5f5;
}

.status-pill.status-canceled {
  background: rgba(248, 113, 113, 0.18);
  color: #f87171;
}

.right-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.08);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.right-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.right-card__head h3 {
  margin: 0;
  font-size: 18px;
}

.right-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: inherit;
}

.right-card__body p {
  margin: 0;
}

.momentum-highlight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.momentum-highlight strong {
  font-size: 16px;
}

.momentum-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.momentum-metrics .metric {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.metric-value {
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "right";
  }

  .dashboard-sidebar {
    position: relative;
    order: -1;
    width: auto;
  }

  .dashboard-sidebar .sidebar-card,
  .dashboard-sidebar__links {
    max-width: 100%;
  }

  .right-sidebar {
    position: relative;
    top: unset;
  }
}

@media (max-width: 900px) {
  .dashboard-hero__actions {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .glance-card {
    padding: 16px;
  }

  .dash-table {
    min-width: 100%;
  }
}

@media (max-width: 720px) {
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main";
  }

  .sidebar,
  .right-sidebar {
    display: none;
  }

  .dashboard-header {
    padding: 20px;
  }

  .quick-action {
    padding: 12px 14px;
  }

  .dash-card {
    padding: 20px;
  }
}