:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  color: #17212b;
  background: #f3f6f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

body.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(42, 171, 164, 0.22), transparent 34rem),
    linear-gradient(135deg, #edf6f4 0%, #f8fbfa 50%, #e9f2f0 100%);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.login-main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: min(100% - 32px, 460px);
  padding: 32px 0;
}

.login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d6e3df;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(18, 47, 42, 0.16);
  padding: 38px;
  text-align: center;
}

.login-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 16px;
}

.login-card h1 {
  font-size: 24px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #344844;
  font-size: 14px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 44px;
  border-color: #bdd0ca;
  border-radius: 8px;
}

.login-form button {
  width: 100%;
  margin-top: 6px;
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 13px;
  text-align: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid #1c463e;
  padding-bottom: 22px;
}

.eyebrow {
  color: #327168;
  font-size: 13px;
  margin: 0 0 7px;
}

h1 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}

button {
  border: 0;
  border-radius: 5px;
  background: #0a6657;
  color: #fff;
  min-height: 42px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:hover {
  background: #084f44;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status-band {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #d3ddd9;
}

.status-line,
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.status-line button {
  flex: 0 0 auto;
}

.toolbar {
  padding: 16px 0;
  border-bottom: 1px solid #d3ddd9;
}

.view-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 0 0;
}

.tab {
  min-height: 36px;
  background: transparent;
  color: #37524d;
  border: 1px solid #b9c8c4;
}

.tab:hover,
.tab.is-active {
  background: #0a6657;
  border-color: #0a6657;
  color: #fff;
}

.single-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid #d3ddd9;
}

.single-summary h2 {
  margin: 0;
  font-size: 17px;
}

.single-summary .outcome-line {
  color: #1d302d;
  font-weight: 700;
}

.single-summary .alerts {
  min-height: 0;
}

.single-details {
  flex-basis: 100%;
  width: 100%;
}

.muted {
  color: #63716f;
  font-size: 13px;
}

.toolbar label {
  font-size: 14px;
  font-weight: 700;
}

input {
  height: 34px;
  width: 132px;
  padding: 6px 9px;
  border: 1px solid #aebdb8;
  border-radius: 4px;
  font: inherit;
}

.summary-list,
.odds-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.summary,
.odds-band {
  background: #fff;
  border: 1px solid #d6dfdc;
  border-radius: 6px;
  padding: 18px;
}

.summary-header,
.outcomes,
.totals,
.section-heading,
.odds-band header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.section-heading {
  padding: 22px 0 4px;
  border-bottom: 1px solid #d3ddd9;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.number {
  font-family: ui-monospace, monospace;
  font-size: 23px;
  font-weight: 800;
  color: #0a6657;
  margin-right: 12px;
}

.sample,
.totals {
  font-size: 13px;
  color: #53625f;
}

.totals {
  gap: 9px;
}

.outcomes {
  margin: 16px 0;
  justify-content: flex-start;
  gap: 46px;
}

.outcomes div {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #63716f;
}

.outcomes strong,
.odds-outcomes,
.odds-handicap-outcomes {
  color: #182724;
  font-size: 16px;
}

.odds-lines {
  display: grid;
  gap: 8px;
}

.odds-lines div {
  display: grid;
  gap: 4px;
}

.odds-lines span {
  color: #63716f;
  font-size: 13px;
}

.odds-label {
  font-size: 18px;
  font-weight: 800;
  color: #0a6657;
}

.odds-band {
  display: grid;
  gap: 12px;
}

.alerts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 1px;
}

.alert {
  background: #fff3d7;
  color: #734c09;
  border-left: 3px solid #d7951f;
  padding: 7px 9px;
  font-size: 13px;
}

.alert.missing {
  background: #e8f3f1;
  color: #155c51;
  border-color: #20766a;
}

details {
  margin-top: 16px;
  border-top: 1px solid #e1e8e5;
  padding-top: 12px;
}

summary {
  cursor: pointer;
  color: #245c54;
  font-size: 14px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 13px;
}

th {
  text-align: left;
  background: #edf3f0;
  color: #41534f;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid #e0e8e5;
}

.empty-state {
  padding: 64px 20px;
  text-align: center;
  color: #53625f;
}

.empty-state h2 {
  color: #24322f;
  font-size: 20px;
}

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }

  .topbar {
    align-items: flex-start;
  }

  .status-line button {
    padding: 0 12px;
  }

  .outcomes {
    gap: 22px;
  }

  .summary,
  .odds-band {
    padding: 14px;
  }
}
