/* Математические ребусы: ключ «картинка = цифра» сверху, примеры в две колонки (ряды делят высоту поровну —
   одинаково на A4/Letter); «выведи сам» — шесть карточек 2×3 с равенствами и клеточками для цифр. */
.pm-page { width: 184mm; max-width: 100%; height: 100%; align-self: stretch; display: flex; flex-direction: column; gap: 4mm; }
.pm-e { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; line-height: 1; }
.pm-legend { flex: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5mm 3mm; padding: 2mm 4mm; border: 1.4px solid #d6c79a; border-radius: 4mm; background: #fffaf0; }
.pm-lt { width: 100%; text-align: center; font: italic 10pt/1.2 var(--body); color: #7a6a3a; }
.pm-lg { display: inline-flex; align-items: center; gap: 0.8mm; font: 700 14pt/1 var(--head); }
.pm-lg .pm-e { font-size: 16pt; }
.pm-lg i { font-style: normal; color: #8a7a4a; }
.pm-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(9, minmax(0, 1fr)); gap: 0 8mm; }
.pm-g20 { grid-template-rows: repeat(10, minmax(0, 1fr)); }
.pm-ex { min-height: 0; display: flex; align-items: center; gap: 1.6mm; border-bottom: 1px dashed #e3d8b4; white-space: nowrap; }
.pm-n { flex: none; width: 6mm; font: 9pt/1 var(--body); color: #9a8a5a; }
.pm-pics { display: inline-flex; gap: 0.6mm; }
.pm-pics .pm-e { font-size: 22pt; }
.pm-big .pm-pics .pm-e { font-size: 16pt; }
.pm-sign { font: 700 17pt/1 var(--head); color: #3d3420; }
.pm-blank { flex: none; min-width: 17mm; height: 10mm; margin-left: 0.5mm; border: 1.3px solid #b8a46a; border-radius: 2mm; font: 700 14pt/10mm var(--head); text-align: center; color: var(--teal); }
.pm-solve { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 5mm; }
.pm-st { position: relative; min-height: 0; border: 1.4px solid #d6c79a; border-radius: 5mm; padding: 4mm 5mm; display: flex; flex-direction: column; justify-content: center; gap: 2.5mm; }
.pm-no { position: absolute; left: 2.5mm; top: 2.5mm; width: 6.5mm; height: 6.5mm; border-radius: 50%; background: var(--brand-dark, #e8642c); color: #fff; font: 700 10pt/6.5mm var(--head); text-align: center; }
.pm-line { display: flex; align-items: center; justify-content: center; gap: 2mm; font: 700 17pt/1 var(--head); }
.pm-line .pm-e { font-size: 19pt; }
.pm-line i { font-style: normal; }
.pm-ask { display: flex; justify-content: center; gap: 5mm; margin-top: 1.5mm; padding-top: 2.5mm; border-top: 1px dashed #d6c79a; }
.pm-pair { display: inline-flex; align-items: center; gap: 1.2mm; font: 700 14pt/1 var(--head); }
.pm-pair .pm-e { font-size: 15pt; }
.pm-pair i { font-style: normal; }
.pm-sm { width: 9mm; height: 9mm; border: 1.3px solid #b8a46a; border-radius: 2mm; text-align: center; line-height: 9mm; color: var(--teal); }
