.report-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: .6rem 0 1rem; }
.report-actions .family-link { display: inline-flex; align-items: center; margin: 0; min-height: 44px; padding: .55rem .95rem; border: 1px solid #176363; border-radius: .55rem; color: #164749; font-weight: 800; text-decoration: none; }
.report-actions #download-report { background: #185557; color: #fff; }
.report-document { background: white; color: #23363a; border: 1px solid #abc9c4; border-radius: .8rem; overflow-wrap: anywhere; }
.report-cover { padding: clamp(1rem, 4vw, 2rem); background: #edf6f2; border-radius: .8rem .8rem 0 0; border-bottom: 1px solid #abc9c4; }
.report-brand { color: #176363; font-weight: 800; }
.report-cover #saved-report-title { margin: .28rem 0 .65rem; color: #163f43; font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.15; }
#saved-report-meta { margin: 0; display: grid; gap: .2rem; }
#saved-report-meta span + span { color: #425b60; font-size: .92rem; }
#saved-evidence { margin: 0; padding: clamp(1rem, 4vw, 2rem); gap: 1rem; }
#saved-evidence .activity-card { padding: .85rem 0 0; border: 0; border-top: 1px solid #abc9c4; border-radius: 0; background: white; }
#saved-evidence .activity-card:first-child { border-top: 0; padding-top: 0; }
#saved-evidence .activity-card h4 { color: #163f43; font-size: 1.23rem; }
#saved-evidence .evidence-detail strong { color: #176363; }
#saved-evidence .observations { margin: .65rem 0; }
#saved-evidence .observations li + li { margin-top: .8rem; }
.report-summary { margin: 0; }
@media print {
  @page { margin: 16mm; }
  html:has(#portal-reports:not([hidden]) #saved-report-document:not([hidden])) { height: auto; overflow: visible; }
  body.family:has(#caregiver-panel:not([hidden]) #portal-reports:not([hidden]) #saved-report-document:not([hidden])) {
    height: auto; overflow: visible; background: white;
    .family-main { width: auto; max-width: none; padding: 0; margin: 0; }
    .family-main > :not(#caregiver-panel), #caregiver-panel > :not(#portal-reports),
    #portal-reports > :not(#saved-report), #saved-report > :not(.report-document) { display: none !important; }
    #caregiver-panel, .report-document { border: 0; box-shadow: none; padding: 0; width: auto; }
    .report-cover, #saved-evidence { padding: 8pt 0; }
    #saved-evidence { display: block; }
    #saved-evidence .activity-card { margin: 12pt 0; }
    .report-cover, .observations li, .evidence-detail { break-inside: avoid; }
    #saved-evidence h4, .evidence-detail strong { break-after: avoid; }
  }
}
