:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18362b;
  background: #f5f4ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --green: #173d30;
  --green-2: #2e604b;
  --muted: #78877d;
  --line: #e4e6dc;
  --paper: #fffefa;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f4ed; }
a { color: inherit; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 0 38px; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(32, 66, 49, .11); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--green); color: #f5f4ed; font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.brand-name { font-weight: 750; letter-spacing: -.04em; font-size: 17px; }
.brand-name span { color: #708376; font-weight: 500; margin-left: 4px; }
.docs-link { color: #526b5c; text-decoration: none; font-size: 13px; font-weight: 600; }
.docs-link:hover { color: #173d30; }
.docs-link span { margin-left: 4px; }
.hero { display: flex; align-items: end; justify-content: space-between; padding: 48px 0 28px; }
.eyebrow { margin: 0 0 13px; display: flex; align-items: center; gap: 9px; color: #668071; font-size: 10px; letter-spacing: .17em; font-weight: 750; }
.eyebrow-dot, .source-dot, .live-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #5b9474; }
h1 { margin: 0; color: #173d30; font-size: clamp(32px, 5vw, 45px); letter-spacing: -.055em; line-height: 1.15; }
.hero-subtitle { margin: 11px 0 0; color: #758279; font-size: 14px; }
.source-chip { display: flex; align-items: center; gap: 10px; min-width: 170px; padding: 12px 15px; border: 1px solid #e3e8df; border-radius: 12px; background: rgba(255, 254, 250, .76); }
.source-chip strong, .source-chip small { display: block; }
.source-chip strong { font-size: 12px; color: #294939; }
.source-chip small { margin-top: 3px; color: #89958b; font-size: 11px; }
.source-dot { width: 8px; height: 8px; box-shadow: 0 0 0 4px #eaf1e9; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 17px; color: #51472b; background: #f0ecdb; border: 1px solid #e8e1c9; border-radius: 11px; }
.notice-icon { display: grid; flex: 0 0 auto; width: 19px; height: 19px; place-items: center; border: 1px solid #9d8b55; border-radius: 50%; color: #806f3c; font-family: Georgia, serif; font-weight: 700; font-size: 12px; }
.notice p { margin: 0; font-size: 12px; line-height: 1.7; }
.notice strong { font-weight: 750; }
.notice p span { color: #776f55; }
.toolbar { display: flex; align-items: end; gap: 12px; margin: 28px 0 20px; }
.date-control { width: 205px; flex: 0 0 auto; }
.date-control label { display: block; margin: 0 0 7px 2px; color: #728076; font-size: 11px; font-weight: 650; }
.date-control input, .search-control { height: 44px; border: 1px solid #e1e5da; border-radius: 9px; background: var(--paper); }
.date-control input { width: 100%; padding: 0 11px; color: #2c4637; font: inherit; font-size: 13px; outline: none; }
.date-control input:focus, .search-control:focus-within { border-color: #82a18b; box-shadow: 0 0 0 3px rgba(91, 148, 116, .11); }
.search-control { display: flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 140px; padding: 0 12px; }
.search-icon { width: 14px; height: 14px; border: 1.6px solid #8b9b8f; border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1.5px; right: -4px; bottom: -2px; transform: rotate(45deg); background: #8b9b8f; }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #30493a; font: inherit; font-size: 13px; }
.search-control input::placeholder { color: #a2aaa1; }
.search-control kbd { color: #9aa49b; white-space: nowrap; font-family: inherit; font-size: 10px; }
.refresh-button { display: inline-flex; height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid #173d30; border-radius: 9px; color: #f9f8f1; background: #173d30; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.refresh-button:hover { background: #285540; }
.refresh-button:active { transform: translateY(1px); }
.refresh-button:disabled { opacity: .7; cursor: wait; }
.refresh-icon { display: inline-block; font-size: 17px; line-height: 1; }
.is-loading .refresh-icon { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0 17px; border-top: 1px solid #e4e6dc; }
.summary-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.summary-label { color: #88948b; font-size: 11px; }
.summary-title > strong { color: #234634; font-size: 15px; }
.match-count { padding: 4px 8px; border-radius: 20px; color: #587260; background: #e9eee5; font-size: 10px; font-weight: 650; }
.update-info { display: flex; align-items: center; gap: 8px; color: #89958c; white-space: nowrap; font-size: 10px; }
.live-dot { width: 6px; height: 6px; background: #80a688; }
.update-divider { color: #bdc4bb; }
.window-note { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #e3e7df; border-radius: 9px; background: rgba(255, 254, 250, .6); }
.window-symbol { display: grid; width: 21px; height: 21px; place-items: center; color: #668071; font-size: 17px; }
.window-note p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0; color: #78877d; font-size: 11px; }
.window-note strong { color: #3d5a47; font-weight: 650; }
.window-note p span { color: #9aa49b; }
.state-message { margin: 17px 0 10px; padding: 15px 17px; border-radius: 9px; color: #587260; background: #eaf0e8; font-size: 13px; line-height: 1.6; }
.state-message[hidden] { display: none; }
.state-message.error { color: #854b3f; background: #f5eae4; }
.state-message.warning { color: #765e26; background: #f2eedf; }
.state-message.loading { color: #6d7d70; background: transparent; padding-left: 0; }
.state-message.empty { color: #758279; background: transparent; padding-left: 0; }
.date-group { margin-top: 24px; }
.group-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; padding: 0 3px; }
.group-heading h2 { margin: 0; color: #355442; font-size: 13px; font-weight: 700; }
.group-heading h2 span { padding: 0 5px; color: #a2afa3; }
.group-heading > span { color: #89958c; font-size: 10px; }
.match-list { overflow: hidden; border: 1px solid #e4e7de; border-radius: 11px; background: var(--paper); }
.match-card { display: grid; grid-template-columns: 102px 1.05fr 2fr 145px 112px; align-items: center; gap: 15px; min-height: 77px; padding: 14px 18px; border-bottom: 1px solid #eef0e9; }
.match-card:last-child { border-bottom: 0; }
.match-number span { display: block; color: #244a35; font-size: 13px; font-weight: 750; letter-spacing: .01em; }
.match-number small { display: block; margin-top: 4px; color: #9aa69c; font-size: 10px; }
.match-league { color: #738078; font-size: 12px; }
.match-teams { display: flex; align-items: center; gap: 12px; color: #2c4335; font-size: 13px; font-weight: 650; }
.match-teams span { flex: 1 1 0; }
.match-teams span:last-child { text-align: right; }
.match-teams b { flex: 0 0 auto; color: #a7b0a7; font-size: 9px; font-weight: 600; letter-spacing: .07em; }
.match-kickoff { color: #68796d; white-space: nowrap; font-size: 11px; }
.mobile-label { display: none; }
.match-status { text-align: right; }
.status-pill { display: inline-block; padding: 5px 8px; border-radius: 6px; color: #5e765f; background: #edf2e9; font-size: 10px; font-weight: 650; white-space: nowrap; }
.match-status small { display: block; margin-top: 4px; color: #abb3aa; font-size: 9px; }
.unclassified-note { margin: 15px 2px 0; color: #8a7750; font-size: 11px; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 38px; padding: 18px 0 26px; border-top: 1px solid #e4e6dc; color: #9aa49b; font-size: 10px; }

@media (max-width: 760px) {
  .page-shell { padding: 0 22px; }
  .hero { padding-top: 39px; }
  .match-card { grid-template-columns: 82px 1fr 132px; gap: 10px 12px; padding: 14px; }
  .match-league { grid-column: 2; grid-row: 1; }
  .match-number { grid-column: 1; grid-row: 1; }
  .match-teams { grid-column: 1 / 3; grid-row: 2; }
  .match-kickoff { grid-column: 1 / 3; grid-row: 3; }
  .match-status { grid-column: 3; grid-row: 1 / 4; }
  .match-status small { max-width: 84px; margin-left: auto; line-height: 1.4; }
}
@media (max-width: 520px) {
  .page-shell { padding: 0 17px; }
  .topbar { height: 65px; }
  .brand-mark { width: 31px; height: 31px; }
  .hero { align-items: flex-start; gap: 14px; padding: 34px 0 21px; }
  h1 { font-size: 33px; }
  .hero-subtitle { max-width: 230px; font-size: 12px; line-height: 1.6; }
  .source-chip { min-width: 0; padding: 9px; gap: 8px; }
  .source-chip strong { font-size: 10px; white-space: nowrap; }
  .source-chip small { font-size: 10px; }
  .notice { padding: 12px; gap: 9px; }
  .notice p { font-size: 11px; }
  .toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 21px 0 17px; }
  .date-control { width: auto; }
  .search-control { grid-column: 1 / -1; grid-row: 2; }
  .refresh-button { grid-column: 2; grid-row: 1; padding: 0 12px; }
  .summary-row { align-items: flex-start; flex-direction: column; gap: 9px; padding: 16px 0 13px; }
  .update-info { white-space: normal; }
  .window-note { align-items: flex-start; }
  .window-note p { gap: 4px 8px; line-height: 1.6; }
  .window-note p span { flex-basis: 100%; }
  .match-card { grid-template-columns: 1fr auto; gap: 9px 8px; padding: 14px 13px; }
  .match-number { grid-column: 1; grid-row: 1; }
  .match-league { grid-column: 2; grid-row: 1; justify-self: end; font-size: 11px; text-align: right; }
  .match-teams { grid-column: 1 / -1; grid-row: 2; gap: 10px; padding: 3px 0; font-size: 13px; }
  .match-kickoff { grid-column: 1; grid-row: 3; white-space: normal; font-size: 10px; }
  .mobile-label { display: inline; margin-right: 5px; color: #a0aaa0; }
  .match-status { grid-column: 2; grid-row: 3; align-self: center; }
  .match-status small { display: none; }
  .group-heading { margin-bottom: 8px; }
  .footer { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Per-match market analysis */
.hero { align-items: center; }
h1 { font-size: clamp(28px, 4.1vw, 43px); }
.method-note { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #efF1e9; }
.method-note > strong { font-size: 12px; }
.method-note p { margin: 7px 0 0; font-size: 11px; line-height: 1.8; color: #697b6c; }
.match-list { background: transparent; border: 0; border-radius: 0; overflow: visible; display: grid; gap: 17px; }
.match-card { display: block; padding: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--paper); }
.match-card:last-child { border-bottom: 1px solid var(--line); }
.match-overview { display: grid; grid-template-columns: 94px 1fr 2fr 145px 90px; gap: 12px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.match-analysis { padding: 18px 20px; display: grid; grid-template-columns: 220px 1fr; gap: 17px 24px; }
.analysis-verdict { padding: 14px 16px; background: #eaf0e6; border-left: 3px solid #376345; border-radius: 7px; display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.analysis-verdict strong { display: block; font-size: 26px; margin: 5px 0 7px; letter-spacing: -.04em; }
.analysis-verdict span:not(.analysis-label) { display: block; font-size: 11px; line-height: 1.6; }
.analysis-label { font-size: 10px; color: #647b66; }
.analysis-verdict small { font-size: 9px; color: #768876; line-height: 1.7; white-space: nowrap; }
.analysis-verdict.unavailable { background: #f0eee5; border-left-color: #a2936c; color: #7c6a40; }
.analysis-verdict.unavailable strong { font-size: 20px; }
.odds-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; align-self: stretch; }
.odds-cell { border: 1px solid #e5e7de; border-radius: 8px; padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; background: #fafbf6; }
.odds-cell span { font-size: 10px; color: #7b877b; }
.odds-cell strong { font-size: 25px; font-variant-numeric: tabular-nums; font-weight: 650; }
.odds-cell small { font-size: 10px; color: #90998e; }
.odds-cell.preferred { border-color: #8caa8f; background: #f0f5ea; }
.analysis-copy { grid-column: 1 / -1; }
.analysis-copy h3 { margin: 0 0 7px; font-size: 12px; }
.analysis-copy ul { margin: 0; padding-left: 17px; font-size: 12px; line-height: 1.85; color: #57705d; }
.analysis-risk { margin: 11px 0 0; color: #8b7044; font-size: 11px; line-height: 1.8; }
.evidence-time { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px 20px; font-size: 9px; color: #929b90; border-top: 1px dashed #e6e8de; padding-top: 11px; line-height: 1.6; }
@media (max-width: 900px) { .match-overview { grid-template-columns: 80px 1fr 1.7fr; }.match-kickoff { grid-column: 1 / 3; }.match-status { grid-column: 3; } }
@media (max-width: 760px) { .match-overview { grid-template-columns: 82px 1fr 110px; padding: 15px; }.match-analysis { grid-template-columns: 1fr; padding: 16px; gap: 14px; }.analysis-verdict { align-items: center; }.analysis-verdict strong { font-size: 25px; }.analysis-verdict > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; }.analysis-label { flex-basis: 100%; }.analysis-verdict strong { margin: 0; }.analysis-verdict small { text-align: right; } }
@media (max-width: 520px) { .hero { display: block; }.source-chip { display: none; }.hero-subtitle { max-width: none; }.match-overview { grid-template-columns: 1fr auto; gap: 9px; padding: 14px; }.match-number { grid-column: 1; grid-row: 1; }.match-league { grid-column: 2; grid-row: 1; }.match-teams { grid-column: 1 / -1; grid-row: 2; }.match-kickoff { grid-column: 1; grid-row: 3; }.match-status { grid-column: 2; grid-row: 3; }.odds-cell { padding: 11px; }.odds-cell strong { font-size: 22px; }.analysis-copy ul { font-size: 11px; }.evidence-time { display: grid; gap: 3px; }.analysis-verdict > div { gap: 4px 12px; } }

/* Per-match recent form and availability evidence */
.match-evidence { padding: 17px 20px 20px; border-top: 1px solid var(--line); background: #fbfcf8; }
.match-evidence > h3 { margin: 0 0 13px; color: #294b37; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-panel, .injury-panel { min-width: 0; padding: 13px 14px; border: 1px solid #e5e9df; border-radius: 9px; background: #fffefa; }
.form-panel h4, .injury-panel h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; color: #355442; font-size: 12px; }
.form-panel h4 span { color: #89958b; font-size: 10px; font-weight: 500; text-align: right; }
.form-summary { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; color: #294b37; font-size: 13px; font-weight: 700; }
.form-summary span { color: #77867a; font-size: 11px; font-weight: 500; }
.form-details, .injury-details { margin-top: 10px; }
.form-details summary, .injury-details summary { color: #5c7462; font-size: 10px; cursor: pointer; }
.form-details ol { display: grid; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.form-result { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; background: #f5f7f1; font-size: 10px; }
.result-date { color: #758279; white-space: nowrap; }
.result-opponent { min-width: 0; color: #425b49; }
.result-opponent small { display: block; overflow: hidden; margin-top: 2px; color: #929c92; text-overflow: ellipsis; white-space: nowrap; }
.result-score { color: #294b37; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-outcome { color: #738075; white-space: nowrap; }
.evidence-source { display: block; margin-top: 9px; color: #929b90; font-size: 9px; line-height: 1.5; }
.evidence-status, .injury-caveat, .injury-empty { margin: 5px 0; color: #7e7460; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.form-panel.unavailable { background: #faf9f3; }
.form-comparison { margin: -3px 0 12px; color: #69796d; font-size: 10px; line-height: 1.6; }
.injury-panel { margin-top: 12px; }
.injury-panel h4 { margin-bottom: 6px; }
.injury-count { margin: 0; color: #536c59; font-size: 11px; font-weight: 650; }
.injury-count span { color: #8b958b; font-size: 10px; font-weight: 400; }
.injury-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.injury-list li { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(70px, .6fr) minmax(120px, 1.5fr) auto; gap: 8px; align-items: baseline; padding: 8px; border-radius: 6px; background: #f5f7f1; color: #56695a; font-size: 10px; overflow-wrap: anywhere; }
.injury-list li strong { color: #354d3c; }
.injury-list li small { color: #8c968c; white-space: nowrap; }
.evidence-method { margin: 12px 0 0; color: #7c887d; font-size: 10px; line-height: 1.6; }
.evidence-pending { margin: 0; padding: 10px 12px; border-radius: 7px; color: #7d887e; background: #f4f5ef; font-size: 11px; }
@media (max-width: 760px) {
  .match-evidence { padding: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .injury-list li { grid-template-columns: minmax(80px, .8fr) minmax(65px, .6fr) minmax(90px, 1.2fr); }
  .injury-list li small { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .form-result { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 6px; }
  .result-outcome { grid-column: 2 / -1; }
  .injury-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .injury-list li span:nth-of-type(2) { grid-column: 1 / -1; }
  .injury-list li small { grid-column: 2; grid-row: 1; }
}

.primary-score,.primary-confidence{padding:0 20px;font-size:14px;line-height:1.7}.primary-score[data-score="wrong"]{color:#a3332c}.primary-score[data-score="hit"]{color:#246249}
