* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #efeee7;
  color: #1c3029;
  font:
    15px/1.6 system-ui,
    sans-serif;
}
a {
  color: #234e3e;
  text-underline-offset: 3px;
}
.toolbar {
  max-width: 1120px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 30px;
  font-size: 13px;
}
.toolbar button {
  font: inherit;
  background: #163e35;
  color: white;
  border: 0;
  padding: 12px 20px;
  cursor: pointer;
  min-height: 44px;
}
.sheet {
  max-width: 1120px;
  margin: 0 auto 45px;
  padding: 42px;
  background: #fffef9;
}
header {
  border-bottom: 2px solid #163e35;
  padding-bottom: 20px;
  margin-bottom: 25px;
}
.brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
h1 {
  font:
    40px/1.1 Georgia,
    serif;
  margin: 16px 0;
}
h2 {
  font-size: 18px;
  margin: 28px 0 12px;
}
header p {
  max-width: 80ch;
  font-size: 13px;
  margin: 12px 0 0;
}
.field-row {
  display: flex;
  gap: 25px;
  margin: 20px 0;
}
.field-row label {
  flex: 1;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
input,
textarea {
  display: block;
  font:
    14px/1.6 system-ui,
    sans-serif;
  width: 100%;
  border: 1px solid #b8c4ae;
  background: #fffef9;
  color: #1c3029;
  padding: 10px;
  margin-top: 6px;
  border-radius: 0;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
textarea.big {
  min-height: 170px;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 24px;
}
.board > div {
  border: 1px solid #aebda4;
  min-height: 270px;
  padding: 17px;
}
.board h2 {
  font-size: 16px;
  margin: 0 0 16px;
}
.board textarea {
  min-height: 190px;
  border-style: dashed;
}
.agenda {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: #e6eddd;
  padding: 17px;
  margin: 22px 0;
  font-size: 11px;
}
.agenda strong {
  display: block;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.matrix {
  border-left: 2px solid #163e35;
  border-bottom: 2px solid #163e35;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 7px 0;
}
.matrix > label {
  padding: 15px;
  background: #eff3e9;
}
.matrix textarea {
  min-height: 90px;
}
.axis {
  font-size: 10px;
  letter-spacing: 0.07em;
  margin: 0;
}
.axis.right {
  text-align: right;
  margin: 6px 0 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
td,
th {
  border: 1px solid #b5c2ac;
  text-align: left;
  padding: 10px;
}
td {
  height: 60px;
}
th {
  background: #e6eddd;
}
td textarea {
  min-height: 60px;
  margin: 0;
  border: 0;
  padding: 0;
}
footer {
  border-top: 1px solid #b5c2ac;
  margin-top: 30px;
  padding-top: 17px;
  font-size: 10px;
  color: #52614b;
}
.tip {
  font-size: 12px;
  background: #e6eddd;
  padding: 15px;
}
.print-note {
  font-size: 11px;
  color: #52614b;
}
.line {
  border-bottom: 1px solid #b5c2ac;
  height: 35px;
}
:focus-visible {
  outline: 3px solid #718e59;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .sheet {
    padding: 24px;
    margin: 0;
  }
  .toolbar {
    padding: 17px;
    align-items: flex-start;
  }
  .toolbar a {
    max-width: 55%;
  }
  h1 {
    font-size: 31px;
  }
  .board,
  .grid {
    grid-template-columns: 1fr;
  }
  .board > div {
    min-height: 160px;
  }
  .board textarea {
    min-height: 100px;
  }
  .agenda {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-row {
    flex-direction: column;
    gap: 12px;
  }
  .matrix > label {
    padding: 9px;
    font-size: 10px;
  }
  .matrix textarea {
    font-size: 12px;
  }
  table {
    display: block;
    overflow: auto;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  body {
    background: #fff;
    font-size: 10pt;
  }
  .toolbar,
  .print-note {
    display: none;
  }
  .sheet {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  h1 {
    font-size: 26pt;
  }
  header {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }
  .board > div {
    min-height: 70mm;
  }
  .board textarea {
    min-height: 50mm;
  }
  .sheet,
  textarea,
  input,
  .agenda,
  .matrix > label,
  th,
  .tip {
    print-color-adjust: exact;
  }
  textarea,
  input {
    border: 0;
    background: transparent;
    resize: none;
    padding: 4px;
    overflow: visible;
  }
  label textarea {
    border-bottom: 1px solid #b5c2ac;
  }
  footer {
    margin-top: 17px;
  }
  .grid {
    gap: 10px;
  }
  .field-row {
    margin: 10px 0;
  }
  .agenda {
    margin: 12px 0;
    padding: 10px;
  }
  .keep {
    break-inside: avoid;
  }
  .page-break {
    break-before: page;
  }
  table {
    break-inside: avoid;
  }
  textarea.big {
    min-height: 28mm;
  }
}
@media print {
  body {
    font-size: 9pt;
    line-height: 1.35;
  }
  h1 {
    font-size: 23pt;
    margin: 10px 0;
  }
  header {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  header p {
    font-size: 9pt;
    margin-top: 7px;
  }
  .brand {
    font-size: 8pt;
  }
  h2 {
    font-size: 12pt;
    margin: 12px 0 8px;
  }
  label {
    font-size: 8pt;
  }
  input,
  textarea {
    font-size: 9pt;
    line-height: 1.3;
    margin-top: 4px;
  }
  .field-row {
    margin: 9px 0;
    gap: 20px;
  }
  .field-row input {
    height: 6mm;
  }
  .field-row textarea {
    min-height: 15mm;
    height: 15mm;
  }
  .board {
    margin-top: 13px;
  }
  .board > div {
    min-height: 52mm;
    padding: 11px;
  }
  .board textarea {
    min-height: 36mm;
    height: 36mm;
  }
  .board h2 {
    font-size: 12pt;
    margin-bottom: 10px;
  }
  .tip {
    font-size: 8pt;
    padding: 10px;
  }
  .matrix > label {
    padding: 9px;
  }
  .matrix textarea {
    min-height: 14mm;
    height: 14mm;
  }
  .axis {
    font-size: 7pt;
  }
  .axis.right {
    margin-bottom: 10px;
  }
  table {
    font-size: 8pt;
  }
  td,
  th {
    padding: 6px;
  }
  td {
    height: 15mm;
  }
  td textarea {
    min-height: 12mm;
    height: 12mm;
  }
  .grid textarea.big {
    min-height: 23mm;
    height: 23mm;
  }
  .grid textarea {
    min-height: 15mm;
    height: 15mm;
  }
  .sheet > label > textarea {
    min-height: 13mm;
    height: 13mm;
  }
  .page-break > label > textarea {
    min-height: 18mm;
    height: 18mm;
  }
  .agenda {
    font-size: 8pt;
    padding: 9px;
    margin: 10px 0;
  }
  footer {
    font-size: 7pt;
    line-height: 1.4;
    margin-top: 12px;
    padding-top: 10px;
  }
}
