@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root { --ink:#102a2a; --ink-soft:#45605a; --forest:#123f3a; --green:#176c5b; --mint:#bcebd7; --mint-light:#e7f7ef; --coral:#f47b60; --line:#d8e3dc; --paper:#fff; --screen:#edf1ee; }
* { box-sizing: border-box; }
body { margin: 0; padding: 24px; color: var(--ink); background: var(--screen); font-family: 'DM Sans', Arial, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
.button { min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; }
.button--dark { color: #fff; background: var(--ink); }
.button--ghost { color: var(--ink); background: transparent; border-color: #b8c9bf; }
.report-toolbar { display: flex; width: min(210mm, 100%); margin: 0 auto 20px; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.report-toolbar__brand { display: flex; align-items: center; gap: 9px; font-family: 'Manrope', Arial, sans-serif; font-size: 18px; }
.report-toolbar__brand img { width: 36px; height: 36px; }
.report-toolbar__actions { display: flex; margin-left: auto; align-items: center; gap: 10px; }
.report-toolbar__back { margin-right: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.report-toolbar > p { width: 100%; color: var(--ink-soft); font-size: 11px; }
.report-sheet { position: relative; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 12mm 13mm 10mm; overflow: hidden; background: var(--paper); box-shadow: 0 15px 45px rgba(16, 42, 42, .13); }
.sample-watermark { position: absolute; z-index: 0; top: 43%; left: 50%; color: var(--green); font-family: 'Manrope', Arial, sans-serif; font-size: 80pt; font-weight: 800; letter-spacing: 8px; opacity: .09; pointer-events: none; transform: translate(-50%, -50%) rotate(-28deg); }
.report-header, .report-meta, .report-section, .report-footer { position: relative; z-index: 1; }
.report-header { display: flex; padding-bottom: 5mm; align-items: flex-start; justify-content: space-between; gap: 12mm; border-bottom: 2px solid var(--forest); }
.report-brand { display: flex; align-items: center; gap: 3mm; }
.report-brand img { width: 12mm; height: 12mm; }
.report-brand strong, .report-brand span { display: block; }
.report-brand strong { font-family: 'Manrope', Arial, sans-serif; font-size: 17pt; letter-spacing: -.5px; }
.report-brand span { margin-top: 1mm; color: var(--ink-soft); font-size: 9pt; }
.report-title { text-align: right; }
.report-title > span { color: var(--green); font-size: 9pt; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.report-title h1 { margin: 1mm 0 1.5mm; font: 800 22pt/1.1 'Manrope', Arial, sans-serif; letter-spacing: -1px; }
.report-title p { color: var(--ink-soft); font-size: 11pt; }
.report-title p strong { color: var(--ink); }
.report-meta { display: grid; margin: 5mm 0; padding: 3.5mm 4mm; grid-template-columns: repeat(3, 1fr); gap: 3mm 6mm; background: #f1f7f3; border: 1px solid var(--line); border-radius: 3mm; }
.report-meta dt { margin-bottom: .7mm; color: var(--ink-soft); font-size: 8.5pt; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.report-meta dd { min-height: 1.5em; font-size: 10.5pt; font-weight: 600; }
.report-section { margin-top: 5mm; break-inside: avoid; }
.report-section h2 { display: flex; margin-bottom: 3mm; align-items: center; gap: 2.5mm; font: 800 12pt/1.2 'Manrope', Arial, sans-serif; }
.report-section h2 > span { display: grid; width: 8mm; height: 8mm; color: var(--ink); background: var(--mint); border-radius: 2mm; font-size: 9pt; place-items: center; }
.report-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6mm; }
.report-details > div { padding: 2.4mm 0; border-bottom: 1px solid var(--line); }
.report-details dt, .report-notes h3 { margin-bottom: 1mm; color: var(--green); font-size: 9pt; font-weight: 700; letter-spacing: .35px; text-transform: uppercase; }
.report-details dd { min-height: 2.6em; color: var(--ink-soft); font-size: 11pt; line-height: 1.5; }
.report-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.report-photo__frame { position: relative; height: 39mm; overflow: hidden; background: #edf2ee; border: 1px solid var(--line); border-radius: 3mm; }
.report-photo__frame > img { width: 100%; height: 100%; object-fit: cover; }
.report-photo figcaption { min-height: 1.5em; margin-top: 1.5mm; color: var(--ink-soft); font-size: 9pt; }
.photo-upload { display: flex; height: 100%; padding: 4mm; align-items: center; justify-content: center; flex-direction: column; color: var(--green); text-align: center; cursor: pointer; }
.photo-upload span { font-size: 11pt; font-weight: 700; }
.photo-upload small { margin-top: 1mm; color: var(--ink-soft); font-size: 8.5pt; }
.report-section__intro { margin: -1mm 0 2.5mm; color: var(--ink-soft); font-size: 9pt; }
.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm 5mm; }
.test-grid label { display: flex; padding: 2.2mm 2.5mm; align-items: center; gap: 2.5mm; background: #f7faf7; border: 1px solid var(--line); border-radius: 2mm; font-size: 11pt; cursor: pointer; }
.test-grid input { position: relative; width: 4mm; height: 4mm; margin: 0; flex: 0 0 auto; appearance: none; background: var(--paper); border: 1px solid #9db5a9; border-radius: 1mm; accent-color: var(--green); }
.test-grid input:checked { background: var(--green); border-color: var(--green); }
.test-grid input:checked::after { position: absolute; top: .3mm; left: 1.1mm; width: 1.2mm; height: 2.1mm; border: solid #fff; border-width: 0 .55mm .55mm 0; content: ''; transform: rotate(45deg); }
.test-grid input:disabled { opacity: 1; }
.report-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.report-notes > div { padding: 3mm; border: 1px solid var(--line); border-radius: 3mm; }
.report-notes p { min-height: 3em; color: var(--ink-soft); font-size: 11pt; }
.report-footer { margin-top: 5mm; padding-top: 3mm; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 8.5pt; line-height: 1.5; }
.report-footer p + p { margin-top: 1.5mm; }
.report-footer strong { color: var(--ink); }
[contenteditable] { border-radius: 1mm; outline: 0; }
[contenteditable]:hover { background: rgba(188, 235, 215, .18); }
[contenteditable]:focus { background: var(--mint-light); box-shadow: 0 0 0 1px var(--green); }
[contenteditable]:empty::before { color: #8a9c93; content: attr(data-placeholder); font-weight: 400; }
.is-sample [contenteditable] { cursor: default; }
.is-sample [contenteditable]:hover { background: transparent; }
.is-sample .test-grid label { cursor: default; }
.is-sample .photo-input { display: none; }

@media (max-width: 850px) {
  body { padding: 14px; }
  .report-sheet { width: 100%; min-height: 0; padding: 28px; }
  .report-toolbar__actions { width: 100%; margin-left: 0; }
}
@media (max-width: 520px) {
  body { padding: 10px; }
  .report-toolbar__brand { width: 100%; }
  .report-toolbar__actions { flex-wrap: wrap; }
  .report-toolbar__back { width: 100%; }
  .report-sheet { padding: 20px 16px; }
  .report-header { flex-direction: column; gap: 18px; }
  .report-title { text-align: left; }
  .report-title h1 { font-size: 26px; }
  .report-meta { grid-template-columns: repeat(2, 1fr); }
  .report-details, .report-notes { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .report-photo__frame { height: 110px; }
  .sample-watermark { font-size: 55px; }
}

@page { size: A4 portrait; margin: 0; }
@media print {
  body { padding: 0; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print, .photo-upload { display: none !important; }
  .report-sheet { width: 210mm; min-height: 297mm; margin: 0; padding: 12mm 13mm 10mm; box-shadow: none; }
  .report-header { padding-bottom: 3mm; }
  .report-meta { margin: 3mm 0; }
  .report-section { margin-top: 3mm; }
  .report-photo__frame { height: 28mm; }
  .report-footer { margin-top: 3mm; }
  .report-brand span { font-size: 7pt; }
  .report-title > span { font-size: 7pt; }
  .report-title p { font-size: 8pt; }
  .report-meta dt { font-size: 6.5pt; }
  .report-meta dd { font-size: 8.5pt; }
  .report-section h2 > span { font-size: 7pt; }
  .report-details dt, .report-notes h3 { font-size: 7pt; }
  .report-details dd { font-size: 8pt; }
  .report-photo figcaption { font-size: 7pt; }
  .report-section__intro { font-size: 7pt; }
  .test-grid label { font-size: 8pt; }
  .report-notes p { font-size: 8pt; }
  .report-footer { font-size: 6.5pt; }
  .report-photo.is-empty { display: none; }
  [contenteditable]:empty::before { content: ''; }
  [contenteditable]:hover, [contenteditable]:focus { background: transparent; box-shadow: none; }
  .test-grid label { cursor: default; }
  a { color: inherit; }
}
