/* V77: finished-results-only panels + medal summaries */
body.public-site.page-index .v77-no-live-score-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
.v77-medals-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;flex-wrap:wrap;margin-bottom:18px}
.v77-medals-heading h1{margin:4px 0 6px}
.v77-medals-heading p{margin:0;color:#617489}
.v77-medals-filter{display:flex;flex-direction:column;gap:6px;min-width:min(100%,285px)}
.v77-medals-filter label{font-size:13px;font-weight:800;color:#21364d}
.v77-medals-filter>div{display:flex;gap:8px;align-items:center}
.v77-medals-filter select{width:100%;min-width:0;border:1px solid #cbd7e5;background:#fff;padding:12px;border-radius:12px;color:#172d47;font:inherit}
.v77-medals-filter button{flex:none;padding:12px 15px;border:0;border-radius:12px;background:#116847;color:#fff;cursor:pointer;font:inherit;font-weight:750}
.v77-medals-cards{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 20px}
.v77-medals-stat{background:#fff;border:1px solid #d9e4ee;border-radius:16px;padding:16px 22px;display:flex;flex-direction:column;gap:6px;min-width:min(100%,230px)}
.v77-medals-stat>span{font-weight:750;color:#51667a;font-size:13px}.v77-medals-stat>strong{font-size:clamp(26px,3vw,36px);font-weight:900;color:#0f513e;line-height:1.2}
.v77-medals-stat>small{font-size:13px;color:#273b54}.v77-medals-stat>a{font-size:12px;text-decoration:none;color:#086e5e;font-weight:800}
.v77-medals-table th,.v77-medals-table td{text-align:center;padding:12px 14px!important}
.v77-medals-table thead th:nth-child(2),.v77-medals-table tbody td:nth-child(2){text-align:left}
/* V87: use the same six real columns in header, school rows and totals. */
.v77-medals-table tfoot tr{background:#e8f4ee}
.v77-medals-table tfoot th{font-weight:900;text-align:center!important;font-variant-numeric:tabular-nums}
.v77-medals-table tfoot .v87-medals-total-label{white-space:nowrap}
.v77-medals-table tbody td:nth-child(n+3),.v77-medals-table thead th:nth-child(n+3){font-variant-numeric:tabular-nums}
.v77-medals-rank{font-weight:850;color:#34536e}.v77-medals-empty{padding:16px;color:#697b90}
@media(max-width:640px){.v77-medals-heading{align-items:stretch}.v77-medals-filter{width:100%}.v77-medals-cards{display:grid;grid-template-columns:1fr 1fr}.v77-medals-stat{min-width:0;padding:12px}.v77-medals-table{overflow-x:auto}.v77-medals-table table{min-width:580px}}
@media(max-width:380px){.v77-medals-cards{grid-template-columns:1fr}}

.admin-body .v77-finish-confirm{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:750;color:#193f33;line-height:1.4;margin:10px 0;}
.admin-body .v77-finish-confirm input{width:18px;height:18px;flex:none;accent-color:#116847;}
