:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f4f6f9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 960px;
}

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

header,
.strategy-head,
footer,
.candidate-top,
.section-head,
.history-head,
.outcome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #237a55;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.02em;
}

.subtitle {
  margin: 8px 0 0;
  color: #687386;
  font-size: 14px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.history-button {
  padding: 9px 14px;
  border: 1px solid #cdd5df;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.history-button:hover,
.history-button.active {
  border-color: #91b4ff;
  background: #edf4ff;
  color: #175cd3;
}

.connection {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #dce2ea;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2a93b;
}

.connection.online .dot {
  background: #22a06b;
}

.connection.offline .dot {
  background: #d92d20;
}

.notice {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid #f1c1bd;
  border-radius: 10px;
  background: #fff3f2;
  color: #a62b22;
  font-size: 14px;
}

.outcomes,
.history-view {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #dfe4eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25, 34, 51, .04);
}

.section-kicker {
  margin: 0 0 4px;
  color: #237a55;
  font-size: 12px;
  font-weight: 700;
}

.section-head h2,
.history-head h2 {
  margin: 0;
}

.section-note,
.history-hint {
  color: #7c8798;
  font-size: 12px;
}

.history-hint {
  margin: 6px 0 0;
}

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

.outcome {
  padding: 13px 14px;
  border: 1px solid #e4e8ef;
  border-radius: 11px;
  background: #fbfcfd;
}

.outcome.filled {
  border-color: #a9dfc2;
  background: #f1fbf6;
}

.outcome.missed {
  border-color: #e2e5ea;
  background: #f8f9fb;
}

.outcome-strategy,
.outcome-detail {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
}

.outcome-title {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.history-head label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #667085;
  font-size: 13px;
}

.history-head select {
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid #cfd6df;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font: inherit;
}

.history-events {
  margin-top: 16px;
}

.history-grid {
  margin-top: 16px;
}

.history-empty {
  padding: 34px 0 18px;
  color: #8b95a5;
  text-align: center;
}

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

.strategy {
  min-height: 300px;
  padding: 20px;
  border: 1px solid #dfe4eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25, 34, 51, .055);
}

h2 {
  margin: 0;
  font-size: 18px;
}

.meta {
  margin: 5px 0 0;
  color: #7c8798;
  font-size: 12px;
}

.health {
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf8f2;
  color: #18794e;
  font-size: 12px;
  font-weight: 650;
}

.health.stale {
  background: #fff4e5;
  color: #a15c00;
}

.health.error {
  background: #fff0ee;
  color: #b42318;
}

.headline {
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 11px;
  background: #f3f5f8;
  color: #475467;
  font-size: 16px;
  font-weight: 720;
}

.headline.ready {
  background: #fff3de;
  color: #9a4f00;
}

.headline.filled {
  background: #eaf8f0;
  color: #147a4b;
}

.headline.watch {
  background: #edf4ff;
  color: #175cd3;
}

.headline.error {
  background: #fff0ee;
  color: #b42318;
}

.candidate {
  padding: 13px 0;
  border-top: 1px solid #edf0f4;
}

.candidate:first-child {
  border-top: 0;
}

.candidate-name {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.candidate-name strong {
  font-size: 16px;
}

.code,
.time {
  color: #7c8798;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 700;
}

.tag.ready {
  background: #fff0d5;
  color: #a15c00;
}

.tag.filled {
  background: #eaf8f0;
  color: #147a4b;
}

.tag.missed {
  background: #f2f4f7;
  color: #667085;
}

.tag.watch {
  background: #edf4ff;
  color: #175cd3;
}

.candidate-detail {
  margin: 8px 0 0;
  color: #5d6879;
  font-size: 13px;
  line-height: 1.45;
}

.facts {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  color: #344054;
  font-size: 13px;
}

.empty {
  padding: 28px 0;
  color: #8b95a5;
  text-align: center;
  font-size: 14px;
}

footer {
  margin-top: 20px;
  color: #8a94a4;
  font-size: 12px;
}

@media (max-width: 1100px) {
  body {
    min-width: 760px;
  }

  main {
    width: calc(100% - 36px);
  }

  .outcome-list {
    grid-template-columns: 1fr;
  }
}
