:root {
  --ink: #240446;
  --muted: #665c75;
  --line: #ddd5ea;
  --soft: #efecfd;
  --lime: #efecfd;
  --paper: #fff;
  font-family: "Manrope Variable", Arial, sans-serif;
  color: var(--ink);
  background: #efecfd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem max(1rem, calc((100vw - 210mm) / 2));
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}
.toolbar span {
  min-width: 0;
}
.toolbar button {
  flex: 0 0 auto;
  border: 0;
  background: var(--lime);
  padding: 0.7rem 1rem;
  font: 800 0.8rem inherit;
  cursor: pointer;
}
.sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 22px auto;
  padding: 14mm 15mm 16mm;
  background: var(--paper);
  box-shadow: 0 20px 60px #1113;
}
.brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 8mm;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.05em;
}
.brand-mark i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--lime);
  font:
    900 17px Georgia,
    serif;
  font-style: normal;
}
.doc-meta {
  text-align: right;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  padding: 9mm 0 7mm;
}
.title h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.045em;
  line-height: 1;
}
.title p {
  max-width: 72mm;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.tag {
  align-self: start;
  background: var(--lime);
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4mm 7mm;
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.field label,
.label {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 8mm;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font: 11px inherit;
  color: var(--ink);
}
.field textarea {
  min-height: 22mm;
  resize: vertical;
}
.section {
  margin-top: 8mm;
  break-inside: avoid;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 2px solid var(--ink);
  padding: 4mm 0 3mm;
}
.section-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.section-head span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
  padding: 3mm;
  background: var(--soft);
}
.checks label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 9px;
  line-height: 1.35;
}
.checks input {
  accent-color: var(--ink);
}
.print-value {
  display: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 8.5px;
  line-height: 1.35;
}
th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
th,
td {
  border: 1px solid var(--line);
  padding: 6px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
td[contenteditable="true"] {
  height: 10mm;
  background: #fff;
}
.notes {
  min-height: 28mm;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(#fff, #fff 7mm, #efecfd 7.2mm);
  padding: 5px;
  font-size: 10px;
}
.signoff {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 7mm;
  margin-top: 8mm;
}
.signature {
  height: 12mm;
  border-bottom: 1px solid var(--ink);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  margin-top: 10mm;
  padding-top: 4mm;
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.45;
}
.notice {
  border-left: 4px solid var(--lime);
  padding: 8px 10px;
  background: var(--soft);
  color: #485049;
  font-size: 8.5px;
  line-height: 1.5;
}
.data-notice {
  margin: 0 0 7mm;
}
.page-break {
  break-before: page;
}
@media (max-width: 850px) {
  .sheet {
    width: calc(100% - 24px);
    min-height: auto;
    margin: 12px;
    padding: 8vw;
  }
  .grid,
  .grid.three,
  .checks {
    grid-template-columns: 1fr;
  }
  .title {
    grid-template-columns: 1fr;
  }
  .toolbar {
    padding: 0.8rem 12px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  html,
  body {
    width: auto;
    overflow: visible;
  }
  .toolbar {
    display: none;
  }
  .sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 13mm 14mm;
    box-shadow: none;
    overflow: visible;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .checks {
    grid-template-columns: repeat(3, 1fr);
  }
  .field input,
  .field textarea,
  .field select {
    border-color: #aab2aa;
  }
  .field textarea {
    display: none;
  }
  .field .print-value {
    display: block;
    min-height: 22mm;
    padding: 5px 7px;
    border: 1px solid #aab2aa;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 11px inherit;
  }
  .section-head {
    break-after: avoid;
  }
  .section,
  table,
  .signoff,
  .footer {
    break-inside: avoid;
  }
  .footer {
    break-before: avoid;
  }
  thead {
    display: table-header-group;
  }
  tr {
    break-inside: avoid;
  }
  th,
  td {
    overflow-wrap: anywhere;
  }
  .page-break {
    break-before: page;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


.brand-mark img{width:170px;height:auto;display:block}.brand-mark i{display:none}.toolbar button{border-radius:8px;color:#240446}.tag{color:#240446}.sheet input:focus,.sheet textarea:focus{outline:2px solid #621bfc;outline-offset:2px}
