/* Дроби: дробь столбиком (числитель над чертой), картинки — закрашенные доли */
.fr-check { display: block; font-size: 14px; margin: 4px 0; }
.fr-grid { width: 100%; height: 100%; display: grid; gap: 3mm 4mm; }
.fr-gname, .fr-gcolor { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
.fr-gcompare, .fr-gequiv { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
.fr-gaddsub { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, 1fr); }
.fr-cell { position: relative; min-height: 0; border: .4mm solid #d5dde3; border-radius: 3mm; padding: 2mm 3mm; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fr-num { position: absolute; left: 2mm; top: 1.5mm; display: inline-flex; align-items: center; justify-content: center; width: 5.5mm; height: 5.5mm; border-radius: 50%; background: var(--teal); color: #fff; font: 700 9pt var(--body); }
.fr-it { display: flex; align-items: center; justify-content: center; gap: 4mm; width: 100%; height: 100%; }
.fr-name { flex-direction: column; gap: 2mm; }
.fr-pic { display: flex; align-items: center; justify-content: center; }
.fr-name .fr-pic { height: 26mm; width: 100%; }
.fr-svg { max-width: 100%; max-height: 100%; height: 100%; }
.fr-on, .fr-off { stroke: #333; stroke-width: 1.3px; vector-effect: non-scaling-stroke; }
.fr-on { fill: #8fd3ca; }
.fr-off { fill: #fff; }
.fr-f { display: inline-flex; flex-direction: column; align-items: center; font: 600 15pt/1.1 var(--head); color: #222; }
.fr-f i { font-style: normal; padding: 0 1.5mm; }
.fr-f i:first-child { border-bottom: .5mm solid #222; padding-bottom: .6mm; }
.fr-f i:last-child { padding-top: .6mm; }
.fr-f em, .fr-ans, .fr-ans i { color: var(--teal); font-style: normal; }
.fr-ans i:first-child { border-color: var(--teal); }
.fr-box { display: inline-block; width: 8mm; height: 8mm; border: .4mm solid #888; border-radius: 1mm; vertical-align: middle; }
.fr-cmp { gap: 3mm; }
.fr-col { display: flex; flex-direction: column; align-items: center; gap: 1.5mm; }
.fr-cmp .fr-pic { height: 20mm; width: 30mm; }
.fr-sign { display: inline-flex; align-items: center; justify-content: center; width: 11mm; height: 11mm; border: .45mm solid #555; border-radius: 50%; font: 700 16pt/1 var(--head); }
.fr-eq, .fr-add { flex-direction: column; gap: 2.5mm; }
.fr-wall { display: flex; flex-direction: column; gap: 1mm; width: 70mm; }
.fr-wall .fr-svg { width: 100%; height: auto; }
.fr-line { display: flex; align-items: center; gap: 3mm; }
.fr-op { font: 600 16pt var(--head); }
.fr-addpic { width: 55mm; }
.fr-addpic .fr-svg { width: 100%; height: auto; }
