:root {
  --ink: #101820;
  --muted: #5f6871;
  --line: #26313b;
  --soft-line: #cfd3d5;
  --paper: #ffffff;
  --field: #f6f6f4;
  --field-strong: #ececea;
  --pink: #e5004f;
  --red: #ff3b30;
  --orange: #ff8a00;
  --yellow: #f6b600;
  --green: #2eb84f;
  --teal: #00a89d;
  --blue: #0878f9;
  --purple: #6720c6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #e9e6df;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  padding: 24px 0;
}

.sheet {
  width: 11in;
  height: 8.5in;
  margin: 0 auto 24px;
  padding: 0.31in 0.42in 0.22in;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 16px 42px rgb(16 24 32 / 14%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.96in;
  gap: 0.2in;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1.4px solid var(--ink);
}

.kicker-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 6.4pt;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker-row .divider {
  width: 18px;
  height: 1px;
  background: var(--ink);
}

h1 {
  margin: 0;
  max-width: 8.7in;
  font-size: 23pt;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 9in;
  margin: 4px 0 0;
  font-size: 7.35pt;
  line-height: 1.28;
  color: #303942;
}

.orbit-mark {
  position: relative;
  width: 0.86in;
  height: 0.68in;
  justify-self: end;
}

.orbit-mark .number {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 0.42in;
  height: 0.42in;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 13pt;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dot-color, var(--pink));
}

.dot.pink { --dot-color: var(--pink); }
.dot.red { --dot-color: var(--red); }
.dot.orange { --dot-color: var(--orange); }
.dot.yellow { --dot-color: var(--yellow); }
.dot.green { --dot-color: var(--green); }
.dot.teal { --dot-color: var(--teal); }
.dot.blue { --dot-color: var(--blue); }
.dot.purple { --dot-color: var(--purple); }

.orbit-mark .dot {
  position: absolute;
}

.orbit-mark .d1 { left: 5px; top: 25px; }
.orbit-mark .d2 { left: 13px; top: 7px; }
.orbit-mark .d3 { left: 31px; top: 1px; }
.orbit-mark .d4 { right: 12px; top: 8px; }
.orbit-mark .d5 { right: 3px; top: 28px; }
.orbit-mark .d6 { right: 15px; bottom: 5px; }
.orbit-mark .d7 { left: 31px; bottom: 0; }
.orbit-mark .d8 { left: 12px; bottom: 7px; }

.content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.use-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.12in;
}

.brief {
  min-height: 25px;
  padding: 4px 7px;
  border: 1px solid var(--soft-line);
  background: #fbfbfa;
  font-size: 6.7pt;
  line-height: 1.24;
}

.brief strong {
  margin-right: 4px;
  font-size: 6pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief.use strong { color: var(--purple); }
.brief.output strong { color: var(--pink); }

.section {
  min-height: 0;
}

.section.grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section.grow > .grid-table {
  flex: 1;
  grid-template-rows: min-content;
}

.section-heading {
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.section-heading .index {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1.35px solid var(--ink);
  border-radius: 50%;
  font-size: 6.2pt;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: 8.5pt;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.dot-rail {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-left: 1px;
}

.dot-rail .dot {
  width: 4px;
  height: 4px;
}

.section-heading::after {
  content: "";
  height: 1px;
  min-width: 18px;
  flex: 1;
  margin-left: 3px;
  background: var(--soft-line);
}

.form-grid,
.grid-table {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.form-grid > *,
.grid-table > * {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.field {
  min-height: 32px;
  padding: 4px 6px;
  background: var(--field);
  font-size: 6.5pt;
  line-height: 1.23;
}

.field.white {
  background: var(--paper);
}

.field strong,
.label {
  font-weight: 800;
}

.field strong {
  display: block;
  margin-bottom: 2px;
  font-size: 6.5pt;
}

.prompt {
  color: var(--muted);
  font-size: 5.8pt;
  font-weight: 400;
}

.write-space,
[contenteditable="true"] {
  cursor: text;
  outline: none;
}

[contenteditable="true"]:focus {
  background: #fffbea !important;
  box-shadow: inset 0 0 0 1.5px var(--yellow);
}

[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: #93989d;
  font-style: italic;
}

.h-24 { min-height: 24px; }
.h-25 { min-height: 25px; }
.h-27 { min-height: 27px; }
.h-28 { min-height: 28px; }
.h-29 { min-height: 29px; }
.h-30 { min-height: 30px; }
.h-32 { min-height: 32px; }
.h-34 { min-height: 34px; }
.h-36 { min-height: 36px; }
.h-40 { min-height: 40px; }
.h-44 { min-height: 44px; }
.h-48 { min-height: 48px; }
.h-52 { min-height: 52px; }
.h-58 { min-height: 58px; }
.h-64 { min-height: 64px; }

.th {
  min-height: 23px;
  padding: 4px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--field-strong);
  font-size: 5.8pt;
  line-height: 1.12;
  font-weight: 900;
  text-align: center;
}

.th.dark {
  color: #fff;
  background: var(--ink);
}

.cell {
  min-height: 26px;
  padding: 4px 5px;
  background: var(--paper);
  font-size: 6.1pt;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cell.soft {
  background: var(--field);
}

.cell.center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cell.number {
  color: var(--ink);
  font-weight: 900;
}

.example {
  background: #fffaf1;
}

.starter {
  color: var(--muted);
  font-style: italic;
}

.check-strip {
  min-height: 22px;
  padding: 4px 7px;
  border: 1px solid var(--soft-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  background: #fbfbfa;
  font-size: 5.9pt;
  line-height: 1.1;
}

.check-strip strong {
  font-size: 5.7pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

input[type="checkbox"] {
  width: 9px;
  height: 9px;
  margin: 0;
  accent-color: var(--pink);
}

.statement {
  min-height: 38px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  background:
    linear-gradient(to bottom, transparent 21px, #dedfdd 22px, transparent 23px),
    var(--field);
  background-size: 100% 23px;
  font-size: 6.5pt;
  line-height: 1.3;
}

.red-line {
  border-left: 4px solid var(--pink);
}

.status-key {
  margin-top: 2px;
  color: var(--muted);
  font-size: 5.4pt;
  text-align: right;
}

.sheet-footer {
  min-height: 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: #5f6871;
  font-size: 5.4pt;
}

.footer-dots {
  display: flex;
  gap: 3px;
  justify-self: center;
}

.footer-dots .dot {
  width: 4px;
  height: 4px;
}

.footer-right {
  justify-self: end;
}

.tight .cell {
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 5.7pt;
}

.tight .th {
  min-height: 21px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 5.4pt;
}

.micro {
  font-size: 5.3pt;
  line-height: 1.16;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@page {
  size: Letter landscape;
  margin: 0;
}

@media print {
  html,
  body {
    width: 11in;
    height: 8.5in;
    background: #fff;
  }

  body {
    padding: 0;
  }

  .sheet {
    margin: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}
