/* cycle_position_count_inverse3_3 v1.2. All selectors are unit-prefixed or data-unit scoped. */
.cpci-main{display:flex;flex-direction:column;align-items:center;max-width:100%;gap:6px;margin:6px 0}
.cpci-band-note,.cpci-symbols,.cpci-guide{margin:0;line-height:1.5;overflow-wrap:anywhere;text-align:center}
.cpci-symbols{font-size:16px}.cpci-band{max-width:100%}.cpci-band-inner{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:2px}
.cpci-item{display:inline-flex;flex-direction:column;align-items:center;min-width:40px;border:2px solid #334155;background:#fff;color:#111;padding:4px 2px;box-sizing:border-box}
.cpci-symbol{font-size:22px;font-weight:700;white-space:nowrap}.cpci-position{font-size:15px;border-top:1px solid #94a3b8;margin-top:3px;width:100%;text-align:center}.cpci-dots{align-self:center;font-size:24px;padding:2px}
.cpci-choices{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:6px}.cpci-choice{min-width:58px;min-height:52px;padding:6px;border:3px solid #64748b;border-radius:8px;background:#fff;color:#111;font-family:inherit;font-size:22px;cursor:pointer}
.cpci-choice.cpci-selected{border-color:#1d4ed8;background:#dbeafe;box-shadow:0 0 0 2px #1d4ed8 inset}.cpci-choice:disabled{opacity:1;color:#111}.cpci-choice:focus-visible,.cpci-input:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.cpci-choice.cpci-right{border:3px solid #15803d}.cpci-choice.cpci-right::after{content:'✓';color:#15803d;font-weight:700}.cpci-choice.cpci-ng{border:3px dashed #b91c1c;background:#fff1f2}.cpci-choice.cpci-ok{background:#dcfce7}
.cpci-input-row{display:flex;align-items:center;gap:8px;max-width:100%;justify-content:center}.cpci-input{width:5.5em;min-height:44px;border:3px solid #1d4ed8;border-radius:8px;font-family:inherit;font-size:1.3rem;text-align:center;padding:4px 6px;box-sizing:border-box;background:#eff6ff;color:#111}.cpci-input:disabled{opacity:1;color:#111;background:#f8fafc}.cpci-input.cpci-ok{border-color:#15803d}.cpci-input.cpci-ng{border:3px dashed #b91c1c}.cpci-unit{font-size:18px;font-weight:700}
.cpci-keypad{width:100%;max-width:240px;margin-top:8px}.cpci-key{min-height:44px;font-family:var(--font-ui)}.cpci-keypad[hidden]{display:none}
.cpci-msg{margin:0;color:#a16207;font-weight:700;line-height:1.5;text-align:center;overflow-wrap:anywhere}.cpci-msg:empty{display:none}.feedback.has-text.cpci-feedback{height:auto;min-height:40px;line-height:1.5;padding:4px 0}.cpci-correct{font-weight:700}.cpci-expl p{overflow-wrap:anywhere;line-height:1.5}
.cpci-example{margin:10px 0}.cpci-example p{line-height:1.6}.cpci-example-q{font-weight:700}
#page-quiz.active:has(.cpci-main) #question-text{overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.cpci-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}#page-quiz.active:has(.cpci-main) #hint-area .kp-head{flex:none;margin:0}#page-quiz.active:has(.cpci-main) #hint-area .kp-title:empty{display:none}#page-quiz.active:has(.cpci-main) #hint-area .kp-body{min-width:0;padding:0;overflow-wrap:anywhere}
/* 190 x 277mm printable area, 275mm content with a 2mm page margin reserve. */
.cpci-pr-page{width:190mm;height:275mm;box-sizing:border-box;display:flex;flex-direction:column;flex:none;margin: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}
.cpci-pr-head{flex:none;height:19mm;width:190mm;box-sizing:border-box}.cpci-pr-title{box-sizing:border-box;height:7mm;line-height:6mm;margin:0;border:1.5pt solid #666;background:#ffffcc;text-align:center;font-size:14.2pt;font-weight:700;white-space:nowrap;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.cpci-pr-fields{display:flex;align-items:flex-end;gap:2mm;height:8mm;margin-top:1mm;white-space:nowrap;font-size:12pt;line-height:6mm}.cpci-pr-field{display:inline-flex;align-items:flex-end;gap:1mm;flex:none}.cpci-pr-field-line{display:inline-block;box-sizing:border-box;width:14mm;height:6mm;border-bottom:1.5pt solid #555}.cpci-pr-name{flex:1;min-width:0}.cpci-pr-name .cpci-pr-field-line{width:auto;min-width:40mm;flex:1}.cpci-pr-solid{display:block;height:0;border:0;border-top:1.5pt solid #333;margin:1mm 0 0;padding:0;box-sizing:content-box}
.cpci-pr-instruction{flex:none;box-sizing:border-box;width:190mm;height:24mm;margin:1mm 0 2mm;font-size:12.7pt;line-height:6mm;overflow-wrap:normal;line-break:strict}
.cpci-pr-problems{display:flex;flex:none;gap:6mm;height:172.5mm;width:190mm}.cpci-pr-column{width:92mm;display:flex;flex-direction:column;flex:none}.cpci-pr-cell{height:34.5mm;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;flex:none;padding:0;margin:0}
.cpci-pr-query{height:6mm;line-height:6mm;flex:none;font-size:12.7pt;white-space:nowrap}.cpci-pr-number{font-weight:700;margin-right:1mm}.cpci-pr-blank{display:inline-block;min-width:8.8mm;height:6mm;white-space:pre;vertical-align:bottom}
.cpci-pr-band{height:11.5mm;flex:none;margin-top:1.5mm}.cpci-pr-band-inner{display:flex;align-items:stretch;height:11.5mm;gap:0}.cpci-pr-item{display:inline-flex;flex-direction:column;align-items:center;box-sizing:border-box;width:7.5mm;height:11.5mm;flex:none}.cpci-pr-symbol{font-size:12pt;line-height:7.5mm;height:7.5mm;white-space:nowrap}.cpci-pr-position{font-size:9.2pt;line-height:4mm;height:4mm}.cpci-pr-dots{font-size:12pt;align-self:center;width:4mm;text-align:center}
.cpci-pr-workrow{display:flex;align-items:center;height:8.5mm;flex:none;margin-top:1.5mm;gap:3mm}.cpci-pr-work{display:flex;align-items:flex-start;height:8.5mm;width:88mm;box-sizing:border-box;border:1.5pt solid #777;font-size:9.2pt;line-height:4mm;padding:0.5mm}.cpci-pr-work.cpci-pr-work-a{width:50mm}.cpci-pr-workspace{flex:1}.cpci-pr-choices{display:inline-flex;gap:0.5mm;width:33mm;flex:none}.cpci-pr-choice{display:inline-flex;align-items:center;justify-content:center;gap:0.15mm;width:7.875mm;height:7.5mm;white-space:nowrap;font-size:9.2pt}
.cpci-pr-choice-no,.cpci-pr-choice-symbol{display:inline-block;flex:none;white-space:nowrap}
.cpci-pr-answers{height:56.5mm;flex:none;box-sizing:border-box;margin-top:0}.cpci-pr-dashed{height:0;padding:0;border:0;border-top:1.5pt dashed #777;margin:1mm 0 1.5mm;box-sizing:content-box}.cpci-pr-answer-title{font-size:12.7pt;font-weight:700;height:6mm;line-height:6mm}.cpci-pr-answer-grid{display:flex;gap:6mm}.cpci-pr-answer-column{width:92mm;flex:none}.cpci-pr-answer{font-size:10.2pt;height:9.5mm;line-height:4.75mm;overflow-wrap:anywhere;word-break:normal}
#pr-sheet[data-unit="cycle_position_count_inverse3_3"]{width:210mm;max-width:none;box-sizing:border-box;padding:10mm;margin:12px auto;background:#fff;transform:none;box-shadow:0 0 4px #aaa}
#pr-sheet[data-unit="cycle_position_count_inverse3_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="cycle_position_count_inverse3_3"]>#pr-problems{display:block!important;margin:0;padding:0}
#page-print.active:has(#pr-sheet[data-unit="cycle_position_count_inverse3_3"]){overflow-x:auto;padding:0 8px 12px;max-width:100%;box-sizing:border-box}
.cpci-app-host{position:absolute;left:0;top:0;z-index:-1;pointer-events:none}.cpci-app-page{width:210mm;height:297mm;padding:10mm;box-sizing:border-box;background:#fff;overflow:hidden}.cpci-app-page .cpci-pr-page{margin:0;box-shadow:none}
@media (max-width:360px){.cpci-item{min-width:36px}.cpci-choice{min-width:54px;font-size:20px}.cpci-symbol{font-size:20px}}
@media print{
 #page-print.active:has(#pr-sheet[data-unit="cycle_position_count_inverse3_3"]){padding:0!important;margin:0!important;min-height:0!important;overflow:visible!important}
 #page-print #pr-sheet[data-unit="cycle_position_count_inverse3_3"]{width:190mm!important;max-width:none!important;padding:0!important;margin:0!important;transform:none!important;box-shadow:none!important}
 #page-print #pr-sheet[data-unit="cycle_position_count_inverse3_3"]>:not(#pr-problems){display:none!important}
 #page-print #pr-sheet[data-unit="cycle_position_count_inverse3_3"]>#pr-problems{display:block!important}
 #page-print #pr-sheet[data-unit="cycle_position_count_inverse3_3"] .cpci-pr-page{display:flex!important;break-inside:avoid;page-break-inside:avoid;margin:0!important;box-shadow:none!important;break-after:auto}
}
