.posturio-report {
  --report-bg: #f3f6fb;
  --report-surface: #ffffff;
  --report-surface-muted: #f8fafc;
  --report-ink: #0f172a;
  --report-muted: #475569;
  --report-line: #d0d9e5;
  --report-brand: #0b4a6f;
  --report-brand-soft: #ecf6ff;
  --report-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --sev-critical-bg: #fee2e2;
  --sev-critical-border: #fca5a5;
  --sev-critical-ink: #991b1b;
  --sev-high-bg: #ffedd5;
  --sev-high-border: #fdba74;
  --sev-high-ink: #9a3412;
  --sev-medium-bg: #fef9c3;
  --sev-medium-border: #fcd34d;
  --sev-medium-ink: #854d0e;
  --sev-low-bg: #dcfce7;
  --sev-low-border: #86efac;
  --sev-low-ink: #166534;

  width: 100%;
  color: var(--report-ink);
  background: var(--report-bg);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.posturio-report.posturio-report--app #report-plan-capabilities {
  display: none;
}

.posturio-report.posturio-report--sample {
  background: transparent;
}

.posturio-report.posturio-report--dark {
  --report-bg: rgba(2, 6, 23, 0.3);
  --report-surface: rgba(15, 23, 42, 0.84);
  --report-surface-muted: rgba(30, 41, 59, 0.9);
  --report-ink: #e2e8f0;
  --report-muted: #94a3b8;
  --report-line: rgba(148, 163, 184, 0.34);
  --report-brand: #38bdf8;
  --report-brand-soft: rgba(7, 89, 133, 0.32);
  --report-shadow: 0 16px 28px rgba(2, 6, 23, 0.45);
  --sev-critical-bg: rgba(127, 29, 29, 0.34);
  --sev-critical-border: rgba(248, 113, 113, 0.52);
  --sev-critical-ink: #fecaca;
  --sev-high-bg: rgba(124, 45, 18, 0.33);
  --sev-high-border: rgba(251, 146, 60, 0.5);
  --sev-high-ink: #fed7aa;
  --sev-medium-bg: rgba(113, 63, 18, 0.33);
  --sev-medium-border: rgba(250, 204, 21, 0.52);
  --sev-medium-ink: #fef08a;
  --sev-low-bg: rgba(20, 83, 45, 0.32);
  --sev-low-border: rgba(74, 222, 128, 0.5);
  --sev-low-ink: #bbf7d0;
}

.posturio-report.posturio-report--dark .report-header-bar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 47, 73, 0.72) 100%);
}

.posturio-report.posturio-report--dark .report-score-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.93) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.posturio-report.posturio-report--dark .report-findings-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.45);
}

.posturio-report.posturio-report--dark .finding-card {
  background: rgba(15, 23, 42, 0.64);
}

.posturio-report.posturio-report--dark .report-finding-text {
  color: #cbd5e1;
}

.posturio-report.posturio-report--dark .sev-unknown {
  background: rgba(51, 65, 85, 0.45);
  border-color: rgba(148, 163, 184, 0.5);
  color: #e2e8f0;
}

.posturio-report.posturio-report--dark .report-evidence-hint {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.6);
}

.posturio-report.posturio-report--dark .report-cta-secondary {
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
}

.posturio-report .report-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.posturio-report .report-section {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--report-line);
  border-radius: 14px;
  background: var(--report-surface);
  box-shadow: var(--report-shadow);
  box-sizing: border-box;
  page-break-inside: avoid;
  break-inside: avoid;
}

.posturio-report .report-header-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border-color: #bfd3e7;
}

.posturio-report .report-brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.posturio-report .report-brand-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.posturio-report .report-logo {
  width: 38px;
  height: 38px;
}

.posturio-report .report-title {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.12;
}

.posturio-report .report-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--report-brand);
}

.posturio-report .report-header-meta {
  background: var(--report-brand-soft);
  border: 1px solid #c7dbf0;
  border-radius: 12px;
  padding: 12px;
}

.posturio-report .report-meta-line {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--report-ink);
}

.posturio-report .report-meta-line:last-child {
  margin-bottom: 0;
}

.posturio-report .report-score-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.posturio-report .report-score-value {
  margin: 8px 0 6px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  line-height: 1;
}

.posturio-report .report-score-status {
  display: inline-block;
  margin: 0 0 14px;
  border: 1px solid var(--report-line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.posturio-report .report-score-status.status-strong {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.posturio-report .report-score-status.status-good {
  background: #e0f2fe;
  border-color: #93c5fd;
  color: #075985;
}

.posturio-report .report-score-status.status-needs-attention {
  background: #fef9c3;
  border-color: #facc15;
  color: #854d0e;
}

.posturio-report .report-score-status.status-high-risk {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.posturio-report .report-count-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.posturio-report .report-count-pill {
  border: 1px solid var(--report-line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.posturio-report .report-count-pill strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.posturio-report table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  page-break-inside: auto;
  break-inside: auto;
}

.posturio-report tr {
  page-break-inside: avoid;
  break-inside: avoid;
}

.posturio-report th,
.posturio-report td {
  padding: 12px;
  vertical-align: top;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.posturio-report th {
  text-align: left;
}

.posturio-report .report-findings-table,
.posturio-report .report-meta-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.posturio-report .report-findings-table th,
.posturio-report .report-findings-table td,
.posturio-report .report-meta-table th,
.posturio-report .report-meta-table td {
  border: 1px solid var(--report-line);
}

.posturio-report .report-findings-table th,
.posturio-report .report-meta-table th {
  background: var(--report-surface-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.posturio-report .report-findings-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.posturio-report .report-findings-table th:nth-child(1),
.posturio-report .report-findings-table td:nth-child(1) {
  min-width: 120px;
}

.posturio-report .report-findings-table th:nth-child(3),
.posturio-report .report-findings-table td:nth-child(3) {
  min-width: 160px;
}

.posturio-report .report-findings-table th:nth-child(5),
.posturio-report .report-findings-table td:nth-child(5) {
  min-width: 160px;
}

.posturio-report .report-findings-table td {
  font-size: 13px;
  line-height: 1.45;
}

.posturio-report .report-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.posturio-report .report-findings-table td .report-view-details {
  display: inline;
}

.posturio-report .report-view-details {
  color: var(--report-brand);
  text-decoration: none;
  font-weight: 700;
}

.posturio-report .report-view-details:hover,
.posturio-report .report-view-details:focus-visible {
  text-decoration: underline;
}

.posturio-report .report-severity-pill {
  display: inline-block;
  border: 1px solid var(--report-line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.posturio-report .sev-critical {
  background: var(--sev-critical-bg);
  border-color: var(--sev-critical-border);
  color: var(--sev-critical-ink);
}

.posturio-report .sev-high {
  background: var(--sev-high-bg);
  border-color: var(--sev-high-border);
  color: var(--sev-high-ink);
}

.posturio-report .sev-medium {
  background: var(--sev-medium-bg);
  border-color: var(--sev-medium-border);
  color: var(--sev-medium-ink);
}

.posturio-report .sev-low {
  background: var(--sev-low-bg);
  border-color: var(--sev-low-border);
  color: var(--sev-low-ink);
}

.posturio-report .sev-unknown {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

.posturio-report .finding-card {
  border: 1px solid var(--report-line);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 12px;
  background: #ffffff;
  page-break-inside: avoid;
  break-inside: avoid;
}

.posturio-report .finding-card:last-child {
  margin-bottom: 0;
}

.posturio-report .report-finding-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.posturio-report .report-finding-meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--report-muted);
}

.posturio-report .report-finding-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #1f2937;
}

.posturio-report .report-title,
.posturio-report .report-meta-line,
.posturio-report .report-finding-title,
.posturio-report .report-finding-meta,
.posturio-report .report-finding-text,
.posturio-report .report-findings-table th,
.posturio-report .report-findings-table td,
.posturio-report .report-finding-list li,
.posturio-report .report-plan-list li,
.posturio-report .report-next-steps-list li,
.posturio-report .report-evidence-list li,
.posturio-report .report-disclaimer,
.posturio-report .report-evidence-hint {
  overflow-wrap: anywhere;
  word-break: normal;
}

.posturio-report .report-finding-subtitle {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--report-brand);
}

.posturio-report .report-finding-list,
.posturio-report .report-plan-list,
.posturio-report .report-next-steps-list,
.posturio-report .report-evidence-list {
  margin: 0;
  padding-left: 18px;
}

.posturio-report .report-finding-list li,
.posturio-report .report-plan-list li,
.posturio-report .report-next-steps-list li,
.posturio-report .report-evidence-list li {
  margin: 0 0 6px;
  line-height: 1.55;
}

.posturio-report .report-evidence-hint {
  margin: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  color: var(--report-muted);
}

.posturio-report .report-disclaimer {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--report-muted);
  line-height: 1.6;
}

.posturio-report .report-cta-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.posturio-report .report-cta-button {
  display: inline-block;
  border-radius: 10px;
  border: 1px solid var(--report-brand);
  padding: 9px 12px;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.posturio-report .report-cta-primary {
  background: var(--report-brand);
  color: #ffffff;
}

.posturio-report .report-cta-secondary {
  background: #ffffff;
  color: var(--report-brand);
}

.posturio-report .report-empty-cell {
  color: var(--report-muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .posturio-report .report-section {
    padding: 16px;
  }

  .posturio-report .report-brand-row {
    grid-template-columns: 1fr;
  }

  .posturio-report .report-count-pills,
  .posturio-report .report-cta-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .posturio-report .report-section {
    padding: 14px;
  }

  .posturio-report .report-count-pills,
  .posturio-report .report-cta-actions {
    grid-template-columns: 1fr;
  }

  .posturio-report .report-findings-table {
    min-width: 560px;
  }

  .posturio-report .report-findings-table th:nth-child(1),
  .posturio-report .report-findings-table td:nth-child(1),
  .posturio-report .report-findings-table th:nth-child(3),
  .posturio-report .report-findings-table td:nth-child(3),
  .posturio-report .report-findings-table th:nth-child(5),
  .posturio-report .report-findings-table td:nth-child(5) {
    min-width: 0;
  }
}

@media print {
  .posturio-report {
    --report-bg: #ffffff;
    --report-surface: #ffffff;
    --report-surface-muted: #f8fafc;
    --report-ink: #0f172a;
    --report-muted: #475569;
    --report-line: #d0d9e5;
    --report-brand: #0b4a6f;
    --report-brand-soft: #ecf6ff;
    color: var(--report-ink);
    background: var(--report-bg);
  }

  .posturio-report,
  .posturio-report * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .posturio-report .report-container {
    max-width: 100%;
    margin: 0;
  }

  .posturio-report .report-section {
    margin: 0 0 10px;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .posturio-report .cta-web-only {
    display: none !important;
  }

  .posturio-report .report-findings-table th {
    position: static;
  }

  .posturio-report .report-table-wrap {
    overflow: visible;
  }

  .posturio-report .report-header-meta,
  .posturio-report .report-score-status,
  .posturio-report .report-count-pill,
  .posturio-report .report-severity-pill,
  .posturio-report .report-evidence-hint {
    border-width: 1px;
  }

  .posturio-report .finding-card {
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none;
  }
}
