/* Propozycja układu raportu. Podstawowe style i lokalne fonty: ../library.css. */
.report-page { background: var(--dealyo-paper); color: var(--dealyo-ink); }
.report-page a { color: inherit; text-underline-offset: .22em; }
.report-page a:focus-visible,
.report-page summary:focus-visible,
.report-page [tabindex]:focus-visible { outline: 2px solid var(--dealyo-accent); outline-offset: 5px; }
.report-skip { position: absolute; left: 24px; top: -80px; z-index: 2; padding: 12px 16px; background: var(--dealyo-white); border: 1px solid var(--dealyo-ink); }
.report-skip:focus { top: 12px; }
.report-header { min-height: 88px; gap: 24px; }
.report-header .ds-logo { display: block; height: auto; }
.report-library-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.report-library-nav a { text-decoration: none; }
.report-library-nav a:hover { text-decoration: underline; }
.report-template-notice { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; padding: 20px 24px; border: 1px solid var(--dealyo-line); background: var(--dealyo-soft); font-size: 14px; }
.report-template-notice strong { font-weight: 600; }
.report-template-notice p { margin: 4px 0 0; line-height: 1.5; }
.report-template-notice > a { flex-shrink: 0; font-weight: 500; }
.report-template-notice > a span { margin-left: 8px; }
.report-document { border: 1px solid var(--dealyo-line); background: var(--dealyo-paper); }
.report-hero { padding: 64px 48px 0; text-align: center; background-image: linear-gradient(to right, var(--dealyo-line) 1px, transparent 1px), linear-gradient(to bottom, var(--dealyo-line) 1px, transparent 1px); background-size: 96px 96px; background-position: -1px -1px; }
.report-eyebrow { display: inline-block; margin: 0 0 24px; padding: 6px 12px; background: var(--dealyo-paper); }
.report-eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--dealyo-accent); }
.report-eyebrow span { margin: 0 8px; }
.report-hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(36px, 4.6vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; overflow-wrap: anywhere; }
.report-lead { max-width: 720px; margin: 24px auto 40px; color: var(--dealyo-muted); font-size: 18px; line-height: 1.6; }
.report-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; text-align: left; border: 1px solid var(--dealyo-line); border-bottom: 0; background: var(--dealyo-white); }
.report-meta > div { min-width: 0; padding: 20px 24px; }
.report-meta > div + div { border-left: 1px solid var(--dealyo-line); }
.report-meta dt, .report-method dt { margin-bottom: 8px; color: var(--dealyo-muted); font-size: 12px; line-height: 1.5; font-family: var(--dealyo-mono); }
.report-meta dd, .report-method dd { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.report-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 20px 24px; border-top: 1px solid var(--dealyo-line); font-size: 14px; }
.report-toc a { text-decoration: none; }
.report-toc a:hover { text-decoration: underline; }
.report-section { padding: 48px; scroll-margin-top: 24px; }
.report-section-heading { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.report-section-number { flex: 0 0 40px; padding-top: 3px; color: var(--dealyo-muted); font-family: var(--dealyo-mono); font-size: 13px; line-height: 1.5; }
.report-section-heading .ds-label { margin: 0 0 12px; }
.report-section h2 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; }
.report-section h3 { font-weight: 500; }
.report-section p { line-height: 1.6; overflow-wrap: anywhere; }
.report-section-intro { max-width: 760px; margin: -8px 0 28px; color: var(--dealyo-muted); font-size: 16px; }
.report-summary { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 32px; border: 1px solid var(--dealyo-line); background: var(--dealyo-white); }
.report-summary-main { align-self: center; margin: 0; font-size: 26px; line-height: 1.35 !important; letter-spacing: -.03em; }
.report-summary-next { padding-left: 32px; border-left: 1px solid var(--dealyo-line); }
.report-summary-next .ds-label { margin: 0 0 12px; }
.report-summary-next > p:last-child { margin: 0; font-size: 15px; }
.report-method { margin-top: 24px; border: 1px solid var(--dealyo-line); background: var(--dealyo-white); }
.report-method summary { padding: 20px 24px; cursor: pointer; font-weight: 500; font-size: 15px; }
.report-method summary::marker { color: var(--dealyo-ink); }
.report-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 0; padding: 0 24px 24px; }
.report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--dealyo-line); background: var(--dealyo-white); }
.report-metric { display: flex; flex-direction: column; min-width: 0; padding: 24px 20px; }
.report-metric + .report-metric { border-left: 1px solid var(--dealyo-line); }
.report-metric h3 { margin: 0 0 24px; font-size: 15px; line-height: 1.4; letter-spacing: 0; }
.report-metric .report-metric-value { margin: 0 0 6px; font-size: clamp(26px, 2.65vw, 36px); line-height: 1.15; letter-spacing: -.04em; font-weight: 500; }
.report-metric-unit { margin: 0 0 24px; color: var(--dealyo-muted); font-size: 13px; }
.report-metric-comparison { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--dealyo-line); font-size: 13px; }
.report-section .report-data-note { margin: 16px 0 0; font-size: 13px; }
.report-table-wrap { width: 100%; overflow-x: auto; background: var(--dealyo-white); border: 1px solid var(--dealyo-line); }
.report-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.5; }
.report-table caption { padding: 16px 20px; color: var(--dealyo-muted); font-size: 13px; text-align: left; border-bottom: 1px solid var(--dealyo-line); }
.report-table th, .report-table td { min-width: 150px; padding: 18px 20px; vertical-align: top; border-bottom: 1px solid var(--dealyo-line); }
.report-table thead th { background: var(--dealyo-paper); font-size: 12px; font-family: var(--dealyo-mono); font-weight: 400; }
.report-table tbody th { min-width: 190px; font-weight: 500; }
.report-table tbody tr:last-child > * { border-bottom: 0; }
.report-table tbody td:nth-child(3) { font-weight: 500; }
.report-chart { margin: 32px 0 0; padding: 28px; background: var(--dealyo-white); }
.report-chart figcaption .ds-label { margin: 0 0 12px; }
.report-chart h3 { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -.03em; }
.report-chart-empty { position: relative; display: grid; place-items: center; min-height: 300px; margin: 28px 0 20px; padding: 40px 24px 48px; border-left: 1px solid var(--dealyo-line); border-bottom: 1px solid var(--dealyo-line); background-image: repeating-linear-gradient(to top, transparent 0, transparent 59px, var(--dealyo-line) 59px, var(--dealyo-line) 60px); }
.report-chart-unit, .report-chart-period { position: absolute; color: var(--dealyo-muted); font-family: var(--dealyo-mono); font-size: 11px; line-height: 1.5; background: var(--dealyo-white); padding: 2px 8px; }
.report-chart-unit { left: 8px; top: 0; }
.report-chart-period { bottom: 8px; right: 4px; max-width: calc(100% - 16px); text-align: right; }
.report-chart-message { max-width: 390px; padding: 16px; background: var(--dealyo-white); text-align: center; }
.report-empty-symbol { display: block; margin: 0 auto 12px; width: 40px; height: 40px; line-height: 36px; border: 1px solid var(--dealyo-line); color: var(--dealyo-muted); font-size: 24px; }
.report-chart-message strong { font-size: 18px; font-weight: 500; }
.report-chart-message p { margin: 8px 0 0; color: var(--dealyo-muted); font-size: 14px; }
.report-chart > .ds-note { margin: 0; font-size: 13px; }
.report-account { padding: 28px; background: var(--dealyo-white); }
.report-account + .report-account { margin-top: 24px; }
.report-account-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.report-account-heading .ds-label { margin: 0 0 12px; }
.report-account h3 { max-width: 650px; margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.035em; }
.report-account-status { flex-shrink: 0; max-width: 180px; padding: 6px 10px; border: 1px solid var(--dealyo-line); font-size: 12px; font-family: var(--dealyo-mono); }
.report-account > p { max-width: 800px; margin: 20px 0 24px; font-size: 16px; }
.report-account-next { display: grid; grid-template-columns: 160px 1fr; gap: 24px; margin-top: 24px; padding: 20px; background: var(--dealyo-soft); }
.report-account-next p { margin: 0; font-size: 14px; }
.report-account-next .ds-label { font-size: 12px; }
.report-findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.report-findings .ds-card { padding: 24px; background: var(--dealyo-white); }
.report-findings .ds-label { min-height: 36px; margin: 0 0 20px; font-size: 11px; line-height: 1.6; }
.report-findings h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.report-findings .ds-card > p:last-child { margin: 0; color: var(--dealyo-muted); font-size: 14px; }
.report-action-table tbody th { min-width: 250px; width: 34%; }
.report-action-table tbody td:nth-child(2) { min-width: 140px; }
.report-action-table tbody td:nth-child(3) { min-width: 100px; font-weight: 400; }
.report-action-table tbody td:last-child { min-width: 220px; }
.report-action-priority { display: block; margin-bottom: 10px; font-size: 11px; line-height: 1.5; font-family: var(--dealyo-mono); color: var(--dealyo-muted); font-weight: 400; }
.report-next-review { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 20px 24px; border: 1px solid var(--dealyo-line); background: var(--dealyo-white); }
.report-next-review .ds-label { flex-shrink: 0; font-size: 12px; }
.report-next-review p { margin: 0; font-size: 14px; }
.report-next-review p span { padding: 0 8px; color: var(--dealyo-muted); }
.report-footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px 48px; border-top: 1px solid var(--dealyo-line); color: var(--dealyo-muted); font-size: 12px; line-height: 1.6; }
.report-footer p { margin: 0; }
.report-footer span { margin: 0 6px; }

@media (max-width: 1000px) {
  .report-hero { padding: 48px 32px 0; }
  .report-section { padding: 40px 32px; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-metric:nth-child(3) { border-left: 0; }
  .report-metric:nth-child(n + 3) { border-top: 1px solid var(--dealyo-line); }
  .report-findings { grid-template-columns: 1fr; }
  .report-findings .ds-label { min-height: 0; margin-bottom: 12px; }
  .report-footer { padding-inline: 32px; }
}

@media (max-width: 700px) {
  .report-header { min-height: 80px; gap: 16px; }
  .report-library-nav { gap: 12px; font-size: 12px; }
  .report-header .ds-logo { width: 104px; }
  .report-template-notice { display: block; padding: 16px; margin-bottom: 16px; font-size: 13px; }
  .report-template-notice > a { display: inline-block; margin-top: 12px; }
  .report-hero { padding: 36px 20px 0; background-size: 72px 72px; }
  .report-eyebrow { margin-bottom: 20px; padding-inline: 6px; font-size: 10px; }
  .report-eyebrow span { margin-inline: 3px; }
  .report-desktop-break { display: none; }
  .report-lead { margin: 20px 0 28px; font-size: 16px; }
  .report-meta { grid-template-columns: 1fr; }
  .report-meta > div { padding: 16px; }
  .report-meta > div + div { border-left: 0; border-top: 1px solid var(--dealyo-line); }
  .report-toc { justify-content: flex-start; padding: 16px 20px; gap: 12px 20px; font-size: 13px; }
  .report-section { padding: 32px 20px; }
  .report-section-heading { gap: 12px; margin-bottom: 24px; }
  .report-section-number { flex-basis: 24px; font-size: 11px; padding-top: 1px; }
  .report-section-heading .ds-label { font-size: 10px; margin-bottom: 10px; }
  .report-section h2 { font-size: 30px; }
  .report-section-intro { font-size: 15px; }
  .report-summary { grid-template-columns: 1fr; padding: 24px 20px; gap: 24px; }
  .report-summary-main { font-size: 23px; }
  .report-summary-next { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--dealyo-line); }
  .report-method summary { padding: 16px; font-size: 14px; }
  .report-method-grid { grid-template-columns: 1fr; padding: 0 16px 20px; gap: 20px; }
  .report-metric { padding: 20px 16px; }
  .report-metric h3 { font-size: 14px; margin-bottom: 20px; }
  .report-metric .report-metric-value { font-size: 25px; }
  .report-metric-unit { margin-bottom: 16px; }
  .report-metric-comparison { font-size: 12px; }
  .report-chart { padding: 20px 16px; margin-top: 24px; }
  .report-chart h3 { font-size: 22px; }
  .report-chart-empty { min-height: 320px; padding-inline: 8px; }
  .report-chart-message { padding: 12px; }
  .report-account { padding: 24px 20px; }
  .report-account-heading { flex-direction: column; gap: 16px; }
  .report-account h3 { font-size: 25px; }
  .report-account-status { max-width: 100%; }
  .report-account-next { grid-template-columns: 1fr; padding: 16px; gap: 10px; }
  .report-findings .ds-card { padding: 20px; }
  .report-next-review { display: block; padding: 20px; }
  .report-next-review p { margin-top: 10px; }
  .report-footer { display: block; padding: 24px 20px; }
  .report-footer p + p { margin-top: 8px; }
}

@media (max-width: 430px) {
  .report-header { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 20px; }
  .report-metrics { grid-template-columns: 1fr; }
  .report-metric + .report-metric { border-left: 0; border-top: 1px solid var(--dealyo-line); }
  .report-metric h3 { margin-bottom: 16px; }
  .report-metric .report-metric-value { font-size: 34px; }
}

@media print {
  @page { margin: 14mm; }
  .report-page { background: white; }
  .report-page > .ds-container, .report-header { max-width: none; padding-inline: 0; }
  .report-library-nav, .report-template-notice, .report-toc, .report-skip { display: none; }
  .report-header { min-height: 52px; }
  .report-document { border: 0; }
  .report-hero { padding: 24px 0 0; background: none; }
  .report-hero h1 { font-size: 34px; }
  .report-lead { font-size: 12px; margin-block: 16px 24px; }
  .report-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--dealyo-line); }
  .report-meta > div { padding: 12px; }
  .report-meta > div + div { border-left: 1px solid var(--dealyo-line); border-top: 0; }
  .report-section { padding: 28px 0; }
  .report-section h2 { font-size: 28px; }
  .report-section-heading { break-after: avoid; }
  .report-summary { padding: 20px; }
  .report-summary-main { font-size: 20px; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-metric + .report-metric { border-top: 0; border-left: 1px solid var(--dealyo-line); }
  .report-metric:nth-child(3) { border-left: 0; }
  .report-metric:nth-child(n + 3) { border-top: 1px solid var(--dealyo-line); }
  .report-metric .report-metric-value { font-size: 28px; }
  .report-table-wrap { overflow: visible; }
  .report-table { font-size: 10px; }
  .report-table th, .report-table td, .report-table tbody th, .report-action-table tbody td { min-width: 0; padding: 10px 8px; overflow-wrap: anywhere; }
  .report-table thead th, .report-table caption { font-size: 10px; }
  .report-table tbody tr { break-inside: avoid; }
  .report-chart, .report-method, .report-findings .ds-card, .report-next-review { break-inside: avoid; }
  .report-chart-empty { min-height: 240px; }
  .report-account { padding: 20px; }
  .report-footer { padding: 16px 0; }
}
