.cp-panel{margin-block:16px;min-width:0;border-top:3px solid #257a60}
.cp-panel h2{margin-top:0}
.cp-panel form,.cp-criterion,.cp-scores,.cp-horse-head{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.cp-panel label{display:grid;gap:4px;flex:1 1 145px;min-width:0}
.cp-panel :is(input,textarea){box-sizing:border-box;width:100%;font-size:16px;min-height:44px}
.cp-panel button{min-height:44px}
.cp-criterion,.cp-race,.cp-horse{border-bottom:1px solid #d5e5db;padding:10px 0}
.cp-race{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.cp-criterion label:nth-child(2){flex:0 1 95px}
.cp-horse h3{margin:0}.cp-horse-head{justify-content:space-between;align-items:center}
.cp-horse details{margin:8px 0}.cp-horse summary{cursor:pointer;min-height:44px;align-content:center}
.cp-horse dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px 12px}.cp-horse dd{margin:0;overflow-wrap:anywhere}
.cp-scores label{flex:1 1 105px}
.cp-panel textarea{display:block;resize:vertical}
.cp-panel #cp-horse{margin-top:12px}
.cp-panel #cp-ranking li{padding:6px 0}
.cp-panel :focus-visible{outline:3px solid #2479be;outline-offset:2px}

.cp-result-wrap{max-width:100%;overflow-wrap:anywhere}
.cp-result-table{width:100%;min-width:0;table-layout:fixed;white-space:normal}
.cp-result-table caption{text-align:left;font-weight:700;padding:8px 0}
.cp-result-table :is(th,td){padding:9px 5px;text-align:center}
.cp-result-table th:first-child{width:43%;text-align:left}
.cp-result-table thead th{background:#154538;color:#fff}
.cp-result-table tbody tr:nth-child(even){background:#edf5ef}
@media(max-width:480px){.cp-result-table :is(th,td){font-size:.8rem;padding-inline:3px}}
.cp-batch-jump{color:#f8d98e;font-weight:700}
.batch-profile{border:1px solid #d1e0d7;border-radius:8px;padding:12px;margin:10px 0}
.batch-weights{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr));gap:8px;margin:8px 0}
#batch-picked,#batch-options{display:flex;flex-wrap:wrap;gap:8px}
#batch-output details{margin:12px 0}
#batch-output summary{cursor:pointer;font-weight:700;min-height:44px;align-content:center}
#batch-output .cp-result-table th:first-child{width:40%}
.batch-table{overflow-x:auto}
.batch-table table{min-width:440px}
.batch-table th{overflow-wrap:anywhere}
#batch-output .batch-table th:first-child{width:auto}
.batch-library{margin-block:24px;border-top:1px solid #d5e5db;padding-top:12px}
.batch-library select{width:100%;min-height:44px;font-size:16px}
.batch-library label{margin-block:8px}
.batch-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
