.oddsmath-body {
  background:
    radial-gradient(circle at top left, rgba(24, 120, 97, 0.18), transparent 36%),
    radial-gradient(circle at top right, rgba(211, 143, 41, 0.18), transparent 30%),
    linear-gradient(180deg, #f6f3ea 0%, #eef2f0 100%);
}

.oddsmath-main {
  min-height: 100vh;
}

.oddsmath-hero {
  padding: 4.2rem 0 1.35rem;
}

.oddsmath-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.oddsmath-kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: #1f7764;
  font-weight: 700;
}

.oddsmath-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
}

.oddsmath-copy {
  max-width: 64ch;
  margin: 0.75rem 0 0;
  color: #52605d;
  font-size: 0.92rem;
}

.oddsmath-hero-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.oddsmath-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.8rem;
}

.oddsmath-status-badge[data-tone="ok"] {
  color: #0f6c57;
  border-color: rgba(15, 108, 87, 0.18);
}

.oddsmath-status-badge[data-tone="warn"] {
  color: #9a621c;
  border-color: rgba(154, 98, 28, 0.18);
}

.oddsmath-status-badge[data-tone="error"] {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
}

.oddsmath-summary-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.oddsmath-summary-card {
  padding: 0.9rem 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.oddsmath-summary-card span {
  display: block;
  color: #5b6663;
  font-size: 0.74rem;
}

.oddsmath-summary-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.2rem;
}

.oddsmath-summary-card.highlight {
  background: linear-gradient(135deg, #0f766e 0%, #14532d 100%);
  color: #fff;
}

.oddsmath-summary-card.highlight span {
  color: rgba(255, 255, 255, 0.72);
}

.oddsmath-summary-card.wide {
  grid-column: 1 / -1;
}

.oddsmath-panel {
  padding-top: 0.2rem;
  padding-bottom: 2rem;
}

.oddsmath-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.oddsmath-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.oddsmath-panel-head p {
  margin: 0.28rem 0 0;
  color: #5d6a67;
  font-size: 0.8rem;
}

.oddsmath-warning {
  max-width: 460px;
  padding: 0.7rem 0.82rem;
  border-radius: 15px;
  background: rgba(217, 119, 6, 0.1);
  color: #9a6700;
  font-weight: 600;
  font-size: 0.74rem;
}

.oddsmath-issues,
.oddsmath-feed-grid,
.oddsmath-log-grid {
  display: grid;
  gap: 0.85rem;
}

.oddsmath-issues {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 0.9rem;
}

.oddsmath-feed-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

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

.oddsmath-issue-card,
.oddsmath-feed-card,
.oddsmath-log-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.oddsmath-issue-card {
  padding: 0.95rem 1rem;
}

.oddsmath-issue-card strong,
.oddsmath-feed-card h3,
.oddsmath-log-head h3 {
  margin: 0;
}

.oddsmath-issue-card span,
.oddsmath-log-head p,
.feed-health-copy,
.feed-detail small,
.feed-note {
  color: #556360;
}

.oddsmath-issue-card--ok {
  border-color: rgba(15, 108, 87, 0.12);
  background: rgba(242, 251, 248, 0.92);
}

.oddsmath-issue-card--warn {
  border-color: rgba(154, 98, 28, 0.16);
  background: rgba(255, 248, 235, 0.92);
}

.oddsmath-issue-card--error {
  border-color: rgba(180, 35, 24, 0.16);
  background: rgba(254, 242, 242, 0.92);
}

.oddsmath-feed-card,
.oddsmath-log-card {
  padding: 1rem;
}

.oddsmath-feed-card[data-tone="warn"] {
  border-color: rgba(154, 98, 28, 0.18);
}

.oddsmath-feed-card[data-tone="error"] {
  border-color: rgba(180, 35, 24, 0.18);
}

.feed-head,
.oddsmath-log-head {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
}

.feed-kicker {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  color: #5f6a67;
}

.feed-health-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.feed-health-pill[data-tone="ok"] {
  color: #0f6c57;
  background: rgba(232, 247, 242, 0.88);
}

.feed-health-pill[data-tone="warn"] {
  color: #9a621c;
  background: rgba(255, 244, 227, 0.9);
}

.feed-health-pill[data-tone="error"] {
  color: #b42318;
  background: rgba(254, 242, 242, 0.92);
}

.feed-health-copy {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.feed-metrics,
.feed-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.feed-metric,
.feed-detail {
  padding: 0.72rem 0.78rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.feed-metric span,
.feed-detail span {
  display: block;
  font-size: 0.67rem;
  color: #5f6a67;
}

.feed-metric strong,
.feed-detail strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.86rem;
  line-height: 1.3;
}

.feed-detail small {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.68rem;
  line-height: 1.35;
}

.feed-note {
  margin-top: 0.7rem;
  padding: 0.72rem 0.78rem;
  border-radius: 14px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.feed-note--warn {
  background: rgba(255, 248, 235, 0.92);
  color: #9a6700;
}

.feed-note--error {
  background: rgba(254, 242, 242, 0.92);
  color: #b42318;
}

.oddsmath-log-head p {
  margin: 0.25rem 0 0;
  font-size: 0.74rem;
}

.oddsmath-log-lines {
  margin-top: 0.8rem;
  min-height: 240px;
}

.oddsmath-log-list {
  display: grid;
  gap: 0.35rem;
  max-height: 480px;
  overflow: auto;
}

.oddsmath-log-line {
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  background: #13211f;
  color: #d8ebe6;
  font-size: 0.72rem;
  line-height: 1.4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.oddsmath-log-line--warn {
  background: #3b2a0e;
  color: #ffe7bb;
}

.oddsmath-log-line--error {
  background: #3f1515;
  color: #ffd2d2;
}

.oddsmath-empty-state {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.oddsmath-empty-state strong {
  font-size: 0.95rem;
}

.oddsmath-empty-state span {
  color: #5d6a67;
  max-width: 48ch;
  font-size: 0.8rem;
}

.oddsmath-empty-state.compact {
  padding: 1.2rem 0.6rem;
}

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

  .oddsmath-panel-head {
    flex-direction: column;
  }

  .oddsmath-log-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .oddsmath-hero {
    padding-top: 3.2rem;
    padding-bottom: 1rem;
  }

  .oddsmath-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .oddsmath-hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .oddsmath-copy {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .oddsmath-summary-panel {
    gap: 0.55rem;
  }

  .oddsmath-summary-card {
    padding: 0.74rem 0.78rem;
    border-radius: 16px;
  }

  .oddsmath-summary-card span {
    font-size: 0.66rem;
  }

  .oddsmath-summary-card strong {
    font-size: 1rem;
  }

  .oddsmath-panel-head h2 {
    font-size: 0.96rem;
  }

  .oddsmath-panel-head p,
  .oddsmath-warning {
    font-size: 0.72rem;
  }

  .oddsmath-feed-card,
  .oddsmath-log-card,
  .oddsmath-issue-card {
    padding: 0.82rem;
  }

  .feed-metrics,
  .feed-detail-grid {
    grid-template-columns: 1fr;
  }

  .feed-metric strong,
  .feed-detail strong {
    font-size: 0.8rem;
  }

  .oddsmath-log-line {
    font-size: 0.66rem;
  }
}
