/* Книжка-малышка: лист 4 × 2 страниц на весь альбомный лист + полоска с инструкцией внизу */
.mb-field { display: flex; flex-direction: column; gap: 2px; font-size: 14px; margin-bottom: 6px; }
.mb-field input { font: 16px var(--body); padding: 6px 8px; border: 1.5px solid #d9cfb8; border-radius: 8px; }
.sheet.bare .sheet-body { display: block; }
.mb-sheet { width: 100%; height: 100%; padding: 5mm 5mm 0; display: flex; flex-direction: column; --ink: #3d3420; --soft: #8a7a4a; --frame: #d6c79a; --accent: #e0762e; }
.mb-sheet.mb-bw { --ink: #222; --soft: #555; --frame: #999; --accent: #333; }
.mb-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); position: relative; }
.mb-p { position: relative; overflow: hidden; padding: 4mm 4mm 3mm; display: flex; flex-direction: column; gap: 2mm; color: var(--ink); }
.mb-flip { transform: rotate(180deg); }
.mb-title { font: 600 19pt/1.1 var(--head); text-align: center; color: var(--accent); margin-top: 2mm; overflow-wrap: anywhere; }
.mb-by { font-size: 11pt; display: flex; align-items: flex-end; gap: 2mm; justify-content: center; }
.mb-by b { font: 600 13pt/1 var(--head); }
.mb-blank { display: inline-block; width: 32mm; border-bottom: 1.3px solid var(--soft); height: 1em; }
.mb-frame { flex: 1 1 45%; min-height: 18mm; border: 1.3px dashed var(--frame); border-radius: 3mm; display: flex; align-items: center; justify-content: center; }
.mb-frame span { font-size: 8pt; color: var(--soft); opacity: .7; }
.mb-big { flex: 1 1 auto; }
.mb-cap { font: 600 12pt/1.15 var(--head); text-align: center; }
.mb-riddle { font-size: 10.5pt; line-height: 1.3; text-align: center; }
.mb-ans { font-size: 8pt; color: var(--soft); text-align: right; }
.mb-ans b { color: var(--ink); }
.mb-lines { flex: 1 1 40%; min-height: 0; position: relative; }
.mb-rule { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb-num { position: absolute; bottom: 2mm; left: 0; right: 0; text-align: center; font: 600 9pt/1 var(--head); color: var(--soft); }
.mb-num ~ .mb-lines, .mb-inner .mb-lines { margin-bottom: 4mm; }
.mb-back { justify-content: center; align-items: center; }
.mb-back .mb-ans { position: absolute; top: 4mm; right: 4mm; }
.mb-end { font: 600 24pt/1 var(--head); color: var(--accent); }
.mb-stars { color: var(--frame); font-size: 14pt; letter-spacing: 2mm; }
.mb-site { position: absolute; bottom: 3mm; font-size: 7pt; color: var(--soft); }
/* линии сгиба (пунктир по сетке) и надрез по средней линии через две средние колонки */
.mb-folds { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(25% - .2mm), #cfc6ad calc(25% - .2mm), #cfc6ad calc(25% + .1mm), transparent calc(25% + .1mm)),
    linear-gradient(to right, transparent calc(50% - .2mm), #cfc6ad calc(50% - .2mm), #cfc6ad calc(50% + .1mm), transparent calc(50% + .1mm)),
    linear-gradient(to right, transparent calc(75% - .2mm), #cfc6ad calc(75% - .2mm), #cfc6ad calc(75% + .1mm), transparent calc(75% + .1mm)),
    linear-gradient(to bottom, transparent calc(50% - .2mm), #cfc6ad calc(50% - .2mm), #cfc6ad calc(50% + .1mm), transparent calc(50% + .1mm)); }
.mb-cut { position: absolute; left: 25%; right: 25%; top: 50%; border-top: .6mm solid var(--accent); }
.mb-cut span { position: absolute; left: 50%; transform: translate(-50%, -100%); font-size: 7.5pt; color: var(--accent); background: #fff; padding: 0 2mm; white-space: nowrap; }
.mb-strip { flex: none; height: 12mm; border-top: 1px dashed #b9b2a0; padding: 1.5mm 2mm 0; font-size: 7.5pt; line-height: 1.3; color: var(--soft); overflow: hidden; }
