/* Scoped compression controls and evidence blocks. */
.target-controls { align-items: end; }
.target-pixel-fields { width: 100%; border: 1px solid #d5d4cc; border-radius: 12px; padding: 16px; margin: 4px 0; }
.target-pixel-fields legend { padding: 0 6px; font-weight: 600; }
.target-pixel-inputs { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; }
.target-pixel-inputs input { width: 100%; min-width: 0; box-sizing: border-box; padding: 12px; border: 1px solid #c7c8bf; border-radius: 8px; font: inherit; color: inherit; background: #fffefa; }
.target-preview { display: block; max-width: 100%; max-height: 420px; margin: 20px auto; object-fit: contain; border: 1px solid #d5d4cc; background: #fff; }
#target-error:empty { display: none; }
#target-error { color: #9b2e1a; }
.proof-card { margin: 28px 0; padding: 20px 24px; border-left: 4px solid #48735e; background: #edf0e7; border-radius: 0 12px 12px 0; }
.proof-card h2 { margin-top: 0; font-size: 1.25rem; }
.proof-card p:last-child { margin-bottom: 0; }
.proof-card a { color: #a74f45; text-underline-offset: 3px; }
.report-scroll { overflow-x: auto; }
.standalone-card[aria-labelledby="social-heading"] .standalone-actions { flex-wrap: wrap; }
.standalone-card[aria-labelledby="social-heading"] .simple-tool-form,
.standalone-card[aria-labelledby="social-heading"] .control-group { grid-template-columns: minmax(0, 1fr); }
.standalone-card[aria-labelledby="social-heading"] select { min-width: 0; }
.report-table td, .report-table th { vertical-align: top; }
.report-table a { text-underline-offset: 3px; }
.cv-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cv-controls .control-group { min-width: 0; }
.cv-controls select, .cv-controls input { min-width: 0; }
.cv-controls .standalone-actions { grid-column: 1 / -1; }
#cv-download-over[hidden] { display: none; }
#cv-download-over { max-width: 100%; white-space: normal; padding: 10px 17px; }
#cv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#cv-stats .info-item { min-width: 0; }
#cv-stats strong { overflow-wrap: anywhere; }
#cv-size-status { overflow-wrap: anywhere; }
#cv-size-status[data-state="fail"] { color: #9b2e1a; }
#cv-size-status[data-state="pass"] { color: #326047; }
@media (max-width: 640px) { .cv-controls, #cv-stats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .target-pixel-inputs { grid-template-columns: 1fr 1fr; } .target-pixel-inputs > :last-child { grid-column: 1 / -1; } .proof-card { padding: 16px; } .info-item strong { overflow-wrap: anywhere; } }
