/* Shared contractor backgrounds; paused estimates retain their yellow background unless licensing needs attention. */
.contractor-card:not(.aci-estimates-paused),
.best-match-card:not(.aci-estimates-paused),
.aci-project-card:has(a[href*="company="]):not(.aci-estimates-paused),
.demo-card:not(.aci-estimates-paused) {
  background: #cce5d5 !important;
  border-color: #79a88a !important;
}

/* Any status other than Active or Clear uses warning pink, including unknown status. */
#results .contractor-card.aci-license-warning,
#profile-content .aci-license-detail.aci-license-warning { background:#fce0e8!important; border-color:#c75b64!important; }

#results .contractor-card.aci-license-warning,
#aci-best-results .best-match-card.aci-license-warning,
body .best-match-card.aci-license-warning,
body .contractor-card.aci-license-warning { background:#fce0e8!important; border-color:#c75b64!important; }

/* Search cards always retain a status color despite layout overrides. */
body #results .contractor-card:not(.aci-license-warning):not(.aci-estimates-paused),
body #aci-best-results .best-match-card:not(.aci-license-warning):not(.aci-estimates-paused) {
  background:#cce5d5!important;border-color:#79a88a!important;
}
body #results .contractor-card.aci-estimates-paused:not(.aci-license-warning),
body #aci-best-results .best-match-card.aci-estimates-paused:not(.aci-license-warning) {
  background:#fff2b3!important;border-color:#c6a446!important;
}
body #results .contractor-card.aci-license-warning,
body #aci-best-results .best-match-card.aci-license-warning {
  background:#fce0e8!important;border-color:#c75b64!important;
}

/* Compact search cards without reducing action target sizes. */
body #results{align-items:start}
body #results .contractor-card{min-height:0;padding:12px!important;line-height:1.35}
body #results .contractor-card h3{font-size:1.05rem!important;margin:6px 0 3px!important}
body #results .contractor-card .avatar{width:32px;height:32px;font-size:13px}
body #results .contractor-card .tags{margin:6px 0;gap:4px}
body #results .contractor-card .verified{margin:5px 0;font-size:11px}
body #results .contractor-card .aci-card-actions{margin-top:0;padding-top:6px;gap:5px}
body #results .contractor-card .aci-card-actions>button{min-height:40px}
body :is(#results,#aci-best-results) .aci-score-gauge{width:108px;margin:4px 0}
body :is(#results,#aci-best-results) .aci-score-gauge figcaption b{font-size:25px}
body :is(#results,#aci-best-results) .aci-score-gauge figcaption span{font-size:10px}
body :is(#results,#aci-best-results) .aci-gauge-toggle-hint{margin-top:2px}
body #results .contractor-card .aci-card-score-toggle{margin-top:4px}
body #aci-best-results .best-match-card{padding:10px 12px;margin:8px 0;gap:8px;line-height:1.35}
