*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --vs-bg: #f3f7fb;
  --vs-bg-accent: #d9ecff;
  --vs-ink: #0f172a;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(217, 236, 255, 0.9), transparent 34%),
    radial-gradient(circle at right 20%, rgba(255, 228, 196, 0.75), transparent 28%),
    linear-gradient(180deg, #eef5fb 0%, #f8fafc 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--vs-ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: transparent;
}

#root {
  min-height: 100vh;
}

.issue-explorer-table .ant-table-thead > tr > th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.issue-explorer-table .ant-table-tbody > tr > td {
  padding-top: 8px;
  padding-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.issue-explorer-table .ant-tag {
  margin-inline-end: 0;
}

.markdown-summary {
  color: #1f2937;
  font-size: 13px;
  line-height: 1.72;
}

.markdown-summary > :first-child {
  margin-top: 0;
}

.markdown-summary > :last-child {
  margin-bottom: 0;
}

.markdown-summary h1,
.markdown-summary h2,
.markdown-summary h3,
.markdown-summary h4 {
  margin: 16px 0 8px;
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

.markdown-summary h1 { font-size: 22px; }
.markdown-summary h2 { font-size: 19px; }
.markdown-summary h3 { font-size: 16px; }
.markdown-summary h4 { font-size: 14px; }

.markdown-summary p,
.markdown-summary ul,
.markdown-summary ol {
  margin: 8px 0;
}

.markdown-summary li {
  margin: 5px 0;
}

.markdown-summary code {
  padding: 2px 5px;
  border-radius: 6px;
  color: #0f766e;
  background: #ecfeff;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.92em;
}

.markdown-summary pre {
  margin: 12px 0;
  padding: 14px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.markdown-summary pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.markdown-summary blockquote {
  margin: 12px 0;
  padding: 8px 12px;
  border-left: 3px solid #0f766e;
  border-radius: 10px;
  background: #f0fdfa;
}

.markdown-summary table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  font-size: 12px;
}

.markdown-summary th,
.markdown-summary td {
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  vertical-align: top;
}

.markdown-summary th {
  color: #0f172a;
  background: #eff6ff;
}

.markdown-summary-compact {
  font-size: 12.5px;
}

.visualization-page {
  min-height: 100vh;
  padding: 24px;
}

.visualization-hero {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.22), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(251, 191, 36, 0.18), transparent 25%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.96) 52%, rgba(20, 83, 45, 0.9) 100%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.visualization-hero .ant-card-body {
  position: relative;
}

.visualization-title {
  margin: 0 !important;
  color: #f8fafc !important;
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.035em;
}

.visualization-subtitle {
  margin-bottom: 0 !important;
  color: #cbd5e1 !important;
}

.visualization-kpi-row {
  margin-bottom: 16px;
}

.kpi-card,
.visual-panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.kpi-card .ant-statistic-title {
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpi-card .ant-statistic-content {
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
}

.kpi-green .ant-statistic-content {
  color: #15803d;
}

.kpi-red .ant-statistic-content {
  color: #dc2626;
}

.kpi-amber .ant-statistic-content {
  color: #d97706;
}

.visual-panel .ant-card-head {
  border-bottom-color: rgba(226, 232, 240, 0.72);
}

.visual-panel .ant-card-head-title {
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.015em;
}

.maturity-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #ccfbf1;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
}

.issue-narrative-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.92));
}

.issue-narrative-card {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.pdf-report-stage {
  position: fixed;
  top: 0;
  left: -14000px;
  width: 1120px;
  pointer-events: none;
  z-index: 0;
}

.pdf-report {
  width: 1120px;
  padding: 42px;
  color: #0f172a;
  background: #ffffff;
}

.pdf-report-header {
  padding: 28px;
  border-radius: 28px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.38), transparent 24%),
    linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
}

.pdf-report-header h1,
.pdf-report-header .ant-typography {
  color: inherit;
}

.pdf-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #99f6e4 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pdf-kpi-grid {
  margin-top: 18px;
}

.pdf-report .ant-card {
  border-radius: 18px;
}

.pdf-issue-block {
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.pdf-code-preview {
  margin: 12px 0 0;
  padding: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}
