:root{--agg-panel:#101e32;--agg-border:#2a3b52;--agg-soft:#a8b8c9}
.aggregation-hero{background:radial-gradient(ellipse at 85% 20%,#21475b 0,transparent 45%),linear-gradient(130deg,#10233a,#0b1424)}
.aggregation-hero h1{font-size:clamp(54px,9vw,108px);line-height:.92;letter-spacing:.025em}
.aggregation-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(265px,.8fr);gap:22px;align-items:start}
.aggregation-main,.aggregation-aside{display:grid;gap:20px;min-width:0}
.agg-panel{padding:28px;background:linear-gradient(145deg,#14263b,#101e32);border:1px solid var(--agg-border);border-radius:12px;box-shadow:0 12px 35px #03091430}
.agg-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:12px}
.agg-heading h2{font-size:clamp(21px,2.5vw,29px);margin:7px 0 0;line-height:1.4}
.agg-heading .overline{font-size:11px}
.step-badge{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid #40556c;border-radius:50%;color:#fa805f;font:700 15px 'Barlow Condensed',sans-serif}
.agg-copy{font-size:13px;color:#b4c3d3;line-height:1.8;margin:8px 0 20px}
.drop-zone{min-height:150px;border:1px dashed #617890;border-radius:9px;background:#ffffff05;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;cursor:pointer;transition:border-color .2s,background .2s}
.drop-zone:hover,.drop-zone.is-over{border-color:#71e5ed;background:#71e5ed0b}
.drop-zone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.drop-zone strong{font-size:14px}.drop-zone small{color:#a8b8c9;font-size:11px;margin-top:7px}.drop-zone code{color:#71e5ed}
.drop-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fa653e;color:white;font-size:23px;line-height:1;margin-bottom:10px}
.paste-details{margin-top:16px;border-top:1px solid #2a3b52;padding-top:13px}.paste-details summary{font-size:12px;color:#c9d5e1;cursor:pointer}
.paste-details textarea{display:block;width:100%;margin:14px 0 11px;padding:12px;border:1px solid #465d74;border-radius:6px;background:#081323;color:#eef4fa;font:12px/1.6 Consolas,monospace;resize:vertical}
.paste-details .btn{min-height:40px;font-size:12px}
.status-line{margin-top:14px;min-height:25px;padding:8px 11px;background:#ffffff08;border-left:3px solid #71e5ed;color:#b8c8d8;font-size:11px}
.status-line[data-kind=error]{border-color:#ff785d;color:#ffc1b3}.status-line[data-kind=success]{border-color:#64d8ae;color:#a8f0d2}
.empty-state{padding:22px;border:1px dashed #41566d;border-radius:7px;color:#a8b8c9;text-align:center;font-size:12px}
.match-list{display:grid;gap:10px}
.match-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:15px;border:1px solid #354a60;background:#ffffff04;border-radius:8px}
.match-card.is-selected{border-color:#fa805f;background:#fa653e0a}
.match-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center;color:#afbece;font-size:11px}.match-map{color:#71e5ed;font-weight:700;font-size:13px}.match-title{font-weight:700;font-size:13px;margin:4px 0}
.match-controls{display:flex;align-items:end;gap:8px}.match-controls label{display:grid;gap:4px;color:#9fb0c2;font-size:10px}.match-controls input{width:77px;padding:8px 7px;background:#091525;color:#fff;border:1px solid #465d74;border-radius:5px;font:inherit;font-size:12px}.match-check{width:19px;height:19px;accent-color:#fa653e;align-self:center}
.table-tools{display:flex;align-items:center;justify-content:space-between;gap:15px}.table-tools .agg-copy{margin:0}.tool-buttons{display:flex;gap:8px;flex:none}.tool-buttons .btn{min-height:39px;padding:9px 12px;gap:12px;font-size:11px}.tool-buttons .btn:disabled,.reset-button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.table-scroll{overflow-x:auto;margin-top:18px;border:1px solid #2d4157;border-radius:7px}
.standings-table{border-collapse:collapse;width:100%;min-width:620px;background:#0b1728;font-size:12px}
.standings-table th{padding:12px 13px;background:#1a2c41;color:#9db2c6;text-align:right;font:700 11px 'Barlow Condensed',sans-serif;letter-spacing:.08em;white-space:nowrap}
.standings-table th:nth-child(2),.standings-table td:nth-child(2){text-align:left}
.standings-table td{padding:11px 13px;border-top:1px solid #24374c;text-align:right;white-space:nowrap}
.standings-table tbody tr:first-child td:first-child{color:#f4c66f;font-weight:800}.standings-table .rank-cell{font:800 15px 'Barlow Condensed',sans-serif;color:#dce8f2}
.standings-table .team-name-input{width:min(225px,100%);padding:6px 8px;border:1px solid transparent;border-radius:4px;background:transparent;color:#fff;font-family:inherit;font-size:12px;font-weight:600}.standings-table .team-name-input:focus{outline:2px solid #71e5ed;border-color:#71e5ed;background:#091525}
.team-sub{display:block;font-size:10px;color:#8599ac;margin-top:2px}
.table-empty{text-align:center!important;color:#9eafc1;padding:26px!important}
.table-note{font-size:10px;color:#93a5b8;margin:12px 0 0}
.field-label{display:block;font-size:11px;font-weight:700;color:#b5c5d5;margin:17px 0 6px}
.text-field{display:block;width:100%;min-height:41px;padding:9px 11px;border:1px solid #40566d;border-radius:6px;background:#091525;color:#f2f7fb;font:inherit;font-size:13px}
.custom-points p{font-size:10px;color:#a8b8c9;margin:13px 0 5px}
.settings-note{margin-top:20px;padding:15px;border-left:3px solid #fa653e;background:#ffffff08}.settings-note strong{font-size:12px}.settings-note p{font-size:11px;color:#aebdcb;line-height:1.7;margin:7px 0 0}
.reset-button{margin-top:16px;width:100%;justify-content:center;min-height:41px;font-size:12px}
.privacy-note{display:flex;gap:12px;padding:18px;border:1px solid #2a4659;border-radius:9px;background:#0f2633;color:#cfdae3}.privacy-note strong{font-size:12px}.privacy-note p{font-size:10px;line-height:1.75;color:#adbfcc;margin:6px 0 0}.privacy-mark{display:grid;place-items:center;flex:none;width:21px;height:21px;border:1px solid #71e5ed;border-radius:50%;color:#71e5ed;font:700 12px serif}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.aggregation-layout{grid-template-columns:1fr}.aggregation-aside{grid-row:1}.scoring-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}.scoring-panel .agg-heading,.scoring-panel .settings-note,.scoring-panel .reset-button{grid-column:1/-1}.scoring-panel .field-label{align-self:end}.privacy-note{grid-row:2}}
@media(max-width:620px){.agg-panel{padding:20px}.scoring-panel{display:block}.table-tools{align-items:flex-start;flex-direction:column}.tool-buttons{width:100%}.tool-buttons .btn{flex:1;justify-content:center}.match-card{grid-template-columns:1fr}.match-controls{justify-content:flex-start}.match-controls input{width:90px}.aggregation-hero h1{font-size:58px}}
