:root {
  color-scheme: light;
  --blue-900: #07346f;
  --blue-800: #0a4d95;
  --blue-700: #1268b3;
  --blue-100: #e9f3ff;
  --red-600: #c43131;
  --teal-600: #168f7a;
  --gold-500: #d99a20;
  --ink-900: #172033;
  --ink-700: #3e4a5f;
  --ink-500: #6c7688;
  --line: #dbe3ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(20, 45, 84, 0.12);
  --football-field-bg: url("/static/img/football-field-bg.png");
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #f2f5f9;
  color: var(--ink-900);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blue-900);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(7, 52, 111, 0.24);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1440px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
}

.brand-mark,
.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: var(--red-600);
  color: var(--white);
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.main-nav a {
  min-width: 76px;
  padding: 21px 18px;
  border-bottom: 3px solid transparent;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--gold-500);
  color: var(--white);
}

.user-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 180px;
  color: rgba(255, 255, 255, 0.86);
}

.visit-counter {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.page {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.notice-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px 28px;
  border-top: 4px solid var(--red-600);
  background: linear-gradient(110deg, var(--blue-900) 0%, var(--blue-700) 62%, #168f7a 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.notice-band h1,
.content-header h2,
.panel-title h2 {
  margin: 0;
  letter-spacing: 0;
}

.notice-band h1 {
  font-size: 28px;
  line-height: 1.2;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-500);
  font-size: 13px;
  font-weight: 700;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  background: currentColor;
}

.notice-actions,
.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card,
.run-panel,
.job-panel,
.content-panel,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-card {
  display: grid;
  gap: 6px;
  min-height: 100px;
  padding: 14px 16px;
  border-top: 3px solid var(--blue-700);
}

.stat-card:nth-child(2) {
  border-top-color: var(--teal-600);
}

.stat-card:nth-child(3) {
  border-top-color: var(--gold-500);
}

.stat-card:nth-child(4) {
  border-top-color: var(--red-600);
}

.stat-card span,
.stat-card small,
.job-meta dt,
.field-row span,
.login-form label span {
  color: var(--ink-500);
  font-size: 13px;
}

.stat-card strong {
  align-self: center;
  color: var(--blue-900);
  font-size: 24px;
  line-height: 1.2;
  word-break: break-word;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.integration-panel {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-600);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.integration-panel h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 17px;
}

.integration-panel p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.integration-metrics,
.artifact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.integration-metrics b,
.artifact-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--soft);
  color: var(--ink-700);
  font-size: 13px;
}

.artifact-strip {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.artifact-strip .ready {
  background: #e6f7f1;
  color: var(--teal-600);
}

.artifact-strip .missing,
.integration-error {
  background: #fdeaea;
  color: var(--red-600);
}

.run-panel,
.job-panel,
.content-panel {
  padding: 16px;
}

.panel-title,
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-title h2,
.content-header h2 {
  color: var(--blue-900);
  font-size: 19px;
}

.field-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field-row input,
.login-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink-900);
}

.field-row input:focus,
.login-form input:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(18, 104, 179, 0.14);
  outline: none;
}

.switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.switch-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink-700);
  font-size: 14px;
}

.switch-grid input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-700);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button {
  width: 100%;
  background: var(--red-600);
  color: var(--white);
}

.primary-button:hover {
  background: #a92525;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-button {
  background: var(--white);
  border-color: var(--line);
  color: var(--blue-900);
}

.notice-band .secondary-button {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.secondary-button:hover,
.secondary-button.active {
  border-color: var(--blue-700);
  background: var(--blue-100);
}

.ghost-button {
  min-height: 32px;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
}

.status-pill,
.job-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf1f7;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

.status-pill.running {
  background: #fff5d9;
  color: #8a5a00;
}

.status-pill.success {
  background: #e6f7f1;
  color: var(--teal-600);
}

.status-pill.failed {
  background: #fdeaea;
  color: var(--red-600);
}

.job-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.job-meta div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.job-meta dt,
.job-meta dd {
  margin: 0;
}

.job-meta dd {
  color: var(--ink-900);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.filter-summary span {
  color: var(--ink-500);
  font-size: 13px;
}

.filter-summary b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--white);
  color: var(--ink-700);
  font-size: 13px;
}

.mini-log,
.log-view {
  width: 100%;
  margin: 0;
  border: 1px solid #22364f;
  border-radius: 6px;
  background: #101820;
  color: #d8e9ff;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow: auto;
}

.mini-log {
  max-height: 220px;
  padding: 12px;
}

.log-view {
  max-height: 68vh;
  padding: 16px;
}

.content-panel {
  overflow: hidden;
}

.content-header {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.report-body {
  overflow-x: auto;
  padding-top: 8px;
}

.report-body h1,
.report-body h2,
.report-body h3 {
  color: var(--blue-900);
  letter-spacing: 0;
}

.report-body h1 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.report-body h2 {
  margin: 26px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--red-600);
  font-size: 20px;
}

.report-body p,
.report-body li {
  color: var(--ink-700);
}

.report-body code {
  border-radius: 4px;
  background: #eef4fb;
  color: var(--blue-900);
  padding: 2px 5px;
}

.report-body table {
  width: 100%;
  min-width: 760px;
  margin: 14px 0 20px;
  border-collapse: collapse;
  font-size: 14px;
}

.report-body th {
  background: var(--blue-800);
  color: var(--white);
  text-align: left;
}

.report-body th,
.report-body td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  vertical-align: top;
}

.report-body tr:nth-child(even) td {
  background: #f8fbff;
}

.today-board {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.balance-strip {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.compact-strip {
  border-left: 4px solid var(--gold-500);
}

.goal-prediction-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(217, 154, 32, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.goal-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.goal-panel-head h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 19px;
}

.goal-panel-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 800;
}

.goal-prediction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.goal-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(20, 45, 84, 0.07);
}

.goal-card header {
  display: grid;
  gap: 4px;
}

.goal-card header span,
.goal-card footer {
  color: var(--ink-500);
  font-size: 12px;
}

.goal-card header strong {
  color: var(--blue-900);
  font-size: 16px;
  line-height: 1.25;
}

.goal-scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-radius: 8px;
  background: #0f2f5f;
  color: var(--white);
  text-align: center;
}

.goal-scoreline b {
  font-size: 28px;
  line-height: 1;
}

.goal-scoreline small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.goal-summary,
.goal-top-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.goal-summary span,
.goal-top-list span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--soft);
  color: var(--ink-700);
  font-size: 12px;
}

.goal-top-list span {
  background: #fff8e8;
  color: #79520e;
  font-weight: 800;
}

.balance-strip h3,
.match-card h3 {
  margin: 0;
  letter-spacing: 0;
}

.balance-strip h3 {
  color: var(--blue-900);
  font-size: 16px;
}

.balance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #f1d28e;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff8e8;
  color: #79520e;
  font-size: 12px;
  font-weight: 700;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.match-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(20, 45, 84, 0.08);
}

.match-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.match-code {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.match-card h3 {
  color: var(--blue-900);
  font-size: 18px;
  line-height: 1.25;
}

.match-card h3 small {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 600;
}

.decision-pill {
  align-self: flex-start;
  min-width: 54px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf1f7;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.decision-pill.positive {
  background: #e6f7f1;
  color: var(--teal-600);
}

.decision-pill.warning {
  background: #fff5d9;
  color: #8a5a00;
}

.decision-pill.neutral {
  background: var(--blue-100);
  color: var(--blue-800);
}

.decision-pill.muted {
  background: #f0f2f5;
  color: var(--ink-500);
}

.match-meta,
.match-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-meta span,
.match-foot span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--soft);
  color: var(--ink-700);
  font-size: 12px;
}

.judgement {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.xg-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.xg-strip div {
  display: grid;
  gap: 2px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  background: #f8fbff;
}

.xg-strip span {
  color: var(--ink-500);
  font-size: 11px;
}

.xg-strip b {
  color: var(--blue-900);
  font-size: 16px;
  line-height: 1.1;
}

.metric-grid,
.odds-grid {
  display: grid;
  gap: 10px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.odds-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid div,
.odds-grid div {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #f8fbff;
}

.metric-grid span,
.odds-grid span {
  color: var(--ink-500);
  font-size: 12px;
}

.metric-grid b,
.odds-grid b {
  color: var(--ink-900);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.prediction-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.prediction-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.prediction-head span {
  color: var(--blue-900);
  font-size: 15px;
  font-weight: 800;
}

.prediction-head small {
  color: var(--ink-500);
  font-size: 12px;
}

.prediction-section {
  display: grid;
  gap: 8px;
}

.prediction-section h4 {
  margin: 0;
  color: var(--ink-700);
  font-size: 13px;
}

.prediction-list {
  display: grid;
  gap: 5px;
}

.prediction-row {
  display: grid;
  grid-template-columns: minmax(44px, 72px) minmax(96px, 1fr) 56px;
  align-items: center;
  gap: 7px;
  min-height: 24px;
}

.prediction-row span,
.prediction-row b {
  font-size: 12px;
  line-height: 1.2;
}

.prediction-row span {
  color: var(--ink-700);
  font-weight: 700;
}

.prediction-row b {
  color: var(--blue-900);
  text-align: right;
}

.prediction-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.prediction-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-600), var(--blue-700));
}

.candidate-list {
  display: grid;
  gap: 6px;
}

.candidate-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
  border-left: 3px solid var(--gold-500);
  padding: 7px 9px;
  background: #fffaf0;
}

.candidate-row strong {
  color: var(--ink-900);
  font-size: 13px;
}

.candidate-row span {
  overflow: hidden;
  color: var(--ink-700);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-foot {
  padding-top: 2px;
}

.match-foot .alert-text {
  background: #fff7df;
  color: var(--ink-700);
}

.empty-text {
  color: var(--ink-500);
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(7, 52, 111, 0.96), rgba(18, 104, 179, 0.9)),
    #0a4d95;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 48px;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.login-brand {
  color: var(--white);
}

.login-brand .brand-badge {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
}

.login-brand h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

.login-brand p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.login-pay-note {
  display: grid;
  gap: 8px;
  width: min(460px, 100%);
  margin-top: 28px;
  border-left: 4px solid var(--gold-500);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
}

.login-pay-note strong {
  color: var(--white);
  font-size: 26px;
  line-height: 1.2;
}

.login-pay-note span {
  font-size: 14px;
}

.login-panel {
  padding: 28px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--blue-900);
  font-size: 22px;
  font-weight: 800;
}

.form-heading small {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 600;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.form-error {
  border: 1px solid #f0b4b4;
  border-radius: 6px;
  background: #fff0f0;
  color: var(--red-600);
  padding: 10px 12px;
}

.form-success {
  border: 1px solid #a8dacd;
  border-radius: 6px;
  background: #eefaf7;
  color: #0f705f;
  padding: 10px 12px;
}

.full-width {
  width: 100%;
}

.secondary-form-link {
  justify-self: center;
  color: var(--blue-800);
  font-size: 14px;
  font-weight: 800;
}

.secondary-form-link:hover {
  color: var(--red-600);
}

.paywall-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(7, 52, 111, 0.96), rgba(18, 104, 179, 0.9)),
    #0a4d95;
}

.paywall-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 48px;
}

.paywall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
  color: var(--white);
}

.paywall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: stretch;
}

.paywall-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.payment-summary {
  display: grid;
  gap: 22px;
  align-content: start;
}

.payment-summary h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.payment-summary p,
.payment-block p {
  margin: 0;
  color: var(--ink-700);
}

.price-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.price-strip strong {
  color: var(--red-600);
  font-size: 28px;
  line-height: 1.1;
}

.price-strip span,
.payment-contact,
.access-code-form label span {
  color: var(--ink-500);
  font-size: 13px;
}

.member-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.member-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--soft);
}

.member-meta dt {
  color: var(--ink-500);
  font-size: 13px;
}

.member-meta dd {
  margin: 6px 0 0;
  color: var(--blue-900);
  font-weight: 800;
}

.member-meta dd.locked {
  color: var(--red-600);
}

.member-meta dd.active {
  color: var(--teal-600);
}

.payment-action {
  display: grid;
  gap: 18px;
  align-content: start;
}

.payment-block {
  display: grid;
  gap: 14px;
}

.payment-qr {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.payment-qr img {
  display: block;
  width: min(260px, 100%);
  height: auto;
  border-radius: 6px;
}

.payment-qr.placeholder {
  gap: 8px;
  color: var(--ink-500);
}

.payment-qr.placeholder strong {
  color: var(--red-600);
  font-size: 26px;
}

.payment-contact {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 700;
}

.access-code-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.access-code-form label {
  display: grid;
  gap: 8px;
}

.access-ready {
  display: grid;
  gap: 14px;
  text-align: center;
}

.access-ready span {
  color: var(--teal-600);
  font-weight: 800;
}

.access-ready strong {
  color: var(--blue-900);
  font-size: 30px;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workbench-grid {
    grid-template-columns: 1fr;
  }

  .integration-panel {
    grid-template-columns: 1fr;
  }

  .integration-metrics {
    justify-content: flex-start;
  }

  .match-grid {
    grid-template-columns: 1fr;
  }

  .goal-prediction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xg-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .brand,
  .user-area {
    min-width: 0;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .main-nav a {
    min-width: 66px;
    padding: 10px 12px;
  }

  .notice-band,
  .content-header,
  .balance-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .balance-strip {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .paywall-layout {
    grid-template-columns: 1fr;
  }

  .login-brand h1 {
    font-size: 32px;
  }
}

@media (max-width: 560px) {
  .page,
  .topbar-inner,
  .login-shell,
  .paywall-shell {
    width: min(100% - 20px, 1440px);
  }

  .notice-band,
  .run-panel,
  .job-panel,
  .content-panel,
  .login-panel,
  .paywall-card {
    padding: 16px;
  }

  .notice-band h1 {
    font-size: 24px;
  }

  .stats-grid,
  .switch-grid,
  .job-meta,
  .goal-prediction-grid,
  .metric-grid,
  .odds-grid,
  .xg-strip {
    grid-template-columns: 1fr;
  }

  .prediction-head {
    display: grid;
  }

  .prediction-row {
    grid-template-columns: minmax(42px, 64px) minmax(72px, 1fr) 48px;
  }

  .candidate-row {
    grid-template-columns: 1fr;
  }

  .candidate-row span {
    white-space: normal;
  }

  .content-actions,
  .notice-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .secondary-button {
    width: 100%;
  }

  .paywall-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .payment-summary h1 {
    font-size: 28px;
  }

  .member-meta {
    grid-template-columns: 1fr;
  }

  .payment-qr {
    min-height: 220px;
  }
}

/* AI sports model presentation */
:root {
  --ai-bg: #050908;
  --ai-panel: #0d1110;
  --ai-panel-2: #121817;
  --ai-line: rgba(35, 255, 196, 0.16);
  --ai-line-soft: rgba(255, 255, 255, 0.08);
  --ai-green: #23f5bf;
  --ai-cyan: #24d5f2;
  --ai-pink: #ff6f9b;
  --ai-gold: #ffd25c;
  --ai-text: #f4f7f5;
  --ai-muted: #8a9692;
  --ai-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

body {
  background:
    linear-gradient(100deg, rgba(4, 12, 10, 0.96), rgba(2, 7, 7, 0.98) 48%, rgba(0, 26, 26, 0.9)),
    var(--ai-bg);
  color: var(--ai-text);
}

.topbar {
  background: rgba(2, 8, 8, 0.92);
  border-bottom: 1px solid var(--ai-line);
  box-shadow: 0 2px 22px rgba(35, 245, 191, 0.09);
  backdrop-filter: blur(16px);
}

.brand-mark,
.brand-badge {
  border-color: rgba(35, 245, 191, 0.55);
  background: rgba(35, 245, 191, 0.12);
  color: var(--ai-green);
  box-shadow: inset 0 0 18px rgba(35, 245, 191, 0.16);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(35, 245, 191, 0.08);
  border-bottom-color: var(--ai-green);
}

.page {
  width: min(1180px, calc(100% - 32px));
}

.notice-band {
  position: relative;
  overflow: hidden;
  align-items: center;
  min-height: 220px;
  border: 1px solid var(--ai-line);
  border-top: 6px solid var(--ai-green);
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.94) 0%, rgba(6, 20, 17, 0.96) 52%, rgba(0, 42, 38, 0.88) 100%);
  box-shadow: var(--ai-shadow);
}

.notice-band::after {
  content: "";
  position: absolute;
  inset: auto -12% -42% 38%;
  height: 190px;
  background: linear-gradient(90deg, transparent, rgba(35, 245, 191, 0.16), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.notice-band h1 {
  max-width: 620px;
  color: var(--ai-green);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.08;
}

.notice-band p {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(244, 247, 245, 0.74);
  font-size: 18px;
}

.section-kicker {
  color: var(--ai-green);
}

.engine-version {
  display: grid;
  gap: 8px;
  min-width: 132px;
  color: var(--ai-text);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  z-index: 1;
}

.data-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.data-date-row span,
.data-date-row b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(18, 184, 134, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--bright-ai-ink);
  font-size: 13px;
  font-weight: 800;
}

.data-date-row b {
  border-color: rgba(217, 70, 115, 0.26);
  background: #fff0f5;
  color: var(--bright-ai-pink);
}

.engine-version::after {
  content: "V2.0 ENGINE";
  color: rgba(244, 247, 245, 0.34);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.stat-card,
.run-panel,
.job-panel,
.content-panel,
.integration-panel {
  border-color: var(--ai-line-soft);
  background: rgba(15, 18, 18, 0.92);
  box-shadow: var(--ai-shadow);
}

.stat-card {
  border-top-color: var(--ai-green);
  background: linear-gradient(180deg, rgba(22, 25, 25, 0.96), rgba(10, 12, 12, 0.96));
}

.stat-card:nth-child(2) {
  border-top-color: var(--ai-pink);
}

.stat-card:nth-child(3) {
  border-top-color: var(--ai-cyan);
}

.stat-card:nth-child(4) {
  border-top-color: var(--ai-gold);
}

.stat-card span,
.stat-card small,
.job-meta dt,
.field-row span,
.match-code,
.match-card h3 small {
  color: var(--ai-muted);
}

.stat-card strong,
.panel-title h2,
.content-header h2,
.integration-panel h2,
.balance-strip h3 {
  color: var(--ai-text);
}

.stat-card strong {
  color: var(--ai-green);
}

.secondary-button,
.field-row input,
.login-form input {
  border-color: var(--ai-line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ai-text);
}

.secondary-button:hover,
.secondary-button.active {
  border-color: rgba(35, 245, 191, 0.6);
  background: rgba(35, 245, 191, 0.12);
}

.content-header,
.prediction-head {
  border-bottom-color: var(--ai-line-soft);
}

.today-board {
  gap: 22px;
}

.balance-strip {
  border-color: var(--ai-line-soft);
  background: rgba(12, 15, 15, 0.86);
}

.balance-chip,
.match-meta span,
.match-foot span,
.goal-summary span,
.goal-top-list span,
.filter-summary b,
.integration-metrics b,
.artifact-strip span {
  border-color: rgba(35, 245, 191, 0.14);
  background: rgba(35, 245, 191, 0.08);
  color: var(--ai-green);
}

.match-grid {
  grid-template-columns: minmax(0, 940px);
  justify-content: start;
  gap: 28px;
}

.match-card {
  position: relative;
  gap: 16px;
  border-color: var(--ai-line-soft);
  border-left: 6px solid var(--ai-green);
  background:
    linear-gradient(180deg, rgba(19, 22, 22, 0.96), rgba(8, 10, 10, 0.98));
  box-shadow: var(--ai-shadow);
}

.match-card::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--ai-green);
  box-shadow: 0 0 18px var(--ai-green);
}

.match-head {
  align-items: flex-start;
}

.match-card h3 {
  color: var(--ai-text);
  font-size: 28px;
  font-weight: 900;
}

.decision-pill {
  border: 1px solid var(--ai-line-soft);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ai-green);
}

.decision-pill.warning {
  color: var(--ai-gold);
}

.decision-pill.positive {
  color: var(--ai-green);
}

.decision-pill.neutral {
  color: var(--ai-cyan);
}

.decision-pill.muted {
  color: var(--ai-muted);
}

.ai-signal-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 14px;
}

.ai-signal-grid div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--ai-line-soft);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.3);
}

.ai-signal-grid span {
  color: var(--ai-muted);
}

.ai-signal-grid b {
  color: var(--ai-green);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.ai-signal-grid div:nth-child(2) b {
  color: var(--ai-text);
}

.ai-signal-grid div:nth-child(3) b {
  color: var(--ai-pink);
}

.match-accordion {
  display: grid;
  gap: 10px;
}

.analysis-collapse {
  border: 1px solid var(--ai-line-soft);
  border-radius: 8px;
  background: rgba(5, 7, 8, 0.72);
  overflow: hidden;
}

.analysis-collapse summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
}

.analysis-collapse summary::-webkit-details-marker {
  display: none;
}

.analysis-collapse summary::after {
  content: "展开";
  grid-column: 2;
  justify-self: end;
  margin-left: 10px;
  color: var(--ai-muted);
  font-size: 12px;
}

.analysis-collapse[open] summary::after {
  content: "收起";
}

.analysis-collapse summary span {
  color: var(--ai-text);
  font-weight: 900;
}

.analysis-collapse summary b {
  color: var(--ai-green);
  font-size: 13px;
}

.collapse-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.analysis-copy {
  margin: 0;
  border-left: 3px solid var(--ai-green);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 247, 245, 0.9);
  font-size: 16px;
  line-height: 1.85;
}

.analysis-copy::first-letter {
  color: var(--ai-green);
}

.analysis-note {
  margin: 0;
  color: rgba(244, 247, 245, 0.76);
  line-height: 1.7;
}

.info-line,
.alert-list,
.score-chip-list,
.betting-compare-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-line span,
.alert-list span,
.score-chip-list span,
.betting-compare-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--ai-line-soft);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 245, 0.82);
  font-size: 13px;
}

.alert-list span {
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(251, 191, 36, 0.12);
  color: rgba(244, 247, 245, 0.82);
}

.score-chip-list span {
  border-color: rgba(35, 245, 191, 0.22);
  background: rgba(35, 245, 191, 0.07);
}

.score-chip-list b {
  margin-left: 6px;
  color: var(--ai-green);
}

.xg-strip div,
.metric-grid div,
.odds-grid div,
.job-meta div,
.filter-summary,
.prediction-panel {
  border-color: var(--ai-line-soft);
  background: rgba(255, 255, 255, 0.035);
}

.xg-strip span,
.metric-grid span,
.odds-grid span {
  color: var(--ai-muted);
}

.xg-strip b,
.metric-grid b,
.odds-grid b,
.prediction-row b {
  color: var(--ai-green);
}

.odds-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prediction-row {
  min-height: 30px;
}

.prediction-row span {
  color: rgba(244, 247, 245, 0.82);
}

.prediction-bar {
  background: rgba(255, 255, 255, 0.08);
}

.prediction-bar i {
  background: linear-gradient(90deg, var(--ai-green), var(--ai-cyan));
  box-shadow: 0 0 12px rgba(35, 245, 191, 0.28);
}

.candidate-row {
  border-left-color: var(--ai-gold);
  background: rgba(255, 210, 92, 0.06);
}

.candidate-row strong {
  color: var(--ai-text);
}

.candidate-row span {
  color: rgba(244, 247, 245, 0.72);
}

.report-body h1,
.report-body h2,
.report-body h3 {
  color: var(--ai-text);
}

.report-body p,
.report-body li {
  color: rgba(244, 247, 245, 0.76);
}

.report-body th {
  background: rgba(35, 245, 191, 0.18);
  color: var(--ai-text);
}

.report-body td {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 247, 245, 0.82);
}

.report-body tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 820px) {
  .notice-band {
    min-height: 0;
  }

  .notice-band h1 {
    font-size: 34px;
  }

  .engine-version {
    justify-items: start;
    text-align: left;
  }

  .ai-signal-grid,
  .odds-grid {
    grid-template-columns: 1fr;
  }

  .match-card h3 {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .notice-band h1 {
    font-size: 30px;
  }

  .notice-band p {
    font-size: 15px;
  }

  .match-card {
    border-left-width: 4px;
  }

  .match-card h3 {
    font-size: 22px;
  }

  .ai-signal-grid div,
  .analysis-collapse summary {
    grid-template-columns: 1fr;
  }

  .analysis-collapse summary::after {
    grid-column: 1;
    justify-self: start;
  }
}

/* Light report override: keep the analysis layout, restore the original blue-white product style. */
body {
  background: #f2f5f9;
  color: var(--ink-900);
}

.topbar {
  background: var(--blue-900);
  border-bottom: 0;
  box-shadow: 0 2px 12px rgba(7, 52, 111, 0.24);
  backdrop-filter: none;
}

.brand-mark,
.brand-badge {
  border-color: rgba(255, 255, 255, 0.7);
  background: var(--red-600);
  color: var(--white);
  box-shadow: none;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--gold-500);
}

.page {
  width: min(1440px, calc(100% - 32px));
}

.notice-band {
  min-height: 0;
  border: 0;
  border-top: 4px solid var(--red-600);
  border-radius: 0;
  background: linear-gradient(110deg, var(--blue-900) 0%, var(--blue-700) 62%, #168f7a 100%);
  box-shadow: var(--shadow);
}

.notice-band::after {
  display: none;
}

.notice-band h1 {
  max-width: none;
  color: var(--white);
  font-size: 30px;
  line-height: 1.18;
}

.notice-band p {
  max-width: none;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.section-kicker {
  color: var(--gold-500);
}

.engine-version {
  min-width: 120px;
  color: var(--white);
  font-size: 28px;
  text-align: center;
}

.engine-version::after {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.stat-card,
.run-panel,
.job-panel,
.content-panel,
.integration-panel {
  border-color: var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-card {
  border-top-color: var(--blue-700);
  background: var(--white);
}

.stat-card:nth-child(2) {
  border-top-color: var(--teal-600);
}

.stat-card:nth-child(3) {
  border-top-color: var(--gold-500);
}

.stat-card:nth-child(4) {
  border-top-color: var(--red-600);
}

.stat-card span,
.stat-card small,
.job-meta dt,
.field-row span,
.match-code,
.match-card h3 small {
  color: var(--ink-500);
}

.stat-card strong,
.panel-title h2,
.content-header h2,
.integration-panel h2,
.balance-strip h3 {
  color: var(--blue-900);
}

.secondary-button,
.field-row input,
.login-form input {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue-900);
}

.secondary-button:hover,
.secondary-button.active {
  border-color: var(--blue-700);
  background: var(--blue-100);
}

.content-header,
.prediction-head {
  border-bottom-color: var(--line);
}

.balance-strip {
  border-color: var(--line);
  background: #fbfdff;
}

.balance-chip,
.match-meta span,
.match-foot span,
.goal-summary span,
.goal-top-list span,
.filter-summary b,
.integration-metrics b,
.artifact-strip span {
  border-color: #f1d28e;
  background: #fff8e8;
  color: #79520e;
}

.match-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 16px;
}

.match-card {
  border-color: var(--line);
  border-left: 4px solid var(--teal-600);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(20, 45, 84, 0.08);
}

.match-card::before {
  display: none;
}

.match-card h3 {
  color: var(--blue-900);
  font-size: 20px;
}

.decision-pill {
  border: 0;
  background: #edf1f7;
  color: var(--ink-700);
}

.decision-pill.warning {
  background: #fff5d9;
  color: #8a5a00;
}

.decision-pill.positive {
  background: #e6f7f1;
  color: var(--teal-600);
}

.decision-pill.neutral {
  background: var(--blue-100);
  color: var(--blue-800);
}

.decision-pill.muted {
  background: #f0f2f5;
  color: var(--ink-500);
}

.ai-signal-grid div {
  border-color: var(--line);
  background: #f8fbff;
  box-shadow: none;
}

.ai-signal-grid span {
  color: var(--ink-500);
}

.ai-signal-grid b,
.ai-signal-grid div:nth-child(2) b {
  color: var(--blue-900);
}

.ai-signal-grid div:nth-child(3) b {
  color: var(--red-600);
}

.analysis-collapse {
  border-color: var(--line);
  background: #fbfdff;
}

.analysis-collapse summary {
  background: var(--white);
}

.analysis-collapse summary::after {
  color: var(--ink-500);
}

.analysis-collapse summary span {
  color: var(--blue-900);
}

.analysis-collapse summary b {
  color: var(--teal-600);
}

.logic-stack {
  display: grid;
  gap: 10px;
}

.logic-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--white);
}

.logic-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0;
}

.logic-block p {
  margin: 0;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.75;
}

.logic-block b {
  color: var(--blue-900);
}

.logic-block.primary {
  border-left: 4px solid var(--teal-600);
}

.logic-block.primary h4 {
  color: var(--teal-600);
}

.logic-block.schedule {
  border-left: 4px solid var(--gold-500);
  background: #fffaf0;
}

.logic-block.schedule h4,
.logic-block.schedule b {
  color: #8a5a00;
}

.logic-block.data {
  border-left: 4px solid var(--blue-700);
  background: #f4f9ff;
}

.logic-block.data h4,
.logic-block.data b {
  color: var(--blue-800);
}

.analysis-copy,
.analysis-note {
  color: var(--ink-700);
}

.info-line span,
.alert-list span,
.score-chip-list span,
.betting-compare-list span {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink-700);
}

.alert-list span {
  border-color: #e7d4a2;
  background: #fff7df;
  color: var(--ink-700);
}

.score-chip-list span {
  border-color: #cfe7df;
  background: #e6f7f1;
}

.score-chip-list b {
  color: var(--teal-600);
}

.xg-strip div,
.metric-grid div,
.odds-grid div,
.job-meta div,
.filter-summary,
.prediction-panel {
  border-color: var(--line);
  background: #f8fbff;
}

.xg-strip span,
.metric-grid span,
.odds-grid span {
  color: var(--ink-500);
}

.xg-strip b,
.metric-grid b,
.odds-grid b,
.prediction-row b {
  color: var(--blue-900);
}

.prediction-row span {
  color: var(--ink-700);
}

.prediction-bar {
  background: #e7edf5;
}

.prediction-bar i {
  background: linear-gradient(90deg, var(--teal-600), var(--blue-700));
  box-shadow: none;
}

.candidate-row {
  border-left-color: var(--gold-500);
  background: #fffaf0;
}

.candidate-row strong {
  color: var(--ink-900);
}

.candidate-row span {
  color: var(--ink-700);
}

.report-body h1,
.report-body h2,
.report-body h3 {
  color: var(--blue-900);
}

.report-body p,
.report-body li {
  color: var(--ink-700);
}

.report-body th {
  background: var(--blue-800);
  color: var(--white);
}

.report-body td {
  background: var(--white);
  color: var(--ink-700);
}

.report-body tr:nth-child(even) td {
  background: #f8fbff;
}

@media (max-width: 1120px) {
  .model-capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .match-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .notice-band h1 {
    font-size: 28px;
  }

  .engine-version {
    justify-items: start;
    text-align: left;
  }

  .ai-signal-grid,
  .odds-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .notice-band h1 {
    font-size: 24px;
  }

  .notice-band p {
    font-size: 13px;
  }

  .match-card h3 {
    font-size: 18px;
  }
}

/* Bright AI-tech theme: same report feeling as the reference, without dark mode. */
:root {
  --bright-ai-bg: #eef8f7;
  --bright-ai-panel: #ffffff;
  --bright-ai-soft: #f4fbfa;
  --bright-ai-line: #cce9e4;
  --bright-ai-green: #12b886;
  --bright-ai-cyan: #0ea5b7;
  --bright-ai-ink: #132522;
  --bright-ai-muted: #6b7f7a;
  --bright-ai-pink: #d94673;
  --bright-ai-gold: #c58a17;
  --bright-ai-shadow: 0 18px 44px rgba(21, 98, 87, 0.14);
}

body {
  background:
    linear-gradient(115deg, rgba(240, 251, 249, 0.96), rgba(249, 252, 255, 0.98) 50%, rgba(226, 249, 246, 0.9)),
    var(--bright-ai-bg);
  color: var(--bright-ai-ink);
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--bright-ai-line);
  color: var(--bright-ai-ink);
  box-shadow: 0 8px 26px rgba(18, 184, 134, 0.11);
  backdrop-filter: blur(16px);
}

.brand strong,
.user-area,
.main-nav a {
  color: var(--bright-ai-ink);
}

.brand small {
  color: var(--bright-ai-muted);
}

.brand-mark,
.brand-badge {
  border-color: rgba(18, 184, 134, 0.36);
  background: #e4fbf5;
  color: var(--bright-ai-green);
  box-shadow: inset 0 0 18px rgba(18, 184, 134, 0.14);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(18, 184, 134, 0.08);
  border-bottom-color: var(--bright-ai-green);
  color: var(--bright-ai-ink);
}

.ghost-button {
  border-color: var(--bright-ai-line);
  color: var(--bright-ai-ink);
}

.page {
  width: min(1180px, calc(100% - 32px));
}

.notice-band {
  position: relative;
  overflow: hidden;
  align-items: center;
  min-height: 220px;
  border: 1px solid var(--bright-ai-line);
  border-top: 6px solid var(--bright-ai-green);
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(112deg, #ffffff 0%, #f2fffc 52%, #dff8f5 100%);
  color: var(--bright-ai-ink);
  box-shadow: var(--bright-ai-shadow);
}

.notice-band::after {
  display: block;
  content: "";
  position: absolute;
  inset: auto -12% -42% 38%;
  height: 190px;
  background: linear-gradient(90deg, transparent, rgba(18, 184, 134, 0.18), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.notice-band h1 {
  max-width: 620px;
  color: var(--bright-ai-green);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.08;
}

.notice-band p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--bright-ai-muted);
  font-size: 18px;
}

.section-kicker {
  color: var(--bright-ai-green);
}

.notice-band .secondary-button {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--bright-ai-line);
  color: var(--bright-ai-ink);
}

.engine-version {
  display: grid;
  gap: 8px;
  min-width: 132px;
  color: var(--bright-ai-ink);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  z-index: 1;
}

.engine-version::after {
  color: var(--bright-ai-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.stat-card,
.run-panel,
.job-panel,
.content-panel,
.integration-panel {
  border-color: var(--bright-ai-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--bright-ai-shadow);
}

.stat-card {
  border-top-color: var(--bright-ai-green);
}

.stat-card:nth-child(2) {
  border-top-color: var(--bright-ai-pink);
}

.stat-card:nth-child(3) {
  border-top-color: var(--bright-ai-cyan);
}

.stat-card:nth-child(4) {
  border-top-color: var(--bright-ai-gold);
}

.stat-card strong,
.panel-title h2,
.content-header h2,
.integration-panel h2,
.balance-strip h3 {
  color: var(--bright-ai-ink);
}

.stat-card strong {
  color: var(--bright-ai-green);
}

.stat-card span,
.stat-card small,
.job-meta dt,
.field-row span,
.match-code,
.match-card h3 small {
  color: var(--bright-ai-muted);
}

.secondary-button,
.field-row input,
.login-form input {
  border-color: var(--bright-ai-line);
  background: var(--bright-ai-panel);
  color: var(--bright-ai-ink);
}

.secondary-button:hover,
.secondary-button.active {
  border-color: var(--bright-ai-green);
  background: #e4fbf5;
}

.content-header,
.prediction-head {
  border-bottom-color: var(--bright-ai-line);
}

.balance-strip {
  border-color: var(--bright-ai-line);
  background: rgba(255, 255, 255, 0.82);
}

.balance-chip,
.match-meta span,
.match-foot span,
.goal-summary span,
.goal-top-list span,
.filter-summary b,
.integration-metrics b,
.artifact-strip span {
  border-color: rgba(18, 184, 134, 0.2);
  background: #e9fbf6;
  color: var(--bright-ai-green);
}

.match-grid {
  grid-template-columns: minmax(0, 940px);
  justify-content: start;
  gap: 28px;
}

.match-card {
  position: relative;
  gap: 16px;
  border-color: var(--bright-ai-line);
  border-left: 6px solid var(--bright-ai-green);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 252, 0.98));
  box-shadow: var(--bright-ai-shadow);
}

.match-card::before {
  display: block;
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--bright-ai-green);
  box-shadow: 0 0 18px rgba(18, 184, 134, 0.55);
}

.match-card h3 {
  color: var(--bright-ai-ink);
  font-size: 28px;
  font-weight: 900;
}

.decision-pill {
  border: 1px solid var(--bright-ai-line);
  background: #eef8f7;
  color: var(--bright-ai-green);
}

.decision-pill.warning {
  background: #fff7df;
  color: var(--bright-ai-gold);
}

.decision-pill.positive {
  background: #e9fbf6;
  color: var(--bright-ai-green);
}

.decision-pill.neutral {
  background: #e7f8fb;
  color: var(--bright-ai-cyan);
}

.decision-pill.muted {
  background: #f2f5f5;
  color: var(--bright-ai-muted);
}

.ai-signal-grid div {
  border-color: var(--bright-ai-line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 18px rgba(18, 184, 134, 0.08);
}

.ai-signal-grid span {
  color: var(--bright-ai-muted);
}

.ai-signal-grid b {
  color: var(--bright-ai-green);
  font-size: 18px;
}

.ai-signal-grid div:nth-child(2) b {
  color: var(--bright-ai-ink);
}

.ai-signal-grid div:nth-child(3) b {
  color: var(--bright-ai-pink);
}

.analysis-collapse {
  border-color: var(--bright-ai-line);
  background: rgba(255, 255, 255, 0.74);
}

.analysis-collapse summary {
  background: rgba(255, 255, 255, 0.86);
}

.analysis-collapse summary::after,
.analysis-note {
  color: var(--bright-ai-muted);
}

.analysis-collapse summary span {
  color: var(--bright-ai-ink);
  font-weight: 900;
}

.analysis-collapse summary b {
  color: var(--bright-ai-green);
}

.logic-block {
  border-color: var(--bright-ai-line);
  background: var(--bright-ai-panel);
}

.logic-block p {
  color: #334541;
}

.logic-block b {
  color: var(--bright-ai-ink);
}

.logic-point-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logic-point-list.compact {
  gap: 6px;
}

.logic-point {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(18, 184, 134, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 8px 10px;
}

.logic-point span {
  color: var(--bright-ai-green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.logic-point p {
  margin: 0;
  color: #334541;
  font-size: 13px;
  line-height: 1.55;
}

.logic-point.warning {
  border-color: rgba(234, 179, 8, 0.22);
  background: #fffaf0;
}

.logic-point.warning span {
  color: #8a5a00;
}

.logic-point.muted {
  border-color: rgba(100, 116, 139, 0.14);
  background: rgba(248, 250, 252, 0.9);
}

.logic-point.muted span {
  color: var(--bright-ai-muted);
}

.logic-block.primary {
  border-left-color: var(--bright-ai-green);
}

.logic-block.primary h4 {
  color: var(--bright-ai-green);
}

.logic-block.schedule {
  border-left-color: var(--bright-ai-gold);
  background: #fffaf0;
}

.logic-block.schedule h4,
.logic-block.schedule b {
  color: #8a5a00;
}

.logic-block.data {
  border-left-color: var(--bright-ai-cyan);
  background: #effbfc;
}

.logic-block.data h4,
.logic-block.data b {
  color: var(--bright-ai-cyan);
}

.info-line span,
.alert-list span,
.score-chip-list span,
.betting-compare-list span {
  border-color: var(--bright-ai-line);
  background: var(--bright-ai-soft);
  color: #334541;
}

.alert-list span {
  border-color: rgba(217, 119, 6, 0.24);
  background: #fff7df;
  color: #334155;
}

.score-chip-list span {
  border-color: rgba(18, 184, 134, 0.22);
  background: #e9fbf6;
}

.score-chip-list b {
  color: var(--bright-ai-green);
}

.xg-strip div,
.metric-grid div,
.odds-grid div,
.job-meta div,
.filter-summary,
.prediction-panel {
  border-color: var(--bright-ai-line);
  background: var(--bright-ai-soft);
}

.xg-strip span,
.metric-grid span,
.odds-grid span {
  color: var(--bright-ai-muted);
}

.xg-strip b,
.metric-grid b,
.odds-grid b,
.prediction-row b {
  color: var(--bright-ai-green);
}

.prediction-row span {
  color: #334541;
}

.prediction-bar {
  background: #dbeeea;
}

.prediction-bar i {
  background: linear-gradient(90deg, var(--bright-ai-green), var(--bright-ai-cyan));
  box-shadow: 0 0 12px rgba(18, 184, 134, 0.22);
}

.candidate-row {
  border-left-color: var(--bright-ai-gold);
  background: #fffaf0;
}

.candidate-row strong {
  color: var(--bright-ai-ink);
}

.candidate-row span {
  color: #4d5f5b;
}

.team-fundamental-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.team-fundamental-panel {
  border: 1px solid var(--bright-ai-line);
  border-left: 3px solid var(--bright-ai-green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.team-fundamental-panel:nth-child(2) {
  border-left-color: var(--bright-ai-cyan);
}

.team-fundamental-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.team-fundamental-title span {
  color: var(--bright-ai-muted);
  font-size: 12px;
  font-weight: 800;
}

.team-fundamental-title strong {
  color: var(--bright-ai-ink);
  font-size: 17px;
  font-weight: 900;
  text-align: right;
}

.team-fundamental-panel p {
  margin: 5px 0;
  color: #334541;
  font-size: 13px;
  line-height: 1.55;
}

.team-fundamental-tags,
.team-metric-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.team-fundamental-tags span,
.team-metric-list span {
  border: 1px solid var(--bright-ai-line);
  border-radius: 999px;
  background: var(--bright-ai-soft);
  color: #334541;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.3;
}

.team-metric-list span {
  border-color: rgba(18, 184, 134, 0.22);
  background: #e9fbf6;
  color: var(--bright-ai-ink);
}

.model-prediction-collapse summary {
  border-left-color: var(--bright-ai-gold);
}

.model-prediction-conclusion {
  margin: 12px 0 0;
  border: 1px solid rgba(197, 141, 32, 0.22);
  border-left: 4px solid var(--bright-ai-gold);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fffaf0;
  color: var(--bright-ai-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.68;
}

.model-capability-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.model-capability-grid div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  border: 1px solid var(--bright-ai-line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.86);
}

.model-capability-grid span,
.model-capability-grid small {
  color: var(--bright-ai-muted);
  font-size: 12px;
  font-weight: 800;
}

.model-capability-grid b {
  color: var(--bright-ai-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.model-reason-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.model-reason-list li {
  border-left: 3px solid rgba(15, 118, 110, 0.28);
  padding-left: 11px;
  color: #334541;
  font-size: 14px;
  line-height: 1.6;
}

.report-body h1,
.report-body h2,
.report-body h3 {
  color: var(--bright-ai-ink);
}

.report-body p,
.report-body li {
  color: #334541;
}

.report-body th {
  background: var(--bright-ai-green);
  color: #ffffff;
}

.report-body td {
  background: rgba(255, 255, 255, 0.92);
  color: #334541;
}

.report-body tr:nth-child(even) td {
  background: #f4fbfa;
}

@media (max-width: 1120px) {
  .match-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .notice-band {
    min-height: 0;
  }

  .notice-band h1 {
    font-size: 34px;
  }

  .engine-version {
    justify-items: start;
    text-align: left;
  }

  .ai-signal-grid,
  .odds-grid,
  .model-capability-grid,
  .team-fundamental-grid {
    grid-template-columns: 1fr;
  }

  .logic-point {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .notice-band h1 {
    font-size: 30px;
  }

  .notice-band p {
    font-size: 15px;
  }

  .match-card {
    border-left-width: 4px;
  }

  .match-card h3 {
    font-size: 22px;
  }
}

/* Final blue theme adjustment. */
:root {
  --teal-600: #1d4ed8;
  --ai-green: #1d4ed8;
  --ai-cyan: #0ea5e9;
  --bright-ai-bg: #edf5ff;
  --bright-ai-soft: #f3f8ff;
  --bright-ai-line: #b8d2f1;
  --bright-ai-green: #1d4ed8;
  --bright-ai-cyan: #0f76bc;
  --bright-ai-ink: #0b1f3a;
  --bright-ai-muted: #425466;
  --bright-ai-shadow: 0 18px 44px rgba(29, 78, 216, 0.13);
}

body {
  background:
    linear-gradient(115deg, rgba(240, 247, 255, 0.98), rgba(250, 252, 255, 0.98) 50%, rgba(226, 240, 255, 0.92)),
    var(--bright-ai-bg);
  color: var(--bright-ai-ink);
}

.topbar {
  border-bottom-color: var(--bright-ai-line);
  box-shadow: 0 8px 26px rgba(29, 78, 216, 0.11);
}

.brand-mark,
.brand-badge {
  border-color: rgba(29, 78, 216, 0.34);
  background: #eaf2ff;
  color: var(--bright-ai-green);
  box-shadow: inset 0 0 18px rgba(29, 78, 216, 0.12);
}

.main-nav a:hover,
.main-nav a.active,
.secondary-button:hover,
.secondary-button.active {
  background: #eaf2ff;
  border-bottom-color: var(--bright-ai-green);
}

.notice-band {
  border-color: var(--bright-ai-line);
  border-top-color: var(--bright-ai-green);
  background: linear-gradient(112deg, #ffffff 0%, #f2f7ff 52%, #dfeeff 100%);
}

.notice-band::after {
  background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.18), transparent);
}

.notice-band h1,
.section-kicker,
.stat-card strong,
.decision-pill,
.decision-pill.positive,
.ai-signal-grid b,
.analysis-collapse summary b,
.logic-point span,
.logic-block.primary h4,
.score-chip-list b,
.xg-strip b,
.metric-grid b,
.odds-grid b,
.prediction-row b {
  color: var(--bright-ai-green);
}

.notice-band p,
.logic-block p,
.logic-point p,
.analysis-note,
.info-line span,
.betting-compare-list span,
.candidate-row span,
.team-fundamental-panel p,
.team-fundamental-tags span,
.report-body p,
.report-body li,
.report-body td {
  color: #1f324a;
}

.stat-card span,
.stat-card small,
.job-meta dt,
.field-row span,
.match-code,
.match-card h3 small,
.xg-strip span,
.metric-grid span,
.odds-grid span,
.team-fundamental-title span {
  color: var(--bright-ai-muted);
}

.data-date-row span,
.balance-chip,
.match-meta span,
.match-foot span,
.goal-summary span,
.goal-top-list span,
.filter-summary b,
.integration-metrics b,
.artifact-strip span,
.score-chip-list span,
.team-metric-list span {
  border-color: rgba(29, 78, 216, 0.22);
  background: #eaf2ff;
  color: var(--bright-ai-green);
}

.data-date-row b {
  border-color: rgba(217, 70, 115, 0.3);
  background: #fff0f5;
  color: var(--bright-ai-pink);
}

.match-card,
.team-fundamental-panel {
  border-left-color: var(--bright-ai-green);
}

.match-card::before {
  background: var(--bright-ai-green);
  box-shadow: 0 0 18px rgba(29, 78, 216, 0.48);
}

.ai-signal-grid div,
.logic-point {
  border-color: rgba(29, 78, 216, 0.14);
  box-shadow: inset 0 0 18px rgba(29, 78, 216, 0.07);
}

.logic-block.primary {
  border-left-color: var(--bright-ai-green);
}

.logic-block.data {
  border-left-color: var(--bright-ai-cyan);
  background: #eef7ff;
}

.logic-block.data h4,
.logic-block.data b {
  color: var(--bright-ai-cyan);
}

.team-fundamental-panel:nth-child(2) {
  border-left-color: var(--bright-ai-cyan);
}

.prediction-bar {
  background: #dbe8f8;
}

.prediction-bar i {
  background: linear-gradient(90deg, var(--bright-ai-green), var(--bright-ai-cyan));
  box-shadow: 0 0 12px rgba(29, 78, 216, 0.2);
}

.report-body th {
  background: var(--bright-ai-green);
}

/* Today match-only page */
.today-hero {
  min-height: 0;
  padding: 24px 28px;
}

.today-hero h1 {
  font-size: 36px;
}

.today-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-error {
  border: 1px solid #f3c4c4;
  border-radius: 8px;
  background: #fff0f5;
  color: var(--bright-ai-pink);
  padding: 12px 14px;
}

.match-summary-panel {
  margin-bottom: 18px;
}

.summary-header {
  align-items: center;
}

.summary-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--bright-ai-green);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.summary-list {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.summary-row {
  display: grid;
  grid-template-columns: 82px 136px minmax(88px, 0.68fr) minmax(220px, 1.45fr) minmax(105px, 0.72fr) minmax(116px, 0.82fr) 76px minmax(98px, 0.72fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--bright-ai-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
  color: #1f324a;
  font-size: 13px;
}

.summary-row:not(.summary-row-head):hover {
  border-color: rgba(29, 78, 216, 0.36);
  background: #f4f8ff;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.09);
}

.summary-row-head {
  min-height: 34px;
  background: #eaf2ff;
  color: var(--bright-ai-muted);
  font-weight: 900;
}

.summary-code {
  color: var(--bright-ai-green);
  font-weight: 900;
}

.summary-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.summary-teams b {
  color: var(--bright-ai-ink);
  overflow-wrap: anywhere;
}

.summary-teams small {
  color: var(--bright-ai-muted);
  font-weight: 800;
}

.mobile-inline-model {
  display: none;
}

.mobile-detail-collapse {
  display: none;
}

.match-detail-panel {
  margin-bottom: 18px;
}

.detail-match-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.summary-detail-grid {
  margin-top: 16px;
}

.match-detail-card {
  scroll-margin-top: 92px;
}

.team-lineup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-lineup div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--bright-ai-line);
  border-radius: 8px;
  background: var(--bright-ai-soft);
  padding: 12px;
}

.team-lineup span {
  color: var(--bright-ai-muted);
  font-size: 12px;
  font-weight: 800;
}

.team-lineup strong {
  color: var(--bright-ai-ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.probability-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.goal-score-distribution {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.score-distribution-panel .prediction-bar i {
  background: linear-gradient(90deg, #0f766e, #0ea5e9);
}

.odds-market-grid {
  display: grid;
  gap: 14px;
}

.odds-market-panel {
  overflow: hidden;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.odds-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid rgba(29, 78, 216, 0.12);
  background: linear-gradient(90deg, #f1f7ff, #f3fbfa);
  padding: 0 14px;
}

.odds-market-head span {
  color: #0b1f3a;
  font-size: 16px;
  font-weight: 900;
}

.odds-market-head small {
  color: #52657b;
  font-size: 13px;
  font-weight: 900;
}

.odds-market-table {
  display: grid;
  overflow-x: auto;
}

.odds-market-row {
  display: grid;
  grid-template-columns: minmax(76px, 1.1fr) repeat(6, minmax(64px, 0.72fr));
  gap: 8px;
  align-items: center;
  min-width: 680px;
  min-height: 38px;
  border-bottom: 1px solid rgba(29, 78, 216, 0.08);
  padding: 7px 12px;
}

.odds-market-row:last-child {
  border-bottom: 0;
}

.odds-market-row-head {
  min-height: 34px;
  background: rgba(234, 242, 255, 0.8);
  color: #52657b;
  font-size: 13px;
  font-weight: 900;
}

.odds-market-row span,
.odds-market-row b {
  font-size: 14px;
  line-height: 1.25;
}

.odds-market-row b {
  color: #1d4ed8;
  font-weight: 900;
}

.odds-move {
  color: #52657b;
  font-weight: 900;
}

.odds-move.升 {
  color: #b45309;
}

.odds-move.降 {
  color: #0f766e;
}

@media (max-width: 1120px) {
  .today-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-row {
    grid-template-columns: 76px 132px minmax(82px, 0.7fr) minmax(210px, 1.5fr);
  }

  .summary-row span:nth-child(5),
  .summary-row span:nth-child(6) {
    display: none;
  }
}

@media (max-width: 820px) {
  .today-hero h1 {
    font-size: 30px;
  }

  .summary-row,
  .summary-row-head {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .summary-row span:nth-child(2),
  .summary-row span:nth-child(3),
  .summary-row span:nth-child(5),
  .summary-row span:nth-child(6),
  .summary-row-head {
    display: none;
  }

  .summary-teams {
    align-items: flex-start;
  }

  .team-lineup,
  .probability-sections,
  .goal-score-distribution {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .today-stats {
    grid-template-columns: 1fr;
  }

  .today-hero {
    padding: 16px;
  }
}

/* Premium match desk refinement */
body {
  background:
    linear-gradient(120deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98) 48%, rgba(234, 250, 247, 0.95)),
    #eef5ff;
  font-size: 16px;
  line-height: 1.6;
}

.topbar-inner {
  height: 72px;
}

.brand strong {
  font-size: 20px;
}

.brand small {
  font-size: 13px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 900;
}

.page {
  width: min(1360px, calc(100% - 36px));
  padding-top: 22px;
}

.notice-band.today-hero {
  isolation: isolate;
  min-height: 0;
  border: 1px solid rgba(15, 46, 86, 0.18);
  border-top: 0;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(7, 27, 58, 0.98), rgba(16, 72, 132, 0.96) 58%, rgba(13, 122, 111, 0.96)),
    #0b2f5f;
  color: #ffffff;
  padding: 34px 36px;
  box-shadow: 0 22px 48px rgba(15, 46, 86, 0.2);
}

.notice-band.today-hero::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px);
  opacity: 0.48;
  transform: none;
  pointer-events: none;
}

.today-hero h1 {
  color: #ffffff;
  font-size: 42px;
  line-height: 1.12;
}

.today-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.today-hero .section-kicker {
  color: #7dd3fc;
}

.today-stats {
  gap: 16px;
}

.stat-card {
  min-height: 112px;
  padding: 18px 20px;
}

.stat-card span,
.stat-card small {
  font-size: 14px;
}

.stat-card strong {
  font-size: 26px;
}

.content-panel {
  border-radius: 8px;
  padding: 20px;
}

.content-header {
  margin-bottom: 18px;
}

.content-header h2 {
  font-size: 22px;
}

.section-kicker {
  font-size: 14px;
}

.summary-count {
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
}

.summary-list {
  gap: 8px;
}

.summary-row {
  grid-template-columns: 92px 170px minmax(100px, 0.72fr) minmax(280px, 1.55fr) minmax(140px, 0.88fr) 88px;
  min-height: 52px;
  padding: 11px 14px;
  border-color: rgba(29, 78, 216, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: #142b4a;
  font-size: 15px;
}

.summary-row-head {
  min-height: 40px;
  background: linear-gradient(90deg, #e8f1ff, #edf8f7);
  color: #52657b;
  font-size: 14px;
}

.summary-row:not(.summary-row-head):hover {
  border-color: rgba(29, 78, 216, 0.38);
  background: #f8fbff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.12);
}

.summary-teams b {
  font-size: 16px;
}

.detail-match-grid {
  gap: 10px;
}

.match-detail-shell,
.summary-match-shell {
  scroll-margin-top: 94px;
  overflow: hidden;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.08);
}

.match-detail-shell[open],
.summary-match-shell[open] {
  border-color: rgba(29, 78, 216, 0.34);
  box-shadow: 0 20px 42px rgba(15, 46, 86, 0.14);
}

.match-detail-summary {
  display: grid;
  grid-template-columns: 92px 150px minmax(100px, 0.68fr) minmax(260px, 1.42fr) minmax(126px, 0.74fr) minmax(126px, 0.82fr) 104px minmax(112px, 0.72fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.match-detail-summary::-webkit-details-marker {
  display: none;
}

.match-detail-summary:hover {
  background: linear-gradient(90deg, #f8fbff, #f3fbfa);
}

.detail-summary-code,
.summary-code {
  color: #1d4ed8;
  font-weight: 900;
}

.detail-summary-time,
.detail-summary-league,
.detail-summary-handicap,
.summary-model-prediction,
.detail-summary-model {
  color: #425466;
  font-weight: 800;
}

.summary-model-prediction,
.detail-summary-model {
  overflow: hidden;
  border-radius: 999px;
  background: #eef7ff;
  color: #0f76bc;
  padding: 6px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-summary-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #0b1f3a;
}

.detail-summary-teams b {
  font-size: 17px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.detail-summary-teams small {
  color: #6b7f7a;
  font-size: 13px;
  font-weight: 900;
}

.detail-open-text {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 900;
}

.match-detail-shell[open] .detail-open-text,
.summary-match-shell[open] .detail-open-text {
  font-size: 0;
  background: #0f766e;
  color: #ffffff;
}

.match-detail-shell[open] .detail-open-text::before,
.summary-match-shell[open] .detail-open-text::before {
  content: "收起详情";
  font-size: 14px;
}

.match-detail-card {
  border: 0;
  border-top: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: none;
  padding: 20px;
}

.match-detail-placeholder {
  border-top: 1px solid rgba(29, 78, 216, 0.12);
  padding: 18px 20px;
  color: #64748b;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.match-detail-placeholder > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.public-page {
  min-height: 100vh;
  background: #eef3f8;
  color: var(--ink-900);
  overflow-x: hidden;
}

.public-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  padding: 0 18px;
  background: rgba(7, 52, 111, 0.94);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(7, 52, 111, 0.18);
}

.public-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 640px;
  background:
    linear-gradient(118deg, rgba(7, 52, 111, 0.98) 0%, rgba(10, 77, 149, 0.94) 54%, rgba(22, 143, 122, 0.92) 100%),
    #07346f;
  pointer-events: none;
}

.public-brand,
.public-nav,
.public-hero,
.public-section,
.public-footer {
  position: relative;
}

.public-nav {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 6px;
  min-width: 0;
}

.public-nav a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.public-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: stretch;
  gap: 42px;
  width: min(1240px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  padding: 72px 0 56px;
  color: var(--white);
}

.public-subhero {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 22px;
  padding: 58px 0 42px;
  color: var(--white);
}

.public-subhero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.public-subhero p {
  width: min(760px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.public-match-hero h1 {
  overflow-wrap: anywhere;
}

.public-hero-copy {
  display: grid;
  align-content: center;
  gap: 24px;
}

.public-hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: 0;
}

.public-hero p,
.public-signal-band p,
.public-feature-grid p,
.public-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 800;
}

.ghost-light-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.public-hero-metrics,
.public-signal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 0;
}

.public-hero-metrics div,
.public-signal-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.public-hero-metrics dt,
.public-signal-metrics dt {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.public-hero-metrics dd,
.public-signal-metrics dd {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}

.public-field-visual {
  display: grid;
  align-content: center;
  gap: 18px;
}

.public-scoreboard {
  display: grid;
  gap: 4px;
  width: min(280px, 100%);
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(7, 20, 42, 0.42);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.public-scoreboard span,
.public-scoreboard small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.public-scoreboard strong {
  font-size: 40px;
  line-height: 1;
}

.public-pitch {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 34px, transparent 34px 68px),
    linear-gradient(135deg, #0f6f4f, #15815d 58%, #0d664b);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.public-pitch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-line,
.pitch-dot {
  position: absolute;
  display: block;
}

.pitch-mid {
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.pitch-box {
  top: 74px;
  width: 70px;
  height: 150px;
  border: 2px solid rgba(255, 255, 255, 0.48);
}

.pitch-box.left {
  left: -2px;
  border-left: 0;
}

.pitch-box.right {
  right: -2px;
  border-right: 0;
}

.pitch-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--red-600);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.pitch-dot.one {
  left: 20%;
  top: 28%;
}

.pitch-dot.two {
  left: 38%;
  top: 62%;
  background: var(--gold-500);
}

.pitch-dot.three {
  right: 34%;
  top: 34%;
  background: var(--blue-700);
}

.pitch-dot.four {
  right: 18%;
  bottom: 26%;
  background: var(--teal-600);
}

.public-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 22px;
}

.public-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.public-section-head h2,
.public-signal-band h2,
.public-feature-grid h2,
.public-cta h2 {
  margin: 0;
  letter-spacing: 0;
}

.public-section-head h2 {
  font-size: 28px;
  line-height: 1.2;
}

.public-section-head > span {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

.public-match-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.public-match-card,
.public-feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.public-match-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  min-height: 178px;
  padding: 16px;
}

.public-match-meta,
.public-match-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-500);
  font-size: 13px;
}

.public-match-meta span,
.public-match-foot b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 800;
  white-space: nowrap;
}

.public-upset-card .public-match-foot b {
  white-space: normal;
  line-height: 1.45;
  text-align: right;
}

.public-match-meta b {
  color: var(--red-600);
}

.public-match-teams {
  display: grid;
  gap: 8px;
  color: var(--ink-900);
}

.public-match-teams strong {
  font-size: 20px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.public-match-teams span {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 900;
}

.public-match-foot span {
  overflow-wrap: anywhere;
}

.public-signal-band,
.public-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 24px;
  border-radius: 8px;
  padding: 28px;
  background: linear-gradient(110deg, var(--blue-900), var(--blue-700) 60%, var(--teal-600));
  color: var(--white);
  box-shadow: var(--shadow);
}

.public-signal-band h2,
.public-cta h2 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.24;
}

.public-signal-band p,
.public-cta p {
  margin-top: 12px;
}

.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.public-feature-grid article {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.public-topic-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.public-feature-grid span,
.public-topic-card span {
  color: var(--gold-500);
  font-size: 13px;
  font-weight: 900;
}

.public-feature-grid h2,
.public-topic-card h2 {
  color: var(--blue-900);
  font-size: 22px;
}

.public-feature-grid p,
.public-topic-card p {
  color: var(--ink-700);
  font-size: 15px;
}

.public-topic-card:hover {
  border-color: rgba(18, 104, 179, 0.42);
  transform: translateY(-2px);
}

.public-topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.public-topic-article,
.public-topic-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.public-topic-article {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.public-topic-article section {
  display: grid;
  gap: 10px;
}

.public-topic-article h2,
.public-topic-side h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 24px;
  line-height: 1.24;
}

.public-topic-article p {
  margin: 0;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.75;
}

.public-topic-note {
  border-left: 4px solid var(--gold-500);
  padding: 12px 14px;
  background: #fff8e8;
}

.public-topic-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.public-topic-side dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.public-topic-side dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--soft);
}

.public-topic-side dt,
.public-topic-side dd {
  margin: 0;
}

.public-topic-side dt {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

.public-topic-side dd {
  color: var(--blue-900);
  font-size: 22px;
  font-weight: 900;
}

.public-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 34px;
}

.public-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

.match-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, #f7fbff, #ffffff 48%, #f4fbfa);
  padding: 18px;
}

.match-team-panel {
  display: grid;
  gap: 6px;
}

.match-team-panel.away {
  text-align: right;
}

.match-team-panel span,
.match-versus-panel span,
.match-versus-panel small {
  color: #52657b;
  font-size: 13px;
  font-weight: 900;
}

.match-team-panel strong {
  color: #0b1f3a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.match-versus-panel {
  display: grid;
  justify-items: center;
  gap: 4px;
  border-left: 1px solid rgba(29, 78, 216, 0.16);
  border-right: 1px solid rgba(29, 78, 216, 0.16);
  padding: 6px 10px;
}

.match-versus-panel b {
  color: #0f766e;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.match-meta {
  margin-top: 12px;
}

.match-meta span,
.info-line span,
.score-chip-list span,
.alert-list span,
.team-fundamental-tags span,
.team-metric-list span {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 14px;
}

.analysis-collapse {
  border-color: rgba(29, 78, 216, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

.analysis-collapse summary {
  min-height: 56px;
  padding: 0 18px;
}

.analysis-collapse summary span {
  font-size: 16px;
}

.analysis-collapse summary b {
  font-size: 14px;
}

.collapse-body {
  gap: 14px;
  padding: 0 18px 18px;
}

.logic-block {
  padding: 15px 16px;
}

.logic-block h4 {
  font-size: 16px;
}

.logic-block p,
.logic-point p,
.team-fundamental-panel p,
.analysis-note {
  font-size: 15px;
  line-height: 1.75;
}

.logic-point {
  grid-template-columns: 104px minmax(0, 1fr);
  padding: 10px 12px;
}

.logic-point span {
  font-size: 13px;
}

.team-lineup div,
.team-fundamental-panel,
.prediction-panel,
.odds-grid div,
.xg-strip div {
  border-color: rgba(29, 78, 216, 0.14);
}

.team-lineup strong {
  font-size: 21px;
}

.team-fundamental-title strong {
  font-size: 19px;
}

.xg-strip div {
  min-height: 62px;
  padding: 10px;
}

.xg-strip span,
.odds-grid span,
.prediction-head small {
  font-size: 13px;
}

.xg-strip b {
  font-size: 20px;
}

.prediction-head span {
  font-size: 16px;
}

.prediction-row {
  grid-template-columns: minmax(58px, 86px) minmax(110px, 1fr) 64px;
  min-height: 34px;
}

.prediction-row span,
.prediction-row b,
.odds-grid b {
  font-size: 14px;
}

@media (max-width: 1120px) {
  .summary-row,
  .match-detail-summary {
    grid-template-columns: 86px 150px minmax(96px, 0.75fr) minmax(230px, 1.5fr);
  }

  .match-detail-summary .detail-summary-handicap,
  .match-detail-summary .detail-open-text {
    display: none;
  }
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 24px, 1360px);
  }

  .topbar-inner {
    height: auto;
  }

  .today-hero h1 {
    font-size: 34px;
  }

  .summary-row,
  .match-detail-summary {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .match-detail-summary .detail-summary-time,
  .match-detail-summary .detail-summary-league,
  .match-detail-summary .detail-summary-handicap,
  .match-detail-summary .detail-open-text {
    display: none;
  }

  .match-spotlight {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .goal-score-distribution {
    grid-template-columns: 1fr;
  }

  .match-team-panel.away {
    text-align: left;
  }

  .match-versus-panel {
    justify-items: start;
    border-right: 0;
    border-left: 4px solid #0f766e;
    padding-left: 12px;
  }

  .today-info-grid,
  .logic-point {
    grid-template-columns: 1fr;
  }

  .today-info-section li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .content-panel,
  .match-detail-card {
    padding: 14px;
  }

  .today-hero h1 {
    font-size: 30px;
  }

  .match-team-panel strong {
    font-size: 21px;
  }
}

/* Tech finish */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(29, 78, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 78%);
  pointer-events: none;
}

.today-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: stretch;
}

.hero-console {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 180px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(3, 18, 43, 0.3);
  padding: 20px;
  box-shadow:
    inset 0 0 28px rgba(125, 211, 252, 0.12),
    0 18px 40px rgba(3, 18, 43, 0.18);
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.console-label {
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-console strong {
  color: #ffffff;
  font-size: 56px;
  font-weight: 900;
  line-height: 0.95;
}

.hero-console small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  font-weight: 800;
}

.console-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(125, 211, 252, 0.18);
  padding-top: 12px;
}

.console-grid span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 900;
}

.console-grid b {
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.match-summary-panel,
.match-detail-panel,
.stat-card {
  backdrop-filter: blur(10px);
}

.content-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.summary-row,
.match-detail-shell,
.summary-match-shell {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.summary-row:not(.summary-row-head),
.match-detail-summary {
  position: relative;
}

.summary-row:not(.summary-row-head)::before,
.match-detail-summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #1d4ed8, #0f766e);
  opacity: 0;
  transition: opacity 160ms ease;
}

.summary-row:not(.summary-row-head):hover::before,
.match-detail-shell[open] .match-detail-summary::before,
.summary-match-shell[open] .match-detail-summary::before,
.match-detail-summary:hover::before {
  opacity: 1;
}

.match-detail-shell[open] .match-detail-summary,
.summary-match-shell[open] .match-detail-summary {
  background:
    linear-gradient(90deg, rgba(29, 78, 216, 0.08), rgba(15, 118, 110, 0.06)),
    #ffffff;
}

.match-detail-shell[open] .detail-summary-code,
.summary-match-shell[open] .detail-summary-code {
  color: #0f766e;
}

.match-card::before {
  display: none;
}

.analysis-collapse {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.prediction-bar {
  height: 10px;
}

.prediction-bar i {
  box-shadow: 0 0 12px rgba(29, 78, 216, 0.22);
}

@media (max-width: 900px) {
  .today-hero {
    grid-template-columns: 1fr;
  }

  .hero-console {
    min-height: 0;
  }
}

.match-live-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.today-info-collapse {
  flex: 1 1 100%;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.today-info-collapse > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
}

.today-info-collapse > summary::-webkit-details-marker {
  display: none;
}

.today-info-collapse > summary::after {
  content: "展开";
  margin-left: auto;
  color: #52657b;
  font-size: 12px;
  font-weight: 900;
}

.today-info-collapse[open] > summary::after {
  content: "收起";
}

.today-info-collapse > summary span,
.match-meta .today-info-collapse > summary span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.today-info-collapse > summary b {
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
}

.today-info-collapse.warning > summary b {
  color: #b45309;
}

.today-info-collapse.muted > summary b {
  color: #52657b;
}

.today-info-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(29, 78, 216, 0.12);
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.today-info-headline {
  margin: 0;
  border-left: 4px solid #1d4ed8;
  border-radius: 6px;
  background: #f3f8ff;
  color: #1f324a;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.today-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.today-info-section {
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 12px;
}

.today-info-section h4 {
  margin: 0 0 8px;
  color: #0b1f3a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.today-info-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.today-info-section li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-left: 3px solid rgba(29, 78, 216, 0.18);
  border-radius: 6px;
  background: #f8fbff;
  padding: 7px 9px;
}

.today-info-section li.positive {
  border-left-color: #0f766e;
  background: #effbf7;
}

.today-info-section li.warning {
  border-left-color: #d97706;
  background: #fffaf0;
}

.today-info-section li.muted {
  border-left-color: #94a3b8;
  background: #f8fafc;
}

.today-info-section li strong {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.today-info-section li span,
.match-meta .today-info-section li span {
  display: block;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f324a;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.summary-row.is-near-start:not(.summary-row-head),
.match-detail-shell.is-near-start .match-detail-summary,
.summary-match-shell.is-near-start .match-detail-summary {
  border-color: rgba(217, 119, 6, 0.32);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.16), rgba(255, 255, 255, 0.96));
}

.is-near-start .match-live-status {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(251, 191, 36, 0.16);
  color: #92400e;
}

.summary-row.is-started:not(.summary-row-head) {
  border-color: rgba(185, 28, 28, 0.36);
  background:
    linear-gradient(90deg, rgba(185, 28, 28, 0.18), rgba(254, 242, 242, 0.96)),
    #fff5f5;
  box-shadow: 0 14px 34px rgba(185, 28, 28, 0.14);
}

.summary-row.is-started:not(.summary-row-head)::before,
.match-detail-shell.is-started .match-detail-summary::before,
.summary-match-shell.is-started .match-detail-summary::before {
  width: 4px;
  background: linear-gradient(180deg, #dc2626, #7f1d1d);
  opacity: 1;
}

.summary-row.is-started .summary-code,
.match-detail-shell.is-started .detail-summary-code,
.summary-match-shell.is-started .detail-summary-code {
  color: #b91c1c;
}

.summary-row.is-started .match-live-status,
.match-detail-shell.is-started .match-live-status,
.summary-match-shell.is-started .match-live-status {
  border-color: rgba(185, 28, 28, 0.3);
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 8px 22px rgba(185, 28, 28, 0.18);
}

.match-detail-shell.is-started,
.summary-match-shell.is-started {
  border-color: rgba(185, 28, 28, 0.32);
}

.match-detail-shell.is-started .match-detail-summary,
.match-detail-shell.is-started[open] .match-detail-summary,
.summary-match-shell.is-started .match-detail-summary,
.summary-match-shell.is-started[open] .match-detail-summary {
  background:
    linear-gradient(90deg, rgba(185, 28, 28, 0.18), rgba(254, 242, 242, 0.92)),
    #fff5f5;
}

.match-detail-shell.is-started .match-card,
.summary-match-shell.is-started .match-card {
  border-color: rgba(185, 28, 28, 0.22);
  background:
    linear-gradient(180deg, rgba(254, 242, 242, 0.88), rgba(255, 255, 255, 0.98)),
    #fff;
}

.match-detail-shell.is-started .match-spotlight,
.summary-match-shell.is-started .match-spotlight {
  border-color: rgba(185, 28, 28, 0.2);
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.09), rgba(15, 23, 42, 0.03));
}

.review-hero .hero-console strong {
  color: #67e8f9;
}

.review-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-run-panel {
  margin-bottom: 18px;
}

.review-run-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.review-run-form label {
  display: grid;
  gap: 7px;
  min-width: 220px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.review-run-form input {
  height: 42px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fbff;
  color: var(--ink-900);
  font: inherit;
  font-weight: 800;
}

.review-run-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(29, 78, 216, 0.18);
}

.compact-job-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-timeline {
  display: grid;
  gap: 14px;
}

.review-day-card {
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.review-day-card > summary {
  display: grid;
  grid-template-columns: 76px minmax(220px, 1fr) repeat(3, minmax(96px, 126px));
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.review-day-card > summary::-webkit-details-marker {
  display: none;
}

.review-day-card.settled > summary {
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.08), rgba(15, 118, 110, 0.06));
}

.review-day-card.pending > summary {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.14), rgba(255, 255, 255, 0.9));
}

.review-date-badge {
  display: grid;
  justify-items: center;
  gap: 2px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 8px;
  padding: 8px 6px;
  background: #fff;
}

.review-date-badge b {
  color: #1d4ed8;
  font-size: 24px;
  line-height: 1;
}

.review-date-badge small,
.review-day-title small,
.review-kpi small,
.review-market-grid small {
  color: var(--ink-500);
  font-size: 12px;
}

.review-day-title {
  display: grid;
  gap: 4px;
}

.review-day-title strong {
  color: var(--ink-900);
  font-size: 17px;
}

.review-kpi {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.review-kpi b {
  color: #0f766e;
  font-size: 18px;
}

.review-kpi.muted b {
  color: var(--ink-500);
}

.review-day-body {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.review-section {
  display: grid;
  gap: 12px;
}

.review-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.review-section-head h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 17px;
}

.review-section-head span {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.review-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.review-market-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.review-market-grid span {
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 900;
}

.review-market-grid strong {
  color: #1d4ed8;
  font-size: 22px;
}

.review-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 8px;
}

.review-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.review-table th,
.review-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}

.review-table th {
  background: #f1f5f9;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 900;
}

.review-table td {
  color: var(--ink-700);
  font-weight: 700;
}

.review-table tr.hit td:last-child {
  color: #0f766e;
}

.review-table tr.miss td:last-child {
  color: #b91c1c;
}

.side-split-lines {
  display: grid;
  gap: 8px;
}

.logic-point .side-split-lines p {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 8px;
  padding: 8px 10px 8px 14px;
  color: var(--ink-800, var(--ink-700));
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
}

.logic-point .side-split-lines p::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}

.logic-point .side-split-lines b {
  font-weight: 900;
  white-space: nowrap;
}

.logic-point .side-split-lines .side-home {
  border-color: rgba(29, 78, 216, 0.22);
  background:
    linear-gradient(90deg, rgba(29, 78, 216, 0.14), rgba(239, 246, 255, 0.86)),
    #f8fbff;
}

.logic-point .side-split-lines .side-home::before {
  background: linear-gradient(180deg, #2563eb, #38bdf8);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.28);
}

.logic-point .side-split-lines .side-home b {
  color: #1d4ed8;
}

.logic-point .side-split-lines .side-away {
  border-color: rgba(15, 118, 110, 0.24);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.14), rgba(240, 253, 250, 0.88)),
    #f7fffc;
}

.logic-point .side-split-lines .side-away::before {
  background: linear-gradient(180deg, #0f766e, #22c55e);
  box-shadow: 0 0 14px rgba(15, 118, 110, 0.28);
}

.logic-point .side-split-lines .side-away b {
  color: #0f766e;
}

.logic-point em {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 980px) {
  .review-stats,
  .review-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-day-card > summary {
    grid-template-columns: 68px 1fr;
  }

  .review-kpi {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .review-stats,
  .review-market-grid,
  .compact-job-meta {
    grid-template-columns: 1fr;
  }

  .review-run-form {
    align-items: stretch;
  }

  .review-run-form label,
  .review-run-form button {
    width: 100%;
  }
}

.ping-hf-hero {
  border-top-color: #00a3a3;
  background:
    linear-gradient(115deg, #061b3b 0%, #0d4f8f 46%, #0f766e 76%, #b7791f 100%);
}

.ping-console {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(3, 12, 32, 0.34);
  box-shadow: inset 0 0 28px rgba(0, 194, 203, 0.22);
}

.ping-hf-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ping-model-note {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.ping-fold-panel > summary {
  cursor: pointer;
  list-style: none;
}

.ping-fold-panel > summary::-webkit-details-marker {
  display: none;
}

.ping-fold-panel > summary::after {
  content: "展开";
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 28px;
  border-radius: 8px;
  background: #eef5ff;
  color: #0a4d95;
  font-size: 12px;
  font-weight: 900;
}

.ping-fold-panel[open] > summary::after {
  content: "收起";
}

.ping-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ping-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(13, 79, 143, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96)),
    var(--white);
  box-shadow: 0 10px 26px rgba(14, 44, 82, 0.10);
}

.ping-card.strong {
  border-color: rgba(196, 49, 49, 0.28);
  box-shadow: 0 12px 30px rgba(196, 49, 49, 0.12);
}

.ping-card.medium {
  border-color: rgba(15, 118, 110, 0.26);
}

.ping-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ping-card-head strong {
  display: block;
  color: var(--ink-900);
  font-size: 17px;
  line-height: 1.25;
}

.ping-card-head small {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.ping-card-head > b {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 28px;
  border-radius: 8px;
  background: #e9f3ff;
  color: #0a4d95;
  font-size: 13px;
}

.ping-card.strong .ping-card-head > b {
  background: #fff1f1;
  color: #b91c1c;
}

.ping-issue {
  display: grid;
  align-items: center;
  min-width: 82px;
  min-height: 42px;
  border-radius: 8px;
  background: #07346f;
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  padding: 6px 9px;
}

.ping-issue small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.ping-issue b {
  color: #fff;
  font-size: 13px;
}

.ping-main-prob {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(100deg, rgba(15, 118, 110, 0.11), rgba(233, 243, 255, 0.88)),
    #f8fbff;
}

.ping-main-prob span,
.ping-main-prob small,
.ping-prob-grid span,
.ping-odds-line span,
.ping-reason-list li {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.ping-main-prob strong {
  color: #0f766e;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.ping-prob-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ping-prob-grid div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(13, 79, 143, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fbff;
}

.ping-prob-grid b {
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.2;
}

.ping-odds-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ping-odds-line span {
  border: 1px solid rgba(217, 154, 32, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(217, 154, 32, 0.08);
  color: #8a5a0a;
}

.ping-reason-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ping-reason-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.45;
}

.ping-reason-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00a3a3;
  box-shadow: 0 0 10px rgba(0, 163, 163, 0.45);
}

.ping-review-table td:nth-child(7),
.ping-review-table td:nth-child(8) {
  font-weight: 900;
}

@media (max-width: 1180px) {
  .ping-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ping-hf-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ping-card-grid,
  .ping-hf-stats,
  .ping-prob-grid {
    grid-template-columns: 1fr;
  }

  .ping-card-head {
    grid-template-columns: 1fr;
  }

  .ping-card-head > b,
  .ping-issue {
    width: fit-content;
  }

  .ping-main-prob strong {
    font-size: 28px;
  }
}

.viewport-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 124px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.09);
}

.viewport-switch button {
  flex: 1;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.viewport-switch button.active {
  background: #ffffff;
  color: #07346f;
  box-shadow: 0 8px 18px rgba(3, 18, 43, 0.16);
}

html[data-view-mode="mobile"] body {
  min-width: 0;
  background:
    linear-gradient(180deg, #eef5ff, #ffffff 45%, #eefaf8),
    #f6f9fd;
}

html[data-view-mode="mobile"] .topbar {
  min-width: 0;
}

html[data-view-mode="mobile"] .topbar-inner {
  width: min(430px, calc(100% - 18px));
  height: auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

html[data-view-mode="mobile"] .brand {
  flex: 1 1 calc(100% - 138px);
  min-width: 0;
}

html[data-view-mode="mobile"] .brand-mark {
  width: 36px;
  height: 36px;
}

html[data-view-mode="mobile"] .brand strong {
  font-size: 16px;
}

html[data-view-mode="mobile"] .brand small {
  font-size: 11px;
}

html[data-view-mode="mobile"] .viewport-switch {
  order: 2;
  min-width: 116px;
}

html[data-view-mode="mobile"] .main-nav {
  order: 4;
  flex: 1 1 100%;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

html[data-view-mode="mobile"] .main-nav::-webkit-scrollbar {
  display: none;
}

html[data-view-mode="mobile"] .main-nav a {
  flex: 0 0 auto;
  min-width: 96px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

html[data-view-mode="mobile"] .main-nav a.active {
  border-bottom-color: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
}

html[data-view-mode="mobile"] .user-area {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  justify-content: space-between;
}

html[data-view-mode="mobile"] .page {
  width: min(430px, calc(100% - 18px));
  padding: 12px 0 28px;
}

html[data-view-mode="mobile"] .notice-band.today-hero {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
}

html[data-view-mode="mobile"] .today-hero h1 {
  font-size: 29px;
}

html[data-view-mode="mobile"] .today-hero p {
  font-size: 14px;
}

html[data-view-mode="mobile"] .hero-console {
  min-height: 0;
  padding: 14px;
}

html[data-view-mode="mobile"] .hero-console strong {
  font-size: 40px;
}

html[data-view-mode="mobile"] .data-date-row {
  gap: 6px;
}

html[data-view-mode="mobile"] .data-date-row span,
html[data-view-mode="mobile"] .data-date-row b {
  width: 100%;
  justify-content: flex-start;
}

html[data-view-mode="mobile"] .stats-grid,
html[data-view-mode="mobile"] .today-stats,
html[data-view-mode="mobile"] .review-stats,
html[data-view-mode="mobile"] .ping-hf-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-view-mode="mobile"] .stat-card {
  min-height: 92px;
  padding: 12px;
}

html[data-view-mode="mobile"] .stat-card span,
html[data-view-mode="mobile"] .stat-card small {
  font-size: 12px;
}

html[data-view-mode="mobile"] .stat-card strong {
  font-size: 21px;
}

html[data-view-mode="mobile"] .content-panel,
html[data-view-mode="mobile"] .match-detail-card {
  padding: 14px;
}

html[data-view-mode="mobile"] .content-header {
  gap: 10px;
  align-items: flex-start;
}

html[data-view-mode="mobile"] .content-header h2 {
  font-size: 19px;
}

html[data-view-mode="mobile"] .summary-row-head {
  display: none;
}

html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-areas:
    "code teams"
    "time teams"
    "league status";
  gap: 6px 10px;
  min-height: 0;
  padding: 12px;
  font-size: 13px;
}

html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span {
  display: block;
  min-width: 0;
}

html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(1) {
  grid-area: code;
}

html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(2) {
  grid-area: time;
  color: #52657b;
  font-size: 12px;
  font-weight: 800;
}

html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(3) {
  grid-area: league;
  color: #52657b;
  font-size: 12px;
  font-weight: 800;
}

html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(4) {
  grid-area: teams;
}

html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(5) {
  display: none;
}

html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(6) {
  grid-area: status;
  align-self: center;
  justify-self: start;
}

html[data-view-mode="mobile"] .summary-teams {
  display: grid;
  gap: 3px;
}

html[data-view-mode="mobile"] .summary-teams small {
  display: none;
}

html[data-view-mode="mobile"] .summary-teams b {
  font-size: 14px;
  line-height: 1.25;
}

html[data-view-mode="mobile"] .match-detail-summary {
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-areas:
    "code teams"
    "time teams"
    "league status";
  gap: 6px 10px;
  min-height: 0;
  padding: 12px;
}

html[data-view-mode="mobile"] .detail-summary-code {
  grid-area: code;
}

html[data-view-mode="mobile"] .detail-summary-time {
  display: block;
  grid-area: time;
  color: #52657b;
  font-size: 12px;
}

html[data-view-mode="mobile"] .detail-summary-league {
  display: block;
  grid-area: league;
  color: #52657b;
  font-size: 12px;
}

html[data-view-mode="mobile"] .detail-summary-teams {
  grid-area: teams;
  display: grid;
  gap: 3px;
}

html[data-view-mode="mobile"] .detail-summary-teams small,
html[data-view-mode="mobile"] .detail-summary-handicap,
html[data-view-mode="mobile"] .detail-open-text {
  display: none;
}

html[data-view-mode="mobile"] .detail-summary-teams b {
  font-size: 15px;
  line-height: 1.25;
}

html[data-view-mode="mobile"] .detail-live-status {
  grid-area: status;
  align-self: center;
  justify-self: start;
}

html[data-view-mode="mobile"] .match-spotlight,
html[data-view-mode="mobile"] .team-lineup,
html[data-view-mode="mobile"] .probability-sections,
html[data-view-mode="mobile"] .goal-score-distribution,
html[data-view-mode="mobile"] .today-info-grid,
html[data-view-mode="mobile"] .team-fundamental-grid,
html[data-view-mode="mobile"] .xg-strip,
html[data-view-mode="mobile"] .review-market-grid,
html[data-view-mode="mobile"] .compact-job-meta,
html[data-view-mode="mobile"] .ping-card-grid,
html[data-view-mode="mobile"] .ping-prob-grid {
  grid-template-columns: 1fr;
}

html[data-view-mode="mobile"] .match-spotlight {
  padding: 14px;
}

html[data-view-mode="mobile"] .today-info-section li {
  grid-template-columns: 1fr;
  gap: 3px;
}

.summary-row {
  grid-template-columns: 92px 170px minmax(100px, 0.66fr) minmax(260px, 1.45fr) minmax(128px, 0.74fr) 104px 128px;
}

.match-detail-summary {
  grid-template-columns: 92px 170px minmax(100px, 0.66fr) minmax(260px, 1.45fr) minmax(128px, 0.74fr) 104px 128px 104px;
}

.summary-today-chip,
.detail-today-chip,
.summary-open-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-height: 30px;
  border: 1px solid rgba(29, 78, 216, 0.24);
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.summary-today-chip b,
.detail-today-chip b {
  color: #0f766e;
  font-size: 12px;
}

.summary-open-chip {
  background: #0f766e;
  border-color: rgba(15, 118, 110, 0.32);
  color: #ffffff;
}

.summary-today-chip.warning,
.detail-today-chip.warning {
  border-color: rgba(217, 119, 6, 0.28);
  background: #fff7df;
  color: #92400e;
}

.summary-today-chip.warning b,
.detail-today-chip.warning b {
  color: #b45309;
}

.summary-today-chip.muted,
.detail-today-chip.muted {
  border-color: rgba(100, 116, 139, 0.18);
  background: #f8fafc;
  color: #52657b;
}

@media (max-width: 1120px) {
  .summary-row,
  .match-detail-summary {
    grid-template-columns: 86px 150px minmax(96px, 0.6fr) minmax(210px, 1.25fr) 98px;
  }

  .summary-row span:nth-child(5),
  .match-detail-summary .detail-summary-handicap,
  .match-detail-summary .detail-open-text {
    display: none;
  }

  .summary-row span:nth-child(6),
  .match-detail-summary .detail-live-status {
    display: none;
  }
}

@media (max-width: 820px) {
  .summary-row:not(.summary-row-head) {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "time teams"
      "league status"
      "league info";
  }

  .summary-row:not(.summary-row-head) > span:nth-child(6) {
    display: inline-flex;
    grid-area: status;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(7) {
    grid-area: info;
    align-self: center;
    justify-self: start;
  }

  .match-detail-summary {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "time teams"
      "league status"
      "league info";
  }

  .match-detail-summary .detail-live-status {
    display: inline-flex;
  }

  .detail-today-chip {
    grid-area: info;
    align-self: center;
    justify-self: start;
  }

}

.today-info-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-style: normal;
}

.today-info-sources a,
.today-info-sources span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  padding: 2px 8px;
  background: #f8fbff;
  color: #286090;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.today-info-sources a:hover {
  border-color: #9fc5e8;
  background: #edf6ff;
  color: #174c7c;
}

@media (max-width: 1120px) {
  .summary-row,
  .match-detail-summary {
    grid-template-columns: 86px 150px minmax(96px, 0.75fr) minmax(230px, 1.5fr) 128px;
  }

  .summary-row span:nth-child(5),
  .summary-row span:nth-child(6),
  .match-detail-summary .detail-summary-handicap,
  .match-detail-summary .detail-live-status,
  .match-detail-summary .detail-open-text {
    display: none;
  }
}

@media (max-width: 820px) {
  .summary-row:not(.summary-row-head) {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "time teams"
      "league status"
      "league info";
  }

  .summary-row:not(.summary-row-head) > span:nth-child(6) {
    display: inline-flex;
    grid-area: status;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(7) {
    display: inline-flex;
    grid-area: info;
    align-self: center;
    justify-self: start;
  }

  .match-detail-summary {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "time teams"
      "league status"
      "league info";
  }

  .match-detail-summary .detail-live-status {
    display: inline-flex;
    grid-area: status;
  }

  .match-detail-summary .detail-today-chip {
    display: inline-flex;
    grid-area: info;
    align-self: center;
    justify-self: start;
  }

  .today-info-section li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 820px) {
  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) {
    grid-template-areas:
      "code teams"
      "time teams"
      "league status"
      "league info";
  }

  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(7) {
    display: inline-flex;
    grid-area: info;
    align-self: center;
    justify-self: start;
  }

  html[data-view-mode="mobile"] .match-detail-summary {
    grid-template-areas:
      "code teams"
      "time teams"
      "league status"
      "league info";
  }

  html[data-view-mode="mobile"] .detail-today-chip {
    display: inline-flex;
    grid-area: info;
    align-self: center;
    justify-self: start;
  }
}

html[data-view-mode="mobile"] .match-team-panel.away {
  text-align: left;
}

html[data-view-mode="mobile"] .match-team-panel strong {
  font-size: 20px;
}

html[data-view-mode="mobile"] .match-versus-panel {
  justify-items: start;
  border-right: 0;
  border-left: 4px solid #0f766e;
  padding-left: 12px;
}

html[data-view-mode="mobile"] .analysis-collapse summary {
  min-height: 48px;
  padding: 0 12px;
}

html[data-view-mode="mobile"] .analysis-collapse summary span {
  font-size: 15px;
}

html[data-view-mode="mobile"] .collapse-body {
  padding: 0 12px 12px;
}

html[data-view-mode="mobile"] .logic-point,
html[data-view-mode="mobile"] .logic-point .side-split-lines p {
  grid-template-columns: 1fr;
}

html[data-view-mode="mobile"] .odds-market-row {
  min-width: 620px;
}

html[data-view-mode="mobile"] .ping-card-head {
  grid-template-columns: 1fr auto;
}

html[data-view-mode="mobile"] .ping-card-head > div {
  grid-column: 1 / -1;
}

html[data-view-mode="mobile"] .ping-issue {
  width: fit-content;
}

html[data-view-mode="mobile"] .ping-main-prob strong {
  font-size: 29px;
}

html[data-view-mode="mobile"] .review-day-card > summary {
  grid-template-columns: 60px minmax(0, 1fr);
}

@media (max-width: 760px) {
  .topbar-inner {
    width: min(430px, calc(100% - 18px));
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    flex: 1 1 calc(100% - 138px);
    min-width: 0;
  }

  .viewport-switch {
    order: 2;
    min-width: 116px;
  }

  .main-nav {
    order: 4;
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .main-nav a {
    flex: 0 0 auto;
    min-width: 96px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .user-area {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  html[data-view-mode="mobile"] .stats-grid,
  html[data-view-mode="mobile"] .today-stats,
  html[data-view-mode="mobile"] .review-stats,
  html[data-view-mode="mobile"] .ping-hf-stats {
    grid-template-columns: 1fr;
  }
}

.summary-row.has-cold-alert:not(.summary-row-head) {
  border-color: rgba(196, 49, 49, 0.38);
}

.summary-row.has-cold-alert:not(.summary-row-head)::before {
  background: linear-gradient(180deg, #c43131, #7f1d1d);
  opacity: 1;
}

.story-hero {
  background:
    linear-gradient(90deg, rgba(7, 52, 111, 0.96), rgba(18, 104, 179, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 32px);
}

.today-story-panel.story-lab {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(7, 52, 111, 0.18);
  background: var(--white);
}

.story-lab-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, #082b5e, #0e4f86 58%, #123f62),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 26px);
  color: var(--white);
}

.story-lab-header h2 {
  margin: 3px 0 4px;
  font-size: 26px;
}

.story-lab-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.story-lab-header .section-kicker {
  color: #b9e8ff;
}

.story-sync-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(185, 232, 255, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  color: #e9f8ff;
  font-size: 13px;
  white-space: nowrap;
}

.story-command-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px 18px 8px;
  background: #f7fbff;
}

.story-command-card {
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(10, 77, 149, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(20, 45, 84, 0.07);
}

.story-command-card.primary {
  border-color: rgba(196, 49, 49, 0.26);
  background: linear-gradient(135deg, #fff7f4, #ffffff 62%);
}

.story-command-card span,
.story-command-card small,
.story-proof-grid span,
.story-proof-grid small {
  display: block;
  color: var(--ink-500);
  font-size: 13px;
}

.story-command-card strong {
  display: block;
  margin: 6px 0;
  color: var(--ink-900);
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.story-briefing {
  margin: 10px 18px 18px;
  padding: 15px 16px;
  border: 1px solid rgba(10, 77, 149, 0.16);
  border-left: 4px solid var(--teal-600);
  border-radius: 8px;
  background: #f7fbff;
}

.story-briefing p {
  margin: 6px 0 0;
  color: var(--ink-700);
}

.story-headline {
  margin-top: 0;
  color: var(--ink-900);
  font-size: 17px;
  font-weight: 700;
}

.story-board {
  display: grid;
  gap: 16px;
  padding: 0 18px 22px;
}

.story-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(20, 45, 84, 0.08);
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue-700);
}

.story-card.strong::before {
  background: var(--red-600);
}

.story-card.medium::before {
  background: var(--gold-500);
}

.story-index-rail {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 10px;
}

.story-index-rail span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 800;
}

.story-card.strong .story-index-rail span {
  background: rgba(196, 49, 49, 0.1);
  color: var(--red-600);
}

.story-card.medium .story-index-rail span {
  background: rgba(217, 154, 32, 0.14);
  color: #8a5d0d;
}

.story-index-rail i {
  display: block;
  width: 1px;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(10, 77, 149, 0.28), transparent);
}

.story-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.story-card-head span,
.story-card-head small {
  display: block;
  color: var(--ink-500);
  font-size: 13px;
}

.story-card-head strong,
.story-match-line span {
  display: block;
  overflow-wrap: anywhere;
}

.story-card-head strong {
  margin: 3px 0;
  color: var(--ink-900);
  font-size: 19px;
}

.story-card-head > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(196, 49, 49, 0.08);
  color: var(--red-600);
  font-size: 13px;
  white-space: nowrap;
}

.story-match-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  color: var(--ink-700);
  font-weight: 800;
}

.story-match-line small {
  color: var(--ink-500);
  font-weight: 400;
}

.story-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.story-proof-grid div {
  min-height: 84px;
  padding: 10px;
  border: 1px solid rgba(10, 77, 149, 0.12);
  border-radius: 8px;
  background: #f7fbff;
}

.story-proof-grid b {
  display: block;
  margin: 4px 0;
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.story-summary {
  margin: 13px 0 0;
  color: var(--ink-700);
  font-weight: 700;
}

.story-texture-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.story-texture-strip p {
  margin: 0;
  min-height: 78px;
  border: 1px solid rgba(10, 77, 149, 0.12);
  border-radius: 8px;
  padding: 11px 12px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.55;
}

.story-texture-strip span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 900;
}

.story-evidence-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.story-evidence-block {
  min-height: 148px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.story-evidence-block.history {
  border-left: 4px solid var(--teal-600);
}

.story-evidence-block.web {
  border-left: 4px solid var(--blue-700);
}

.story-evidence-block.director {
  border-left: 4px solid var(--gold-500);
  background: #fffaf0;
}

.story-evidence-block.director.intent-style-1 {
  border-left-color: var(--red-600);
  background: #fff7f4;
}

.story-evidence-block.director.intent-style-2 {
  border-left-color: var(--teal-600);
  background: #f4fffc;
}

.story-evidence-block h3 {
  margin: 0 0 8px;
  color: var(--ink-900);
  font-size: 14px;
}

.story-evidence-block p,
.story-evidence-block li,
.story-risk {
  color: var(--ink-700);
  font-size: 14px;
}

.story-evidence-block p {
  margin: 8px 0 0;
}

.story-evidence-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-evidence-block li {
  padding-left: 12px;
  border-left: 2px solid rgba(22, 143, 122, 0.35);
}

.story-risk {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--red-600);
  border-radius: 8px;
  background: rgba(196, 49, 49, 0.08);
}

.story-risk span {
  display: inline-block;
  margin-right: 8px;
  color: var(--red-600);
  font-weight: 900;
}

.story-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.story-source-list a {
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.upset-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px;
}

.upset-context-section {
  padding: 12px;
  border: 1px solid rgba(10, 77, 149, 0.12);
  border-radius: 8px;
  background: #f7fbff;
}

.upset-context-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.upset-context-head h4 {
  margin: 0;
  color: var(--ink-900);
  font-size: 14px;
}

.upset-context-head small,
.league-upset-years small,
.team-upset-pair small,
.team-upset-pair span {
  color: var(--ink-500);
  font-size: 12px;
}

.league-upset-years,
.team-upset-pair {
  display: grid;
  gap: 8px;
}

.league-upset-years {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-upset-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.league-upset-years article,
.team-upset-pair article {
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.league-upset-years span,
.league-upset-years strong,
.team-upset-pair strong,
.team-upset-pair b {
  display: block;
}

.league-upset-years strong,
.team-upset-pair b {
  margin: 3px 0;
  color: var(--ink-900);
  font-size: 20px;
}

.team-upset-pair strong {
  margin: 2px 0;
  color: var(--ink-900);
  overflow-wrap: anywhere;
}

.team-upset-pair article.favorite {
  border-color: rgba(196, 49, 49, 0.20);
}

.team-upset-pair article.underdog {
  border-color: rgba(22, 143, 122, 0.24);
}

.upset-context-note {
  margin: 10px 0 0;
  color: var(--ink-700);
  font-size: 13px;
}

@media (max-width: 920px) {
  .story-command-grid,
  .story-proof-grid,
  .story-evidence-rail,
  .story-texture-strip,
  .upset-context-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .story-lab-header,
  .story-card-head {
    grid-template-columns: 1fr;
  }

  .story-lab-header {
    display: grid;
  }

  .story-command-grid,
  .story-proof-grid,
  .story-evidence-rail,
  .story-texture-strip,
  .story-card,
  .upset-context-grid,
  .league-upset-years,
  .team-upset-pair {
    grid-template-columns: 1fr;
  }

  .story-card {
    gap: 10px;
  }

  .story-index-rail {
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    justify-items: start;
    align-items: center;
  }

  .story-index-rail i {
    width: 100%;
    min-height: 1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(10, 77, 149, 0.28), transparent);
  }
}

@media (max-width: 980px) {
  .public-hero,
  .public-signal-band,
  .public-topic-layout {
    grid-template-columns: 1fr;
  }

  .public-match-grid,
  .public-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-scoreboard {
    margin-left: 0;
  }

  .public-topic-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .primary-button,
  .secondary-button,
  .ghost-light-button {
    min-height: 44px;
  }

  .public-page::before {
    height: 520px;
  }

  .public-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 12px 14px;
  }

  .public-brand {
    min-width: 0;
    width: 100%;
  }

  .public-brand .brand-mark {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }

  .public-brand strong {
    font-size: 16px;
  }

  .public-brand small {
    display: none;
  }

  .public-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .public-nav::-webkit-scrollbar {
    display: none;
  }

  .public-nav a {
    min-height: 38px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
  }

  .public-hero {
    min-height: 0;
    gap: 18px;
    padding: 28px 0 22px;
  }

  .public-hero-copy {
    align-content: start;
    gap: 16px;
  }

  .public-subhero {
    gap: 14px;
    padding: 28px 0 22px;
  }

  .public-hero h1 {
    font-size: 34px;
  }

  .public-subhero h1 {
    font-size: 30px;
  }

  .public-hero p,
  .public-subhero p,
  .public-signal-band p,
  .public-feature-grid p,
  .public-cta p,
  .public-topic-card p,
  .public-topic-article p {
    font-size: 15px;
    line-height: 1.68;
  }

  .public-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .public-actions .primary-button,
  .public-actions .ghost-light-button {
    width: 100%;
    padding: 0 12px;
  }

  .public-match-grid,
  .public-feature-grid,
  .public-cta {
    grid-template-columns: 1fr;
  }

  .public-hero-metrics,
  .public-signal-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .public-hero-metrics div,
  .public-signal-metrics div {
    min-width: 0;
    padding: 10px 8px;
  }

  .public-hero-metrics dt,
  .public-signal-metrics dt {
    font-size: 12px;
  }

  .public-hero-metrics dd,
  .public-signal-metrics dd {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .public-field-visual {
    gap: 10px;
  }

  .public-scoreboard {
    width: 100%;
    margin-left: 0;
    padding: 12px 14px;
  }

  .public-scoreboard strong {
    font-size: 32px;
  }

  .public-pitch {
    display: none;
  }

  .public-section {
    margin-bottom: 16px;
  }

  .public-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .public-section-head h2,
  .public-signal-band h2,
  .public-cta h2 {
    font-size: 22px;
  }

  .public-match-card {
    min-height: 0;
    gap: 12px;
  }

  .public-match-meta,
  .public-match-foot {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .public-match-teams strong {
    font-size: 18px;
  }

  .public-signal-band,
  .public-cta {
    gap: 16px;
  }

  .public-topic-card {
    min-height: 0;
  }

  .public-topic-article {
    gap: 18px;
  }
}

@media (max-width: 460px) {
  .public-topbar,
  .public-hero,
  .public-subhero,
  .public-section,
  .public-footer {
    width: min(100% - 20px, 1240px);
  }

  .public-signal-band,
  .public-cta {
    padding: 18px;
  }

  .public-match-card,
  .public-feature-grid article,
  .public-topic-card,
  .public-topic-article,
  .public-topic-side {
    padding: 16px;
  }

  .public-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-shell,
  .paywall-shell {
    padding: 24px 0 32px;
  }

  .login-shell {
    gap: 18px;
  }

  .login-brand .brand-badge {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .login-brand h1 {
    font-size: 28px;
  }

  .login-brand p {
    margin-top: 10px;
    font-size: 15px;
  }

  .login-pay-note {
    margin-top: 16px;
    padding: 12px 14px;
  }

  .login-pay-note strong {
    font-size: 20px;
  }

  .login-panel {
    padding: 18px;
  }

  .login-form {
    gap: 14px;
  }

  .form-heading {
    font-size: 20px;
  }

  .login-form input {
    height: 46px;
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .public-actions {
    grid-template-columns: 1fr;
  }

  .public-hero h1 {
    font-size: 31px;
  }

  .public-subhero h1 {
    font-size: 28px;
  }

  .public-nav a {
    padding: 0 10px;
  }
}

.brand-mark.yellow-card-logo,
.brand-badge.yellow-card-logo {
  position: relative;
  overflow: visible;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}

.brand-mark.yellow-card-logo::before,
.brand-badge.yellow-card-logo::before {
  content: "";
  position: absolute;
  inset: 4px 8px;
  border: 2px solid rgba(23, 32, 51, 0.86);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0 22%, transparent 23%),
    linear-gradient(160deg, #fff06b 0%, #f3c233 52%, #d99a20 100%);
  box-shadow:
    0 9px 18px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  transform: rotate(-8deg);
}

.brand-mark.yellow-card-logo::after,
.brand-badge.yellow-card-logo::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 13px;
  height: 3px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.55);
  transform: rotate(-8deg);
}

.login-brand .brand-badge.yellow-card-logo::before {
  inset: 2px 9px;
}

.pwa-install-card {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100% - 32px));
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 52, 111, 0.96);
  color: var(--white);
  box-shadow: 0 18px 46px rgba(7, 52, 111, 0.32);
  transform: translateX(-50%);
}

.pwa-install-card[hidden] {
  display: none;
}

.pwa-install-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.pwa-install-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pwa-install-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.pwa-install-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.pwa-install-action,
.pwa-install-close {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.pwa-install-action {
  padding: 0 16px;
  background: var(--gold-500);
  color: var(--ink-900);
}

.pwa-install-close {
  width: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
}

.pwa-install-action:hover,
.pwa-install-close:hover {
  filter: brightness(1.04);
}

@media (max-width: 520px) {
  .pwa-install-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: calc(100% - 20px);
    padding: 10px;
  }

  .pwa-install-card.is-ios-hint {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .pwa-install-close {
    width: 42px;
  }
}

.quality-panel {
  margin-bottom: 18px;
}

.quality-group-grid,
.public-quality-groups {
  display: grid;
  gap: 14px;
}

.quality-group-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quality-group-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 206px;
  border: 1px solid rgba(217, 154, 32, 0.22);
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(180deg, #fffaf0, #ffffff 54%),
    var(--white);
  box-shadow: 0 12px 28px rgba(20, 45, 84, 0.08);
}

.quality-group-card.star-5 {
  border-color: rgba(196, 49, 49, 0.24);
  background: linear-gradient(180deg, #fff7f4, #ffffff 58%);
}

.quality-group-card.star-4 {
  border-color: rgba(22, 143, 122, 0.24);
  background: linear-gradient(180deg, #f4fffc, #ffffff 58%);
}

.quality-group-card header,
.public-quality-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quality-group-card h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 18px;
}

.quality-group-card small,
.public-quality-title small {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.quality-stars,
.public-quality-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 34px;
  border-radius: 999px;
  background: #fff3c4;
  color: #925f00;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.quality-match-list {
  display: grid;
  gap: 8px;
}

.quality-match-pill {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(10, 77, 149, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.88);
}

.quality-match-pill:hover {
  border-color: rgba(217, 154, 32, 0.4);
  background: #fffdf7;
}

.quality-match-pill span {
  grid-row: span 2;
  color: var(--blue-900);
  font-weight: 900;
}

.quality-match-pill b {
  color: var(--ink-900);
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.quality-match-pill small {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.quality-chip,
.upset-chip,
.match-quality-meta,
.match-upset-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  border: 1px solid rgba(217, 154, 32, 0.26);
  border-radius: 999px;
  padding: 0 9px;
  background: #fff8dc;
  color: #7c5208;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.quality-chip.star-5,
.match-quality-meta {
  border-color: rgba(217, 154, 32, 0.34);
  background: #fff3c4;
  color: #8a5d0d;
}

.quality-chip.star-4 {
  border-color: rgba(22, 143, 122, 0.28);
  background: #e9fbf7;
  color: #0f766e;
}

.quality-chip.star-3 {
  border-color: rgba(29, 78, 216, 0.24);
  background: #eaf2ff;
  color: #1d4ed8;
}

.upset-chip.high,
.match-upset-meta.high {
  border-color: rgba(196, 49, 49, 0.32);
  background: #fff1ee;
  color: #b42318;
}

.upset-chip.medium,
.match-upset-meta.medium {
  border-color: rgba(217, 154, 32, 0.34);
  background: #fff7df;
  color: #92400e;
}

.upset-chip.low,
.match-upset-meta.low {
  border-color: rgba(22, 143, 122, 0.26);
  background: #ecfdf7;
  color: #0f766e;
}

.upset-chip.muted,
.match-upset-meta.muted {
  border-color: rgba(100, 116, 139, 0.18);
  background: #f8fafc;
  color: #52657b;
}

.summary-row {
  grid-template-columns: 86px 150px minmax(92px, 0.58fr) minmax(210px, 1.25fr) minmax(118px, 0.65fr) 92px 76px 100px;
}

.summary-row-head {
  font-size: 13px;
}

.match-meta .match-quality-meta,
.match-meta .match-upset-meta {
  min-height: 30px;
}

.story-upset-meter {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  border: 1px solid rgba(196, 49, 49, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: #fff8f2;
}

.story-upset-meter div {
  display: grid;
  gap: 2px;
}

.story-upset-meter span,
.story-upset-meter small {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.story-upset-meter strong {
  color: var(--red-600);
  font-size: 24px;
  line-height: 1;
}

.story-upset-meter i {
  position: relative;
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e5dc;
}

.story-upset-meter i b {
  display: block;
  width: var(--prob, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d99a20, #c43131);
}

.story-upset-meter.medium i b {
  background: linear-gradient(90deg, #d99a20, #f59e0b);
}

.story-upset-meter.low i b {
  background: linear-gradient(90deg, #168f7a, #d99a20);
}

.public-quality-group {
  display: grid;
  gap: 12px;
}

.public-quality-title {
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
}

.public-quality-title b {
  color: var(--ink-900);
  font-size: 18px;
}

.public-match-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-match-card .quality-chip,
.public-match-card .upset-chip {
  min-height: 26px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .quality-group-grid {
    grid-template-columns: 1fr;
  }

  .summary-row {
    grid-template-columns: 82px 140px minmax(88px, 0.65fr) minmax(210px, 1.3fr) 86px 74px 98px;
  }

  .summary-row span:nth-child(5) {
    display: none;
  }

  .summary-row span:nth-child(6),
  .summary-row span:nth-child(7),
  .summary-row span:nth-child(8) {
    display: inline-flex;
  }
}

@media (max-width: 920px) {
  .summary-row:not(.summary-row-head) {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "time teams"
      "league quality"
      "status upset";
    gap: 6px 10px;
  }

  .summary-row-head {
    display: none;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(1) {
    grid-area: code;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(2) {
    display: block;
    grid-area: time;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(3) {
    display: block;
    grid-area: league;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(4) {
    grid-area: teams;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(5) {
    display: none;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(6) {
    display: inline-flex;
    grid-area: status;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(7) {
    display: inline-flex;
    grid-area: quality;
    justify-self: start;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(8) {
    display: inline-flex;
    grid-area: upset;
    justify-self: start;
  }

  .story-upset-meter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .public-quality-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .quality-match-pill {
    grid-template-columns: 1fr;
  }

  .quality-match-pill span {
    grid-row: auto;
  }
}

.notice-band.today-hero.yellow-card-workbench {
  isolation: isolate;
  border-color: rgba(217, 154, 32, 0.36);
  background:
    linear-gradient(120deg, rgba(3, 28, 21, 0.72), rgba(14, 96, 60, 0.46) 48%, rgba(5, 48, 35, 0.78)),
    var(--football-field-bg) center / cover no-repeat,
    #0d6b46;
  box-shadow: 0 24px 52px rgba(8, 92, 54, 0.24);
}

.yellow-card-hero-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: clamp(140px, 18vw, 230px);
  aspect-ratio: 1;
  background: url("/static/img/yellow-card-center.png") center / contain no-repeat;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.24));
  opacity: 0.92;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.notice-band.today-hero.yellow-card-workbench > div {
  position: relative;
  z-index: 1;
}

.notice-band.today-hero.yellow-card-workbench .hero-console {
  position: relative;
  z-index: 1;
}

.yellow-card-workbench .section-kicker {
  color: #facc15;
}

/* Polished mobile reading layer */
@media (max-width: 760px) {
  html[data-view-mode="mobile"] {
    scroll-padding-top: 122px;
  }

  html[data-view-mode="mobile"] body {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(5, 55, 36, 0.92) 0 238px, rgba(246, 250, 247, 0.92) 238px 100%),
      var(--football-field-bg) top center / min(1200px, 180vw) auto no-repeat fixed,
      #f5f8fc;
  }

  html[data-pwa-display="standalone"] body,
  body[data-pwa-display="standalone"] {
    background:
      linear-gradient(180deg, rgba(5, 55, 36, 0.9) 0 270px, rgba(246, 250, 247, 0.93) 270px 100%),
      var(--football-field-bg) top center / min(1200px, 190vw) auto no-repeat fixed,
      #f5f8fc;
  }

  html[data-view-mode="mobile"] .topbar {
    background: rgba(7, 52, 111, 0.97);
    backdrop-filter: blur(14px);
  }

  html[data-view-mode="mobile"] .topbar-inner {
    width: min(100% - 18px, 460px);
    gap: 9px;
  }

  html[data-view-mode="mobile"] .brand {
    gap: 10px;
  }

  html[data-view-mode="mobile"] .brand span:last-child {
    min-width: 0;
  }

  html[data-view-mode="mobile"] .brand strong {
    overflow: hidden;
    max-width: 10.5em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-view-mode="mobile"] .main-nav {
    margin: 0 -4px;
    padding: 2px 4px 4px;
    scroll-snap-type: x proximity;
  }

  html[data-view-mode="mobile"] .main-nav a {
    scroll-snap-align: start;
    min-width: auto;
    min-height: 36px;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  html[data-view-mode="mobile"] .main-nav a.active {
    background: #ffffff;
    color: var(--blue-900);
    box-shadow: 0 8px 20px rgba(3, 18, 43, 0.18);
  }

  html[data-view-mode="mobile"] .viewport-switch {
    min-width: 104px;
    border-radius: 999px;
  }

  html[data-view-mode="mobile"] .viewport-switch button {
    min-height: 28px;
    border-radius: 999px;
    font-size: 12px;
  }

  html[data-view-mode="mobile"] .user-area {
    min-height: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 8px;
    font-size: 13px;
  }

  html[data-view-mode="mobile"] .user-area .ghost-button {
    min-height: 32px;
    padding: 0 12px;
  }

  html[data-view-mode="mobile"] .page {
    width: min(100% - 18px, 460px);
    padding-top: 10px;
  }

  html[data-view-mode="mobile"] .notice-band.today-hero {
    overflow: hidden;
    border-radius: 8px;
    padding: 18px 16px;
    box-shadow: 0 16px 34px rgba(7, 52, 111, 0.18);
  }

  html[data-view-mode="mobile"] .notice-band.today-hero.yellow-card-workbench {
    min-height: 238px;
    background:
      linear-gradient(135deg, rgba(3, 24, 17, 0.72), rgba(14, 103, 62, 0.36) 48%, rgba(4, 48, 36, 0.84)),
      var(--football-field-bg) center / cover no-repeat,
      #0d6b46;
  }

  html[data-view-mode="mobile"] .yellow-card-hero-mark {
    top: 50%;
    left: 50%;
    width: 170px;
    opacity: 0.82;
  }

  html[data-view-mode="mobile"] .today-hero h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  html[data-view-mode="mobile"] .today-hero p {
    line-height: 1.62;
  }

  html[data-view-mode="mobile"] .data-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  html[data-view-mode="mobile"] .data-date-row span,
  html[data-view-mode="mobile"] .data-date-row b {
    min-height: 34px;
    border-radius: 999px;
    padding: 0 10px;
  }

  html[data-view-mode="mobile"] .stats-grid,
  html[data-view-mode="mobile"] .today-stats,
  html[data-view-mode="mobile"] .review-stats,
  html[data-view-mode="mobile"] .ping-hf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-view-mode="mobile"] .stat-card {
    min-height: 84px;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 22px rgba(20, 45, 84, 0.08);
  }

  html[data-view-mode="mobile"] .content-panel,
  html[data-view-mode="mobile"] .match-detail-card,
  html[data-view-mode="mobile"] .quality-group-card,
  html[data-view-mode="mobile"] .ping-card,
  html[data-view-mode="mobile"] .story-lab {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(20, 45, 84, 0.08);
  }

  html[data-view-mode="mobile"] .content-panel {
    padding: 13px;
  }

  html[data-view-mode="mobile"] .content-header {
    margin-bottom: 10px;
  }

  html[data-view-mode="mobile"] .content-header h2 {
    font-size: 20px;
  }

  html[data-view-mode="mobile"] .summary-count {
    min-height: 30px;
    padding: 0 11px;
    font-size: 12px;
  }

  html[data-view-mode="mobile"] .quality-group-grid {
    gap: 10px;
  }

  html[data-view-mode="mobile"] .quality-group-card {
    min-height: 0;
    padding: 13px;
  }

  html[data-view-mode="mobile"] .quality-group-card header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  html[data-view-mode="mobile"] .quality-match-pill {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 50px;
    padding: 8px 9px;
  }

  html[data-view-mode="mobile"] .quality-match-pill span {
    grid-row: span 2;
  }

  html[data-view-mode="mobile"] .summary-list {
    gap: 10px;
  }

  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head),
  html[data-view-mode="mobile"] .match-detail-summary {
    position: relative;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 7px 10px;
    border-color: rgba(29, 78, 216, 0.14);
    border-radius: 8px;
    padding: 13px 12px 12px;
    background: #ffffff;
    box-shadow: 0 9px 22px rgba(20, 45, 84, 0.08);
  }

  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head)::after,
  html[data-view-mode="mobile"] .match-detail-summary::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(29, 78, 216, 0.45);
    border-bottom: 2px solid rgba(29, 78, 216, 0.45);
    transform: translateY(-50%) rotate(-45deg);
  }

  html[data-view-mode="mobile"] .match-detail-shell[open] .match-detail-summary::after,
  html[data-view-mode="mobile"] .summary-match-shell[open] .match-detail-summary::after {
    transform: translateY(-50%) rotate(45deg);
  }

  html[data-view-mode="mobile"] .summary-code,
  html[data-view-mode="mobile"] .detail-summary-code {
    display: inline-grid;
    place-items: center;
    min-height: 34px;
    border-radius: 8px;
    background: #eaf2ff;
    color: #1d4ed8;
    font-size: 14px;
  }

  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(2),
  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(3),
  html[data-view-mode="mobile"] .detail-summary-time,
  html[data-view-mode="mobile"] .detail-summary-league {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
  }

  html[data-view-mode="mobile"] .summary-teams,
  html[data-view-mode="mobile"] .detail-summary-teams {
    padding-right: 14px;
  }

  html[data-view-mode="mobile"] .summary-teams b,
  html[data-view-mode="mobile"] .detail-summary-teams b {
    font-size: 16px;
    line-height: 1.22;
  }

  html[data-view-mode="mobile"] .match-live-status,
  html[data-view-mode="mobile"] .detail-live-status,
  html[data-view-mode="mobile"] .summary-today-chip,
  html[data-view-mode="mobile"] .detail-today-chip {
    min-height: 28px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 11px;
  }

  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span,
  html[data-view-mode="mobile"] .match-detail-summary > span,
  html[data-view-mode="mobile"] .quality-match-pill,
  html[data-view-mode="mobile"] .quality-match-pill b,
  html[data-view-mode="mobile"] .summary-teams b,
  html[data-view-mode="mobile"] .detail-summary-teams b {
    overflow-wrap: anywhere;
  }

  html[data-view-mode="mobile"] .summary-row.has-cold-alert:not(.summary-row-head),
  html[data-view-mode="mobile"] .match-detail-shell.has-cold-alert,
  html[data-view-mode="mobile"] .summary-match-shell.has-cold-alert {
    border-color: rgba(196, 49, 49, 0.28);
    box-shadow: 0 10px 24px rgba(196, 49, 49, 0.10);
  }

  html[data-view-mode="mobile"] .match-detail-shell,
  html[data-view-mode="mobile"] .summary-match-shell {
    scroll-margin-top: 132px;
    border-radius: 8px;
  }

  html[data-view-mode="mobile"] .match-detail-placeholder {
    padding: 16px;
  }

  html[data-view-mode="mobile"] .match-spotlight {
    gap: 12px;
    border-radius: 8px;
  }

  html[data-view-mode="mobile"] .match-team-panel strong {
    font-size: 21px;
  }

  html[data-view-mode="mobile"] .analysis-collapse {
    border-radius: 8px;
  }

  html[data-view-mode="mobile"] .analysis-collapse summary {
    border-radius: 8px;
  }

  html[data-view-mode="mobile"] .pwa-install-card {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 18px);
    min-height: 64px;
    box-shadow: 0 14px 34px rgba(7, 52, 111, 0.28);
  }
}

@media (max-width: 720px) {
  .public-page {
    background:
      linear-gradient(180deg, rgba(5, 55, 36, 0.95) 0 330px, #f4f7fb 330px),
      var(--football-field-bg) top center / min(1200px, 190vw) auto no-repeat,
      #f4f7fb;
  }

  .public-page::before {
    height: 380px;
    background:
      linear-gradient(118deg, rgba(5, 42, 30, 0.88) 0%, rgba(14, 107, 70, 0.78) 56%, rgba(5, 75, 48, 0.84) 100%),
      var(--football-field-bg) center / cover no-repeat,
      #0d6b46;
  }

  .public-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: calc(100% - 18px);
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    background: rgba(5, 55, 36, 0.97);
    backdrop-filter: blur(14px);
  }

  .public-nav {
    gap: 8px;
    margin: 0 -2px;
    padding: 2px 2px 4px;
    scroll-snap-type: x proximity;
  }

  .public-nav a {
    scroll-snap-align: start;
    min-height: 36px;
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.11);
    font-weight: 800;
  }

  .public-hero,
  .public-subhero {
    width: calc(100% - 20px);
    padding-top: 24px;
  }

  .public-hero h1,
  .public-subhero h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .public-hero p,
  .public-subhero p {
    font-size: 15px;
    line-height: 1.65;
  }

  .public-actions {
    grid-template-columns: 1fr;
  }

  .public-hero-metrics,
  .public-signal-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .public-hero-metrics div,
  .public-signal-metrics div {
    border-radius: 8px;
    padding: 10px 8px;
  }

  .public-hero-metrics dd,
  .public-signal-metrics dd {
    font-size: 20px;
  }

  .public-scoreboard {
    border-radius: 8px;
    background: rgba(7, 20, 42, 0.34);
  }

  .public-section {
    width: calc(100% - 20px);
  }

  .public-section-head {
    margin-bottom: 12px;
  }

  .public-match-grid,
  .public-feature-grid {
    gap: 10px;
  }

  .public-match-card,
  .public-feature-grid article,
  .public-topic-card {
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 22px rgba(20, 45, 84, 0.08);
  }

  .public-match-card *,
  .public-topic-card *,
  .public-feature-grid article * {
    min-width: 0;
  }

  .public-match-card {
    gap: 11px;
  }

  .public-match-meta,
  .public-match-foot {
    gap: 8px;
  }

  .public-match-meta span,
  .public-match-foot b {
    min-height: 26px;
    padding: 0 9px;
    font-size: 12px;
  }

  .public-match-teams {
    gap: 6px;
  }

  .public-match-teams strong {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .public-match-signals {
    gap: 6px;
  }

  .public-signal-band,
  .public-cta {
    width: calc(100% - 20px);
    border-radius: 8px;
    padding: 18px;
  }

  .public-quality-title {
    border-radius: 8px;
  }
}

@keyframes pwaLaunchFade {
  0%,
  68% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 760px) and (pointer: coarse) {
  html[data-pwa-launch="standalone"] body::before,
  html[data-pwa-launch="standalone"] body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    animation: pwaLaunchFade 1.45s ease forwards;
  }

  html[data-pwa-launch="standalone"] body::before {
    inset: 0;
    z-index: 9998;
    background:
      linear-gradient(180deg, rgba(3, 36, 24, 0.74), rgba(9, 92, 56, 0.42) 45%, rgba(2, 34, 23, 0.82)),
      var(--football-field-bg) center / cover no-repeat,
      #0d6b46;
  }

  html[data-pwa-launch="standalone"] body::after {
    left: 50%;
    top: 43%;
    z-index: 9999;
    width: min(44vw, 210px);
    aspect-ratio: 1;
    background: url("/static/img/yellow-card-center.png") center / contain no-repeat;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.32));
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 760px) {
  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "code time"
      "model model"
      "league status"
      "today today";
  }

  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(2) {
    align-self: start;
    justify-self: start;
  }

  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(7) {
    grid-area: status;
    justify-self: start;
  }

  html[data-view-mode="mobile"] .summary-row:not(.summary-row-head) > span:nth-child(8) {
    display: inline-flex;
    grid-area: today;
    justify-self: start;
  }

  html[data-view-mode="mobile"] .summary-model-prediction {
    grid-area: model;
    justify-self: start;
    max-width: 100%;
  }

  html[data-view-mode="mobile"] .match-detail-summary {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "code time"
      "model model"
      "league status"
      "today today";
  }

  html[data-view-mode="mobile"] .detail-summary-model {
    grid-area: model;
    justify-self: start;
    max-width: 100%;
  }

  html[data-view-mode="mobile"] .detail-live-status {
    grid-area: status;
  }

  html[data-view-mode="mobile"] .detail-today-chip {
    grid-area: today;
    justify-self: start;
  }
}

/* Final unified event-summary layout. Applies to desktop and mobile. */
.summary-row {
  grid-template-columns: 82px 132px minmax(82px, 0.62fr) minmax(220px, 1.32fr) minmax(106px, 0.64fr) minmax(118px, 0.72fr) 76px minmax(112px, 0.72fr);
}

.match-detail-summary {
  grid-template-columns: 92px 148px minmax(96px, 0.62fr) minmax(250px, 1.32fr) minmax(122px, 0.68fr) minmax(128px, 0.76fr) 94px minmax(124px, 0.72fr);
}

.summary-row span:nth-child(5),
.summary-row span:nth-child(6),
.summary-row span:nth-child(7),
.summary-row span:nth-child(8),
.match-detail-summary .detail-summary-handicap,
.match-detail-summary .detail-summary-model,
.match-detail-summary .detail-live-status,
.match-detail-summary .detail-today-chip,
.match-detail-summary .detail-open-text {
  display: inline-flex;
}

.summary-row span:nth-child(8),
.match-detail-summary .detail-open-text {
  justify-self: end;
}

@media (max-width: 1180px) {
  .summary-row {
    grid-template-columns: 78px 122px minmax(82px, 0.62fr) minmax(200px, 1.22fr) minmax(112px, 0.7fr) 72px minmax(112px, 0.74fr);
  }

  .summary-row span:nth-child(5) {
    display: none;
  }

  .match-detail-summary {
    grid-template-columns: 84px 136px minmax(90px, 0.6fr) minmax(220px, 1.24fr) minmax(120px, 0.72fr) 86px minmax(118px, 0.74fr);
  }

  .match-detail-summary .detail-summary-handicap {
    display: none;
  }
}

@media (max-width: 920px) {
  .summary-row:not(.summary-row-head) {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "code time"
      "model model"
      "league status"
      "today today";
  }

  .summary-row-head {
    display: none;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(1) {
    grid-area: code;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(2) {
    display: block;
    grid-area: time;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(3) {
    display: block;
    grid-area: league;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(4) {
    grid-area: teams;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(5) {
    display: none;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(6) {
    display: inline-flex;
    grid-area: model;
    justify-self: start;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(7) {
    display: inline-flex;
    grid-area: status;
    justify-self: start;
  }

  .summary-row:not(.summary-row-head) > span:nth-child(8) {
    display: inline-flex;
    grid-area: today;
    justify-self: start;
  }

  .match-detail-summary {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "code time"
      "model model"
      "league status"
      "today today";
  }

  .detail-summary-code {
    grid-area: code;
  }

  .detail-summary-time {
    grid-area: time;
  }

  .detail-summary-league {
    grid-area: league;
  }

  .detail-summary-teams {
    grid-area: teams;
  }

  .detail-summary-model {
    grid-area: model;
    justify-self: start;
  }

  .detail-live-status {
    grid-area: status;
    justify-self: start;
  }

  .detail-today-chip {
    grid-area: today;
    justify-self: start;
  }

  .detail-summary-handicap {
    display: none !important;
  }

  .detail-open-text {
    display: inline-flex !important;
    grid-area: today;
    justify-self: start;
  }
}

/* Mobile event rows: keep desktop unchanged. */
@media (max-width: 920px) {
  html[data-view-mode="mobile"] .summary-match-shell,
  html[data-view-mode="mobile"] .summary-match-shell[open],
  html[data-view-mode="mobile"] .summary-match-shell.has-cold-alert,
  html[data-view-mode="mobile"] .summary-match-shell.is-near-start,
  html[data-view-mode="mobile"] .summary-match-shell.is-started {
    overflow: hidden;
    border-color: rgba(29, 78, 216, 0.14);
    background: #ffffff;
    box-shadow: 0 9px 22px rgba(20, 45, 84, 0.08);
    transform: none;
  }

  html[data-view-mode="mobile"] .summary-match-shell .match-detail-summary,
  html[data-view-mode="mobile"] .summary-match-shell[open] .match-detail-summary,
  html[data-view-mode="mobile"] .summary-match-shell.is-near-start .match-detail-summary,
  html[data-view-mode="mobile"] .summary-match-shell.is-started .match-detail-summary {
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
      "code teams"
      "code time"
      "league status";
    align-items: center;
    gap: 6px 10px;
    min-height: 78px;
    border: 0;
    background: #ffffff;
    box-shadow: none;
    padding: 12px;
    transform: none;
  }

  html[data-view-mode="mobile"] .summary-match-shell .match-detail-summary::before,
  html[data-view-mode="mobile"] .summary-match-shell .match-detail-summary::after {
    display: none;
  }

  html[data-view-mode="mobile"] .summary-match-shell .detail-summary-code {
    grid-area: code;
    align-self: start;
    justify-self: start;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    border: 0;
    background: transparent;
    color: #1d4ed8;
    line-height: 1.15;
  }

  html[data-view-mode="mobile"] .summary-match-shell.is-started .detail-summary-code,
  html[data-view-mode="mobile"] .summary-match-shell[open] .detail-summary-code {
    color: #1d4ed8;
  }

  html[data-view-mode="mobile"] .summary-match-shell .detail-summary-teams {
    display: flex;
    grid-area: teams;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-right: 0;
    color: #0b1f3a;
    font-weight: 900;
  }

  html[data-view-mode="mobile"] .summary-match-shell .detail-summary-teams small {
    display: inline;
    color: #64748b;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
  }

  html[data-view-mode="mobile"] .summary-match-shell .detail-summary-teams b {
    min-width: 0;
    color: #0b1f3a;
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  html[data-view-mode="mobile"] .summary-match-shell .detail-summary-model {
    display: none;
    flex: 0 0 auto;
    margin-left: 2px;
    border-radius: 999px;
    background: #fff7d6;
    color: #92400e;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  html[data-view-mode="mobile"] .summary-match-shell .mobile-inline-model {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 2px;
    border-radius: 999px;
    background: #fff7d6;
    color: #92400e;
    padding: 3px 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
  }

  html[data-view-mode="mobile"] .summary-match-shell .detail-summary-time {
    grid-area: time;
    color: #64748b;
    font-size: 12px;
  }

  html[data-view-mode="mobile"] .summary-match-shell .detail-summary-league {
    grid-area: league;
    color: #64748b;
    font-size: 12px;
  }

  html[data-view-mode="mobile"] .summary-match-shell .detail-live-status {
    grid-area: status;
    display: none;
    justify-self: start;
    min-height: 26px;
    background: #eef7ff;
    color: #0f76bc;
  }

  html[data-view-mode="mobile"] .summary-match-shell.is-started .detail-live-status,
  html[data-view-mode="mobile"] .summary-match-shell.is-near-start .detail-live-status {
    display: inline-flex;
    border-color: rgba(29, 78, 216, 0.18);
    background: #eef7ff;
    color: #0f76bc;
    box-shadow: none;
  }

  html[data-view-mode="mobile"] .summary-match-shell .detail-summary-handicap,
  html[data-view-mode="mobile"] .summary-match-shell .detail-open-text {
    display: none !important;
  }

  html[data-view-mode="mobile"] .summary-match-shell .match-detail-placeholder {
    display: grid;
    place-items: center;
    min-height: 116px;
    padding: 18px;
    border-top: 1px solid rgba(29, 78, 216, 0.10);
    background: #f8fbff;
    color: #64748b;
    text-align: center;
  }

  html[data-view-mode="mobile"] .summary-match-shell .match-detail-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    border-top: 1px solid rgba(29, 78, 216, 0.10);
    background: #ffffff;
    padding: 14px;
  }

  html[data-view-mode="mobile"] .summary-match-shell .match-spotlight {
    display: none;
  }

  html[data-view-mode="mobile"] .summary-match-shell .mobile-detail-collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: min(160px, 72%);
    min-height: 38px;
    margin: 14px auto 2px;
    border: 1px solid rgba(29, 78, 216, 0.16);
    border-radius: 999px;
    background: #f8fbff;
    color: #1d4ed8;
    font-weight: 900;
  }

  html[data-view-mode="mobile"] .summary-match-shell .mobile-detail-collapse b {
    font-size: 18px;
    line-height: 1;
  }
}
