/* AI page only: navy and slate surfaces, silver type, restrained cyan emphasis.
   All text, score choices and team imagery come from the existing renderer. */
body[data-match-page="analysis"] {
  --reference-silver: #e3edf4;
  --reference-cyan: #99cdd3;
  --reference-slate: #273b50;
  background-color: #080f19;
  background-image: radial-gradient(ellipse at 0 7%, #23465c28, transparent 37%),
    radial-gradient(ellipse at 100% 37%, #2944581c, transparent 42%),
    linear-gradient(180deg, #0c1725, #080f19 950px);
}
body[data-match-page="analysis"] .today-shell { padding-top: 25px; }
body[data-match-page="analysis"] .today-heading { justify-content: center; margin-bottom: 16px; }
body[data-match-page="analysis"] .today-title { justify-content: center; text-align: center; }
body[data-match-page="analysis"] .today-title h1 {
  color: #edf3f7;
  font-family: var(--font-display);
  font-size: clamp(35px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.12;
  text-shadow: 0 2px 12px #02070d66;
}
body[data-match-page="analysis"] .schedule-filterbar { margin: 0 0 18px; }
body[data-match-page="analysis"] .match-selector > span { color: #9eb0c1; }
body[data-match-page="analysis"] .match-selector select {
  min-height: 45px;
  border-color: #40556a;
  background-color: #132233;
  box-shadow: inset 2px 0 #8fbcc4, inset 0 1px #d0e8ff0c;
}
body[data-match-page="analysis"] .today-detail { gap: 17px; }
body[data-match-page="analysis"] .today-detail-match {
  padding-top: 16px;
  padding-bottom: 17px;
  border-color: #7490a352;
  border-radius: 15px;
  box-shadow: inset 0 1px #d6ecff26, 0 12px 28px #01081166;
}
body[data-match-page="analysis"] .detail-match-top { min-height: 39px; }
body[data-match-page="analysis"] .detail-match-top > div > span { font-size: 21px; }
body[data-match-page="analysis"] .detail-versus { margin-top: 12px; margin-bottom: 10px; }
body[data-match-page="analysis"] .detail-team .team-crest { width: 94px; height: 94px; flex-basis: 94px; }
body[data-match-page="analysis"] .detail-team h2 { font-size: clamp(23px, 2.7vw, 31px); }
body[data-match-page="analysis"] .detail-kickoff { margin-top: 10px; }
body[data-match-page="analysis"] .detail-vs-text { color: #e1eaf1; text-shadow: 1px 2px #1e3448, 0 0 20px #aac7df22; }

/* The saved prediction is immediately legible; the report button remains real. */
body[data-match-page="analysis"] .today-ai {
  padding: 22px;
  border: 1px solid #738da338;
  border-radius: 15px;
  background: linear-gradient(125deg, #142336, #101d2e 48%, #101b2a);
  box-shadow: inset 0 1px #c6d9e51c, 0 12px 30px #00070e50;
}
body[data-match-page="analysis"] .ai-heading { margin-bottom: 17px; }
body[data-match-page="analysis"] .ai-heading h2 { font-size: 28px; color: #e9f1f6; }
body[data-match-page="analysis"] .ai-heading-title > svg {
  border-color: #7399aa66;
  background: linear-gradient(135deg, #28485c, #1b3247);
  color: #bddee5;
  box-shadow: inset 0 1px #d8ebf126;
}
body[data-match-page="analysis"] .ai-launch:not(:disabled) {
  min-height: 72px;
  padding: 14px 48px;
  border: 1px solid #789ea980;
  border-radius: 10px;
  background: linear-gradient(110deg, #173344, #214555 51%, #172f41);
  color: #e5f1f5;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .025em;
  box-shadow: inset 0 1px #d1eef336, inset 0 -2px #091b2b80,
    0 7px 20px #020a1266, 0 0 20px #8ecbd310;
  transition: background-color .18s ease, box-shadow .18s ease;
}
body[data-match-page="analysis"] .ai-launch:hover:not(:disabled) {
  background: linear-gradient(110deg, #1d4050, #2a5060 51%, #1c3a4b);
  box-shadow: inset 0 1px #d8f2f347, inset 0 -2px #10273680, 0 7px 24px #7bbcc51c;
}
body[data-match-page="analysis"] .ai-launch:not(:disabled) .ai-launch-orb {
  color: #c0e4e9;
  border-color: #8ab3bf80;
  background: #173041;
  box-shadow: 0 0 0 4px #b8d8e00b;
}
body[data-match-page="analysis"] .ai-launch:not(:disabled) .ai-launch-expand { color: #b1cbd5; }
body[data-match-page="analysis"] .ai-launch:not(:disabled) .ai-launch-wave { opacity: .14; }
body[data-match-page="analysis"] .ai-launch:not(:disabled) .ai-launch-aura { opacity: .1; }
body[data-match-page="analysis"] .ai-launch-again:not(:disabled) { min-height: 49px; font-size: 15px; }
body[data-match-page="analysis"] .ai-conclusion-preview { margin-bottom: 18px; }
body[data-match-page="analysis"] .ai-conclusion-preview .analysis-conclusions {
  padding: 18px;
  border: 0;
  border-radius: 11px;
  background: #0c1826;
  box-shadow: none;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-heading { margin-bottom: 13px; }
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-heading h3 {
  color: #e0eaf1;
  font-size: 24px;
  line-height: 1.3;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-match-result {
  gap: 11px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary {
  padding: 15px 20px;
  border: 1px solid #7c95a824;
  border-radius: 9px;
  background: #172638;
  box-shadow: none;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary.primary:is(.available, .single) {
  border-color: #8eb8c444;
  background: radial-gradient(ellipse at 0 50%, #508d9820, transparent 75%), #182d3e;
  box-shadow: inset 3px 0 #8abfc7, 0 0 18px #8ac8d00a;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary.primary:is(.available, .single) h4,
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary.primary:is(.available, .single) > small {
  color: #adc8d2;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary.primary:is(.available, .single) > strong {
  color: #edf7fa;
  text-shadow: 0 2px #0b1e2d;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary.secondary {
  padding: 15px 20px;
  border: 1px solid #7e96ac24;
  background: #192839;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary.secondary h4 { color: #aabacb; }
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary.secondary > strong {
  color: #c4d4df;
  text-shadow: 0 2px #101e2c;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary h4 { margin-bottom: 6px; font-size: 13px; }
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary > strong { font-size: 46px; line-height: 1.1; }
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary > small { margin-top: 8px; font-size: 11px; color: #aabccc; }
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary:is(.empty, .invalid, .missing, .legacy) {
  border-color: #61788d26;
  background: #162331;
  box-shadow: none;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary:is(.empty, .invalid, .missing, .legacy) > strong {
  color: #a4b4c3;
  font-size: 24px;
  line-height: 1.5;
  text-shadow: none;
}

/* Reorder only the rendered real markets: two score cards, then compact totals. */
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-markets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #6f899d1c;
  border-radius: 8px;
  background: #142232;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market h4 {
  flex: 0 0 auto;
  margin: 0;
  color: #bacbd8;
  font-size: 13px;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market h4 > small { color: #91a6b8; }
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: auto;
  gap: 18px;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choice { min-width: 0; gap: 4px; }
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choice > small { color: #91a9bc; font-size: 10px; }
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choice > strong {
  color: #e1ebf2;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] {
  order: -1;
  grid-column: 1 / -1;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] h4 {
  margin: 0 0 9px;
  color: #c8d8e4;
  font-size: 15px;
}
body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choices { width: 100%; gap: 11px; }
body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 22px;
  border: 1px solid #819cb22b;
  border-radius: 9px;
  background: linear-gradient(130deg, #223448, #1a2a3c 70%);
  box-shadow: inset 0 1px #d6e5ef10;
}
body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice:first-child {
  border-color: #9bbdc342;
  background: linear-gradient(125deg, #263d4e, #1d3142 72%);
  box-shadow: inset 2px 0 #8ab7c1;
}
body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice > small { color: #afc0cf; font-size: 13px; }
body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice > strong {
  color: #d2e0e9;
  font-family: var(--font-numeric);
  font-size: 45px;
  letter-spacing: .025em;
  line-height: 1;
  text-shadow: 0 2px #152432;
}
body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice:first-child > strong { color: #bce2e7; }
body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"]:not(.available) {
  padding: 13px 14px;
  border: 1px solid #6f899d1c;
  border-radius: 8px;
  background: #142232;
}
body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-unavailable { color: #a9bac9; font-size: 14px; }
body[data-match-page="analysis"] .today-ai > .analysis-conclusions { border-color: #6f899d33; background: #102031; }
body[data-match-page="analysis"] .today-ai > .analysis-conclusions .conclusion-primary.primary:is(.available, .single) > strong { color: #d7eff3; }

@media (min-width: 960px) {
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-markets {
    grid-template-columns: minmax(0, 2.1fr) repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] { grid-column: auto; }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice { padding: 13px 16px; gap: 10px; }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice > strong { font-size: 39px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market:not([data-conclusion="crs"]) {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
  }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market:not([data-conclusion="crs"]) h4 { flex-basis: auto; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market h4 > small { display: inline; margin-left: 5px; }
}
@media (max-width: 760px) {
  body[data-match-page="analysis"] .today-shell { padding-top: 22px; }
  body[data-match-page="analysis"] .today-title h1 { font-size: 39px; }
  body[data-match-page="analysis"] .today-ai { padding: 19px 16px; }
  body[data-match-page="analysis"] .ai-heading h2 { font-size: 25px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .analysis-conclusions { padding: 16px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary,
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary.secondary { padding: 14px 16px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary > strong { font-size: 42px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market { padding: 12px; gap: 8px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choices { gap: 12px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choice > strong { font-size: 22px; }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice { padding: 14px 17px; }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice > strong { font-size: 41px; }
  body[data-match-page="analysis"] .ai-launch:not(:disabled) { min-height: 66px; font-size: 22px; }
  body[data-match-page="analysis"] .ai-launch-again:not(:disabled) { min-height: 49px; font-size: 14px; }
}
@media (max-width: 600px) {
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market:not([data-conclusion="crs"]) {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market:not([data-conclusion="crs"]) h4 { flex-basis: auto; padding-top: 0; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market h4 > small { display: inline; margin-left: 6px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choice > strong { font-size: 21px; }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 16px;
  }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice > strong { align-self: center; font-size: 42px; }
}
@media (max-width: 420px) {
  body[data-match-page="analysis"] .today-title h1 { font-size: 35px; letter-spacing: 0; }
  body[data-match-page="analysis"] .today-heading { margin-bottom: 14px; }
  body[data-match-page="analysis"] .match-selector { gap: 8px; }
  body[data-match-page="analysis"] .match-selector > span { font-size: 11px; }
  body[data-match-page="analysis"] .match-selector select { font-size: 12px; }
  body[data-match-page="analysis"] .detail-match-top > div > span { font-size: 17px; }
  body[data-match-page="analysis"] .detail-team .team-crest { width: 80px; height: 80px; flex-basis: 80px; }
  body[data-match-page="analysis"] .detail-team h2 { font-size: 22px; }
  body[data-match-page="analysis"] .today-ai { padding: 17px 11px; }
  body[data-match-page="analysis"] .ai-heading h2 { font-size: 23px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .analysis-conclusions { padding: 13px 10px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-heading h3 { font-size: 22px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-match-result { gap: 8px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary,
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary.secondary { padding: 13px 11px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary > strong { font-size: 37px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary > small { font-size: 10px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary:is(.empty, .invalid, .missing, .legacy) > strong { font-size: 18px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-markets { gap: 8px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market { padding: 11px 9px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market h4 { font-size: 12px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market h4 > small { display: block; margin-left: 0; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choices { gap: 7px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choice > strong { font-size: 19px; }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice { padding: 12px; }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice > strong { font-size: 36px; }
  body[data-match-page="analysis"] .ai-launch:not(:disabled) { padding-right: 31px; padding-left: 31px; gap: 11px; font-size: 20px; }
  body[data-match-page="analysis"] .ai-launch-again:not(:disabled) { font-size: 13px; }
}
@media (max-width: 350px) {
  body[data-match-page="analysis"] .today-title h1 { font-size: 32px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-choice > strong { font-size: 17px; }
  body[data-match-page="analysis"] .ai-conclusion-preview [data-conclusion="crs"] .conclusion-choice > strong { font-size: 30px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-primary > strong { font-size: 34px; }
  body[data-match-page="analysis"] .ai-conclusion-preview .conclusion-market h4 > small { font-size: 9px; }
  body[data-match-page="analysis"] .ai-launch:not(:disabled) { padding-right: 27px; padding-left: 27px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-match-page="analysis"] .ai-launch,
  body[data-match-page="analysis"] .ai-launch::before,
  body[data-match-page="analysis"] .ai-launch::after,
  body[data-match-page="analysis"] .ai-launch * { animation: none !important; transition: none !important; }
}
