/* ==========================================================================
   LRIC Maker — 打印样式
   A4 210 × 297 mm，页面无额外边距，纸面由 .sheet 自身尺寸决定
   ========================================================================== */

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

@media print {
  html,
  body {
    width: 210mm;
    height: 297mm;
    margin: 0;
    padding: 0;
    background: #fff !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .panel,
  .stage-bar,
  .toast,
  .modal,
  .cover-edit {
    display: none !important;
  }

  .app {
    display: block;
    height: auto;
    overflow: visible;
  }

  .stage,
  .stage-scroll {
    display: block;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: none;
    min-height: 0;
    height: auto;
  }

  .sheet-wrap {
    zoom: 1 !important;
    margin: 0;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    height: 297mm;
    margin: 0;
    box-shadow: none;
    overflow: visible;
    break-after: page;
    page-break-after: always;
  }

  .sheet.flow {
    height: auto;
    min-height: 297mm;
    break-after: auto;
    page-break-after: auto;
  }

  .sheet-wash {
    background:
      radial-gradient(120% 70% at 100% 0%, var(--wash, rgba(140, 111, 82, .05)) 0%, transparent 58%) !important;
  }

  .lyrics-body[contenteditable] {
    outline: 0 !important;
  }

  .lyrics-body {
    orphans: 2;
    widows: 2;
  }
}
