body {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background: #f7f6f2;
  color: #1d1d1b;
}

main {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.6rem;
  margin: 0.2em 0 0;
}

h2 {
  font-size: 1.15rem;
  margin: 1.2em 0 0.4em;
}

a {
  color: #1d4e89;
}

.days {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}

.disabled {
  color: #9a9a92;
}

.note {
  color: #7a4b00;
}

.status {
  min-height: 1.5em;
  font-weight: 600;
}

.pairs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .pairs {
    grid-template-columns: 1fr 1fr;
  }
}

.table-wrap {
  overflow-x: auto;
}

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

caption {
  text-align: left;
  font-weight: 600;
  padding: 4px 0;
}

th,
td {
  border: 1px solid #cfccc2;
  padding: 0;
  text-align: center;
  font-size: 0.8rem;
}

th {
  background: #eeece4;
  font-weight: 600;
  padding: 4px 3px;
  overflow-wrap: anywhere;
}

th[scope="row"] {
  text-align: left;
  white-space: nowrap;
}

th:first-child {
  white-space: nowrap;
}

.cell {
  display: block;
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: #fff;
  font: inherit;
  font-size: 1.2rem;
  color: #1d1d1b;
  cursor: pointer;
}

.cell.tick {
  background: #d8efd9;
  color: #1b5e20;
}

.cell.cross {
  color: #8a2c2c;
}

.buttons {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}

.buttons button {
  min-height: 44px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  border: 1px solid #1d4e89;
  border-radius: 6px;
  background: #1d4e89;
  color: #fff;
  cursor: pointer;
}

.buttons button.secondary {
  background: #fff;
  color: #1d4e89;
}

ol.clues li {
  margin-bottom: 6px;
}

.progress {
  margin-top: 8px;
}

ol.archive {
  padding-left: 1.4em;
}
