body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
  color: #102033;
}

.container {
  margin: 20px;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}

h1 {
  margin-top: 0;
  font-size: 34px;
}

.toolbar {
  margin-bottom: 20px;
}

input {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccd4dd;
  border-radius: 6px;
}

button {
  font-size: 15px;
}

.btn {
  padding: 9px 15px;
  border-radius: 6px;
  border: 1px solid #ccd4dd;
  cursor: pointer;
  background: white;
}

.btn.primary {
  background: #2367d1;
  color: white;
  border-color: #2367d1;
}

.btn.secondary {
  background: #f8fafc;
}

.btn.check {
  background: #d94141;
  color: white;
  border-color: #d94141;
  font-weight: bold;
}

.btn.uncheck {
  background: #ffffff;
  color: #15733a;
  border-color: #15733a;
  font-weight: bold;
}

.top-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.race-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #b9d4ff;
  background: #f3f8ff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.race-header span {
  display: block;
  color: #2367d1;
  font-size: 13px;
  margin-bottom: 4px;
}

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

.summary-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e1e5eb;
}

.summary-card span {
  display: block;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
}

.summary-card b {
  display: block;
  font-size: 30px;
  margin: 8px 0;
}

.summary-card.green {
  background: #ecf9f0;
  border-color: #cae9d4;
  color: #13733a;
}

.summary-card.red {
  background: #fff0f0;
  border-color: #f1cccc;
  color: #bf2d2d;
}

.summary-card.center {
  text-align: center;
}

.bar {
  background: #e5e8ec;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}

.bar div {
  height: 100%;
  background: #33a852;
}

.filter-box {
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-box input {
  flex: 1;
}

.section {
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.section h2 {
  margin-top: 0;
}

.todo-section h2 {
  color: #d94141;
}

.done-section h2 {
  color: #15733a;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 11px 8px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.todo-row {
  background: #fff3f3;
}

.checked-row {
  background: #effaf2;
}

.empty {
  padding: 22px;
  background: #effaf2;
  border: 1px solid #cae9d4;
  border-radius: 8px;
  text-align: center;
  color: #15733a;
}

.race-table td,
.race-table th {
  padding: 14px 8px;
}