/* Раскраски: печать шаблонов (переведено из инлайн-<style> print.html, п.21 аудита) */
body { margin: 0; background: #223; font: 14px/1.5 "Segoe UI", system-ui, sans-serif; }
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; background: #112; color: #eaf6ff;
}
.top h1 { font-size: 15px; margin: 0; flex: 1; min-width: 140px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top a { color: #58d6ff; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
button {
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
  background: #58d6ff; border: 0; border-radius: 8px; padding: 7px 12px;
  white-space: nowrap;
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 18px 12px 60px; }
.card { margin-bottom: 28px; }
.bar {
  display: flex; align-items: center; justify-content: space-between;
  color: #eaf6ff; margin-bottom: 8px;
}
.sheet {
  display: block; width: 100%; height: auto; background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); border-radius: 6px;
}
.note { color: #8aa; font-size: 13px; margin: 0 0 16px; line-height: 1.5; }
.note a { color: #58d6ff; }

.mini-toggle { display: inline-flex; align-items: center; gap: 6px; color: #eaf6ff; font-size: 13px; font-weight: 700; cursor: pointer; }
.mini-toggle input { width: 16px; height: 16px; accent-color: #58d6ff; cursor: pointer; }

/* Мини-режим: 4 шаблона на одном A4 (для садиков и экономии бумаги) */
@media print {
  body.mini .card {
    break-before: auto; page-break-before: auto;
    width: 50%; display: inline-block; vertical-align: top; box-sizing: border-box;
  }
  body.mini .bar { display: none; }
  body.mini .sheet { width: 100%; height: auto; box-shadow: none; border-radius: 0; }
}

@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body { margin: 0; padding: 0; background: #fff; }
  .top, .bar, .note { display: none; }
  .wrap { max-width: none; margin: 0; padding: 0; }
  .card { margin: 0; break-inside: avoid; page-break-inside: avoid; }
  .card + .card { break-before: page; page-break-before: always; }
  .sheet {
    width: 100vw; height: 100vh; object-fit: contain;
    box-shadow: none; border-radius: 0; background: #fff;
  }
  body.one .card { display: none; break-before: auto; page-break-before: auto; }
  body.one .card.target { display: block; }
}
