/* FIM6-20261020: all rules scoped to the new unit's elements/sheet. */
.fim6-fraction{display:inline-flex;flex-direction:column;align-items:stretch;vertical-align:middle;text-align:center;line-height:1.1;min-width:.9em;margin:0 .12em;font-variant-numeric:tabular-nums}
.fim6-numerator{display:block;border-bottom:2px solid currentColor;padding:0 .13em .1em}
.fim6-denominator{display:block;padding:.1em .13em 0}
#page-quiz[data-fim6] #question-text{font-size:clamp(1rem,2.5vw,1.3rem);line-height:2.1;overflow-wrap:normal;word-break:normal;text-align:left}
.fim6-answer{width:100%;font-size:1rem;line-height:1.6}
.fim6-table{width:100%;border-collapse:collapse;margin:12px 0 18px;table-layout:fixed}
.fim6-table th,.fim6-table td{border:1px solid #8594a3;padding:8px 4px;text-align:center}
.fim6-table th{width:42%;font-size:.86rem;overflow-wrap:anywhere}
.fim6-table td{height:46px}.fim6-empty{background:#fff}
.fim6-answer label{display:block;font-weight:700;margin:8px 0 5px}
.fim6-input{display:block;box-sizing:border-box;width:min(100%,24ch);min-height:48px;resize:none;overflow:auto;white-space:pre;font:1.35rem/1.5 system-ui,sans-serif;padding:7px 10px;border:2px solid #677c99;border-radius:8px;background:white;color:#202c3b}
.fim6-input.correct{border-color:#217c48}.fim6-input.wrong{border-color:#ba3b36}
.fim6-guide{font-size:1rem;line-height:1.6;margin:8px 0}
#fim6-format{color:#a12622;font-size:1rem;line-height:1.65;white-space:normal}
.fim6-explanation{font-size:1rem!important;line-height:2!important;overflow-wrap:normal!important;word-break:normal!important}
.fim6-explanation p{margin:8px 0}
#page-quiz[data-fim6] .num-btn,#page-quiz[data-fim6] #hint-btn,#page-quiz[data-fim6] .next-hint-btn,#page-quiz[data-fim6] #submit-btn{min-height:44px;min-width:44px}
/* Keep the real rect above 44px even during the shared hint-card translation. */
#page-quiz[data-fim6] .next-hint-btn{min-height:45px}
.fim6-lesson-focus{font-size:1rem;line-height:1.6}
#pr-sheet[data-unit="fraction_integer_multiplier2_6"]{box-sizing:content-box!important;width:190mm!important;min-width:190mm!important;height:277mm!important;min-height:277mm!important;padding:0!important;margin:12px!important;transform:none!important;background:#fff!important;color:#000!important;box-shadow:0 1px 8px #bbb}
#pr-sheet[data-unit="fraction_integer_multiplier2_6"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="fraction_integer_multiplier2_6"]>#pr-problems{display:block!important;width:190mm!important;height:277mm!important;padding:0!important;margin:0!important;border:0!important}
.fim6-print-page{box-sizing:border-box;display:block!important;width:190mm!important;height:277mm!important;padding:0!important;margin:0!important;background:white;color:#000;font-family:Arial,'Noto Sans JP',sans-serif;font-size:12.6pt;line-height:1.2;overflow:visible}
.fim6-print-page *{box-sizing:border-box;color:#000;letter-spacing:normal}
.fim6-print-top{display:block!important;position:static!important;top:auto!important;left:auto!important;z-index:auto!important;background:#fff!important;box-shadow:none!important;border-radius:0!important;width:190mm!important;flex:none!important;align-items:normal!important;justify-content:normal!important;height:34.9mm!important;padding:0;margin:0 0 2mm!important;border:0}
.fim6-print-top h1{height:7mm;margin:0!important;padding:0!important;border:0;font-size:14.2pt!important;line-height:7mm!important;font-weight:700;text-align:center}
.fim6-print-header{height:7mm;line-height:7mm;white-space:pre;font-size:12.6pt;display:flex;justify-content:space-between;width:186mm}
.fim6-print-header>span{display:inline-flex;align-items:center}.fim6-header-line{display:inline-block;width:30mm;border-bottom:.25mm solid #000;margin-left:2mm}
.fim6-print-instruction{font-size:12.6pt!important;line-height:5.3mm!important;width:186mm;height:15.9mm;margin:0!important;padding:0!important;border:0!important;font-weight:400;overflow:visible}
.fim6-print-columns{display:grid!important;grid-template-columns:91mm 91mm!important;gap:4mm!important;width:186mm!important;margin:0!important;padding:0!important}
.fim6-print-question{width:91mm!important;height:39mm!important;padding:0!important;margin:0!important;break-inside:avoid;page-break-inside:avoid;border:0!important}
.fim6-print-first{display:flex;align-items:center;height:12mm!important;font-size:12.6pt;white-space:pre}
.fim6-print-number-gap{display:inline-block;flex:0 0 4.8mm;width:4.8mm;white-space:pre}
.fim6-print-page .fim6-fraction{height:12mm;margin:0 .12em;padding:1mm 0;flex-shrink:0;min-width:0;font-size:12.6pt!important;line-height:4.5mm!important}
.fim6-print-page .fim6-numerator{height:5.5mm;line-height:4.5mm;border-bottom:2px solid #000;padding:0 .5mm .5mm}
.fim6-print-page .fim6-denominator{height:4.5mm;line-height:4.5mm;padding:0 .5mm}
.fim6-print-multiplier{height:12mm;margin-top:1mm;display:flex;align-items:center;gap:2mm;font-size:12.6pt!important;white-space:nowrap}
.fim6-multiplier-box{display:inline-block;width:30mm!important;height:11mm!important;border:.35mm solid #000;flex-shrink:0}
.fim6-print-products{height:8mm;margin-top:1mm;display:flex;align-items:center;gap:2mm;font-size:12.6pt!important;white-space:nowrap}
.fim6-product-boxes{display:flex;gap:3mm}.fim6-product-box{display:inline-block;width:14mm!important;height:7mm!important;border:.35mm solid #000;flex-shrink:0}
.fim6-print-answers{height:31.8mm;margin-top:2mm;padding:0!important;border:0}
.fim6-print-answers h2{height:5.3mm;margin:0!important;padding:0!important;font-size:12.6pt!important;line-height:5.3mm!important;border:0!important}
.fim6-print-answers p{height:4.3mm;font-size:10.1pt!important;line-height:4.3mm!important;margin:0!important;padding:0!important;white-space:pre}
.fim6-capture-host{position:absolute;left:0;top:0;z-index:-1;background:white;pointer-events:none}
@media print{
 #pr-sheet[data-unit="fraction_integer_multiplier2_6"]{width:190mm!important;height:277mm!important;margin:0!important;box-shadow:none!important;max-width:none!important}
 #pr-sheet[data-unit="fraction_integer_multiplier2_6"]>:not(#pr-problems){display:none!important}
 #pr-sheet[data-unit="fraction_integer_multiplier2_6"]>#pr-problems{display:block!important;grid-template-columns:none!important}
 #pr-sheet[data-unit="fraction_integer_multiplier2_6"] .fim6-print-columns{display:grid!important;grid-template-columns:91mm 91mm!important}
}

#lesson-card-content[data-fim6] .calc-row .highlight{font-size:1rem;line-height:2;font-weight:400;text-align:left;color:inherit;background:transparent;border:0;padding:0}
@media screen{
 /* The white preview is the A4 paper; .fim6-print-page remains its 190x277mm content. */
 #pr-sheet[data-unit="fraction_integer_multiplier2_6"]{box-sizing:border-box!important;width:210mm!important;min-width:210mm!important;height:297mm!important;min-height:297mm!important;padding:10mm!important}
 #page-print:has(#pr-sheet[data-unit="fraction_integer_multiplier2_6"]){max-width:100%;overflow-x:auto}
}
@media screen and (max-width:640px){
 body.quiz-focus:has(#page-quiz.active[data-fim6="fraction_integer_multiplier2_6"])>header{display:flex}
}
