* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #eee; color: #111; }
.toolbar {
  position: sticky; top: 0; display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #222; color: #fff;
}
.toolbar button { font: inherit; font-weight: 600; padding: 8px 20px; border-radius: 6px; border: 0; background: #f5c542; cursor: pointer; }
.sheet {
  width: 7.5in; max-width: 100%; margin: 16px auto; padding: 0.4in; background: #fff;
  break-after: page; page-break-after: always; text-align: center;
}
.sheet h1 { margin: 0 0 0.2in; font-size: 48pt; letter-spacing: 0.15em; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { font-size: 30pt; padding: 8px 0; background: #111; color: #fff; border: 2px solid #111; }
td { border: 2px solid #111; aspect-ratio: 1; font-size: 34pt; font-weight: 700; }
td.free { font-size: 18pt; background: #ddd; }
.num { margin: 0.15in 0 0; color: #666; font-size: 10pt; }
@media print {
  @page { margin: 0.4in; }
  body { background: #fff; }
  .toolbar { display: none; }
  .sheet { margin: 0; padding: 0; width: auto; }
  th, td.free { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
