.report-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.report-filter input { padding: 9px 12px; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface); color: var(--color-text); }
.report-sheet { padding: 28px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; }
.report-heading, .report-person-heading, .report-preview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.report-heading p { margin: 0; color: var(--color-text-secondary); }
.report-heading h2 { margin: 6px 0 0; font-size: 28px; }
.report-heading > span, .report-person-heading span { color: var(--color-text-secondary); }
.report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.report-metrics > div { padding: 16px; background: var(--color-bg); border-radius: 8px; }
.report-metrics span { display: block; color: var(--color-text-secondary); }
.report-metrics strong { display: block; margin-top: 6px; font-size: 30px; color: var(--color-primary); }
.report-person { border-top: 1px solid var(--color-border); padding: 18px 0; overflow-wrap: anywhere; }
.report-person-heading strong { font-size: 17px; }
.report-person p { color: var(--color-text); }
.report-overview { margin: 22px 0; padding: 16px 20px; background: var(--color-bg); border-radius: 8px; }
.report-overview h3 { margin: 0 0 8px; }
.report-overview p { margin: 6px 0; line-height: 1.8; }
.report-overview .report-attention { color: var(--color-warning); }
.report-person-summary { margin: 8px 0 0; line-height: 1.8; overflow-wrap: anywhere; }
.report-person dl { display: grid; grid-template-columns: 80px 1fr; gap: 8px; margin-bottom: 0; }
.report-person dt { color: var(--color-text-secondary); }
.report-person dd { margin: 0; }
.report-work-details { list-style: none; padding: 0; margin: 8px 0 12px; }
.report-work-details li { margin: 6px 0; padding: 10px 12px; border-left: 3px solid var(--color-primary); background: var(--color-bg); border-radius: 4px; }
.report-work-details span { color: var(--color-text-secondary); }
.report-notes { border-top: 1px solid var(--color-border); margin-top: 16px; padding-top: 12px; color: var(--color-text-secondary); font-size: 12px; }
.report-empty { padding: 24px 0; color: var(--color-text-secondary); }
.report-preview { width: min(1040px, calc(100vw - 32px)); max-width: none; height: 90vh; height: 90dvh; max-height: 90vh; max-height: 90dvh; margin: auto; padding: 0; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); color: var(--color-text); overflow: hidden; }
.report-preview[open] { display: flex; flex-direction: column; }
.report-preview::backdrop { background: rgba(15, 23, 42, .55); }
.report-preview-heading { flex-shrink: 0; padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
.report-preview-heading h2 { margin: 0; font-size: 20px; }
.report-preview-actions { display: flex; align-items: center; gap: 12px; }
.report-preview-body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 20px 12px; overflow: hidden; }
.report-preview-body > p { flex-shrink: 0; margin: 10px 0; }
.report-images { flex: 1; min-height: 0; overflow: hidden; background: var(--color-bg); }
.report-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.report-images.is-zoomed { overflow: auto; overscroll-behavior: contain; }
.report-images.is-zoomed img { height: auto; object-fit: initial; }
.report-preview-controls { flex-shrink: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
.report-preview [hidden] { display: none; }
@media (max-width: 640px) { .report-preview-heading { padding: 12px; } .report-preview-body { padding: 0 10px 10px; } .report-preview-actions { gap: 6px; } .report-preview-controls { gap: 6px; } .report-preview-controls .button { padding: 8px; } }
#report-error { color: var(--color-danger); }
@media (max-width: 640px) { .report-sheet { padding: 18px; } .report-metrics { grid-template-columns: repeat(2, 1fr); } .report-heading h2 { font-size: 24px; } }
