:root {
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, 0.13);
  --green: #007aff;
  --green-dark: #1d1d1f;
  --amber: #ff9f0a;
  --blue: #0a84ff;
  --red: #ff3b30;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

@media (max-width: 760px) {
  .context-facts,
  .context-lines {
    grid-template-columns: minmax(0, 1fr);
  }

  .competition-context-box {
    gap: 8px;
  }
}

.deep-analysis-card {
  grid-column: span 4;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.deep-analysis {
  display: grid;
  gap: 12px;
}

.deep-match-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(255, 149, 0, 0.08));
}

.deep-match-hero div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.deep-match-hero span,
.deep-kpi-grid span,
.deep-play-grid span,
.deep-team-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.deep-match-hero b {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.deep-match-hero b i {
  color: #ff9500;
  font-style: normal;
  font-size: 16px;
}

.deep-match-hero em,
.deep-team-card em,
.deep-play-grid em,
.deep-note,
.deep-axis-list span,
.deep-player-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
}

.deep-match-hero strong {
  flex: 0 0 auto;
  min-width: 98px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: #ff9500;
  font-size: 28px;
  text-align: center;
}

.deep-kpi-grid,
.deep-play-grid,
.deep-player-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.deep-kpi-grid div,
.deep-play-grid div,
.deep-player-grid div,
.deep-team-card,
.deep-axis-list div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 14px;
  background: rgba(247, 250, 255, 0.82);
}

.deep-kpi-grid b,
.deep-play-grid b,
.deep-player-grid b,
.deep-axis-list b,
.deep-team-card b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

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

.deep-team-card.blue {
  border-color: rgba(0, 122, 255, 0.18);
  background: rgba(0, 122, 255, 0.06);
}

.deep-team-card.red {
  border-color: rgba(255, 59, 48, 0.18);
  background: rgba(255, 59, 48, 0.06);
}

.deep-team-card p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.deep-section {
  display: grid;
  gap: 9px;
}

.deep-section h3 {
  margin: 2px 0 0;
  color: var(--blue);
  font-size: 15px;
}

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

.deep-reason-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.poster-preview {
  display: grid;
  gap: 10px;
}

.poster-preview img {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  border: 1px solid rgba(0, 122, 255, 0.16);
}

.poster-download {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ff9500;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 760px) {
  .deep-analysis-card {
    grid-column: 1 / -1;
  }

  .deep-match-hero {
    align-items: flex-start;
    padding: 13px;
  }

  .deep-match-hero b {
    font-size: 20px;
  }

  .deep-match-hero strong {
    min-width: 76px;
    padding: 10px 11px;
    font-size: 21px;
  }

  .deep-kpi-grid,
  .deep-play-grid,
  .deep-player-grid,
  .deep-axis-list,
  .deep-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .deep-player-grid {
    grid-template-columns: 1fr;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeSpeed;
}

button,
.date-btn,
.match-btn,
.final-node {
  touch-action: manipulation;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(251, 146, 60, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 146, 60, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

button {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px;
}

.sidebar,
.dashboard {
  min-width: 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.brand-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar .brand > div:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar .brand h1 {
  white-space: nowrap;
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.date-btn,
.match-btn {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.06);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: 0.16s ease;
}

.date-btn {
  min-height: 66px;
  padding: 10px 12px;
}

.date-btn b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.date-btn span,
.match-btn small {
  color: var(--muted);
  font-size: 12px;
}

.date-btn.active,
.match-btn.active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.date-btn.active span,
.match-btn.active small,
.match-btn.active em {
  color: rgba(255, 255, 255, 0.8);
}

.today-panel,
.update-card,
.card,
.hero-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.today-panel,
.update-card {
  padding: 14px;
  margin-bottom: 16px;
}

.section-title,
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: #2c4135;
  font-weight: 800;
  font-size: 13px;
}

#refreshBtn,
#topRefreshBtn,
#repairBtn,
.pill-btn {
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--green);
  cursor: pointer;
  padding: 7px 12px;
  font-size: 12px;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 4px 0;
}

.history-count {
  display: block;
  margin: -8px 0 10px;
  color: var(--muted);
}

.match-list {
  display: grid;
  gap: 9px;
}

.match-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.match-empty b,
.match-empty span {
  display: block;
}

.match-empty b {
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 6px;
}

.match-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.match-btn {
  padding: 12px;
}

.match-btn b {
  display: block;
  font-size: 14px;
  margin: 4px 0 5px;
}

.match-btn em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.live-dot {
  color: white;
  background: var(--red);
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
}

.status-list {
  margin: 0;
}

.status-list div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.status-list dt {
  color: var(--muted);
}

.status-list dd {
  margin: 0;
  font-weight: 700;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 124px;
  padding: 22px 28px;
  margin-bottom: 18px;
}

.team-block {
  display: grid;
  gap: 2px;
  text-align: center;
}

.team-block span {
  font-size: 14px;
  color: #2a3d32;
  font-weight: 700;
}

.team-block strong {
  font-size: 44px;
  line-height: 1;
}

.team-block em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.versus {
  display: grid;
  place-items: center;
  gap: 8px;
}

.versus span {
  border-radius: 999px;
  color: #120904;
  background: var(--red);
  padding: 4px 9px;
  font-size: 11px;
}

.versus b {
  color: var(--green-dark);
  font-size: 28px;
  text-shadow: 0 0 18px rgba(251, 146, 60, 0.4);
}

.versus small {
  color: var(--muted);
  text-align: center;
}

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

.card {
  min-height: 190px;
  padding: 16px;
}

.verdict-card,
.probability-card {
  grid-column: span 2;
}

.master-model-card {
  grid-column: span 4;
  min-height: 160px;
}

.learning-model-card {
  grid-column: span 4;
}

.final-map-card,
.daily-board-card {
  grid-column: span 4;
}

.factor-card,
.market-card,
.history-card {
  grid-column: span 2;
}

.path-card,
.betting-card,
.mystic-card,
.ai-card {
  grid-column: span 4;
}

.card-head small {
  color: var(--muted);
  font-weight: 600;
}

.verdict-card {
  border-left: 5px solid var(--green);
}

.verdict-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.verdict-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.prob-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 13px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.12);
  overflow: hidden;
}

.bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.3s ease;
}

.bar.amber i { background: var(--amber); }
.bar.blue i { background: var(--blue); }

.master-decision {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.master-decision div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6faf7;
  padding: 10px;
}

.master-decision span,
.weight-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.master-decision b {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 18px;
}

.master-model-card p {
  margin: 12px 0 10px;
  color: #f5d0aa;
  line-height: 1.55;
  font-size: 13px;
}

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

.weight-strip div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.weight-strip b {
  display: block;
  color: #fff7ed;
  font-size: 13px;
}

.learning-summary {
  border: 1px solid rgba(255, 159, 10, 0.24);
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.74);
  padding: 12px;
  color: #3b332b;
  line-height: 1.65;
  font-size: 13px;
}

.learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.learning-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.learning-grid > div > b {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 13px;
}

.factor-rank-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.factor-rank {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 48px;
  gap: 9px;
  align-items: start;
  overflow: hidden;
  border: 1px solid rgba(60, 60, 67, 0.09);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}

.factor-rank > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 159, 10, 0.15);
  color: #9a4f00;
  font-weight: 800;
  font-size: 11px;
}

.factor-rank div,
.factor-rank strong {
  position: relative;
  z-index: 1;
}

.factor-rank b {
  display: block;
  font-size: 13px;
}

.factor-rank em,
.play-weight-grid em,
.learning-signal-grid em,
.learning-review {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
  font-size: 11px;
}

.factor-rank strong {
  text-align: right;
  color: #d86600;
  font-size: 13px;
}

.factor-rank i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff9f0a, #ffcc66);
}

.play-weight-grid,
.learning-signal-grid {
  display: grid;
  gap: 8px;
}

.play-weight-grid div,
.learning-signal-grid div {
  border: 1px solid rgba(60, 60, 67, 0.09);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.play-weight-grid b,
.learning-signal-grid b {
  display: block;
  color: var(--green-dark);
  font-size: 13px;
}

.play-weight-grid span,
.learning-signal-grid span {
  display: block;
  margin-top: 4px;
  color: #6b3d00;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.45;
}

.learning-review {
  margin: 10px 0 0;
}

.daily-board {
  display: grid;
  gap: 10px;
}

.final-map {
  display: grid;
  gap: 12px;
}

.final-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.final-overview div,
.combo-card,
.final-node {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.final-overview div {
  padding: 12px;
}

.final-overview span,
.play-type-card span,
.combo-card span,
.final-node span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.final-overview b {
  display: block;
  margin-top: 5px;
  color: #ffedd5;
  font-size: 18px;
}

.final-overview p {
  margin: 8px 0 0;
  color: #f5d0aa;
  font-size: 13px;
  line-height: 1.45;
}

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

.change-alert {
  border: 1px solid rgba(255, 159, 10, 0.28);
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.92);
  padding: 10px 12px;
}

.change-alert b,
.change-alert span {
  display: block;
}

.change-alert b {
  color: #9a3412;
  font-size: 13px;
}

.change-alert span {
  margin-top: 4px;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.stage-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.08);
  padding: 10px 12px;
}

.stage-card span,
.stage-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.stage-card b {
  color: #ffedd5;
  font-size: 13px;
}

.stage-card.live,
.stage-card.near {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
}

.stage-card.done {
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.1);
}

.decision-table {
  display: grid;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.decision-table-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.28fr) minmax(132px, 1.08fr) minmax(84px, 0.66fr) minmax(92px, 0.7fr) minmax(60px, 0.5fr) minmax(108px, 0.8fr) minmax(82px, 0.66fr) minmax(82px, 0.68fr) minmax(112px, 0.84fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
  background: transparent;
  color: #1d1d1f;
  text-align: left;
  padding: 10px 12px;
}

.decision-table-row:last-child {
  border-bottom: 0;
}

.decision-table-row:not(.decision-table-head) {
  cursor: pointer;
}

.decision-table-row:not(.decision-table-head):hover {
  background: #f8fbff;
}

.decision-table-head {
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 700;
}

.decision-table-row b,
.decision-table-row strong,
.decision-table-row span,
.decision-table-row em,
.decision-table-row i {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.decision-table-row b {
  color: #1d1d1f;
  font-size: 13px;
}

.decision-table-row strong {
  color: var(--green);
  font-size: 13px;
}

.decision-table-row span,
.decision-table-row em,
.decision-table-row i {
  color: #3a3a3c;
  font-size: 12px;
}

.decision-table-row em {
  color: #a54b00;
  font-weight: 800;
}

.decision-table-row.is-done em {
  color: #0066cc;
}

.decision-table-row i {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: #eef6ff;
  color: #0066cc;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

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

.play-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.combo-card {
  padding: 12px;
}

.play-type-card,
.combo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.play-type-card {
  padding: 12px;
}

.combo-card b {
  display: inline-block;
  margin-top: 5px;
  color: #120904;
  background: #fb923c;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 13px;
}

.play-type-card b {
  display: block;
  margin-top: 5px;
  color: #ffedd5;
  font-size: 15px;
}

.combo-card ul {
  margin: 10px 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.play-type-card ul {
  margin: 10px 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.combo-card li {
  color: #ffedd5;
  font-size: 13px;
  line-height: 1.45;
}

.play-type-card li {
  color: #ffedd5;
  font-size: 12px;
  line-height: 1.45;
}

.combo-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.4;
}

.play-type-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.4;
}

.final-node-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.final-node {
  display: grid;
  gap: 5px;
  padding: 11px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.final-node:hover,
.final-node.is-active {
  border-color: rgba(251, 146, 60, 0.78);
  background: #2a1a0f;
}

.final-node b {
  color: #ffedd5;
  font-size: 14px;
}

.final-node strong {
  color: #fb923c;
  font-size: 15px;
}

.node-play-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0;
}

.node-play-grid i {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 6px;
  padding: 6px;
  background: rgba(251, 146, 60, 0.08);
  font-style: normal;
}

.node-play-grid i span {
  color: var(--muted);
  font-size: 11px;
}

.node-play-grid i b {
  color: #ffedd5;
  font-size: 12px;
}

.final-node em,
.final-node small {
  color: #c8a98a;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.daily-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(132px, 0.9fr) minmax(155px, 1fr) minmax(230px, 1.45fr) minmax(170px, 1.05fr);
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.daily-row:hover {
  border-color: rgba(251, 146, 60, 0.75);
  transform: translateY(-1px);
}

.daily-row.is-active {
  border-color: rgba(251, 146, 60, 0.8);
  background: rgba(251, 146, 60, 0.18);
}

.daily-match b,
.daily-call b,
.daily-strength b {
  display: block;
  color: var(--green-dark);
}

.daily-match span,
.daily-call span,
.daily-strength span,
.daily-game span,
.daily-plays span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}

.daily-call strong {
  display: inline-block;
  margin-top: 5px;
  color: #fff7ed;
  font-size: 16px;
}

.daily-strength strong {
  display: block;
  margin: 4px 0;
  color: #fff7ed;
  font-size: 18px;
}

.daily-strength em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.daily-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.daily-tags i {
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.16);
  color: #ffedd5;
  font-style: normal;
  font-size: 12px;
  padding: 4px 7px;
}

.match-result-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 999px;
  background: #eef6ff;
  color: #0066cc;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.25;
}

.match-btn.is-completed,
.daily-row.is-completed {
  border-color: rgba(0, 122, 255, 0.24);
}

.daily-game p,
.daily-plays p {
  margin: 0;
  color: #f5d0aa;
  font-size: 13px;
  line-height: 1.5;
}

.daily-game .path-target {
  margin-bottom: 7px;
  color: #fff7ed;
  font-weight: 800;
}

.daily-game .daily-intel {
  margin-bottom: 7px;
  color: #f5d0aa;
  font-weight: 600;
}

.daily-intel b {
  display: inline-block;
  margin-right: 6px;
  color: #fb923c;
}

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

.score-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.score-cell b {
  font-size: 18px;
}

.score-cell span {
  color: var(--muted);
  font-size: 12px;
}

.score-note {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 12px;
  background: #eef6ff;
}

.score-note b {
  color: #1d4ed8;
  font-size: 12px;
}

.score-note span {
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}

.matchup-detail-text {
  margin: 4px 0 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.68;
}

.matchup-detail-text::first-letter {
  color: #1d4ed8;
  font-weight: 900;
}

.factor-list {
  display: grid;
  gap: 10px;
}

.factor {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.factor b {
  color: var(--green-dark);
}

.factor span {
  color: #f5d0aa;
  line-height: 1.5;
}

.market-call {
  border-left: 4px solid var(--green);
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(251, 146, 60, 0.12);
  color: var(--green-dark);
  font-weight: 800;
}

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

.market-grid div,
.weather-grid div,
.path-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--panel-2);
}

.market-grid span,
.weather-grid span,
.path-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.market-grid b,
.weather-grid b,
.path-grid b {
  font-size: 18px;
}

.weather-main {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 10px 0 18px;
}

.weather-main strong {
  font-size: 38px;
}

.weather-main span {
  color: var(--muted);
  padding-bottom: 7px;
}

.news-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-card li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  line-height: 1.5;
}

.news-card b {
  color: var(--green-dark);
}

.news-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.path-summary {
  line-height: 1.65;
  color: #f5d0aa;
  margin-bottom: 14px;
}

.motivation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

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

.scenario-card {
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.12);
  padding: 12px;
  min-height: 132px;
}

.scenario-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.scenario-card b {
  display: block;
  color: var(--green-dark);
  margin-bottom: 7px;
}

.scenario-card p {
  margin: 0;
  color: #3e5146;
  font-size: 12px;
  line-height: 1.5;
}

.competition-context-box {
  display: grid;
  gap: 10px;
}

.competition-context-box p {
  margin: 0;
}

.context-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.context-facts > span,
.context-lines > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-facts b {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.context-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  color: #3e5146;
  font-size: 12px;
  line-height: 1.45;
}

.context-note {
  color: var(--muted);
  font-size: 11px;
}

.context-source-link {
  width: fit-content;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.standings-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  margin: 12px 0;
  background: rgba(12, 8, 5, 0.58);
}

.standing-row {
  display: grid;
  grid-template-columns: 42px minmax(92px, 1fr) 34px 58px 48px 36px 40px minmax(104px, 1.2fr);
  align-items: center;
  min-width: 620px;
  gap: 8px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.standing-row:first-child {
  border-top: 0;
}

.standing-head {
  background: rgba(251, 146, 60, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.standing-row.is-active {
  background: rgba(251, 146, 60, 0.12);
}

.standing-row b,
.standing-row strong {
  color: var(--green-dark);
}

.standing-row em {
  color: #f5d0aa;
  font-style: normal;
}

.motive-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 11px;
  min-height: 96px;
}

.motive-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.motive-card b {
  display: block;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.motive-card p {
  margin: 0;
  color: #f5d0aa;
  font-size: 12px;
  line-height: 1.45;
}

.result-card {
  grid-column: span 2;
}

.playbook-list,
.ai-grid {
  display: grid;
  gap: 10px;
}

.playbook-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.play-item,
.ai-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--panel-2);
}

.play-item b,
.ai-item b {
  color: var(--green-dark);
}

.play-item span,
.ai-item span {
  line-height: 1.45;
  font-size: 13px;
}

.play-item em,
.ai-item em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  margin-top: 3px;
}

.pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pick-row i {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  color: var(--green-dark);
  font-style: normal;
  font-weight: 800;
  padding: 5px 9px;
  font-size: 12px;
}

.mystic-box {
  display: grid;
  gap: 12px;
}

.mystic-main,
.mystic-picks div,
.mystic-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-2);
}

.mystic-main {
  display: grid;
  gap: 7px;
}

.mystic-main span,
.mystic-picks span,
.mystic-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mystic-main b {
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1.18;
}

.mystic-main p,
.mystic-main em,
.mystic-picks p,
.mystic-grid p {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.mystic-main p {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.mystic-picks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mystic-picks b,
.mystic-grid b {
  display: block;
  margin: 4px 0;
  color: var(--green-dark);
  font-size: 16px;
  line-height: 1.3;
}

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

.ai-item {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
}

.ai-item.is-live {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.12);
}

.consensus-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.consensus-box div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.consensus-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.consensus-box b {
  color: var(--green-dark);
  font-size: 18px;
}

.consensus-box p {
  grid-column: 1 / -1;
  margin: 0;
  color: #f5d0aa;
  font-size: 12px;
  line-height: 1.5;
}

.model-stamp {
  display: block;
  color: var(--muted);
  margin: -7px 0 10px;
  font-size: 12px;
}

.web-intel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.web-intel-item {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.web-intel-item b {
  color: var(--green-dark);
  margin-right: 6px;
}

.web-intel-item a {
  color: #7dd3fc;
  text-decoration: none;
}

.web-intel-item span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.review-box {
  border-left: 4px solid var(--amber);
  background: #fff8eb;
  color: #5e4b2e;
  line-height: 1.55;
  padding: 10px 12px;
}

.mini-timeline {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-timeline div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 9px 10px;
  font-size: 12px;
}

.mini-timeline b {
  color: var(--green-dark);
}

.mini-timeline span {
  color: var(--muted);
}

.mini-timeline .review-timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.review-timeline-row em {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: inherit;
  font-style: normal;
}

.review-timeline-row em span {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.review-timeline-row em span.hit {
  background: rgba(52, 199, 89, 0.12);
  color: #248a3d;
}

.review-timeline-row em span.miss {
  background: rgba(255, 59, 48, 0.11);
  color: #c02b22;
}

.review-timeline-row em span.pending {
  background: rgba(142, 142, 147, 0.12);
  color: #6e6e73;
}

.history-list {
  display: grid;
  gap: 9px;
  max-height: 300px;
  overflow: auto;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-2);
}

.history-item strong {
  display: block;
  margin-bottom: 4px;
}

.history-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.history-item b {
  align-self: center;
  color: var(--green-dark);
}

.sidebar {
  position: sticky;
  top: 22px;
  align-self: start;
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 8px;
  padding: 16px;
  color: #fff7ed;
  background: #120d09;
  box-shadow: none;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.sidebar .brand h1,
.sidebar .section-title {
  color: #fff7ed;
}

.sidebar .brand p,
.sidebar .date-btn span,
.sidebar .match-btn small,
.sidebar .match-btn em,
.sidebar .status-list dt {
  color: rgba(255, 237, 213, 0.74);
}

.sidebar .mark,
.sidebar #refreshBtn,
.sidebar #repairBtn,
.sidebar .live-dot {
  color: #120904;
  background: #fb923c;
  box-shadow: none;
}

.sidebar .date-btn,
.sidebar .match-btn,
.sidebar .today-panel,
.sidebar .update-card {
  border-color: rgba(255, 237, 213, 0.16);
  background: rgba(255, 247, 237, 0.055);
  color: #fff7ed;
  box-shadow: none;
}

.sidebar .date-btn:hover,
.sidebar .match-btn:hover {
  border-color: rgba(251, 146, 60, 0.7);
  background: rgba(255, 247, 237, 0.14);
}

.sidebar .date-btn.active,
.sidebar .match-btn.active {
  color: #120904;
  border-color: #fed7aa;
  background: #fb923c;
  box-shadow: none;
}

.sidebar .date-btn.active span,
.sidebar .match-btn.active small,
.sidebar .match-btn.active em {
  color: rgba(67, 20, 7, 0.72);
}

.sidebar .status-list div {
  border-top-color: rgba(255, 237, 213, 0.16);
}

.sidebar .status-list dd {
  color: #ffedd5;
}

.hero-card {
  border-color: rgba(251, 146, 60, 0.34);
  background: #15100b;
}

.team-block span {
  color: #fdba74;
}

.daily-board-card {
  border-color: rgba(251, 146, 60, 0.45);
  background: #15100b;
}

.daily-row {
  border-color: rgba(251, 146, 60, 0.22);
  background: #1d150e;
}

.daily-row:hover {
  border-color: rgba(251, 146, 60, 0.75);
  box-shadow: none;
}

.daily-row.is-active {
  border-color: #fb923c;
  background: #2a1a0f;
}

.daily-tags i,
.pick-row i,
.consensus-box div,
.master-decision div,
.scenario-card {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.3);
}

.market-call,
.review-box {
  background: rgba(251, 146, 60, 0.12);
  color: #fed7aa;
}

.standing-head {
  background: rgba(251, 146, 60, 0.12);
}

.standing-row.is-active,
.ai-item.is-live {
  background: rgba(251, 146, 60, 0.12);
}

.card-head,
.section-title {
  color: #fdba74;
}

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

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: static;
    max-height: none;
  }

  .brand {
    grid-column: 1 / -1;
  }

  .date-grid {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 12px;
  }

  .sidebar,
  .content-grid,
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    gap: 10px;
  }

  .verdict-card,
  .probability-card,
  .master-model-card,
  .final-map-card,
  .factor-card,
  .market-card,
  .path-card,
  .betting-card,
  .mystic-card,
  .ai-card,
  .result-card,
  .history-card {
    grid-column: span 1;
  }

  .team-block strong {
    font-size: 34px;
  }

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

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

  .playbook-list,
  .ai-grid,
  .consensus-box,
  .master-decision,
  .weight-strip,
  .final-overview,
  .play-type-grid,
  .combo-grid,
  .final-node-grid,
  .daily-row {
    grid-template-columns: 1fr;
  }

  .standing-row {
    grid-template-columns: 32px minmax(76px, 1fr) 28px 48px 42px 32px 30px minmax(86px, 1fr);
    min-width: 560px;
    gap: 5px;
    padding: 8px;
    font-size: 12px;
  }
}

/* Apple-style light workspace */
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 122, 255, 0.08), transparent 32rem),
    linear-gradient(180deg, #fbfbfd, #f5f5f7 42%, #f2f2f4);
}

body::before {
  background-image:
    linear-gradient(rgba(60, 60, 67, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 60, 67, 0.035) 1px, transparent 1px);
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
}

.shell {
  max-width: 1540px;
  gap: 18px;
}

.sidebar {
  border-color: rgba(60, 60, 67, 0.12);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(180%) blur(18px);
}

.today-panel,
.update-card,
.card,
.hero-card,
.date-btn,
.match-btn,
.final-overview div,
.stage-card,
.play-type-card,
.combo-card,
.final-node,
.daily-row,
.score-cell,
.market-grid div,
.weather-grid div,
.path-grid div,
.play-item,
.ai-item,
.consensus-box div,
.scenario-card,
.motive-card,
.factor {
  border-color: rgba(60, 60, 67, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: none;
}

.card,
.hero-card,
.today-panel,
.update-card {
  box-shadow: var(--shadow);
}

.hero-card,
.daily-board-card,
.final-map-card {
  background: rgba(255, 255, 255, 0.94);
}

.mark,
#refreshBtn,
.pill-btn,
.live-dot,
.combo-card b {
  color: #fff;
  background: var(--green);
  box-shadow: none;
}

.date-btn.active,
.match-btn.active,
.sidebar .date-btn.active,
.sidebar .match-btn.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
  box-shadow: none;
}

.date-btn.active span,
.match-btn.active small,
.match-btn.active em,
.sidebar .date-btn.active span,
.sidebar .match-btn.active small,
.sidebar .match-btn.active em {
  color: rgba(255, 255, 255, 0.82);
}

.date-btn:hover,
.match-btn:hover,
.daily-row:hover,
.final-node:hover,
.final-node.is-active {
  border-color: rgba(0, 122, 255, 0.38);
  background: #f8fbff;
  transform: none;
}

.daily-row.is-active {
  border-color: rgba(0, 122, 255, 0.5);
  background: #f0f7ff;
}

.brand h1,
.section-title,
.card-head,
.sidebar .brand h1,
.sidebar .section-title,
.stage-card b,
.daily-match b,
.daily-call b,
.daily-strength b,
.final-overview b,
.play-type-card b,
.final-node b,
.master-decision b,
.consensus-box b,
.play-item b,
.ai-item b,
.factor b,
.web-intel-item b,
.motive-card b {
  color: #1d1d1f;
}

.brand p,
.date-btn span,
.match-btn small,
.match-btn em,
.sidebar .brand p,
.sidebar .date-btn span,
.sidebar .match-btn small,
.sidebar .match-btn em,
.sidebar .status-list dt,
.daily-match span,
.daily-call span,
.daily-strength span,
.daily-game span,
.daily-plays span,
.final-overview span,
.stage-card span,
.stage-card em,
.play-type-card span,
.combo-card span,
.final-node span,
.final-node em,
.final-node small,
.combo-card em,
.play-type-card em,
.node-play-grid i span,
.play-item em,
.ai-item em,
.web-intel-item span,
.model-stamp,
.card-head small,
.history-count {
  color: #6e6e73;
}

.team-block span,
.card-head,
.section-title,
.sidebar .status-list dd,
.text-btn,
.web-intel-item a {
  color: var(--green);
}

.team-block strong,
.daily-call strong,
.daily-strength strong,
.final-node strong,
.node-play-grid i b,
.combo-card li,
.play-type-card li,
.daily-game p,
.daily-plays p,
.factor span,
.master-model-card p,
.consensus-box p,
.motive-card p,
.weight-strip b {
  color: #1d1d1f;
}

.daily-game .path-target {
  color: #1d1d1f;
}

.daily-game .daily-intel,
.market-call,
.review-box {
  color: #3a3a3c;
  background: #f5f5f7;
}

.daily-intel b,
.final-node strong {
  color: var(--green);
}

.final-map-card {
  padding: 18px;
}

.final-overview div,
.play-type-card,
.combo-card,
.final-node {
  padding: 14px;
}

.play-type-grid,
.combo-grid,
.final-node-grid,
.final-overview {
  gap: 12px;
}

.final-node {
  min-height: 220px;
}

.stage-card {
  background: #fff8eb;
}

.stage-card.live,
.stage-card.near {
  background: #f0fff5;
}

.stage-card.done {
  background: #eef6ff;
}

.node-play-grid i {
  background: #f5f5f7;
}

.daily-tags i,
.pick-row i,
.master-decision div,
.scenario-card,
.consensus-box div,
.node-play-grid i,
.standing-head,
.standing-row.is-active,
.ai-item.is-live {
  border-color: rgba(0, 122, 255, 0.12);
  background: #f3f8ff;
  color: #1d1d1f;
}

.bar {
  background: rgba(60, 60, 67, 0.12);
}

.market-call,
.review-box {
  border-left-color: var(--green);
}

.standing-row b,
.standing-row strong,
.history-item strong,
.score-cell b {
  color: #1d1d1f;
}

.standing-row em,
.history-item span,
.score-cell span {
  color: #6e6e73;
}

.sidebar .date-btn,
.sidebar .match-btn,
.sidebar .today-panel,
.sidebar .update-card {
  border-color: rgba(60, 60, 67, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.sidebar .date-btn:hover,
.sidebar .match-btn:hover {
  border-color: rgba(0, 122, 255, 0.38);
  background: #f8fbff;
}

/* Mobile WebView layout: keep the installed APK, update the server-rendered UI. */
@media (max-width: 760px) {
  html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 10px;
  }

  body {
    overflow-x: hidden;
    background: #f5f5f7;
  }

  body::before {
    display: none;
  }

  .shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    padding: calc(12px + env(safe-area-inset-top)) 8px calc(14px + env(safe-area-inset-bottom));
  }

  .sidebar {
    order: 1;
    position: static;
    display: block;
    align-self: stretch;
    width: 100%;
    max-height: none;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .brand {
    min-height: 44px;
    margin: 0 0 8px;
    padding: 4px 2px 0;
  }

  .brand-actions {
    margin-left: auto;
  }

  #repairBtn,
  #topRefreshBtn {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .mark {
    width: 34px;
    height: 30px;
    border-radius: 7px;
    font-size: 13px;
  }

  .brand h1 {
    font-size: 17px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .brand p {
    max-width: 68vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  .date-grid {
    display: flex;
    gap: 8px;
    margin: 0 -8px 6px;
    padding: 0 8px 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .date-grid::-webkit-scrollbar,
  .match-list::-webkit-scrollbar {
    display: none;
  }

  .date-btn {
    flex: 0 0 124px;
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
  }

  .date-btn b {
    margin-bottom: 2px;
    font-size: 12px;
  }

  .date-btn span {
    font-size: 11px;
  }

  .today-panel {
    margin: 0 0 8px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
  }

  .today-panel .section-title {
    margin-bottom: 8px;
  }

  .match-list {
    display: flex;
    gap: 8px;
    margin: 0 -10px;
    padding: 0 10px 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .match-btn {
    flex: 0 0 210px;
    min-height: 72px;
    padding: 10px;
    border-radius: 12px;
  }

  .match-btn b {
    margin: 3px 0;
    font-size: 13px;
    line-height: 1.25;
  }

  .match-btn small,
  .match-btn em {
    font-size: 10px;
    line-height: 1.25;
  }

  .update-card {
    display: none;
  }

  .dashboard {
    order: 2;
    display: block;
  }

  .hero-card {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    gap: 8px;
    min-height: 66px;
    margin: 0 0 8px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(18px);
  }

  .team-block {
    min-width: 0;
  }

  .team-block span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .team-block strong {
    font-size: 26px;
    line-height: 1;
  }

  .team-block em {
    font-size: 10px;
  }

  .versus {
    gap: 2px;
  }

  .versus b {
    font-size: 17px;
  }

  .versus small {
    font-size: 10px;
    line-height: 1.15;
  }

  #venueBadge {
    padding: 2px 6px;
    font-size: 10px;
  }

  .content-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .card {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    box-shadow: none;
  }

  .card-head,
  .section-title {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .card-head small,
  .model-stamp {
    font-size: 11px;
  }

  .final-map-card {
    order: 1;
    padding: 12px;
  }

  .daily-board-card {
    order: 2;
  }

  .betting-card {
    order: 3;
  }

  .mystic-card {
    order: 4;
  }

  .ai-card {
    order: 5;
  }

  .path-card {
    order: 6;
  }

  .verdict-card {
    order: 7;
  }

  .master-model-card {
    order: 8;
  }

  .probability-card {
    order: 8;
  }

  .score-card {
    order: 9;
  }

  .market-card {
    order: 10;
  }

  .factor-card,
  .weather-card,
  .news-card,
  .result-card,
  .history-card {
    order: 20;
  }

  .final-map {
    gap: 8px;
  }

  .final-overview {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .final-overview div {
    padding: 10px;
    border-radius: 12px;
  }

  .final-overview div:nth-child(n + 2) p {
    display: none;
  }

  .final-overview span,
  .play-type-card span,
  .combo-card span,
  .final-node span {
    font-size: 11px;
  }

  .final-overview b {
    margin-top: 3px;
    font-size: 16px;
  }

  .final-overview p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
  }

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

  .play-type-card {
    min-height: 0;
    padding: 10px;
    border-radius: 12px;
  }

  .play-type-card b {
    font-size: 14px;
  }

  .play-type-card ul {
    margin: 8px 0 4px;
    gap: 5px;
  }

  .play-type-card li {
    font-size: 11px;
    line-height: 1.35;
  }

  .play-type-card em {
    display: none;
  }

  .combo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .combo-card {
    padding: 10px;
    border-radius: 12px;
  }

  .combo-card b {
    margin-top: 3px;
    padding: 3px 8px;
    font-size: 12px;
  }

  .combo-card ul {
    margin: 7px 0 4px;
    gap: 4px;
  }

  .combo-card li {
    font-size: 12px;
    line-height: 1.35;
  }

  .combo-card em {
    font-size: 11px;
  }

  .final-node-grid {
    display: flex;
    gap: 8px;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .final-node {
    flex: 0 0 84%;
    min-height: 0;
    padding: 10px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .final-node b {
    font-size: 13px;
    line-height: 1.25;
  }

  .final-node strong {
    font-size: 15px;
  }

  .node-play-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .node-play-grid i {
    padding: 6px 4px;
    border-radius: 9px;
    text-align: center;
  }

  .node-play-grid i span {
    font-size: 10px;
  }

  .node-play-grid i b {
    font-size: 11px;
    line-height: 1.2;
  }

  .final-node em,
  .final-node small {
    display: none;
  }

  .daily-board {
    gap: 8px;
  }

  .daily-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .daily-match b {
    font-size: 14px;
  }

  .daily-match span:nth-child(3),
  .daily-strength em,
  .daily-game p:nth-of-type(n + 3),
  .daily-game span {
    display: none;
  }

  .daily-call,
  .daily-strength,
  .daily-plays {
    display: grid;
    grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
    gap: 4px 8px;
    align-items: center;
  }

  .daily-call strong,
  .daily-strength strong {
    margin: 0;
    font-size: 17px;
  }

  .daily-call span,
  .daily-strength span {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .daily-tags {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .daily-tags i,
  .pick-row i {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .daily-game {
    padding: 8px;
    border-radius: 12px;
    background: #f5f5f7;
  }

  .daily-game p,
  .daily-plays p {
    font-size: 12px;
    line-height: 1.4;
  }

  .daily-plays p,
  .daily-plays span {
    grid-column: 1 / -1;
  }

  .playbook-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mystic-picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mystic-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mystic-main,
  .mystic-picks div,
  .mystic-grid div {
    padding: 10px;
    border-radius: 12px;
  }

  .mystic-main b {
    font-size: 20px;
  }

  .play-item {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 10px;
    border-radius: 12px;
  }

  .play-item span,
  .ai-item span {
    font-size: 12px;
  }

  .play-item em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .consensus-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .consensus-box div {
    padding: 9px;
    border-radius: 12px;
  }

  .consensus-box b {
    font-size: 16px;
    line-height: 1.2;
  }

  .consensus-box p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ai-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ai-item {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 10px;
    border-radius: 12px;
  }

  .ai-item em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .web-intel {
    max-height: 168px;
    overflow: auto;
  }

  .path-summary {
    display: -webkit-box;
    margin-bottom: 10px;
    overflow: hidden;
    color: #3a3a3c;
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 8px 0;
  }

  .scenario-card {
    min-height: 0;
    padding: 10px;
    border-radius: 12px;
  }

  .scenario-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .standings-table {
    margin: 8px -12px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: #fff;
  }

  .standing-row {
    min-width: 560px;
    padding: 8px 10px;
    font-size: 11px;
  }

  #verdict {
    margin: 0 0 6px;
    font-size: 24px;
  }

  #verdictText,
  .master-model-card p,
  .market-call,
  .review-box,
  .factor span,
  .motive-card p {
    font-size: 12px;
    line-height: 1.45;
  }

  .master-decision,
  .weight-strip,
  .market-grid,
  .weather-grid,
  .motivation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .prob-row {
    gap: 8px;
  }

  .score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .score-cell {
    min-height: 38px;
    padding: 8px 9px;
    border-radius: 12px;
  }

  .score-cell b,
  .market-grid b,
  .weather-grid b,
  .path-grid b {
    font-size: 15px;
  }

  .factor {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    font-size: 12px;
  }

  .weather-main {
    margin: 6px 0 10px;
  }

  .weather-main strong {
    font-size: 28px;
  }

  .news-card li,
  .web-intel-item,
  .history-item {
    font-size: 12px;
  }

  .mini-timeline div,
  .history-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shell {
    padding-right: 6px;
    padding-left: 6px;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    padding: 9px;
  }

  .team-block strong {
    font-size: 23px;
  }

  .date-btn {
    flex-basis: 112px;
  }

  .match-btn {
    flex-basis: 190px;
  }

  .card {
    padding: 10px;
    border-radius: 14px;
  }

  .play-type-grid,
  .consensus-box,
  .master-decision,
  .weight-strip,
  .market-grid,
  .weather-grid,
  .motivation-grid {
    grid-template-columns: 1fr 1fr;
  }

  .play-type-grid {
    grid-template-columns: 1fr;
  }

  .mystic-picks {
    grid-template-columns: 1fr;
  }

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

  .final-node {
    flex-basis: 88%;
  }

  .daily-call,
  .daily-strength,
  .daily-plays {
    grid-template-columns: 1fr;
  }

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

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

  .factor-rank-list {
    max-height: 360px;
  }

  .factor-rank {
    grid-template-columns: 22px minmax(0, 1fr) 44px;
    padding: 8px;
  }

  .learning-summary {
    padding: 10px;
  }
}

/* Betting-first information architecture */
.content-grid > .hero-card {
  grid-column: span 4;
  margin-bottom: 0;
}

.final-map-card { order: 1; }
.score-card { order: 2; }
.deep-analysis-card { order: 3; }
.result-card { order: 4; }
.daily-board-card { order: 5; }
.betting-card { order: 6; }
.mystic-card { order: 7; }
.path-card { order: 8; }
.ai-card { order: 9; }
.content-grid > .hero-card { order: 8; }
.verdict-card { order: 9; }
.probability-card { order: 10; }
.market-card { order: 12; }
.master-model-card { order: 13; }
.learning-model-card { order: 14; }
.history-card { order: 16; }
.factor-card { order: 17; }
.weather-card { order: 18; }
.news-card { order: 19; }

@media (max-width: 760px) {
  .content-grid > .hero-card {
    position: static;
    z-index: auto;
    order: 8;
    margin: 0;
  }

  .final-map-card { order: 1; }
  .score-card { order: 2; }
  .deep-analysis-card { order: 3; }
  .result-card { order: 4; }
  .daily-board-card { order: 5; }
  .betting-card { order: 6; }
  .mystic-card { order: 7; }
  .path-card { order: 8; }
  .ai-card { order: 9; }
  .verdict-card { order: 9; }
  .probability-card { order: 10; }
  .market-card { order: 12; }
  .master-model-card { order: 13; }
  .learning-model-card { order: 14; }
  .history-card { order: 16; }
  .factor-card { order: 17; }
  .weather-card { order: 18; }
  .news-card { order: 19; }
}

/* Visual refinement pass: calmer hierarchy, denser mobile scan */
:root {
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #f5f8fc;
  --surface-warm: #fff8ef;
  --line-soft: rgba(60, 60, 67, 0.1);
  --blue-soft: rgba(0, 122, 255, 0.1);
  --amber-soft: rgba(255, 159, 10, 0.13);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.055);
}

body {
  background:
    radial-gradient(circle at 14% -8%, rgba(0, 122, 255, 0.1), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(255, 159, 10, 0.08), transparent 26rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 46%, #f1f2f5 100%);
}

.shell {
  gap: 16px;
}

.sidebar,
.card,
.hero-card,
.today-panel,
.update-card {
  border-color: var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 18px;
}

.card-head,
.section-title {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.07);
  color: var(--green);
}

.card-head span,
.section-title span {
  font-size: 15px;
  font-weight: 900;
}

.card-head small,
.model-stamp,
.history-count {
  color: #8a8a8e;
}

.final-map-card,
.daily-board-card,
.betting-card {
  border-color: rgba(0, 122, 255, 0.16);
}

.master-model-card,
.learning-model-card {
  border-color: rgba(255, 159, 10, 0.2);
}

.master-decision {
  gap: 9px;
}

.master-decision div,
.final-overview div,
.play-type-card,
.combo-card,
.consensus-box div,
.mystic-main,
.mystic-picks div,
.mystic-grid div,
.play-item,
.ai-item,
.market-grid div,
.weather-grid div,
.path-grid div,
.scenario-card,
.score-cell,
.factor-rank,
.daily-row,
.final-node {
  border-color: rgba(60, 60, 67, 0.095);
  border-radius: var(--radius-md);
  background: #fff;
}

.master-decision div {
  min-height: 72px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.master-decision b {
  font-size: 17px;
}

.master-model-card p,
.learning-summary,
.market-call,
.review-box {
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: #3a3a3c;
  padding: 12px;
}

.learning-summary {
  border-color: rgba(255, 159, 10, 0.2);
  background: var(--surface-warm);
}

.weight-strip {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.weight-strip div {
  border-top: 0;
  border-left: 3px solid rgba(0, 122, 255, 0.24);
  border-radius: 12px;
  background: #f8fbff;
  padding: 9px 10px;
}

.factor-rank-list {
  scrollbar-color: rgba(0, 122, 255, 0.35) transparent;
}

.factor-rank {
  overflow: hidden;
}

.factor-rank i {
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.factor-rank > span {
  background: var(--amber-soft);
  color: #a54b00;
}

.daily-row.is-active,
.match-btn.active,
.date-btn.active {
  box-shadow: 0 8px 18px rgba(0, 122, 255, 0.12);
}

.match-btn.active,
.sidebar .match-btn.active {
  border-color: rgba(255, 138, 0, 0.52);
  background: linear-gradient(135deg, #ff9f2f, #ff7a00);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.22);
}

.node-play-grid i,
.daily-tags i,
.pick-row i {
  border: 1px solid rgba(0, 122, 255, 0.12);
  background: #f1f7ff;
}

.mystic-card .card-head span {
  color: #8a4b00;
}

.mystic-main {
  background: linear-gradient(180deg, #fffaf2, #fff);
}

.ai-card .card-head span,
.path-card .card-head span,
.master-model-card .card-head span,
.learning-model-card .card-head span {
  color: #1d1d1f;
}

@media (max-width: 760px) {
  .shell {
    padding: max(10px, env(safe-area-inset-top)) 8px 14px;
    gap: 10px;
    max-width: 100vw;
    overflow-x: clip;
  }

  .sidebar,
  .dashboard,
  .content-grid,
  .today-panel,
  .date-grid,
  .match-list {
    max-width: 100%;
  }

  .date-grid,
  .match-list {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .date-grid::-webkit-scrollbar,
  .match-list::-webkit-scrollbar {
    display: none;
  }

  .date-btn,
  .match-btn {
    max-width: calc(100vw - 24px);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 120;
    align-self: stretch;
    width: 100%;
    margin: calc(-1 * max(10px, env(safe-area-inset-top))) -8px 10px;
    padding: max(10px, env(safe-area-inset-top)) 8px 10px;
    border: 0;
    border-bottom: 1px solid rgba(60, 60, 67, 0.1);
    border-radius: 0 0 20px 20px;
    background: rgba(248, 249, 252, 0.94);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    backdrop-filter: saturate(180%) blur(22px);
  }

  .sidebar .brand {
    margin-bottom: 8px;
  }

  .sidebar .date-grid {
    margin-bottom: 8px;
  }

  .sidebar .today-panel {
    margin-bottom: 0;
    box-shadow: none;
  }

  .card,
  .hero-card,
  .today-panel,
  .update-card {
    border-radius: 18px;
  }

  .card {
    padding: 12px;
  }

  .card-head,
  .section-title {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

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

  .master-decision div:nth-child(5) {
    grid-column: 1 / -1;
  }

  .master-model-card p {
    max-height: 138px;
    overflow: auto;
  }

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

  .final-node {
    min-height: 190px;
  }

  .factor-rank-list {
    max-height: 330px;
  }

  .learning-summary {
    max-height: 120px;
    overflow: auto;
  }

  .play-type-card,
  .combo-card,
  .play-item,
  .ai-item,
  .mystic-main,
  .mystic-picks div,
  .mystic-grid div,
  .factor-rank {
    border-radius: 13px;
  }
}

@media (max-width: 480px) {
  .shell {
    padding-right: 7px;
    padding-left: 7px;
  }

  .master-decision b,
  .final-overview b,
  .play-type-card b,
  .combo-card b,
  .mystic-picks b,
  .mystic-grid b {
    font-size: 16px;
  }

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

/* Decision efficiency layer */
.readiness-pill span,
.node-readiness i,
.play-hit-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.decision-audit-panel,
.decision-loop-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f9ff, #fff);
  padding: 12px;
}

.decision-audit-panel {
  border-color: rgba(255, 149, 0, 0.18);
  background: linear-gradient(180deg, #fff8ef, #fff);
}

.decision-audit-head,
.decision-loop-head {
  display: grid;
  gap: 4px;
}

.decision-audit-head span,
.audit-card > span,
.decision-loop-head span,
.decision-loop-card span {
  color: #0a7cff;
  font-size: 12px;
  font-weight: 900;
}

.decision-audit-head span,
.audit-card > span {
  color: #c2410c;
}

.decision-audit-head b,
.decision-loop-head b {
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
}

.decision-audit-head em,
.decision-loop-head em,
.decision-loop-card em,
.decision-explain-box p,
.decision-explain-box i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.decision-audit-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 10px;
}

.audit-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 10px;
}

.audit-row {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(60, 60, 67, 0.09);
  border-radius: 12px;
  background: #fff;
  padding: 8px 9px;
}

.audit-row b,
.audit-row strong,
.audit-row em,
.audit-row small {
  min-width: 0;
}

.audit-row b {
  color: #1d1d1f;
  font-size: 13px;
}

.audit-row strong {
  color: #111827;
  font-size: 14px;
}

.audit-row em,
.audit-row small,
.audit-hit-rate p {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.audit-row.high {
  border-color: rgba(255, 59, 48, 0.2);
  background: #fff4f3;
}

.audit-row.mid {
  border-color: rgba(255, 159, 10, 0.24);
  background: #fff8eb;
}

.audit-row.low,
.audit-row.watch,
.audit-row.info {
  border-color: rgba(0, 122, 255, 0.12);
  background: #f5f9ff;
}

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

.audit-play-grid div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.audit-play-grid div.green {
  border-color: rgba(52, 199, 89, 0.24);
  background: #f0fff5;
}

.audit-play-grid div.yellow {
  border-color: rgba(255, 159, 10, 0.25);
  background: #fff8eb;
}

.audit-play-grid div.red {
  border-color: rgba(255, 59, 48, 0.18);
  background: #fff4f3;
}

.audit-play-grid b {
  color: #6e6e73;
  font-size: 11px;
}

.audit-play-grid strong {
  color: #111827;
  font-size: 16px;
}

.audit-play-grid em,
.audit-play-grid small {
  color: #6e6e73;
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}

.decision-loop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.decision-loop-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 13px;
  background: #fff;
  padding: 10px 11px;
}

.decision-loop-card b {
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.25;
}

.decision-loop-card.green {
  border-color: rgba(52, 199, 89, 0.22);
  background: #f0fff5;
}

.decision-loop-card.yellow {
  border-color: rgba(255, 159, 10, 0.24);
  background: #fff8eb;
}

.decision-loop-card.red {
  border-color: rgba(255, 59, 48, 0.18);
  background: #fff4f3;
}

.decision-loop-card.soft {
  background: #f7f7f9;
}

.decision-explain-box {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.decision-explain-box b {
  color: #111827;
  font-size: 15px;
}

.decision-explain-box p {
  margin: 0;
}

.decision-explain-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.decision-explain-box i {
  border-radius: 999px;
  background: #eef6ff;
  color: #0757b8;
  font-weight: 800;
  padding: 5px 8px;
}

.calibration-panel,
.professional-edge-grid,
.ensemble-grid,
.three-layer-grid,
.odds-checkpoint-grid,
.backtest-grid,
.play-confidence-grid,
.score-range-grid,
.matchup-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.calibration-panel > div,
.professional-edge-card,
.ensemble-card,
.three-layer-card,
.odds-checkpoint-card,
.backtest-grid > div,
.play-confidence-card,
.score-range-card,
.matchup-decision-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 11px 12px;
}

.calibration-panel span,
.professional-edge-head span,
.professional-edge-card span,
.ensemble-head span,
.ensemble-card span,
.three-layer-head span,
.three-layer-card span,
.odds-checkpoint-head span,
.odds-checkpoint-card span,
.backtest-head span,
.backtest-grid span,
.play-confidence-card span,
.score-range-card span,
.matchup-decision-card span,
.live-radar-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calibration-panel b,
.professional-edge-head b,
.professional-edge-card b,
.ensemble-head b,
.ensemble-card b,
.three-layer-head b,
.three-layer-card b,
.odds-checkpoint-head b,
.odds-checkpoint-card b,
.backtest-head b,
.backtest-grid b,
.play-confidence-card b,
.score-range-card b,
.matchup-decision-card b,
.live-radar-head b {
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
}

.calibration-panel em,
.professional-edge-head em,
.professional-edge-card em,
.professional-edge-card small,
.ensemble-head em,
.ensemble-card em,
.ensemble-card small,
.three-layer-head em,
.three-layer-card em,
.three-layer-card small,
.odds-checkpoint-head em,
.odds-checkpoint-card em,
.odds-checkpoint-card small,
.backtest-head em,
.backtest-grid em,
.play-confidence-card em,
.play-confidence-card small,
.score-range-card em,
.score-range-card small,
.matchup-decision-card em,
.live-radar-head em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.professional-edge-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 149, 0, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8ef, #fff);
  padding: 12px;
}

.professional-edge-head {
  display: grid;
  gap: 4px;
}

.professional-edge-panel p {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.45;
}

.professional-edge-card.main {
  border-color: rgba(52, 199, 89, 0.25);
  background: #f0fff5;
}

.professional-edge-card.split,
.professional-edge-card.protect {
  border-color: rgba(0, 122, 255, 0.18);
  background: #f1f7ff;
}

.professional-edge-card.wait {
  border-color: rgba(255, 159, 10, 0.26);
  background: #fff8eb;
}

.professional-edge-card.avoid {
  border-color: rgba(255, 59, 48, 0.18);
  background: #fff4f3;
}

.professional-edge-card.done {
  border-color: rgba(60, 60, 67, 0.1);
  background: #f5f5f7;
}

.ensemble-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(88, 86, 214, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7f6ff, #fff);
  padding: 12px;
}

.ensemble-head {
  display: grid;
  gap: 4px;
}

.ensemble-card div {
  display: grid;
  gap: 5px;
}

.ensemble-card small {
  display: block;
  color: #5856d6;
  background: rgba(88, 86, 214, 0.07);
  border-radius: 10px;
  padding: 6px 8px;
}

.ensemble-card i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  background: #f5f5f7;
  color: #3a3a3c;
  font-style: normal;
  font-size: 11px;
  padding: 6px 8px;
}

.ensemble-card i strong,
.ensemble-card i span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ensemble-card i strong {
  color: #1d1d1f;
}

.poisson-kelly-panel .ensemble-card.is-hot {
  border-color: rgba(255, 149, 0, 0.34);
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.08), #ffffff 58%);
}

.poisson-kelly-panel .ensemble-card.is-hot b {
  color: #b45309;
}

.data-quality-panel,
.play-model-board {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #f5f9ff, #fff);
  padding: 12px;
}

.play-model-board {
  border-color: rgba(255, 149, 0, 0.18);
  background: linear-gradient(180deg, #fff8ef, #fff);
}

.data-quality-head,
.play-model-head {
  display: grid;
  gap: 4px;
}

.data-quality-grid,
.play-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.data-quality-card,
.play-model-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.data-quality-card.green,
.play-model-card.green {
  border-color: rgba(52, 199, 89, 0.22);
  background: #f0fff5;
}

.data-quality-card.yellow,
.play-model-card.yellow {
  border-color: rgba(255, 159, 10, 0.24);
  background: #fff8eb;
}

.data-quality-card.red,
.play-model-card.red {
  border-color: rgba(255, 59, 48, 0.18);
  background: #fff4f3;
}

.data-quality-card.soft {
  background: #f5f5f7;
}

.data-quality-head span,
.play-model-head span,
.data-quality-card span,
.play-model-card span {
  color: #0a7cff;
  font-size: 12px;
  font-weight: 900;
}

.play-model-head span,
.play-model-card span {
  color: #c2410c;
}

.data-quality-head b,
.play-model-head b,
.data-quality-card b,
.play-model-card b {
  color: #1d1d1f;
  font-size: 15px;
}

.data-quality-head em,
.play-model-head em,
.data-quality-card em,
.data-quality-card small,
.play-model-card em,
.play-model-card small {
  color: #6e6e73;
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.data-quality-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.data-quality-card i {
  border-radius: 999px;
  background: #eef6ff;
  color: #0757b8;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 7px;
}

.data-quality-card i.green {
  background: #eafff0;
  color: #16833a;
}

.data-quality-card i.yellow {
  background: #fff3cf;
  color: #9a5a00;
}

.data-quality-card i.red {
  background: #ffe8e6;
  color: #b42318;
}

.three-layer-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(52, 199, 89, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #f4fff8, #fff);
  padding: 12px;
}

.three-layer-head {
  display: grid;
  gap: 4px;
}

.three-layer-card div {
  display: grid;
  gap: 5px;
}

.three-layer-card i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  background: #f3fbf6;
  color: #3a3a3c;
  font-style: normal;
  font-size: 11px;
  padding: 6px 8px;
}

.three-layer-card i strong,
.three-layer-card i span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.three-layer-card i strong {
  color: #0f5132;
}

.odds-checkpoint-panel,
.backtest-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #f5f9ff, #fff);
  padding: 12px;
}

.odds-checkpoint-head,
.backtest-head {
  display: grid;
  gap: 4px;
}

.odds-checkpoint-panel p,
.backtest-panel p {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.45;
}

.odds-checkpoint-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.odds-checkpoint-card i {
  border-radius: 999px;
  background: #eef6ff;
  color: #0757b8;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 7px;
}

.odds-checkpoint-card.good {
  border-color: rgba(52, 199, 89, 0.22);
  background: #f0fff5;
}

.odds-checkpoint-card.risk {
  border-color: rgba(255, 59, 48, 0.18);
  background: #fff4f3;
}

.odds-checkpoint-card.wait {
  border-color: rgba(255, 159, 10, 0.24);
  background: #fff8eb;
}

.market-pulse-panel {
  border-color: rgba(255, 149, 0, 0.16);
  background: linear-gradient(180deg, #fff8ef, #fff);
}

.market-pulse-panel .odds-checkpoint-head span {
  color: #ff9500;
}

.market-pulse-panel .odds-checkpoint-card div {
  margin-top: 2px;
}

.market-pulse-panel .odds-checkpoint-card i {
  background: rgba(255, 149, 0, 0.1);
  color: #9a4f00;
}

.backtest-panel {
  border-color: rgba(52, 199, 89, 0.16);
  background: linear-gradient(180deg, #f4fff7, #fff);
}

.live-radar {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 149, 0, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8ed, #fff);
  padding: 12px;
}

.live-radar-head {
  display: grid;
  gap: 4px;
}

.live-radar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.live-radar-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 149, 0, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px 10px;
}

.live-radar-item b,
.live-radar-item span {
  display: block;
}

.live-radar-item b {
  color: #9a3412;
  font-size: 13px;
}

.live-radar-item span {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
}

.single-score-range {
  grid-column: 1 / -1;
  border-color: rgba(0, 122, 255, 0.14);
  background: #f2f8ff;
}

.readiness-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.readiness-pill {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.readiness-pill b {
  color: #111827;
  font-size: 16px;
}

.readiness-pill em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.readiness-pill.main,
.action-chip.main,
.data-chip.high,
.reverse-chip.green,
.correction-chip.green {
  border-color: rgba(52, 199, 89, 0.28);
  background: #f0fff5;
  color: #116b34;
}

.readiness-pill.protect,
.readiness-pill.split,
.action-chip.protect,
.action-chip.split,
.data-chip.mid,
.correction-chip.soft {
  border-color: rgba(0, 122, 255, 0.24);
  background: #f1f7ff;
  color: #0757b8;
}

.readiness-pill.cold,
.action-chip.cold,
.data-chip.watch,
.reverse-chip.yellow,
.correction-chip.yellow {
  border-color: rgba(255, 159, 10, 0.28);
  background: #fff8eb;
  color: #a54b00;
}

.readiness-pill.wait,
.readiness-pill.avoid,
.action-chip.wait,
.action-chip.avoid,
.data-chip.low,
.reverse-chip.red,
.correction-chip.red {
  border-color: rgba(255, 59, 48, 0.18);
  background: #fff4f3;
  color: #b42318;
}

.readiness-pill.done,
.action-chip.done {
  border-color: rgba(60, 60, 67, 0.12);
  background: #f5f5f7;
  color: #6e6e73;
}

.node-readiness {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}

.node-readiness i {
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 999px;
  background: #f5f5f7;
  font-style: normal;
  padding: 4px 7px;
}

.node-readiness i.is-ok {
  border-color: rgba(52, 199, 89, 0.22);
  background: #f0fff5;
  color: #116b34;
}

.node-readiness i.is-wait {
  border-color: rgba(255, 159, 10, 0.22);
  background: #fff8eb;
  color: #a54b00;
}

.source-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.source-chip {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 8px;
  background: #f5f5f7;
  color: #3a3a3c;
  font-style: normal;
  padding: 5px 7px;
  min-width: 86px;
}

.source-chip b {
  color: #1d1d1f;
  font-size: 11px;
}

.source-chip small {
  color: #6e6e73;
  font-size: 10px;
  line-height: 1.25;
}

.source-chip.is-ready {
  border-color: rgba(52, 199, 89, 0.2);
  background: #f0fff5;
}

.source-chip.is-missing {
  border-color: rgba(255, 159, 10, 0.24);
  background: #fff8eb;
}

.source-health-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #fff);
  padding: 12px;
}

.source-health-head {
  display: grid;
  gap: 4px;
}

.source-health-head span,
.source-health-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.source-health-head b {
  color: #111827;
  font-size: 18px;
}

.source-health-head em,
.source-health-card em,
.source-health-card small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.source-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
}

.source-health-card {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
}

.source-health-card b {
  color: #111827;
  font-size: 14px;
}

.source-health-card.green {
  border-color: rgba(52, 199, 89, 0.24);
  background: #f1fff6;
}

.source-health-card.yellow {
  border-color: rgba(255, 159, 10, 0.28);
  background: #fff8eb;
}

.source-health-card.red {
  border-color: rgba(255, 59, 48, 0.2);
  background: #fff5f4;
}

.action-chip,
.data-chip {
  border: 1px solid rgba(60, 60, 67, 0.12);
}

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

.play-hit-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.play-hit-card b {
  color: #111827;
  font-size: 20px;
}

.play-hit-card em,
.play-hit-card i {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.play-hit-card.is-muted {
  background: #f5f5f7;
}

.review-error-card {
  grid-column: span 2;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 159, 10, 0.22);
  border-radius: 14px;
  background: #fff8eb;
  padding: 12px;
}

.review-error-card span,
.review-error-card em {
  color: #8a4b00;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.review-error-card b {
  color: #1d1d1f;
  font-size: 16px;
}

.ui-error-box {
  border-color: rgba(255, 59, 48, 0.18);
  background: #fff5f5;
  color: #7f1d1d;
}

.ui-error-box b,
.ui-error-box span {
  display: block;
}

.ui-error-box span {
  margin-top: 6px;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.5;
}

.play-hit-card.review-hit {
  border-color: rgba(52, 199, 89, 0.22);
  background: #f0fff5;
}

.play-hit-card.review-miss {
  border-color: rgba(255, 59, 48, 0.18);
  background: #fff1f0;
}

.play-hit-card.review-watch {
  border-color: rgba(0, 122, 255, 0.16);
  background: #eef6ff;
}

.featured-plan-review {
  grid-column: 1 / -1;
}

.change-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.change-rail-item {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
}

.change-rail-item span,
.change-rail-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.change-rail-item b {
  color: #1d1d1f;
  font-size: 14px;
}

.change-rail-item em {
  color: #007aff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 760px) {
  .decision-loop-grid {
    grid-template-columns: 1fr;
  }

  .decision-audit-grid {
    grid-template-columns: 1fr;
  }

  .audit-play-grid {
    display: flex;
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px 2px;
    scrollbar-width: none;
  }

  .audit-play-grid::-webkit-scrollbar {
    display: none;
  }

  .audit-play-grid div {
    flex: 0 0 116px;
  }

  .decision-explain-box div {
    display: grid;
  }

  .readiness-strip {
    display: flex;
    overflow-x: auto;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .readiness-strip::-webkit-scrollbar {
    display: none;
  }

  .readiness-pill {
    flex: 0 0 220px;
  }

  .stage-strip {
    display: flex;
    overflow-x: auto;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .stage-strip::-webkit-scrollbar {
    display: none;
  }

  .stage-card {
    flex: 0 0 218px;
  }

  .source-health-grid {
    display: flex;
    overflow-x: auto;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .source-health-grid::-webkit-scrollbar {
    display: none;
  }

  .source-health-card {
    flex: 0 0 154px;
  }

  .decision-table {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .decision-table::-webkit-scrollbar {
    display: none;
  }

  .change-rail {
    display: flex;
    overflow-x: auto;
    margin: 10px -12px 12px;
    padding: 0 12px 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .change-rail::-webkit-scrollbar {
    display: none;
  }

  .change-rail-item {
    flex: 0 0 238px;
  }

  .decision-table-row {
    min-width: 880px;
    grid-template-columns: 142px 136px 86px 102px 66px 112px 90px 86px 112px;
    gap: 7px;
    padding: 9px 10px;
  }

  .decision-table-row b,
  .decision-table-row strong {
    font-size: 12px;
  }

  .decision-table-row span,
  .decision-table-row em {
    font-size: 11px;
  }

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

  .review-error-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .play-hit-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile performance layer: keep the decision surface light and smooth. */
@media (max-width: 760px) {
  :root {
    --shadow: none;
  }

  body::before {
    display: none;
  }

  .date-btn,
  .match-btn,
  .text-btn,
  .pill-btn,
  #topRefreshBtn,
  #refreshBtn,
  .final-node {
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  }

  .content-grid > .card,
  .content-grid > .hero-card {
    content-visibility: auto;
    contain-intrinsic-size: 420px;
  }

  .final-map-card,
  .daily-board-card,
  .betting-card {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  .card,
  .hero-card,
  .today-panel,
  .update-card,
  .play-type-card,
  .combo-card,
  .final-node,
  .daily-row,
  .score-cell {
    box-shadow: none !important;
  }

  .final-overview p,
  .play-type-card em,
  .combo-grid,
  .readiness-strip,
  .node-readiness,
  .final-node em,
  .final-node small,
  .learning-summary,
  .factor-rank-list .factor-row:nth-child(n + 9),
  .history-list .history-item:nth-child(n + 7),
  .news-card li:nth-child(n + 5) {
    display: none !important;
  }

  .final-map,
  .daily-board,
  .playbook-list,
  .ai-grid,
  .factor-list,
  .history-list {
    contain: layout paint;
  }

  .calibration-panel,
  .professional-edge-grid,
  .ensemble-grid,
  .three-layer-grid,
  .odds-checkpoint-grid,
  .backtest-grid,
  .play-confidence-grid,
  .score-range-grid,
  .matchup-decision-grid,
  .live-radar-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calibration-panel > div:nth-child(n + 3),
  .backtest-grid > div:nth-child(n + 5),
  .matchup-decision-grid {
    display: none;
  }

  * {
    scroll-behavior: auto !important;
  }

  .sidebar,
  .topbar,
  .sticky-mobile-control {
    backdrop-filter: none !important;
  }

  .card,
  .final-node,
  .daily-row,
  .score-cell,
  .mobile-lite-card,
  .mobile-lite-card::after {
    transition: none !important;
  }

  .final-node,
  .daily-row,
  .play-type-card,
  .score-cell {
    transform: translateZ(0);
  }

  .mobile-lite-card {
    position: relative;
    min-height: 0 !important;
    max-height: 64px;
    overflow: hidden;
    cursor: pointer;
  }

  .mobile-lite-card:not(.is-expanded) .card-head {
    min-height: 42px;
    padding-right: 82px;
  }

  .mobile-lite-card:not(.is-expanded) .card-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-lite-card:not(.is-expanded) .card-head small,
  .mobile-lite-card:not(.is-expanded) .card-head .text-btn {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-lite-card::after {
    content: "展开";
    position: absolute;
    right: 14px;
    top: 14px;
    min-width: 48px;
    padding: 6px 9px;
    border: 1px solid rgba(0, 122, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.08);
    color: #0a7cff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
  }

  .mobile-lite-card.is-expanded {
    max-height: none;
    overflow: visible;
  }

  .mobile-lite-card.is-expanded::after {
    content: "收起";
    background: rgba(142, 142, 147, 0.12);
    border-color: rgba(142, 142, 147, 0.18);
    color: #6e6e73;
  }
}

.status-list .source-green dt::before,
.status-list .source-yellow dt::before,
.status-list .source-red dt::before,
.status-list .source-soft dt::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
  vertical-align: 1px;
}

.status-list .source-green dt::before {
  background: #34c759;
}

.status-list .source-yellow dt::before {
  background: #ffcc00;
}

.status-list .source-red dt::before {
  background: #ff3b30;
}

.status-list .source-soft dt::before {
  background: #8e8e93;
}

.score-components {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.score-component {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.04);
  padding: 9px;
  font-style: normal;
}

.score-component span,
.score-component em {
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.score-component b {
  color: #111827;
  font-size: 18px;
}

.score-component.good {
  border-color: rgba(52, 199, 89, 0.22);
  background: rgba(52, 199, 89, 0.07);
}

.score-component.risk {
  border-color: rgba(255, 149, 0, 0.24);
  background: rgba(255, 149, 0, 0.08);
}

.score-component.watch {
  border-color: rgba(0, 122, 255, 0.18);
}

@media (max-width: 760px) {
  .score-components {
    display: flex;
    overflow-x: auto;
    margin-right: -12px;
    margin-left: -12px;
    padding: 0 12px 2px;
    scrollbar-width: none;
  }

  .score-components::-webkit-scrollbar {
    display: none;
  }

  .score-component {
    flex: 0 0 150px;
  }
}

/* UI cockpit: keep betting decisions first, explanations folded behind them. */
.decision-cockpit {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 149, 0, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
  padding: 14px;
}

.cockpit-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
  gap: 12px;
  align-items: start;
}

.cockpit-head span,
.cockpit-metrics span,
.cockpit-ticket span,
.match-card-top span,
.match-card-picks span,
.match-card-tags em,
.decision-detail-pack summary em {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.cockpit-head b {
  display: block;
  margin-top: 4px;
  color: #1d1d1f;
  font-size: 22px;
  line-height: 1.18;
}

.cockpit-head em,
.cockpit-ticket em,
.match-decision-card p,
.match-decision-card small {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.cockpit-score {
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 16px;
  background: rgba(255, 149, 0, 0.08);
  padding: 10px 12px;
  text-align: right;
}

.cockpit-score b {
  color: #ff8a00;
  font-size: 28px;
}

.execution-sheet {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.execution-sheet-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(60, 60, 67, 0.08);
  padding-top: 12px;
}

.execution-sheet-head span,
.execution-row span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.execution-sheet-head b {
  display: block;
  color: #1d1d1f;
  font-size: 18px;
  line-height: 1.22;
}

.execution-sheet-head em {
  color: #8a8a8e;
  font-style: normal;
  font-size: 12px;
}

.execution-list {
  display: grid;
  gap: 8px;
}

.execution-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) minmax(260px, 1.15fr);
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-left: 4px solid #8e8e93;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}

.execution-row.main {
  border-left-color: #007aff;
  background: linear-gradient(90deg, rgba(0, 122, 255, 0.08), #fff 42%);
}

.execution-row.protect {
  border-left-color: #34c759;
  background: linear-gradient(90deg, rgba(52, 199, 89, 0.08), #fff 42%);
}

.execution-row.cold {
  border-left-color: #ff9f0a;
  background: linear-gradient(90deg, rgba(255, 159, 10, 0.1), #fff 42%);
}

.execution-row.wait {
  border-left-color: #ff9500;
  background: linear-gradient(90deg, rgba(255, 149, 0, 0.08), #fff 42%);
}

.execution-row.done {
  border-left-color: #8e8e93;
  background: #f7f7f9;
}

.execution-row:hover,
.execution-row.is-active {
  border-color: rgba(0, 122, 255, 0.42);
  box-shadow: 0 8px 18px rgba(0, 122, 255, 0.1);
}

.execution-match,
.execution-main,
.execution-protect {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.execution-row b {
  overflow-wrap: anywhere;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.25;
}

.execution-main b {
  color: #0a66d8;
  font-size: 16px;
}

.execution-row em {
  overflow-wrap: anywhere;
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.cockpit-metrics,
.cockpit-ticket-grid,
.match-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cockpit-metrics i,
.cockpit-ticket,
.match-decision-card,
.decision-detail-pack {
  min-width: 0;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.cockpit-metrics i {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  font-style: normal;
}

.cockpit-metrics b,
.cockpit-ticket b,
.match-card-top b,
.match-card-top strong,
.match-card-picks b {
  min-width: 0;
  color: #1d1d1f;
  overflow-wrap: anywhere;
}

.cockpit-metrics b {
  font-size: 15px;
}

.cockpit-metrics em {
  color: #ff8a00;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.cockpit-ticket {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
}

.cockpit-ticket.safe {
  border-color: rgba(52, 199, 89, 0.24);
  background: #f4fff7;
}

.cockpit-ticket.medium {
  border-color: rgba(0, 122, 255, 0.18);
  background: #f5faff;
}

.cockpit-ticket.high {
  border-color: rgba(255, 149, 0, 0.26);
  background: #fff8ef;
}

.cockpit-ticket b {
  width: fit-content;
  border-radius: 999px;
  background: #ff9f0a;
  color: #111827;
  padding: 4px 9px;
  font-size: 13px;
}

.cockpit-ticket ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cockpit-ticket li {
  color: #1d1d1f;
  font-size: 13px;
  line-height: 1.4;
}

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

.match-decision-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 13px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.match-decision-card:hover,
.match-decision-card.is-active {
  border-color: rgba(0, 122, 255, 0.32);
  background: #f7fbff;
}

.match-card-top {
  display: grid;
  gap: 4px;
}

.match-card-top b {
  font-size: 17px;
  line-height: 1.24;
}

.match-card-top strong {
  color: #0a7cff;
  font-size: 15px;
  line-height: 1.3;
}

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

.match-card-picks i {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 12px;
  background: #f7fbff;
  padding: 8px;
  font-style: normal;
}

.match-card-picks b {
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
}

.match-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.match-card-tags em {
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.1);
  color: #a54b00;
  padding: 5px 8px;
}

.match-decision-card p,
.match-decision-card small {
  margin: 0;
}

.decision-detail-pack {
  overflow: hidden;
}

.decision-detail-pack summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

.decision-detail-pack summary::after {
  content: "展开";
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: #0a7cff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.decision-detail-pack[open] summary::after {
  content: "收起";
  background: rgba(142, 142, 147, 0.12);
  color: #6e6e73;
}

.decision-detail-pack summary span {
  min-width: 0;
  color: #0a7cff;
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-detail-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(60, 60, 67, 0.08);
  padding: 12px;
}

.single-focus-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
  padding: 16px;
}

.single-focus-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.single-focus-head div {
  min-width: 0;
}

.single-focus-head span,
.single-focus-grid span {
  display: block;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
}

.single-focus-head b {
  display: block;
  min-width: 0;
  color: #1d1d1f;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.single-focus-head em,
.single-focus-grid em,
.single-focus-panel p {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.single-focus-head strong {
  border-radius: 16px;
  background: #ff9500;
  color: #fff;
  padding: 12px 16px;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.single-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.single-focus-grid i {
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px;
  font-style: normal;
}

.single-focus-grid b {
  display: block;
  min-width: 0;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.single-focus-panel p {
  margin: 0;
}

.core-prediction-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.core-prediction-row {
  display: grid;
  grid-template-columns: 72px minmax(150px, 1.35fr) minmax(110px, 1fr) minmax(120px, 1.1fr) repeat(5, minmax(86px, 0.72fr));
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 0;
  border-top: 1px solid rgba(60, 60, 67, 0.08);
  background: transparent;
  color: inherit;
  padding: 12px 14px;
  text-align: left;
}

.core-prediction-head {
  border-top: 0;
  background: rgba(0, 122, 255, 0.06);
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
}

button.core-prediction-row {
  cursor: pointer;
}

button.core-prediction-row:hover,
.core-prediction-row.is-active {
  background: rgba(0, 122, 255, 0.08);
}

.core-prediction-row span,
.core-prediction-row b,
.core-prediction-row strong,
.core-prediction-row em,
.core-prediction-row i {
  min-width: 0;
  overflow-wrap: anywhere;
}

.core-prediction-row b {
  color: #1d1d1f;
  font-size: 14px;
}

.core-prediction-row strong {
  color: #0a7cff;
  font-size: 14px;
  font-weight: 900;
}

.core-prediction-row em,
.core-prediction-row i,
.core-prediction-row span {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
}

.detail-lazy-body {
  display: grid;
  gap: 10px;
}

.light-alert-summary {
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 14px;
  background: rgba(255, 149, 0, 0.08);
  color: #a45a00;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.league-model-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 149, 0, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8ef, #fff);
  padding: 12px;
}

.league-model-head {
  display: grid;
  gap: 4px;
}

.league-model-head span {
  color: #ff8a00;
  font-size: 12px;
  font-weight: 900;
}

.league-model-head b {
  color: #1d1d1f;
  font-size: 17px;
  line-height: 1.25;
}

.league-model-head em {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.league-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.league-model-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.league-model-card.green {
  border-color: rgba(52, 199, 89, 0.22);
  background: #f4fff7;
}

.league-model-card.yellow {
  border-color: rgba(255, 204, 0, 0.28);
  background: #fffdf0;
}

.league-model-card.red {
  border-color: rgba(255, 149, 0, 0.24);
  background: #fff8ef;
}

.league-model-card span,
.league-model-card em,
.league-model-card small,
.league-model-card i {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
}

.league-model-card b {
  color: #111827;
  font-size: 15px;
}

.league-model-card i {
  color: #a54b00;
  font-weight: 800;
}

@media (max-width: 900px) {
  .cockpit-ticket-grid,
  .match-decision-grid,
  .execution-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .decision-cockpit {
    gap: 10px;
    border-radius: 18px;
    padding: 12px;
  }

  .execution-sheet-head {
    display: grid;
    gap: 3px;
  }

  .execution-row {
    gap: 8px;
    border-left-width: 0;
    border-top: 4px solid #8e8e93;
    padding: 10px;
  }

  .execution-row.main {
    border-top-color: #007aff;
  }

  .execution-row.protect {
    border-top-color: #34c759;
  }

  .execution-row.cold,
  .execution-row.wait {
    border-top-color: #ff9f0a;
  }

  .execution-row b,
  .execution-main b {
    font-size: 14px;
  }

  .cockpit-head,
  .cockpit-metrics,
  .cockpit-ticket-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-head b {
    font-size: 18px;
  }

  .cockpit-score {
    text-align: left;
  }

  .cockpit-score b {
    font-size: 24px;
  }

  .match-decision-card {
    border-radius: 15px;
    padding: 12px;
  }

  .match-card-top b {
    font-size: 16px;
  }

  .match-card-tags em {
    font-size: 11px;
  }

  .decision-detail-pack summary {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 50px;
    padding: 12px 13px;
  }

  .decision-detail-pack summary em {
    display: none;
  }

  .decision-detail-pack summary span {
    font-size: 16px;
  }

  .decision-detail-body {
    padding: 10px;
  }

  .single-focus-panel {
    border-radius: 18px;
    padding: 13px;
  }

  .single-focus-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-focus-head b {
    font-size: 20px;
  }

  .single-focus-head strong {
    justify-self: start;
    padding: 9px 13px;
    font-size: 20px;
  }

  .single-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .single-focus-grid i {
    padding: 9px;
  }

  .single-focus-grid b {
    font-size: 14px;
  }

  .core-prediction-table {
    gap: 8px;
    border: 0;
    background: transparent;
  }

  .core-prediction-head {
    display: none;
  }

  .core-prediction-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    border: 1px solid rgba(60, 60, 67, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.94);
    padding: 11px 12px;
  }

  .core-prediction-row span {
    order: 1;
    color: #0a7cff;
    font-weight: 900;
  }

  .core-prediction-row b {
    order: 2;
    justify-self: end;
    text-align: right;
  }

  .core-prediction-row strong {
    order: 3;
    grid-column: 1 / -1;
    font-size: 15px;
  }

  .core-prediction-row em {
    order: 4;
    grid-column: 1 / -1;
  }

  .core-prediction-row i {
    order: 5;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.07);
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-lite-card:not(.is-expanded) .card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-right: 78px;
  }

  .mobile-lite-card:not(.is-expanded) .card-head span {
    max-width: 100%;
    min-width: 0;
  }

  .mobile-lite-card::after {
    top: 16px;
    right: 12px;
    min-width: 54px;
    text-align: center;
  }
}

.content-grid > .deep-analysis-card {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.decision-cockpit,
.cold-hunt-panel,
.front-score-panel,
.front-deep-panel,
.decision-detail-pack,
.daily-board-card,
.deep-analysis-card,
.source-health-panel,
.league-model-panel,
.ensemble-panel,
.data-quality-panel,
.odds-checkpoint-panel,
.three-layer-panel,
.market-attribution-panel,
.score-decomposition-panel,
.play-confidence-panel,
.score-range-panel,
.review-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

.decision-detail-pack:not([open]) {
  contain-intrinsic-size: auto 60px;
}

.decision-detail-body.is-loading {
  min-height: 56px;
}

.detail-lazy-placeholder {
  border: 1px dashed rgba(0, 122, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.045);
  color: #6e6e73;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  body::before {
    display: none;
  }

  .decision-cockpit,
  .cold-hunt-panel,
  .front-score-panel,
  .front-deep-panel,
  .decision-detail-pack,
  .daily-board-card,
  .deep-analysis-card,
  .card {
    box-shadow: none !important;
  }

  .date-btn,
  .match-btn,
  .match-decision-card,
  .execution-row,
  .daily-row,
  .final-node,
  .score-cell {
    transition: none !important;
  }

  .daily-row:hover,
  .final-node:hover,
  .match-decision-card:hover {
    transform: none !important;
  }

  .content-grid {
    gap: 10px;
  }

  .decision-detail-body {
    padding: 8px;
  }

  .decision-detail-pack summary::after {
    padding: 5px 9px;
  }

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

/* Desktop grid safety net: keep the analysis workspace from collapsing when
   later card modules define their own spans. */
@media (min-width: 761px) {
  .shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 22px;
    align-items: start;
  }

  .dashboard,
  .content-grid,
  .content-grid > .card,
  .content-grid > .hero-card {
    min-width: 0;
    max-width: 100%;
  }

  .dashboard {
    width: 100%;
  }

  .content-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
  }

  .content-grid > .final-map-card,
  .content-grid > .daily-board-card,
  .content-grid > .master-model-card,
  .content-grid > .learning-model-card,
  .content-grid > .path-card,
  .content-grid > .betting-card,
  .content-grid > .mystic-card,
  .content-grid > .ai-card,
  .content-grid > .deep-analysis-card,
  .content-grid > .analytics-card {
    grid-column: 1 / -1;
  }

  .content-grid > .verdict-card,
  .content-grid > .probability-card,
  .content-grid > .factor-card,
  .content-grid > .market-card,
  .content-grid > .history-card,
  .content-grid > .weather-card,
  .content-grid > .news-card {
    grid-column: span 2;
  }

  .final-map,
  #finalBettingMap,
  .daily-board,
  .deep-analysis,
  .single-focus-panel,
  .core-prediction-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}
.content-grid > .hero-card,
.content-grid > .verdict-card,
.content-grid > .probability-card {
  display: none !important;
}

.is-merged-away {
  display: none !important;
}

.final-map-card.is-review-mode,
.daily-board-card.is-review-mode {
  border-color: rgba(52, 199, 89, 0.22);
}

.cold-hunt-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 149, 0, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(255, 255, 255, 0.96) 42%, rgba(0, 122, 255, 0.06));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.cold-hunt-panel.hot {
  border-color: rgba(255, 59, 48, 0.28);
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.11), rgba(255, 255, 255, 0.97) 44%, rgba(255, 149, 0, 0.08));
}

.cold-hunt-panel.mid,
.cold-hunt-panel.watch {
  border-color: rgba(255, 149, 0, 0.28);
}

.cold-hunt-panel.low {
  border-color: rgba(52, 199, 89, 0.22);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.08), rgba(255, 255, 255, 0.97) 48%);
}

.completed-review-hub {
  border-color: rgba(52, 199, 89, 0.24);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.09), rgba(255, 255, 255, 0.97) 46%, rgba(0, 122, 255, 0.06));
}

.completed-review-hub .cold-hunt-head strong {
  color: #34c759;
}

.review-scorebar i.hit,
.completed-play-grid i.hit {
  border-color: rgba(52, 199, 89, 0.26);
  background: rgba(52, 199, 89, 0.09);
}

.review-scorebar i.miss,
.completed-play-grid i.miss {
  border-color: rgba(255, 59, 48, 0.24);
  background: rgba(255, 59, 48, 0.075);
}

.review-scorebar i.watch,
.completed-play-grid i.watch {
  border-color: rgba(255, 149, 0, 0.25);
  background: rgba(255, 149, 0, 0.085);
}

.completed-play-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.completed-play-grid i {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(60, 60, 67, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.completed-play-grid span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
}

.completed-play-grid b {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.completed-play-grid em,
.review-correction em {
  color: #515154;
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
}

.front-priority-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  margin-top: 12px;
}

.front-score-panel,
.front-deep-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.045);
}

.front-panel-head,
.front-deep-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.front-panel-head span {
  color: #007aff;
  font-size: 14px;
  font-weight: 900;
}

.front-panel-head small {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.front-score-grid,
.front-deep-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.front-deep-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.front-score-grid i,
.front-deep-grid i {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(0, 122, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

.front-score-grid i.is-hit {
  border-color: rgba(255, 149, 0, 0.55);
  background: rgba(255, 149, 0, 0.08);
}

.front-score-grid b {
  color: #1d1d1f;
  font-size: 19px;
  font-weight: 950;
}

.front-score-grid span,
.front-score-note span,
.front-deep-grid span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 800;
}

.front-score-note {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.84);
}

.front-clean-card {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 149, 0, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.09), rgba(255, 255, 255, 0.92));
}

.front-clean-card.good {
  border-color: rgba(52, 199, 89, 0.24);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.09), rgba(255, 255, 255, 0.94));
}

.front-clean-card.risk {
  border-color: rgba(255, 59, 48, 0.22);
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.08), rgba(255, 255, 255, 0.94));
}

.front-score-note b,
.front-clean-card b,
.front-deep-main b,
.front-deep-grid b {
  color: #1d1d1f;
  font-weight: 950;
}

.front-score-note em,
.front-score-note small,
.front-clean-card em,
.front-clean-card small,
.front-deep-grid em {
  color: #515154;
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
}

.front-clean-card span {
  color: #ff9500;
  font-size: 12px;
  font-weight: 900;
}

.front-score-audit {
  margin-top: 8px;
  border-top: 1px solid rgba(60, 60, 67, 0.1);
  padding-top: 8px;
}

.front-score-audit summary {
  cursor: pointer;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.front-score-audit summary::-webkit-details-marker {
  display: none;
}

.front-score-audit summary::after {
  content: "展开";
  float: right;
  color: #007aff;
  font-weight: 900;
}

.front-score-audit[open] summary::after {
  content: "收起";
}

.front-score-audit div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.front-score-audit i {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

.front-score-audit i.good {
  border-color: rgba(52, 199, 89, 0.22);
  background: rgba(52, 199, 89, 0.07);
}

.front-score-audit i.risk {
  border-color: rgba(255, 149, 0, 0.24);
  background: rgba(255, 149, 0, 0.08);
}

.front-score-audit span,
.front-score-audit em {
  color: #6e6e73;
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
}

.front-score-audit b {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 950;
}

.score-clean-card.good {
  border-color: rgba(52, 199, 89, 0.24);
  background: #f0fff6;
}

.score-clean-card.risk {
  border-color: rgba(255, 59, 48, 0.2);
  background: #fff5f5;
}

.score-clean-card.watch {
  border-color: rgba(255, 149, 0, 0.22);
  background: #fff9ef;
}

.front-deep-main {
  margin-top: 10px;
}

.front-deep-main b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-deep-main strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ff9500;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

@media (max-width: 760px) {
  .front-priority-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .front-score-panel,
  .front-deep-panel {
    padding: 12px;
    border-radius: 14px;
  }

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

  .front-deep-grid {
    grid-template-columns: 1fr;
  }

  .front-score-audit div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cold-hunt-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.cold-hunt-head span,
.cold-hunt-grid span {
  display: block;
  color: #6e6e73;
  font-size: 12px;
}

.cold-hunt-head b {
  display: block;
  margin-top: 3px;
  color: #1d1d1f;
  font-size: 24px;
  letter-spacing: 0;
}

.cold-hunt-head em {
  display: block;
  margin-top: 3px;
  color: #6e6e73;
  font-style: normal;
  font-size: 13px;
}

.cold-hunt-head strong {
  max-width: 320px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #ff9500;
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
}

.cold-hunt-scorebar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cold-core-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.cold-hunt-scorebar i,
.cold-core-kpis i,
.cold-core-pipeline i {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(0, 122, 255, 0.11);
  border-radius: 12px;
  background: rgba(247, 250, 255, 0.78);
  font-style: normal;
}

.cold-core-kpis i.hot,
.cold-core-kpis i.go {
  border-color: rgba(255, 59, 48, 0.22);
  background: rgba(255, 59, 48, 0.07);
}

.cold-core-kpis i.mid,
.cold-core-kpis i.watch,
.cold-core-kpis i.layer {
  border-color: rgba(255, 149, 0, 0.24);
  background: rgba(255, 149, 0, 0.08);
}

.cold-core-kpis i.low,
.cold-core-kpis i.pass {
  border-color: rgba(52, 199, 89, 0.18);
  background: rgba(52, 199, 89, 0.07);
}

.cold-hunt-scorebar i.go {
  border-color: rgba(255, 59, 48, 0.22);
  background: rgba(255, 59, 48, 0.07);
}

.cold-hunt-scorebar i.layer {
  border-color: rgba(255, 149, 0, 0.24);
  background: rgba(255, 149, 0, 0.08);
}

.cold-hunt-scorebar i.pass {
  border-color: rgba(52, 199, 89, 0.18);
  background: rgba(52, 199, 89, 0.07);
}

.cold-hunt-scorebar span,
.cold-core-kpis span,
.cold-core-pipeline span {
  display: block;
  color: #86868b;
  font-size: 11px;
  font-weight: 800;
}

.cold-hunt-scorebar b,
.cold-core-kpis b,
.cold-core-pipeline b {
  display: block;
  margin-top: 3px;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cold-core-kpis b {
  font-size: 16px;
}

.cold-core-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.cold-core-pipeline i {
  position: relative;
  border-color: rgba(255, 149, 0, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.cold-core-pipeline i::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: #ff9500;
}

.cold-core-pipeline b {
  color: #3a3a3c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.cold-hunt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cold-hunt-grid i {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.cold-hunt-grid b {
  display: block;
  margin-top: 4px;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cold-hunt-support {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 149, 0, 0.16);
  border-radius: 12px;
  background: rgba(255, 149, 0, 0.06);
}

.cold-hunt-support span {
  color: #86868b;
  font-size: 11px;
}

.cold-hunt-support b {
  color: #2c2c2e;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cold-hunt-reason {
  border-top: 1px solid rgba(60, 60, 67, 0.08);
  padding-top: 2px;
}

.cold-hunt-reason summary {
  cursor: pointer;
  color: #007aff;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.cold-hunt-reason summary::-webkit-details-marker {
  display: none;
}

.cold-hunt-reason summary::after {
  content: "展开";
  margin-left: 6px;
  color: #86868b;
  font-weight: 700;
}

.cold-hunt-reason[open] summary::after {
  content: "收起";
}

.cold-hunt-reason p {
  margin: 0;
  padding-top: 8px;
  color: #3a3a3c;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .cold-hunt-panel {
    padding: 13px;
    border-radius: 16px;
  }

  .cold-hunt-head {
    grid-template-columns: 1fr;
  }

  .cold-hunt-head b {
    font-size: 21px;
  }

  .cold-hunt-head strong {
    max-width: none;
    width: fit-content;
    text-align: left;
  }

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

  .cold-hunt-scorebar,
  .cold-core-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cold-core-pipeline {
    grid-template-columns: 1fr;
  }

  .cold-core-pipeline i {
    padding-left: 13px;
  }
}

.daily-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.daily-summary-strip span {
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(255, 149, 0, 0.06));
  color: #6e6e73;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.daily-summary-strip b {
  display: block;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-decision-table {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.daily-decision-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(260px, 1.35fr) minmax(260px, 1.35fr) minmax(150px, 0.75fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  padding: 10px;
  text-align: left;
}

.daily-decision-row:not(.daily-decision-head) {
  cursor: pointer;
}

.daily-decision-row:not(.daily-decision-head):hover,
.daily-decision-row.is-active {
  border-color: rgba(0, 122, 255, 0.52);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.09), rgba(255, 149, 0, 0.05));
}

.daily-decision-row.is-completed {
  border-color: rgba(52, 199, 89, 0.26);
  background: rgba(245, 255, 248, 0.92);
}

.daily-decision-head {
  position: sticky;
  top: 0;
  z-index: 2;
  border-color: rgba(60, 60, 67, 0.08);
  border-radius: 12px;
  background: rgba(248, 248, 250, 0.96);
  color: #6e6e73;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.daily-match-cell,
.daily-main-cell,
.daily-cold-cell,
.daily-confidence-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.daily-match-cell b,
.daily-main-cell b,
.daily-cold-cell b,
.daily-confidence-cell b {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.daily-match-cell em,
.daily-main-cell em,
.daily-cold-cell em,
.daily-confidence-cell em,
.daily-match-cell i {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.daily-match-cell i {
  width: fit-content;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
  padding: 3px 7px;
  font-weight: 800;
}

.daily-cold-cell b {
  color: #ff9500;
}

.cold-hit .daily-cold-cell b,
.cold-done .daily-cold-cell b {
  color: #248a3d;
}

.cold-miss .daily-cold-cell b,
.cold-cold .daily-cold-cell b {
  color: #d70015;
}

.daily-confidence-cell b {
  color: #007aff;
}

.trust-high .daily-confidence-cell b {
  color: #248a3d;
}

.trust-low .daily-confidence-cell b {
  color: #ff9500;
}

.daily-play-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.daily-play-pills i {
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.045);
  padding: 6px 7px;
  font-style: normal;
  line-height: 1.25;
}

.daily-play-pills i.wide {
  grid-column: 1 / -1;
}

.daily-play-pills span {
  display: block;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 700;
}

.daily-play-pills b {
  display: block;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.daily-play-pills i.is-hit,
.daily-mobile-mini-plays i.is-hit {
  border-color: rgba(52, 199, 89, 0.35);
  background: rgba(52, 199, 89, 0.12);
}

.daily-play-pills i.is-hit b,
.daily-mobile-mini-plays i.is-hit b {
  color: #1f7a35;
  font-weight: 950;
}

.daily-play-pills i.is-cover-hit,
.daily-mobile-mini-plays i.is-cover-hit {
  border-color: rgba(0, 122, 255, 0.28);
  background: rgba(0, 122, 255, 0.09);
}

.daily-play-pills i.is-cover-hit b,
.daily-mobile-mini-plays i.is-cover-hit b {
  color: #006edb;
  font-weight: 950;
}

.daily-play-pills i.is-miss,
.daily-mobile-mini-plays i.is-miss {
  border-color: rgba(255, 59, 48, 0.18);
  background: rgba(255, 59, 48, 0.055);
}

.daily-play-pills i.is-miss b,
.daily-mobile-mini-plays i.is-miss b {
  color: #a9443c;
}

.mobile-final-lite {
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(255, 149, 0, 0.06));
  padding: 13px;
}

.mobile-final-lite-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.mobile-final-lite-head span {
  color: #007aff;
  font-size: 12px;
  font-weight: 900;
}

.mobile-final-lite-head b {
  grid-column: 1 / -1;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
}

.mobile-final-lite-head strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  border-radius: 14px;
  background: #ff9500;
  color: #fff;
  padding: 8px 11px;
  font-size: 17px;
  font-weight: 950;
  max-width: 132px;
  text-align: center;
  overflow-wrap: anywhere;
}

.mobile-final-lite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 9px;
}

.mobile-final-lite-grid i {
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  padding: 8px;
  font-style: normal;
}

.mobile-final-lite-grid span {
  display: block;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 800;
}

.mobile-final-lite-grid b {
  display: block;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mobile-final-lite-grid em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: #6e6e73;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mobile-final-plays {
  margin-top: 2px;
}

.daily-plan-board {
  display: grid;
  gap: 12px;
}

.daily-reference-board {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.daily-reference-board > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}

.daily-reference-board > header b {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 950;
}

.daily-reference-board > header span {
  color: #8a8a8e;
  font-size: 11px;
  font-weight: 800;
}

.daily-reference-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
}

.daily-reference-legend i {
  border-radius: 999px;
  padding: 3px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.daily-reference-legend .trusted {
  background: rgba(52, 199, 89, 0.11);
  color: #248a3d;
}

.daily-reference-legend .caution {
  background: rgba(255, 149, 0, 0.13);
  color: #b75d00;
}

.daily-reference-legend .muted {
  background: rgba(142, 142, 147, 0.12);
  color: #6e6e73;
}

.daily-reference-loading {
  color: #6e6e73;
  padding: 18px 14px;
  font-size: 12px;
  font-weight: 750;
}

.daily-reference-table {
  display: grid;
}

.daily-reference-row {
  display: grid;
  grid-template-columns: 72px minmax(170px, 1.5fr) minmax(130px, 1fr) 82px minmax(120px, 0.9fr) 92px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(60, 60, 67, 0.075);
  background: transparent;
  color: #1d1d1f;
  padding: 10px 14px;
  text-align: left;
}

button.daily-reference-row {
  cursor: pointer;
}

button.daily-reference-row:hover {
  background: rgba(255, 149, 0, 0.055);
}

.daily-reference-row:last-child {
  border-bottom: 0;
}

.daily-reference-head {
  background: #f7f7f9;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 900;
}

.daily-reference-row b,
.daily-reference-row strong,
.daily-reference-row span,
.daily-reference-row em,
.daily-reference-row i {
  min-width: 0;
  overflow-wrap: anywhere;
}

.daily-reference-row .reference-risk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: start;
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
}

.daily-reference-row .reference-risk small {
  font-size: 10px;
  font-weight: 850;
  opacity: 0.72;
}

.daily-reference-row b {
  font-size: 13px;
  font-weight: 900;
}

.daily-reference-row strong {
  font-size: 12px;
  font-weight: 900;
}

.daily-reference-row span,
.daily-reference-row em,
.daily-reference-row i {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.daily-reference-row .reference-score-value {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 950;
}

.reference-score-value.high {
  background: rgba(52, 199, 89, 0.11);
  color: #248a3d;
}

.reference-score-value.medium {
  background: rgba(255, 149, 0, 0.12);
  color: #b75d00;
}

.reference-score-value.low {
  background: rgba(142, 142, 147, 0.12);
  color: #6e6e73;
}

.daily-reference-row .reference-action {
  color: #6e6e73;
  font-weight: 950;
}

.daily-reference-row.action-single .reference-action,
.daily-reference-row.action-parlay .reference-action,
.daily-reference-row.action-featured .reference-action {
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.11);
  color: #248a3d;
  padding: 5px 7px;
}

.daily-reference-row.action-cold .reference-action {
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.13);
  color: #c85f00;
  padding: 5px 7px;
}

.daily-reference-row.action-secondary .reference-action,
.daily-reference-row.action-watch .reference-action {
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.14);
  color: #9a6700;
  padding: 5px 7px;
}

.daily-reference-row.action-drop {
  opacity: 0.68;
}

.daily-reference-row.action-single,
.daily-reference-row.action-parlay,
.daily-reference-row.action-featured {
  background: linear-gradient(90deg, rgba(52, 199, 89, 0.035), transparent 46%);
}

.daily-reference-row.action-cold,
.daily-reference-row.action-secondary,
.daily-reference-row.action-watch {
  background: linear-gradient(90deg, rgba(255, 149, 0, 0.04), transparent 46%);
}

@media (max-width: 760px) {
  .daily-reference-board > header {
    align-items: flex-start;
  }

  .daily-reference-board > header b {
    flex: none;
  }

  .daily-reference-legend {
    gap: 4px;
  }

  .daily-reference-legend span {
    flex-basis: 100%;
    text-align: right;
  }

  .daily-reference-head {
    display: none;
  }

  .daily-reference-row:not(.daily-reference-head) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 8px;
    padding: 11px 12px;
  }

  .daily-reference-row .reference-num {
    grid-column: 1;
    grid-row: 1;
    color: #9a6700;
    font-size: 10px;
  }

  .daily-reference-row .reference-match {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
  }

  .daily-reference-row .reference-score-value {
    grid-column: 3;
    grid-row: 1;
  }

  .daily-reference-row .reference-direction {
    grid-column: 1 / 3;
    grid-row: 2;
    color: #1d1d1f;
  }

  .daily-reference-row .reference-action {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    text-align: right;
  }

  .daily-reference-row .reference-score,
  .daily-reference-row .reference-goals {
    grid-row: 3;
    border: 1px solid rgba(60, 60, 67, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    padding: 6px 8px;
  }

  .daily-reference-row .reference-score {
    grid-column: 1 / 3;
  }

  .daily-reference-row .reference-score::before {
    content: "比分 ";
    color: #8a8a8e;
  }

  .daily-reference-row .reference-goals {
    grid-column: 3;
    white-space: nowrap;
  }

  .daily-reference-row .reference-goals::before {
    content: "进球 ";
    color: #8a8a8e;
  }

  .daily-reference-row .reference-risk {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
}

.daily-plan-hero {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 149, 0, 0.22);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.14), rgba(255, 255, 255, 0.96) 58%);
  padding: 14px;
}

.daily-plan-hero span,
.daily-plan-card header span,
.daily-plan-kpis span,
.daily-plan-legs span {
  color: #9a6700;
  font-size: 11px;
  font-weight: 900;
}

.daily-plan-hero b {
  color: #1d1d1f;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.25;
}

.daily-plan-hero em {
  color: #6e6e73;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

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

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

.daily-plan-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 149, 0, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
}

.daily-plan-card.featured {
  border-color: rgba(255, 149, 0, 0.32);
  box-shadow: 0 10px 24px rgba(255, 149, 0, 0.08);
}

.daily-plan-card.safe {
  border-color: rgba(52, 199, 89, 0.22);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.08), rgba(255, 255, 255, 0.95));
}

.daily-plan-card.mix {
  border-color: rgba(0, 122, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(255, 255, 255, 0.95));
}

.daily-plan-card.cold {
  border-color: rgba(255, 149, 0, 0.28);
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.13), rgba(255, 255, 255, 0.95));
}

.daily-plan-card.goals {
  border-color: rgba(88, 86, 214, 0.22);
  background: linear-gradient(135deg, rgba(88, 86, 214, 0.08), rgba(255, 255, 255, 0.95));
}

.daily-plan-card.review-hit {
  border-color: rgba(52, 199, 89, 0.42);
}

.daily-plan-card.review-cover,
.daily-plan-card.review-partial {
  border-color: rgba(255, 149, 0, 0.42);
}

.daily-plan-card.review-miss {
  border-color: rgba(255, 59, 48, 0.38);
}

.daily-plan-card header {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.daily-plan-card header strong {
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.14);
  color: #c85f00;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.daily-plan-card header strong.hit {
  background: rgba(52, 199, 89, 0.13);
  color: #248a3d;
}

.daily-plan-card header strong.miss {
  background: rgba(255, 59, 48, 0.11);
  color: #c02b22;
}

.daily-plan-card header strong.partial,
.daily-plan-card header strong.cover {
  background: rgba(255, 149, 0, 0.14);
  color: #c85f00;
}

.daily-plan-card header strong.pending {
  background: rgba(142, 142, 147, 0.12);
  color: #6e6e73;
}

.daily-plan-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.daily-plan-metrics span {
  border: 1px solid rgba(255, 149, 0, 0.14);
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.06);
  padding: 3px 6px;
}

.daily-plan-card > b {
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.28;
}

.daily-plan-desc {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.45;
}

.daily-plan-review-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 10px;
  align-items: stretch;
  border: 1px solid rgba(255, 149, 0, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.08), rgba(255, 255, 255, 0.95));
  padding: 12px;
}

.daily-plan-review-strip > div:first-child {
  display: grid;
  gap: 4px;
}

.daily-plan-review-strip span,
.daily-plan-review b {
  color: #9a6700;
  font-size: 12px;
  font-weight: 950;
}

.daily-plan-review-strip b {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.3;
}

.daily-plan-review-strip em,
.daily-plan-review span {
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.42;
}

.daily-plan-review-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.daily-plan-review-chips i,
.daily-plan-review {
  min-width: 0;
  border: 1px solid rgba(60, 60, 67, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.daily-plan-review-chips i {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.daily-plan-review-chips i.hit,
.daily-plan-review.hit {
  border-color: rgba(52, 199, 89, 0.34);
  background: rgba(52, 199, 89, 0.09);
}

.daily-plan-review-chips i.cover,
.daily-plan-review.cover,
.daily-plan-review-chips i.partial,
.daily-plan-review.partial {
  border-color: rgba(255, 149, 0, 0.34);
  background: rgba(255, 149, 0, 0.1);
}

.daily-plan-review-chips i.miss,
.daily-plan-review.miss {
  border-color: rgba(255, 59, 48, 0.3);
  background: rgba(255, 59, 48, 0.075);
}

.daily-plan-review-chips i.pending,
.daily-plan-review.pending {
  border-color: rgba(142, 142, 147, 0.22);
  background: rgba(142, 142, 147, 0.07);
}

.daily-plan-review-chips i b {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 950;
}

.daily-plan-review {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.daily-plan-review-detail-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.daily-plan-review-detail {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(60, 60, 67, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
}

.daily-plan-review-detail.review-hit {
  border-color: rgba(52, 199, 89, 0.34);
  background: rgba(52, 199, 89, 0.08);
}

.daily-plan-review-detail.review-miss {
  border-color: rgba(255, 59, 48, 0.28);
  background: rgba(255, 59, 48, 0.065);
}

.daily-plan-review-detail.review-partial,
.daily-plan-review-detail.review-cover {
  border-color: rgba(255, 149, 0, 0.34);
  background: rgba(255, 149, 0, 0.08);
}

.daily-plan-review-detail header {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.daily-plan-review-detail header b,
.daily-plan-review-detail > strong {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}

.daily-plan-review-detail header span,
.daily-plan-review-detail > em {
  color: #6e6e73;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.daily-plan-review-detail > div {
  display: grid;
  gap: 6px;
}

.daily-plan-review-detail button {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.daily-plan-review-detail button.settle-hit,
.single-route-row.review-hit {
  border-color: rgba(52, 199, 89, 0.34);
  background: rgba(52, 199, 89, 0.08);
}

.single-route-row.review-hit b,
.single-route-row.review-hit span,
.single-route-row.review-hit em {
  color: #248a3d;
  font-weight: 950;
}

.daily-plan-review-detail button.settle-miss,
.single-route-row.review-miss {
  border-color: rgba(255, 59, 48, 0.3);
  background: rgba(255, 59, 48, 0.065);
}

.single-route-row.review-miss b,
.single-route-row.review-miss span,
.single-route-row.review-miss em {
  color: #c02b22;
  font-weight: 950;
}

.daily-plan-review-detail button.settle-partial,
.daily-plan-review-detail button.settle-cover,
.single-route-row.review-partial,
.single-route-row.review-cover {
  border-color: rgba(255, 149, 0, 0.34);
  background: rgba(255, 149, 0, 0.08);
}

.single-route-row.review-not-recommended {
  border-color: rgba(142, 142, 147, 0.18);
  background: rgba(142, 142, 147, 0.055);
  opacity: 0.76;
}

.daily-plan-review-detail button b,
.daily-plan-review-detail button span {
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.32;
}

.daily-plan-review-detail button em {
  color: #6e6e73;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

/* 2026-08-28: one source of truth for the featured table and its review. */
.daily-reference-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.daily-reference-table {
  min-width: 760px;
}

.daily-reference-row {
  grid-template-columns: 66px minmax(190px, 1.55fr) minmax(122px, 0.95fr) minmax(88px, 0.68fr) minmax(116px, 0.88fr) 78px;
}

.daily-reference-row .reference-risk {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 950;
  white-space: nowrap;
}

.reference-risk.risk-lowest,
.reference-risk.risk-low {
  background: rgba(52, 199, 89, 0.12);
  color: #248a3d;
}

.reference-risk.risk-medium,
.reference-risk.risk-medium-high {
  background: rgba(255, 204, 0, 0.16);
  color: #8a6300;
}

.reference-risk.risk-high,
.reference-risk.risk-highest {
  background: rgba(255, 149, 0, 0.14);
  color: #b64f00;
}

.daily-reference-row.risk-lowest,
.daily-reference-row.risk-low {
  background: linear-gradient(90deg, rgba(52, 199, 89, 0.035), transparent 44%);
}

.daily-reference-row.risk-high,
.daily-reference-row.risk-highest {
  background: linear-gradient(90deg, rgba(255, 149, 0, 0.045), transparent 44%);
}

.daily-reference-row .review-hit {
  border-radius: 7px;
  background: rgba(52, 199, 89, 0.12);
  color: #1e7e34;
  padding: 5px 7px;
}

.daily-reference-row .review-miss {
  border-radius: 7px;
  background: rgba(255, 59, 48, 0.09);
  color: #c32820;
  padding: 5px 7px;
}

.daily-reference-row .review-pending {
  color: #6e6e73;
}

.daily-operation-summary {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(60, 60, 67, 0.08);
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.055), rgba(255, 255, 255, 0.97));
  padding: 14px;
}

.daily-operation-summary > b {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 950;
}

.daily-operation-summary ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-operation-summary li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 10px;
}

.daily-operation-summary li strong {
  color: #9a6700;
  font-size: 12px;
  font-weight: 950;
}

.daily-operation-summary li span {
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.daily-operation-summary li em {
  color: #6e6e73;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.daily-operation-summary li.review-hit {
  border-color: rgba(52, 199, 89, 0.34);
  background: rgba(52, 199, 89, 0.09);
}

.daily-operation-summary li.review-miss {
  border-color: rgba(255, 59, 48, 0.3);
  background: rgba(255, 59, 48, 0.07);
}

.daily-operation-summary li.review-partial,
.daily-operation-summary li.review-cover {
  border-color: rgba(255, 149, 0, 0.34);
  background: rgba(255, 149, 0, 0.09);
}

.daily-operation-summary > p {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  color: #6e6e73;
  font-size: 11px;
}

.daily-operation-summary > p span {
  min-width: 88px;
  color: #8a8a8e;
  font-weight: 850;
}

.daily-operation-summary > p b {
  color: #1d1d1f;
  font-weight: 900;
}

.daily-reference-legacy {
  margin: 0;
  border-top: 1px solid rgba(60, 60, 67, 0.08);
  color: #8a6a2f;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 750;
}

.featured-plan-review .daily-reference-board {
  width: 100%;
}

@media (max-width: 760px) {
  .daily-reference-board > header {
    display: grid;
    gap: 8px;
  }

  .daily-reference-legend {
    justify-content: flex-start;
  }

  .daily-reference-legend span {
    text-align: left;
  }

  .daily-reference-head {
    display: grid;
  }

  .daily-reference-scroll {
    overflow-x: visible;
  }

  .daily-reference-table {
    min-width: 0;
    gap: 7px;
    padding: 8px;
  }

  .daily-reference-head {
    display: none;
  }

  .daily-reference-row:not(.daily-reference-head) {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 7px 8px;
    border: 1px solid rgba(60, 60, 67, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.86);
    padding: 10px;
  }

  .daily-reference-row .reference-num {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    color: #a46700;
    font-size: 11px;
    font-weight: 950;
  }

  .daily-reference-row .reference-match {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .daily-reference-row .reference-risk {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    font-size: 10px;
    padding: 4px 6px;
  }

  .daily-reference-row .reference-direction {
    grid-column: 1 / -1;
    grid-row: 2;
    border-radius: 8px;
    background: rgba(255, 149, 0, 0.055);
    color: #1d1d1f;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .daily-reference-row .reference-direction::before {
    content: "胜平负  ";
    color: #9a6700;
    font-size: 10px;
    font-weight: 900;
  }

  .daily-reference-row .reference-goals,
  .daily-reference-row .reference-score {
    grid-column: 1 / -1;
    min-width: 0;
    border: 1px solid rgba(60, 60, 67, 0.075);
    border-radius: 8px;
    background: rgba(247, 247, 249, 0.88);
    padding: 7px 8px;
    color: #1d1d1f;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
  }

  .daily-reference-row .reference-goals {
    grid-row: 3;
  }

  .daily-reference-row .reference-score {
    grid-row: 4;
  }

  .daily-reference-row .reference-goals::before {
    content: "进球 ";
    color: #8a8a8e;
    font-size: 10px;
  }

  .daily-reference-row .reference-score::before {
    content: "比分 ";
    color: #8a8a8e;
    font-size: 10px;
  }

  .daily-operation-summary li {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 5px 8px;
  }

  .daily-operation-summary li em {
    grid-column: 2;
    white-space: normal;
  }

  .daily-plan-review-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.match-play-review-block {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.match-play-review-list {
  display: grid;
  gap: 8px;
}

.match-play-review-row {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
}

.match-play-review-row.is-done {
  border-color: rgba(52, 199, 89, 0.2);
}

.match-play-review-row header {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.match-play-review-row header b {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.match-play-review-row header span {
  color: #6e6e73;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.review-play-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-play-chip-row span {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.35;
  white-space: normal;
}

.review-play-chip-row span.hit {
  background: rgba(52, 199, 89, 0.13);
  color: #248a3d;
}

.review-play-chip-row span.miss {
  background: rgba(255, 59, 48, 0.11);
  color: #c02b22;
}

.review-play-chip-row span.pending {
  background: rgba(142, 142, 147, 0.12);
  color: #6e6e73;
}

.review-auto-summary {
  grid-column: 1 / -1;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.055);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  padding: 10px 12px;
  white-space: pre-wrap;
}

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

.single-route-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.055), rgba(255, 255, 255, 0.94));
  padding: 12px;
}

.single-route-card.cold {
  border-color: rgba(255, 149, 0, 0.25);
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.09), rgba(255, 255, 255, 0.94));
}

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

.single-route-card header span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
}

.single-route-card header strong {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.35;
}

.single-route-row {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
  padding: 9px;
}

.single-route-row span,
.review-learning-feed span,
.review-section-head span {
  color: #9a6700;
  font-size: 12px;
  font-weight: 950;
}

.single-route-row b,
.review-section-head b,
.review-learning-feed b {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}

.single-route-row em,
.single-route-row p,
.review-section-head em,
.review-learning-feed em {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.single-route-review-block,
.review-learning-feed {
  grid-column: 1 / -1;
}

.single-route-review-block {
  display: grid;
  gap: 10px;
}

.single-review-brief {
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 14px;
  background: rgba(0, 122, 255, 0.055);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
  padding: 10px 12px;
}

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

.single-evidence-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 149, 0, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
}

.single-evidence-grid span {
  color: #9a6700;
  font-size: 12px;
  font-weight: 950;
}

.single-evidence-grid b {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.single-competition-section {
  border-top: 1px solid rgba(255, 149, 0, 0.2);
  padding-top: 12px;
}

.competition-intent-panel {
  margin-top: 12px;
  border-top: 1px solid rgba(142, 142, 147, 0.16);
  padding-top: 11px;
}

.competition-intent-panel h4 {
  margin: 0 0 8px;
  color: #1676d2;
  font-size: 14px;
  font-weight: 950;
}

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

.competition-intent-card {
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.17);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(239, 247, 255, 0.96), rgba(255, 255, 255, 0.92));
  padding: 11px 12px;
}

.competition-intent-card.intent-must-win,
.competition-intent-card.intent-win-first {
  border-color: rgba(255, 149, 0, 0.28);
  background: linear-gradient(135deg, rgba(255, 247, 235, 0.98), rgba(255, 255, 255, 0.94));
}

.competition-intent-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
}

.competition-intent-head span {
  min-width: 0;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.competition-intent-head b {
  grid-column: 1;
  color: #1d1d1f;
  font-size: 17px;
  line-height: 1.35;
}

.competition-intent-head em {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.12);
  color: #a85c00;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 7px;
  white-space: nowrap;
}

.competition-intent-card p {
  margin: 7px 0 0;
  color: #3a3a3c;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.competition-intent-card small {
  display: block;
  margin-top: 7px;
  color: #73737a;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.competition-intent-model {
  margin: 9px 0 0;
  border-left: 3px solid #ff9500;
  color: #4a4a4e;
  font-size: 12px;
  line-height: 1.55;
  padding-left: 9px;
}

.competition-context-details {
  margin-top: 10px;
  border-top: 1px solid rgba(142, 142, 147, 0.16);
  padding-top: 9px;
}

.competition-context-details summary {
  color: #9a6700;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.competition-context-details p {
  margin: 8px 0 0;
  color: #4a4a4e;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .single-competition-section .single-evidence-grid {
    grid-template-columns: 1fr;
  }

  .competition-intent-grid {
    grid-template-columns: 1fr;
  }
}

.review-section-head,
.review-learning-feed {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.08), rgba(255, 255, 255, 0.94));
  padding: 12px;
}

.review-learning-feed.learned {
  border-color: rgba(52, 199, 89, 0.3);
  background: rgba(52, 199, 89, 0.07);
}

.review-learning-feed.learned b {
  color: #248a3d;
}

.review-learning-feed.syncing {
  border-color: rgba(255, 149, 0, 0.34);
  background: rgba(255, 149, 0, 0.08);
}

.review-learning-feed.excluded {
  border-color: rgba(142, 142, 147, 0.2);
  background: rgba(142, 142, 147, 0.07);
}

.daily-plan-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.daily-plan-kpis i {
  min-width: 0;
  border: 1px solid rgba(60, 60, 67, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px;
  font-style: normal;
}

.daily-plan-kpis b {
  display: block;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 950;
}

.daily-plan-legs {
  display: grid;
  gap: 6px;
}

.daily-plan-legs button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  min-width: 0;
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.85);
  color: inherit;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.daily-plan-legs button.settle-hit {
  border-color: rgba(52, 199, 89, 0.34);
  background: rgba(52, 199, 89, 0.08);
}

.daily-plan-legs button.settle-cover,
.daily-plan-legs button.settle-partial {
  border-color: rgba(255, 149, 0, 0.34);
  background: rgba(255, 149, 0, 0.08);
}

.daily-plan-legs button.settle-miss {
  border-color: rgba(255, 59, 48, 0.3);
  background: rgba(255, 59, 48, 0.07);
}

.daily-plan-legs b,
.daily-plan-legs em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.daily-plan-legs b {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 950;
}

.daily-plan-legs em {
  grid-column: 1 / -1;
  color: #2c2c2e;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}

.daily-plan-legs i {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: start;
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.12);
  color: #c85f00;
  padding: 4px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.daily-plan-legs small {
  grid-column: 1 / -1;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.daily-plan-card p,
.daily-plan-empty span {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.45;
}

.daily-plan-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(255, 149, 0, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

.daily-plan-empty b {
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 950;
}

.daily-no-touch {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 59, 48, 0.16);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.06), rgba(255, 255, 255, 0.92));
  padding: 12px;
}

.daily-no-touch b {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 950;
}

.daily-no-touch span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.daily-plan-more {
  border: 1px solid rgba(60, 60, 67, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  padding: 10px;
}

.daily-plan-more summary {
  cursor: pointer;
  color: #9a6700;
  font-size: 13px;
  font-weight: 950;
  list-style-position: inside;
}

.daily-plan-more .daily-plan-grid {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .daily-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-summary-strip span:last-child {
    grid-column: 1 / -1;
  }

  .daily-decision-head {
    display: none;
  }

  .daily-decision-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    border-radius: 18px;
    padding: 10px;
  }

  .daily-main-cell,
  .daily-cold-cell,
  .daily-confidence-cell {
    border-top: 1px solid rgba(60, 60, 67, 0.08);
    padding-top: 7px;
  }

  .daily-main-cell em,
  .daily-cold-cell em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
  }

  .daily-confidence-cell em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .daily-play-pills {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .daily-play-pills::-webkit-scrollbar {
    display: none;
  }

  .daily-play-pills i {
    flex: 0 0 118px;
  }

  .mobile-final-lite-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .daily-plan-grid,
  .daily-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .daily-plan-review-strip,
  .daily-plan-review-chips {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .daily-summary-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .daily-summary-strip span:last-child {
    grid-column: auto;
  }

  .daily-play-pills {
    grid-template-columns: none;
    gap: 5px;
  }

  .daily-play-pills i {
    flex-basis: 108px;
  }

  .daily-play-pills b {
    font-size: 11px;
  }

  .daily-match-cell b,
  .daily-main-cell b,
  .daily-cold-cell b,
  .daily-confidence-cell b {
    font-size: 13px;
  }

  .daily-match-cell em,
  .daily-main-cell em,
  .daily-cold-cell em,
  .daily-confidence-cell em,
  .daily-match-cell i {
    font-size: 11px;
    line-height: 1.35;
  }
}

.mobile-strategy-tabs,
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --mobile-accent: #ff8a00;
    --mobile-accent-soft: rgba(255, 138, 0, 0.11);
    --mobile-accent-line: rgba(255, 138, 0, 0.24);
  }

  html {
    scroll-padding-bottom: 96px;
  }

  .shell {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .mobile-strategy-tabs {
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 8px;
    padding: 6px;
    border: 1px solid rgba(60, 60, 67, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(18px);
  }

  .strategy-tab {
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #6e6e73;
    padding: 9px 10px;
    text-align: left;
  }

  .strategy-tab span {
    display: block;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
  }

  .strategy-tab em {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #86868b;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .strategy-tab.is-active {
    border-color: var(--mobile-accent-line);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.16), rgba(255, 255, 255, 0.96));
    box-shadow: 0 8px 20px rgba(255, 138, 0, 0.12);
  }

  .strategy-tab.is-active span {
    color: #c85f00;
  }

  body[data-active-mobile-view="review"] .mobile-strategy-tabs {
    display: none !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(60, 60, 67, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    backdrop-filter: saturate(180%) blur(20px);
    pointer-events: auto;
    touch-action: manipulation;
  }

  .mobile-bottom-nav button {
    min-width: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #86868b;
    padding: 8px 6px;
    text-align: center;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav span {
    display: block;
    color: inherit;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.15;
  }

  .mobile-bottom-nav em {
    display: block;
    margin-top: 2px;
    color: inherit;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    opacity: 0.78;
  }

  .mobile-bottom-nav button.is-active {
    background: linear-gradient(135deg, #ff9f2f, #ff7a00);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
  }

  .date-btn.active,
  .match-btn.active {
    border-color: rgba(255, 138, 0, 0.42);
    background: linear-gradient(135deg, #ff9f2f, #ff7a00) !important;
    color: #fff !important;
  }

  .match-btn.active small,
  .match-btn.active em,
  .date-btn.active span {
    color: rgba(255, 255, 255, 0.82);
  }

  .card-head span,
  .section-title span {
    color: #c85f00;
  }

  .final-map-card,
  .daily-board-card {
    border-color: var(--mobile-accent-line);
  }

  .mobile-final-lite {
    border-color: var(--mobile-accent-line);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.13), rgba(255, 255, 255, 0.97));
  }

  .mobile-final-lite-head span,
  .daily-confidence-cell b {
    color: #c85f00;
  }

  .daily-summary-strip span,
  .mobile-final-lite-grid i,
  .daily-mobile-mini-plays i,
  .daily-mobile-row {
    border-color: rgba(255, 138, 0, 0.2) !important;
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.075), rgba(255, 255, 255, 0.96)) !important;
  }

  .daily-mobile-line i,
  .daily-match-cell i {
    background: rgba(255, 138, 0, 0.12) !important;
    color: #c85f00 !important;
  }

  .daily-decision-row {
    border-color: var(--mobile-accent-line);
  }

  .daily-decision-row:not(.daily-decision-head):hover,
  .daily-decision-row.is-active {
    border-color: rgba(255, 138, 0, 0.56);
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.12), rgba(255, 255, 255, 0.96));
  }

  body[data-active-strategy-mode="stable"] .daily-cold-cell {
    opacity: 0.74;
  }

  body[data-active-strategy-mode="cold"] .daily-main-cell {
    opacity: 0.8;
  }

  body[data-active-strategy-mode="cold"] .daily-cold-cell {
    border-radius: 12px;
    background: rgba(255, 138, 0, 0.07);
    padding: 8px;
  }

  .daily-mobile-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 10px;
  }

  .daily-mobile-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  .daily-mobile-top b {
    overflow: hidden;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .daily-mobile-top strong {
    border-radius: 999px;
    background: rgba(255, 138, 0, 0.12);
    color: #c85f00;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 950;
  }

  .daily-mobile-meta {
    overflow: hidden;
    color: #86868b;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .daily-mobile-sides {
    color: #a36a2d;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.35;
    white-space: normal;
  }

  .daily-mobile-line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border-top: 1px solid rgba(60, 60, 67, 0.08);
    padding-top: 7px;
  }

  .daily-mobile-line i {
    width: fit-content;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.08);
    color: #007aff;
    padding: 3px 7px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
  }

  .daily-mobile-line.cold i {
    background: rgba(255, 138, 0, 0.12);
    color: #c85f00;
  }

  .daily-mobile-row.strategy-stable .daily-mobile-line.cold i {
    background: rgba(52, 199, 89, 0.12);
    color: #248a3d;
  }

  .daily-mobile-row.strategy-cold .daily-mobile-line i {
    background: rgba(255, 138, 0, 0.12);
    color: #c85f00;
  }

  .daily-mobile-row.strategy-unified .daily-mobile-line i {
    background: rgba(255, 138, 0, 0.12);
    color: #c85f00;
  }

  .daily-mobile-line b {
    display: -webkit-box;
    overflow: hidden;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
  }

  .daily-mobile-line.cold b {
    -webkit-line-clamp: 10;
  }

  .daily-mobile-mini-plays {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .daily-mobile-mini-plays i {
    min-width: 0;
    border: 1px solid rgba(0, 122, 255, 0.13);
    border-radius: 11px;
    background: rgba(0, 122, 255, 0.045);
    padding: 6px;
    font-style: normal;
  }

  .daily-mobile-mini-plays span {
    display: block;
    color: #6e6e73;
    font-size: 10px;
    font-weight: 800;
  }

  .daily-mobile-mini-plays b {
    display: -webkit-box;
    overflow: hidden;
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }

  .daily-compact-list {
    display: grid;
    gap: 10px;
  }

  .daily-compact-card {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 138, 0, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 248, 239, 0.98), rgba(255, 255, 255, 0.96));
    box-shadow: 0 8px 20px rgba(255, 138, 0, 0.08);
    padding: 14px 16px;
    text-align: left;
    touch-action: manipulation;
  }

  .daily-compact-card.is-active {
    border-color: rgba(255, 138, 0, 0.58);
    box-shadow: 0 10px 24px rgba(255, 138, 0, 0.16);
  }

  .daily-compact-card.is-completed {
    background: linear-gradient(135deg, rgba(245, 255, 248, 0.98), rgba(255, 255, 255, 0.96));
  }

  .daily-compact-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
  }

  .daily-compact-top span {
    min-width: 0;
    color: #9a6400;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.2;
  }

  .daily-compact-top strong {
    flex: none;
    max-width: 62%;
    border-radius: 999px;
    background: rgba(255, 138, 0, 0.13);
    color: #b75d00;
    padding: 5px 9px;
    font-size: 11.5px;
    font-weight: 950;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
  }

  .daily-compact-card > b {
    display: block;
    margin-top: 5px;
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .daily-compact-card > b i {
    color: #c85f00;
    font-style: normal;
    font-weight: 900;
  }

  .daily-compact-card p {
    margin: 8px 0 0;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.36;
    overflow-wrap: anywhere;
  }

  .daily-compact-card em {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: #8a8a8e;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .daily-mobile-plan-table {
    display: grid;
    gap: 10px;
  }

  .daily-scheme-group {
    display: grid;
    gap: 10px;
  }

  .daily-scheme-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
  }

  .daily-scheme-header b {
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 950;
  }

  .daily-scheme-header span {
    color: #b75d00;
    font-size: 11px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(255, 138, 0, 0.13);
    padding: 3px 9px;
  }

  .daily-scheme-summary {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 138, 0, 0.18);
    border-radius: 12px;
    background: rgba(255, 249, 239, 0.7);
  }

  .daily-scheme-summary > b {
    color: #9a6400;
    font-size: 13px;
    font-weight: 950;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  .daily-scheme-summary > b .daily-scheme-rate {
    color: #8a8a8e;
    font-size: 11px;
    font-weight: 800;
    font-style: normal;
  }

  .daily-scheme-summary ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
  }

  .daily-mobile-plan-card {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 138, 0, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 249, 239, 0.98), rgba(255, 255, 255, 0.96));
    padding: 14px;
    box-shadow: 0 8px 22px rgba(255, 138, 0, 0.08);
  }

  .daily-mobile-plan-card.review-hit {
    border-color: rgba(52, 199, 89, 0.35);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08), rgba(255, 255, 255, 0.96));
  }

  .daily-mobile-plan-card.review-miss {
    border-color: rgba(255, 59, 48, 0.32);
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.07), rgba(255, 255, 255, 0.96));
  }

  .daily-mobile-plan-card header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
  }

  .daily-mobile-plan-card header span {
    color: #9a6400;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.25;
  }

  .daily-mobile-plan-card header strong {
    flex: none;
    max-width: 42%;
    border-radius: 999px;
    background: rgba(255, 138, 0, 0.13);
    color: #b75d00;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.25;
    text-align: right;
  }

  .daily-mobile-plan-card > b {
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.35;
  }

.daily-mobile-plan-card > p {
    margin: 0;
    color: #6e6e73;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
  }

  .daily-mobile-plan-card > div {
    display: grid;
    gap: 7px;
  }

  .daily-mobile-plan-card button {
    display: grid;
    gap: 3px;
    border: 1px solid rgba(60, 60, 67, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.78);
    color: inherit;
    padding: 9px;
    text-align: left;
  }

  .daily-mobile-plan-card button.settle-hit {
    border-color: rgba(52, 199, 89, 0.34);
    background: rgba(52, 199, 89, 0.08);
  }

  .daily-mobile-plan-card button.settle-miss {
    border-color: rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.065);
  }

  .daily-mobile-plan-card button.settle-partial,
  .daily-mobile-plan-card button.settle-cover {
    border-color: rgba(255, 149, 0, 0.34);
    background: rgba(255, 149, 0, 0.08);
  }

  .daily-mobile-plan-card button em,
  .daily-mobile-plan-card button b,
  .daily-mobile-plan-card button span {
    overflow-wrap: anywhere;
  }

  .daily-mobile-plan-card button em {
    color: #9a6400;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
  }

  .daily-mobile-plan-card button b {
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.35;
  }

  .daily-mobile-plan-card button span,
  .daily-mobile-plan-card i {
    color: #6e6e73;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.4;
  }

  body[data-active-mobile-view="today"] .today-panel,
  body.mobile-view-today .today-panel,
  body[data-active-mobile-view="today"] .deep-analysis-card,
  body[data-active-mobile-view="today"] .daily-board-card,
  body[data-active-mobile-view="today"] .betting-card,
  body[data-active-mobile-view="today"] .master-model-card,
  body[data-active-mobile-view="today"] .learning-model-card,
  body[data-active-mobile-view="today"] .mystic-card,
  body[data-active-mobile-view="today"] .ai-card,
  body[data-active-mobile-view="today"] .path-card,
  body[data-active-mobile-view="today"] .score-card,
  body[data-active-mobile-view="today"] .factor-card,
  body[data-active-mobile-view="today"] .market-card,
  body[data-active-mobile-view="today"] .weather-card,
  body[data-active-mobile-view="today"] .news-card,
  body[data-active-mobile-view="today"] .result-card,
  body[data-active-mobile-view="today"] .history-card {
    display: none !important;
  }

  body[data-active-mobile-view="single"] .final-map-card,
  body[data-active-mobile-view="single"] .daily-board-card,
  body[data-active-mobile-view="single"] .betting-card,
  body[data-active-mobile-view="single"] .learning-model-card,
  body[data-active-mobile-view="single"] .mystic-card,
  body[data-active-mobile-view="single"] .ai-card,
  body[data-active-mobile-view="single"] .path-card,
  body[data-active-mobile-view="single"] .score-card,
  body[data-active-mobile-view="single"] .factor-card,
  body[data-active-mobile-view="single"] .market-card,
  body[data-active-mobile-view="single"] .weather-card,
  body[data-active-mobile-view="single"] .news-card,
  body[data-active-mobile-view="single"] .result-card,
  body[data-active-mobile-view="single"] .history-card {
    display: none !important;
  }

  body[data-active-mobile-view="single"] .deep-analysis-card,
  body[data-active-mobile-view="single"] .deep-analysis-card {
    display: block !important;
  }

  body[data-active-mobile-view="review"] .final-map-card,
  body[data-active-mobile-view="review"] .daily-board-card,
  body[data-active-mobile-view="review"] .deep-analysis-card,
  body[data-active-mobile-view="review"] .betting-card,
  body[data-active-mobile-view="review"] .master-model-card,
  body[data-active-mobile-view="review"] .learning-model-card,
  body[data-active-mobile-view="review"] .mystic-card,
  body[data-active-mobile-view="review"] .ai-card,
  body[data-active-mobile-view="review"] .path-card,
  body[data-active-mobile-view="review"] .score-card,
  body[data-active-mobile-view="review"] .factor-card,
  body[data-active-mobile-view="review"] .market-card,
  body[data-active-mobile-view="review"] .weather-card,
  body[data-active-mobile-view="review"] .news-card {
    display: none !important;
  }

  body[data-active-mobile-view="review"] .result-card,
  body[data-active-mobile-view="review"] .history-card {
    display: block !important;
  }
}

.daily-mobile-plan-card .daily-plan-weakest {
  margin-top: 6px;
  color: #9a5a14;
  background: #fff7e8;
  border: 1px solid #f2d5a3;
  border-radius: 6px;
  padding: 7px 9px;
  font-weight: 700;
}

/* Mobile date guard: expose nearby days, but let each date card breathe on narrow screens. */

/* Render only the active product surface. Hidden panels keep their cached HTML. */
body[data-active-app-view="today"] .content-grid > :not(.final-map-card),
body[data-active-app-view="single"] .content-grid > :not(.deep-analysis-card),
body[data-active-app-view="review"] .content-grid > :not(.result-card),
body[data-active-app-view="data"] .content-grid > :not(.analytics-card) {
  display: none !important;
}

body[data-active-app-view="today"] .final-map-card,
body[data-active-app-view="single"] .deep-analysis-card,
body[data-active-app-view="review"] .result-card,
body[data-active-app-view="data"] .analytics-card {
  display: block !important;
}

@media (max-width: 760px) {
  .mobile-bottom-nav,
  .mobile-strategy-tabs {
    backdrop-filter: none !important;
  }

  .mobile-bottom-nav {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
  }

  .sidebar .date-grid,
  .date-grid {
    display: grid !important;
    width: calc(100% + 16px);
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 -8px 10px;
    padding: 0 8px 4px;
    overflow: visible;
    scrollbar-width: none;
  }

  .sidebar .date-grid::-webkit-scrollbar,
  .date-grid::-webkit-scrollbar {
    display: none;
  }

  .sidebar .date-btn,
  .date-btn {
    min-width: 0;
    max-width: none;
    width: 100%;
    min-height: 68px;
    padding: 10px 8px;
  }

  .date-btn b,
  .date-btn span {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.content-grid > .learning-model-card,
.content-grid > .mystic-card,
.content-grid > .ai-card,
.content-grid > .path-card,
.content-grid > .factor-card,
.content-grid > .market-card,
.content-grid > .weather-card,
.content-grid > .news-card,
.content-grid > .result-card,
.content-grid > .analytics-card,
.content-grid > .history-card {
  contain: layout paint style;
}

/* 2026-08-21: four-surface product shell (today / single / review / data). */
.review-subnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f5f6f8;
}

.desktop-surface-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.desktop-surface-nav button {
  min-height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #52525b;
  font-size: 12px;
  font-weight: 850;
}

.desktop-surface-nav button.is-active {
  border-color: #fdba74;
  background: #fff7ed;
  color: #b45309;
}

.review-subnav button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.review-subnav button.is-active {
  background: #fff;
  color: #b45309;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.review-pane[hidden] {
  display: none !important;
}

.review-empty-state,
.analytics-empty {
  padding: 22px 16px;
  border: 1px dashed #d7dce3;
  border-radius: 8px;
  background: #fafbfc;
  text-align: center;
}

.review-empty-state b,
.review-empty-state span {
  display: block;
}

.review-empty-state b {
  color: #1f2937;
  font-size: 15px;
}

.review-empty-state span,
.analytics-empty {
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.55;
}

.match-play-review-row {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-align: left;
}

.analytics-card {
  border-color: rgba(255, 138, 0, 0.24);
}

.model-analytics-box {
  display: grid;
  gap: 14px;
}

.analytics-section {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.analytics-section > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f3;
}

.analytics-section > header div,
.analytics-section > header span,
.analytics-section > header b,
.analytics-section > header em {
  display: block;
}

.analytics-section > header span {
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

.analytics-section > header b {
  margin-top: 3px;
  color: #171717;
  font-size: 17px;
}

.analytics-section > header em {
  color: #737373;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

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

.analytics-kpi-grid > div {
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
}

.analytics-kpi-grid > div:nth-child(3n) {
  border-right: 0;
}

.analytics-kpi-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.analytics-kpi-grid span,
.analytics-kpi-grid b,
.analytics-kpi-grid em {
  display: block;
}

.analytics-kpi-grid span {
  color: #737373;
  font-size: 11px;
  font-weight: 800;
}

.analytics-kpi-grid b {
  margin-top: 5px;
  color: #171717;
  font-size: 23px;
}

.analytics-kpi-grid em {
  margin-top: 4px;
  color: #737373;
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
}

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

.analytics-evidence-grid > div {
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid #edf0f3;
}

.analytics-evidence-grid > div:last-child {
  border-right: 0;
}

.analytics-evidence-grid span,
.analytics-evidence-grid b,
.analytics-evidence-grid em {
  display: block;
}

.analytics-evidence-grid span {
  color: #737373;
  font-size: 11px;
  font-weight: 800;
}

.analytics-evidence-grid b {
  margin-top: 5px;
  color: #171717;
  font-size: 22px;
}

.analytics-evidence-grid em {
  margin-top: 4px;
  color: #737373;
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
}

.analytics-decision-table {
  display: grid;
  min-width: 0;
}

.analytics-decision-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(100px, 0.72fr) minmax(100px, 0.72fr) minmax(110px, 0.72fr) minmax(170px, 1.25fr);
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid #edf0f3;
}

.analytics-decision-row:last-child {
  border-bottom: 0;
}

.analytics-decision-row > div,
.analytics-decision-head > span {
  min-width: 0;
  padding: 10px 14px;
}

.analytics-decision-head {
  min-height: 34px;
  background: #f7f8fa;
  color: #737373;
  font-size: 10px;
  font-weight: 850;
}

.analytics-decision-row b,
.analytics-decision-row strong,
.analytics-decision-row small,
.analytics-decision-row em {
  display: block;
}

.analytics-decision-row b,
.analytics-decision-row strong {
  color: #202124;
  font-size: 14px;
}

.analytics-decision-row small,
.analytics-decision-row em {
  margin-top: 3px;
  color: #737373;
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.analytics-play-name {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.analytics-play-name i {
  display: grid;
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.analytics-decision-row.stage-insufficient strong,
.analytics-decision-row.stage-empty strong {
  color: #9a3412;
}

.analytics-decision-row.stage-early strong {
  color: #a16207;
}

.analytics-decision-row.stage-usable strong,
.analytics-decision-row.stage-stable strong {
  color: #166534;
}

.analytics-data-note {
  padding: 10px 14px;
  border-top: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: 10px;
  line-height: 1.5;
}

.analytics-table {
  display: grid;
}

.analytics-row {
  display: grid;
  grid-template-columns: 28px minmax(110px, 0.8fr) 82px minmax(180px, 1.6fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 16px;
  border-bottom: 1px solid #edf0f3;
}

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

.analytics-row i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.analytics-row b {
  color: #202124;
  font-size: 13px;
}

.analytics-row > span {
  color: #b45309;
  font-size: 14px;
  font-weight: 950;
}

.analytics-row em {
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.analytics-row.is-cold {
  background: #fff8f2;
}

.analytics-row.is-cold i {
  background: #ffedd5;
  color: #c2410c;
}

.analytics-cold-row b small {
  display: block;
  margin-top: 2px;
  color: #9a3412;
  font-size: 10px;
  font-weight: 700;
}

.analytics-chain-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.analytics-chain-grid > div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #edf0f3;
}

.analytics-chain-grid > div:last-child {
  border-right: 0;
}

.analytics-chain-grid span,
.analytics-chain-grid b,
.analytics-chain-grid em {
  display: block;
}

.analytics-chain-grid span {
  color: #737373;
  font-size: 10px;
}

.analytics-chain-grid b {
  margin-top: 4px;
  color: #166534;
  font-size: 13px;
}

.analytics-chain-grid em {
  margin-top: 4px;
  color: #737373;
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
}

.analytics-system-details > summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.analytics-system-details > summary::-webkit-details-marker {
  display: none;
}

.analytics-system-details > summary div,
.analytics-system-details > summary span,
.analytics-system-details > summary b,
.analytics-system-details > summary em {
  display: block;
}

.analytics-system-details > summary span {
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

.analytics-system-details > summary b {
  margin-top: 3px;
  color: #171717;
  font-size: 17px;
}

.analytics-system-details > summary em {
  color: #737373;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.analytics-system-details[open] > summary {
  border-bottom: 1px solid #edf0f3;
}

.analytics-internal-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #edf0f3;
  background: #fafafa;
}

.analytics-internal-board > span {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid #edf0f3;
  color: #52525b;
  font-size: 10px;
  font-weight: 800;
}

.analytics-internal-board > span:last-child {
  border-right: 0;
}

.analytics-internal-board small {
  display: block;
  margin-top: 4px;
  color: #737373;
  font-weight: 500;
  line-height: 1.4;
}

.analytics-cockpit-overview {
  border-color: #fed7aa;
}

.analytics-cockpit-overview.health-green {
  border-color: #86efac;
}

.analytics-cockpit-overview.health-red {
  border-color: #fca5a5;
}

.analytics-command-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.3fr;
  border-bottom: 1px solid #edf0f3;
  background: #fffcf8;
}

.analytics-command-grid > div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid #f3e8dc;
}

.analytics-command-grid > div:last-child {
  border-right: 0;
}

.analytics-command-grid span,
.analytics-command-grid b,
.analytics-command-grid em {
  display: block;
}

.analytics-command-grid span {
  color: #9a3412;
  font-size: 11px;
  font-weight: 850;
}

.analytics-command-grid b {
  margin-top: 5px;
  color: #171717;
  font-size: 17px;
  line-height: 1.35;
}

.analytics-command-grid em {
  margin-top: 5px;
  color: #737373;
  font-size: 10px;
  font-style: normal;
  line-height: 1.5;
}

.analytics-grade {
  width: fit-content;
  min-width: 30px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280 !important;
  font-size: 11px !important;
}

.analytics-grade.grade-a {
  background: #dcfce7;
  color: #166534 !important;
}

.analytics-grade.grade-b {
  background: #fef3c7;
  color: #92400e !important;
}

.analytics-opportunity-list {
  display: grid;
}

.analytics-opportunity-row {
  display: grid;
  grid-template-columns: 28px minmax(180px, 1fr) auto minmax(280px, 1.35fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf0f3;
}

.analytics-opportunity-row:last-child {
  border-bottom: 0;
}

.analytics-opportunity-row > i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.analytics-opportunity-row b,
.analytics-opportunity-row small {
  display: block;
}

.analytics-opportunity-row b {
  color: #202124;
  font-size: 13px;
}

.analytics-opportunity-row small {
  margin-top: 4px;
  color: #737373;
  font-size: 10px;
  line-height: 1.45;
}

.analytics-opportunity-row > span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
}

.analytics-opportunity-row.status-pass {
  background: #f0fdf4;
}

.analytics-opportunity-row.status-pass > span {
  background: #dcfce7;
  color: #166534;
}

.analytics-opportunity-row.status-candidate {
  background: #fff7ed;
}

.analytics-opportunity-row.status-candidate > span {
  background: #ffedd5;
  color: #9a3412;
}

.analytics-opportunity-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.analytics-opportunity-metrics em {
  min-width: 0;
  padding: 5px 6px;
  border-radius: 5px;
  background: #f7f8fa;
  color: #52525b;
  font-size: 9px;
  font-style: normal;
  text-align: center;
  white-space: nowrap;
}

.analytics-subdetails > summary {
  padding: 11px 16px;
  border-top: 1px solid #edf0f3;
  background: #fafafa;
  color: #b45309;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.analytics-odds-matrix {
  display: grid;
}

.analytics-odds-league {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 2.45fr);
  border-bottom: 1px solid #edf0f3;
}

.analytics-odds-league:last-child {
  border-bottom: 0;
}

.analytics-odds-league-head {
  padding: 13px 14px;
  border-right: 1px solid #edf0f3;
  background: #fafafa;
}

.analytics-odds-league-head b,
.analytics-odds-league-head span {
  display: block;
}

.analytics-odds-league-head b {
  color: #202124;
  font-size: 13px;
}

.analytics-odds-league-head span {
  margin-top: 5px;
  color: #737373;
  font-size: 9px;
}

.analytics-odds-buckets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-odds-buckets > div {
  min-width: 0;
  padding: 11px 10px;
  border-right: 1px solid #edf0f3;
}

.analytics-odds-buckets > div:last-child {
  border-right: 0;
}

.analytics-odds-buckets span,
.analytics-odds-buckets b,
.analytics-odds-buckets em {
  display: block;
}

.analytics-odds-buckets span {
  color: #9a3412;
  font-size: 9px;
  font-weight: 900;
}

.analytics-odds-buckets b {
  margin-top: 4px;
  color: #202124;
  font-size: 12px;
}

.analytics-odds-buckets em {
  margin-top: 4px;
  color: #737373;
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
}

.analytics-odds-buckets .is-insufficient {
  background: #fafafa;
}

.analytics-odds-buckets .is-insufficient b,
.analytics-odds-buckets .is-insufficient em {
  color: #a3a3a3;
}

.analytics-benchmark-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.analytics-benchmark-grid > div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #edf0f3;
}

.analytics-benchmark-grid > div:last-child {
  border-right: 0;
}

.analytics-benchmark-grid span,
.analytics-benchmark-grid b,
.analytics-benchmark-grid strong,
.analytics-benchmark-grid em {
  display: block;
}

.analytics-benchmark-grid span {
  color: #737373;
  font-size: 10px;
  font-weight: 800;
}

.analytics-benchmark-grid b {
  margin-top: 5px;
  color: #202124;
  font-size: 14px;
}

.analytics-benchmark-grid strong {
  margin-top: 4px;
  color: #b45309;
  font-size: 10px;
}

.analytics-benchmark-grid em {
  margin-top: 4px;
  color: #737373;
  font-size: 9px;
  font-style: normal;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .desktop-surface-nav {
    display: none;
  }

  .mobile-bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 6px;
    border-radius: 18px;
  }

  .mobile-bottom-nav button {
    border-radius: 12px;
    padding: 8px 2px;
  }

  .mobile-bottom-nav span {
    font-size: 13px;
  }

  .mobile-bottom-nav em {
    font-size: 9px;
  }

  body[data-active-mobile-view="data"] .final-map-card,
  body[data-active-mobile-view="data"] .today-panel,
  body[data-active-mobile-view="data"] .daily-board-card,
  body[data-active-mobile-view="data"] .deep-analysis-card,
  body[data-active-mobile-view="data"] .betting-card,
  body[data-active-mobile-view="data"] .master-model-card,
  body[data-active-mobile-view="data"] .learning-model-card,
  body[data-active-mobile-view="data"] .mystic-card,
  body[data-active-mobile-view="data"] .ai-card,
  body[data-active-mobile-view="data"] .path-card,
  body[data-active-mobile-view="data"] .score-card,
  body[data-active-mobile-view="data"] .factor-card,
  body[data-active-mobile-view="data"] .market-card,
  body[data-active-mobile-view="data"] .weather-card,
  body[data-active-mobile-view="data"] .news-card,
  body[data-active-mobile-view="data"] .result-card,
  body[data-active-mobile-view="data"] .history-card {
    display: none !important;
  }

  body[data-active-mobile-view="data"] .analytics-card {
    display: block !important;
  }

  body[data-active-mobile-view="review"] .today-panel {
    display: none !important;
  }

  .history-card {
    display: none !important;
  }

  .result-card,
  .analytics-card {
    padding: 14px;
  }

  .review-subnav {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-bottom: 10px;
  }

  .analytics-section > header {
    align-items: flex-start;
    padding: 12px;
  }

  .analytics-section > header b {
    font-size: 15px;
  }

  .analytics-section > header em {
    max-width: 42%;
  }

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

  .analytics-kpi-grid > div:nth-child(3n) {
    border-right: 1px solid #edf0f3;
  }

  .analytics-kpi-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .analytics-kpi-grid > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid #edf0f3;
  }

  .analytics-kpi-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .analytics-kpi-grid b {
    font-size: 20px;
  }

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

  .analytics-evidence-grid > div {
    border-bottom: 1px solid #edf0f3;
  }

  .analytics-evidence-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .analytics-evidence-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .analytics-decision-head {
    display: none;
  }

  .analytics-decision-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 0;
  }

  .analytics-decision-row > div {
    padding: 8px 12px;
  }

  .analytics-decision-row > div:last-child {
    grid-column: 1 / 3;
    padding-top: 4px;
  }

  .analytics-play-name {
    grid-column: 1 / 3;
    border-bottom: 1px solid #f3f4f6;
  }

  .analytics-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .analytics-row em {
    grid-column: 2 / 4;
  }

  .analytics-chain-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .analytics-chain-grid > div {
    border-right: 0;
    border-bottom: 1px solid #edf0f3;
  }

  .analytics-chain-grid > div:last-child {
    border-bottom: 0;
  }

  .analytics-system-details > summary {
    align-items: flex-start;
    padding: 12px;
  }

  .analytics-system-details > summary em {
    max-width: 45%;
  }

  .analytics-internal-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .analytics-internal-board > span {
    border-right: 0;
    border-bottom: 1px solid #edf0f3;
  }

  .analytics-internal-board > span:last-child {
    border-bottom: 0;
  }

  .analytics-command-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .analytics-command-grid > div {
    border-right: 0;
    border-bottom: 1px solid #f3e8dc;
  }

  .analytics-command-grid > div:last-child {
    border-bottom: 0;
  }

  .analytics-command-grid b {
    font-size: 15px;
  }

  .analytics-opportunity-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .analytics-opportunity-metrics {
    grid-column: 2 / 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .analytics-odds-league-head {
    border-right: 0;
    border-bottom: 1px solid #edf0f3;
  }

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

  .analytics-odds-buckets > div {
    border-bottom: 1px solid #edf0f3;
  }

  .analytics-odds-buckets > div:nth-child(2n) {
    border-right: 0;
  }

  .analytics-odds-buckets > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .analytics-benchmark-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .analytics-benchmark-grid > div {
    border-right: 0;
    border-bottom: 1px solid #edf0f3;
  }

  .analytics-benchmark-grid > div:last-child {
    border-bottom: 0;
  }

  .daily-plan-card {
    border-radius: 8px;
    box-shadow: none;
  }

  .daily-plan-metrics span:nth-child(n + 5) {
    display: none;
  }
}

/* Match evidence: readable on phone and desktop. */
.match-evidence-panel { margin-top: 16px; }
.match-evidence-panel h3 { margin: 18px 0 10px; }
.match-evidence-panel p { margin: 8px 0; line-height: 1.6; font-size: 13px; }
.match-evidence-panel small { display: block; line-height: 1.6; color: #60646c; font-size: 12px; }
.match-evidence-sides { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.evidence-side { min-width: 0; padding: 14px; border: 1px solid #e1e7ef; border-radius: 14px; background: #fff; }
.evidence-side h4 { margin: 0 0 8px; font-size: 15px; }
.evidence-metrics { display: grid; gap: 7px; }
.evidence-metrics span { display:flex; gap: 8px; justify-content: space-between; padding: 8px; background:#f6f8fb; border-radius:8px; font-size:12px; }
.evidence-metrics b { white-space:nowrap; }
.evidence-missing { background:#fff6e7; padding:10px 12px; border-radius:10px; color:#805516; }
.match-evidence-panel summary { cursor:pointer; padding:12px 0; color:#1765a8; font-size:13px; }
.evidence-table-wrap { max-width:100%; overflow-x:auto; }
.evidence-table-wrap table { width:100%; border-collapse:collapse; font-size:12px; }
.evidence-table-wrap th,.evidence-table-wrap td { text-align:left; vertical-align:top; padding:8px 6px; border-bottom:1px solid #edf0f4; overflow-wrap:anywhere; }
.evidence-source-link { display:inline-block; margin-top:8px; font-size:12px; color:#1765a8; }
@media(max-width:700px){ .match-evidence-sides { grid-template-columns:minmax(0,1fr); } .evidence-side { padding:12px; } }

.auto-learning-panel p { line-height:1.65; font-size:13px; overflow-wrap:anywhere; }
.auto-learning-panel h3 { margin:0 0 12px; }
.auto-learning-panel summary { cursor:pointer; padding:12px 0; color:#1765a8; font-size:13px; }
.auto-learning-panel small { display:block; color:#667085; line-height:1.6; }
.auto-learning-counters { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0; }
.auto-learning-counters span { background:#f6f8fb;border:1px solid #e4e9f2;border-radius:12px;padding:12px;font-size:12px; }
.auto-learning-counters b { display:block;font-size:20px;margin-top:7px;color:#1765a8; }
@media(max-width:700px){.auto-learning-counters{grid-template-columns:repeat(2,minmax(0,1fr));}}

.loop-health-panel{border:1px solid #b6d7c7;border-radius:10px;background:#f1faf5;padding:12px;margin:12px 0;}
.loop-health-panel.status-blocked{border-color:#e3a5a5;background:#fff1f1;}
.loop-health-panel.status-attention{border-color:#e7c28c;background:#fff7e9;}
.loop-quarantine td,.loop-feature-diagnostics td,.loop-error-diagnostics td{overflow-wrap:anywhere;min-width:65px;}
