
:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --dark: #0b1220;
  --dark-2: #121b2d;
  --accent: #f5b301;
  --accent-2: #2563eb;
  --ok: #166534;
  --bad: #991b1b;
  --shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top left, #fff7d6 0, transparent 32rem), var(--bg); color: var(--text); }
a { color: inherit; }
.header { position: sticky; top: 0; z-index: 10; background: rgba(11,18,32,.96); color: #fff; padding: 12px 22px; display:flex; justify-content:space-between; align-items:center; gap:20px; backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header a { color:#fff; text-decoration:none; }
.brand { display:flex; align-items:center; gap:12px; font-weight: 900; letter-spacing: -.02em; }
.brand img { width:54px; height:42px; object-fit:contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.nav { display:flex; flex-wrap:wrap; gap:7px; font-size:14px; align-items:center; }
.nav a { opacity:.92; padding:8px 10px; border-radius:999px; }
.nav a:hover { background:rgba(255,255,255,.1); }
.container { max-width: 1320px; margin: 28px auto; padding: 0 18px 48px; }
.card { background: rgba(255,255,255,.92); border: 1px solid rgba(229,231,235,.9); border-radius: 24px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card.tight { padding: 16px; }
.hero { display:grid; grid-template-columns: 1.1fr .9fr; gap:20px; align-items:stretch; }
.hero-main { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color:#fff; border: 0; overflow:hidden; position:relative; }
.hero-main:after { content:""; position:absolute; right:-80px; top:-80px; width:240px; height:240px; border-radius:50%; background:rgba(245,179,1,.18); }
.hero-title { display:flex; gap:18px; align-items:center; position:relative; z-index:1; }
.hero-title img { width:128px; height:94px; object-fit:contain; }
h1, h2, h3 { margin-top:0; letter-spacing:-.03em; }
h1 { font-size: clamp(28px, 4vw, 46px); line-height:1.02; margin-bottom:10px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.hero-main .muted { color: rgba(255,255,255,.68); }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap:20px; }
.grid-2 { display:grid; grid-template-columns: repeat(auto-fit, minmax(360px,1fr)); gap:20px; }
.dashboard-layout { display:grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap:20px; align-items:start; }
.dashboard-main { display:grid; grid-template-columns: 1fr; gap:20px; }
.dashboard-side { display:grid; grid-template-columns: 1fr; gap:20px; }
.admin-rounds { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap:16px; }
.admin-team-lineup { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px; border:1px solid var(--line); background:var(--surface-2); border-radius:18px; margin-bottom:10px; }
@media (max-width: 980px) { .dashboard-layout, .hero, .profile-top { grid-template-columns: 1fr; } .slot { grid-template-columns: 1fr; } }
.widget { min-height: 190px; }
.widget-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:14px; }
.widget-title { font-size:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.team-line { display:flex; align-items:center; gap:12px; min-width:0; }
.team-line img, .team-logo-sm { width:42px; height:42px; object-fit:contain; border-radius:12px; background:#fff; padding:3px; border:1px solid var(--line); }
.team-logo-md { width:72px; height:72px; object-fit:contain; border-radius:18px; background:#fff; padding:6px; border:1px solid var(--line); }
.team-logo-lg { width:112px; height:112px; object-fit:contain; border-radius:24px; background:#fff; padding:8px; border:1px solid rgba(255,255,255,.18); }
.team-logo-profile { width:190px; height:190px; object-fit:contain; border-radius:34px; background:#fff; padding:12px; border:1px solid rgba(255,255,255,.22); box-shadow:0 18px 40px rgba(0,0,0,.22); }
.waiting-rider { border-color:#fecaca!important; background:#fff1f2!important; box-shadow:0 0 0 1px rgba(239,68,68,.12) inset; }
.waiting-rider-note { color:#991b1b; font-weight:850; font-size:12px; margin-top:4px; }
.match-incomplete-note { display:inline-flex; align-items:center; gap:6px; margin-top:0; padding:6px 10px; border-radius:999px; background:#fff7d6; border:1px solid #f2d77c; color:#5f4300; font-size:12px; font-weight:850; white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.team-schedule-table td { vertical-align:middle; }
.team-schedule-table td.score-col { text-align:center; width:170px; white-space:nowrap; }
.team-schedule-table td.status-col { width:58px; text-align:right; }
.team-schedule-table .score-link { margin:0 auto; }
.result-pill { width:34px; height:34px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:13px; font-weight:950; box-shadow:0 10px 18px rgba(15,23,42,.16); border:1px solid rgba(255,255,255,.6); }
.result-win { background:linear-gradient(135deg,#22c55e,#15803d); }
.result-loss { background:linear-gradient(135deg,#ef4444,#b91c1c); }
.result-draw { background:linear-gradient(135deg,#94a3b8,#475569); }
.match-info-row { display:flex; align-items:center; gap:10px; min-width:0; }
.match-info-with-badge { display:flex; align-items:center; gap:10px; min-width:0; }
.match-info-with-badge .team-line { flex:1; min-width:0; }
.match-card { display:grid; grid-template-columns:minmax(0,1fr) 126px minmax(0,1fr); align-items:center; gap:12px; padding:14px; background:var(--surface-2); border:1px solid var(--line); border-radius:18px; margin-bottom:10px; }
.match-card .team-line { min-width:0; }
.match-card > div:nth-child(3) .team-line { justify-content:flex-end; text-align:right; }
.score { font-weight:900; font-size:22px; white-space:nowrap; padding:0 8px; text-align:center; justify-self:center; min-width:110px; }
.score-link { display:inline-flex; align-items:center; justify-content:center; min-width:96px; padding:8px 12px; border-radius:14px; background:#fff; border:1px solid var(--line); text-decoration:none; box-shadow:0 6px 14px rgba(15,23,42,.06); }
.score-link:hover { border-color:var(--accent); box-shadow:0 8px 20px rgba(245,179,1,.18); }
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align:left; vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
tr:last-child td { border-bottom:0; }
input, select, textarea { width:100%; padding:12px 13px; border:1px solid var(--line); border-radius:14px; background:#fff; font: inherit; }
textarea { min-height: 90px; }
label { display:block; margin: 10px 0 5px; color:#273142; font-weight:700; font-size:14px; }
button, .button { display:inline-block; background:var(--dark); color:#fff; border:0; padding:11px 16px; border-radius:14px; cursor:pointer; text-decoration:none; font-weight:800; box-shadow:0 8px 18px rgba(15,23,42,.12); }
button.secondary, .button.secondary { background:#eef2f7; color:#111827; box-shadow:none; border:1px solid var(--line); }
button.gold, .button.gold { background:var(--accent); color:#111827; }
.lineup-submit { font-size:20px; padding:18px 28px; border-radius:20px; min-width:240px; box-shadow:0 16px 34px rgba(245,179,1,.28); }
.lineup-submit-wrap { margin-top:24px; padding:18px; background:linear-gradient(135deg,#fff7d6,#ffffff); border:1px solid #f2d77c; border-radius:22px; justify-content:center; }
.lineup-submit-wrap .button.secondary { align-self:center; }
.alert { padding: 13px 15px; border-radius: 16px; margin-bottom: 16px; background:#fff7d6; border:1px solid #f2d77c; }
.alert.ok { background:#dcfce7; border-color:#86efac; color:#14532d; font-weight:900; }
.alert.error { background:#fee2e2; border-color:#fecaca; color:#7f1d1d; font-weight:800; }
.error { background:#fee2e2; border-color:#fecaca; color:var(--bad); }
.ok { background:#dcfce7; border-color:#bbf7d0; color:var(--ok); }
.badge { display:inline-flex; align-items:center; gap:4px; padding:4px 9px; border:1px solid var(--line); border-radius:999px; font-size:12px; color:var(--muted); font-weight:800; background:#fff; }
.badge.dark { background:#111827; color:#fff; border-color:#111827; }
.badge.gold-badge { background:var(--accent); color:#111827; border-color:rgba(245,179,1,.72); }
.actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.small { font-size:13px; }

.period-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 20px; }
.period-tabs a { text-decoration:none; }
.period-tabs .active { background:var(--dark); color:#fff; border-color:var(--dark); }
.zz-team-card { border:1px solid var(--line); background:var(--surface-2); border-radius:18px; padding:16px; margin-bottom:14px; }
.zz-team-head { display:flex; align-items:center; gap:12px; margin-bottom:12px; font-weight:900; }
.medal-counts { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:12px 0; }
.medal-count { background:var(--surface-2); border:1px solid var(--line); border-radius:18px; padding:14px; text-align:center; }
.medal-count .emoji { font-size:32px; display:block; }
.position-timeline { display:grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap:12px; }
.season-place-tile { background:linear-gradient(180deg,#fff,#f8fafc); border:1px solid var(--line); border-radius:20px; padding:14px; text-align:center; position:relative; overflow:hidden; }
.season-place-tile:before { content:""; position:absolute; left:0; top:0; right:0; height:5px; background:var(--accent); }
.season-place-tile .place-no { font-size:30px; font-weight:950; color:var(--dark); line-height:1; }
.season-place-tile .season-year { color:var(--muted); font-weight:800; font-size:12px; margin-top:7px; }
.season-place-tile.gold:before { background:#f5b301; }
.season-place-tile.silver:before { background:#cbd5e1; }
.season-place-tile.bronze:before { background:#d97706; }
.team-corner-badges { position:absolute; right:22px; top:22px; z-index:2; display:flex; flex-direction:column; gap:10px; align-items:flex-end; }
.team-corner-badges .position-pill { background:#fff; color:#111827; box-shadow:0 12px 28px rgba(0,0,0,.18); }
.prev-medal-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.95); color:#111827; font-weight:900; box-shadow:0 12px 28px rgba(0,0,0,.16); }
.prev-medal-badge .medal-icon { font-size:22px; }
.archive-season-card { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.archive-buttons { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.regulation-text { line-height:1.55; color:#1f2937; }

.position-line-chart { position:relative; height:280px; padding:28px 24px 54px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(180deg,#fff,#f8fafc); overflow:hidden; }
.position-line-chart svg { width:100%; height:185px; display:block; overflow:visible; }
.position-line-chart .axis-labels { position:absolute; left:24px; right:24px; bottom:18px; display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-weight:900; font-size:12px; }
.position-line-chart .chart-point { fill:var(--accent); stroke:#111827; stroke-width:2; }
.position-line-chart .chart-line { fill:none; stroke:var(--accent); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 4px 8px rgba(245,179,1,.16)); }
.position-line-chart .place-tag { position:absolute; transform:translate(-50%,-50%); background:#111827; color:#fff; border-radius:999px; min-width:38px; height:38px; display:flex; align-items:center; justify-content:center; font-weight:950; font-size:14px; border:3px solid #fff; box-shadow:0 10px 22px rgba(15,23,42,.24); z-index:2; }
.position-line-chart .chart-note { position:absolute; left:24px; top:18px; color:var(--muted); font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
select optgroup { font-weight:900; color:#111827; }


.login { max-width: 430px; margin:70px auto; }
.password-box { max-width:560px; margin:70px auto; }
.rider-points { min-width:76px; text-align:right; color:var(--gold); }
.rider-points strong { display:block; font-size:1.25rem; line-height:1; }
.rider-points span { display:block; font-size:.72rem; color:var(--muted); margin-top:3px; }
.rider-card { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 14px; background:var(--surface-2); border:1px solid var(--line); border-radius:16px; margin-bottom:10px; }
.rider-main { min-width:0; }
.rider-name { font-weight:850; }
.rider-meta { color:var(--muted); font-size:13px; margin-top:2px; }
.roster-columns { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:18px; }
.lineup-grid { display:grid; grid-template-columns: 1fr; gap:16px; max-width: 860px; }
.slot { background:var(--surface-2); border:1px solid var(--line); border-radius:22px; padding:18px; display:grid; grid-template-columns: 110px 1fr; gap:18px; align-items:center; }
.slot:hover { border-color:#cbd5e1; box-shadow:0 10px 24px rgba(15,23,42,.06); }
.slot select { min-height:58px; font-size:17px; font-weight:750; border-radius:18px; padding:15px 16px; }
.selected-preview { margin-top:8px; min-height:24px; color:var(--muted); font-size:13px; font-weight:800; display:flex; align-items:center; gap:6px; }
.slot-num { display:flex; flex-direction:column; gap:4px; color:var(--muted); font-size:12px; text-transform:uppercase; font-weight:900; letter-spacing:.08em; margin-bottom:0; }
.slot-num strong { color:var(--text); font-size:30px; letter-spacing:-.04em; line-height:1; }
.lineup-note { max-width:860px; background:#fff7d6; border:1px solid #f2d77c; border-radius:18px; padding:13px 15px; margin:0 0 16px; color:#5f4300; }
.kpi { font-size:32px; font-weight:950; letter-spacing:-.05em; }

.profile-hero { position:relative; overflow:hidden; min-height:280px; background: radial-gradient(circle at 80% 12%, rgba(245,179,1,.28), transparent 24rem), radial-gradient(circle at 8% 90%, rgba(37,99,235,.16), transparent 22rem), linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 58%, #1f2937 100%); color:#fff; border:0; }
.profile-hero:after { content:""; position:absolute; right:-90px; bottom:-110px; width:300px; height:300px; border-radius:50%; background:rgba(245,179,1,.13); }
.profile-hero:before { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(245,179,1,.09), transparent 42%); pointer-events:none; }
.profile-hero .muted { color:rgba(255,255,255,.74); }
.profile-top { display:grid; grid-template-columns: 1fr 260px; gap:20px; align-items:center; position:relative; z-index:1; }
.profile-avatar { width:230px; height:230px; border-radius:40px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:92px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.profile-name { font-size: clamp(34px, 5vw, 62px); text-transform:uppercase; font-style:italic; font-weight:950; letter-spacing:-.05em; margin:0 0 14px; }
.profile-tags { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.profile-info-link { display:block; color:inherit; text-decoration:none; padding:4px 0; border:0; border-radius:0; background:transparent; min-height:auto; }
.profile-info-link:hover strong { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.profile-info-link strong { color:#fff; transition:color .12s ease; }
.profile-info-link .small:after { content:''; }
.profile-info-link .profile-inline-link { color:#fff; text-decoration:none; }
.profile-info-link .profile-inline-link:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.stat-strip { display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border-radius:24px; overflow:hidden; box-shadow:var(--shadow); margin-top:-8px; position:relative; z-index:2; }
.stat-strip > div { padding:20px; border-right:1px solid var(--line); text-align:center; }
.stat-strip > div:last-child { border-right:0; }
.stat-number { color:var(--dark); font-size:32px; font-weight:950; font-style:italic; letter-spacing:-.05em; }
.stat-label { color:var(--muted); font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.profile-layout { display:grid; grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr); gap:22px; align-items:start; }
.chart-card { background:linear-gradient(135deg, var(--dark), var(--dark-2)); color:#fff; border:0; position:relative; overflow:hidden; }
.chart-card:after { content:""; position:absolute; right:-50px; top:-60px; width:160px; height:160px; border-radius:50%; background:rgba(245,179,1,.16); }
.chart-card > * { position:relative; z-index:1; }
.chart-card .muted { color:rgba(255,255,255,.72); }
.bar-chart { display:flex; align-items:end; gap:9px; height:180px; padding:16px 6px 0; border-bottom:1px solid rgba(255,255,255,.18); }
.bar { flex:1; min-width:9px; background:linear-gradient(180deg, var(--accent), #d99500); border-radius:8px 8px 0 0; position:relative; box-shadow:0 8px 18px rgba(245,179,1,.18); }
.bar.empty { background:rgba(255,255,255,.14); height:8px!important; }
.bar span { position:absolute; top:-20px; left:50%; transform:translateX(-50%); font-size:11px; font-weight:900; color:#fff; }
.round-labels { display:flex; gap:9px; padding-top:8px; color:rgba(255,255,255,.7); font-size:11px; }
.round-labels span { flex:1; text-align:center; }
.info-table td:first-child { color:var(--muted); font-weight:800; }
.rider-link { text-decoration:none; }
.rider-link:hover .rider-name { color:var(--dark); }
@media (max-width: 900px) { .profile-top, .profile-layout, .stat-strip { grid-template-columns:1fr; } .profile-avatar { width:160px; height:160px; font-size:66px; } .stat-strip > div { border-right:0; border-bottom:1px solid var(--line); } }


.sgp-logo { height:18px; width:auto; vertical-align:-3px; margin-left:6px; display:inline-block; }
.sgp-logo-lg { height:28px; width:auto; vertical-align:-6px; margin-left:8px; display:inline-block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.zz-toggle { display:none; margin-top:10px; color:#5f4300; font-weight:900; }
.zz-toggle input { width:auto; margin-right:8px; }
.zz-inline-panel { grid-column:1 / -1; display:none; border:1px dashed rgba(245,179,1,.9); background:#fffaf0; border-radius:18px; padding:14px; margin-top:10px; }
.zz-inline-panel.active { display:block; }
.zz-inline-panel .grid { gap:12px; }
.zz-chip { display:inline-flex; align-items:center; gap:8px; background:#fff7d6; border:1px solid #f2d77c; color:#5f4300; padding:7px 10px; border-radius:999px; font-weight:850; font-size:13px; }
.slot.is-zz { border-color:rgba(245,179,1,.95); background:linear-gradient(180deg,#fffaf0,#fff); }

.deadline-box { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border:1px solid var(--line); background:var(--surface-2); border-radius:18px; margin:12px 0; flex-wrap:wrap; }
.change-list { display:grid; gap:12px; }
.change-card { border:1px solid var(--line); background:var(--surface-2); border-radius:18px; padding:14px; }
.status-pending { background:#fff7d6; color:#6b4e00; }
.status-approved { background:#dcfce7; color:#166534; }
.status-rejected { background:#fee2e2; color:#991b1b; }
.zz-box { border:1px dashed rgba(245,179,1,.8); background:#fffaf0; border-radius:18px; padding:16px; margin-top:16px; }
.zz-mini-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; }
.zz-mini { background:var(--surface-2); border:1px solid var(--line); border-radius:18px; padding:14px; }
.history-list { display:grid; gap:10px; }
.history-item { display:flex; justify-content:space-between; align-items:center; gap:12px; background:var(--surface-2); border:1px solid var(--line); border-radius:16px; padding:12px 14px; }
.inline-form { display:inline-flex; gap:8px; align-items:center; flex-wrap:wrap; }

.score-link { color:var(--text); text-decoration:none; display:inline-flex; align-items:center; justify-content:center; min-width:88px; padding:8px 12px; border-radius:14px; background:#fff; border:1px solid var(--line); box-shadow:0 8px 18px rgba(15,23,42,.05); transition:.15s ease; }
.score-link:hover { border-color:rgba(245,179,1,.85); box-shadow:0 14px 28px rgba(15,23,42,.12); transform:translateY(-1px); }
.position-pill { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:12px; background:var(--accent); color:#111827; font-weight:950; box-shadow:0 8px 18px rgba(245,179,1,.22); }
.form-row { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.form-dot { width:28px; height:28px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:950; box-shadow:0 8px 16px rgba(15,23,42,.12); }
.form-win { background:#16a34a; }
.form-loss { background:#dc2626; }
.big-submit { font-size:18px; padding:16px 28px; border-radius:18px; box-shadow:0 18px 32px rgba(245,179,1,.28); }
.top-rider-stack { display:grid; grid-template-columns:1fr; gap:12px; }
.top-rider-card { border:1px solid var(--line); background:var(--surface-2); border-radius:18px; padding:14px; display:grid; grid-template-columns:46px 1fr auto; align-items:center; gap:12px; min-height:76px; }
.top-rider-card.leader { background:linear-gradient(135deg,#0b1220,#172033); color:#fff; border-color:#0b1220; padding:22px; min-height:136px; box-shadow:0 18px 42px rgba(15,23,42,.18); }
.top-rider-card.leader .rider-link strong { font-size:26px; line-height:1.05; letter-spacing:-.04em; }
.top-rider-card.leader .stat-number { color:#fff7d6; font-size:40px; text-shadow:0 2px 14px rgba(245,179,1,.25); }
.top-rider-card.leader .stat-label { color:#fde68a; }
.top-rider-card.leader .rider-meta, .top-rider-card.leader .muted { color:rgba(255,255,255,.72); }
.top-rider-card .rank { width:42px; height:42px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:var(--accent); color:#111827; font-weight:950; }
.position-pill { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:32px; padding:0 10px; border-radius:999px; background:var(--accent); color:#111827; font-weight:950; }
.medal-strip { display:flex; gap:8px; flex-wrap:wrap; }
.medal { width:36px; height:36px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:#f8fafc; border:1px solid var(--line); font-weight:950; }
.medal.gold { background:#fef3c7; }
.medal.silver { background:#e5e7eb; }
.medal.bronze { background:#fed7aa; }

.form-draw { background:#64748b; }
.match-hero-grid { display:grid; grid-template-columns:1fr auto 1fr; gap:18px; align-items:center; }
.match-team-panel { display:flex; align-items:center; gap:14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:22px; padding:16px; min-height:128px; }
.match-team-panel.away { justify-content:flex-end; text-align:right; }
.big-score { font-size:clamp(34px,6vw,68px); font-weight:950; letter-spacing:-.06em; white-space:nowrap; text-align:center; }
.match-hero-grid > div:nth-child(2) { text-align:center; }
.lineup-score-card { display:grid; gap:10px; }
.lineup-row { display:grid; grid-template-columns:42px 1fr auto; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--line); background:var(--surface-2); border-radius:16px; }
.lineup-row .points { font-weight:950; font-size:18px; }
.zz-subline { grid-column:2 / -1; color:var(--muted); font-size:13px; }
.history-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* v6.0 visual refinements */
.form-row.form-row-modern { gap:12px; }
.form-row-modern .form-dot { width:42px; height:42px; border-radius:15px; font-size:16px; letter-spacing:.02em; box-shadow:0 14px 26px rgba(15,23,42,.18); }
.result-pill { width:42px !important; height:42px !important; border-radius:16px !important; font-size:16px !important; letter-spacing:.02em; box-shadow:0 14px 26px rgba(15,23,42,.18) !important; }
.status-col { text-align:right; }
.match-incomplete-note { display:flex !important; justify-content:center; width:fit-content; max-width:min(360px,100%); margin:8px auto 0 !important; text-align:center; }
.team-schedule-table td.score-col { text-align:center !important; min-width:210px; }
.team-schedule-table td.status-col { width:64px; text-align:right !important; }
.stats-rank { width:42px; text-align:center; color:var(--muted); font-weight:950; }
.junior-tag { display:inline-flex; align-items:center; justify-content:center; margin-left:8px; padding:3px 8px; border-radius:999px; background:#dcfce7; color:#166534; border:1px solid #bbf7d0; font-size:11px; font-weight:950; text-transform:uppercase; letter-spacing:.04em; }
.rider-link.is-junior strong { color:#15803d; }
.rider-link.is-junior:hover strong { color:#166534; text-decoration:underline; text-underline-offset:3px; }



/* v7.5 production layout fixes */
.lineup-score-card { gap:8px; }
.lineup-row { padding:10px 12px; grid-template-columns:38px minmax(0,1fr) auto; }
.lineup-row.waiting-rider { border-color:#fecaca!important; background:linear-gradient(90deg,#fff1f2,#fff7f7)!important; }
.waiting-rider-note { display:inline-flex; align-items:center; max-width:100%; margin-top:3px; padding:3px 8px; border-radius:999px; background:#fee2e2; border:1px solid #fecaca; color:#991b1b; font-size:11px; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.match-incomplete-note { max-width:min(560px,100%) !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
.match-card .match-incomplete-note, .incomplete-note-wrap .match-incomplete-note { justify-self:center; margin-left:auto!important; margin-right:auto!important; }
.match-hero-grid .match-incomplete-note { margin-top:10px!important; }
.team-schedule-table .incomplete-note-wrap { display:flex; justify-content:center; min-width:0; }
/* v6.1 refinements */
.sgp-logo-pill { display:inline-flex; align-items:center; justify-content:center; padding:2px 6px; margin-left:6px; border-radius:999px; background:#111827; border:1px solid rgba(15,23,42,.12); vertical-align:-5px; box-shadow:0 6px 12px rgba(15,23,42,.10); }
.sgp-logo-pill .sgp-logo { margin:0; height:16px; }
.sgp-logo-light { filter:none; margin-left:6px; height:26px; vertical-align:-6px; }
.badge.gold-badge .sgp-logo-light { height:24px; }
.match-card .match-incomplete-note { grid-column:1 / -1; justify-self:center; margin:8px auto 0 !important; }
.schedule-incomplete-centered { display:flex; justify-content:center; grid-column:1 / -1; }
.team-form-hero { margin-top:18px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; position:relative; z-index:1; }
.team-form-hero .widget-title { color:rgba(255,255,255,.70); margin-right:2px; }
.team-form-hero .form-row-modern .form-dot { width:54px; height:54px; border-radius:20px; font-size:20px; border:1px solid rgba(255,255,255,.42); box-shadow:0 18px 34px rgba(0,0,0,.24); }
.form-row-modern .form-dot { width:48px; height:48px; border-radius:18px; font-size:18px; }
.profile-two-widgets { display:grid; grid-template-columns:minmax(320px,.9fr) minmax(380px,1.1fr); gap:22px; align-items:start; margin-top:22px; }
.profile-history-wide { margin-top:22px; }
.profile-two-widgets .chart-card { min-height:100%; }
@media (max-width:900px){ .profile-two-widgets { grid-template-columns:1fr; } }

@media (max-width:900px){ .match-hero-grid { grid-template-columns:1fr; } .match-team-panel.away { justify-content:flex-start; text-align:left; } .big-score { text-align:left; } }

@media (max-width: 820px) { .hero { grid-template-columns:1fr; } .header { align-items:flex-start; flex-direction:column; } .score { font-size:18px; } .slot { grid-template-columns:1fr; gap:10px; } .slot-num { flex-direction:row; align-items:center; justify-content:space-between; } }
