.toolbar input.nz-text-input {
  width: 260px;
  font-family: var(--cell-font);
  font-size: 16px;
}

.nz-body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5mm;
}

.nz-sheet.is-tate .nz-body {
  flex-direction: row-reverse;
}

.nz-sheet.is-yoko .nz-body {
  flex-direction: column;
  align-items: center;
}

.nz-line {
  display: flex;
  flex: none;
  border: 0.5mm solid var(--grid-outer);
}

.nz-sheet.is-tate .nz-line {
  flex-direction: column;
}

.nz-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--cell);
  height: var(--cell);
  font-family: var(--cell-font);
  font-size: calc(var(--cell) * 0.78);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  color: var(--ink);
}

.nz-sheet.is-tate .nz-cell {
  writing-mode: vertical-rl;
}

.nz-sheet.is-tate .nz-cell + .nz-cell {
  border-top: 0.3mm solid var(--grid-line);
}

.nz-sheet.is-yoko .nz-cell + .nz-cell {
  border-left: 0.3mm solid var(--grid-line);
}

.nz-sheet.is-tate .nz-cell {
  height: calc(var(--cell) + 0.3mm);
}

.nz-sheet.is-tate .nz-cell:first-child {
  height: var(--cell);
}

.nz-sheet.is-yoko .nz-cell {
  width: calc(var(--cell) + 0.3mm);
}

.nz-sheet.is-yoko .nz-cell:first-child {
  width: var(--cell);
}

.nz-sheet.has-guide .nz-cell::before,
.nz-sheet.has-guide .nz-cell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.nz-sheet.has-guide .nz-cell::before {
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 0.3mm dashed #b9b4a8;
}

.nz-sheet.has-guide .nz-cell::after {
  left: 0;
  right: 0;
  top: 50%;
  border-top: 0.3mm dashed #b9b4a8;
}

.nz-cell span {
  position: relative;
  z-index: 1;
}

.nz-cell.is-model {
  background: #fff4cf;
  color: #1f1d1a;
}

.nz-cell.is-fade {
  color: #c3c0b8;
}

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