/* A result-pending match retains its alliance tint; only the status pill turns urgent. */
.status-now{color:#fff;background:#cf3342}.countdown-value.match-now{color:#bf2436}

/* Qual remains a single compact stat row, matching the original easy-to-scan treatment. */
.row-heading{margin:0 0 7px;color:#16395a;font-size:11px;font-weight:900;letter-spacing:.1em;display:flex;align-items:center;gap:7px}.row-heading:before{content:"";display:inline-block;width:3px;height:12px;border-radius:2px;background:#00a88e}
.qual-stats{display:grid;grid-template-columns:.85fr 1.2fr 1.35fr;gap:8px}.qual-stats p{margin:0 0 4px;color:#748399;font-size:10px;font-weight:800;letter-spacing:.09em}.qual-stats strong{display:block;font-size:17px;letter-spacing:-.03em;color:#10233c;white-space:nowrap}

/* Dummy criteria are intentionally distinct, until official Excellence logic is configured. */
.criteria{display:flex;gap:6px;margin-top:10px}.criterion{flex:1;display:flex;justify-content:center;align-items:center;gap:4px;border-radius:5px;padding:5px 2px;font-size:10px;font-weight:800}.criterion.pass{background:#def4e9;color:#08754b}.criterion.fail{background:#fae8e8;color:#b43f3f}

@media(max-width:610px){.qual-stats{grid-template-columns:.8fr 1.15fr 1.35fr}.qual-stats strong{font-size:16px}}

/* Skills uses the same three-column visual rhythm as Qual. */
.skills-stats{display:grid;grid-template-columns:.65fr .75fr 1.3fr 1.3fr;gap:7px}.skills-stats p{margin:0 0 4px;color:#748399;font-size:10px;font-weight:800;letter-spacing:.09em}.skills-stats strong{display:block;font-size:17px;letter-spacing:-.03em;color:#10233c}.skills-stats small{display:block;margin-top:2px;font-size:11px;color:#607189}.skills-stats small b{color:#10233c}
@media(max-width:610px){.skills-stats{grid-template-columns:.6fr .7fr 1.3fr 1.3fr}.skills-stats strong{font-size:16px}}

.empty-state{grid-column:1/-1;margin:0;padding:26px;border:1px dashed #b9c9d8;border-radius:10px;color:#607189;background:#fff;text-align:center}

/* The three summary sections use matching information panels and header bands. */
.qualification,.skills-row,.excellence{margin-top:13px;padding:0 13px 13px;background:#f8fafc;border:1px solid #e5edf4;border-radius:8px;overflow:hidden}.qualification{border-bottom:1px solid #e5edf4}.skills-row{border-bottom:1px solid #e5edf4}.row-heading,.excellence-title{margin:0 -13px 12px;padding:8px 13px;background:#edf3f8;border-bottom:1px solid #dde8f0;color:#16395a}.row-heading:before{background:#00a88e}.excellence-title{font-size:10px}.qual-stats{gap:12px}.skills-stats{grid-template-columns:.7fr .85fr 1.35fr 1.35fr;gap:12px}.skills-stats strong{font-size:18px}.criteria{margin-top:0;gap:8px}

@media(max-width:610px){.qualification,.skills-row,.excellence{padding-left:11px;padding-right:11px}.row-heading,.excellence-title{margin-left:-11px;margin-right:-11px;padding-left:11px;padding-right:11px}.qual-stats{gap:8px}.skills-stats{grid-template-columns:.6fr .7fr 1.3fr 1.3fr;gap:7px}.skills-stats strong{font-size:16px}}

/* Centered panel titles and evenly balanced stat groups. */
.row-heading,.excellence-title{justify-content:center;text-align:center}.row-heading:before{display:none}.qual-stats{grid-template-columns:repeat(3,minmax(0,1fr));justify-items:center;text-align:center}.skills-stats{grid-template-columns:repeat(4,minmax(0,1fr));justify-items:center;text-align:center}
@media(max-width:610px){.qual-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.skills-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Restore Skills values; shrink only the bracketed Driver/Auto attempt counts. */
.skills-stats strong{font-size:18px}.skills-stats .driver-attempts,.skills-stats .auto-attempts{font-size:.85em}
@media(max-width:610px){.skills-stats strong{font-size:16px}}

/* The time value sits at the visual centre of the next-match panel. */
.countdown{display:flex;align-items:center}.countdown-label:empty{display:none}

/* Page navigation and home-page match queue. */
.main-nav{display:flex;align-items:center;gap:5px;margin-left:10px}.main-nav button{border:0;background:transparent;color:#a9bdcf;padding:8px 10px;border-radius:6px;font-size:13px;font-weight:800}.main-nav button.active{background:#18364f;color:#fff}.nav-group{display:flex;gap:2px;padding-left:4px;border-left:1px solid #355069}.nav-group-label{color:#718aa2;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.page-view{display:none}.page-view.active{display:block}.upcoming-section{max-width:830px}.upcoming-list{list-style:none;padding:0;margin:0}.upcoming-match{display:grid;grid-template-columns:108px 1fr;gap:16px;align-items:center;padding:14px 15px;margin:0;border-bottom:1px solid var(--line);border-left:4px solid #9aaabd;background:#fff}.upcoming-match:first-child{border-radius:10px 10px 0 0}.upcoming-match:last-child{border-radius:0 0 10px 10px}.upcoming-match.alliance-red{border-left-color:#d85662}.upcoming-match.alliance-blue{border-left-color:#4d79d8}.upcoming-status{color:#5c6c80;font-size:11px;font-weight:900;letter-spacing:.06em;text-align:center}.upcoming-status.is-now{color:#bf2436}.upcoming-match strong{display:block;font-size:15px}.upcoming-match span:not(.upcoming-status),.upcoming-match small{display:inline-block;margin:3px 8px 0 0;color:#607189;font-size:12px}.home-activity{margin-top:42px}.full-activity{max-width:830px;margin-top:0}
@media(max-width:610px){.main-nav{order:3;margin:0 -4px}.nav-group-label{display:none}.nav-group{border-left:0;padding-left:0}.topbar{gap:9px;flex-wrap:wrap;height:auto;min-height:70px;padding-top:10px;padding-bottom:10px}.event-picker{margin-left:auto}.upcoming-match{grid-template-columns:83px 1fr;gap:10px;padding:13px 11px}.upcoming-status{font-size:10px}.upcoming-match span:not(.upcoming-status),.upcoming-match small{display:block;margin-right:0}.home-activity{margin-top:32px}}

/* Status remains at left; team/division spans both right-hand schedule rows. */
.upcoming-match{grid-template-columns:91px 96px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;row-gap:5px}.upcoming-status{grid-row:1/-1;align-self:stretch;display:flex;align-items:center;justify-content:center;border-right:1px solid #dce5ee;padding-right:12px}.upcoming-team{grid-column:2;grid-row:1/-1;align-self:stretch;display:flex;flex-direction:column;justify-content:center;text-align:center;border-right:1px solid #dce5ee;padding-right:13px}.upcoming-team strong{font-size:19px;letter-spacing:-.03em}.upcoming-team span{display:block!important;margin:3px 0 0!important;color:#607189;font-size:11px;font-weight:800;letter-spacing:.07em}.upcoming-match-head{grid-column:3;display:flex;align-items:center}.upcoming-match-head strong{font-size:15px}.upcoming-schedule{grid-column:3;margin:0;color:#43566d;font-size:13px;font-weight:700;line-height:1.35}
@media(max-width:610px){.upcoming-match{grid-template-columns:70px 72px minmax(0,1fr);column-gap:9px;row-gap:4px}.upcoming-status{padding-right:8px}.upcoming-team{padding-right:8px}.upcoming-team strong{font-size:16px}.upcoming-match-head strong{font-size:13px}.upcoming-schedule{font-size:12px}}

/* Schedule and Excellence drafts share division groups with highlighted tracked teams. */
.main-nav{max-width:470px;overflow-x:auto}.schedule-section,.excellence-section{max-width:1000px}.schedule-list,.excellence-groups{display:grid;gap:18px;margin-top:18px}.division-block{background:#fff;border:1px solid #dce5ee;border-radius:10px;padding:15px;overflow-x:auto}.division-block h3{margin:0 0 12px;color:#16395a;font-size:14px;letter-spacing:.07em}.schedule-table,.excellence-table{width:100%;min-width:620px;border-collapse:collapse;text-align:left}.schedule-table th,.schedule-table td,.excellence-table th,.excellence-table td{padding:10px 9px;border-bottom:1px solid #e7edf3;font-size:13px}.schedule-table th,.excellence-table th{color:#687b91;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.schedule-table tr:last-child td{border-bottom:0}.excellence-table tr:last-child td{border-bottom:0}.division-block mark,.upcoming-schedule mark,.excellence-table mark{background:#dff6ef;color:#08754b;border-radius:4px;padding:2px 4px;font-weight:900}.draft-note{margin:11px 0 0;color:#8493a4;font-size:11px}.cutoff-row td{background:#edf3f8!important;color:#16395a;font-weight:900;font-size:12px!important}.pass-text{color:#08754b;font-weight:800}.fail-text{color:#b43f3f;font-weight:800}.empty-table{text-align:center;color:#8493a4;padding:20px!important}.all-upcoming-section{max-width:830px}
@media(max-width:610px){.main-nav{max-width:100%;width:100%;overflow-x:auto}.division-block{padding:12px}.schedule-table,.excellence-table{min-width:560px}}
.refresh-copy { text-align: right; }
.refresh-bar { display: flex; justify-content: flex-end; padding: 12px 0; }
.refresh-bar .refresh { margin: 0; }
