.ni-dashboard-body {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.10), transparent 28rem),
    radial-gradient(circle at top right, rgba(181, 45, 30, 0.10), transparent 26rem),
    linear-gradient(180deg, #f4efe8 0%, #f7f3ee 38%, #fffdfa 100%);
}

.ndb-page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 72px;
  display: grid;
  gap: 24px;
}

.ndb-hero,
.ndb-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(67, 55, 43, 0.10);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(67, 55, 43, 0.10);
}

.ndb-hero {
  padding: 34px 34px 30px;
  display: grid;
  gap: 20px;
}

.ndb-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.ndb-kicker {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a2d1e;
}

.ndb-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #201712;
}

.ndb-hero p {
  margin: 0;
}

.ndb-updated {
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #1d1917;
  color: #f8f3ef;
}

.ndb-updated-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 6px;
}

.ndb-updated-value {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
}

.ndb-summary {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #43372b;
  max-width: 70ch;
}

.ndb-privacy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
  color: #17453f;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ndb-privacy strong {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ndb-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.ndb-metric {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 239, 232, 0.90));
  border: 1px solid rgba(67, 55, 43, 0.08);
}

.ndb-metric-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6c5b4f;
}

.ndb-metric-value {
  display: block;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #1d1917;
}

.ndb-metric-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #5a4d43;
}

.ndb-panel {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.ndb-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.ndb-panel h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.05;
  color: #1f1712;
}

.ndb-panel-copy {
  margin: 0;
  max-width: 62ch;
  color: #5d5045;
  line-height: 1.7;
}

.ndb-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.95fr);
  gap: 20px;
}

.ndb-chart-card,
.ndb-side-card,
.ndb-story-card {
  padding: 22px;
  border-radius: 24px;
  background: #fcfaf7;
  border: 1px solid rgba(67, 55, 43, 0.08);
}

.ndb-chart-title,
.ndb-side-card h3,
.ndb-story-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #271f19;
}

.ndb-bar-list {
  display: grid;
  gap: 10px;
}

.ndb-bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 112px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ndb-bar-label,
.ndb-source-label {
  font-size: 0.92rem;
  color: #4f4339;
}

.ndb-bar-track,
.ndb-source-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 23, 18, 0.08);
  overflow: hidden;
}

.ndb-bar-fill,
.ndb-source-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #b52d1e, #0f766e);
}

.ndb-bar-value,
.ndb-source-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #201712;
  white-space: nowrap;
}

.ndb-side-grid {
  display: grid;
  gap: 10px;
}

.ndb-side-stat {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f3ede6;
}

.ndb-side-stat strong {
  color: #1c1713;
}

.ndb-side-stat span {
  color: #63564b;
}

.ndb-source-list {
  display: grid;
  gap: 12px;
}

.ndb-source-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ndb-story-list {
  display: grid;
  gap: 16px;
}

.ndb-story-card {
  display: grid;
  gap: 16px;
}

.ndb-story-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.ndb-story-rank {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #1d1917;
  color: #fffaf5;
  font-weight: 800;
}

.ndb-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #62554a;
  font-size: 0.92rem;
}

.ndb-story-card h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.45;
}

.ndb-story-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ndb-story-card h3 a:hover {
  text-decoration: underline;
}

.ndb-story-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ndb-story-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4efe8;
}

.ndb-story-stat-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5e53;
}

.ndb-story-stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e1712;
}

.ndb-mini-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 92px;
}

.ndb-mini-bar {
  display: grid;
  gap: 8px;
}

.ndb-mini-bar-fill {
  width: 100%;
  min-height: 6px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #0f766e, #134e4a);
}

.ndb-mini-bar-label {
  font-size: 0.78rem;
  color: #6b5f54;
  text-align: center;
}

.ndb-mini-bar-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d1917;
  text-align: center;
}

.ndb-empty {
  padding: 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed rgba(67, 55, 43, 0.18);
  color: #5d5145;
}

.ndb-loading {
  min-height: 40vh;
  display: grid;
  place-items: center;
  color: #5d5045;
  font-size: 1rem;
}

@media (max-width: 1120px) {
  .ndb-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ndb-story-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ndb-page {
    width: min(100% - 20px, 920px);
    gap: 18px;
  }

  .ndb-hero,
  .ndb-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .ndb-hero-top,
  .ndb-panel-head,
  .ndb-story-head {
    display: grid;
  }

  .ndb-updated {
    min-width: 0;
  }

  .ndb-grid-2,
  .ndb-story-stats {
    grid-template-columns: 1fr;
  }

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

  .ndb-source-row,
  .ndb-bar-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ndb-metric-grid {
    grid-template-columns: 1fr;
  }

  .ndb-story-card,
  .ndb-chart-card,
  .ndb-side-card {
    padding: 18px;
    border-radius: 18px;
  }
}
