body {
  background: #ffffff;
  font-family: 'Chicago', 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1rem;
}

.desktop {
  width: min(100%, 1100px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
}

.desktop .window {
  margin: 0;
  width: 100%;
}

.sidebar-stack {
  width: 330px;
  flex: 0 0 330px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-stack .window {
  min-width: 0;
}

.main-stack {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.window-body {
  padding-left: 15px;
}

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

.window-body table th,
.window-body table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #b5b5b5;
  text-align: left;
}

.window-body table th:last-child,
.window-body table td:last-child {
  text-align: right;
}

.history-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 10px;
}

.history-grid a,
.history-grid span {
  padding: 0.15rem 0.6rem;
  border: 1px solid #9b9b9b;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #000;
  background: #fff;
}

.history-grid span {
  color: #6b6b6b;
  background: #e0e0e0;
}

.history-grid .today {
  border-color: #0071bc;
  box-shadow: 0 0 0 2px rgba(0, 113, 188, 0.2);
}

.history-grid .yesterday {
  border-style: dashed;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 15px;
  padding-right: 5px;
  padding-bottom: 10px;
}

progress {
  width: 200px;
  height: 12px;
}

.correct {
  color: #007f00;
  font-weight: bold;
}

.incorrect {
  color: #a00000;
  font-weight: bold;
}

.spread-note {
  font-size: 0.85rem;
  color: #333;
  margin-top: 0.75rem;
}

.rankings-table th:nth-child(1),
.rankings-table td:nth-child(1) {
  text-align: right;
}

.stats-window .field-row {
  padding: 0 15px 15px 0;
}

.stats-window .field-row.stats-actions {
  justify-content: center;
  padding: 10px 0 15px 0;
}

.btn,
.btn-primary,
.title-bar button {
  border-width: 1px !important;
  padding-bottom: 1px;
  border-radius: 6px;
}
