:root {
  --ink: #142029;
  --muted: #53616c;
  --line: #d5dee5;
  --teal: #0a6b5d;
  --panel: #f7fafb;
  --font: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --display: "Sora", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: #e8eef2;
  line-height: 1.5;
}

.sheet-actions {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 4vw;
  background: rgba(232, 238, 242, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.sheet-actions a, .sheet-actions button {
  font: inherit;
  border-radius: 999px;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.sheet-actions .primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #f4faf8;
}

.sheet {
  width: min(900px, calc(100% - 2rem));
  margin: 1.2rem auto 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 18px 40px rgba(20, 32, 41, .08);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .9rem;
  margin-bottom: 1rem;
}
.brand-block strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.brand-block span { color: var(--muted); font-size: .9rem; }
.meta-block {
  text-align: right;
  color: var(--muted);
  font-size: .86rem;
}

h1 {
  margin: 0 0 .35rem;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -.02em;
}
.lead { margin: 0 0 1rem; color: var(--muted); }

h2 {
  margin: 1.15rem 0 .45rem;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--teal);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: .35rem 0 .7rem;
}
th, td {
  border: 1px solid var(--line);
  padding: .55rem .65rem;
  text-align: left;
  vertical-align: top;
  font-size: .92rem;
}
th { width: 34%; background: var(--panel); font-family: var(--display); }

.blank-row td { height: 2rem; }
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .8rem;
  margin: .4rem 0 .8rem;
}
.check-grid label {
  display: flex;
  gap: .45rem;
  align-items: center;
  color: var(--muted);
  font-size: .92rem;
}
.notes {
  min-height: 90px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: .6rem;
  color: var(--muted);
  font-size: .9rem;
}
.footer-note {
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

@media (max-width: 700px) {
  .check-grid { grid-template-columns: 1fr; }
  .sheet-head { flex-direction: column; }
  .meta-block { text-align: left; }
}

@media print {
  body { background: #fff; }
  .sheet-actions { display: none !important; }
  .sheet {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  a { color: inherit; text-decoration: none; }
}
