:root{--ink:#152b37;--muted:#6b7d88;--green:#126d58;--blue:#2877ce;--orange:#cc6947;--line:#e4eceb;--win:#168267;--draw:#83919e;--loss:#cc614f;--paper:#fff;--radius:22px}*{box-sizing:border-box}body{margin:0;background:#f0f5f3;color:var(--ink);font-family:Tahoma,"Noto Sans Thai",system-ui,sans-serif;font-size:14px;line-height:1.6}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #33a28b;outline-offset:3px}.topbar{max-width:1060px;margin:auto;padding:24px 28px 16px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;font-size:14px;font-weight:800;letter-spacing:1px}.brand-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#113a3b;font-size:24px}.brand-accent{color:var(--green)}.brand small{display:block;font-weight:400;letter-spacing:0;font-size:11px;color:var(--muted)}.preview-label{padding:5px 12px;border-radius:30px;background:#e2eee7;color:var(--green);font-size:11px;font-weight:700}.shell{max-width:960px;margin:0 auto;padding:0 24px 100px}.back-link{display:inline-block;font-size:12px;color:var(--muted);margin:8px 0 16px}.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#123e3e,#1b5350);border-radius:26px;color:white;padding:24px 28px 20px;box-shadow:0 12px 32px #193e3820}.hero:before,.hero:after{content:"";position:absolute;width:290px;height:290px;border:1px solid #ffffff0c;border-radius:50%;right:-85px;top:-70px;pointer-events:none}.hero:after{width:420px;height:420px;right:-150px;top:-135px}.league-line{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#cae0d9}.league-line img{width:23px;height:23px;object-fit:contain;background:#fff;border-radius:6px;padding:2px}.match-day{text-align:center;color:#b1cec7;font-size:11px;margin:6px 0 22px}.hero-match{display:grid;grid-template-columns:minmax(0,1fr) 170px minmax(0,1fr);align-items:center;text-align:center;position:relative;gap:10px}.club-logo{width:74px;height:74px;object-fit:contain}.logo-plate{display:grid;place-items:center;width:100px;height:100px;margin:0 auto 12px;background:#fff;border-radius:25px;box-shadow:0 5px 18px #002b272b}.club-name{font-size:21px;font-weight:700;margin:0}.club-english{font-size:11px;color:#a9c9c4;margin-top:2px}.favorite-label{display:inline-block;margin-top:8px;font-size:10px;background:#ffe7d6;color:#983d20;border-radius:6px;padding:1px 8px}.score{white-space:nowrap;font-size:56px;font-weight:800;line-height:1.2;letter-spacing:1px;font-variant-numeric:tabular-nums}.finished-pill{display:inline-flex;align-items:center;gap:5px;border:1px solid #a5d8c860;background:#ffffff12;color:#d7f7e5;border-radius:30px;font-size:10px;padding:3px 10px}.half-score{margin:8px 0;color:#b9d4ce;font-size:11px}.hero-bottom{display:flex;justify-content:center;gap:8px;margin-top:22px;padding-top:16px;border-top:1px solid #ffffff14;font-size:11px;color:#d6e7e3}.hero-price{background:#fff0cb;color:#67450c;padding:3px 12px;border-radius:30px;font-weight:700}.hero-place{padding:3px 8px}.tabs{display:flex;justify-content:space-around;gap:4px;margin:18px 0 22px;padding:5px;border-radius:14px;background:#e6eeeb;position:sticky;top:10px;z-index:5;box-shadow:0 3px 12px #1b46340a}.tabs button{flex:1;white-space:nowrap;border:0;border-radius:10px;color:#687d77;background:transparent;font-size:12px;font-weight:700;padding:10px 6px}.tabs button[aria-selected=true]{color:#135e4d;background:#fff;box-shadow:0 2px 8px #193d2a10}.content-grid{align-items:start;display:grid;grid-template-columns:1.1fr 1fr;gap:18px}.card{background:var(--paper);border:1px solid #e6eeeb;border-radius:var(--radius);padding:24px;margin-bottom:18px;box-shadow:0 4px 16px #143e311b}.content-grid .card{margin-bottom:0}.wide{grid-column:1/-1}.section-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.eyebrow{font-size:9px;color:var(--green);font-weight:700;letter-spacing:1.6px;display:block;margin-bottom:5px}h2{font-size:19px;letter-spacing:-.3px;margin:0;line-height:1.4}h3{font-size:14px;margin:0}.subtitle{font-size:11px;color:var(--muted);margin:5px 0 0}.segmented{display:inline-flex;border-radius:30px;padding:3px;background:#f0f4f3;white-space:nowrap}.segmented button{border:0;border-radius:30px;background:none;color:var(--muted);font-size:10px;padding:5px 9px}.segmented button.active{background:white;color:var(--green);box-shadow:0 1px 5px #122f1810;font-weight:700}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-team{padding:16px;background:#f4f8fc;border-radius:16px;position:relative}.form-team.away{background:#fcf5f1}.team-mini{display:flex;align-items:center;gap:8px;font-weight:700;font-size:12px}.team-mini img{width:28px;height:28px;object-fit:contain}.form-metric{display:flex;justify-content:space-between;align-items:center;margin:14px 0}.metric-value{font-size:30px;font-weight:800;letter-spacing:-1px;line-height:1.1;color:var(--blue)}.away .metric-value{color:var(--orange)}.metric-caption{font-size:10px;color:var(--muted)}.ring{width:48px;height:48px;transform:rotate(-90deg);flex-shrink:0}.ring circle{fill:none;stroke-width:5}.ring-track{stroke:#dfE8ec}.ring-progress{stroke:var(--blue);stroke-linecap:round}.away .ring-progress{stroke:var(--orange)}.form-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.form-chip{width:100%;max-width:28px;height:27px;border-radius:7px;color:white;display:grid;place-items:center;font-size:10px;font-weight:700}.win{background:var(--win)}.draw{background:var(--draw)}.loss{background:var(--loss)}.form-caption{color:var(--muted);font-size:9px;margin:12px 0 0}.legend{display:flex;gap:13px;align-items:center;color:var(--muted);font-size:10px;margin:14px 0}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:var(--blue)}.legend-dot.away{background:var(--orange)}.h2h-counts{display:grid;grid-template-columns:1fr 1fr 1fr;text-align:center;gap:10px;margin:6px 0 18px}.h2h-counts strong{font-size:31px;display:block;line-height:1.2;font-weight:800}.h2h-counts span{font-size:10px;color:var(--muted)}.home-text{color:var(--blue)}.away-text{color:var(--orange)}.draw-text{color:var(--muted)}.stacked-bar{height:12px;display:flex;overflow:hidden;border-radius:30px;background:#eef3f3}.stacked-bar span{min-width:0;background:var(--blue)}.stacked-bar .draw{background:#b8c5cc}.stacked-bar .away{background:var(--orange)}.stack-labels{display:flex;justify-content:space-between;font-size:10px;margin-top:8px;color:var(--muted)}.quiet-link{border:0;background:transparent;color:var(--green);font-size:11px;font-weight:700;padding:0;display:inline-block}.card-bottom{padding-top:15px;margin-top:18px;border-top:1px solid var(--line)}.compare-heading{display:flex;justify-content:space-between;gap:10px;font-size:11px;font-weight:700;margin:20px 0 18px}.comparison{margin-bottom:19px}.comparison-label{text-align:center;font-size:11px;color:var(--muted);margin-bottom:7px}.comparison-values{display:flex;justify-content:space-between;gap:12px;font-size:17px;font-weight:700}.comparison-tracks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:7px}.track{height:8px;background:#e7eff7;border-radius:30px;overflow:hidden;display:flex;justify-content:flex-end}.track.away{background:#f5e8e2;justify-content:flex-start}.track-fill{display:block;height:100%;background:var(--blue);border-radius:30px}.track.away .track-fill{background:var(--orange)}.chart-foot{font-size:10px;color:var(--muted);padding-top:8px}.goal-split{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.goal-team{padding:16px;border:1px solid var(--line);border-radius:15px}.goal-value{display:flex;align-items:baseline;gap:7px;margin:14px 0 10px}.goal-value strong{font-size:27px;letter-spacing:-.6px}.goal-value span{color:var(--muted);font-size:10px}.goal-chart{height:120px;display:flex;align-items:flex-end;justify-content:center;gap:12px;margin:12px 0 4px}.goal-column{width:40px;max-height:100%;border-radius:7px 7px 3px 3px;position:relative;background:var(--blue);min-height:2px}.away .goal-column{background:var(--orange)}.goal-column.under{opacity:.35}.goal-column span{position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);font-size:10px;font-weight:700;white-space:nowrap}.goal-axis{display:flex;justify-content:center;gap:18px;font-size:9px;color:var(--muted);margin-top:10px}.goal-note{font-size:10px;color:var(--muted);margin:14px 0 0}.summary-table{width:100%;border-collapse:collapse;font-size:11px;font-variant-numeric:tabular-nums}.summary-table th{font-size:9px;color:var(--muted);font-weight:400;text-align:center;padding:8px 3px;border-bottom:1px solid var(--line)}.summary-table td{text-align:center;padding:11px 3px;border-bottom:1px solid #eef2f1}.summary-table tr:last-child td{border:0}.summary-table td.team-cell{text-align:left;font-weight:700}.team-cell img{width:22px;height:22px;object-fit:contain;vertical-align:middle;margin-right:5px}.rank-number{font-size:12px;color:var(--green);font-weight:800}.points{font-weight:800;color:var(--green)}.table-highlight{background:#eef6f2}.table-scroll{overflow:auto}.history-list{margin-top:10px}.history-row{display:grid;grid-template-columns:62px minmax(0,1fr) 45px minmax(0,1fr);align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.history-row:last-child{border:0}.history-date{font-size:9px;color:var(--muted)}.history-home{text-align:right}.history-score{background:#f0f5f4;border-radius:6px;text-align:center;font-weight:800;white-space:nowrap;padding:3px}.history-away{text-align:left}.recent-team-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid var(--line)}.recent-result{width:23px;height:23px;border-radius:6px;color:white;display:grid;place-items:center;font-size:9px}.recent-row{display:grid;grid-template-columns:23px minmax(0,1fr) 40px 55px;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid var(--line)}.recent-opponent{font-size:11px}.recent-opponent small{display:block;font-size:9px;color:var(--muted)}.stat-sample{background:#f4f7f6;border-radius:10px;padding:9px 12px;font-size:10px;color:var(--muted);margin-bottom:16px}.page-footer{font-size:10px;color:var(--muted);text-align:center;margin-top:30px}.page-footer p{margin:4px 0}.footer-dot{display:inline-block;width:5px;height:5px;background:#65a590;border-radius:50%;vertical-align:middle;margin-right:4px}#snapshot-label{display:block;margin-top:3px}.insight-trigger{position:fixed;bottom:20px;right:max(20px,calc((100vw - 960px)/2));z-index:8;border:1px solid #ffffff55;border-radius:30px;background:#123e3e;color:white;box-shadow:0 6px 22px #12382e30;font-weight:700;font-size:12px;padding:13px 20px}.insight-trigger span{color:#c9eaa3;margin-right:6px}dialog{border:0;border-radius:24px;padding:26px;width:min(430px,calc(100% - 32px));color:var(--ink);box-shadow:0 25px 100px #0a282840}dialog::backdrop{background:#132c3860;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center}#close-insight{background:#eef3f1;border:0;border-radius:50%;width:30px;height:30px;font-size:21px}#insight-body{font-size:13px;margin:16px 0 20px}#insight-body p{padding-bottom:14px;border-bottom:1px solid var(--line)}.detail-link{display:block;background:#e6f2ec;color:var(--green);border-radius:10px;text-align:center;padding:11px;font-size:12px;font-weight:700}.loading{text-align:center;padding:25px}.empty-state{font-size:12px;color:var(--muted);padding:20px;text-align:center}
@media(max-width:640px){body{font-size:13px}.topbar{padding:18px 18px 12px}.shell{padding:0 14px 100px}.hero{padding:20px 16px 17px;border-radius:22px}.hero-match{grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);gap:4px}.logo-plate{width:74px;height:74px;border-radius:20px;margin-bottom:10px}.club-logo{width:56px;height:56px}.club-name{font-size:17px}.club-english{font-size:10px}.score{font-size:40px;letter-spacing:0}.match-day{margin-bottom:20px}.hero-bottom{margin-top:18px;padding-top:13px}.tabs{margin:15px 0 17px;top:8px;padding:4px}.tabs button{padding:10px 3px;font-size:11px}.content-grid{grid-template-columns:1fr;gap:16px}.card{padding:20px 18px;border-radius:20px;margin-bottom:16px}.section-top{margin-bottom:18px}h2{font-size:18px}.form-pair{gap:10px}.form-team{padding:14px 12px}.team-mini{font-size:11px;gap:6px}.team-mini img{width:25px;height:25px}.metric-value{font-size:29px}.ring{width:43px;height:43px}.form-strip{gap:3px}.form-chip{width:100%;height:24px;border-radius:6px;font-size:9px}.history-row{grid-template-columns:47px minmax(0,1fr) 39px minmax(0,1fr);gap:5px;font-size:10px}.summary-table{font-size:10px}.team-cell img{width:18px;height:18px;margin-right:3px}.goal-split{gap:10px}.goal-team{padding:13px 10px}.insight-trigger{right:16px;bottom:16px}.compare-heading{font-size:11px}.comparison-values{font-size:18px}}@media(max-width:360px){.shell{padding-left:10px;padding-right:10px}.topbar{padding-left:14px;padding-right:14px}.club-name{font-size:15px}.card{padding:17px 14px}.form-team{padding:12px 9px}.form-chip{width:100%}.form-pair{gap:8px}.team-mini{font-size:10px}.metric-value{font-size:26px}.tabs button{font-size:10px}.ring{width:36px;height:36px}}@media(prefers-reduced-motion:no-preference){.card{animation:arrive .3s ease-out}@keyframes arrive{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}

.hero-club{align-self:start}
/* Full detail views: compact summaries open into readable detail grids. */
.history-detail{border-bottom:1px solid var(--line)}.history-detail:last-child{border-bottom:0}.history-detail-summary{list-style:none;cursor:pointer;position:relative;padding:13px 17px 13px 0}.history-detail-summary::-webkit-details-marker{display:none}.history-meta{display:flex;align-items:center;gap:7px;margin-bottom:8px}.competition-pill{font-size:9px;color:#6b7c85;background:#f0f4f3;border-radius:5px;padding:1px 6px}.history-meta .recent-result{margin-left:auto;width:20px;height:20px}.history-detail-pair{display:grid;grid-template-columns:minmax(0,1fr) 55px minmax(0,1fr);align-items:center;gap:9px;font-size:11px}.history-chevron{position:absolute;right:0;top:50%;color:#82958e;font-size:16px}.history-detail[open] .history-chevron{transform:rotate(180deg)}.historical-favorite sup{color:#c44b38;font-size:10px}.score-winner{color:#d13f3d}.history-more{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;background:#f5f8f6;border-radius:12px;padding:12px;margin-bottom:14px}.detail-datum{min-width:0}.detail-datum>span{display:block;color:var(--muted);font-size:9px;margin-bottom:3px}.detail-datum strong{display:block;font-size:11px;overflow-wrap:anywhere}.fixtures-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.fixture-block{min-width:0}.fixture-block>.team-mini{margin-bottom:13px}.fixture-preview-row{padding:13px 0;border-top:1px solid var(--line)}.fixture-meta{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-bottom:8px}.fixture-preview-pair{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:6px;text-align:center;align-items:center;font-size:11px}.fixture-preview-pair strong{color:#8c9c98;font-size:9px}.fixture-preview-pair span{overflow-wrap:anywhere}.stat-view-switch{display:flex;gap:7px;background:#eef4f1;padding:5px;border-radius:12px}.stat-view-switch button{flex:1;padding:10px 5px;border:0;border-radius:9px;background:transparent;font-size:12px;color:var(--muted);font-weight:700}.stat-view-switch button.active{background:white;color:var(--green);box-shadow:0 2px 5px #133c3010}.stats-team-head,.stats-compare-row{display:grid;grid-template-columns:30% 35% 35%;align-items:center}.stats-team-head{padding-bottom:14px;border-bottom:1px solid var(--line)}.stats-team-head>div{display:grid;justify-content:center;gap:6px}.stats-team-head .team-mini{justify-content:center}.stats-team-head small{font-size:10px;color:var(--muted);text-align:center}.stats-label-head{font-size:10px;color:var(--muted)}.stats-compare-row{padding:15px 0;border-bottom:1px solid #eef3f0;gap:0}.stats-category{font-size:12px;padding-right:10px}.stats-cell{padding:0 14px;text-align:center}.stats-cell strong{display:block;font-size:19px;line-height:1.3}.stats-cell>span{font-size:10px;color:var(--muted)}.stats-track{margin:9px auto 0;height:5px;background:#eaf0f5;border-radius:10px;overflow:hidden}.stats-track span{display:block;height:100%;background:var(--blue);border-radius:10px}.stats-cell.away .stats-track{background:#f5ece6}.stats-cell.away .stats-track span{background:var(--orange)}.league-odds-header,.league-odds-item>summary{display:grid;grid-template-columns:minmax(0,1fr) 70px 85px;gap:12px;align-items:center}.league-odds-header{font-size:10px;color:var(--muted);padding-bottom:10px}.league-odds-header span:not(:first-child){text-align:center}.league-odds-item{border-top:1px solid var(--line)}.league-odds-item>summary{list-style:none;padding:12px 0;cursor:pointer}.league-odds-item>summary::-webkit-details-marker{display:none}.league-team-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.league-team-name.selected-team{color:var(--green);font-weight:700}.league-win-count{text-align:center;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted)}.league-rate{text-align:center}.league-rate strong{font-size:12px;color:var(--green)}.league-rate-track{display:block;height:4px;background:#e6efeb;margin-top:5px;border-radius:10px;overflow:hidden}.league-rate-track span{display:block;height:100%;background:#4e9f83}.league-odds-more{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px;background:#f4f8f5;border-radius:12px;margin-bottom:12px}.league-recent{grid-column:1/-1;display:flex;gap:5px;align-items:center;flex-wrap:wrap;font-size:10px;color:var(--muted)}.league-recent .form-chip{width:23px;max-width:23px;flex:none}.league-context-detail>summary{font-size:12px;color:var(--green);cursor:pointer;padding:7px 0}.league-context-row{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.league-context-row>span{color:var(--muted);flex:0 0 40%}.league-context-row strong{text-align:right;overflow-wrap:anywhere}.full-standings{table-layout:fixed}.full-standings th:first-child,.full-standings td:first-child{width:10%}.full-standings th:nth-child(2),.full-standings td:nth-child(2){width:35%}.full-standings td{vertical-align:top}.standing-extra>summary{cursor:pointer;font-weight:700;overflow-wrap:anywhere}.standing-goals{font-size:9px;color:var(--muted);font-weight:400;margin-top:6px}.standing-goals small{display:block}.floating-tools{position:fixed;bottom:18px;right:max(16px,calc((100vw - 960px)/2));display:flex;align-items:center;gap:8px;z-index:8}.floating-tools .insight-trigger{position:static;padding:12px 17px}.brief-trigger{border:1px solid #d8e5de;border-radius:30px;padding:12px 15px;background:#fff;color:var(--green);box-shadow:0 4px 15px #173a2415;font-size:11px;font-weight:700}.floating-tools button{white-space:nowrap}#preview-chat{max-height:calc(100dvh - 36px);overflow:auto}#close-chat{background:#eef3f1;border:0;border-radius:50%;width:30px;height:30px;font-size:21px}#chat-log{max-height:340px;overflow:auto;margin:18px 0}.chat-welcome{background:#f3f7f4;padding:14px;border-radius:12px;color:var(--muted);font-size:12px}.preview-message{margin:10px 0;max-width:94%}.preview-message.user{margin-left:auto}.preview-message>small{display:block;color:var(--muted);font-size:9px;margin:4px}.preview-message p{background:#f1f5f3;border-radius:12px;padding:12px;margin:0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.preview-message.user p{background:#e5f1eb}.chat-suggestions{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.chat-suggestions button{border:1px solid #dce7e0;background:white;color:var(--green);border-radius:20px;padding:6px 10px;font-size:10px}#preview-chat-form{display:flex;gap:7px}#chat-question{min-width:0;flex:1;border:1px solid #d8e5df;border-radius:10px;padding:11px;font:inherit;font-size:12px}#preview-chat-form button{border:0;background:var(--green);color:white;border-radius:10px;padding:0 16px;font-weight:700;font-size:12px}button:disabled{opacity:.55;cursor:wait}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:640px){.fixtures-pair{grid-template-columns:1fr;gap:22px}.history-more{grid-template-columns:repeat(3,minmax(0,1fr))}.history-detail-pair{grid-template-columns:minmax(0,1fr) 47px minmax(0,1fr);gap:7px;font-size:11px}.stats-cell{padding:0 7px}.stats-cell strong{font-size:17px}.stats-category{font-size:11px;padding-right:6px}.stats-team-head .team-mini{display:grid;justify-items:center;font-size:11px;gap:5px}.stats-team-head small{font-size:9px}.league-odds-header,.league-odds-item>summary{grid-template-columns:minmax(0,1fr) 60px 66px;gap:8px}.league-team-name{font-size:11px}.league-odds-more{gap:9px}.league-odds-more .detail-datum strong{font-size:10px}.full-standings th:nth-child(2),.full-standings td:nth-child(2){width:30%}.full-standings td{padding:10px 2px}.full-standings th{padding:8px 2px}.full-standings{font-size:10px}.stats-controls .section-top{margin-bottom:15px}.stat-view-switch button{font-size:11px}.section-top .segmented{white-space:nowrap}.section-top:has(.segmented){flex-wrap:wrap}.floating-tools{bottom:15px;right:12px;gap:6px}.floating-tools .insight-trigger{font-size:11px;padding:12px 14px}.brief-trigger{padding:12px;font-size:10px}.league-context-row{font-size:10px}.league-context-row>span{flex-basis:43%}}

.league-odds-header,.league-odds-item>summary{grid-template-columns:minmax(0,32fr) minmax(0,22fr) minmax(0,46fr)}.league-full-name{grid-column:1/-1;font-size:12px;margin:0 0 3px}

#snapshot-label>span{display:block}
/* Saved pre-match example, using the same detail components. */
.preview-samples{display:flex;gap:7px;margin:0 0 16px;flex-wrap:wrap}.preview-samples a{border:1px solid #d4e3dc;border-radius:30px;padding:7px 14px;font-size:12px;font-weight:700;color:#52746b;background:#fff}.preview-samples a[aria-current=page]{background:#126d58;border-color:#126d58;color:white}.upcoming-pill{background:#d8efff;color:#13517e;border-color:#a6d1ee}.live-pill{background:#c92f46;color:#fff;border-color:#f79ba7}.upcoming-score{font-size:46px;letter-spacing:3px;margin-top:10px;color:#e2f3ef}.kickoff-note{display:inline-block;margin-top:8px;padding:5px 10px;border:1px solid #9fc5ba60;border-radius:9px;color:#d8eae4;font-size:12px;font-weight:700}.hero-price{font-size:14px}.standing-group td{background:#e4f1ea;color:#126d58;text-align:left;font-size:11px;font-weight:700;padding:8px 9px}.hero-club .club-english{overflow-wrap:anywhere}.hero-club .club-name{overflow-wrap:anywhere}@media(max-width:640px){.upcoming-score{font-size:34px;letter-spacing:2px}.finished-pill{font-size:9px;padding:3px 7px}.kickoff-note{font-size:11px;padding:4px 7px}.preview-samples a{font-size:11px;padding:7px 12px}.hero-price{font-size:13px}}
.club-word{display:inline-block;white-space:nowrap}
/* Mitr is served locally, including Thai and Latin glyphs. */
body{font-family:Mitr,Tahoma,sans-serif;font-synthesis:none;font-weight:400;font-size:15px;line-height:1.7;background:linear-gradient(135deg,#eef5f1,#eef3f8)}button,input,select,textarea{font-family:inherit}strong,h1,h2,h3,h4,b{font-weight:600}.brand{font-weight:500}.brand small{font-weight:300}.card{box-shadow:0 5px 22px #204b3b0c;border-color:#dbe7e1}.eyebrow{font-size:10px;letter-spacing:1.2px;font-weight:500}h2{font-size:21px;font-weight:500}.subtitle{font-size:12px;line-height:1.7}.club-name{font-weight:500}.club-english{font-weight:300}.score{font-weight:600}.metric-value{font-weight:500}.team-mini{font-size:13px;font-weight:500;min-width:0}.team-mini img{flex:none}.team-mini span{min-width:0;overflow-wrap:anywhere}.stat-view-switch{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;background:#eaf2ed}.stat-view-switch button{font-size:12px;padding:10px 4px;font-weight:500}.stats-controls .section-top{flex-wrap:wrap}.stats-category{font-size:13px;line-height:1.6}.stats-cell strong{font-size:20px;font-weight:500}.stats-cell>span{font-size:11px;line-height:1.5;margin-top:2px}.stats-team-head small{font-size:11px}.stats-team-head .team-mini{font-size:12px}.stats-compare-row{padding:17px 0}.stats-cell{padding-left:10px;padding-right:10px}.stats-cell .stats-track{height:6px;margin-top:8px}.chart-foot,.goal-note{font-size:11px;line-height:1.7}.segmented button{font-size:11px;font-weight:400;padding:5px 10px}.segmented button.active{font-weight:500}.history-detail-pair{font-size:12px;line-height:1.65}.history-date,.competition-pill{font-size:10px}.detail-datum strong{font-size:12px;font-weight:500}.detail-datum>span{font-size:10px}.summary-table{font-size:12px}.summary-table th{font-size:10px}.league-team-name{font-size:12px}.league-rate strong{font-size:13px}.goal-value strong{font-weight:500}.goal-axis{font-size:10px}.favorite-label{font-size:11px}.quick-facts{background:linear-gradient(125deg,#fff,#f7fbf8);border-color:#d5e6dc}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quick-tile{background:#fff;border:1px solid #e1ebe5;border-radius:15px;padding:14px}.quick-tile>span{font-size:11px;color:var(--muted);display:block;margin-bottom:7px}.quick-values{display:flex;justify-content:space-between;gap:7px;font-size:24px;line-height:1.4}.quick-values strong{font-weight:500}.team-legend{display:flex;justify-content:flex-end;gap:18px;margin-top:13px}.team-legend .team-mini{font-size:11px}.team-legend .team-mini:first-child{color:var(--blue)}.team-legend .team-mini:last-child{color:var(--orange)}.team-legend img{width:22px;height:22px}.choice-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}.choice-buttons button{border:1px solid #d4e3dc;border-radius:30px;padding:6px 13px;color:#577d6e;background:#fff;font-size:12px}.choice-buttons button.active{background:#126d58;color:#fff;border-color:#126d58}.explorer-row .stats-category{font-weight:400}.distribution-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.distribution-team{background:#f4f8fc;border-radius:16px;padding:15px;min-width:0}.distribution-team.away{background:#fcf5f1}.distribution-team .team-mini{font-size:11px;align-items:flex-start}.distribution-team .team-mini img{width:22px;height:22px}.distribution-chart{height:190px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;align-items:end;padding-top:28px}.distribution-column{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:0}.distribution-bar{display:block;position:relative;background:#2877ce;width:100%;border-radius:6px 6px 2px 2px;min-height:2px}.away .distribution-bar{background:#cc6947}.distribution-bar strong{position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:11px}.distribution-column small{font-size:10px;color:var(--muted)}.saved-summary summary{cursor:pointer;font-size:13px;color:#126d58;padding:12px 14px;background:#edf5ef;border-radius:12px}.saved-note{padding:15px 0;border-bottom:1px solid var(--line)}.saved-note>strong{font-size:13px;color:#20594b}.saved-note p{font-size:12px;color:#60776f;margin:7px 0 0;line-height:1.9}.saved-facts{font-size:12px;padding-left:20px;color:#60776f}.saved-facts li{margin:8px 0}.historical-markets{margin-bottom:15px;background:#f5f8f6;padding:15px;border-radius:14px}.historical-markets h4{font-size:12px;font-weight:500;margin:0 0 12px;color:#1f6551}.market-quote-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.market-quote{background:white;border:1px solid #e0e9e3;padding:12px;border-radius:12px;min-width:0}.market-title{display:block;font-size:10px;font-weight:500;margin-bottom:10px;color:#63796f;line-height:1.7}.market-quote>.detail-datum strong{font-size:17px;color:#126d58}.quote-values{display:flex;justify-content:space-between;gap:7px;border-top:1px solid var(--line);margin-top:8px;padding-top:8px}.quote-values .detail-datum strong{font-size:13px}.quote-values .detail-datum>span{font-size:9px}.page-footer{font-size:11px}.hero-price{font-weight:500}.form-caption{font-size:10px}.metric-caption{font-size:11px}
@media(max-width:640px){body{font-size:14px}.hero-match{grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr);gap:4px}.club-name{font-size:16px}.score{font-size:35px}.finished-pill{font-size:9px;padding:3px 6px}.club-english{font-size:10px}.hero-bottom{flex-wrap:wrap}.tabs button{font-size:11px;font-weight:500;padding:10px 3px}.card{padding:20px 17px}h2{font-size:19px}.section-top{flex-wrap:wrap}.subtitle{font-size:11px}.team-mini{font-size:12px}.quick-grid{grid-template-columns:1fr 1fr;gap:9px}.quick-tile{padding:12px}.quick-values{font-size:25px}.quick-tile>span{font-size:11px}.team-legend{justify-content:space-between;gap:8px}.team-legend .team-mini{font-size:10px}.team-legend img{width:19px;height:19px}.stats-category{font-size:12px;padding-right:6px}.stats-cell{padding:0 6px}.stats-cell strong{font-size:17px}.stats-cell>span{font-size:10px}.stats-team-head .team-mini{font-size:10px;flex-direction:column;gap:4px;text-align:center}.stats-team-head small{font-size:10px}.stat-view-switch{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.stat-view-switch button{font-size:11px;padding:9px 3px}.stat-view-switch button:last-child{grid-column:2/4}.history-detail-pair{font-size:11px;gap:6px}.summary-table{font-size:11px}.summary-table th{font-size:9px}.history-date,.competition-pill{font-size:9px}.distribution-team{padding:11px 8px}.distribution-pair{gap:9px}.distribution-chart{height:170px;gap:4px}.market-quote-grid{grid-template-columns:1fr 1fr;gap:8px}.market-quote{padding:10px}.detail-datum strong{font-size:11px}.saved-summary summary{font-size:12px}.floating-tools button{font-size:11px;padding:11px 13px}.choice-buttons button{font-size:11px;padding:6px 11px}.chart-foot,.goal-note{font-size:10px}}
@media(max-width:360px){.hero-match{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr)}.club-name{font-size:14px}.score{font-size:30px}.finished-pill{font-size:8px;padding:3px 5px}.club-english{font-size:9px}.logo-plate{width:65px;height:65px}.club-logo{width:50px;height:50px}.card{padding:17px 13px}.quick-values{font-size:22px}.stats-cell strong{font-size:15px}.stats-category{font-size:11px}.tabs button{font-size:10px}.segmented button{font-size:10px;padding:5px 8px}.team-mini{font-size:11px}.team-legend .team-mini{font-size:9px}}
.content-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.content-grid>.card{min-width:0}@media(max-width:640px){.content-grid{grid-template-columns:minmax(0,1fr)}}
/* Team-owned key figures and readable result badges. */
:root{--win:#16835a;--draw:#697586;--loss:#d3454e}.win{background:var(--win)}.draw{background:var(--draw)}.loss{background:var(--loss)}.form-chip,.recent-result{border:1px solid #ffffff38;font-weight:600;box-shadow:0 2px 5px #23382a10;letter-spacing:.3px}.form-chip.win,.recent-result.win{background:#16835a;color:#fff}.form-chip.draw,.recent-result.draw{background:#697586;color:#fff}.form-chip.loss,.recent-result.loss{background:#d3454e;color:#fff}.quick-facts{border:1px solid #c7dbd0;background:#fff}.quick-team-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.quick-team-panel{min-width:0;border:2px solid #98bee6;background:#eef5fd;border-radius:18px;overflow:hidden;box-shadow:0 3px 12px #234a7010}.quick-team-panel.away{border-color:#e2b39c;background:#fff3ec}.quick-team-head{padding:16px;background:#dbeafb;border-bottom:1px solid #b6d0ec;min-height:95px;display:flex;flex-direction:column;justify-content:center;gap:8px}.away .quick-team-head{background:#f9e0d2;border-bottom-color:#e9c2ab}.quick-team-head .team-mini{color:#1c5793;font-size:14px;font-weight:500}.away .quick-team-head .team-mini{color:#924522}.quick-team-head .team-mini img{width:36px;height:36px;background:white;border-radius:10px;padding:3px}.quick-team-context{font-size:11px;color:#476c8d}.away .quick-team-context{color:#8b634e}.quick-team-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:13px}.quick-team-stat{padding:12px;background:#fff;border:1px solid #bed3e8;border-radius:12px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;min-height:85px}.away .quick-team-stat{border-color:#e9c8b6}.quick-team-stat>span{font-size:12px;color:#5b7084;line-height:1.6;display:block}.away .quick-team-stat>span{color:#856452}.quick-team-stat strong{font-size:29px;line-height:1.4;color:#2469b0;font-weight:500;display:block;margin-top:5px}.away .quick-team-stat strong{color:#b85932}@media(max-width:640px){.quick-team-panels{gap:10px}.quick-team-head{padding:12px 9px;min-height:125px;text-align:center;justify-content:flex-start}.quick-team-head .team-mini{flex-direction:column;gap:7px;font-size:12px;min-height:77px;justify-content:flex-start}.quick-team-head .team-mini span{line-height:1.6}.quick-team-context{font-size:10px}.quick-team-metrics{grid-template-columns:minmax(0,1fr);padding:9px;gap:8px}.quick-team-stat{padding:10px;min-height:79px}.quick-team-stat>span{font-size:11px}.quick-team-stat strong{font-size:27px}.form-chip,.recent-result{font-size:10px}}@media(max-width:360px){.quick-team-panels{gap:8px}.quick-team-head{padding:11px 6px}.quick-team-head .team-mini{font-size:11px}.quick-team-metrics{padding:7px;gap:7px}.quick-team-stat{padding:9px 7px}.quick-team-stat>span{font-size:10px}.quick-team-stat strong{font-size:25px}}
.full-standings th:nth-child(4),.full-standings tr:not(.standing-group) td:nth-child(4){color:var(--win)}.full-standings th:nth-child(5),.full-standings tr:not(.standing-group) td:nth-child(5){color:var(--draw)}.full-standings th:nth-child(6),.full-standings tr:not(.standing-group) td:nth-child(6){color:var(--loss)}
/* Clear selectors, larger Mitr typography, and mixed chart shapes. */
body{font-size:17px;line-height:1.75}.brand{font-size:17px}.brand small{font-size:13px}.preview-label,.back-link,.preview-samples a{font-size:14px}.eyebrow{font-size:12px}h2{font-size:25px}h3{font-size:18px}.subtitle{font-size:15px}.league-line,.match-day{font-size:14px}.club-name{font-size:24px}.club-english{font-size:14px}.finished-pill,.favorite-label,.half-score,.hero-place,.hero-price{font-size:14px}.kickoff-note{font-size:15px}.tabs button{font-size:16px;padding:12px 7px}.segmented button,.choice-buttons button{font-size:14px;padding:8px 14px}.team-mini{font-size:15px}.metric-caption,.form-caption,.chart-foot,.goal-note,.page-footer{font-size:14px}.metric-value{font-size:35px}.form-chip,.recent-result{font-size:13px}.h2h-counts span,.stack-labels,.quiet-link{font-size:14px}.comparison-label,.compare-heading{font-size:14px}.comparison-values{font-size:23px}.track{height:11px}.goal-value span,.goal-axis,.goal-column span{font-size:13px}.stats-category{font-size:15px}.stats-cell strong{font-size:24px}.stats-cell>span,.stats-team-head small{font-size:13px}.stats-team-head .team-mini{font-size:14px}.stats-label-head{font-size:13px}.stats-track{height:10px}.history-detail-pair{font-size:14px}.history-date,.competition-pill{font-size:12px}.detail-datum>span{font-size:12px}.detail-datum strong{font-size:14px}.fixture-meta{font-size:13px}.fixture-preview-pair{font-size:14px}.fixture-preview-pair strong{font-size:12px}.summary-table{font-size:14px}.summary-table th{font-size:12px}.rank-number{font-size:14px}.quick-team-head .team-mini{font-size:16px}.quick-team-context{font-size:13px}.quick-team-stat>span{font-size:14px}.quick-team-stat strong{font-size:33px}.quick-team-stat{min-height:105px}.saved-summary summary,.saved-note>strong,.saved-note p,.saved-facts{font-size:15px}.league-team-name,.league-rate strong{font-size:14px}.league-full-name{font-size:15px}.market-title{font-size:13px}.historical-markets h4{font-size:15px}.quote-values .detail-datum>span{font-size:12px}.quote-values .detail-datum strong{font-size:15px}.distribution-team .team-mini{font-size:14px}.distribution-column small,.distribution-bar strong{font-size:13px}.floating-tools button{font-size:14px}dialog{font-size:16px}.preview-message p,.chat-suggestions button,.chat-welcome{font-size:15px}#chat-question{font-size:16px}.section-top select{font-size:14px!important;max-width:145px!important;padding:8px!important}.stats-controls .section-top{margin-bottom:18px}.stats-picker{border:1px solid #99c3b0;background:#f0f8f3;border-radius:16px;padding:17px}.stats-picker-label{font-size:15px;font-weight:500;color:#1c5d49;display:block;margin-bottom:9px}.stats-category-input{width:100%;font-size:19px;font-weight:500;min-height:57px;border:1px solid #84b49d;background:#fff;border-radius:11px;color:#145341;padding:12px 14px;cursor:pointer}.stats-category-input:focus-visible{outline:3px solid #7fb9a5;outline-offset:3px}.stats-picker-hint{font-size:14px;color:#627b70;line-height:1.7;margin:10px 0 0}.stats-period{margin-top:14px;background:#f6f8fa;border:1px solid #d4dfe5;border-radius:16px;padding:17px}.stats-period .segmented{display:flex;width:100%;padding:5px;border-radius:12px;background:#e5ece8}.stats-period .segmented button{flex:1;min-height:45px;font-size:16px;border-radius:9px}.stats-period .segmented button.active{background:#126d58;color:#fff;box-shadow:0 3px 8px #0d4c3820}.outcome-donut-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.outcome-donut-team{padding:18px;background:#f2f7fd;border:1px solid #bbd2e8;border-radius:18px;min-width:0}.outcome-donut-team.away{background:#fff5ee;border-color:#e8c5af}.outcome-donut-team>.team-mini{justify-content:center;text-align:center}.outcome-donut{position:relative;width:155px;height:155px;margin:20px auto 12px}.outcome-donut svg{width:100%;height:100%;transform:rotate(-90deg)}.donut-track,.donut-segment{fill:none;stroke-width:12}.donut-track{stroke:#dce5e7}.donut-segment.win{stroke:var(--win)}.donut-segment.draw{stroke:var(--draw)}.donut-segment.loss{stroke:var(--loss)}.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut-center strong{font-size:30px;font-weight:500;color:#1b5745;line-height:1.3}.donut-center span{font-size:13px;color:#64786f;margin-top:4px}.donut-sample{text-align:center;font-size:13px;color:#6b7d79}.outcome-legend{display:flex;flex-direction:column;gap:8px;margin-top:15px}.outcome-legend-item{display:grid;grid-template-columns:27px minmax(0,1fr) 25px;align-items:center;gap:8px;font-size:14px}.outcome-legend-item strong{text-align:right;font-size:17px}.outcome-code{border-radius:7px;color:#fff;font-size:13px;font-weight:500;text-align:center;padding:3px}.metric-ring{width:84px;height:84px;margin:0 auto;position:relative;display:grid;place-items:center}.metric-ring .ring{position:absolute;width:100%;height:100%}.metric-ring .ring circle{stroke-width:4}.metric-ring strong{position:relative;font-size:18px!important;line-height:1.3}.circle-comparison{min-height:110px}.circle-comparison .stats-cell{text-align:center}.circle-comparison .stats-cell>span{display:block;margin-top:6px}.explorer-row .stats-track{height:11px}.comparison-tracks{margin-top:9px}.goal-chart{height:145px}.goal-column{width:48px}
@media(max-width:640px){body{font-size:16px}.brand{font-size:16px}.brand small{font-size:12px}.preview-label{font-size:12px}.back-link,.preview-samples a{font-size:13px}.card{padding:22px 17px}h2{font-size:22px}.eyebrow{font-size:11px}.subtitle{font-size:14px}.hero-match{grid-template-columns:minmax(0,1fr) 94px minmax(0,1fr)}.club-name{font-size:18px}.club-english{font-size:12px}.league-line,.match-day{font-size:13px}.finished-pill{font-size:10px}.favorite-label{font-size:12px}.half-score,.hero-place{font-size:13px}.tabs button{font-size:14px;white-space:normal;line-height:1.45;min-height:51px;padding:10px 4px}.team-mini{font-size:14px}.form-team{padding:14px 11px}.metric-value{font-size:33px}.metric-caption,.form-caption{font-size:12px}.ring{width:44px;height:44px}.form-chip,.recent-result{font-size:12px}.chart-foot,.goal-note,.page-footer{font-size:13px}.segmented button,.choice-buttons button{font-size:13px;padding:7px 11px}.h2h-counts span,.stack-labels,.quiet-link{font-size:13px}.stats-category{font-size:14px}.stats-cell strong{font-size:21px}.stats-cell>span,.stats-team-head small{font-size:12px}.stats-team-head .team-mini{font-size:12px}.stats-label-head{font-size:12px}.stats-cell{padding:0 5px}.stats-compare-row{padding:19px 0}.history-detail-pair{font-size:13px}.history-date,.competition-pill{font-size:11px}.detail-datum>span{font-size:11px}.detail-datum strong{font-size:13px}.summary-table{font-size:12px}.summary-table th{font-size:11px}.quick-team-head .team-mini{font-size:14px;min-height:87px}.quick-team-head{min-height:140px}.quick-team-context{font-size:12px}.quick-team-stat>span{font-size:13px}.quick-team-stat{min-height:98px}.quick-team-stat strong{font-size:30px}.fixture-meta{font-size:12px;flex-wrap:wrap}.fixture-preview-pair{font-size:13px}.saved-summary summary,.saved-note p,.saved-note>strong,.saved-facts{font-size:14px}.league-team-name,.league-rate strong{font-size:13px}.historical-markets h4{font-size:14px}.market-title{font-size:12px}.quote-values .detail-datum>span{font-size:11px}.floating-tools button{font-size:13px;padding:12px 14px}.stats-picker,.stats-period{padding:14px}.stats-picker-label{font-size:14px}.stats-category-input{font-size:17px;min-height:54px;padding:10px 12px}.stats-picker-hint{font-size:13px}.stats-period .segmented button{font-size:15px}.outcome-donut-pair{gap:10px}.outcome-donut-team{padding:13px 9px}.outcome-donut-team>.team-mini{flex-direction:column;min-height:67px;font-size:13px;gap:6px}.outcome-donut{width:118px;height:118px;margin-top:15px}.donut-center strong{font-size:25px}.donut-center span,.donut-sample{font-size:12px}.outcome-legend-item{font-size:13px;gap:5px;grid-template-columns:23px minmax(0,1fr) 20px}.outcome-legend-item strong{font-size:16px}.outcome-code{font-size:12px}.metric-ring{width:74px;height:74px}.metric-ring strong{font-size:16px!important}.goal-value span,.goal-axis,.goal-column span{font-size:12px}.distribution-team .team-mini{font-size:12px}.distribution-column small,.distribution-bar strong{font-size:12px}}
@media(max-width:360px){.card{padding:19px 13px}.hero-match{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr)}.club-name{font-size:15px}.club-english{font-size:11px}.finished-pill{font-size:9px}.tabs button{font-size:13px;padding:9px 2px}.metric-value{font-size:29px}.ring{width:36px;height:36px}.metric-caption,.form-caption{font-size:11px}.team-mini{font-size:13px}.stats-category{font-size:13px}.stats-cell strong{font-size:18px}.stats-cell>span{font-size:11px}.stats-team-head .team-mini{font-size:11px}.stats-team-head small{font-size:11px}.metric-ring{width:62px;height:62px}.metric-ring strong{font-size:14px!important}.outcome-donut{width:100px;height:100px}.donut-center strong{font-size:22px}.outcome-donut-team>.team-mini{font-size:12px}.outcome-legend-item{font-size:12px}.quick-team-head .team-mini{font-size:13px}.quick-team-context{font-size:11px}.quick-team-stat>span{font-size:12px}.quick-team-stat strong{font-size:28px}.summary-table{font-size:11px}.summary-table th{font-size:10px}.history-detail-pair{font-size:12px}.history-date{font-size:10px}}
/* Compact comparison table and directly visible statistics categories. */
.quick-compare-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid #bfcfc9;border-radius:14px;overflow:hidden}.quick-compare-table th,.quick-compare-table td{border-bottom:1px solid #d9e2df;padding:10px 12px}.quick-compare-table tbody tr:last-child th,.quick-compare-table tbody tr:last-child td{border-bottom:0}.quick-metric-heading,.quick-metric-label{width:40%;text-align:left;background:#f7faf8;color:#496459;font-weight:400;font-size:15px}.quick-metric-heading{font-size:13px;color:#72867a}.quick-team-heading{width:30%;vertical-align:middle;padding:12px!important;background:#dbeafb;border-left:1px solid #b2cbe3;color:#205a93}.quick-team-heading.away{background:#f9e0d2;border-left-color:#e6baa3;color:#924522}.quick-team-heading .team-mini{flex-direction:column;text-align:center;justify-content:center;gap:7px;color:inherit;font-size:14px;font-weight:500}.quick-team-heading .team-mini img{width:30px;height:30px;background:white;border-radius:8px;padding:3px}.quick-team-value{text-align:center;vertical-align:middle;background:#f0f6ff;border-left:1px solid #bfd3e8}.quick-team-value.away{background:#fff3eb;border-left-color:#e9c9b5}.quick-team-value strong{font-size:27px;font-weight:500;line-height:1.4;color:#2469b0}.quick-team-value.away strong{color:#b85932}.quick-compare-table tbody tr:nth-child(even) .quick-team-value.home{background:#e7f0fd}.quick-compare-table tbody tr:nth-child(even) .quick-team-value.away{background:#fce9dc}.stats-category-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats-category-buttons button{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:56px;border:1px solid #b6cec2;border-radius:12px;padding:10px 14px;background:#f7fbf8;color:#356152;font-size:16px;font-weight:500;text-align:left;line-height:1.5}.stats-category-buttons button:last-child{grid-column:1/-1;justify-content:center}.stats-category-buttons button.active{background:#126d58;color:white;border-color:#126d58;box-shadow:0 3px 9px #1456401c}.stats-category-buttons button:hover:not(.active){background:#e7f3eb}.stats-category-icon{width:29px;height:29px;flex:none;display:grid;place-items:center;border-radius:8px;background:#e5efe9;font-size:21px}.active .stats-category-icon{background:#ffffff25}.compact-period.stats-period{display:flex;align-items:center;gap:13px;margin-top:17px;padding:15px 0 0;background:transparent;border:0;border-top:1px solid #d5e2db;border-radius:0}.compact-period .stats-picker-label{margin:0;white-space:nowrap;font-size:14px}.compact-period .segmented{width:auto;flex:1}.compact-period .segmented button{font-size:14px;min-height:42px;padding:7px 10px}.stats-controls .section-top{margin-bottom:16px}@media(max-width:640px){.quick-compare-table th,.quick-compare-table td{padding:9px 8px}.quick-metric-label{font-size:14px;line-height:1.6}.quick-team-heading{padding:10px 6px!important}.quick-team-heading .team-mini{font-size:12px;line-height:1.6;gap:6px}.quick-team-value strong{font-size:25px}.stats-category-buttons{gap:8px}.stats-category-buttons button{min-height:53px;font-size:15px;padding:9px 10px;gap:8px}.stats-category-icon{width:26px;height:26px;font-size:19px}.compact-period.stats-period{gap:10px}.compact-period .segmented{padding:4px}.compact-period .segmented button{padding:7px 6px}}@media(max-width:360px){.quick-metric-label{font-size:13px}.quick-team-heading .team-mini{font-size:11px}.quick-team-value strong{font-size:22px}.quick-compare-table th,.quick-compare-table td{padding:9px 6px}.stats-category-buttons button{font-size:14px;padding:9px 8px;gap:6px}.stats-category-icon{width:24px;height:24px;font-size:18px}.compact-period .stats-picker-label{font-size:13px}.compact-period .segmented button{font-size:13px;padding:7px 5px}}
/* Statistics explorer: only the middle scrolls; controls stay visible. */
.stats-modal-open{overflow:hidden}.stats-explorer{position:fixed;inset:0;margin:auto;padding:0;width:min(1040px,calc(100% - 40px));height:min(940px,92dvh);max-height:92dvh;max-width:calc(100% - 40px);border-radius:24px;overflow:hidden;background:#f0f5f3}.stats-explorer[open]{display:flex;flex-direction:column}.stats-sheet-handle{display:none}.stats-modal-header{flex:none;background:white;padding:20px 24px 15px;border-bottom:1px solid #d9e5de}.stats-modal-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.stats-modal-title-row>div{min-width:0}.stats-modal-header h2{font-size:25px;margin:0}.stats-modal-header p{margin:5px 0 0;font-size:14px;color:#668076;line-height:1.6}#close-stats{flex:none;width:42px;height:42px;border-radius:50%;border:1px solid #d0ded6;background:#f0f6f2;color:#285847;font-size:27px;line-height:1}.stats-modal-period{display:flex;align-items:center;gap:13px;margin-top:14px;font-size:14px;color:#516f62}.stats-modal-period .segmented{padding:4px;min-width:270px}.stats-modal-period .segmented button{flex:1;font-size:15px;min-height:39px;padding:7px 15px}.stats-modal-period .segmented button.active{background:#126d58;color:white}.stats-modal-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto;padding:22px 24px;scrollbar-gutter:stable}.stats-modal-body:focus-visible{outline:2px solid #7dbba5;outline-offset:-3px}.stats-modal-grid>.card{margin:0}.stats-modal-footer{flex:none;padding:9px 24px 14px;background:white;border-top:1px solid #cbded3;box-shadow:0 -4px 14px #2349330a}.stats-modal-footer>p{text-align:center;font-size:12px;color:#698175;margin:0 0 7px}.stats-modal-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.stats-modal-categories button{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #c4d8cc;background:#f7faf8;color:#496d5d;border-radius:12px;min-height:51px;padding:8px;font:inherit;font-size:15px;font-weight:500;line-height:1.5}.stats-modal-categories button.active{background:#126d58;color:#fff;border-color:#126d58;box-shadow:0 3px 8px #12603f25}.stats-modal-categories .stats-category-icon{width:27px;height:27px;font-size:19px}.stats-explorer .card{animation:none}@media(max-width:640px){.stats-explorer{inset:auto 0 0;margin:0;width:100%;max-width:100%;height:94dvh;max-height:94dvh;border-radius:23px 23px 0 0}.stats-sheet-handle{display:block;flex:none;width:42px;height:4px;border-radius:9px;background:#b9cfc2;margin:10px auto 1px}.stats-modal-header{padding:12px 16px 13px}.stats-modal-header h2{font-size:21px}.stats-modal-header p{font-size:13px}.stats-modal-period{margin-top:11px;gap:10px;font-size:13px}.stats-modal-period .segmented{min-width:0;flex:1}.stats-modal-period .segmented button{font-size:14px;padding:7px 8px;min-height:38px}.stats-modal-body{padding:15px 12px;scrollbar-gutter:auto}.stats-modal-footer{padding:7px 9px max(10px,env(safe-area-inset-bottom))}.stats-modal-footer>p{font-size:12px;margin-bottom:6px}.stats-modal-categories{gap:5px}.stats-modal-categories button{flex-direction:column;gap:4px;min-height:64px;font-size:13px;padding:7px 3px;border-radius:10px}.stats-modal-categories .stats-category-icon{width:25px;height:25px;font-size:18px}.stats-modal-categories button>span:last-child{white-space:nowrap;line-height:1.4}}@media(max-width:360px){.stats-modal-header{padding:11px 13px}.stats-modal-header h2{font-size:20px}.stats-modal-header p{font-size:12px}.stats-modal-body{padding:13px 10px}.stats-modal-categories button{font-size:12px}.stats-modal-footer{padding-left:6px;padding-right:6px}}
@media(prefers-reduced-motion:no-preference){.stats-explorer[open]{animation:stats-open .2s ease-out}@keyframes stats-open{from{opacity:.5;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}}

/* v9: floating circular match actions */
.floating-tools{top:50%;bottom:auto;right:max(14px,env(safe-area-inset-right));transform:translateY(-50%);flex-direction:column;gap:12px}
.floating-tools button,.floating-tools .insight-trigger{width:78px;height:78px;border-radius:50%;padding:8px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.3;border:2px solid #fff;box-shadow:0 5px 18px #173d3930;transition:transform .18s,box-shadow .18s}
.floating-tools .brief-trigger{background:#fff;color:#126d58;border-color:#bdd9d0}
.floating-tools .insight-trigger{background:#174b49;color:#fff}
.float-icon{width:25px;height:25px;flex:none}
.floating-tools button:hover{transform:translateY(-2px);box-shadow:0 8px 22px #173d3940}
.floating-tools button:active{transform:scale(.96)}
@media(max-width:640px){.floating-tools{right:max(9px,env(safe-area-inset-right));gap:10px}.floating-tools button,.floating-tools .insight-trigger{width:70px;height:70px;font-size:11px;padding:7px 2px}.float-icon{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.floating-tools button{transition:none}}

/* v10: compact draggable actions */
.floating-tools{gap:8px;touch-action:none;user-select:none;-webkit-user-select:none}
.floating-tools button,.floating-tools .insight-trigger{width:58px;height:58px;padding:5px 2px;font-size:10px;gap:3px;cursor:grab}
.floating-tools .float-icon{width:21px;height:21px;pointer-events:none}
.floating-tools button span{pointer-events:none}
.floating-tools.dragging button{cursor:grabbing;transform:none;transition:none}

/* v11: use the entire mobile viewport for statistics */
@media(max-width:640px){.stats-explorer{inset:0;margin:0;height:100dvh;max-height:100dvh;border-radius:0}.stats-sheet-handle{display:none}.stats-modal-header{padding-top:max(14px,env(safe-area-inset-top))}}

/* v12: keep the kickoff time on one line in the mobile hero */
@media(max-width:640px){.kickoff-note{font-size:11px;line-height:1.5;padding:5px 4px;white-space:nowrap;font-weight:500;max-width:100%}}

/* v13: persistent controls for the full form history */
.form-filter-dock[hidden]{display:none}
.form-filter-dock{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(960px,100%);z-index:9;padding:12px 20px max(12px,env(safe-area-inset-bottom));background:#fffffff5;border:1px solid #cbded6;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -5px 22px #173d3917;backdrop-filter:blur(12px);display:flex;justify-content:center;gap:24px}
.form-filter-row{display:flex;align-items:center;gap:10px;min-width:0}
.form-filter-row>span{font-size:13px;color:#54766a;flex:none}
.form-filter-row .choice-buttons{display:flex;gap:5px;margin:0}
.form-filter-row .segmented button,.form-filter-row .choice-buttons button{font-size:13px;min-height:38px;padding:7px 12px}
.form-filter-row .segmented button.active{background:#126d58;color:white}
.has-form-dock .shell{padding-bottom:160px}
@media(max-width:640px){.form-filter-dock{flex-direction:column;gap:7px;padding:10px 12px max(10px,env(safe-area-inset-bottom))}.form-filter-row{gap:9px}.form-filter-row>span{width:47px;font-size:12px}.form-filter-row .segmented,.form-filter-row .choice-buttons{flex:1;display:flex;min-width:0}.form-filter-row button{flex:1;white-space:nowrap}.form-filter-row .segmented button,.form-filter-row .choice-buttons button{font-size:12px;padding:7px 4px;min-height:37px}.has-form-dock .shell{padding-bottom:190px}}

/* v14: distinct primary match navigation */
.tabs{background:#cbded7;border:1px solid #9cbeb0;box-shadow:0 4px 14px #173d3920;padding:6px;gap:5px}
.tabs button{color:#345d50;font-weight:500;border:1px solid transparent}
.tabs button[aria-selected=true]{background:#126d58;color:#fff;border-color:#0d5847;box-shadow:0 3px 8px #164f3f30}
.tabs button:hover:not([aria-selected=true]){background:#e8f3ed;border-color:#accabc;color:#174b39}
.tabs button:focus-visible{outline:3px solid #e6a840;outline-offset:1px}

/* v15: distinguish the persistent form filters from the content */
.form-filter-dock{background:#dcece5;border:1px solid #88b19f;border-top:3px solid #126d58;box-shadow:0 -6px 22px #173d3930}
.form-filter-row>span{color:#214f3f;font-weight:500}
.form-filter-row .segmented{background:#bcd5c9;border:1px solid #9abfae}
.form-filter-row .segmented button{color:#315c4b;font-weight:500}
.form-filter-row .choice-buttons button{background:#f7fcf9;border:1px solid #8fb7a5;color:#315c4b;font-weight:500}
.form-filter-row .segmented button.active,.form-filter-row .choice-buttons button.active{background:#126d58;color:#fff;border-color:#0e5947;box-shadow:0 2px 6px #184d3925}
.form-filter-row button:focus-visible{outline:3px solid #d59a30;outline-offset:1px}

/* v16: form filters stay directly below the primary tabs */
.form-filter-dock{position:sticky;top:calc(var(--match-tabs-top,10px) + var(--match-tabs-height,70px));left:auto;bottom:auto;transform:none;width:100%;z-index:5;margin:-14px 0 18px;border-radius:14px;border-bottom:1px solid #88b19f;padding:10px 12px;box-shadow:0 4px 14px #173d3920}
.has-form-dock .shell{padding-bottom:100px}

/* v17: only the history filters remain sticky in the form tab */
.has-form-dock .tabs{position:static}
.has-form-dock .form-filter-dock{top:8px}

/* v18: soft result colors across each team history entry */
[data-form-team] .history-detail{border-radius:12px;margin:9px 0;border:1px solid #e1e8e5;background:#fff;overflow:hidden}
[data-form-team] .history-detail[data-result=win]{background:#edf8f1;border-color:#cce5d5}
[data-form-team] .history-detail[data-result=loss]{background:#fff0f0;border-color:#f0d3d3}
[data-form-team] .history-detail-summary{padding-left:12px;padding-right:12px}
[data-form-team] .history-detail[data-result=win] .history-more,[data-form-team] .history-detail[data-result=win] .historical-markets{background:#edf8f1}
[data-form-team] .history-detail[data-result=loss] .history-more,[data-form-team] .history-detail[data-result=loss] .historical-markets{background:#fff0f0}

/* v19: clear favorite marker in historical matches */
.historical-favorite sup{display:inline-block;color:#d72e3d;font-size:20px;font-weight:600;line-height:1;vertical-align:middle;margin-left:3px}

.favorite-marker{display:inline-block;color:#d72e3d;font-size:20px;font-weight:600;line-height:1;vertical-align:middle;margin-left:3px}

/* v21: scrolling navigation sits flush with the viewport top */
.tabs{top:0}
.has-form-dock .form-filter-dock{top:0}

/* v22: default match actions at the lower right, still draggable */
.floating-tools{top:auto;bottom:max(14px,env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right));transform:none}
.preview-samples[hidden],.preview-label[hidden]{display:none}
/* Chat workspace: fixed header and composer, conversation is the only scroll area. */
body.chat-open{overflow:hidden}
#preview-chat{box-sizing:border-box;position:fixed;inset:24px 0 auto;margin:0 auto;width:min(760px,calc(100vw - 40px));height:var(--chat-height,min(780px,calc(100dvh - 48px)));max-width:none;max-height:none;padding:0;border:1px solid #cbded6;border-radius:24px;overflow:hidden;background:#fff;color:var(--ink)}
#preview-chat[open]{display:flex;flex-direction:column}
.chat-header{flex:none;padding:18px 24px 14px;border-bottom:1px solid #e4ece8;background:#fff}
.chat-header-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.chat-brand{font-size:15px;font-weight:500;color:#126d58}
#close-chat{width:38px;height:38px;flex:none;font-size:24px;background:#f1f5f3;color:#31554a}
#chat-title{font-size:18px;line-height:1.5;margin:5px 0;overflow-wrap:anywhere}
.chat-header>p{font-size:12px;margin:0;color:#6b7d88}
#preview-chat #chat-log{flex:1;min-height:0;max-height:none;margin:0;padding:26px 24px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#preview-chat .chat-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;box-sizing:border-box;margin:0;padding:24px 0;background:none;text-align:center}
.chat-welcome-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#e8f3ee;color:#126d58;font-size:34px}
#preview-chat .chat-welcome h3{font-size:23px;color:#1d3832;margin:20px 0 8px}
#preview-chat .chat-welcome>p{font-size:14px;margin:0;color:#6b7d88}
#preview-chat .chat-suggestions{display:grid;gap:10px;width:min(100%,390px);margin:24px 0 0}
#preview-chat .chat-suggestions button{font-size:14px;text-align:left;border-radius:14px;padding:13px 16px;background:#fafcfb;color:#31554a;border:1px solid #dce7e0;line-height:1.5}
#preview-chat .chat-suggestions button:hover{background:#edf6f1;border-color:#a2c5b4}
#preview-chat .preview-message{max-width:100%;margin:0 0 26px}
#preview-chat .preview-message>small{font-size:12px;color:#618075;margin:0 0 7px}
#preview-chat .preview-message p{background:none;padding:0;border-radius:0;font-size:16px;line-height:1.85;color:#243c35}
#preview-chat .preview-message.user{max-width:85%;width:fit-content;margin-left:auto}
#preview-chat .preview-message.user>small{text-align:right}
#preview-chat .preview-message.user p{padding:12px 17px;background:#eaf2ee;border-radius:20px 20px 5px 20px}
#preview-chat .chat-thinking p{color:#789087}
.chat-composer{flex:none;padding:12px 20px max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #edf2ef}
#preview-chat-form{align-items:flex-end;gap:10px;padding:8px 9px 8px 15px;border:1px solid #c7d8d0;background:#f7faf8;border-radius:24px;box-shadow:0 3px 12px #17463408}
#preview-chat-form:focus-within{border-color:#4c9c82;box-shadow:0 0 0 3px #126d5810}
#chat-question{box-sizing:border-box;width:100%;min-height:42px;max-height:140px;resize:none;overflow:auto;border:0;outline:none;background:transparent;padding:9px 0;font-family:inherit;font-size:16px;line-height:1.5}
#preview-chat-form button{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border-radius:50%;background:#126d58;color:#fff}
.chat-composer>p{font-size:11px;line-height:1.5;color:#7d8c85;text-align:center;margin:8px 0 0}
@media(max-width:640px){#preview-chat{inset:var(--chat-top,0px) 0 auto;width:100%;height:var(--chat-height,100dvh);border:0;border-radius:0}.chat-header{padding:12px 16px}.chat-header>p{font-size:11px}#chat-title{font-size:16px}#preview-chat #chat-log{padding:22px 18px}.chat-composer{padding-left:12px;padding-right:12px}#preview-chat .chat-welcome h3{font-size:21px}}
#preview-chat .chat-answer{font-size:16px;line-height:1.7;overflow-wrap:anywhere;color:#243c35}
#preview-chat .chat-answer p{font-size:16px;line-height:1.7;margin:0 0 10px}
#preview-chat .chat-answer p:last-child{margin-bottom:0}
#preview-chat .chat-answer strong{font-weight:500;color:#106e55;background:#edf6f1;border-radius:5px;padding:0 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
#preview-chat .chat-answer mark{color:#65470e;background:#fff0bc;border-radius:5px;padding:1px 5px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.chat-underline{text-decoration:underline;text-decoration-color:#58a990;text-decoration-thickness:2px;text-underline-offset:4px}
#preview-chat .chat-answer-heading{font-size:16px;font-weight:500;color:#126d58;margin:18px 0 10px;padding-left:10px;border-left:3px solid #70b79b}
#preview-chat .chat-answer-heading:first-child{margin-top:0}
.chat-answer-list{margin:8px 0 14px;padding-left:24px}.chat-answer-list li{margin:7px 0;padding-left:3px}.chat-answer-list li::marker{color:#268a69}
.chat-answer-quote{margin:14px 0 0;padding:12px 15px;border-left:3px solid #e6b85a;border-radius:0 12px 12px 0;background:#fff8e9;color:#796b4c;font-size:14px;line-height:1.65}
.chat-answer code{background:#eff3f1;padding:1px 5px;border-radius:5px;font-size:14px}
.chat-text-chart{box-sizing:border-box;max-width:100%;overflow:auto;background:#f3f7f5;border:1px solid #d9e8df;border-radius:12px;padding:14px;font:13px/1.6 ui-monospace,monospace;white-space:pre;tab-size:2}
.chat-table-wrap{max-width:100%;margin:12px 0;border:1px solid #d6e5de;border-radius:12px;overflow:auto}
#preview-chat .chat-answer-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}
.chat-answer-table th,.chat-answer-table td{padding:9px 10px;text-align:left;border-bottom:1px solid #e6eee9;overflow-wrap:anywhere}
.chat-answer-table th{background:#eaf4ee;color:#126d58;font-weight:500}.chat-answer-table tr:last-child td{border-bottom:0}
.chat-answer hr{border:0;border-top:1px solid #e2ebe5;margin:16px 0}

.chat-answer-summary{border:1px solid #a5cec0;border-left:4px solid #148169;border-radius:12px;background:#edf7f2;color:#164e43;font-size:16px;padding:14px 16px}.chat-answer-summary strong{background:transparent;color:inherit;padding:0}
.chat-retry{margin-top:12px;border:1px solid #c7d8d0;border-radius:12px;background:#f7faf8;color:#126d58;padding:9px 13px;font:inherit;font-size:14px;cursor:pointer}
