/* This unit owns its composite UI and its A4 worksheet only. */
#page-quiz[data-ced] .ced-question{max-width:680px;margin:auto;text-align:left;min-width:0;font-size:1rem}
#page-quiz[data-ced] .ced-table{border-collapse:collapse;width:100%;font-size:1.05rem;margin-bottom:16px}
#page-quiz[data-ced] .ced-table th,#page-quiz[data-ced] .ced-table td{border:1px solid #657783;padding:10px;text-align:left;line-height:1.5}
#page-quiz[data-ced] .ced-table th{white-space:nowrap;background:var(--card-bg,#f1f5fa)}
#page-quiz[data-ced] .ced-question p{line-height:1.6;margin:12px 0 8px}
#page-quiz[data-ced] .ced-choices{display:flex;flex-wrap:wrap;gap:8px}
#page-quiz[data-ced] .ced-choices button{min-height:48px;min-width:44px;font:inherit;padding:8px 12px;border:2px solid #526b7d;border-radius:8px;background:#fff;color:#142c3e;cursor:pointer}
#page-quiz[data-ced] .ced-choices button[aria-pressed=true]{border:3px solid #243cac;background:#e8eeff;font-weight:700}
#page-quiz[data-ced] .ced-choices button:disabled{opacity:1;cursor:default}
#page-quiz[data-ced] .ced-input-row{display:flex;align-items:center;gap:10px;max-width:100%;min-width:0}
#page-quiz[data-ced] .ced-numeric-input{min-width:0;width:160px;max-width:calc(100% - 55px);min-height:48px;font-size:24px;text-align:center;border:2px solid #526b7d;border-radius:6px;padding:6px;background:#fff;color:#142c3e}
#page-quiz[data-ced] .ced-numeric-input:focus{outline:3px solid #9275dd}
#page-quiz[data-ced] .ced-numeric-input[aria-invalid=true]{border-color:#a41928}
#page-quiz[data-ced] #ced-errors{color:#a41928;overflow-wrap:anywhere;line-height:1.6}
#page-quiz[data-ced] #feedback,#page-quiz[data-ced] .ced-explanation{max-height:none!important;overflow:visible!important;line-height:1.7;overflow-wrap:anywhere}
#page-quiz[data-ced] #submit-bar{position:static!important;inset:auto!important;width:auto!important;max-width:100%!important;margin:4px 12px!important;padding:12px 0!important;background:transparent!important;box-shadow:none!important;transform:none!important;box-sizing:border-box}
#page-quiz[data-ced] #numpad-handoff-spacer{display:none!important}
#page-quiz[data-ced] .quiz-page{padding-bottom:0!important;min-height:0!important}
#result-details .result-row-top:has(.ced-history-prompt){flex-wrap:wrap;align-items:flex-start;gap:8px}
#result-details .q-text:has(.ced-history-prompt),#result-details .result-row-top:has(.ced-history-prompt)>span:last-child{flex:1 1 100%;min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){body.quiz-focus:has(#page-quiz.active[data-ced])>header{display:flex}}
@media(max-width:480px){#page-quiz[data-ced] #answer-zone{padding-left:0;padding-right:0}#page-quiz[data-ced] .ced-table,#page-quiz[data-ced] .ced-table tbody,#page-quiz[data-ced] .ced-table tr{display:block}#page-quiz[data-ced] .ced-table tr{margin-bottom:8px;border:1px solid #657783;border-radius:6px;padding:8px}#page-quiz[data-ced] .ced-table th,#page-quiz[data-ced] .ced-table td{display:block;border:0;padding:3px;white-space:normal}}
#pr-sheet[data-unit=conditional_equal_distribution_max2_3]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit=conditional_equal_distribution_max2_3]{width:210mm!important;min-width:210mm!important;max-width:none!important;height:297mm!important;min-height:297mm!important;padding:10mm!important;box-sizing:border-box;margin:16px auto!important;background:white!important;color:black!important;transform:none!important;overflow:hidden!important}
#pr-sheet[data-unit=conditional_equal_distribution_max2_3] #pr-problems{display:block!important;width:190mm!important;height:277mm!important;margin:0!important;padding:0!important;column-count:1!important;transform:none!important}
#page-print:has(#pr-sheet[data-unit=conditional_equal_distribution_max2_3]){max-width:100%;overflow-x:auto;padding:0 12px 16px;box-sizing:border-box}
#page-print:has(#pr-sheet[data-unit=conditional_equal_distribution_max2_3]) .pr-toolbar{position:sticky;left:0;min-width:0;width:100%;box-sizing:border-box;gap:6px;flex-wrap:wrap}
.ced-print-page{width:190mm;height:277mm;box-sizing:border-box;background:white;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic',sans-serif;text-align:left;line-height:1.2;transform:none!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.ced-print-page *{box-sizing:border-box;color:#000}
.ced-print-page header{position:static;display:block;padding:0;margin:0;background:white;box-shadow:none}
.ced-print-page h1{font-size:14.2pt;line-height:8.8mm;height:10mm;min-height:10mm;border:1.5pt solid #666;background:#ffffcc;text-align:center;margin:0 0 1mm;padding:0;font-weight:700;white-space:nowrap;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.ced-print-page .pp-fields{height:10mm;min-height:10mm;margin:0 0 1mm!important;font-size:12.7pt!important}
.ced-print-page hr.pp-fields-solid{border:0;border-top:.5mm solid #666;margin:0 0 1mm!important;height:.5mm}
.ced-print-page .ced-print-instruction{font-size:12.7pt!important;line-height:5.5mm!important;height:22mm;margin:0!important;padding:0!important}
.ced-print-columns{display:grid!important;grid-template-columns:92mm 92mm;gap:6mm;margin:0;padding:0}
.ced-print-questions{margin-top:3mm}
.ced-print-question{width:92mm;height:25.1mm;min-height:25.1mm;display:flex;margin:0;padding:0 0 3mm;break-inside:avoid}
.ced-print-question[data-group=C]{height:31.5mm;min-height:31.5mm}
.ced-print-num{width:13mm;flex:none;font-size:12.7pt;line-height:6.5mm;font-weight:700}
.ced-print-content{width:79mm;min-width:0}
.ced-print-page .ced-table{border-collapse:collapse;width:79mm;margin:0;font-size:12.7pt;line-height:6.5mm}
.ced-print-page .ced-table tr{height:6.5mm}
.ced-print-page .ced-table th,.ced-print-page .ced-table td{padding:0;border:0;white-space:nowrap;font-size:12.7pt;line-height:6.5mm;text-align:left;font-weight:400}
.ced-print-page .ced-table th{padding-left:3mm;padding-right:3mm;width:33mm}
/* 0.1 mm safety margin above the physical 14.5 x 9 mm writing thresholds. */
.ced-print-answer-box{display:flex;align-items:center;gap:.5mm;width:79mm;height:9.1mm;font-size:12.7pt;line-height:9.1mm;white-space:pre}
.ced-print-field{display:inline-flex;align-items:center;flex:none;height:9.1mm;white-space:pre}
.ced-print-field-label{display:inline-block;flex:none;white-space:pre}
.ced-print-paren{display:inline-block;flex:none}
.ced-print-writing-space{display:inline-block;flex:none;width:14.6mm;min-width:14.6mm;height:9.1mm;min-height:9.1mm;white-space:pre}
.ced-print-page[lang=ja] .ced-print-final-label{width:9mm;white-space:normal;word-break:break-all;line-height:4.5mm}
.ced-print-answers{margin-top:1.5mm;border-top:.55mm dashed #888;padding-top:.95mm;break-inside:avoid}
.ced-print-answers h2{font-size:12.7pt;line-height:6mm;height:6mm;margin:0;padding:0}
.ced-print-answers p{font-size:10.2pt!important;line-height:4.2mm!important;min-height:13.8mm;margin:0!important;white-space:normal;overflow-wrap:normal}
.ced-app-capture{width:190mm!important;height:277mm!important;margin:0!important;padding:0!important;max-width:none!important;transform:none!important}
@media print{#pr-sheet[data-unit=conditional_equal_distribution_max2_3] .ced-print-answers p{line-height:4.3mm!important}#pr-sheet[data-unit=conditional_equal_distribution_max2_3]{width:190mm!important;min-width:190mm!important;height:277mm!important;min-height:277mm!important;margin:0!important;padding:0!important;box-shadow:none!important;transform:none!important;break-after:avoid!important}#page-print:has(#pr-sheet[data-unit=conditional_equal_distribution_max2_3]){overflow:visible!important;padding:0!important;margin:0!important}}

.ced-print-page .pp-field-name .pp-field-line{min-width:40mm}

#page-quiz[data-ced] .ced-question>label{display:block;line-height:1.6;margin:12px 0 6px}
#page-quiz[data-ced] .ced-parts p{margin:8px 0}
