*{box-sizing:border-box}body{margin:0;color:#243246;font:16px/1.65 "BIZ UDPGothic","Yu Gothic",Meiryo,sans-serif}button,select,input{font:inherit}a{color:#1168bc}button,summary{cursor:pointer}
.maker-heading{max-width:1248px;margin:0 auto;padding:20px 24px;display:flex;gap:20px;align-items:center;justify-content:space-between}.maker-title{margin:0}.maker-actions{display:flex;gap:10px;flex-wrap:wrap}
.workspace{max-width:1248px;margin:auto;padding:0 24px 40px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:30px;align-items:start}.settings{background:#fff;border:1px solid #e0e4e8;border-radius:16px;padding:22px}.settings>label:not(.checkbox){display:block;font-weight:700;margin:15px 0 6px}.settings select{width:100%;height:46px;padding:6px 10px;background:white;border:1px solid #aab4bf;border-radius:8px;color:inherit}.intro{margin:0 0 12px}.field-note{font-size:12px;color:#626d79;line-height:1.7}.field-note:empty{display:none}.checkbox{display:flex;align-items:center;gap:9px;margin:20px 0}.checkbox input{width:20px;height:20px}.secondary{background:#fff;border:1px solid #8f9caa;border-radius:9px;padding:10px;width:100%;min-height:46px}.settings details{border-top:1px solid #e0e4e8;padding-top:16px;font-size:14px}.settings summary{font-weight:700}#status{font-size:13px;color:#1168bc}.preview-section{min-width:0}.preview-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:8px}.preview-bar h2{font-size:16px;margin:0}.preview-bar span{font-size:13px;color:#626d79}#sheets{width:100%;overflow:hidden;padding-bottom:4px}
.arithmetic-sheet{width:210mm;height:297mm;position:relative;background:white;color:#161616;padding:14mm 15mm;transform-origin:top left;box-shadow:0 2px 10px #24324616;font-family:"BIZ UDPGothic","Yu Gothic",Meiryo,sans-serif;display:flex;flex-direction:column;flex:none}.sheet-heading h2{font-size:25px;margin:0 0 3mm;letter-spacing:.1em}.sheet-heading p{font-size:15px;margin:0 0 5mm}.name-line{font-size:14px;border-bottom:1px solid #999;padding-bottom:3mm}.problems{flex:1;min-height:0;margin:7mm 0 5mm;display:grid;gap:0 8mm;grid-template-columns:1fr 1fr;grid-template-rows:repeat(5,1fr)}.problem{position:relative;padding:8mm 0 2mm 6mm;min-width:0;border-bottom:1px solid #e8e8e8}.problem-number{position:absolute;top:2mm;left:0;font-size:17px;font-weight:700}.equation{display:flex;gap:2mm;align-items:center;white-space:nowrap;font-size:24px;height:100%;font-variant-numeric:tabular-nums}.answer-space{flex:1;min-width:16mm;height:12mm;border-bottom:1px solid #555;text-align:center;line-height:12mm}.count-5{grid-template-columns:1fr}.count-5.horizontal .equation{font-size:32px;gap:5mm}.count-5.horizontal .answer-space{flex:none;width:40mm}.written-calculation{width:max-content;margin:0 auto;padding-top:1mm}.number-row,.answer-row{display:grid;grid-template-columns:8mm repeat(var(--places),9mm);font-size:26px;line-height:1;text-align:center;height:9mm;align-items:center}.answer-row{border-top:1.5px solid #222;margin-top:1mm;padding-top:3mm;height:12mm}.count-5.vertical .written-calculation{margin-left:35mm}.sheet-footer{display:flex;justify-content:space-between;font-size:11px;color:#555;border-top:1px solid #bbb;padding-top:3mm;flex:none}
@media(max-width:900px){.maker-heading{align-items:flex-start;flex-direction:column}.workspace{grid-template-columns:1fr}.settings{display:block}.preview-section{max-width:794px;width:100%;margin:auto}}
@media(max-width:560px){.workspace{padding:0 12px 24px}.maker-heading{padding:16px 12px}.maker-actions{gap:8px}.maker-actions .maker-print-button,.maker-actions .maker-cart-button{padding-left:14px;padding-right:14px}.settings{padding:18px}}
@page{size:A4 portrait;margin:0}
@media print{html,body{margin:0!important;padding:0!important;background:#fff!important}.pair-header,.maker-heading,.settings,.preview-bar{display:none!important}.workspace,.preview-section,#sheets{display:block!important;width:auto!important;max-width:none!important;padding:0!important;margin:0!important;overflow:visible!important}.arithmetic-sheet{transform:none!important;margin:0!important;box-shadow:none!important;break-after:page;page-break-after:always}.arithmetic-sheet:last-child{break-after:auto;page-break-after:auto}}


/* Writing after using the input tool: five roomy exercises per page. */
.copy-sheet .problems{margin:5mm 0 3mm;gap:0;grid-template-columns:1fr;grid-template-rows:repeat(5,1fr)}
.copy-sheet .problem{display:flex;align-items:center;justify-content:space-between;padding:1mm 0 1mm 8mm;gap:8mm}
.copy-sheet .problem-number{top:5mm}.copy-prompt{font-size:26px;white-space:nowrap;font-variant-numeric:tabular-nums}
.copy-grid{flex:none;display:flex;flex-direction:column}.copy-row{display:grid;grid-template-columns:8mm repeat(var(--places),11mm);height:10mm}.copy-cell{border-right:1px solid #aaa;border-bottom:1px solid #aaa;display:flex;align-items:center;justify-content:center;font-size:25px;line-height:1}.copy-cell:first-child{border-left:1px solid #aaa}.copy-row:first-child .copy-cell{border-top:1px solid #aaa}.copy-notes{height:6mm}.copy-notes .copy-cell{font-size:14px}.copy-result{border-top:1.5px solid #333}.copy-sheet .sheet-heading p{font-size:14px}
