@font-face {
  font-family: Dilovi;
  src: url("/font/Dilovi.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Baskerville Old Face";
  src: url("/font/baskerville-old-face.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #1b2430;
  --blue: #16345c;
  --blue-ink: #102848;
  --muted: #5e6d80;
  --line: #e4e8ee;
  --soft: #f4f7fb;
  --danger: #8d3b3b;
  --brown: #b61a00;
  --display: Dilovi, "Iowan Old Style", Palatino, serif;
  --serif: "Baskerville Old Face", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; }

::selection { background: #d9e4f2; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.muted { color: var(--muted); }
.lede { color: var(--muted); margin-top: 6px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.form-error { color: var(--danger); font-size: 14px; }
.notice { color: var(--blue); font-size: 14px; }
.empty { color: var(--muted); padding: 8px 0 4px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.main-in { animation: rise 180ms ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
}

.btn.secondary {
  background: white;
  color: var(--blue);
}

.btn.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
  min-height: 36px;
  padding: 0 8px;
}

.btn.danger {
  background: white;
  color: var(--danger);
  border-color: #ecdcdc;
}

.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:active:not(:disabled) { transform: translateY(1px); }

.control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  font-size: 16px;
}

textarea.control {
  min-height: 280px;
  resize: vertical;
  line-height: 1.45;
}

.control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 52, 92, 0.12);
}

.field { display: grid; gap: 6px; text-align: left; }
.field > span, .field > label { font-size: 13px; color: var(--muted); }

.lyric-edit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lyric-edit textarea { flex: 1; min-width: 0; }
.lyric-edit .btn { flex: none; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.check input { accent-color: var(--blue); width: 16px; height: 16px; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-fallback { height: 64px; border-bottom: 1px solid var(--line); background: white; }

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-ink);
  min-width: 0;
}

.brand svg { width: 32px; height: 32px; flex: none; }

.brand span {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  padding-top: 2px;
}

.search { position: relative; }

.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search input { padding-left: 40px; height: 42px; background: var(--soft); }
.search input[type="search"]::-webkit-search-cancel-button,
.search input[type="search"]::-webkit-search-decoration { display: none; }
.search input:focus { background: white; }

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--blue-ink);
}

.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--soft); }

.menu-wrap { position: relative; }
.menu-wrap summary { list-style: none; }
.menu-wrap summary::-webkit-details-marker { display: none; }
.menu-wrap .menu { display: none; }
.menu-wrap[open] .menu { display: block; }

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(16, 40, 72, 0.08);
}

.menu-name { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-name strong { display: block; }
.menu-role { color: var(--muted); font-size: 13px; }

.menu a, .menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.menu a:hover, .menu button:hover { background: var(--soft); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 0.95;
  color: var(--blue-ink);
}

.dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.cat-card:hover { border-color: #c5d0e0; background: #f8fafc; }

.cat-index {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.cat-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
}

.cat-name .dot { width: 18px; height: 18px; }

.cat-count { margin-top: auto; color: var(--muted); font-size: 13px; }

.extra-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.extra-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue-ink);
  background: white;
}

.extra-link svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.extra-link:hover { background: #f8fafc; border-color: #c5d0e0; }

.song-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.song-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.song-row a { display: block; min-width: 0; padding: 14px 8px 14px 2px; }

.song-row .t {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
}

.song-row .m, .song-row .snip {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.song-row:hover { background: #fbfcfd; }

.star {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b97a6;
}

.star svg { width: 20px; height: 20px; }
.star.is-on { color: var(--blue); }
.star:hover { background: var(--soft); }

.group { margin-top: 28px; }

.group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--blue-ink);
  margin-bottom: 4px;
}

.kicker {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tone-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.tone-pick label {
  color: var(--muted);
  font-size: 13px;
}

.control.tone {
  width: 7.5rem;
  max-width: 100%;
  justify-self: start;
  padding: 6px 28px 6px 10px;
}

.song-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.92;
  color: var(--brown);
  margin-top: 8px;
  overflow-wrap: break-word;
}

.song-heading .dot { width: 22px; height: 22px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.lyrics-read {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 40rem;
}

.line { display: block; }
.lyrics-read p { margin: 0 0 1.05em; }
.lyrics-read p:last-child { margin-bottom: 0; }
.lyrics-read .coro { color: var(--brown); }

.notes {
  max-width: 40rem;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.notes h2 {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.notes p {
  font-family: var(--serif);
  font-size: 1.05rem;
  white-space: pre-wrap;
}

.song-layout { display: grid; gap: 36px; }

.fav-aside h2 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.fav-aside ul { list-style: none; margin-top: 8px; }

.fav-aside a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.fav-aside a span.fav-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
}

.fav-aside .dot { width: 12px; height: 12px; }

.fav-aside a small { color: var(--muted); font-size: 13px; }
.fav-aside a.is-current span { color: var(--blue); }

.panel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.panel-nav .btn { min-height: 40px; }

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  color: var(--blue-ink);
}

.section + .section { margin-top: 42px; }

.form-grid { display: grid; gap: 12px; max-width: 720px; margin-top: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pin-reveal {
  max-width: 720px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.pin-code {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  color: var(--blue-ink);
}

.pin-code span { width: 28px; text-align: center; }

.people, .edit-list { list-style: none; margin-top: 18px; }

.people > li {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.person-fields { display: grid; gap: 8px; }
.role { color: var(--muted); font-size: 13px; }
.you { margin-left: 6px; color: var(--blue); font-size: 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.edit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.song-pick {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.song-pick.is-current { background: var(--soft); }
.song-pick .t { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; }
.song-pick .m { display: block; color: var(--muted); font-size: 13px; }

.welcome {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
}

.welcome-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(22, 52, 92, 0.07);
  filter: blur(50px);
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.welcome-card {
  position: relative;
  width: min(100%, 440px);
  text-align: center;
}

.welcome-mark {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  color: var(--blue);
}

.welcome-card h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 68px);
  line-height: 0.9;
  color: var(--blue-ink);
  margin: 10px 0 8px;
}

.welcome-card .lede { margin-bottom: 22px; }

.pin-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pin-cell {
  width: 46px;
  height: 56px;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: white;
  text-align: center;
  font-size: 24px;
  color: var(--blue-ink);
}

.pin-cell:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 52, 92, 0.12);
}

.shake { animation: shake 220ms ease; }

.stack { display: grid; gap: 12px; margin-top: 18px; text-align: left; }

.recover {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.recover h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--blue-ink);
  margin-bottom: 6px;
}

/* Hoja de referencia: 185 × 250 mm.
   La letra queda a 8 mm arriba y a los lados.
   Abajo el límite es 0,5 cm. */
.sheet {
  --sheet-w: 185mm;
  --sheet-h: 250mm;
  width: var(--sheet-w);
  height: var(--sheet-h);
  position: relative;
  overflow: hidden;
  background: white url("/img/back.jpg") no-repeat center / 100% 100%;
  box-shadow: 0 12px 40px rgba(16, 40, 72, 0.12);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.sheet-title {
  position: absolute;
  top: 8mm;
  left: 8mm;
  right: 36mm;
  height: 20mm;
  overflow: hidden;
}

.sheet-title h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 48pt;
  line-height: 0.9;
  color: #b61a00;
  overflow-wrap: break-word;
}

.sheet[data-page="2"] .sheet-lyrics {
  top: 8mm;
}

.sheet-lyrics {
  position: absolute;
  top: 33.5mm;
  left: 8mm;
  right: 8mm;
  bottom: 5mm;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 11.5pt;
  line-height: 1.22;
  color: #141414;
  font-synthesis: none;
  -webkit-text-stroke: 0.03em currentColor;
  paint-order: stroke fill;
}

.sheet-block {
  display: grid;
  grid-template-columns: min(185mm, 100%) 188px;
  justify-content: center;
  align-items: start;
  column-gap: 12px;
  row-gap: 16px;
}

.sheet { grid-column: 1; }

.sheet-side {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  width: 188px;
}

.sheet-guide {
  display: grid;
  gap: 7px;
  width: 188px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue-ink);
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(16, 40, 72, 0.06);
}

.sheet-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.sheet-guide label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sheet-guide input {
  margin: 0;
  accent-color: var(--blue);
}

.sheet-side .sheet-size {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
}

.sheet-size {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: grid;
  align-content: start;
  gap: 6px;
  width: 188px;
  height: max-content;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue-ink);
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(16, 40, 72, 0.06);
}

.sheet-size .group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
}

.sheet-size .group > span:first-child {
  width: 52px;
  flex: none;
  color: var(--muted);
  font-size: 11px;
}

.sheet-size .step {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--blue);
  font-size: 14px;
  line-height: 1;
}

.sheet-size .size-label {
  flex: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.sheet-size .actions {
  display: flex;
  gap: 4px;
}

.sheet-size .btn {
  flex: 1;
  min-height: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 12px;
}

.sheet-size .btn.quiet {
  min-height: 24px;
  border-color: var(--line);
  background: white;
  color: var(--muted);
}

@media (max-width: 980px) {
  .sheet-block { grid-template-columns: min(185mm, 100%); }
  .sheet-size, .sheet-side {
    grid-column: 1;
    grid-row: auto;
    width: 188px;
    justify-self: end;
  }
}

.sheet-lyrics p { margin: 0 0 0.62em; }
.sheet-lyrics p:last-child { margin-bottom: 0; }
.sheet-lyrics .coro { color: #b61a00; }

.sheet-marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-root:not([data-guide="borde"]) .mark-edge { display: none; }
.print-root[data-guide="borde"] .mark-corner { display: none; }

.sheet-cat {
  position: absolute;
  top: 1.8mm;
  right: 1.8mm;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1mm;
}

.sheet-cat-name {
  display: inline-block;
  padding: 0.4mm 0.8mm;
  background: #f3f3f3;
  color: #3a3a3a;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 5.5pt;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.sheet-dot {
  width: 3.7mm;
  height: 3.7mm;
  flex: none;
  border-radius: 50%;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-root {
  min-height: 100vh;
  background: #e8edf2;
}

.print-root:not(.is-ready) .sheet { opacity: 0; }

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.print-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.print-toolbar p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.print-toolbar .tools { display: flex; gap: 4px; align-items: center; flex: none; }
.print-toolbar strong { font-size: 13px; font-weight: 600; line-height: 1; flex: none; }

.print-toolbar .btn {
  min-height: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
}

.print-stage {
  display: grid;
  gap: 16px;
  justify-content: center;
  padding: 24px 16px 48px;
}

.warn {
  width: min(185mm, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid #ecdcdc;
  border-radius: 8px;
  background: white;
  color: var(--danger);
  font-size: 14px;
}

@page {
  size: 185mm 250mm;
  margin: 0;
}

@media (min-width: 640px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .person-fields { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 800px) {
  .people > li {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .song-list, .edit-list { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .cat-grid { grid-template-columns: 1fr 1fr 1fr; }
  .song-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }
  .fav-aside { position: sticky; top: 88px; }
}

@media (max-width: 959px) {
  .fav-aside {
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; grid-row: 1; }
  .menu-wrap { grid-column: 2; grid-row: 1; }
  .search { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 360px) {
  .pin-cell { width: 40px; height: 50px; font-size: 22px; }
  .pin-boxes { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .print-root { background: white; }
  .print-toolbar, .warn, .sheet-size, .sheet-guide, .sheet-side { display: none !important; }
  .print-stage { display: block; padding: 0; background: white; }
  .sheet-block { display: block; }
  .sheet {
    margin: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }
  .sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}
