.breadcrumb{display:flex;gap:8px;font-size:.86rem;color:var(--muted);margin-bottom:11px}
.worksheet-controls{background:#fff;border:1px solid var(--line);padding:18px;display:flex;align-items:end;gap:13px;flex-wrap:wrap;border-radius:5px}
.worksheet-controls fieldset{margin:0;padding:0;border:0}
.worksheet-controls legend,.control-label{font-weight:700;font-size:.91rem}
.operations{display:flex;gap:5px;margin-top:5px}
.operations label{display:flex;align-items:center;min-height:44px;gap:5px;padding:4px 9px;border:1px solid #c2baa9;border-radius:8px;cursor:pointer;white-space:nowrap}
.operations label:has(:checked){background:#edf3e8;border-color:var(--accent)}
.operations input,.choice-label input{width:17px;height:17px;margin:0;accent-color:var(--green)}
.control-label{display:grid;gap:5px;flex:1;min-width:115px}
.worksheet-controls .button{min-height:44px}
.worksheet-status{min-height:32px;color:var(--green);font-size:.875rem;padding-top:5px}
.worksheet-controls{border-radius:13px}
.worksheet-controls input:not([type=checkbox]){min-width:0;width:100%;min-height:44px;border:1px solid #b9ad9d;border-radius:8px;padding:6px 9px}
.worksheet-controls input:disabled{background:#f5f2ee}
.choice-label{display:flex;align-items:center;gap:6px;min-height:44px;font-size:.9rem}
.preview-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-block:8px 14px;flex-wrap:wrap}
.preview-toolbar h2{font-size:1.23rem}
.preview-toolbar p{font-size:.87rem}
.print-actions{display:flex;flex-wrap:wrap;gap:7px}
.alternate-button{background:#fff;border:1px solid #adab99;color:var(--ink);border-radius:9px;font-weight:700;padding:7px 11px;min-height:44px}
.alternate-button:hover{background:var(--pale)}
.sheets:not(.ready),#answers:not(.show-answers){display:none}
.sheet{width:min(100%,210mm);aspect-ratio:210/297;margin:0 auto 16px;padding:clamp(15px,4vw,42px);background:white;border:1px solid var(--line);display:flex;flex-direction:column;color:#151515;scroll-margin-top:15px}
.sheet-header{border-bottom:1px solid #444;padding-bottom:12px;text-align:center}
.sheet-header h2{font-size:clamp(1.15rem,4vw,1.85rem)}
.sheet-meta{font-size:.85rem;margin-top:5px}
.sheet-fields{display:flex;justify-content:space-between;gap:12px;margin-top:13px;font-size:.86rem}
.sheet-fields>span{display:flex;align-items:baseline;gap:7px;flex:1;white-space:nowrap}
.sheet-fields>span>span{flex:1;min-width:0;border-bottom:1px solid #444}
.problem-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 7%;margin:15px 0;padding:0;list-style:none;counter-reset:problem}
.problem-list li{min-width:0;display:grid;grid-template-columns:2.4em max-content minmax(.75em,1fr);gap:3px;align-items:baseline;counter-increment:problem;padding:7px 0;line-height:1.4;font-size:clamp(.69rem,2.2vw,1.34rem);font-variant-numeric:tabular-nums}
.problem-list li::before{content:counter(problem) ".";color:#434343;font-size:.67em}
.equation{white-space:nowrap}
.response{display:block;min-height:.95em;border-bottom:1px solid #444}
.response.has-answer{border:0;font-weight:700}
.sheet-footer{border-top:1px solid #666;padding-top:9px;margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:.78rem}
.sheet-footer img{object-fit:contain}
.worksheet[data-tool="arithmetic"] .sheet[data-count="5"] .problem-list{grid-template-columns:1fr;width:min(100%,440px);margin-inline:auto}
.worksheet[data-tool="arithmetic"] .sheet[data-count="5"] li{padding-block:12px}
.sheet[data-size="standard"]{--problem-scale:.90;--find-size:2.2rem;--find-print:6.5mm}
.sheet[data-size="large"]{--problem-scale:1;--find-size:2.7rem;--find-print:8mm}
.sheet[data-size="xlarge"]{--problem-scale:1.12;--find-size:3.15rem;--find-print:9.5mm}
.maze-frame{width:min(100%,560px);margin:18px auto;text-align:left}
.maze-frame svg{width:100%;display:block;overflow:visible}
.maze-walls{fill:none;stroke:#111;stroke-width:.08;stroke-linecap:square}
.maze-solution{fill:none;stroke:#505050;stroke-width:.12;stroke-linejoin:round;stroke-dasharray:.22 .15}
.maze-start,.maze-goal{font-weight:700;font-size:.9rem;padding-block:4px}
.maze-goal{text-align:right}
.find-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));width:min(100%,590px);border-top:1px solid #666;border-left:1px solid #666;margin:19px auto;container-type:inline-size}
.find-grid span{display:grid;place-items:center;aspect-ratio:1;border-right:1px solid #666;border-bottom:1px solid #666;font-size:min(var(--find-size,2.7rem),6.1vw);font-size:min(var(--find-size,2.7rem),calc(65cqw / var(--columns) * var(--problem-scale,1)));font-weight:700;line-height:1}
.find-hit{outline:2px solid #141414;outline-offset:-5px;text-decoration:underline;text-underline-offset:4px}
.calendar-layout{margin-top:18px}
.calendar-table{width:100%;border-collapse:collapse;table-layout:fixed}
.calendar-table th,.calendar-table td{border:1px solid #777;padding:5px;text-align:left;vertical-align:top;color:#111}
.calendar-table th{text-align:center;font-size:.85rem}
.calendar-table td{height:clamp(33px,7vw,90px);font-size:clamp(.74rem,2.4vw,1.4rem)}
.calendar-colors :is(th,td):first-child{color:#9b4735}
.calendar-colors :is(th,td):last-child{color:#345682}
.calendar-memo{margin-top:10px;min-height:70px;border:1px solid #777;padding:6px;font-size:.87rem}
@media screen{.problem-list li{font-size:calc(clamp(.72rem,2.2vw,1.25rem)*var(--problem-scale,1))}}
@media(max-width:630px){.worksheet-controls{padding:12px;gap:9px}.worksheet-controls fieldset{width:100%}.operations label{font-size:.82rem;padding-inline:6px}.worksheet-controls .button{width:100%}.print-actions .button,.alternate-button{font-size:.82rem;padding-inline:8px}.problem-list{gap:0 4%}.sheet{padding:13px}.sheet-meta{font-size:.68rem}.problem-list li{grid-template-columns:1.7em max-content minmax(.7em,1fr)}}
@page{size:A4 portrait;margin:10mm}
@media print{
    html,body{margin:0!important;padding:0!important;background:white!important;color:#000!important;min-height:0!important}
    body .site-header,body .site-footer,body .skip-link,body #wpadminbar,.worksheet-ui,body noscript{display:none!important}
    .worksheet,.sheets{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;min-height:0!important}
    .sheet{width:100%;height:275mm;min-height:0;max-width:none;aspect-ratio:auto;margin:0;padding:5mm 4mm;border:0;break-inside:avoid;page-break-inside:avoid}
    .sheet-header{padding-bottom:3mm}
    .sheet-header h2{font-size:24pt}
    .sheet-meta,.sheet-fields{font-size:11pt}
    .sheet-fields{margin-top:4mm}
    .problem-list{margin:4mm 0;gap:0 10mm}
    .problem-list li{font-size:calc(17pt*var(--problem-scale,1));padding:2.6mm 0;line-height:1.18;grid-template-columns:8mm max-content minmax(20mm,1fr);gap:2mm}
    .sheet[data-count="5"] .problem-list li{font-size:calc(27pt*var(--problem-scale,1));padding:7mm 0}
    .sheet[data-count="10"] .problem-list li{font-size:calc(22pt*var(--problem-scale,1));padding:6mm 0}
    .sheet[data-count="20"] .problem-list li{font-size:calc(19pt*var(--problem-scale,1));padding:4mm 0}
    .problem-list li::before,.sheet-footer{color:#000}
    .sheet-footer{font-size:10pt;padding-top:2mm}
    .maze-frame{width:158mm;margin:7mm auto}
    .maze-start,.maze-goal{font-size:12pt}
    .find-grid{width:158mm;margin:8mm auto}
    .find-grid span{font-size:var(--find-print,8mm)}
    .calendar-layout{margin-top:6mm}
    .calendar-table td{height:27mm;font-size:16pt}
    .calendar-table th{font-size:12pt}
    .calendar-memo{margin-top:4mm;min-height:24mm;font-size:12pt}
    #answers{display:none!important}
    body[data-print="both"] #answers{display:flex!important;break-before:page;page-break-before:always}
}

#bundle fieldset{border:1px solid #aebcae;border-radius:.7rem;padding:1rem;margin-block:1rem}
#bundle label{display:inline-block;margin:.25rem .75rem .25rem 0}
#bundle-pages .sheet{color:#111}
@media print{#bundle-pages>.sheet+.sheet{break-before:page}#bundle-pages>.sheet{break-inside:avoid}}

.bundle-step{margin:24px 0;padding:clamp(16px,3vw,30px);background:#fffdf8;border:1px solid #e1d6c4;border-radius:18px}
.bundle-step h2{display:flex;align-items:center;gap:11px;font-size:clamp(1.08rem,2vw,1.5rem);margin:0 0 20px}.bundle-step h2>span{display:grid;place-items:center;min-width:34px;height:34px;border-radius:50%;color:white;background:#526f59}
.bundle-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#bundle .bundle-choice{display:grid;position:relative;justify-items:start;align-content:center;gap:8px;padding:16px 10px;margin:0;border:2px solid transparent;border-radius:14px;background:#f6e2cf;cursor:pointer;min-height:104px}
#bundle .bundle-choice.tone-sage{background:#e3ebda}#bundle .bundle-choice.tone-sand{background:#f4eacb}#bundle .bundle-choice.tone-rose{background:#f3ded8}
.bundle-choice input{position:absolute;top:9px;right:9px;width:18px;height:18px;accent-color:#42654f}.bundle-choice:focus-within{outline:3px solid #936738;outline-offset:2px}#bundle .bundle-choice:has(:checked){border-color:#42654f}.bundle-choice .tool-icon{width:auto;height:auto;background:none}
.bundle-common{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:18px;align-items:start}
#bundle .bundle-common>label{display:grid;gap:8px;margin:0;font-weight:700}#bundle .bundle-common>label:last-child{display:flex;align-items:center;min-height:44px}.bundle-common select{min-height:44px;border:1px solid #9baf99;border-radius:8px;background:#fff;padding:4px 10px}
.bundle-counter{display:flex;align-items:center;gap:9px;margin-top:8px}.bundle-counter button{width:44px;height:44px;border:1px solid #9baf99;background:white;border-radius:10px;color:#34553e;font-size:1.3rem}.bundle-counter output{min-width:3.5em;text-align:center;font-weight:700}.bundle-counter button:disabled{opacity:.45}
.bundle-details{margin-top:20px;border-top:1px solid #ded9cc;padding-top:10px}.bundle-details summary{cursor:pointer;padding:10px 0;font-weight:700}.bundle-details fieldset[hidden]{display:none}
#bundle-count{font-size:1.15rem;font-weight:700;margin-bottom:12px}#bundle .button{margin:0 4px 5px 0}#bundle button:disabled{cursor:default}
@media(max-width:750px){.bundle-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.bundle-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.bundle-step{margin:14px 0}.bundle-choice strong{font-size:.92rem}}

#bundle .bundle-common>[hidden]{display:none}

#bundle .button:disabled{background:#ebe9e1;color:#585d55;border-color:#d2d3c8}
