/* AI999 horse search: top-right canonical-ID search, preserve V9 rectangular bars. */
.top{gap:13px}.top nav{align-items:center;flex-wrap:wrap;justify-content:flex-end}
.horseSearchOpen{background:linear-gradient(100deg,#dfb65d,#f5df9a);color:#172b3c;border:1px solid #ffebbd;box-shadow:0 2px 12px #dbbc5a22;border-radius:6px;padding:10px 14px;font-size:12px;font-weight:950;white-space:nowrap}
.horseSearchOpen:hover{filter:brightness(1.08)}
.horseSearchOverlay[hidden]{display:none!important}
.horseSearchOverlay{position:fixed;inset:0;background:#05101fd9;display:flex;align-items:center;justify-content:center;padding:16px;z-index:25000}
.horseSearchDialog{width:min(1350px,100%);height:min(890px,94vh);background:#102942;border:1px solid #597997;color:#eef8ff;border-radius:12px;display:flex;flex-direction:column;box-shadow:0 15px 60px #0009;overflow:hidden}
.horseSearchHeading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:17px 18px 11px;border-bottom:1px solid #365a78}
.horseSearchHeading h2{font-size:21px;margin:0 0 4px}.horseSearchHeading p{color:#b1cede;font-size:11px;line-height:1.6;margin:0}
#horseSearchClose{background:#274e69;color:#f3f8ff;border:1px solid #60849e;font-size:12px;border-radius:5px;padding:8px 12px;white-space:nowrap;font-weight:800}
.horseSearchField{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 15px}
.horseSearchField label{font-size:12px;font-weight:900;color:#d8eaf5}
.horseSearchField input{flex:1;min-width:180px;border:1px solid #81b5d0;background:#eaf6ff;color:#142f48;padding:11px;border-radius:6px;outline-offset:2px}
#horseSearchIndexStatus{font-size:10px;color:#a6c8d7;max-width:100%}
.horseSearchContent{flex:1;min-height:0;display:grid;grid-template-columns:minmax(230px,.70fr) minmax(0,1.7fr);gap:0;border-top:1px solid #365a78}
.horseSearchListPanel{display:flex;flex-direction:column;min-height:0;border-right:1px solid #365a78}
.horseSearchListTitle{padding:10px 12px;background:#1c3852;font-size:12px;font-weight:850;color:#d6ebf9}
#horseSearchResults{overflow-y:auto;padding:8px 8px 18px;min-height:0;flex:1}
.horseSearchResult{display:flex;justify-content:space-between;gap:8px;width:100%;text-align:left;border:1px solid #355c78;background:#183650;color:#edf8ff;border-radius:5px;margin-bottom:7px;padding:9px}
.horseSearchResult:hover,.horseSearchResult.chosen{background:#2b5570;border-color:#8bdbe5}
.horseSearchResult b{font-size:13px;display:block;line-height:1.45}
.horseSearchResult small{font-size:10px;color:#a9c8db;display:block;margin-top:4px}
.horseSearchResult .resultCount{font-size:10px;color:#e1c680;text-align:right;white-space:nowrap}
.horseSearchProfilePanel{overflow-y:auto;padding:14px;min-height:0;background:#112b43}
.horseSearchEmpty{padding:20px;border:1px dashed #4c718b;border-radius:5px;color:#b9d4e3;font-size:12px;line-height:1.9}
.horseSearchProfileHeader{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;border-bottom:1px solid #396280;padding-bottom:12px;margin-bottom:13px}
.horseSearchProfileHeader h3{font-size:23px;margin:0 0 4px}.horseSearchProfileHeader small{color:#a5c6d9;font-size:11px}
.horseSearchTag{font-size:10px;font-weight:850;color:#07253b;background:#c6e9e7;padding:6px 9px;border-radius:3px}
.horseSearchStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.horseSearchStats>div{padding:9px;background:#193d59;border:1px solid #3d6885;border-radius:6px;min-width:0}
.horseSearchStats b{display:block;color:#ffdc90;font-size:20px}.horseSearchStats small{font-size:10px;color:#afd1df}
.horseSearchSectionTitle{font-size:15px;font-weight:950;color:#eef8ff;margin:18px 0 8px}
.horseSearchWarn{color:#ebd3a2;border:1px solid #78653e;background:#303645;padding:9px 11px;font-size:11px;line-height:1.7;border-radius:5px}
.horseSearchWeek{border:1px solid #396582;border-radius:6px;margin:7px 0;padding:10px;background:#19394f;font-size:12px;color:#e2f3fa}
.horseSearchWeek small{display:block;color:#a6c9d7;margin-top:4px}
.horseSearchDnaBarRow{border:1px solid #385b7c;background:#19384f;border-radius:5px;padding:9px 10px;margin-bottom:8px}
.horseSearchDnaHeader{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;font-weight:800}
.horseSearchDnaHeader b{color:#ffdea0;font-size:19px}
.horseSearchDnaTrack{height:16px;position:relative;background:repeating-linear-gradient(90deg,#20384e,#20384e 24%,#3e5b77 25%);border:1px solid #6b8495;margin-top:6px;overflow:hidden;border-radius:0}
.horseSearchDnaTrack i{display:block;height:100%;border-radius:0;background:linear-gradient(180deg,#ffedab,#dcac4f 40%,#ac7a24 75%,#d8a948)}
.horseSearchDnaBarRow.dna200 .horseSearchDnaTrack i{background:#8f90c9}
.horseSearchDnaBarRow.dna300 .horseSearchDnaTrack i{background:#76a5eb}
.horseSearchDnaBarRow.dna400 .horseSearchDnaTrack i{background:#55c9d1}
.horseSearchDnaBarRow.dna500 .horseSearchDnaTrack i{background:#61c993}
.horseSearchDnaBarRow.dna600 .horseSearchDnaTrack i{background:#e0d071}
.horseSearchDnaBarRow.dna700 .horseSearchDnaTrack i{background:linear-gradient(180deg,#fce3a2,#d99e3b 60%,#e4ad5d)}
.horseSearchDnaBarRow.dna800 .horseSearchDnaTrack i{background:linear-gradient(180deg,#fff2bb,#d6a54c 60%,#eabf70)}
.horseSearchSourceNote{font-size:10px;color:#b4cde1;line-height:1.7;margin:6px 0}
.horseSearchFactorSummary{cursor:pointer;font-size:11px;font-weight:850;color:#9ee3ec;padding:6px 0}
.horseSearchFactorGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.horseSearchFactor{background:#20415a;border:1px solid #3f6381;padding:8px;border-radius:3px}
.horseSearchFactor b{font-size:11px;color:#eaf3fc}.horseSearchFactor small{display:block;margin-top:4px;font-size:10px;color:#b5cede}
.horseSearchFactor .miniTrack{background:#385873;height:5px;margin-top:6px;border-radius:0}.horseSearchFactor .miniTrack i{display:block;height:100%;background:#7dcddc;border-radius:0}
.horseSearchHistoryHeader{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.horseSearchHistoryHeader button{background:#234964;border:1px solid #5a849a;color:#eaf6fa;padding:6px 10px;border-radius:5px;font-size:11px}
.horseSearchTableWrap{width:100%;overflow-x:auto}
.horseSearchTable{border-collapse:collapse;width:100%;font-size:11px;min-width:550px}
.horseSearchTable th,.horseSearchTable td{padding:8px 6px;border-bottom:1px solid #385b79;text-align:left}
.horseSearchTable th{background:#234660;color:#e2f2fa;font-weight:900}
.horseSearchTable tbody tr:nth-child(even){background:#1d3a53}
.horseSearchFoot{border-top:1px solid #365a78;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:11px 16px;font-size:10px;color:#a6c5d8}
.horseSearchFoot a{color:#b1e8f4;font-weight:850}
body.horseSearchBodyOpen{overflow:hidden}
@media(max-width:850px){
 .horseSearchDialog{height:min(900px,97vh)}
 .horseSearchContent{grid-template-columns:1fr;grid-template-rows:minmax(125px,34%) minmax(0,1fr)}
 .horseSearchListPanel{border-right:0;border-bottom:1px solid #365a78}
 .horseSearchProfilePanel{padding:10px}
 .horseSearchOverlay{padding:5px}
 .horseSearchHeading{padding:12px 10px 8px}
 .horseSearchField{padding:8px 10px}
 .horseSearchFactorGrid{grid-template-columns:1fr}
 .top nav{gap:8px}
 .horseSearchOpen{padding:8px 9px;font-size:11px}
}

/* Active 496 horses, lifetime DNA V3 card. */
.horseSearchTopGraph{padding:13px;background:#1a3d56;border:1px solid #537da1;border-radius:8px;margin:10px 0}
.topGraphTitle{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:13px}
.topGraphTitle b{font-size:25px;color:#f5d48d}
.topGraphTitle b small{font-size:11px;color:#c5d7de}
.topGraphTitle span{font-size:12px;font-weight:900;color:#dbd0b3}
.horseSearchDnaTrack.pending{background:repeating-linear-gradient(90deg,#274158,#274158 15px,#405a74 15px,#405a74 16px);height:22px;border:1px dashed #869cad;border-radius:0}
.horseSearchTopGraph .horseSearchDnaTrack{height:22px;border-radius:0}
.horseSearchTopGraph .horseSearchDnaTrack i{border-radius:0}
.horseSearchCareerStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0}
.horseSearchCareerStats>div{background:#284962;border:1px solid #537490;border-radius:5px;padding:10px 7px}
.horseSearchCareerStats b{display:block;color:#ffe098;font-size:17px;font-weight:950;font-variant-numeric:tabular-nums}
.horseSearchCareerStats small{font-size:10px;color:#bdd5e4}
.horseSearchDna36Group{background:#193954;border:1px solid #466c85;border-radius:5px;margin:7px 0}
.horseSearchDna36Group summary{padding:10px 12px;cursor:pointer;color:#bfe7ed;font-weight:900;font-size:12px}
.horseSearchDna36Items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px}
.horseSearchDna36Item{background:#23435f;border:1px solid #355f7d;padding:9px;border-radius:4px;display:flex;flex-wrap:wrap;gap:7px;justify-content:space-between;font-size:11px}
.horseSearchDna36Item>span:first-child{flex:1 1 58%;min-width:0}
.horseSearchDna36Item span b{color:#ffd895}
.dna36missing{font-size:10px;color:#a6b6c6}
.dna36observed{font-size:12px;color:#c4f1df;font-weight:900}
.horseSearchDna36Item small{display:block;flex:1 1 100%;font-size:9px;color:#abc7d4}
.horseRow .horseName{cursor:pointer}
.horseRow .horseName:hover strong{text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px){.horseSearchCareerStats{grid-template-columns:repeat(2,minmax(0,1fr))}.horseSearchDna36Items{grid-template-columns:1fr}.horseSearchCareerStats b{font-size:17px}}


.horseSearchDataAudit{font-size:11px;font-weight:900;margin:9px 0;padding:8px 10px;border:1px solid;border-radius:4px;line-height:1.5}
.horseSearchDataAudit.pass{color:#c6eade;background:#1e4144;border-color:#4f8b74}
.horseSearchDataAudit.hold{color:#ffe0a9;background:#44392e;border-color:#b58a55}

.horseSearchDataAudit.pending{color:#b7e7ff;background:#263e52;border-color:#5387ac}

/* Pop-up factual supporting metric: never substitute KRA podium rate for 999 DNA score. */
.topGraphReference{padding:10px;margin-top:10px;background:#28425b;border:1px solid #496a82;border-radius:5px}
.topGraphReferenceHeader{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;
 font-size:11px;color:#dbf5ff}
.topGraphReferenceHeader span{color:#ffdf9a;font-variant-numeric:tabular-nums}
.topGraphReferenceBar{height:14px;margin-top:6px;border:1px solid #708aa0;
 background:#18374e;overflow:hidden;border-radius:0}
.topGraphReferenceBar i{display:block;height:100%;border-radius:0;
 background:linear-gradient(90deg,#609ee9,#54cce0 55%,#5fcb8c)}
.topGraphReference.empty{font-size:10px;color:#abcbd5}
