.dzen-report {
  --dzen-bg: #f6f7f9;
  --dzen-panel: #ffffff;
  --dzen-ink: #17202a;
  --dzen-muted: #667085;
  --dzen-line: #d8dde6;
  --dzen-accent: #1f6feb;
  --dzen-good: #137333;
  --dzen-bad: #b42318;
  --dzen-soft-blue: #eaf2ff;
  --dzen-soft-green: #ebf7ef;
  color: var(--dzen-ink);
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  max-width: none;
}

.dzen-report * {
  box-sizing: border-box;
}

.dzen-report a {
  color: var(--dzen-accent);
  text-decoration: none;
}

.dzen-report a:hover {
  text-decoration: underline;
}

.dzen-hero,
.dzen-project-hero,
.dzen-section,
.dzen-topbar {
  background: var(--dzen-panel);
  border: 1px solid var(--dzen-line);
  border-radius: 8px;
}

.dzen-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
}

.dzen-eyebrow {
  margin: 0 0 8px;
  color: var(--dzen-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dzen-report h1,
.dzen-report h2 {
  margin: 0;
  letter-spacing: 0;
}

.dzen-report h1 {
  font-size: 30px;
}

.dzen-report h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.dzen-muted {
  color: var(--dzen-muted);
}

.dzen-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 12px;
  min-width: 390px;
}

.dzen-hero-stats div,
.dzen-metric-card {
  background: #f8fafc;
  border: 1px solid var(--dzen-line);
  border-radius: 8px;
  padding: 14px;
}

.dzen-hero-stats span,
.dzen-big-number,
.dzen-metric-value {
  display: block;
  font-size: 26px;
  font-weight: 700;
}

.dzen-hero-stats small {
  color: var(--dzen-muted);
}

.dzen-section {
  padding: 20px;
  margin-top: 18px;
}

.dzen-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dzen-project-card {
  border: 1px solid var(--dzen-line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.dzen-project-card.dzen-group-internal,
.dzen-report tr.dzen-group-internal td {
  background: #fff8df;
}

.dzen-group-badge {
  display: inline-flex;
  margin: 10px 0 8px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #ffe8a3;
  color: #6d4b00;
}

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

.dzen-project-name {
  font-weight: 700;
}

.dzen-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px;
}

.dzen-card-actions a,
.dzen-top-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #b9cdfa;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--dzen-accent);
  font-weight: 700;
  text-decoration: none;
}

.dzen-card-actions a:hover,
.dzen-top-actions a:hover {
  background: #dfeaff;
  text-decoration: none;
}

.dzen-trend-up,
.dzen-trend-down,
.dzen-trend-flat {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dzen-trend-up {
  color: var(--dzen-good);
  background: var(--dzen-soft-green);
}

.dzen-trend-down {
  color: var(--dzen-bad);
  background: #ffebe9;
}

.dzen-trend-flat {
  color: #475467;
  background: #eef1f5;
}

.dzen-sparkline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  height: 54px;
  gap: 6px;
  margin-top: 14px;
}

.dzen-sparkline span {
  display: block;
  min-height: 4px;
  background: var(--dzen-accent);
  border-radius: 3px 3px 0 0;
}

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

.dzen-report table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dzen-report th,
.dzen-report td {
  border-bottom: 1px solid var(--dzen-line);
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
}

.dzen-report th:first-child,
.dzen-report td:first-child {
  text-align: left;
}

.dzen-report thead th {
  background: #f4f6fa;
  font-weight: 700;
}

.dzen-ai-list {
  display: grid;
  gap: 10px;
}

.dzen-ai-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: var(--dzen-soft-blue);
  border: 1px solid #c8ddff;
  border-radius: 8px;
}

.dzen-ai-list span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--dzen-accent);
  font-weight: 700;
}

.dzen-ai-list p,
.dzen-strategy-grid p {
  margin: 0;
}

.dzen-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.dzen-top-actions {
  display: flex;
  gap: 14px;
}

.dzen-project-hero {
  padding: 24px;
  margin-bottom: 18px;
}

.dzen-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dzen-metric-title {
  color: var(--dzen-muted);
  margin-bottom: 8px;
}

.dzen-strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dzen-strategy-grid div {
  border: 1px solid var(--dzen-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.dzen-strategy-grid span {
  display: block;
  color: var(--dzen-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.dzen-report-list {
  display: grid;
  gap: 10px;
}

.dzen-report-list a {
  display: block;
  border: 1px solid var(--dzen-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  font-weight: 700;
}

@media (max-width: 860px) {
  .dzen-report {
    width: 100%;
  }

  .dzen-hero,
  .dzen-topbar {
    display: block;
  }

  .dzen-hero-stats,
  .dzen-cards-grid,
  .dzen-metric-grid,
  .dzen-strategy-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .dzen-top-actions {
    margin-top: 10px;
  }
}
