.best-match-results{max-width:1100px;margin:18px auto;padding:20px;background:#fff;border-radius:12px}.match-summary{color:#64717a}.best-match-card{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding:14px 16px;margin:12px 0;background:#dfe4e8;border:1px solid #a6b1ba;border-radius:18px}.match-error{color:#8b2d25}@media(max-width:700px){.best-match-card{grid-template-columns:1fr}}
.best-match-results{width:min(1100px,calc(100% - 48px))!important;max-width:1100px!important;box-sizing:border-box!important}.best-match-card strong,.best-match-card span,.best-match-card small{display:block;color:#18232d!important;-webkit-text-fill-color:#18232d!important}
.match-settings{margin:16px 0}.match-settings>label:first-child{display:block;font-weight:700;margin-bottom:6px}.match-settings select{width:100%;min-height:44px;padding:10px;border:1px solid #c8cfd4;border-radius:6px;background:white;color:#18232d}.match-settings .match-location-choice{display:flex;align-items:center;gap:8px;margin-top:14px}.match-settings input[type=checkbox]{width:auto;min-height:0}.match-settings p{font-size:13px;line-height:1.5;color:#52606b}.best-match-results[hidden]{display:none}.best-match-results p{line-height:1.5}.best-match-card small+small{margin-top:8px}#aci-search-distance:disabled{opacity:.7}#aci-best-contractor-start:disabled{cursor:wait;opacity:.7}
#find>.best-match-results{grid-column:1 / -1!important;width:100%!important;margin:24px 0 0!important;color:#18232d;text-align:left}#find .best-match-results h3{color:#18232d!important;-webkit-text-fill-color:#18232d!important;margin:0 0 12px}#find .best-match-results a{color:#24653c;text-decoration:underline}
.match-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.match-pagination button:disabled{opacity:.5;cursor:default}

/* Keep the checkbox label and its description in one aligned control. */
.ratings-filter-control{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:8px;row-gap:3px;margin:14px 0}
.ratings-filter-control>input[type=checkbox]{grid-column:1;grid-row:1;width:16px;height:16px;min-height:0;margin:3px 0 0;padding:0;align-self:start}
.ratings-filter-control>label{grid-column:2;grid-row:1;display:block;margin:0;font-weight:650;line-height:1.4;cursor:pointer;color:#18232d;-webkit-text-fill-color:#18232d}
.ratings-filter-control>p{grid-column:2;grid-row:2;margin:0;font-size:13px;line-height:1.4;color:#52606b}

.aci-candidate-controls{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:16px 0}.aci-candidate-controls label{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.aci-candidate-controls select{padding:8px;border:1px solid #8797a6;border-radius:8px;background:white;color:#172c40}.aci-candidate-info{width:min(680px,92vw);max-height:85dvh;padding:0;border:1px solid #8797a6;border-radius:16px;color:#172c40;background:#fff}.aci-candidate-info::backdrop{background:rgb(0 0 0 / .5)}.aci-candidate-info header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#edf2f6;position:sticky;top:0}.aci-candidate-info h3{margin:0}.aci-candidate-info header button{font-size:28px;min-width:44px;min-height:44px;border:0;background:transparent;color:#172c40;cursor:pointer}.aci-candidate-info-body{padding:4px 20px 20px}.aci-candidate-info-body a{color:#245e80;text-decoration:underline}

/* Match the app: blue surroundings, white section text, dark card text. */
#find > .best-match-results { background: transparent; color: #fff; }
#find .best-match-results > h3 { color: #fff !important; -webkit-text-fill-color: #fff !important; }
#find .best-match-results > p,
#find .best-match-results .match-summary,
#find .best-match-results .aci-candidate-controls > label,
#find .best-match-results .match-pagination > span { color: #fff; -webkit-text-fill-color: #fff; }
#find .best-match-results .aci-candidate-controls > button,
#find .best-match-results .match-pagination > button { background: #173b59; border-color: #a6b1ba; color: #fff; -webkit-text-fill-color: #fff; }
#find .best-match-card { color: #000; }
#find .best-match-card strong,
#find .best-match-card span,
#find .best-match-card small,
#find .best-match-card .match-company-link { color: #000 !important; -webkit-text-fill-color: #000 !important; }
#find .best-match-card .aci-card-selection { color: #173b59; }
#find .best-match-results .aci-candidate-controls select,
#find .best-match-results .aci-candidate-controls option { color: #172c40; -webkit-text-fill-color: #172c40; }

/* Half-size location control, including its layout footprint. */
#aci-best-contractor .aci-current-location { zoom: .5; }

/* Candidates share the Explore section frame below its filters. */
#find > .best-match-results{width:100%!important;max-width:none!important;margin:20px 0 0!important;padding:0;background:transparent}

#find .best-match-results,#find .best-match-results > h3,#find .best-match-results > p,#find .best-match-results .match-summary,#find .best-match-results .aci-candidate-controls > label,#find .best-match-results .match-pagination > span,#find .best-match-results .aci-wa-card p{color:#173b59!important;-webkit-text-fill-color:#173b59!important}

/* Compact secondary action above contractor candidates. */
#find .best-match-results .aci-candidate-controls > button[data-candidate-info]{font-size:12px!important;line-height:1.2!important;padding:4px 9px!important;min-height:28px!important;height:28px!important;min-width:0!important;width:auto!important;flex:0 0 auto;border-radius:6px!important;margin:0!important;}

/* AZ candidate cards use the same column sizing as specific lookup. */
#find>.best-match-results:has(>.best-match-card,>.aci-area-source){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;align-items:start}
#find>.best-match-results[hidden]{display:none!important}
#find>.best-match-results:has(>.best-match-card,>.aci-area-source)>:not(.best-match-card):not(.aci-area-source){grid-column:1/-1}
body #find .best-match-results .best-match-card{display:flex;flex-direction:column;min-width:0;min-height:0;margin:0;padding:12px;border-radius:12px;gap:8px;line-height:1.35;overflow-wrap:anywhere}
body #find .best-match-results .best-match-card .match-company-link{font-size:1.05rem;line-height:1.35}
body #find .best-match-results .best-match-card>span{font-size:.8rem}
body #find .best-match-results .best-match-card small{font-size:11px;margin-top:5px}
body #find .best-match-results .best-match-card .btn{width:100%;min-height:40px;margin-top:8px}
body #find .best-match-results .aci-match-licenses{font-size:12px;margin-top:4px}
body #find .best-match-results .aci-match-licenses summary{cursor:pointer;color:#173b59;font-weight:650}
@media(max-width:1050px){#find>.best-match-results:has(>.best-match-card,>.aci-area-source){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#find>.best-match-results:has(>.best-match-card,>.aci-area-source){grid-template-columns:1fr}}

body #find .best-match-results .aci-score-gauge{width:108px;margin:4px 0}

/* Source-state candidates share the specific-lookup card renderer and footprint. */
#find .best-match-results>.aci-area-source{min-width:0;display:flex;flex-direction:column;gap:6px}
#find .best-match-results>.aci-area-source>p{font-size:11px;margin:0;line-height:1.35}
#find .best-match-results .contractor-card{min-width:0;min-height:0;padding:12px!important;line-height:1.35;overflow-wrap:anywhere}
#find .best-match-results .contractor-card h3{font-size:1.05rem!important;margin:6px 0 3px!important}
#find .best-match-results .contractor-card .avatar{width:32px;height:32px;font-size:13px}
#find .best-match-results .contractor-card .tags{margin:6px 0;gap:4px}
#find .best-match-results .contractor-card .verified{margin:5px 0;font-size:11px}
#find .best-match-results .contractor-card .aci-card-actions{margin-top:0;padding-top:6px;gap:5px}
#find .best-match-results .contractor-card .aci-card-actions>button{min-height:40px}
#find .best-match-results .aci-score-gauge figcaption b{font-size:25px}
#find .best-match-results .aci-score-gauge figcaption span{font-size:10px}
