:root {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background: #e9e9e5;
  --paper: #f8f8f5;
  --ink: #111;
  --muted: #666;
  --line: #c8c8c2;
  --accent: #1649ff;
  --soft: #ededE8;
}

* { box-sizing: border-box; }
html { background: #e9e9e5; }
body { margin: 0; color: var(--ink); background: #e9e9e5; }
a { color: inherit; }

.sheetShell {
  width: min(100% - 32px, 1060px);
  margin: 24px auto;
  padding: 44px 48px 54px;
  background: var(--paper);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .08);
}

.sheetNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
}

.sheetNav a { text-decoration: none; border-bottom: 1px solid currentColor; }
.sheetBrand { font-weight: 760; border: 0 !important; }

.sheetEyebrow,
.sheetMeta dt,
.sheetLabel,
.sheetStep,
.sheetFooter {
  font: 650 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .02em;
}

.sheetHeader { padding: 52px 0 38px; border-bottom: 1px solid var(--ink); }
.sheetEyebrow { margin: 0 0 20px; color: var(--accent); text-transform: uppercase; }
.sheetHeader h1 { max-width: 800px; margin: 0 0 22px; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.sheetIntro { max-width: 760px; margin: 0; font-size: 20px; line-height: 1.45; color: #333; }

.sheetMeta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}
.sheetMeta div { padding: 14px 18px 4px 0; border-right: 1px solid var(--line); }
.sheetMeta div + div { padding-left: 18px; }
.sheetMeta div:last-child { border-right: 0; }
.sheetMeta dt { color: var(--muted); }
.sheetMeta dd { margin: 7px 0 0; font-size: 14px; line-height: 1.4; }

.sheetSection { padding: 38px 0; border-bottom: 1px solid var(--ink); }
.sheetSectionHead { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 34px; margin-bottom: 22px; }
.sheetLabel { color: var(--accent); }
.sheetSection h2 { margin: 0; font-size: clamp(26px, 3.8vw, 44px); line-height: 1; letter-spacing: -.04em; }
.sheetSection > p { max-width: 760px; color: #444; line-height: 1.6; }

.checklist { border-top: 1px solid var(--ink); }
.checkRow {
  display: grid;
  grid-template-columns: 38px minmax(190px, .75fr) minmax(0, 1.25fr) 120px;
  gap: 18px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checkBox { width: 17px; height: 17px; margin-top: 2px; border: 1.5px solid var(--ink); }
.checkRow strong { font-size: 15px; }
.checkRow span { color: #494949; font-size: 14px; line-height: 1.45; }
.checkRow .owner { color: var(--muted); font: 650 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.gateGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.gateCard { min-height: 190px; padding: 18px 18px 22px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gateCard + .gateCard { padding-left: 18px; }
.gateCard:last-child { border-right: 0; }
.sheetStep { display: block; margin-bottom: 32px; color: var(--accent); }
.gateCard h3 { margin: 0 0 9px; font-size: 18px; }
.gateCard p { margin: 0; color: #444; font-size: 14px; line-height: 1.5; }

.sheetTable { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 14px; }
.sheetTable th,
.sheetTable td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.sheetTable th { color: var(--muted); font: 650 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.noteBox { margin-top: 22px; padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--soft); color: #333; line-height: 1.55; }

.sheetFooter { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; color: var(--muted); }

@media (max-width: 760px) {
  .sheetShell { width: 100%; margin: 0; padding: 26px 18px 38px; box-shadow: none; }
  .sheetHeader { padding-top: 38px; }
  .sheetMeta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheetMeta div:nth-child(2) { border-right: 0; }
  .sheetMeta div:nth-child(3), .sheetMeta div:nth-child(4) { border-top: 1px solid var(--line); }
  .sheetSectionHead { grid-template-columns: 1fr; gap: 10px; }
  .checkRow { grid-template-columns: 28px minmax(0, 1fr); gap: 10px 14px; }
  .checkRow span, .checkRow .owner { grid-column: 2; }
  .gateGrid { grid-template-columns: 1fr; }
  .gateCard, .gateCard + .gateCard { min-height: 0; padding: 18px 0; border-right: 0; }
  .sheetTable, .sheetTable thead, .sheetTable tbody, .sheetTable tr, .sheetTable th, .sheetTable td { display: block; width: 100%; }
  .sheetTable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheetTable tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sheetTable td { padding: 3px 0; border: 0; }
  .sheetFooter { flex-direction: column; }
}

@media print {
  @page { size: A4; margin: 10mm 11mm; }
  html, body { background: #fff; font-size: 9pt; }
  .sheetShell { width: auto; margin: 0; padding: 0; box-shadow: none; background: #fff; }
  .sheetNav { display: none; }
  .sheetHeader { padding: 0 0 6mm; }
  .sheetEyebrow { margin-bottom: 3mm; font-size: 7pt; }
  .sheetHeader h1 { max-width: none; margin-bottom: 3mm; font-size: 27pt; line-height: .98; }
  .sheetIntro { max-width: none; font-size: 10pt; line-height: 1.35; }
  .sheetMeta { margin-top: 5mm; }
  .sheetMeta div { padding: 3mm 3mm 1mm 0; }
  .sheetMeta div + div { padding-left: 3mm; }
  .sheetMeta dt, .sheetLabel, .sheetStep, .sheetFooter { font-size: 6.5pt; line-height: 1.3; }
  .sheetMeta dd { margin-top: 1.5mm; font-size: 8pt; line-height: 1.3; }
  .sheetSection { padding: 6mm 0; break-inside: auto; }
  .sheetSectionHead { grid-template-columns: 30mm minmax(0, 1fr); gap: 5mm; margin-bottom: 4mm; break-after: avoid-page; }
  .sheetSection h2 { font-size: 19pt; line-height: 1; }
  .checkRow { grid-template-columns: 7mm 38mm minmax(0, 1fr) 25mm; gap: 3mm; padding: 2.5mm 0; break-inside: avoid-page; }
  .checkBox { width: 3.3mm; height: 3.3mm; }
  .checkRow strong { font-size: 8pt; }
  .checkRow span { font-size: 7.4pt; line-height: 1.3; }
  .checkRow .owner { font-size: 6.3pt; line-height: 1.3; }
  .gateCard { min-height: 0; padding: 3mm 3mm 4mm 0; break-inside: avoid-page; }
  .gateCard + .gateCard { padding-left: 3mm; }
  .sheetStep { margin-bottom: 4mm; }
  .gateCard h3 { margin-bottom: 1.5mm; font-size: 10pt; }
  .gateCard p { font-size: 7.4pt; line-height: 1.35; }
  .sheetTable { font-size: 7.3pt; }
  .sheetTable th, .sheetTable td { padding: 2mm 2mm 2mm 0; line-height: 1.3; }
  .sheetTable th { font-size: 6.2pt; }
  .sheetTable tr { break-inside: avoid-page; }
  .noteBox { margin-top: 3mm; padding: 3mm; font-size: 8pt; line-height: 1.35; }
  .sheetFooter { padding-top: 3mm; }
}
