/* Bingo card generator (tools/bingo-card-generator) */
.bingo-tool .tool-form input[type="text"], .bingo-tool .tool-form input[type="number"] { text-transform: none; flex: 1; max-width: 190px; padding: 9px 10px; font: inherit; border: 1px solid var(--rule); background: #fff; }
.bingo-tool .tool-form input[name="code"] { text-transform: uppercase; letter-spacing: .08em; }
.bingo-tool .tool-form input[type="number"] { max-width: 90px; }
.bingo-tool .bingo-stack { display: grid; gap: 6px; justify-content: stretch; }
.bingo-tool textarea { width: 100%; min-height: 200px; padding: 9px 10px; font: inherit; font-size: 14px; line-height: 1.45; border: 1px solid var(--rule); background: #fff; resize: vertical; }
.bingo-tool .bingo-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.bingo-tool .bingo-preset, .bingo-tool .bingo-small { font-size: 13px; padding: 6px 10px; border: 1px solid var(--ink); background: transparent; cursor: pointer; line-height: 1.2; }
.bingo-tool .bingo-preset:hover, .bingo-tool .bingo-small:hover { background: var(--ink); color: var(--paper); }
.bingo-tool .button.bingo-small { min-height: 0; justify-self: start; }
.bingo-tool .bingo-check { justify-content: flex-start; }
.bingo-tool label:has(input:disabled) { color: var(--muted); }
.bingo-tool .bingo-error { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--claret); background: var(--paper-2); font-size: 14px; }
.bingo-tool .bingo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bingo-tool .bingo-actions .button[disabled] { opacity: .45; cursor: not-allowed; }
.bingo-tool .bingo-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.bingo-tool .bingo-preview-wrap { min-width: 0; }
@media print {
  .print-sheet[data-bingo-sheet] svg + svg { break-before: page; page-break-before: always; }
}
.bingo-tool .tool-preview svg { max-width: 640px; margin-inline: auto; }
