* { box-sizing: border-box; }
body { background: #edf1f6; color: #102033; font: 15px/1.55 Arial, sans-serif; margin: 0; }
a { color: #1457a8; }
.toolbar { max-width: 1050px; margin: 24px auto 0; padding: 0 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions button, .actions a { border: 1px solid #c6d2e1; border-radius: 6px; padding: 10px 16px; background: white; text-decoration: none; font: bold 14px Arial, sans-serif; cursor: pointer; }
.actions button { color: white; background: #1457a8; border-color: #1457a8; }
.actions button:disabled { opacity: .65; cursor: wait; }
.actions #copy-text { color: #1457a8; background: white; border-color: #c6d2e1; }
#image-copy-fallback { margin: 16px 0; padding: 16px; border: 1px solid #c6d2e1; background: white; }
#image-copy-fallback p { font-size: 13px; }
#report-image { display: block; max-width: 100%; width: 300px; max-height: 360px; object-fit: contain; object-position: top left; margin-top: 12px; border: 1px solid #d6dde6; }
.actions :focus-visible, textarea:focus-visible { outline: 3px solid #d68c26; outline-offset: 3px; }
#copy-status { min-height: 24px; font-size: 13px; }
.copy-help { font-size: 13px; color: #5d6b7c; margin-bottom: 4px; }
#manual-copy { margin-bottom: 18px; }
#manual-copy label { display: block; font-weight: bold; }
#email-text { width: 100%; min-height: 230px; padding: 12px; font: 14px/1.5 Arial, sans-serif; }
#report { max-width: 1000px; background: white; border: 1px solid #d6dde6; margin: 0 auto 36px; padding: 36px 40px; }
.report-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid #d6dde6; }
.report-header > div { flex: 1; min-width: 0; }
.report-logo { display: block; flex: none; width: 180px; height: 120px; object-fit: contain; }
@media(max-width: 700px) { .report-header { flex-direction: column-reverse; align-items: flex-start; gap: 16px; } .report-logo { width: 150px; height: 100px; } }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 8px; }
h2 { border-bottom: 1px solid #d6dde6; font-size: 19px; margin: 28px 0 12px; padding-bottom: 6px; }
h3 { color: #1457a8; font-size: 16px; margin: 22px 0 6px; }
p { margin: 8px 0 14px; }
.muted { color: #5d6b7c; font-size: 12px; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 18px; }
.card { border: 1px solid #d6dde6; border-radius: 6px; padding: 10px; }
.label { color: #5d6b7c; font-size: 11px; text-transform: uppercase; }
.value { font-size: 19px; font-weight: bold; margin-top: 4px; overflow-wrap: anywhere; }
.warning { background: #fff7ed; border-left: 4px solid #f97316; margin-top: 14px; padding: 10px 12px; }
.note { background: #f6f8fb; border-left: 4px solid #1457a8; margin-top: 12px; padding: 10px 12px; }
table { border-collapse: collapse; font-size: 13px; width: 100%; }
th, td { border-bottom: 1px solid #e5eaf0; padding: 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { color: #5d6b7c; }
figure { margin: 24px 0; }
figcaption { font-weight: bold; margin-bottom: 8px; }
svg { width: 100%; height: auto; display: block; }
.chart-key { color: #5d6b7c; font-size: 12px; margin: 5px 0; }
@media(max-width: 700px) { .toolbar { padding: 0 16px; } #report { margin: 0 8px 20px; padding: 24px 16px; } .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } h1 { font-size: 24px; } table { font-size: 12px; } th,td { padding: 6px 4px; } }
@media print { body { background: white; } .toolbar { display: none; } #report { border: 0; max-width: none; padding: 0; margin: 0; } figure, tr, .grid { break-inside: avoid; } }
