body {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
  background: linear-gradient(180deg, #f5f7fb 0%, #e8eff5 100%);
  color: #16202a;
}
.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px;
}
.hero, .section, .card, .team-card {
  background: #ffffff;
  border: 1px solid #d6dee6;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.hero {
  padding: 24px 26px;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 8px 0;
}
.hero p, .section-note, .meta, .small-note {
  color: #5f6b77;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.nav a, .link-button {
  text-decoration: none;
  color: #12315a;
  background: #edf4fb;
  border: 1px solid #d6dee6;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}
.summary-grid, .card-grid, .team-grid {
  display: grid;
  gap: 14px;
}
.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 18px;
}
.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card, .team-card {
  padding: 16px 18px;
}
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: #607080;
}
.card-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}
.section {
  padding: 18px;
  margin-bottom: 18px;
}
.section h2, .section h3 {
  margin-top: 0;
}
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pill-valid, .status-valid {
  background: #dcfce7;
  color: #166534;
}
.pill-warning, .status-warning {
  background: #fff7ed;
  color: #9a3412;
}
.pill-illegal, .status-illegal, .pill-missing {
  background: #fee2e2;
  color: #991b1b;
}
.pill-info {
  background: #e0f2fe;
  color: #075985;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px 0;
}
.filter-bar label {
  font-size: 13px;
  color: #52606d;
}
.filter-bar select {
  display: block;
  min-width: 180px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ccd5df;
  background: #ffffff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border: 1px solid #d6dee6;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #eef4f8;
}
tr:nth-child(even) td {
  background: #fbfdff;
}
tr.row-warning td {
  background: #fff7ed;
}
tr.row-illegal td, tr.row-error td {
  background: #fef2f2;
}
.warning-list {
  margin: 0;
  padding-left: 18px;
}
.empty {
  color: #667480;
  font-style: italic;
}
a {
  color: #1d4ed8;
}
.simulator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}
.simulator-main,
.simulator-sidebar,
.simulator-panel,
.summary-block {
  background: #ffffff;
  border: 1px solid #d6dee6;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.simulator-main,
.simulator-sidebar {
  padding: 18px;
}
.simulator-sidebar {
  position: sticky;
  top: 18px;
}
.simulator-panel {
  padding: 16px;
  margin-bottom: 16px;
}
.simulator-actions,
.simulator-export-actions,
.scenario-grid {
  display: grid;
  gap: 10px;
}
.simulator-actions {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.simulator-export-actions {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.scenario-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.scenario-slot label,
.simulator-field label,
.acknowledgement-box label {
  display: block;
  font-size: 13px;
  color: #52606d;
  margin-bottom: 6px;
}
.scenario-slot select,
.simulator-field select,
.simulator-panel button {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ccd5df;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
}
.simulator-panel button {
  cursor: pointer;
  background: #edf4fb;
  color: #12315a;
  font-weight: 600;
}
.simulator-panel button:hover {
  background: #e0edf9;
}
.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.status-badge.valid {
  background: #dcfce7;
  color: #166534;
}
.status-badge.warning {
  background: #fff7ed;
  color: #9a3412;
}
.status-badge.illegal {
  background: #fee2e2;
  color: #991b1b;
}
.summary-block {
  padding: 14px 16px;
}
.summary-block + .summary-block {
  margin-top: 12px;
}
.summary-block h3,
.simulator-panel h2,
.simulator-panel h3 {
  margin-top: 0;
}
.summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.summary-metric {
  border: 1px solid #e3ebf3;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdff;
}
.summary-metric .metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #607080;
}
.summary-metric .metric-value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}
.summary-metric .metric-detail {
  margin-top: 4px;
  font-size: 12px;
  color: #607080;
}
.keeper-check-cell {
  text-align: center;
  width: 72px;
}
.keeper-checkbox {
  width: 18px;
  height: 18px;
}
.selected-player-row td {
  background: #eff6ff !important;
}
.illegal-player-row td {
  background: #fff7ed !important;
}
.acknowledgement-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
}
.acknowledgement-box.hidden,
.bird-rights-panel.hidden {
  display: none;
}
.acknowledgement-box input {
  margin-right: 8px;
}
.issues-list {
  margin: 0;
  padding-left: 18px;
}
.issues-list li + li {
  margin-top: 6px;
}
.scenario-empty {
  color: #667480;
  font-style: italic;
}
.team-page-grid {
  display: grid;
  gap: 18px;
}
.team-page-grid .section {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .simulator-layout {
    grid-template-columns: 1fr;
  }
  .simulator-sidebar {
    position: static;
  }
}
@media (max-width: 640px) {
  .page {
    padding: 16px;
  }
  .summary-metrics {
    grid-template-columns: 1fr;
  }
  .simulator-actions,
  .simulator-export-actions,
  .scenario-grid {
    grid-template-columns: 1fr;
  }
}
