/* Match dashboard uses only existing center/model data. Never fabricate fallback metrics. */
#mobile-detail .gs-match-identity { padding: 12px 10px 6px; margin: 0 0 12px; border: 1px solid #2d84b2; border-radius: 18px; background: radial-gradient(ellipse at 0 0,#147fbe40,transparent 55%),radial-gradient(ellipse at 100% 0,#147fbe40,transparent 55%),#081a2d; }
#mobile-detail .gs-match-identity .detail-hero { background: transparent; padding: 10px 2px; }
#mobile-detail .gs-match-identity .detail-meta { margin: 7px 0; }
#mobile-detail .gs-match-identity .detail-match-clock { padding: 5px 10px; font-size: 12px; }
#mobile-detail .gs-match-identity.compact { padding: 8px 10px 3px; }
#mobile-detail .gs-match-identity.compact .detail-hero .crest { width: 38px; height: 38px; min-width: 38px; }
#mobile-detail .gs-match-identity.compact .detail-team { font-size: 11px; }
#mobile-detail .gs-match-identity.compact .detail-meta { font-size: 10px; }
.gs-detail-kpis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
#mobile-detail .gs-insight-card { display: block; min-width: 0; padding: 12px; border: 1px solid #315676; border-radius: 16px; color: #edf7ff; background: linear-gradient(145deg,#10273f,#0a1726); text-align: start; font: inherit; cursor: pointer; }
#mobile-detail .gs-insight-card:first-child { grid-column: 1/-1; }
.gs-insight-title { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #e7f7ff; margin-bottom: 11px; }
.gs-insight-title > span { color: #71ddff; font-size: 18px; }
.gs-insight-card small { display: block; font-size: 10px; color: #b2c2d2; line-height: 1.5; margin-top: 10px; }
.gs-form-line { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin: 9px 0; }
.gs-form-line > strong { font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.gs-form-chips { display: flex; gap: 4px; flex: none; }
.gs-form-chip { display: inline-grid; place-items: center; min-width: 23px; height: 26px; border-radius: 6px; font-size: 12px; font-weight: 800; border: 1px solid transparent; }
.gs-form-chip.win { color: #c3ffdb; background: #12683d; border-color: #49d38b; }
.gs-form-chip.draw { color: #fff0c7; background: #745712; border-color: #caaa50; }
.gs-form-chip.loss { color: #ffe0e3; background: #8b2637; border-color: #e47b8c; }
.gs-h2h-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; text-align: center; font-size: 10px; }
.gs-h2h-values > span { overflow-wrap: anywhere; }
.gs-h2h-values b { display: block; margin: 5px 0 8px; color: #72dfff; font-size: 23px; font-variant-numeric: tabular-nums; }
.gs-average-line + .gs-average-line { margin-top: 13px; border-top: 1px solid #29445d; padding-top: 10px; }
.gs-average-line strong { display: block; font-size: 11px; overflow-wrap: anywhere; margin-bottom: 6px; }
.gs-average-line > span { display: block; font-size: 10px; color: #b2c2d2; line-height: 1.7; }
.gs-average-line b { color: #78e2ff; font-size: 16px; }
.gs-data-missing { color: #b2c2d2; font-size: 10px; line-height: 1.4; max-width: 130px; }
#mobile-detail .gs-all-stats { min-height: 44px; padding: 9px 12px; width: 100%; margin-top: 8px; background: #0c2a43; border: 1px solid #3b7193; border-radius: 10px; color: #8be8ff; font: inherit; font-size: 12px; cursor: pointer; }
#mobile-detail .gs-match-information { border: 1px solid #29445d; border-radius: 14px; padding: 0 12px; margin-bottom: 12px; background: #0b1726; }
.gs-match-information > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 12px; color: #b2c2d2; }
.gs-probability-chart { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; padding: 12px 8px 18px; border-bottom: 1px solid #29445d; margin-bottom: 10px; }
.gs-probability-column { min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: 8px; color: #bfcede; font-size: 12px; }
.gs-probability-column strong { color: #f3f7fc; font-size: 21px; font-variant-numeric: tabular-nums; }
.gs-probability-track { display: flex; align-items: flex-end; height: 95px; background: #081421; border-radius: 10px; overflow: hidden; }
.gs-probability-track i { display: block; width: 100%; min-height: 0; border-radius: 8px 8px 0 0; background: linear-gradient(#48dfff,#087fce); }
.gs-probability-column:nth-child(2) .gs-probability-track i { background: linear-gradient(#b3c6d9,#526d86); }
.gs-probability-column:nth-child(3) .gs-probability-track i { background: linear-gradient(#79ecbd,#258e69); }
@media(max-width:350px){.gs-detail-kpis{grid-template-columns:1fr}.gs-form-line{align-items:flex-start}.gs-form-chips{gap:3px}.gs-form-chip{min-width:21px}.gs-probability-chart{gap:10px}.gs-probability-column strong{font-size:18px}}
@media(forced-colors:active){.gs-form-chip,.gs-probability-track{border:1px solid CanvasText}.gs-probability-track i{background:Highlight}}

/* Keep long statistic labels away from the two values at every mobile width. */
#mobile-detail .detail-progress { grid-template-columns: 44px minmax(0,1fr) 44px; column-gap: 10px; align-items: center; }
#mobile-detail .detail-progress > b:first-child { grid-column: 1; grid-row: 1; }
#mobile-detail .detail-progress > b:nth-of-type(2) { grid-column: 3; grid-row: 1; }
#mobile-detail .detail-progress > span:not(.gs-stat-bar) { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; text-align: center; overflow-wrap: anywhere; line-height: 1.5; }
#mobile-detail .gs-insight-card { align-content: start; }
.gs-h2h-values > span { overflow-wrap: normal; word-break: normal; font-size: 10px; }

/* Narrow phones keep full tab names and match titles readable, without smaller touch targets. */
@media (max-width: 360px) {
  #mobile-detail .match-main-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #mobile-detail .match-main-tabs button { white-space: normal; overflow-wrap: anywhere; }
  #mobile-detail .detail-head { flex-wrap: wrap; }
  #mobile-detail .detail-head strong { order: -1; flex: 0 0 100%; }
}


/* Reference-led composition: decorative stadium, compact identity and visible data graphics. */
#mobile-detail { background: #020b16; }
#mobile-detail .gs-match-identity { display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;padding:10px 12px;margin-bottom:10px; }
#mobile-detail .gs-match-identity .detail-hero { grid-column:1/-1;padding:4px 0 2px;gap:10px; }
#mobile-detail .gs-match-identity .detail-team { font-size:12px;line-height:1.3;gap:5px; }
#mobile-detail .gs-match-identity .detail-hero .crest { width:44px;height:44px;min-width:44px;filter:drop-shadow(0 3px 8px #000a); }
#mobile-detail .gs-match-identity .detail-score { font-size:28px;text-shadow:0 0 15px #16bcff66; }
#mobile-detail .gs-match-identity .detail-clock-row { margin:5px 0;min-height:0;justify-content:flex-start;align-items:center; }
#mobile-detail .gs-match-identity .detail-match-clock { padding:4px 7px;font-size:11px;border-radius:7px; }
#mobile-detail .gs-match-identity .detail-meta { font-size:10px;line-height:1.45;align-self:center;text-align:right;margin:5px 0;color:#d9e9f5; }
#mobile-detail .detail-box,#mobile-detail .gs-insight-card,#mobile-detail .gs-goal-history { background:linear-gradient(145deg,#0a2139 0%,#06111f 65%);border-color:#1b608a;box-shadow:inset 0 1px 0 #82cfff22; }
#mobile-detail .detail-tabs button[aria-pressed="true"] { background:linear-gradient(#0871c7,#075ca9);border-color:#54e1ff;box-shadow:0 0 12px #00bfff55,inset 0 1px 1px #cffcff99;color:#fff; }
#mobile-detail .gs-detail-kpis { gap:8px;margin-bottom:8px; }
#mobile-detail .gs-insight-card { padding:10px;border-radius:12px; }
#mobile-detail .gs-insight-title { font-size:12px;margin-bottom:7px; }
#mobile-detail .gs-form-line { margin:6px 0; }
#mobile-detail .gs-form-line > strong {font-size:11px;}
#mobile-detail .gs-insight-card small {font-size:10px;margin-top:6px;}
#mobile-detail .gs-form-chip {min-width:22px;height:24px;box-shadow:inset 0 1px 1px #ffffff30;}
#mobile-detail .gs-form-chip.win {background:linear-gradient(#087541,#054d2a);color:white;}
#mobile-detail .gs-form-chip.draw {background:linear-gradient(#80620f,#523b06);color:white;}
#mobile-detail .gs-form-chip.loss {background:linear-gradient(#b82945,#7a1428);color:white;}
#mobile-detail .gs-h2h-values b {font-size:22px;margin:3px 0 5px;}
.gs-h2h-bar {height:7px;display:flex;border-radius:8px;overflow:hidden;background:#132b3e;margin-top:10px;}
.gs-h2h-bar i {background:#06d87f;} .gs-h2h-bar i:nth-child(2){background:#9baec0;} .gs-h2h-bar i:nth-child(3){background:#0cb8f2;}
#mobile-detail .gs-average-line + .gs-average-line {margin-top:7px;padding-top:7px;}
#mobile-detail .gs-average-line strong {font-size:10px;margin-bottom:3px;}
#mobile-detail .gs-average-line b {font-size:18px;}
.gs-analysis-link {display:flex;justify-content:space-between;align-items:center;width:100%;min-height:52px;padding:9px 12px;margin:0 0 8px;border:1px solid #13bbf1;border-radius:12px;background:linear-gradient(110deg,#075086,#05233c);color:#ecfbff;text-align:left;cursor:pointer;box-shadow:inset 0 1px 0 #7ce6ff33;}
.gs-analysis-link strong{display:block;font-size:13px;}.gs-analysis-link small{display:block;color:#b8ddef;font-size:10px;margin-top:3px;}.gs-analysis-link>span:last-child{font-size:25px;color:#53ddff;}
#mobile-detail .gs-goal-history {border:1px solid #1b608a;border-radius:12px;padding:10px;margin:0 0 8px;}
.gs-goal-history h3{font-size:12px;margin:0 0 8px;}.gs-goal-history>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.gs-goal-series{min-width:0;}.gs-goal-series strong{display:block;font-size:10px;overflow-wrap:anywhere;}.gs-goal-series small{display:block;font-size:9px;line-height:1.4;color:#aebfd1;}.gs-goal-sparkline{display:block;width:100%;height:76px;overflow:visible;}
.gs-goal-sparkline .gs-chart-grid{fill:none;stroke:#1b3851;stroke-width:.7}.gs-goal-sparkline polyline{fill:none;stroke:#16c9ff;stroke-width:2.3;stroke-linejoin:round;filter:drop-shadow(0 0 3px #03b5ff88)}.gs-goal-sparkline circle{fill:#81e9ff;stroke:#02a5e1;stroke-width:1}.gs-goal-sparkline text{fill:#effaff;font:9px sans-serif;}
.gs-probability-visual {display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:center;}
.gs-probability-visual:not(:has(.gs-probability-donut)){grid-template-columns:1fr;}
.gs-probability-donut {width:90px;aspect-ratio:1;border-radius:50%;background:conic-gradient(#00e18b 0 var(--gs-home),#90abc3 var(--gs-home) var(--gs-draw),#00b9fb var(--gs-draw) 100%);display:grid;place-items:center;box-shadow:0 0 15px #00cfff22;}
.gs-probability-donut>span {display:grid;place-items:center;background:#06111f;border:1px solid #244461;width:62px;aspect-ratio:1;border-radius:50%;color:#d9f6ff;font-size:16px;font-weight:800;}
.gs-probability-visual .gs-probability-chart{gap:7px;padding:8px 0 10px;border:0;margin:0;}.gs-probability-visual .gs-probability-column{font-size:10px;gap:5px;}.gs-probability-visual .gs-probability-column strong{font-size:16px;}.gs-probability-visual .gs-probability-track{height:65px;border-radius:6px;}.gs-probability-visual .gs-probability-track i{border-radius:5px 5px 0 0;}
.gs-probability-visual .gs-probability-column:first-child .gs-probability-track i{background:linear-gradient(#37f6af,#00a55e)}.gs-probability-visual .gs-probability-column:last-child .gs-probability-track i{background:linear-gradient(#56deff,#0084d0)}
.gs-signal-panel{padding:11px 12px;border:1px solid #00a96c;border-radius:13px;margin-bottom:10px;background:linear-gradient(105deg,#082d29,#061723);box-shadow:inset 0 1px 0 #48f9a633,0 0 12px #00bc6a12;}
.gs-signal-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;font-weight:800;}.gs-signal-heading strong{font-size:23px;color:#51ff9e;}.gs-signal-heading strong small{font-size:12px;color:#d6ffeb;}
.gs-signal-track{height:9px;overflow:hidden;border-radius:10px;background:#13352f;margin:8px 0;}.gs-signal-track i{height:100%;display:block;background:repeating-linear-gradient(120deg,transparent 0 13px,#09241666 13px 15px),linear-gradient(90deg,#00c979,#8af632);box-shadow:0 0 10px #59ff55;}
.gs-signal-panel p{font-size:12px;margin:5px 0;}.gs-signal-panel>small{font-size:10px;color:#bad1c9;}
#mobile-detail .detail-progress{padding:7px 0;}.gs-stat-bar{box-shadow:0 0 5px #01baff33;}
@media(max-width:350px){#mobile-detail .gs-detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}.gs-probability-visual{grid-template-columns:72px minmax(0,1fr);gap:8px;}.gs-probability-donut{width:72px}.gs-probability-donut>span{width:49px;font-size:13px}.gs-probability-visual .gs-probability-column strong{font-size:13px}.gs-probability-visual .gs-probability-column{font-size:9px}}
@media(forced-colors:active){.gs-probability-donut{display:none}.gs-probability-visual{grid-template-columns:1fr}.gs-signal-panel,.gs-goal-history,.gs-analysis-link{border:1px solid CanvasText}.gs-goal-sparkline polyline,.gs-goal-sparkline circle{stroke:CanvasText}.gs-goal-sparkline text{fill:CanvasText}.gs-h2h-bar{display:none}}

.gs-market-bar{height:5px;background:#132a3e;border-radius:5px;overflow:hidden;margin:-1px 0 6px;}.gs-market-bar i{display:block;height:100%;background:linear-gradient(90deg,#007bc7,#26d4ff);border-radius:5px;}

/* V3: a four-card overview, with actual model graphics only after the same gate. */
#mobile-detail .detail-head { background:#071422;border-bottom:1px solid #16334b;padding:8px;gap:7px; }
#mobile-detail .detail-head strong { font-size:12px;font-weight:700; }
#mobile-detail .detail-tabs { background:#04101c;gap:5px;padding:8px;border-color:#1c3d57; }
#mobile-detail .detail-content { padding:10px 9px calc(22px + env(safe-area-inset-bottom)); }
#mobile-detail .gs-match-identity { min-height:136px;padding:12px 10px 7px;background:linear-gradient(#030c1870,#030c1833 40%,#030c18c9),url('/app-static/premium-stadium.svg') center/cover; }
#mobile-detail .gs-match-identity .detail-hero .crest { width:48px;height:48px;min-width:48px; }
#mobile-detail .gs-match-identity .detail-team { font-size:12px; }
#mobile-detail .gs-match-identity .detail-score { font-size:27px; }
#mobile-detail .gs-match-identity.compact { min-height:112px; }
#mobile-detail .gs-detail-kpis { gap:8px;align-items:stretch; }
#mobile-detail .gs-detail-kpis:has(.gs-overview-probabilities)>.gs-insight-card:first-child { grid-column:auto; }
#mobile-detail .gs-insight-card { padding:10px;border-radius:13px;background:radial-gradient(ellipse at 80% 0,#0b395b66,transparent 80%),linear-gradient(135deg,#091c2c,#040f1c);border:1px solid #23628b;box-shadow:inset 0 1px 0 #9ddcff2a;min-height:44px; }
#mobile-detail .gs-insight-title { font-size:12px;line-height:1.35;align-items:start;gap:4px;margin-bottom:9px; }
#mobile-detail .gs-insight-title>span { font-size:17px;line-height:1; }
#mobile-detail .gs-detail-kpis:has(.gs-overview-probabilities) .gs-form-line { display:block;margin:8px 0; }
#mobile-detail .gs-detail-kpis:has(.gs-overview-probabilities) .gs-form-line>strong { display:block;font-size:10px;line-height:1.35;margin-bottom:5px; }
#mobile-detail .gs-form-chip { min-width:21px;height:24px;font-size:11px;border-radius:6px; }
#mobile-detail .gs-insight-card small { font-size:10px;line-height:1.5;color:#bdcddd; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual { grid-template-columns:1fr;justify-items:center;gap:8px; }
#mobile-detail .gs-overview-probabilities .gs-probability-donut { width:78px; }
#mobile-detail .gs-overview-probabilities .gs-probability-donut>span { width:53px;font-size:13px; }
#mobile-detail .gs-overview-probabilities .gs-probability-chart { display:grid;grid-template-columns:1fr;width:100%;padding:0;gap:5px; }
#mobile-detail .gs-overview-probabilities .gs-probability-column { display:grid;grid-template-columns:1fr auto;gap:3px;align-items:center;text-align:left;font-size:10px; }
#mobile-detail .gs-overview-probabilities .gs-probability-column>strong { grid-column:2;grid-row:1;font-size:13px;color:#f5faff; }
#mobile-detail .gs-overview-probabilities .gs-probability-column>span:last-child { grid-column:1;grid-row:1;color:#d0e2f0; }
#mobile-detail .gs-overview-probabilities .gs-probability-track { display:none; }
.gs-analysis-empty { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:103px;color:#b6d6e9;font-size:11px;line-height:1.5;text-align:center; }
.gs-analysis-symbol { width:43px;height:43px;color:#3ddaff;filter:drop-shadow(0 0 9px #05afff40); }
.gs-overview-signal { display:flex;flex-wrap:wrap;gap:5px;justify-content:space-between;border:1px solid #24825d;background:#063725;color:#c5ffde;border-radius:7px;padding:6px;margin-top:9px;font-size:10px; }
.gs-overview-signal>b { color:#7bffb1; }
#mobile-detail .gs-average-line>span { display:grid;grid-template-columns:auto 1fr;gap:2px 4px;line-height:1.6; }
#mobile-detail .gs-average-line b { font-size:19px; }
#mobile-detail .gs-average-line strong { font-size:10px;line-height:1.4; }
#mobile-detail .gs-h2h-values { gap:3px; }
#mobile-detail .gs-h2h-values b { font-size:25px;margin:10px 0 7px; }
#mobile-detail .gs-h2h-values>span { font-size:9px;overflow-wrap:anywhere; }
#mobile-detail .gs-h2h-bar { margin-top:14px;height:8px; }
#mobile-detail .gs-goal-history { background:linear-gradient(145deg,#091d30,#030d18);padding:12px;border-radius:13px; }
#mobile-detail .gs-goal-history h3 { font-size:13px; }
#mobile-detail .detail-progress { padding:8px 0 17px; }
#mobile-detail .gs-stat-bar { height:6px;bottom:5px; }
#mobile-detail .gs-insight-card:focus-visible { outline:3px solid #ffe293;outline-offset:2px; }
@media(max-width:350px){
 #mobile-detail .gs-insight-card{padding:8px}#mobile-detail .gs-insight-title{font-size:11px}
 #mobile-detail .gs-detail-kpis{gap:6px}#mobile-detail .gs-form-chips{gap:3px}#mobile-detail .gs-form-chip{min-width:18px;height:22px;font-size:10px}
 #mobile-detail .gs-average-line b{font-size:17px}#mobile-detail .gs-h2h-values b{font-size:22px}
}
@media(forced-colors:active){.gs-analysis-symbol{filter:none}#mobile-detail .gs-insight-card{border:1px solid CanvasText}.gs-overview-signal{border:1px solid CanvasText}}
#mobile-detail .gs-insight-card { display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch; }
/* One distribution, not a donut and a second competing bar chart. Values stay textual. */
#mobile-detail .gs-probability-visual>.gs-probability-chart { grid-template-columns:1fr;gap:7px;padding:4px 0; }
#mobile-detail .gs-probability-visual .gs-probability-column { display:grid;grid-template-columns:1fr auto;gap:8px;text-align:left;align-items:center;font-size:12px; }
#mobile-detail .gs-probability-visual .gs-probability-column>strong { grid-column:2;grid-row:1;font-size:19px; }
#mobile-detail .gs-probability-visual .gs-probability-column>span:last-child { grid-column:1;grid-row:1; }
#mobile-detail .gs-probability-visual .gs-probability-track { display:none; }
.gs-model-details { border-top:1px solid #244059;margin-top:9px; }
.gs-model-details>summary { min-height:44px;padding:12px 0;cursor:pointer;color:#a5dcf4;font-size:11px; }
#mobile-detail .detail-box:has(.gs-probability-visual)>.detail-note { font-size:10px;padding:4px 0; }

/* The half-width overview card needs compact values, not Analysis's 19px rows.
   Zero-minimum tracks let full team labels wrap without clipping or abbreviation. */
#mobile-detail .gs-overview-probabilities .gs-probability-visual { grid-template-columns:minmax(0,1fr);min-width:0; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual>.gs-probability-chart { grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;gap:5px;padding:0; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual .gs-probability-column { grid-template-columns:minmax(0,1fr) auto;min-width:0;gap:3px;font-size:10px; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual .gs-probability-column>strong { font-size:13px;white-space:nowrap; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual .gs-probability-column>span:last-child { min-width:0;white-space:normal;overflow-wrap:anywhere; }

/* V4: real stadium texture with an ink scrim protecting all live labels. */
#mobile-detail .gs-match-identity {
 background:linear-gradient(180deg,#020b194d,#020b1959 48%,#020b19e6),url('/app-static/premium-stadium-v4.webp') center/cover;
 border-color:#247aa1;box-shadow:inset 0 1px 0 #8adaff38,0 7px 18px #0004;
}
#mobile-detail .gs-match-identity .detail-team { color:#f3faff;text-shadow:0 2px 6px #000; }
#mobile-detail .gs-match-identity .detail-meta { color:#d8e8f4;text-shadow:0 1px 4px #000; }
#mobile-detail .gs-match-identity.compact .detail-hero .crest { width:38px;height:38px;min-width:38px; }

/* Keep cards content-sized: a tall neighbor must never create a blank panel. */
#mobile-detail .gs-detail-kpis { align-items:start; }
#mobile-detail .gs-insight-card { height:auto;align-self:start;padding:10px; }
#mobile-detail .gs-insight-title { margin-bottom:7px; }
#mobile-detail .gs-detail-kpis:has(.gs-overview-probabilities) .gs-form-line { margin:5px 0; }
#mobile-detail .gs-detail-kpis:has(.gs-overview-probabilities) .gs-form-line>strong { margin-bottom:4px; }
#mobile-detail .gs-form-chips { gap:4px;flex-wrap:wrap; }
#mobile-detail .gs-form-chip { min-width:21px;height:23px; }
#mobile-detail .gs-insight-card small { line-height:1.4; }
#mobile-detail .gs-analysis-empty { min-height:80px;gap:7px;padding:4px 0; }
#mobile-detail .gs-analysis-symbol { width:34px;height:34px; }
#mobile-detail .gs-h2h-values b { margin:6px 0 5px; }
#mobile-detail .gs-h2h-values>span:first-child b { color:#68f2bb; }
#mobile-detail .gs-h2h-values>span:nth-child(2) b { color:#cfdfeb; }
#mobile-detail .gs-h2h-bar { margin-top:10px; }

/* Each average owns its value and label; no accidental grid of anonymous text. */
#mobile-detail .gs-average-line strong { margin-bottom:5px; }
.gs-average-values { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.gs-average-values>span { min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.2; }
.gs-average-values>span+span { border-left:1px solid #214258;padding-left:8px; }
#mobile-detail .gs-average-values b { font-size:21px;line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.gs-average-values>span>span { color:#b9cedd;font-size:9px;overflow-wrap:anywhere; }
#mobile-detail .gs-average-line+.gs-average-line { margin-top:9px;padding-top:8px; }

/* The legend uses the same home/draw/away colors as the measured distribution. */
#mobile-detail .gs-probability-visual .gs-probability-column>span:last-child::before { content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px;vertical-align:1px;background:#00e18b; }
#mobile-detail .gs-probability-visual .gs-probability-column:nth-child(2)>span:last-child::before { background:#90abc3; }
#mobile-detail .gs-probability-visual .gs-probability-column:nth-child(3)>span:last-child::before { background:#00b9fb; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual .gs-probability-column { gap:3px; }
#mobile-detail .gs-overview-probabilities>small { font-size:9px;line-height:1.4; }
#mobile-detail .gs-overview-signal { align-items:center; }
#mobile-detail .gs-goal-history { padding:10px 11px; }
.gs-goal-series strong { margin-bottom:4px; }
@media(max-width:350px){
 #mobile-detail .gs-insight-card{padding:8px}
 #mobile-detail .gs-form-chips{gap:3px}#mobile-detail .gs-form-chip{min-width:18px;height:22px}
 .gs-average-values{gap:5px}.gs-average-values>span+span{padding-left:5px}
 #mobile-detail .gs-average-values b{font-size:18px}.gs-average-values>span>span{font-size:9px}
}
@media(forced-colors:active){
 #mobile-detail .gs-match-identity{background:Canvas;border-color:CanvasText}
 #mobile-detail .gs-match-identity :is(.detail-team,.detail-meta){color:CanvasText;text-shadow:none}
 .gs-average-values>span+span{border-color:CanvasText}
 #mobile-detail .gs-probability-visual .gs-probability-column>span:last-child::before{background:CanvasText}
}

/* V5: authorized forecasts and public history are separate, compact families. */
#mobile-detail .gs-section-heading { margin:14px 2px 8px;font-size:12px;line-height:1.4;color:#c5dceb; }
#mobile-detail .gs-overview-forecast { margin-bottom:14px;min-width:0; }
#mobile-detail .gs-overview-probabilities { width:100%;padding:12px; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual { grid-template-columns:86px minmax(0,1fr);gap:14px;justify-items:stretch; }
#mobile-detail .gs-overview-probabilities .gs-probability-donut { width:86px; }
#mobile-detail .gs-overview-probabilities .gs-probability-donut>span { width:58px;font-size:14px; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual .gs-probability-column { gap:8px;font-size:12px; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual .gs-probability-column>strong { font-size:19px; }
#mobile-detail .gs-overview-probabilities .gs-probability-visual:not(:has(.gs-probability-donut)) { grid-template-columns:minmax(0,1fr); }
#mobile-detail .gs-overview-probabilities>small { font-size:11px;line-height:1.45; }
#mobile-detail .gs-overview-probabilities .gs-analysis-empty { flex-direction:row;justify-content:flex-start;min-height:44px;text-align:start;font-size:12px;padding:0;gap:12px; }
#mobile-detail .gs-overview-probabilities .gs-analysis-symbol { width:30px;height:30px;flex:none; }
#mobile-detail .gs-overview-signal { margin-top:10px;padding:7px 9px;font-size:12px; }
#mobile-detail .gs-overview-signal>b { font-size:17px;font-variant-numeric:tabular-nums; }
.gs-overview-markets { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px; }
#mobile-detail .gs-overview-market { width:100%;padding:10px; }
#mobile-detail .gs-overview-market:first-child { grid-column:auto; }
#mobile-detail .gs-overview-market:last-child:nth-child(odd) { grid-column:1/-1; }
#mobile-detail .gs-overview-market .detail-row { align-items:flex-start;flex-direction:column;gap:6px;padding:4px 0 8px;font-size:12px; }
#mobile-detail .gs-overview-market .detail-row b { font-size:16px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;color:#84edff; }
#mobile-detail .gs-overview-market .detail-row small { display:none; } /* Its exact title is the card heading. */
#mobile-detail .gs-overview-market>small { font-size:10px;line-height:1.5;color:#c5dceb; }
#mobile-detail .gs-overview-market-notes .detail-note { font-size:11px;line-height:1.45;padding:0;margin:6px 2px; }
#mobile-detail .gs-detail-kpis .gs-form-line>strong { font-size:12px; }
#mobile-detail .gs-detail-kpis .gs-form-line { gap:10px; }
#mobile-detail .gs-detail-kpis .gs-insight-card small { font-size:11px; }
#mobile-detail .gs-detail-kpis .gs-average-line strong { font-size:11px; }
#mobile-detail .gs-detail-kpis .gs-average-values>span>span { font-size:10px; }
#mobile-detail .gs-detail-kpis .gs-h2h-values>span { font-size:10px; }
.gs-match-shortcuts { display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px; }
.gs-match-shortcuts button { display:flex;justify-content:space-between;gap:12px;flex:1;min-width:110px;min-height:44px;padding:10px 12px;border:1px solid #2d6c91;border-radius:10px;background:#092033;color:#d8f3ff;font:inherit;font-size:12px;cursor:pointer; }
.gs-match-shortcuts button span { color:#74dcff; }
.gs-stat-teams { display:flex;justify-content:space-between;gap:16px;font-size:11px;font-weight:700;line-height:1.4;color:#c5dceb; }
.gs-stat-teams span { min-width:0;max-width:48%;overflow-wrap:anywhere; }
.gs-stat-teams span:last-child { text-align:right; }
#mobile-detail .gs-stat-bar { display:flex;grid-column:1/-1;grid-row:2;position:static;height:6px;overflow:hidden;border-radius:6px;background:#172f43;box-shadow:none; }
.gs-stat-bar i { display:block;height:100%;background:#09be88; }
.gs-stat-bar i+i { background:#16baf5; }
#mobile-detail .detail-progress:has(.gs-stat-bar) { row-gap:7px;padding-bottom:8px; }
.gs-stat-context { display:block;font-size:10px;line-height:1.5;margin-top:7px;color:#b9cfdf; }
.gs-overview-availability { margin:10px 0 12px;padding:10px 12px;border:1px dashed #2b4e68;border-radius:12px;color:#bdcede;font-size:11px;line-height:1.5; }
#mobile-detail .gs-overview-availability .gs-all-stats { margin-top:4px;background:none;padding:8px 0;text-align:start;border:0; }
.gs-analysis-market-group .gs-market-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.gs-analysis-market-group .gs-market-entry { min-width:0;padding:8px;border:1px solid #23455e;border-radius:9px;background:#061625; }
#mobile-detail .gs-analysis-market-group .gs-market-entry .detail-row { flex-direction:column;align-items:flex-start;gap:6px;padding:0 0 8px; }
#mobile-detail .gs-analysis-market-group .gs-market-entry .detail-row b { max-width:100%;white-space:normal;text-align:start;overflow-wrap:anywhere; }
#mobile-detail .gs-analysis-market-group .detail-note { font-size:11px;padding:4px 0;margin:4px 0; }
#mobile-detail .gs-analysis-market-group .gs-market-entry:last-child:nth-child(odd) { grid-column:1/-1; }
#mobile-detail :is(.gs-match-shortcuts button,.gs-all-stats):focus-visible { outline:3px solid #ffe293;outline-offset:2px; }
@media(max-width:360px){
 #mobile-detail .gs-overview-probabilities{padding:10px}
 #mobile-detail .gs-overview-probabilities .gs-probability-visual{grid-template-columns:72px minmax(0,1fr);gap:10px}
 #mobile-detail .gs-overview-probabilities .gs-probability-donut{width:72px}
 #mobile-detail .gs-overview-probabilities .gs-probability-donut>span{width:49px;font-size:13px}
 #mobile-detail .gs-overview-probabilities .gs-probability-visual .gs-probability-column{gap:5px;font-size:11px}
 #mobile-detail .gs-overview-probabilities .gs-probability-visual .gs-probability-column>strong{font-size:17px}
 #mobile-detail .gs-overview-market .gs-insight-title{font-size:12px}
 #mobile-detail .gs-overview-market{padding:9px}
 #mobile-detail .gs-detail-kpis .gs-form-line{align-items:center}
 #mobile-detail .gs-detail-kpis .gs-form-chip{min-width:21px;height:24px;font-size:11px}
 .gs-overview-markets,.gs-analysis-market-group .gs-market-list{gap:6px}
}
@media(forced-colors:active){
 .gs-stat-bar{border:1px solid CanvasText}.gs-stat-bar i{background:Highlight}.gs-stat-bar i+i{background:CanvasText}
 #mobile-detail .gs-overview-probabilities .gs-probability-visual{grid-template-columns:minmax(0,1fr)}
 .gs-match-shortcuts button,.gs-overview-availability,.gs-analysis-market-group .gs-market-entry{border-color:CanvasText}
}

/* V5.1: compact localized H2H labels keep whole words; full club names remain in title. */
#mobile-detail .gs-detail-kpis .gs-h2h-values { grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr); }
#mobile-detail .gs-detail-kpis .gs-h2h-label { display:block;white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:10px;line-height:1.4; }
