.wut-main{width:100%;max-width:620px;margin:8px auto}
.wut-choice-title,.wut-fields label{font-weight:700}
.wut-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.wut-choice-wrap{display:flex;gap:4px;min-width:0}
.wut-choice-mark{flex:none;align-self:center;width:18px;font:18px/1 sans-serif;text-align:center;color:#111827}
.wut-choice{flex:1;min-width:0;min-height:44px;border:2px solid #64748b;border-radius:8px;background:#fff;color:#111827;font-family:inherit;font-size:17px;font-weight:700;line-height:1.3;padding:6px}
.wut-choice.wut-selected{border:4px double #1d4ed8;background:#eff6ff}
.wut-choice:focus-visible,.wut-speak:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.wut-speak{min-width:44px;min-height:44px;border:1px solid #64748b;background:#f8fafc;border-radius:7px}
.wut-fields{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin:10px 0}
#wut-input{width:4em;min-height:44px;box-sizing:border-box;border:3px solid #1d4ed8;border-radius:8px;background:#eff6ff;font-family:inherit;font-size:24px;font-weight:700;line-height:1.4;text-align:center}
.wut-choice:disabled,#wut-input:disabled{opacity:1;color:#111827}
.wut-ok{border:3px solid #15803d!important}.wut-ng{border:3px dashed #b91c1c!important}
.feedback.has-text.wut-feedback{display:block;height:auto;min-height:40px;line-height:1.5;padding:4px 0}
.wut-feedback>span{display:block}.wut-error{color:#92400e}.wut-expl p{margin:6px 0;line-height:1.5}
#page-quiz:has(.wut-main) #question-text{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
.wut-lesson dt{font-weight:700;margin-top:8px}.wut-lesson dd{margin:2px 0 8px 12px}
@media(max-width:600px){.wut-choices{grid-template-columns:minmax(0,1fr)}.wut-choice{white-space:normal;word-break:normal;overflow-wrap:normal}}
/* Physical worksheet contract: 277 x 190 mm inside A4 landscape margins of 10mm (print common spec v3.2 §3-6). */
.wut-pr-page{width:277mm;height:190mm;box-sizing:border-box;display:flex;flex-direction:column;margin:0;padding:0;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.wut-pr-title{flex:none;box-sizing:border-box;width:277mm;height:7mm;margin:0 0 1mm;padding:0;border:1.5pt solid #666;background:#ffffcc;text-align:center;font-size:15pt;font-weight:700;line-height:6mm;white-space:nowrap}
.wut-pr-fields{flex:none;display:flex;align-items:flex-end;gap:4mm;height:7mm;font-size:12.7pt;line-height:6mm;white-space:nowrap;margin:0 0 1mm}
.wut-pr-date{display:inline-flex;align-items:flex-end;flex:none;gap:1mm}.wut-pr-field{display:inline-flex;align-items:flex-end;gap:1mm;flex:none}.wut-pr-line{display:inline-block;box-sizing:border-box;width:14.6mm;height:6.6mm;border-bottom:1pt solid #555}
.wut-pr-name{flex:1}.wut-pr-name .wut-pr-line{flex:1;min-width:40mm}
.wut-pr-solid{flex:none;box-sizing:border-box;display:block;border:0;border-top:1.5pt solid #333;width:100%;height:0.5mm;margin:0 0 1mm;padding:0}
.wut-pr-common{flex:none;height:6.5mm;line-height:6.5mm;margin:0 0 1.5mm;font-size:13.2pt;font-weight:700;white-space:nowrap}
.wut-pr-problems{display:grid;grid-template-columns:135.5mm 135.5mm;gap:6mm;flex:none;height:144.3mm}
.wut-pr-column{display:flex;flex-direction:column;gap:1mm}
.wut-pr-cell{flex:none;box-sizing:border-box;height:28.06mm;padding:0.8mm 0.8mm 0.8mm;break-inside:avoid;page-break-inside:avoid}
.wut-pr-top{display:grid;grid-template-columns:8.2mm 90.7mm 32mm;column-gap:1.5mm;height:18.6mm;align-items:start}
.wut-pr-no{font-size:13.2pt;line-height:6.1mm;font-weight:700}
.wut-pr-story{font-size:13.2pt;line-height:6.1mm;margin:0;word-break:keep-all;overflow-wrap:normal;line-break:strict}
.wut-pr-write{width:32mm;font-size:12.7pt;line-height:6.4mm;margin-left:0;text-align:center}
.wut-pr-number-box{width:25.4mm;height:11.4mm;box-sizing:border-box;border:0.35mm solid #333;margin:0.7mm auto 0}
.wut-pr-choices{display:flex;align-items:center;justify-content:space-between;height:7mm;margin-top:0.8mm;font-size:12.7pt;line-height:7mm;white-space:nowrap;gap:0.7mm}
.wut-pr-choice{display:inline-flex;align-items:center;white-space:nowrap;gap:0.3mm}
.wut-pr-mark{display:inline-block;width:5.2mm;height:5mm;font:14pt/5mm "BIZ UDPGothic",sans-serif;text-align:center;color:#000}
.wut-pr-answers{flex:none;box-sizing:border-box;height:17.2mm;border-top:1pt dashed #777;margin-top:1.5mm;padding:0}
.wut-pr-answers h2{height:5mm;line-height:5mm;font-size:12.7pt;margin:0;font-weight:700}
.wut-pr-answer-row{height:6mm;display:grid;grid-template-columns:repeat(5,55.4mm)}
.wut-pr-answer{font-size:12.7pt;line-height:6mm;white-space:nowrap}
#page-print:has(#pr-sheet[data-unit="word_problem_unknown_type_choice2_1"]){overflow-x:auto;padding:12px 12px 20px;box-sizing:border-box}
#pr-sheet[data-unit="word_problem_unknown_type_choice2_1"]{width:297mm;max-width:none;box-sizing:border-box;padding:10mm;margin:12px auto;background:#fff;transform:none!important}
#pr-sheet[data-unit="word_problem_unknown_type_choice2_1"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="word_problem_unknown_type_choice2_1"]>#pr-problems{display:block!important;margin:0;padding:0}
.wut-app-pdf-host{position:absolute;left:0;top:0;z-index:-1;pointer-events:none}
.wut-app-pdf-page{width:1123px;height:794px;box-sizing:border-box;padding:10mm;background:#fff;overflow:hidden}
@media print{
 #page-print:has(#pr-sheet[data-unit="word_problem_unknown_type_choice2_1"]){padding:0!important;overflow:visible!important}
 #page-print #pr-sheet[data-unit="word_problem_unknown_type_choice2_1"]{width:277mm!important;max-width:none!important;padding:0!important;margin:0!important;transform:none!important;box-shadow:none!important}
 #page-print #pr-sheet[data-unit="word_problem_unknown_type_choice2_1"]>:not(#pr-problems){display:none!important}
 #page-print #pr-sheet[data-unit="word_problem_unknown_type_choice2_1"]>#pr-problems{display:block!important}
 .wut-pr-page{margin:0!important;box-shadow:none!important;break-after:auto!important;page-break-after:auto!important}
}
