:root{
    --bg:#f5f7fb;--panel:#ffffff;--text:#172033;--muted:#67728a;--line:#dde4f0;
    --brand:#2563eb;--brand2:#0f766e;--soft:#eef4ff;--shadow:0 16px 40px rgba(15,23,42,.08);
    --radius:18px;--side:292px;--header:72px;
}
[data-theme="dark"]{--bg:#0f172a;--panel:#182235;--text:#eef2ff;--muted:#a8b3c7;--line:#2d3a54;--soft:#172554;--shadow:0 16px 40px rgba(0,0,0,.25)}
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.62}
a{color:inherit;text-decoration:none}.site-header{height:var(--header);display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:rgba(255,255,255,.82);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}[data-theme="dark"] .site-header{background:rgba(15,23,42,.82)}
.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--brand),var(--brand2));display:grid;place-items:center;color:white;font-weight:900;font-size:24px}.brand strong{display:block;font-size:19px}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:-3px}.header-tools{display:flex;gap:8px}.ghost-btn,.secondary-btn,.primary-btn,.icon-btn{border:0;border-radius:12px;padding:10px 14px;cursor:pointer;font-weight:800}.ghost-btn,.secondary-btn{background:var(--soft);color:var(--text)}.primary-btn{background:var(--brand);color:#fff}.icon-btn{background:transparent;color:var(--text);font-size:26px;line-height:1}.layout{display:grid;grid-template-columns:var(--side) 1fr;min-height:calc(100vh - var(--header))}.sidebar{border-right:1px solid var(--line);background:var(--panel);padding:20px;position:sticky;top:var(--header);height:calc(100vh - var(--header));overflow:auto}.sidebar-title{font-size:13px;color:var(--muted);font-weight:900;margin-bottom:12px}.menu-group{border:1px solid var(--line);border-radius:16px;margin-bottom:12px;overflow:hidden}.menu-heading{width:100%;border:0;background:var(--soft);color:var(--text);padding:13px 14px;font-weight:900;text-align:left;cursor:pointer}.menu-body{padding:12px}.menu-group.is-collapsed .menu-body{display:none}.grade-label{font-size:13px;color:var(--muted);font-weight:900;margin:10px 0 6px}.content-link{display:block;padding:10px 12px;border-radius:12px;margin-bottom:6px}.content-link:hover,.content-link.active{background:linear-gradient(90deg,rgba(37,99,235,.14),rgba(15,118,110,.1))}.content-link span{display:block;font-weight:900}.content-link small{display:block;color:var(--muted);font-size:12px}.side-note{font-size:12px;color:var(--muted);padding:10px}.content-area{padding:28px;max-width:1160px;width:100%;margin:0 auto}.ad-slot{border:1px dashed #aab7cf;background:rgba(255,255,255,.48);border-radius:16px;min-height:90px;display:grid;place-items:center;color:var(--muted);font-weight:800;margin-bottom:20px}.hero-card,.info-card,.seo-article{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.hero-card{padding:34px}.eyebrow{font-weight:900;color:var(--brand);margin:0 0 6px}.hero-card h1{font-size:clamp(28px,4vw,44px);line-height:1.16;margin:0 0 14px}.lead{font-size:18px;color:var(--muted);max-width:760px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.info-card{padding:24px}.info-card h2,.seo-article h2{margin-top:0}.seo-article{padding:28px;margin-bottom:20px}.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.62);z-index:50;display:none;align-items:center;justify-content:center;padding:22px}.modal-backdrop.is-open{display:flex}.modal{width:min(1180px,100%);max-height:92vh;background:var(--panel);border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.34);overflow:hidden}.modal-header{height:66px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px}.modal-header h2{font-size:20px}.modal-body{display:grid;grid-template-columns:300px 1fr;gap:18px;padding:18px;max-height:calc(92vh - 66px);overflow:auto}.settings-panel{border:1px solid var(--line);border-radius:18px;padding:16px;height:max-content;background:var(--bg)}.settings-panel label{display:block;font-weight:900;font-size:13px;margin-bottom:12px}.settings-panel input,.settings-panel select{width:100%;margin-top:6px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:12px;padding:11px}.settings-actions{display:grid;gap:8px}.worksheet-preview{background:#f1f5f9;border-radius:18px;padding:18px;overflow:auto}.a4-page{width:210mm;min-height:297mm;background:white;color:#111;margin:0 auto 18px;padding:15mm;box-shadow:0 8px 30px rgba(0,0,0,.16);font-family:Arial,"Noto Sans KR",sans-serif}.worksheet-head{display:flex;justify-content:space-between;border-bottom:2px solid #111;padding-bottom:8px;margin-bottom:12px}.worksheet-title{font-size:22px;font-weight:900}.name-box{min-width:62mm;border-bottom:1px solid #111}.question-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:14mm;row-gap:7mm;font-size:18px}.question-item{break-inside:avoid}.answer-grid{columns:4;font-size:14px}.print-only{display:none}
@media (max-width:860px){.layout{grid-template-columns:1fr}.sidebar{position:fixed;left:-310px;top:var(--header);width:292px;z-index:25;transition:left .2s}.sidebar.is-open{left:0}.content-area{padding:18px}.info-grid{grid-template-columns:1fr}.modal-body{grid-template-columns:1fr}.a4-page{width:100%;min-height:auto}.question-grid{grid-template-columns:1fr}}
@media print{body{background:#fff}.site-header,.sidebar,.ad-slot,.hero-card,.info-grid,.seo-article,.settings-panel,.modal-header{display:none!important}.layout{display:block}.content-area{padding:0;max-width:none}.modal-backdrop{position:static;display:block;background:#fff;padding:0}.modal{box-shadow:none;max-height:none;width:100%;border-radius:0}.modal-body{display:block;padding:0;max-height:none}.worksheet-preview{padding:0;background:#fff}.a4-page{box-shadow:none;margin:0;width:210mm;min-height:297mm;page-break-after:always}.print-only{display:block}@page{size:A4;margin:0}}

/* v1.1.0 광고/교육 팁/모바일 보강 */
.theme-emoji{font-size:20px;line-height:1;min-width:44px;padding:10px 12px}.ad-slot{position:relative;overflow:hidden;min-height:104px;padding:14px;border-style:solid;background:linear-gradient(135deg,rgba(255,255,255,.72),rgba(238,244,255,.68));display:block}.ad-slot::before{content:"AD";position:absolute;top:10px;right:12px;font-size:11px;font-weight:900;color:var(--muted);opacity:.6;letter-spacing:.08em}.ad-slot ins.adsbygoogle{min-height:90px}.ad-fallback{display:grid;gap:4px;align-content:center;min-height:76px;padding:10px 16px;border-radius:14px;background:rgba(255,255,255,.58);border:1px solid rgba(148,163,184,.35)}[data-theme="dark"] .ad-fallback{background:rgba(15,23,42,.42)}.ad-fallback-type{font-size:12px;font-weight:900;color:var(--brand)}.ad-fallback strong{font-size:16px}.ad-fallback p{margin:0;color:var(--muted);font-size:14px}.adsbygoogle[data-hje-pushed="1"] + .ad-fallback{display:none}.ad-not-loaded .ad-fallback{display:grid}.ad-not-loaded .adsbygoogle + .ad-fallback{display:grid}.info-grid{grid-template-columns:1fr minmax(220px,.72fr) 1fr;align-items:stretch}.info-grid .ad-slot{margin:0;min-height:auto}.seo-article .ad-slot{margin:18px 0}.ad-slot-after_hero{margin-top:20px}.ad-slot-bottom{margin-top:20px}.ad-slot-top{min-height:96px}
@media (max-width:1100px){.info-grid{grid-template-columns:1fr 1fr}.info-grid .ad-slot{grid-column:1/-1}}
@media (max-width:860px){:root{--header:64px}.site-header{padding:0 14px}.brand-mark{width:38px;height:38px;border-radius:12px;font-size:22px}.brand strong{font-size:17px}.brand small{font-size:11px}.header-tools{gap:6px}.ghost-btn,.secondary-btn,.primary-btn{padding:9px 12px}.content-area{width:100%;max-width:none}.hero-card{padding:24px}.lead{font-size:16px}.ad-slot{border-radius:14px;min-height:92px;padding:12px;margin-bottom:16px}.ad-fallback{padding:10px 12px}.ad-fallback strong{font-size:15px}.ad-fallback p{font-size:13px}.info-grid{grid-template-columns:1fr;gap:14px}.seo-article{padding:22px}.modal-backdrop{padding:0;align-items:stretch}.modal{width:100%;max-height:100vh;border-radius:0}.modal-body{max-height:calc(100vh - 66px)}}
@media (max-width:520px){.brand small{display:none}.sidebar{width:86vw;left:-90vw}.hero-card h1{font-size:26px}.hero-actions{display:grid}.hero-actions button{width:100%}.content-area{padding:14px}.info-card,.seo-article{padding:18px}.modal-body{padding:12px}.question-grid{font-size:16px}.worksheet-head{display:block}.name-box{margin-top:8px;display:block;min-width:0;width:100%}.ad-slot::before{top:8px;right:10px}.ad-fallback-type{font-size:11px}}
@media print{.ad-fallback{display:none!important}.theme-emoji{display:none!important}}

/* v1.2.0 초등 1학년 '9까지의 수' A4 전용 학습지 */
.numbers9-page{padding:10mm 11mm 9mm;background:#fffdf8;color:#1f2937;font-family:"Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif;position:relative;overflow:hidden}.numbers9-page::before{content:"";position:absolute;inset:5mm;border:1.5mm solid #fde68a;border-radius:8mm;pointer-events:none}.numbers9-page>*{position:relative}.numbers9-header{display:flex;justify-content:space-between;gap:10mm;align-items:flex-start;padding:3mm 5mm 4mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa}.numbers9-kicker{font-size:11px;font-weight:900;color:#0f766e;letter-spacing:.08em}.numbers9-title{font-size:25px;font-weight:1000;line-height:1.12;color:#1d4ed8}.numbers9-subtitle{font-size:12px;color:#64748b;font-weight:800;margin-top:1mm}.student-meta{display:grid;grid-template-columns:11mm 32mm;gap:3mm 2mm;align-items:center;font-size:12px;font-weight:900;min-width:46mm}.student-meta b{display:block;height:8mm;border-bottom:1.2px solid #334155}.numbers9-section{margin-top:3.2mm;padding:3mm 4mm;border:1px solid #e2e8f0;border-radius:6mm;background:rgba(255,255,255,.82)}.numbers9-section h3{display:flex;align-items:center;gap:2mm;margin:0 0 2.4mm;font-size:13px;line-height:1.2;color:#334155}.numbers9-section h3 span{width:7mm;height:7mm;border-radius:99px;background:#2563eb;color:white;display:grid;place-items:center;font-size:12px}.number-writing-row{display:grid;grid-template-columns:10mm 1fr;gap:2.4mm;align-items:center;margin-bottom:1.8mm}.number-word{width:9mm;height:9mm;border-radius:3mm;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:21px;font-weight:1000}.number-practice{display:grid;grid-template-columns:13mm repeat(8,1fr);gap:1.35mm}.number-sample,.trace-number,.write-cell{height:9mm;border:1.2px solid #cbd5e1;border-radius:2.4mm;display:grid;place-items:center;background:white;font-size:21px;font-weight:1000}.trace-number{color:#cbd5e1;border-style:dashed}.write-cell{background:repeating-linear-gradient(to bottom,#fff 0,#fff 4.2mm,#eef2f7 4.3mm,#eef2f7 4.55mm)}.count-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.2mm}.count-card,.circle-card{border:1.2px solid #dbe4f0;border-radius:4mm;background:#fff;padding:2mm;min-height:24mm;position:relative}.mini-no{position:absolute;top:1.5mm;left:1.5mm;width:5.5mm;height:5.5mm;border-radius:50%;background:#fef3c7;color:#92400e;display:grid;place-items:center;font-size:10px;font-weight:900}.object-group{min-height:12mm;padding-left:6mm;font-size:18px;line-height:1.25;letter-spacing:.6mm}.object-group span{display:inline-block;margin:.3mm}.answer-box{height:7mm;margin-top:1.5mm;border:1.5px solid #94a3b8;border-radius:2mm;background:#f8fafc}.circle-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2.2mm}.circle-card{min-height:22mm}.object-group.small{font-size:16px;min-height:8mm}.choice-row{display:flex;gap:2.5mm;justify-content:center;margin-top:1mm}.choice-pill{width:10mm;height:10mm;border:1.4px solid #94a3b8;border-radius:999px;display:grid;place-items:center;font-size:16px;font-weight:1000;background:#fff}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:3mm}.compare-card{display:grid;grid-template-columns:25mm 1fr 18mm;gap:3mm;align-items:center;padding:2mm;border-radius:3mm;background:#f8fafc;border:1px solid #dbe4f0}.compare-card strong{font-size:12px;color:#0f766e}.compare-card em{font-size:20px;font-style:normal;font-weight:1000;text-align:center;letter-spacing:1mm}.compare-card b{height:9mm;border:1.5px solid #94a3b8;border-radius:2mm;background:white}.numbers9-footer{text-align:center;margin-top:3mm;font-size:13px;font-weight:1000;color:#be123c}.numbers-answer-page .answer-section{border:1px solid #dbe4f0;border-radius:5mm;padding:5mm;margin:5mm 0;font-size:18px}.numbers-answer-page p{font-size:18px}.ad-slot + .hero-card{margin-top:0}
@media (max-width:860px){.numbers9-page{width:210mm;min-height:297mm}.worksheet-preview{overflow:auto}.number-practice{grid-template-columns:13mm repeat(8,17mm)}}
@media print{.numbers9-page{padding:10mm 11mm 9mm;print-color-adjust:exact;-webkit-print-color-adjust:exact}.numbers9-page::before{border-width:1.2mm}.numbers9-section{break-inside:avoid}.numbers-answer-page{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* v1.3.0 다쪽 균형 조판 + 교사용 답안지 */
.numbers9-header.compact{padding-top:3mm;padding-bottom:3mm}.student-meta.compact{grid-template-columns:10mm 28mm;min-width:42mm}.write-section.roomy{margin-top:6mm;padding:5mm}.write-section.roomy .number-writing-row{margin-bottom:3.6mm}.write-section.roomy .number-word,.write-section.roomy .number-sample,.write-section.roomy .trace-number,.write-section.roomy .write-cell{height:11mm}.count-grid.balanced{grid-template-columns:repeat(2,1fr);gap:4mm}.count-grid.balanced .count-card{min-height:37mm;padding:3mm}.count-grid.balanced .object-group{font-size:22px;min-height:22mm;line-height:1.35;padding-left:8mm}.count-grid.balanced .answer-box{height:10mm;margin-top:2mm}.circle-grid.balanced{gap:4mm}.circle-grid.balanced .circle-card{min-height:34mm;padding:3mm}.circle-grid.balanced .object-group.small{font-size:20px;min-height:16mm;padding-left:8mm}.circle-grid.balanced .choice-pill{width:13mm;height:13mm;font-size:18px}.numbers-answer-head{border:1px solid #dbe4f0;border-radius:7mm;background:linear-gradient(135deg,#eff6ff,#f8fafc);padding:6mm;margin-bottom:7mm}.numbers-answer-head.teacher{background:linear-gradient(135deg,#ecfdf5,#eff6ff)}.numbers-answer-head p{margin:2mm 0 0;color:#475569;font-size:14px;font-weight:700}.teacher-answer-page{background:#fbfffb}.teacher-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:5mm}.teacher-answer-page .answer-section{background:#fff}.teacher-tip-box{margin-top:6mm;border:1.5px solid #bbf7d0;background:#f0fdf4;border-radius:5mm;padding:5mm;font-size:15px}.teacher-tip-box strong{display:block;color:#047857;font-size:18px;margin-bottom:2mm}.teacher-tip-box ul{margin:0;padding-left:6mm}.teacher-tip-box li{margin:1.5mm 0}.teacher-answer-page .answer-grid{margin-top:6mm;border-top:1px solid #dbe4f0;padding-top:5mm}
@media print{.numbers9-page-1,.numbers9-page-2,.teacher-answer-page,.answer-page{break-after:page;page-break-after:always}.teacher-answer-page{print-color-adjust:exact;-webkit-print-color-adjust:exact}.teacher-answer-grid{break-inside:avoid}}
@media (max-width:860px){.count-grid.balanced{grid-template-columns:repeat(2,1fr)}.teacher-answer-grid{grid-template-columns:1fr}}

/* v6: 9까지의 수 - A4 한 장에 하나의 활동만 배치하는 균형형 조판 */
.numbers9-one-page{padding:12mm 12mm 11mm;background:#fffdf8;display:flex;flex-direction:column;gap:5mm}
.numbers9-one-page::before{inset:5mm;border-width:1.2mm;border-radius:8mm}
.numbers9-one-page .numbers9-header{min-height:28mm;align-items:center;padding:5mm 7mm;border-radius:7mm}
.numbers9-one-page .numbers9-title{font-size:26px;line-height:1.15}
.numbers9-one-page .numbers9-subtitle{font-size:13px;margin-top:1.5mm}
.numbers9-one-page .student-meta{grid-template-columns:12mm 34mm;gap:3mm 2mm;font-size:12px}
.numbers9-one-page .student-meta b{height:8mm}
.numbers9-section.single-content{flex:1;margin-top:0;padding:6mm;border-radius:7mm;display:flex;flex-direction:column}
.numbers9-section.single-content h3{font-size:16px;margin-bottom:5mm}
.numbers9-section.single-content h3 span{width:9mm;height:9mm;font-size:14px}
.numbers9-one-page .numbers9-footer{margin-top:auto;padding:3mm 0 0;font-size:15px}

/* 1쪽: 숫자 쓰기 */
.numbers9-writing-page .write-section{justify-content:center}
.number-writing-row.one-content{grid-template-columns:13mm 1fr;gap:3mm;margin-bottom:4mm}
.number-writing-row.one-content .number-word{width:12mm;height:12mm;font-size:25px;border-radius:4mm}
.number-writing-row.one-content .number-practice{grid-template-columns:15mm repeat(6,1fr) 22mm 22mm;gap:2mm}
.number-writing-row.one-content .number-sample,
.number-writing-row.one-content .trace-number,
.number-writing-row.one-content .write-cell{height:12mm;font-size:24px;border-radius:3mm}

/* 2쪽/3쪽: 카드형 활동 */
.one-content-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6mm;align-content:stretch;flex:1}
.one-content-card{border:1.4px solid #dbe4f0;border-radius:6mm;background:#fff;position:relative;box-shadow:0 2mm 7mm rgba(15,23,42,.04)}
.count-card.one-content-card,.circle-card.one-content-card{min-height:auto;padding:6mm 5mm 5mm;display:flex;flex-direction:column;justify-content:space-between}
.one-content-card .mini-no{top:3mm;left:3mm;width:8mm;height:8mm;font-size:12px;background:#fef3c7;color:#92400e}
.object-group.big{padding-left:9mm;min-height:31mm;font-size:27px;line-height:1.45;letter-spacing:.8mm;display:flex;align-content:flex-start;align-items:flex-start;flex-wrap:wrap}
.object-group.big span{margin:.6mm .8mm}
.answer-box.large{height:13mm;margin-top:4mm;border-width:1.7px;border-radius:3mm}
.choice-object{min-height:35mm}
.choice-row.large{gap:5mm;margin-top:5mm;justify-content:center}
.choice-row.large .choice-pill{width:17mm;height:17mm;font-size:22px;border-width:1.6px}

/* 4쪽: 수 비교 */
.compare-grid.one-content-grid{grid-template-columns:1fr;gap:5mm}
.compare-card.one-content-card{display:grid;grid-template-columns:38mm 1fr 28mm;align-items:center;gap:6mm;min-height:24mm;padding:5mm 6mm 5mm 15mm;border-radius:5mm}
.compare-card.one-content-card strong{font-size:16px;color:#0f766e}
.compare-card.one-content-card em{font-size:28px;letter-spacing:1.4mm;font-style:normal;font-weight:1000;text-align:center;color:#1e293b}
.compare-card.one-content-card b{height:14mm;border:1.7px solid #94a3b8;border-radius:3mm;background:#fff}

@media print{
  .numbers9-one-page{height:297mm;min-height:297mm;max-height:297mm;padding:12mm 12mm 11mm;overflow:hidden;break-after:page;page-break-after:always;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .numbers9-section.single-content{break-inside:avoid;page-break-inside:avoid}
  .one-content-card{break-inside:avoid;page-break-inside:avoid}
}

@media (max-width:860px){
  .numbers9-one-page{width:210mm;min-height:297mm}
  .one-content-grid{grid-template-columns:repeat(2,1fr)}
}

/* v7: 95점 기준 A4 조판 로직 - 한 장에 한 콘텐츠, 고정 높이 균형 배치 */
.numbers9-quality-page{
  width:210mm;height:297mm;min-height:297mm;max-height:297mm;
  padding:12mm 13mm 11mm;background:#fffdf8;color:#1f2937;
  display:flex;flex-direction:column;gap:6mm;overflow:hidden;
  font-family:"Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif;
  position:relative;box-sizing:border-box;
}
.numbers9-quality-page::before{content:"";position:absolute;inset:5mm;border:1.15mm solid #fde68a;border-radius:8mm;pointer-events:none}.numbers9-quality-page>*{position:relative}.numbers9-quality-header{min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:8mm;padding:5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa;box-sizing:border-box}.numbers9-quality-header .numbers9-title{font-size:25px;font-weight:1000;line-height:1.12;color:#1d4ed8;letter-spacing:-.02em}.numbers9-quality-header .numbers9-subtitle{font-size:12.5px;color:#64748b;font-weight:800;margin-top:1.4mm}.quality-title-block{min-width:0}.numbers9-quality-body{flex:1;min-height:0;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.88);padding:6mm;box-sizing:border-box}.quality-section-title{display:grid;grid-template-columns:10mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:5mm}.quality-section-title span{grid-row:1 / 3;width:9mm;height:9mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:14px;font-weight:1000}.quality-section-title strong{font-size:17px;color:#334155;line-height:1.15}.quality-section-title small{font-size:11.5px;color:#64748b;font-weight:800;margin-top:.8mm}.numbers9-quality-footer{min-height:12mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm;box-sizing:border-box}.numbers9-quality-footer span{font-size:14px;font-weight:1000;color:#be123c}.numbers9-quality-footer em{font-size:11px;font-style:normal;color:#64748b;font-weight:900}.numbers9-quality-page .student-meta{grid-template-columns:12mm 34mm;gap:3mm 2mm;font-size:12px;font-weight:900;min-width:48mm}.numbers9-quality-page .student-meta b{height:8mm;border-bottom:1.2px solid #334155}

/* v7-1 숫자 쓰기: 1~9 전체, 하단 보완 활동 포함 */
.quality-writing-grid{display:grid;grid-template-rows:repeat(9,1fr);gap:2.6mm;flex:1}.quality-write-row{display:grid;grid-template-columns:13mm 1fr;gap:3mm;align-items:center}.quality-number-badge{width:12mm;height:12mm;border-radius:4mm;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:24px;font-weight:1000}.quality-practice{display:grid;grid-template-columns:15mm repeat(6,1fr) repeat(3,20mm);gap:1.7mm}.quality-practice .number-sample,.quality-practice .trace-number,.quality-practice .write-cell{height:11.4mm;border:1.2px solid #cbd5e1;border-radius:3mm;display:grid;place-items:center;background:white;font-size:22px;font-weight:1000;box-sizing:border-box}.quality-practice .trace-number{color:#cbd5e1;border-style:dashed}.quality-practice .write-cell{background:repeating-linear-gradient(to bottom,#fff 0,#fff 4.8mm,#eef2f7 4.9mm,#eef2f7 5.15mm)}.quality-bottom-activity{margin-top:4.5mm;min-height:21mm;border-radius:5mm;border:1.2px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:38mm repeat(3,1fr);gap:3mm;align-items:center;padding:4mm;box-sizing:border-box}.quality-bottom-activity strong{font-size:13px;color:#1d4ed8}.quality-bottom-activity i{height:11mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#fff}.quality-bottom-activity small{grid-column:1 / -1;color:#64748b;font-size:11px;font-weight:800}

/* v7-2 세기: 8문항 2x4 균형 */
.quality-count-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,1fr);gap:4.5mm;flex:1}.quality-count-card{position:relative;border:1.3px solid #dbe4f0;border-radius:6mm;background:#fff;box-shadow:0 2mm 7mm rgba(15,23,42,.04);padding:6mm 5mm 5mm;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;min-height:0}.quality-count-card .answer-box.large{height:12mm;margin-top:3mm;border:1.7px solid #94a3b8;border-radius:3mm;background:#f8fafc;box-sizing:border-box}

/* v7-3 선택: 6문항 2x3 넓은 선택지 */
.quality-choice-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:5mm;flex:1}.quality-choice-card{position:relative;border:1.3px solid #dbe4f0;border-radius:6mm;background:#fff;box-shadow:0 2mm 7mm rgba(15,23,42,.04);padding:6mm 5mm 5mm;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;min-height:0}.quality-choice-card .choice-row.large{display:flex;gap:5mm;justify-content:center;margin-top:3mm}.quality-choice-card .choice-pill{width:16mm;height:16mm;border:1.6px solid #94a3b8;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:21px;font-weight:1000}.quality-check-strip{margin-top:4.5mm;border-radius:5mm;background:#f0fdf4;border:1.2px solid #bbf7d0;color:#047857;font-weight:1000;font-size:13px;text-align:center;padding:3mm;box-sizing:border-box}

/* v7-4 비교: 수직선 + 8문항 2x4 */
.quality-number-line{display:grid;grid-template-columns:repeat(9,1fr);gap:1.4mm;margin-bottom:4mm;background:#f8fafc;border:1px solid #dbe4f0;border-radius:5mm;padding:3mm;box-sizing:border-box}.quality-number-line span{height:10mm;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-size:16px;font-weight:1000;display:grid;place-items:center}.quality-compare-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,1fr);gap:4.5mm;flex:1}.quality-compare-card{position:relative;border:1.3px solid #dbe4f0;border-radius:6mm;background:#fff;box-shadow:0 2mm 7mm rgba(15,23,42,.04);display:grid;grid-template-columns:34mm 1fr 22mm;align-items:center;gap:4mm;padding:4mm 5mm 4mm 14mm;box-sizing:border-box;min-height:0}.quality-compare-card strong{font-size:14px;color:#0f766e}.quality-compare-card em{font-size:25px;font-style:normal;font-weight:1000;text-align:center;letter-spacing:1.2mm;color:#1e293b}.quality-compare-card b{height:12mm;border:1.7px solid #94a3b8;border-radius:3mm;background:#fff}

/* 이모지 대신 CSS 도형으로 인쇄 안정성 확보 */
.quality-objects{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:2mm;min-height:25mm;padding-left:10mm}.quality-choice-card .quality-objects{min-height:29mm}.count-object{width:8mm;height:8mm;display:inline-block;position:relative;box-sizing:border-box;flex:0 0 auto}.count-object-apple{border-radius:45% 45% 50% 50%;background:#ef4444}.count-object-apple::after{content:"";position:absolute;width:3mm;height:1.6mm;background:#16a34a;border-radius:99px;top:-1mm;left:4.8mm;transform:rotate(-25deg)}.count-object-star{background:#fbbf24;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 35%)}.count-object-flower{background:#f472b6;border-radius:50%;box-shadow:3mm 0 #f472b6,-3mm 0 #f472b6,0 3mm #f472b6,0 -3mm #f472b6}.count-object-flower::after{content:"";position:absolute;inset:2.4mm;background:#facc15;border-radius:50%}.count-object-pencil{width:13mm;height:4mm;border-radius:1mm;background:linear-gradient(90deg,#f97316 0 75%,#fef3c7 75% 90%,#475569 90%);transform:rotate(-25deg);margin-top:2mm}.count-object-ball,.count-object-circle{border-radius:50%;background:#fde68a;border:1.4px solid #f59e0b}.count-object-ball::before{content:"";position:absolute;inset:2mm;border-radius:50%;border:1px dashed #92400e}.count-object-chick{border-radius:50%;background:#facc15}.count-object-chick::before{content:"";position:absolute;width:2mm;height:2mm;border-radius:50%;background:#111827;top:2mm;right:2mm}.count-object-chick::after{content:"";position:absolute;border-left:2.5mm solid #f97316;border-top:1.4mm solid transparent;border-bottom:1.4mm solid transparent;right:-2mm;top:3mm}.count-object-cloud{width:11mm;height:6mm;border-radius:4mm;background:#cbd5e1;margin-top:2mm}.count-object-cloud::before,.count-object-cloud::after{content:"";position:absolute;border-radius:50%;background:#cbd5e1}.count-object-cloud::before{width:6mm;height:6mm;left:1.2mm;top:-2.5mm}.count-object-cloud::after{width:7mm;height:7mm;right:1mm;top:-3.2mm}.count-object-clover{background:#22c55e;border-radius:50%;box-shadow:3mm 0 #22c55e,0 3mm #22c55e,3mm 3mm #22c55e;transform:scale(.72);transform-origin:left top}.count-object-bear{border-radius:45%;background:#c08457}.count-object-bear::before,.count-object-bear::after{content:"";position:absolute;width:3mm;height:3mm;border-radius:50%;background:#c08457;top:-1.4mm}.count-object-bear::before{left:.4mm}.count-object-bear::after{right:.4mm}.count-object-bear{box-shadow:inset 0 -2mm rgba(255,255,255,.22)}.mini-no{position:absolute;top:3mm;left:3mm;width:8mm;height:8mm;border-radius:50%;background:#fef3c7;color:#92400e;display:grid;place-items:center;font-size:12px;font-weight:1000;z-index:1}

.numbers9-quality-answer{height:297mm;min-height:297mm;max-height:297mm;padding:13mm;background:#fffdf8;box-sizing:border-box;overflow:hidden}.numbers9-quality-answer .numbers9-quality-header{margin-bottom:8mm}.quality-answer-grid{display:grid;grid-template-columns:1fr;gap:6mm}.numbers9-quality-answer .answer-section{border:1.2px solid #dbe4f0;background:#fff;border-radius:6mm;padding:6mm;font-size:17px}.numbers9-quality-answer .answer-section p{font-size:18px;font-weight:900;line-height:1.7}.teacher-answer-page.numbers9-quality-answer{background:#fbfffb}.teacher-answer-page .teacher-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:5mm}.teacher-answer-page .teacher-tip-box{margin-top:6mm;border:1.5px solid #bbf7d0;background:#f0fdf4;border-radius:5mm;padding:5mm;font-size:15px}.teacher-answer-page .teacher-tip-box strong{display:block;color:#047857;font-size:18px;margin-bottom:2mm}.teacher-answer-page .teacher-tip-box ul{margin:0;padding-left:6mm}.teacher-answer-page .teacher-tip-box li{margin:1.5mm 0}

@media print{
  .numbers9-quality-page,.numbers9-quality-answer{width:210mm;height:297mm;min-height:297mm;max-height:297mm;margin:0;box-shadow:none;break-after:page;page-break-after:always;print-color-adjust:exact;-webkit-print-color-adjust:exact;overflow:hidden}
  .quality-count-card,.quality-choice-card,.quality-compare-card,.quality-write-row{break-inside:avoid;page-break-inside:avoid}
}
@media (max-width:860px){.numbers9-quality-page,.numbers9-quality-answer{width:210mm;height:297mm;min-height:297mm}.worksheet-preview{overflow:auto}}

/* v8: 97점 기준 A4 조판 로직 - 전용 인쇄창에서도 동일한 구조로 출력 */
.numbers9-v8-page{width:210mm;height:297mm;min-height:297mm;max-height:297mm;padding:12mm 12mm 10mm;background:#fffdf8;color:#1f2937;display:flex;flex-direction:column;gap:5mm;overflow:hidden;font-family:"Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif;position:relative;box-sizing:border-box}.numbers9-v8-page::before,.numbers9-v8-answer::before{content:"";position:absolute;inset:5mm;border:1.1mm solid #fde68a;border-radius:8mm;pointer-events:none}.numbers9-v8-page>*,.numbers9-v8-answer>*{position:relative}.numbers9-v8-page .numbers9-quality-header{height:31mm;min-height:31mm;display:flex;justify-content:space-between;align-items:center;gap:8mm;padding:5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa;box-sizing:border-box}.numbers9-v8-page .numbers9-title{font-size:24px;font-weight:1000;line-height:1.12;color:#1d4ed8;letter-spacing:-.02em}.numbers9-v8-page .numbers9-subtitle{font-size:12px;color:#64748b;font-weight:800;margin-top:1.2mm}.numbers9-v8-body{height:224mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.9);padding:5.5mm;box-sizing:border-box}.numbers9-v8-footer{height:12mm;min-height:12mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm;box-sizing:border-box}.numbers9-v8-footer span{font-size:14px;font-weight:1000;color:#be123c}.numbers9-v8-footer em{font-size:11px;font-style:normal;color:#64748b;font-weight:900}.v8-section-title{display:grid;grid-template-columns:10mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:4mm;flex:0 0 auto}.v8-section-title span{grid-row:1/3;width:9mm;height:9mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:14px;font-weight:1000}.v8-section-title strong{font-size:17px;color:#334155;line-height:1.15}.v8-section-title small{font-size:11.5px;color:#64748b;font-weight:800;margin-top:.7mm}.v8-writing-grid{display:grid;grid-template-rows:repeat(9,1fr);gap:2.2mm;flex:1}.v8-write-row{display:grid;grid-template-columns:13mm 1fr;gap:2.8mm;align-items:center;min-height:0}.v8-number-badge{width:12mm;height:12mm;border-radius:4mm;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:24px;font-weight:1000}.v8-practice{display:grid;grid-template-columns:var(--practice-template,13mm repeat(4,11mm) repeat(3,19mm));gap:var(--practice-gap,1.45mm);align-items:center}.v8-practice .number-sample,.v8-practice .trace-number,.v8-practice .write-cell{height:11.2mm;border:1.2px solid #cbd5e1;border-radius:3mm;display:grid;place-items:center;background:#fff;font-size:22px;font-weight:1000;box-sizing:border-box}.v8-practice .trace-number{color:#cbd5e1;border-style:dashed}.v8-practice .write-cell{background:repeating-linear-gradient(to bottom,#fff 0,#fff 4.8mm,#eef2f7 4.9mm,#eef2f7 5.15mm)}.v8-bottom-activity{height:19mm;margin-top:3.5mm;border-radius:5mm;border:1.2px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:38mm repeat(3,1fr);gap:3mm;align-items:center;padding:3.5mm;box-sizing:border-box}.v8-bottom-activity strong{font-size:13px;color:#1d4ed8}.v8-bottom-activity i{height:10mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#fff}.v8-bottom-activity small{grid-column:1/-1;color:#64748b;font-size:11px;font-weight:800}.v8-count-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,1fr);gap:4.2mm;flex:1}.v8-count-card,.v8-choice-card{position:relative;border:1.3px solid #dbe4f0;border-radius:6mm;background:#fff;box-shadow:0 2mm 7mm rgba(15,23,42,.04);padding:6mm 5mm 5mm;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;min-height:0}.v8-count-card .answer-box.large{height:12mm;margin-top:3mm;border:1.7px solid #94a3b8;border-radius:3mm;background:#f8fafc;box-sizing:border-box}.v8-choice-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:5mm;flex:1}.v8-choice-card .choice-row.large{display:flex;gap:5mm;justify-content:center;margin-top:3mm}.v8-choice-card .choice-pill{width:16mm;height:16mm;border:1.6px solid #94a3b8;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:21px;font-weight:1000}.v8-check-strip{height:12mm;margin-top:4mm;border-radius:5mm;background:#f0fdf4;border:1.2px solid #bbf7d0;color:#047857;font-weight:1000;font-size:13px;display:grid;place-items:center;box-sizing:border-box}.v8-number-line{display:grid;grid-template-columns:repeat(9,1fr);gap:1.4mm;margin-bottom:4mm;background:#f8fafc;border:1px solid #dbe4f0;border-radius:5mm;padding:3mm;box-sizing:border-box}.v8-number-line span{height:10mm;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-size:16px;font-weight:1000;display:grid;place-items:center}.v8-compare-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,1fr);gap:4.5mm;flex:1}.v8-compare-card{position:relative;border:1.3px solid #dbe4f0;border-radius:6mm;background:#fff;box-shadow:0 2mm 7mm rgba(15,23,42,.04);display:grid;grid-template-columns:34mm 1fr 22mm;align-items:center;gap:4mm;padding:4mm 5mm 4mm 14mm;box-sizing:border-box;min-height:0}.v8-compare-card strong{font-size:14px;color:#0f766e}.v8-compare-card em{font-size:25px;font-style:normal;font-weight:1000;text-align:center;letter-spacing:1.2mm;color:#1e293b}.v8-compare-card b{height:12mm;border:1.7px solid #94a3b8;border-radius:3mm;background:#fff}.v8-objects{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:2mm;min-height:25mm;padding-left:10mm}.v8-choice-card .v8-objects{min-height:29mm}.numbers9-v8-answer{width:210mm;height:297mm;min-height:297mm;max-height:297mm;padding:13mm;background:#fffdf8;box-sizing:border-box;overflow:hidden;position:relative}.numbers9-v8-answer .numbers9-quality-header{height:31mm;margin-bottom:8mm}.v8-answer-grid{display:grid;grid-template-columns:1fr;gap:6mm}.numbers9-v8-answer .answer-section{border:1.2px solid #dbe4f0;background:#fff;border-radius:6mm;padding:6mm;font-size:17px}.numbers9-v8-answer .answer-section p{font-size:18px;font-weight:900;line-height:1.7}.teacher-answer-page.numbers9-v8-answer{background:#fbfffb}.teacher-answer-page .teacher-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:5mm}
@media print{.numbers9-v8-page,.numbers9-v8-answer{width:210mm;height:297mm;min-height:297mm;max-height:297mm;margin:0;box-shadow:none;break-after:page;page-break-after:always;print-color-adjust:exact;-webkit-print-color-adjust:exact;overflow:hidden}.numbers9-v8-page:last-child,.numbers9-v8-answer:last-child{break-after:auto;page-break-after:auto}.v8-count-card,.v8-choice-card,.v8-compare-card,.v8-write-row{break-inside:avoid;page-break-inside:avoid}}
@media (max-width:860px){.numbers9-v8-page,.numbers9-v8-answer{width:210mm;height:297mm;min-height:297mm}.worksheet-preview{overflow:auto}}


/* v9 교사용 답안지: 정답·채점·지도 포인트를 한 장에서 보는 세련형 레이아웃 */
.teacher-answer-v9{background:#fbfffb}.teacher-answer-v9 .numbers9-quality-header{margin-bottom:5mm}.teacher-v9-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:3mm;margin-bottom:5mm}.teacher-v9-summary div{border:1.2px solid #dbeafe;background:linear-gradient(135deg,#eff6ff,#f8fafc);border-radius:4mm;padding:3mm;text-align:center}.teacher-v9-summary span{display:block;font-size:10px;font-weight:900;color:#64748b;margin-bottom:.8mm}.teacher-v9-summary strong{display:block;font-size:15px;font-weight:1000;color:#1d4ed8;letter-spacing:-.02em}.teacher-v9-main{display:grid;grid-template-columns:1fr 1fr;gap:4mm}.teacher-v9-panel{border:1.25px solid #dbe4f0;background:#fff;border-radius:5mm;padding:4mm;box-shadow:0 1mm 5mm rgba(15,23,42,.035);min-height:0}.teacher-v9-panel.full{grid-column:1/-1}.teacher-v9-panel.compact{padding-bottom:3.5mm}.teacher-v9-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:3mm;margin-bottom:3mm;border-bottom:1px solid #e2e8f0;padding-bottom:2mm}.teacher-v9-panel-head b{font-size:15px;font-weight:1000;color:#0f172a}.teacher-v9-panel-head em{font-size:10.5px;font-style:normal;font-weight:900;color:#0f766e;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:999px;padding:1mm 2.5mm;white-space:nowrap}.teacher-v9-answer-table{display:grid;gap:2.2mm}.teacher-v9-row{display:grid;grid-template-columns:36mm 1fr;align-items:center;gap:3mm;padding:2.6mm 3mm;border-radius:3.5mm;background:#f8fafc;border:1px solid #e2e8f0}.teacher-v9-row strong{font-size:12.5px;color:#334155}.teacher-v9-row p{margin:0;display:flex;flex-wrap:wrap;gap:1.6mm 2.4mm;font-size:17px;font-weight:1000;color:#111827;line-height:1.2}.teacher-v9-row p span{width:5.5mm;height:5.5mm;border-radius:50%;display:inline-grid;place-items:center;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:1000;margin-right:-1.2mm}.teacher-v9-checklist{list-style:none;margin:0;padding:0;display:grid;gap:2.2mm}.teacher-v9-checklist li{display:grid;grid-template-columns:5.5mm 1fr;gap:2mm;align-items:start;font-size:12.5px;font-weight:800;color:#334155;line-height:1.35}.teacher-v9-checklist li span{width:4.8mm;height:4.8mm;border:1.3px solid #94a3b8;border-radius:1.4mm;background:#fff}.teacher-v9-diagnosis{display:grid;gap:2.5mm}.teacher-v9-diagnosis dl{margin:0;padding:2.5mm 3mm;border-radius:3.5mm;background:#f0fdf4;border:1px solid #bbf7d0}.teacher-v9-diagnosis dt{font-size:12px;font-weight:1000;color:#047857;margin-bottom:.8mm}.teacher-v9-diagnosis dd{margin:0;font-size:11.6px;font-weight:750;color:#334155;line-height:1.35}.teacher-v9-tips{display:grid;grid-template-columns:1fr 1fr 1fr;gap:3mm}.teacher-v9-tips p{margin:0;border-radius:3.5mm;background:#fff7ed;border:1px solid #fed7aa;padding:3mm;font-size:11.8px;font-weight:750;line-height:1.4;color:#334155}.teacher-v9-tips strong{display:block;color:#be123c;font-size:12.5px;font-weight:1000;margin-bottom:1mm}.teacher-v9-footer{margin-top:4mm;border:1.2px dashed #bfdbfe;background:#eff6ff;border-radius:5mm;padding:3mm;display:grid;grid-template-columns:22mm repeat(3,1fr);gap:3mm;align-items:center}.teacher-v9-footer strong{font-size:12.5px;color:#1d4ed8}.teacher-v9-footer i{height:8mm;border:1.2px solid #93c5fd;border-radius:2.5mm;background:#fff}


/* v10: A4 안전 조판 보정 + 교사용 답안지 직관형 */
.v8-practice{grid-template-columns:var(--practice-template,13mm repeat(4,11mm) repeat(3,19mm))!important;gap:var(--practice-gap,1.45mm)!important;align-items:center}
.v8-practice .number-sample,.v8-practice .trace-number,.v8-practice .write-cell{height:10.2mm!important;font-size:20px!important}
.v8-writing-grid{gap:1.5mm!important}.v8-number-badge{width:11mm!important;height:11mm!important;font-size:22px!important}.v8-bottom-activity{height:16mm!important;margin-top:2.6mm!important;padding:2.7mm!important}.v8-bottom-activity i{height:8.5mm!important}.v8-count-grid{gap:3.2mm!important}.v8-count-card,.v8-choice-card{padding:5mm 5mm 4.5mm!important}.v8-count-card .answer-box.large,.answer-box.large{height:10mm!important}.v8-objects{min-height:22mm!important;gap:1.7mm!important}.count-object{width:7.5mm!important;height:7.5mm!important}.v8-choice-card .v8-objects{min-height:27mm!important}.v8-check-strip{height:10mm!important}.numbers9-v8-footer{height:11mm!important;min-height:11mm!important}.numbers9-v8-body{height:225mm!important}
.teacher-answer-v10{background:#fbfffb;padding:11mm 12mm 9mm}.teacher-answer-v10 .numbers9-quality-header{height:29mm;min-height:29mm}.teacher-v10-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:3mm}.teacher-v10-summary div{border:1px solid #dbeafe;background:linear-gradient(135deg,#eff6ff,#f8fafc);border-radius:4mm;padding:2.6mm;text-align:center}.teacher-v10-summary span{display:block;font-size:9.5px;font-weight:900;color:#64748b}.teacher-v10-summary strong{display:block;font-size:14px;font-weight:1000;color:#1d4ed8;margin-top:.5mm}.teacher-v10-answer-zone{border:1.2px solid #dbe4f0;background:#fff;border-radius:5mm;padding:3.5mm}.teacher-v10-title{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #e2e8f0;padding-bottom:2mm;margin-bottom:3mm}.teacher-v10-title strong{font-size:15px;font-weight:1000}.teacher-v10-title span{font-size:10.5px;font-weight:800;color:#64748b}.teacher-v10-answer-cards{display:grid;grid-template-columns:1fr;gap:2.5mm}.teacher-v10-answer-cards article{display:grid;grid-template-columns:36mm 1fr;align-items:center;gap:3mm;border:1px solid #e2e8f0;background:#f8fafc;border-radius:3.5mm;padding:2.5mm}.teacher-v10-answer-cards h4{margin:0;font-size:12px;color:#334155}.teacher-v10-chips{display:flex;flex-wrap:wrap;gap:1.3mm}.teacher-v10-chips b,.teacher-v10-chips em{height:6.4mm;min-width:6.4mm;display:inline-grid;place-items:center;font-style:normal;font-weight:1000}.teacher-v10-chips b{border-radius:50%;background:#dbeafe;color:#1d4ed8;font-size:9.5px}.teacher-v10-chips em{border-radius:1.8mm;background:#fff;border:1px solid #cbd5e1;color:#111827;font-size:13px;margin-right:1.4mm}.teacher-v10-grid{display:grid;grid-template-columns:1fr 1fr;gap:3mm}.teacher-v10-box{border:1.2px solid #dbe4f0;background:#fff;border-radius:5mm;padding:3.5mm}.teacher-v10-box.green{background:#f0fdf4;border-color:#bbf7d0}.teacher-v10-box.orange{background:#fff7ed;border-color:#fed7aa}.teacher-v10-box.wide{grid-column:1/-1}.teacher-v10-box h3{margin:0 0 2.5mm;font-size:13.5px;color:#0f172a}.teacher-v10-checks{margin:0;padding:0;list-style:none;display:grid;gap:1.8mm}.teacher-v10-checks li{position:relative;padding-left:6mm;font-size:11.3px;font-weight:800;line-height:1.35;color:#334155}.teacher-v10-checks li::before{content:"";position:absolute;left:0;top:.6mm;width:3.8mm;height:3.8mm;border:1.1px solid #94a3b8;border-radius:1mm;background:#fff}.teacher-v10-dl{margin:0;display:grid;gap:1.4mm}.teacher-v10-dl dt{font-size:11px;font-weight:1000;color:#047857}.teacher-v10-dl dd{margin:0 0 1.1mm;font-size:10.6px;font-weight:750;line-height:1.32;color:#334155}.teacher-v10-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:2.5mm}.teacher-v10-flow p{margin:0;background:#fff;border:1px solid #fed7aa;border-radius:3.5mm;padding:2.5mm}.teacher-v10-flow b{display:block;font-size:11.5px;color:#be123c;margin-bottom:.8mm}.teacher-v10-flow span{font-size:10.7px;font-weight:750;line-height:1.35;color:#334155}.teacher-v10-memo{height:15mm;border:1.1px dashed #bfdbfe;background:#eff6ff;border-radius:5mm;padding:2.5mm;display:grid;grid-template-columns:22mm 1fr 1fr;gap:3mm;align-items:center}.teacher-v10-memo strong{font-size:12px;color:#1d4ed8}.teacher-v10-memo i{height:8mm;border:1.1px solid #93c5fd;border-radius:2.5mm;background:#fff}


/* v11: A4 97점 목표 보정 — 4쪽 비교 카드 가로 넘침 방지, 교사용 답안표 가독성 강화 */
.v8-compare-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:3.8mm!important;
  width:100%!important;
  overflow:hidden!important;
}
.v8-compare-card{
  min-width:0!important;
  width:100%!important;
  grid-template-columns:26mm minmax(0,1fr) 18mm!important;
  gap:2.6mm!important;
  padding:3.5mm 3.5mm 3.5mm 11.5mm!important;
  overflow:hidden!important;
}
.v8-compare-card strong{
  font-size:12.2px!important;
  white-space:nowrap!important;
  letter-spacing:-.04em!important;
}
.v8-compare-card em{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:1.2mm!important;
  min-width:0!important;
  width:100%!important;
  font-size:0!important;
  letter-spacing:0!important;
  text-align:center!important;
}
.v8-compare-card em span{
  min-width:0!important;
  height:10mm!important;
  display:grid!important;
  place-items:center!important;
  border-radius:3mm!important;
  background:#f8fafc!important;
  border:1px solid #e2e8f0!important;
  color:#111827!important;
  font-size:20px!important;
  font-weight:1000!important;
  line-height:1!important;
}
.v8-compare-card b{
  width:18mm!important;
  height:10mm!important;
  justify-self:end!important;
}
.v8-number-line{
  width:100%!important;
  overflow:hidden!important;
}
.teacher-v10-answer-cards article{
  grid-template-columns:34mm minmax(0,1fr)!important;
  min-width:0!important;
}
.teacher-v10-chips{
  min-width:0!important;
  gap:1mm!important;
}
.teacher-v10-chips b,.teacher-v10-chips em{
  height:6mm!important;
  min-width:6mm!important;
}
.teacher-v10-chips b{font-size:9px!important}
.teacher-v10-chips em{font-size:12px!important;margin-right:1mm!important}
@media print{
  .v8-compare-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;overflow:hidden!important}
  .v8-compare-card{break-inside:avoid;page-break-inside:avoid;overflow:hidden!important}
}

/* v12: 로컬 설정 초기화 버튼 */
.reset-btn{background:#fff7ed!important;border:1px solid #fed7aa!important;color:#9a3412!important}
.reset-btn:hover{filter:brightness(.98)}

/* v13: 4쪽 비교 활동을 한 줄 카드형으로 재조판하고, 학생용 정답지를 카드형으로 개선 */
.v8-compare-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:repeat(8,1fr)!important;
  gap:2.7mm!important;
  width:100%!important;
  overflow:hidden!important;
}
.v13-compare-row{
  position:relative;
  min-width:0!important;
  overflow:hidden!important;
  border:1.2px solid #dbe4f0;
  border-radius:5mm;
  background:#fff;
  display:grid;
  grid-template-columns:30mm minmax(0,1fr) 34mm;
  align-items:center;
  gap:4mm;
  padding:2.8mm 4mm 2.8mm 12mm;
  box-shadow:0 1mm 4mm rgba(15,23,42,.035);
}
.v13-compare-row.is-max{background:linear-gradient(90deg,#fff,#eff6ff)}
.v13-compare-row.is-min{background:linear-gradient(90deg,#fff,#f0fdf4)}
.v13-compare-row strong{font-size:13.2px;font-weight:1000;color:#0f766e;white-space:nowrap;letter-spacing:-.04em}
.compare-number-chips{display:flex!important;justify-content:center;gap:3.2mm;min-width:0!important;font-style:normal!important;font-size:0!important;letter-spacing:0!important}
.compare-number-chips span{width:12.2mm;height:12.2mm;border-radius:50%;display:grid!important;place-items:center;background:#f8fafc;border:1.2px solid #cbd5e1;color:#1e293b;font-size:20px!important;font-weight:1000;line-height:1}
.compare-answer-box{height:11.5mm;width:100%;border:1.6px solid #94a3b8;border-radius:3mm;background:#fff;display:block}
.student-answer-v13{background:#fffdf8;padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm}
.student-answer-v13 .numbers9-quality-header{height:30mm;min-height:30mm;margin-bottom:0}
.student-answer-v13-hero{border:1.2px solid #fed7aa;background:linear-gradient(135deg,#fff7ed,#fffbeb);border-radius:5mm;padding:4mm 5mm;display:flex;justify-content:space-between;gap:5mm;align-items:center}
.student-answer-v13-hero strong{font-size:18px;font-weight:1000;color:#be123c;white-space:nowrap}
.student-answer-v13-hero span{font-size:12px;font-weight:800;color:#64748b;line-height:1.4}
.student-answer-v13-grid{display:grid;grid-template-columns:1fr;gap:4mm;flex:1;min-height:0}
.student-answer-v13-grid article{border:1.2px solid #dbe4f0;background:#fff;border-radius:5mm;padding:4.5mm 5mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035)}
.student-answer-v13-grid h3{margin:0 0 3mm;font-size:15px;font-weight:1000;color:#1d4ed8;border-bottom:1px solid #e2e8f0;padding-bottom:2mm}
.student-answer-v13-grid article>div{display:flex;flex-wrap:wrap;gap:2.3mm 3.5mm}
.student-answer-pair{display:inline-flex;align-items:center;gap:1.2mm;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:1mm 2mm}
.student-answer-pair b{width:6.6mm;height:6.6mm;border-radius:50%;display:grid;place-items:center;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:1000}
.student-answer-pair em{min-width:7mm;height:7mm;border-radius:2mm;display:grid;place-items:center;background:#fff;color:#111827;font-size:15px;font-weight:1000;font-style:normal}
.student-answer-v13-note{height:16mm;border:1.2px dashed #bfdbfe;background:#eff6ff;border-radius:5mm;padding:3mm;display:grid;grid-template-columns:28mm repeat(3,1fr);align-items:center;gap:3mm}
.student-answer-v13-note b{font-size:12px;color:#1d4ed8}.student-answer-v13-note i{height:8mm;border:1.1px solid #93c5fd;border-radius:2.5mm;background:#fff}
@media print{
  .v13-compare-row{break-inside:avoid;page-break-inside:avoid}
}


/* v14: 숫자쓰기 반복 칸 8~9 반영 및 낮은 반복 수의 불필요한 빈칸 제거 */
.v14-practice{display:grid!important;grid-template-columns:var(--practice-template)!important;gap:var(--practice-gap,1.2mm)!important;min-width:0!important}
.v14-practice .number-sample,.v14-practice .trace-number{height:10.2mm!important;border-radius:3mm!important;font-size:20px!important;min-width:0!important;box-sizing:border-box!important}
.v14-practice .trace-number{background:#fff!important}
.v14-practice .write-cell{display:none!important}

/* v14: 4쪽 큰 수/작은 수 페이지 강제 재조판. 기존 v8/v13 규칙보다 우선 적용 */
.numbers9-compare-v8 .v8-compare-grid{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:repeat(8,1fr)!important;gap:2.6mm!important;flex:1!important;min-height:0!important}
.v14-compare-row{position:relative!important;border:1.2px solid #dbe4f0!important;border-radius:4.5mm!important;background:#fff!important;display:grid!important;grid-template-columns:9mm 29mm minmax(0,1fr) 35mm!important;align-items:center!important;gap:3.2mm!important;padding:2.2mm 4mm!important;min-width:0!important;min-height:0!important;box-sizing:border-box!important;box-shadow:0 1mm 4mm rgba(15,23,42,.035)!important;break-inside:avoid!important;page-break-inside:avoid!important}
.v14-compare-row.is-max{background:linear-gradient(90deg,#fff,#eff6ff)!important}.v14-compare-row.is-min{background:linear-gradient(90deg,#fff,#f0fdf4)!important}
.v14-compare-no{width:7.2mm!important;height:7.2mm!important;border-radius:50%!important;background:#fef3c7!important;color:#b45309!important;font-size:10px!important;font-weight:1000!important;display:grid!important;place-items:center!important}
.v14-compare-label{font-size:12.8px!important;font-weight:1000!important;color:#0f766e!important;white-space:nowrap!important;letter-spacing:-.05em!important}
.v14-compare-numbers{display:flex!important;justify-content:center!important;gap:3mm!important;min-width:0!important;overflow:hidden!important}
.v14-compare-numbers span{width:11.2mm!important;height:11.2mm!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#fff!important;border:1.2px solid #cbd5e1!important;color:#1e293b!important;font-size:19px!important;font-weight:1000!important;box-sizing:border-box!important}
.v14-compare-answer{height:10.5mm!important;border:1.6px solid #94a3b8!important;border-radius:3mm!important;background:#fff!important;box-sizing:border-box!important}

/* v15 various shapes worksheet */
.shapes-page,.shapes-answer-page{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8}
.shapes-page::before,.shapes-answer-page::before{content:"";position:absolute;inset:5mm;border:1mm solid #fde68a;border-radius:8mm;pointer-events:none}
.shapes-page>*,.shapes-answer-page>*{position:relative}
.shapes-header{height:30mm;min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa}
.shapes-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.shapes-title{font-size:23px;font-weight:1000;line-height:1.08;color:#1d4ed8;letter-spacing:-.02em}.shapes-subtitle{font-size:11.5px;color:#64748b;font-weight:800;margin-top:1mm}.shapes-title-block{min-width:0}
.shapes-body{height:225mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.92);padding:5mm;min-height:0}.shapes-footer{height:11mm;min-height:11mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.shapes-footer span{font-size:13px;font-weight:1000;color:#be123c}.shapes-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}
.shape-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:3mm;flex:0 0 auto}.shape-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.shape-section-title strong{font-size:16px;color:#334155;line-height:1.1}.shape-section-title small{font-size:10.8px;color:#64748b;font-weight:800;margin-top:.5mm}
.shape-icon{width:11mm;height:11mm;display:inline-block;position:relative;flex:0 0 auto}.shape-icon.large{width:22mm;height:22mm}.shape-icon.target{width:25mm;height:25mm}.shape-circle{border-radius:50%;background:#ef4444;border:1.2px solid #dc2626}.shape-triangle{width:0!important;height:0!important;border-left:6mm solid transparent;border-right:6mm solid transparent;border-bottom:11mm solid #f59e0b}.shape-triangle.large{border-left-width:11mm;border-right-width:11mm;border-bottom-width:21mm}.shape-triangle.target{border-left-width:12.5mm;border-right-width:12.5mm;border-bottom-width:24mm}.shape-square{border-radius:2mm;background:#22c55e;border:1.2px solid #16a34a}.shape-rectangle{width:17mm;height:10mm;border-radius:2mm;background:#60a5fa;border:1.2px solid #2563eb}.shape-rectangle.large{width:29mm;height:18mm}.shape-rectangle.target{width:33mm;height:20mm}
.shape-name-grid{display:grid;grid-template-rows:repeat(4,1fr);gap:4mm;flex:1;min-height:0}.shape-name-row{display:grid;grid-template-columns:54mm 1fr;gap:4mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:4mm}.shape-name-left{display:grid;grid-template-columns:24mm 1fr;grid-template-rows:auto auto;align-items:center;column-gap:3mm}.shape-name-left .shape-icon{grid-row:1/3}.shape-name-left strong{font-size:20px;font-weight:1000;color:#1d4ed8}.shape-name-left small{font-size:10.5px;font-weight:800;color:#64748b}.shape-word-practice{display:grid;grid-template-columns:repeat(var(--shape-repeat),1fr);gap:2mm}.shape-trace-word{height:13mm;border:1.2px dashed #cbd5e1;border-radius:3mm;display:grid;place-items:center;color:#cbd5e1;background:#fff;font-size:18px;font-weight:1000}.shape-bottom-activity{height:18mm;margin-top:3mm;border-radius:5mm;border:1.1px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:39mm repeat(3,1fr);gap:3mm;align-items:center;padding:3mm}.shape-bottom-activity strong{font-size:12px;color:#1d4ed8}.shape-bottom-activity i{height:9mm;border:1.2px solid #93c5fd;border-radius:3mm;background:#fff}.shape-bottom-activity small{grid-column:1/-1;color:#64748b;font-size:10.2px;font-weight:800}
.shape-find-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0}.shape-find-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:4mm;display:grid;grid-template-rows:24mm 1fr;gap:3mm}.shape-mini-no{position:absolute;left:4mm;top:4mm;width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.shape-find-target{display:flex;align-items:center;justify-content:center;gap:8mm}.shape-find-target span{font-size:12px;font-weight:1000;color:#334155}.shape-choice-icons{display:grid;grid-template-columns:repeat(4,1fr);gap:3mm;align-items:center}.shape-choice-item{height:28mm;border:1.1px solid #e2e8f0;border-radius:4mm;background:#f8fafc;display:grid;place-items:center;position:relative}.shape-choice-item b{position:absolute;bottom:2mm;width:7mm;height:7mm;border:1.3px solid #94a3b8;border-radius:50%;background:#fff}
.shape-count-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0}.shape-count-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:4mm;display:flex;flex-direction:column;gap:2.5mm;min-height:0}.shape-count-question{display:flex;align-items:center;gap:2mm;font-size:12px;font-weight:900;color:#334155}.shape-count-question .shape-icon{width:8mm;height:8mm}.shape-count-question .shape-triangle{border-left-width:4mm!important;border-right-width:4mm!important;border-bottom-width:8mm!important}.shape-mixed-items{flex:1;min-height:0;display:flex;flex-wrap:wrap;align-content:center;gap:3mm 4mm;padding:1mm 4mm}.shape-answer-box{height:10mm;border:1.5px solid #94a3b8;border-radius:3mm;background:#f8fafc}
.shape-classify-bank{height:85mm;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:4mm;padding:6mm;margin-bottom:5mm}.shape-classify-bank .shape-icon{width:13mm;height:13mm}.shape-classify-bank .shape-triangle{border-left-width:6.5mm!important;border-right-width:6.5mm!important;border-bottom-width:13mm!important}.shape-classify-grid{display:grid;grid-template-columns:1fr 1fr;gap:4mm;flex:1}.shape-classify-box{border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;display:grid;grid-template-columns:1fr 33mm;align-items:center;gap:3mm;padding:4mm}.shape-classify-box div{display:flex;align-items:center;gap:3mm}.shape-classify-box strong{font-size:16px;color:#1d4ed8}.shape-classify-box i{height:11mm;border:1.4px solid #94a3b8;border-radius:3mm;background:#f8fafc}.shape-check-strip{height:10mm;border-radius:5mm;background:#f0fdf4;border:1px solid #bbf7d0;color:#047857;font-size:12px;font-weight:900;display:grid;place-items:center;margin-top:3mm}
.shapes-answer-page{background:#fffdf8}.shapes-student-answer-grid article{min-height:42mm}.shapes-teacher-answer .teacher-v10-answer-cards article{grid-template-columns:40mm 1fr}.shapes-teacher-answer .teacher-v10-chips em{font-size:11px;min-width:8mm;padding:0 1.5mm}


/* v17: 여러가지 모양 97점 조판 개선 */
.shape-name-row-v17{
  display:grid!important;
  grid-template-columns:24mm 30mm minmax(0,1fr)!important;
  align-items:center!important;
  gap:4mm!important;
  min-width:0!important;
  overflow:hidden!important;
  padding:3.5mm 4mm!important;
}
.shape-name-row-v17 .shape-name-icon{display:grid!important;place-items:center!important;min-width:0!important;overflow:visible!important}
.shape-name-row-v17 .shape-name-label{display:flex!important;flex-direction:column!important;gap:1.2mm!important;min-width:0!important;overflow:hidden!important}
.shape-name-row-v17 .shape-name-label strong{font-size:19px!important;line-height:1!important;font-weight:1000!important;color:#1d4ed8!important;white-space:nowrap!important;letter-spacing:-.04em!important}
.shape-name-row-v17 .shape-name-label small{font-size:10.2px!important;line-height:1.15!important;font-weight:900!important;color:#64748b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.shape-name-row-v17 .shape-icon.large{max-width:22mm!important;max-height:22mm!important}
.shape-name-row-v17 .shape-rectangle.large{width:24mm!important;height:15mm!important}
.shape-name-row-v17 .shape-word-practice{display:grid!important;grid-template-columns:repeat(var(--shape-repeat),minmax(0,1fr))!important;gap:1.8mm!important;min-width:0!important}
.shape-name-row-v17 .shape-trace-word{height:12.5mm!important;font-size:16px!important;min-width:0!important;white-space:nowrap!important;letter-spacing:-.07em!important}

.shape-classify-v17-guide{height:13mm;display:flex;align-items:center;justify-content:space-between;gap:4mm;border:1.1px solid #bfdbfe;border-radius:5mm;background:#eff6ff;padding:0 5mm;margin-bottom:3mm;flex:0 0 auto}
.shape-classify-v17-guide b{font-size:12px;color:#1d4ed8;font-weight:1000;white-space:nowrap}.shape-classify-v17-guide span{font-size:11px;color:#475569;font-weight:900;text-align:right}
.shape-classify-board-v17{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:4mm;flex:1;min-height:0;align-items:stretch}
.shape-classify-bank-v17{height:auto!important;margin:0!important;min-height:0!important;align-content:center!important;justify-content:center!important;gap:3.2mm!important;padding:5mm!important;overflow:hidden!important;background:linear-gradient(180deg,#fff,#f8fafc)!important}
.shape-classify-bank-v17 .shape-icon{width:12.2mm!important;height:12.2mm!important}.shape-classify-bank-v17 .shape-rectangle{width:17.5mm!important;height:10.5mm!important}.shape-classify-bank-v17 .shape-triangle{border-left-width:6mm!important;border-right-width:6mm!important;border-bottom-width:12mm!important}
.shape-classify-grid-v17{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:repeat(4,1fr)!important;gap:3mm!important;min-width:0!important;min-height:0!important;flex:auto!important}
.shape-classify-box-v17{display:grid!important;grid-template-columns:minmax(0,1fr) 31mm!important;align-items:center!important;gap:3mm!important;border:1.2px solid #dbe4f0!important;border-radius:4.5mm!important;background:#fff!important;padding:3mm 3.5mm!important;min-height:0!important;box-shadow:0 1mm 4mm rgba(15,23,42,.035)!important}
.shape-classify-title{display:flex!important;align-items:center!important;gap:2.4mm!important;min-width:0!important}.shape-classify-title .shape-icon{width:9mm!important;height:9mm!important}.shape-classify-title .shape-rectangle{width:13mm!important;height:7.5mm!important}.shape-classify-title .shape-triangle{border-left-width:4.5mm!important;border-right-width:4.5mm!important;border-bottom-width:9mm!important}.shape-classify-title strong{font-size:14px!important;font-weight:1000!important;color:#1d4ed8!important;white-space:nowrap!important}
.shape-classify-answer{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:1.5mm!important;align-items:center!important;min-width:0!important}.shape-classify-answer span,.shape-classify-answer em{font-size:10.5px!important;font-style:normal!important;color:#64748b!important;font-weight:900!important}.shape-classify-answer i{height:9.5mm!important;border:1.5px solid #93c5fd!important;border-radius:3mm!important;background:#fff!important}
.shapes-classify-page .shape-check-strip{height:9mm!important;margin-top:2.5mm!important;flex:0 0 auto!important}

@media print{
  .shape-name-row-v17{grid-template-columns:24mm 30mm minmax(0,1fr)!important}
  .shape-classify-board-v17{grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr)!important}
}

/* v18 addition/subtraction 97% A4 layout - screen preview */
.addsub-page,.addsub-answer-page{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8}
.addsub-page::before,.addsub-answer-page::before{content:"";position:absolute;inset:5mm;border:1mm solid #fde68a;border-radius:8mm;pointer-events:none}.addsub-page>*,.addsub-answer-page>*{position:relative}
.addsub-header{height:30mm;min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa}.addsub-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.addsub-title{font-size:22px;font-weight:1000;line-height:1.08;color:#1d4ed8;letter-spacing:-.02em}.addsub-subtitle{font-size:11.5px;color:#64748b;font-weight:800;margin-top:1mm}.addsub-title-block{min-width:0}
.addsub-body{height:225mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.92);padding:5mm}.addsub-footer{height:11mm;min-height:11mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.addsub-footer span{font-size:13px;font-weight:1000;color:#be123c}.addsub-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}
.addsub-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:3mm;flex:0 0 auto}.addsub-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.addsub-section-title strong{font-size:16px;color:#334155;line-height:1.1}.addsub-section-title small{font-size:10.8px;color:#64748b;font-weight:800;margin-top:.5mm}
.addsub-picture-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0}.addsub-picture-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:5mm;display:flex;flex-direction:column;justify-content:space-between;min-height:0;box-shadow:0 1mm 4mm rgba(15,23,42,.035)}.addsub-no{position:absolute;left:4mm;top:4mm;width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.addsub-picture-row{display:grid;grid-template-columns:1fr 8mm 1fr;align-items:center;gap:2mm;margin-top:4mm}.addsub-picture-row strong{font-size:20px;color:#1d4ed8;text-align:center}.addsub-objects{min-height:24mm;display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:1.8mm;padding:1mm}.addsub-objects.wide{min-height:32mm;justify-content:flex-start;padding-left:10mm}.addsub-objects .count-object{width:7.2mm;height:7.2mm}.count-object.is-removed{opacity:.35;filter:grayscale(.25);position:relative}.count-object.is-removed::after{content:"";position:absolute;left:-.8mm;right:-.8mm;top:50%;height:1.2px;background:#ef4444;transform:rotate(-28deg);border-radius:99px}.addsub-equation,.addsub-eq-line{display:flex;align-items:center;justify-content:center;gap:3mm}.addsub-equation span,.addsub-eq-line span{width:10mm;height:10mm;border-radius:3mm;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;font-size:18px;font-weight:1000}.addsub-equation b,.addsub-eq-line b{font-size:18px;color:#334155}.addsub-equation i,.addsub-eq-line i{width:25mm;height:10mm;border:1.4px solid #94a3b8;border-radius:3mm;background:#f8fafc}
.addsub-eq-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0}.addsub-eq-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:8mm 5mm 5mm;display:flex;flex-direction:column;justify-content:center;gap:5mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035)}.addsub-eq-card small{text-align:center;font-size:11px;font-weight:900;color:#64748b}.addsub-eq-card.add{background:linear-gradient(180deg,#fff,#f0fdf4)}.addsub-eq-card.sub{background:linear-gradient(180deg,#fff,#eff6ff)}
.addsub-mixed-list{display:grid;grid-template-rows:repeat(8,1fr);gap:3mm;flex:1;min-height:0}.addsub-mixed-row{position:relative;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;display:grid;grid-template-columns:30mm 1fr;align-items:center;gap:3mm;padding:3mm 5mm 3mm 13mm;min-height:0;box-shadow:0 1mm 4mm rgba(15,23,42,.035)}.addsub-symbol{height:9mm;border-radius:99px;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:12px;font-weight:1000}.addsub-mixed-row.add .addsub-symbol{background:#dcfce7;color:#047857}.addsub-mixed-row.sub .addsub-symbol{background:#dbeafe;color:#1d4ed8}.addsub-mixed-row .addsub-eq-line{justify-content:flex-start}.addsub-check-strip{height:10mm;margin-top:3mm;border-radius:5mm;background:#f0fdf4;border:1px solid #bbf7d0;color:#047857;font-weight:1000;font-size:12px;display:grid;place-items:center}
.addsub-answer-page{background:#fffdf8}.addsub-student-answer-grid{grid-template-columns:1fr 1fr}.addsub-student-answer-grid article{min-height:38mm}.addsub-teacher-answer .teacher-v10-answer-cards{grid-template-columns:1fr}.addsub-teacher-answer .teacher-v10-answer-cards article{grid-template-columns:38mm 1fr}.addsub-teacher-answer .teacher-v10-chips em{font-size:12px;min-width:7mm}


/* v19 random recomposition button */
.random-btn{
  border-color:#bfdbfe;
  background:linear-gradient(180deg,#eff6ff,#ffffff);
  color:#1d4ed8;
  font-weight:900;
}
.random-btn:hover{
  background:#dbeafe;
}
@media (max-width: 520px){
  .settings-actions .random-btn{width:100%;}
}

/* v20 comparison worksheet 97% A4 layout */
.compare-page,.compare-answer-page{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8}
.compare-page::before,.compare-answer-page::before{content:"";position:absolute;inset:5mm;border:1mm solid #fde68a;border-radius:8mm;pointer-events:none}.compare-page>*,.compare-answer-page>*{position:relative}
.compare-header{height:30mm;min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa}.compare-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.compare-title{font-size:22px;font-weight:1000;line-height:1.08;color:#1d4ed8;letter-spacing:-.02em}.compare-subtitle{font-size:11.5px;color:#64748b;font-weight:800;margin-top:1mm}.compare-title-block{min-width:0}
.compare-body{height:225mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.92);padding:5mm;min-height:0}.compare-footer{height:11mm;min-height:11mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.compare-footer span{font-size:13px;font-weight:1000;color:#be123c}.compare-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}
.compare-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:3mm;flex:0 0 auto}.compare-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.compare-section-title strong{font-size:16px;color:#334155;line-height:1.1}.compare-section-title small{font-size:10.8px;color:#64748b;font-weight:800;margin-top:.5mm}
.compare-word-grid{display:grid;grid-template-rows:repeat(5,1fr);gap:3.3mm;flex:1;min-height:0}.compare-word-row{display:grid;grid-template-columns:18mm 42mm minmax(0,1fr);gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:3.2mm 4mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0}.compare-word-icon{width:13mm;height:13mm;border-radius:4mm;background:#dbeafe;position:relative}.compare-word-icon-1::before,.compare-word-icon-1::after{content:"";position:absolute;bottom:2mm;width:4mm;background:#60a5fa;border-radius:2mm}.compare-word-icon-1::before{left:3mm;height:5mm}.compare-word-icon-1::after{right:3mm;height:9mm}.compare-word-icon-2{border-radius:50%;background:#dcfce7}.compare-word-icon-2::after{content:"=";position:absolute;inset:0;display:grid;place-items:center;color:#047857;font-weight:1000;font-size:14px}.compare-word-icon-3::before,.compare-word-icon-3::after{content:"";position:absolute;left:2mm;height:2.5mm;border-radius:99px;background:#f59e0b}.compare-word-icon-3::before{top:3mm;width:9mm}.compare-word-icon-3::after{top:8mm;width:5mm}.compare-word-icon-4::before,.compare-word-icon-4::after{content:"";position:absolute;bottom:2mm;width:4mm;border-radius:2mm;background:#22c55e}.compare-word-icon-4::before{left:3mm;height:10mm}.compare-word-icon-4::after{right:3mm;height:6mm}.compare-word-icon-5::before,.compare-word-icon-5::after{content:"";position:absolute;border-radius:50%;bottom:2mm;background:#fbbf24;border:1px solid #d97706}.compare-word-icon-5::before{left:2mm;width:7mm;height:7mm}.compare-word-icon-5::after{right:2mm;width:4.5mm;height:4.5mm}.compare-word-label{display:flex;flex-direction:column;gap:1mm;min-width:0}.compare-word-label strong{font-size:17px;font-weight:1000;color:#1d4ed8;white-space:nowrap}.compare-word-label small{font-size:10.3px;font-weight:900;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compare-word-practice{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1.7mm;min-width:0}.compare-trace-word{height:11.8mm;border:1.2px dashed #cbd5e1;border-radius:3mm;display:grid;place-items:center;background:#fff;color:#cbd5e1;font-size:15.2px;font-weight:1000;white-space:nowrap;letter-spacing:-.08em}.compare-bottom-activity{height:16mm;margin-top:2.5mm;border-radius:5mm;border:1.1px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:32mm repeat(3,1fr);gap:3mm;align-items:center;padding:2.7mm}.compare-bottom-activity strong{font-size:12px;color:#1d4ed8}.compare-bottom-activity i{height:8.5mm;border:1.2px solid #93c5fd;border-radius:3mm;background:#fff}.compare-bottom-activity small{grid-column:1/-1;color:#64748b;font-size:10.2px;font-weight:800}
.compare-choice-grid,.compare-side-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0}.compare-choice-card,.compare-side-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:5mm;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0}.compare-mini-no{position:absolute;left:4mm;top:4mm;width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.compare-pair-objects{display:grid;grid-template-columns:1fr 8mm 1fr;gap:2mm;align-items:center;margin-top:4mm}.compare-pair-objects>div{min-height:22mm;display:flex;flex-wrap:wrap;gap:1.4mm;align-content:center;justify-content:center}.compare-pair-objects b{height:18mm;border-left:1px dashed #cbd5e1;justify-self:center}.compare-sentence{text-align:center;font-size:12px;font-weight:1000;color:#475569}.compare-choice-row{display:flex;justify-content:center;gap:2.5mm}.compare-choice-row span{width:18mm;height:10mm;border:1.3px solid #94a3b8;border-radius:999px;background:#fff;display:grid;place-items:center;font-size:14px;font-weight:1000;color:#1e293b}.compare-side-title{font-size:14px;font-weight:1000;color:#1d4ed8;text-align:center;margin-top:1mm}.compare-side-card.less .compare-side-title{color:#047857}.compare-side-groups{display:grid;grid-template-columns:1fr 1fr;gap:3mm;flex:1;min-height:0}.compare-side-groups article{border:1px solid #e2e8f0;border-radius:4mm;background:#f8fafc;padding:3mm;display:flex;flex-wrap:wrap;gap:1.4mm;align-content:center;justify-content:center;position:relative}.compare-side-groups em{position:absolute;top:1.5mm;left:2mm;font-size:9px;font-style:normal;font-weight:900;color:#64748b}
.compare-measure-list{display:grid;grid-template-rows:repeat(6,1fr);gap:3mm;flex:1;min-height:0}.compare-measure-row{position:relative;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;display:grid;grid-template-columns:28mm minmax(0,1fr) 42mm;gap:4mm;align-items:center;padding:3mm 5mm 3mm 13mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0}.compare-measure-label{font-size:13px;font-weight:1000;color:#0f766e;white-space:nowrap}.measure-visual{height:22mm;display:flex;align-items:flex-end;justify-content:center;gap:10mm;background:#f8fafc;border:1px solid #e2e8f0;border-radius:4mm;padding:2mm;min-width:0}.measure-visual.length{align-items:center}.measure-visual.length span{height:4mm;width:calc(var(--w) * 5mm);border-radius:99px;background:#60a5fa;border:1px solid #2563eb}.measure-visual.height span{width:8mm;height:calc(var(--h) * 2mm);border-radius:2mm;background:#22c55e;border:1px solid #16a34a}.measure-visual.weight span{width:calc(var(--s) * 1.8mm);height:calc(var(--s) * 1.8mm);border-radius:50%;background:#fbbf24;border:1px solid #d97706}.compare-answer-choices{display:flex;gap:2mm}.compare-answer-choices span{height:10mm;flex:1;border:1.3px solid #94a3b8;border-radius:999px;display:grid;place-items:center;background:#fff;font-size:12px;font-weight:1000}.compare-check-strip{height:10mm;margin-top:3mm;border-radius:5mm;background:#f0fdf4;border:1px solid #bbf7d0;color:#047857;font-weight:1000;font-size:12px;display:grid;place-items:center}.compare-student-answer-grid article{min-height:42mm}.compare-teacher-answer .teacher-v10-answer-cards{grid-template-columns:1fr}.compare-teacher-answer .teacher-v10-answer-cards article{grid-template-columns:38mm 1fr}.compare-teacher-answer .teacher-v10-chips em{font-size:11px;min-width:8mm;padding:0 1.5mm}
@media print{.compare-word-row,.compare-choice-card,.compare-side-card,.compare-measure-row{break-inside:avoid;page-break-inside:avoid}}


/* v21 numbers to 50 worksheet 97% A4 layout */
.n50-page,.n50-answer-page{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8;color:#1f2937}
.n50-page::before,.n50-answer-page::before{content:"";position:absolute;inset:5mm;border:1mm solid #fde68a;border-radius:8mm;pointer-events:none}.n50-page>*,.n50-answer-page>*{position:relative}
.n50-header{height:30mm;min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa}.n50-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.n50-title{font-size:22px;font-weight:1000;line-height:1.08;color:#1d4ed8;letter-spacing:-.02em}.n50-subtitle{font-size:11.5px;color:#64748b;font-weight:800;margin-top:1mm}.n50-title-block{min-width:0}
.n50-body{height:225mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.92);padding:5mm;min-height:0}.n50-footer{height:11mm;min-height:11mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.n50-footer span{font-size:13px;font-weight:1000;color:#be123c}.n50-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}
.n50-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:3mm;flex:0 0 auto}.n50-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.n50-section-title strong{font-size:16px;color:#334155;line-height:1.1}.n50-section-title small{font-size:10.8px;color:#64748b;font-weight:800;margin-top:.5mm}
.n50-blocks{display:flex;flex-wrap:wrap;gap:1.6mm;align-items:center;justify-content:center}.n50-ten{width:13mm;height:10mm;border:1.2px solid #60a5fa;border-radius:3mm;background:#eff6ff;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,1fr);gap:.6mm;padding:1mm}.n50-ten i{display:block;border-radius:50%;background:#2563eb}.n50-one{width:3.2mm;height:3.2mm;border-radius:50%;background:#f59e0b;border:1px solid #d97706}
.n50-tens-grid{display:grid;grid-template-rows:repeat(5,1fr);gap:3mm;flex:1;min-height:0}.n50-tens-card{display:grid;grid-template-columns:74mm minmax(0,1fr);gap:4mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:3mm 4mm;min-height:0;box-shadow:0 1mm 4mm rgba(15,23,42,.035)}.n50-tens-visual{min-width:0}.n50-tens-write{display:grid;grid-template-columns:13mm repeat(4,minmax(0,1fr)) 18mm;gap:1.5mm;align-items:center;min-width:0}.n50-tens-write b,.n50-tens-write i,.n50-tens-write em{height:10mm;border-radius:3mm;display:grid;place-items:center;font-size:17px;font-weight:1000}.n50-tens-write b{background:#dbeafe;color:#1d4ed8}.n50-tens-write i{font-style:normal;border:1.2px dashed #cbd5e1;color:#cbd5e1;background:#fff}.n50-tens-write em{border:1.3px solid #93c5fd;background:#eff6ff}
.n50-bottom-activity{height:17mm;margin-top:2.5mm;border-radius:5mm;border:1.1px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:32mm repeat(3,1fr);gap:3mm;align-items:center;padding:2.7mm}.n50-bottom-activity strong{font-size:12px;color:#1d4ed8}.n50-bottom-activity i{height:8.5mm;border:1.2px solid #93c5fd;border-radius:3mm;background:#fff}.n50-bottom-activity small{grid-column:1/-1;color:#64748b;font-size:10.2px;font-weight:800}
.n50-read-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,1fr);gap:3.5mm;flex:1;min-height:0}.n50-read-card{position:relative;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:4mm;display:grid;grid-template-rows:28mm 8mm 10mm;gap:2mm;align-items:center;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0}.n50-read-card>b{position:absolute;left:3mm;top:3mm;width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.n50-place{display:flex;justify-content:center;gap:2mm}.n50-place span{border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;padding:1mm 2.5mm;font-size:10.5px;font-weight:900;color:#64748b}.n50-place strong{font-size:12px;color:#1d4ed8}.n50-answer-box{height:10mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#eff6ff;display:grid;place-items:center;color:#1d4ed8;font-size:12px;font-weight:1000}
.n50-seq-list{display:grid;grid-template-rows:repeat(8,1fr);gap:3mm;flex:1;min-height:0}.n50-seq-row{display:grid;grid-template-columns:8mm minmax(0,1fr) 40mm;gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:3mm 4mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0}.n50-seq-row>b{width:7mm;height:7mm;border-radius:50%;background:#dcfce7;color:#047857;display:grid;place-items:center;font-size:10px;font-weight:1000}.n50-seq-cells{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm}.n50-seq-cells span{height:13mm;border-radius:4mm;background:#f8fafc;border:1.2px solid #cbd5e1;display:grid;place-items:center;font-size:20px;font-weight:1000;color:#334155}.n50-seq-cells .blank{background:#eff6ff;border:1.4px solid #93c5fd}.n50-seq-row em{font-style:normal;color:#64748b;font-weight:900;font-size:10.5px;text-align:center}
.n50-number-line{height:15mm;border-radius:5mm;background:#f8fafc;border:1px solid #e2e8f0;display:grid;grid-template-columns:repeat(10,1fr);align-items:center;padding:0 4mm;margin-bottom:3mm}.n50-number-line span{position:relative;text-align:center;font-size:10px;font-weight:1000;color:#64748b}.n50-number-line span::before{content:"";position:absolute;top:-3mm;left:50%;height:3mm;border-left:1px solid #94a3b8}.n50-compare-list{display:grid;grid-template-rows:repeat(8,1fr);gap:2.7mm;flex:1;min-height:0}.n50-compare-row{display:grid;grid-template-columns:8mm 25mm minmax(0,1fr) 22mm;gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:3mm 4mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0}.n50-compare-row>b{width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;display:grid;place-items:center;font-size:10px;font-weight:1000}.n50-compare-row>strong{font-size:12px;font-weight:1000;color:#1d4ed8;white-space:nowrap}.n50-compare-row>div{display:flex;justify-content:center;gap:3mm;min-width:0}.n50-compare-row>div span{width:17mm;height:10mm;border-radius:999px;background:#f8fafc;border:1.2px solid #cbd5e1;display:grid;place-items:center;font-size:16px;font-weight:1000;color:#334155}.n50-compare-row>em{height:10mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#eff6ff;display:grid;place-items:center;color:#1d4ed8;font-style:normal;font-weight:1000;font-size:12px}
.n50-student-answer-grid{grid-template-columns:1fr 1fr}.n50-student-answer-grid article{min-height:42mm}.n50-teacher-answer .teacher-v10-answer-cards{grid-template-columns:1fr}.n50-teacher-answer .teacher-v10-answer-cards article{grid-template-columns:38mm 1fr}.n50-teacher-answer .teacher-v10-chips em{font-size:12px;min-width:8mm;padding:0 1.5mm}
@media print{.n50-tens-card,.n50-read-card,.n50-seq-row,.n50-compare-row{break-inside:avoid;page-break-inside:avoid}}

/* v22 numbers-to-50: 초등학교 1학년 친화형 97% A4 조판 */
.n50-kid-page,.n50-kid-answer-page{background:#fffdf8!important}
.n50-kid-page::before,.n50-kid-answer-page::before{border-color:#fde68a!important}
.n50-kid-header{height:29mm!important;min-height:29mm!important;background:linear-gradient(135deg,#fff7ed 0%,#eff6ff 54%,#f0fdf4 100%)!important;border-color:#fed7aa!important;padding:4.2mm 6mm!important}
.n50-kid-header .n50-title{font-size:21px!important;color:#1d4ed8!important}
.n50-kid-header .n50-subtitle{font-size:11px!important;line-height:1.25!important}
.n50-kid-body{height:226mm!important;padding:4.5mm!important;background:#ffffffee!important;overflow:hidden!important}
.n50-kid-footer{height:10.5mm!important;min-height:10.5mm!important}
.n50-kid-section-title{margin-bottom:2.7mm!important}.n50-kid-section-title strong{font-size:15.5px!important}.n50-kid-section-title small{font-size:10.5px!important}
.n50-kid-bundles{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1.8mm;min-width:0;max-width:100%;overflow:hidden}
.n50-kid-ten{width:14.5mm;height:11mm;border:1.3px solid #60a5fa;border-radius:3.2mm;background:#eff6ff;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,1fr);gap:.65mm;padding:1.1mm;box-shadow:0 .5mm 1.5mm rgba(37,99,235,.08)}
.n50-kid-ten i{display:block;border-radius:50%;background:#2563eb}.n50-kid-ones{display:flex;flex-wrap:wrap;gap:1.25mm;max-width:34mm;align-items:center;justify-content:center}.n50-kid-one{width:3.6mm;height:3.6mm;border-radius:50%;background:#f59e0b;border:1px solid #d97706}
.n50-kid-tens-grid{display:grid;grid-template-rows:repeat(5,1fr);gap:2.8mm;flex:1;min-height:0}.n50-kid-tens-card{display:grid;grid-template-columns:25mm minmax(0,1fr) 58mm;gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5.5mm;background:#fff;padding:3mm 4mm;min-height:0;box-shadow:0 1mm 4mm rgba(15,23,42,.035);overflow:hidden}.n50-kid-bundle-label{display:grid;place-items:center;gap:1mm}.n50-kid-bundle-label b{font-size:11px;color:#0f766e;font-weight:1000}.n50-kid-bundle-label span{width:14mm;height:14mm;border-radius:50%;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:17px;font-weight:1000}.n50-kid-tens-visual{min-width:0;display:flex;justify-content:center}.n50-kid-write-row{display:grid;grid-template-columns:13mm 1fr 1fr 1fr;gap:1.4mm;align-items:center}.n50-kid-write-row strong,.n50-kid-write-row i,.n50-kid-write-row em{height:10mm;border-radius:3mm;display:grid;place-items:center;font-size:16px;font-weight:1000;min-width:0}.n50-kid-write-row strong{background:#dbeafe;color:#1d4ed8}.n50-kid-write-row i{font-style:normal;border:1.2px dashed #cbd5e1;color:#cbd5e1;background:#fff}.n50-kid-write-row em{border:1.3px solid #93c5fd;background:#eff6ff}.n50-kid-bottom{height:15mm;margin-top:2.6mm;border-radius:5mm;border:1.1px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:28mm repeat(5,1fr);gap:2mm;align-items:center;padding:2.5mm}.n50-kid-bottom strong{font-size:12px;color:#1d4ed8}.n50-kid-bottom span{height:8.5mm;border-radius:999px;background:#fff;border:1.1px solid #93c5fd;display:grid;place-items:center;font-size:13px;font-weight:1000;color:#1d4ed8}
.n50-kid-read-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0}.n50-kid-read-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:4mm;display:grid;grid-template-rows:33mm 8mm 10mm;gap:2mm;align-items:center;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0;overflow:hidden}.n50-kid-read-card>b{position:absolute;left:3mm;top:3mm;width:7.5mm;height:7.5mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.n50-kid-read-visual{display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden}.n50-kid-read-card .n50-kid-ten{width:12.5mm;height:9.5mm}.n50-kid-read-card .n50-kid-ones{max-width:26mm}.n50-kid-read-card .n50-kid-one{width:3.1mm;height:3.1mm}.n50-kid-place{display:flex;justify-content:center;gap:2mm}.n50-kid-place span{border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;padding:1mm 2.3mm;font-size:10px;font-weight:900;color:#64748b;white-space:nowrap}.n50-kid-place strong{font-size:12px;color:#1d4ed8}.n50-kid-answer{height:10mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#eff6ff;display:grid;place-items:center;color:#1d4ed8;font-size:12px;font-weight:1000}
.n50-kid-seq-list{display:grid;grid-template-rows:repeat(8,1fr);gap:2.8mm;flex:1;min-height:0}.n50-kid-seq-row{display:grid;grid-template-columns:8mm minmax(0,1fr) 33mm;gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:2.8mm 4mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0}.n50-kid-seq-row>b{width:7mm;height:7mm;border-radius:50%;background:#dcfce7;color:#047857;display:grid;place-items:center;font-size:10px;font-weight:1000}.n50-kid-seq-cells{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm}.n50-kid-seq-cells span{height:12.5mm;border-radius:4mm;background:#f8fafc;border:1.2px solid #cbd5e1;display:grid;place-items:center;font-size:20px;font-weight:1000;color:#334155}.n50-kid-seq-cells .blank{background:#eff6ff;border:1.4px solid #93c5fd}.n50-kid-seq-row em{font-style:normal;color:#64748b;font-weight:900;font-size:10px;text-align:center}.n50-kid-check-strip{height:10mm;margin-top:3mm;border-radius:5mm;background:#f0fdf4;border:1px solid #bbf7d0;color:#047857;font-weight:1000;font-size:12px;display:grid;place-items:center}
.n50-kid-number-line{height:15mm;border-radius:5mm;background:#f8fafc;border:1px solid #e2e8f0;display:grid;grid-template-columns:repeat(10,1fr);align-items:center;padding:0 4mm;margin-bottom:3mm}.n50-kid-number-line span{position:relative;text-align:center;font-size:10px;font-weight:1000;color:#64748b}.n50-kid-number-line span::before{content:"";position:absolute;top:-3mm;left:50%;height:3mm;border-left:1px solid #94a3b8}.n50-kid-compare-list{display:grid;grid-template-rows:repeat(8,1fr);gap:2.7mm;flex:1;min-height:0}.n50-kid-compare-row{display:grid;grid-template-columns:8mm 27mm minmax(0,1fr) 22mm;gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:2.8mm 4mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0;overflow:hidden}.n50-kid-compare-row>b{width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;display:grid;place-items:center;font-size:10px;font-weight:1000}.n50-kid-compare-row>strong{font-size:12px;font-weight:1000;color:#1d4ed8;white-space:nowrap}.n50-kid-compare-row>div{display:flex;justify-content:center;gap:2.5mm;min-width:0}.n50-kid-compare-row>div span{width:16mm;height:10mm;border-radius:999px;background:#f8fafc;border:1.2px solid #cbd5e1;display:grid;place-items:center;font-size:16px;font-weight:1000;color:#334155}.n50-kid-compare-row>em{height:10mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#eff6ff;display:grid;place-items:center;color:#1d4ed8;font-style:normal;font-weight:1000;font-size:12px}
.n50-kid-student-answer-grid article{border-radius:6mm}.n50-kid-answer-page .teacher-v10-summary{margin-top:0}.n50-kid-answer-page .teacher-v10-answer-cards{grid-template-columns:1fr}.n50-kid-answer-page .teacher-v10-answer-cards article{grid-template-columns:38mm 1fr}.n50-kid-answer-page .teacher-v10-chips em{font-size:12px;min-width:8mm;padding:0 1.5mm}
@media print{.n50-kid-tens-card,.n50-kid-read-card,.n50-kid-seq-row,.n50-kid-compare-row{break-inside:avoid;page-break-inside:avoid}}

/* v23 random recompose button feedback */
.random-btn[data-busy="1"] {
  opacity: .65;
  cursor: wait;
}
.random-btn[data-busy="1"]::after {
  content: " 중...";
}
.worksheet-random-marker {
  display: none !important;
}

/* v24 numbers-to-100: 초등학교 1학년 친화형 97% A4 조판 */
.n100-page,.n100-answer-page{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8;color:#1f2937;position:relative;overflow:hidden}.n100-page::before,.n100-answer-page::before{content:"";position:absolute;inset:5mm;border:1mm solid #bfdbfe;border-radius:8mm;pointer-events:none}.n100-page>*,.n100-answer-page>*{position:relative}.n100-header{height:29mm;min-height:29mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.2mm 6mm;border-radius:7mm;background:linear-gradient(135deg,#eff6ff 0%,#f0fdf4 52%,#fff7ed 100%);border:1px solid #bfdbfe}.n100-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.n100-title{font-size:21px;font-weight:1000;line-height:1.08;color:#1d4ed8;letter-spacing:-.02em}.n100-subtitle{font-size:11px;color:#64748b;font-weight:800;margin-top:1mm}.n100-title-block{min-width:0}.n100-body{height:226mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:#ffffffee;padding:4.5mm;min-height:0;overflow:hidden}.n100-footer{height:10.5mm;min-height:10.5mm;border-radius:5mm;background:#eff6ff;border:1px solid #bfdbfe;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.n100-footer span{font-size:13px;font-weight:1000;color:#1d4ed8}.n100-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}.n100-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:2.7mm;flex:0 0 auto}.n100-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.n100-section-title strong{font-size:15.5px;color:#334155;line-height:1.1}.n100-section-title small{font-size:10.5px;color:#64748b;font-weight:800;margin-top:.5mm}.n100-bundles{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1.4mm;min-width:0;max-width:100%;overflow:hidden}.n100-ten-stick{width:12mm;height:9mm;border:1.2px solid #60a5fa;border-radius:3mm;background:#eff6ff;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,1fr);gap:.55mm;padding:.9mm}.n100-ten-stick i{display:block;border-radius:50%;background:#2563eb}.n100-ones{display:flex;flex-wrap:wrap;gap:1.05mm;max-width:27mm;align-items:center;justify-content:center}.n100-one-dot{width:3mm;height:3mm;border-radius:50%;background:#f59e0b;border:1px solid #d97706}.n100-hundred-board{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(5,1fr);gap:2.5mm;flex:1;min-height:0}.n100-tens-card{display:grid;grid-template-columns:17mm minmax(0,1fr) 16mm;gap:2mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5.5mm;background:#fff;padding:2.6mm 3mm;min-height:0;box-shadow:0 1mm 4mm rgba(15,23,42,.035);overflow:hidden}.n100-tens-card>b{width:14mm;height:14mm;border-radius:50%;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:15px;font-weight:1000}.n100-tens-card>div{display:flex;justify-content:center;min-width:0}.n100-tens-card em{font-style:normal;font-size:10px;color:#0f766e;font-weight:1000;text-align:center}.n100-hundred-badge{width:30mm;height:14mm;border-radius:999px;background:#dcfce7;color:#047857;border:1.2px solid #86efac;display:grid;place-items:center;font-size:18px;font-weight:1000}.n100-count-strip{height:15mm;margin-top:2.6mm;border-radius:5mm;border:1.1px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:24mm repeat(10,1fr);gap:1.4mm;align-items:center;padding:2.5mm}.n100-count-strip strong{font-size:12px;color:#1d4ed8}.n100-count-strip span{height:8.5mm;border-radius:999px;background:#fff;border:1.1px solid #93c5fd;display:grid;place-items:center;font-size:11.5px;font-weight:1000;color:#1d4ed8}.n100-read-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0}.n100-read-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:4mm;display:grid;grid-template-rows:34mm 8mm 10mm;gap:2mm;align-items:center;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0;overflow:hidden}.n100-read-card>b{position:absolute;left:3mm;top:3mm;width:7.5mm;height:7.5mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.n100-read-visual{display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden}.n100-read-card .n100-ten-stick{width:11mm;height:8.4mm}.n100-read-card .n100-ones{max-width:24mm}.n100-read-card .n100-one-dot{width:2.8mm;height:2.8mm}.n100-place{display:flex;justify-content:center;gap:2mm}.n100-place span{border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;padding:1mm 2.3mm;font-size:10px;font-weight:900;color:#64748b;white-space:nowrap}.n100-place strong{font-size:12px;color:#1d4ed8}.n100-answer-box{height:10mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#eff6ff;display:grid;place-items:center;color:#1d4ed8;font-size:12px;font-weight:1000}.n100-seq-list{display:grid;grid-template-rows:repeat(8,1fr);gap:2.8mm;flex:1;min-height:0}.n100-seq-row{display:grid;grid-template-columns:8mm minmax(0,1fr) 33mm;gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:2.8mm 4mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0}.n100-seq-row>b{width:7mm;height:7mm;border-radius:50%;background:#dcfce7;color:#047857;display:grid;place-items:center;font-size:10px;font-weight:1000}.n100-seq-cells{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm}.n100-seq-cells span{height:12.5mm;border-radius:4mm;background:#f8fafc;border:1.2px solid #cbd5e1;display:grid;place-items:center;font-size:20px;font-weight:1000;color:#334155}.n100-seq-cells .blank{background:#eff6ff;border:1.4px solid #93c5fd}.n100-seq-row em{font-style:normal;color:#64748b;font-weight:900;font-size:10px;text-align:center}.n100-tip-strip{height:10mm;margin-top:3mm;border-radius:5mm;background:#f0fdf4;border:1px solid #bbf7d0;color:#047857;font-weight:1000;font-size:12px;display:grid;place-items:center}.n100-number-line{height:15mm;border-radius:5mm;background:#f8fafc;border:1px solid #e2e8f0;display:grid;grid-template-columns:repeat(11,1fr);align-items:center;padding:0 4mm;margin-bottom:3mm}.n100-number-line span{position:relative;text-align:center;font-size:9.5px;font-weight:1000;color:#64748b}.n100-number-line span::before{content:"";position:absolute;top:-3mm;left:50%;height:3mm;border-left:1px solid #94a3b8}.n100-compare-list{display:grid;grid-template-rows:repeat(8,1fr);gap:2.7mm;flex:1;min-height:0}.n100-compare-row{display:grid;grid-template-columns:8mm 27mm minmax(0,1fr) 22mm;gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:2.8mm 4mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0;overflow:hidden}.n100-compare-row>b{width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;display:grid;place-items:center;font-size:10px;font-weight:1000}.n100-compare-row>strong{font-size:12px;font-weight:1000;color:#1d4ed8;white-space:nowrap}.n100-compare-row>div{display:flex;justify-content:center;gap:2.3mm;min-width:0}.n100-compare-row>div span{width:16mm;height:10mm;border-radius:999px;background:#f8fafc;border:1.2px solid #cbd5e1;display:grid;place-items:center;font-size:16px;font-weight:1000;color:#334155}.n100-compare-row>em{height:10mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#eff6ff;display:grid;place-items:center;color:#1d4ed8;font-style:normal;font-weight:1000;font-size:12px}.n100-student-answer-grid{grid-template-columns:1fr 1fr}.n100-student-answer-grid article{min-height:42mm}.n100-answer-page .n100-header{margin-bottom:3mm}.n100-teacher-answer .teacher-v10-answer-cards{grid-template-columns:1fr}.n100-teacher-answer .teacher-v10-answer-cards article{grid-template-columns:38mm 1fr}.n100-teacher-answer .teacher-v10-chips em{font-size:12px;min-width:8mm;padding:0 1.5mm}@media print{.n100-tens-card,.n100-read-card,.n100-seq-row,.n100-compare-row{break-inside:avoid;page-break-inside:avoid}}


/* v26 shapes-time: 모양과 시각 97% A4 layout */
.st-page,.st-answer-page{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8}
.st-page::before,.st-answer-page::before{content:"";position:absolute;inset:5mm;border:1mm solid #fde68a;border-radius:8mm;pointer-events:none}
.st-page>*,.st-answer-page>*{position:relative}
.st-header{height:30mm;min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff 58%,#f0fdf4);border:1px solid #fed7aa}
.st-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.st-title{font-size:21px;font-weight:1000;line-height:1.1;color:#1d4ed8;letter-spacing:-.02em}.st-subtitle{font-size:11.2px;color:#64748b;font-weight:800;margin-top:1mm}.st-title-block{min-width:0}
.st-body{height:226mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.94);padding:5mm;overflow:hidden}.st-footer{height:10.5mm;min-height:10.5mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.st-footer span{font-size:12.5px;font-weight:1000;color:#be123c}.st-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}
.st-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:3mm;flex:0 0 auto}.st-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.st-section-title strong{font-size:16px;color:#334155;line-height:1.1}.st-section-title small{font-size:10.8px;color:#64748b;font-weight:800;margin-top:.5mm}
.st-name-grid{display:grid;grid-template-rows:repeat(6,1fr);gap:2.7mm;flex:1;min-height:0}.st-name-row{display:grid;grid-template-columns:24mm 34mm minmax(0,1fr);gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:2.8mm 4mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0;overflow:hidden}.st-shape-box{display:grid;place-items:center;min-width:0}.st-name-label strong{font-size:17px;font-weight:1000;color:#1d4ed8;display:block}.st-name-label small{font-size:10.5px;font-weight:900;color:#64748b;white-space:nowrap}.st-word-cells{display:grid;grid-template-columns:repeat(3,1fr);gap:1.8mm;min-width:0}.st-word-cells span,.st-word-cells i{height:10mm;border-radius:3mm;border:1.1px solid #cbd5e1;display:grid;place-items:center;background:#fff;font-style:normal;font-size:14px;font-weight:1000;white-space:nowrap}.st-word-cells i{color:#cbd5e1;border-style:dashed}.st-name-row.time .st-word-cells{grid-template-columns:repeat(2,1fr)}.st-name-row.time:first-of-type .st-word-cells{grid-template-columns:repeat(3,1fr)}
.st-bottom-activity{height:15mm;margin-top:2.5mm;border-radius:5mm;border:1.1px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:33mm repeat(3,1fr);gap:3mm;align-items:center;padding:2.5mm}.st-bottom-activity strong{font-size:12px;color:#1d4ed8}.st-bottom-activity i{height:8mm;border:1.2px solid #93c5fd;border-radius:3mm;background:#fff}.st-bottom-activity small{grid-column:1/-1;color:#64748b;font-size:10px;font-weight:800}
.st-clock-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0}.st-clock-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:4mm;display:grid;grid-template-rows:45mm 8mm 12mm;gap:2mm;align-items:center;justify-items:center;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0;overflow:hidden}.st-clock-card>b{position:absolute;left:3mm;top:3mm;width:7.5mm;height:7.5mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.st-question{font-size:12px;font-weight:1000;color:#334155}.st-answer-line{height:11mm;display:grid;grid-template-columns:1fr 8mm;gap:2mm;align-items:center;width:42mm}.st-answer-line.half{grid-template-columns:1fr 20mm;width:54mm}.st-answer-line i{height:10mm;border:1.4px solid #93c5fd;border-radius:3mm;background:#eff6ff}.st-answer-line span{font-size:13px;font-weight:1000;color:#1d4ed8;white-space:nowrap}
.st-clock{width:37mm;height:37mm;border:1.5mm solid #60a5fa;border-radius:50%;background:#eff6ff;position:relative;display:block;box-shadow:inset 0 0 0 1mm #fff}.st-clock.small{width:24mm;height:24mm;border-width:1.1mm}.st-clock.tiny{width:18mm;height:18mm;border-width:1mm}.st-clock b{position:absolute;left:50%;top:50%;width:2.4mm;height:2.4mm;margin:-1.2mm 0 0 -1.2mm;border-radius:50%;background:#1d4ed8;z-index:3}.st-clock .st-hand{position:absolute;left:50%;bottom:50%;transform-origin:50% 100%;transform:translateX(-50%) rotate(var(--a));border-radius:999px;background:#1e293b;z-index:2}.st-clock .st-hour{width:1.7mm;height:10mm}.st-clock .st-minute{width:1.1mm;height:14.5mm;background:#ef4444}.st-clock.small .st-hour{height:6.5mm;width:1.25mm}.st-clock.small .st-minute{height:9mm;width:.9mm}.st-clock.tiny .st-hour{height:4.8mm;width:1mm}.st-clock.tiny .st-minute{height:6.7mm;width:.8mm}.st-c12,.st-c3,.st-c6,.st-c9{position:absolute;font-size:8px;font-weight:1000;color:#1d4ed8}.st-c12{top:1.7mm;left:50%;transform:translateX(-50%)}.st-c3{right:2mm;top:50%;transform:translateY(-50%)}.st-c6{bottom:1.5mm;left:50%;transform:translateX(-50%)}.st-c9{left:2mm;top:50%;transform:translateY(-50%)}.st-clock.small .st-c12,.st-clock.small .st-c3,.st-clock.small .st-c6,.st-clock.small .st-c9,.st-clock.tiny .st-c12,.st-clock.tiny .st-c3,.st-clock.tiny .st-c6,.st-clock.tiny .st-c9{font-size:6px}
.st-choice-list{display:grid;grid-template-rows:repeat(6,1fr);gap:3mm;flex:1;min-height:0}.st-choice-row{display:grid;grid-template-columns:8mm 32mm minmax(0,1fr);gap:3mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:2.5mm 4mm;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0}.st-choice-row>b{width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;display:grid;place-items:center;font-size:10px;font-weight:1000}.st-choice-row>strong{font-size:14px;font-weight:1000;color:#1d4ed8;white-space:nowrap}.st-choice-clocks{display:flex;justify-content:center;gap:8mm;min-width:0}.st-choice-clocks>span{position:relative;display:grid;place-items:center}.st-choice-clocks em{width:9mm;height:9mm;border:1.4px solid #94a3b8;border-radius:50%;background:#fff;margin-top:1mm}.st-check-strip{height:10mm;margin-top:3mm;border-radius:5mm;background:#f0fdf4;border:1px solid #bbf7d0;color:#047857;font-weight:1000;font-size:12px;display:grid;place-items:center}.st-answer-grid{grid-template-columns:1fr}.st-answer-grid article{min-height:42mm}.st-teacher-answer .teacher-v10-answer-cards article{grid-template-columns:35mm 1fr}.st-teacher-answer .teacher-v10-chips em{font-size:11px;min-width:13mm;padding:0 1.2mm}.shape-icon.large{width:15mm;height:15mm}.st-name-row .shape-rectangle.large{width:20mm;height:11mm}
@media print{.st-name-row,.st-clock-card,.st-choice-row{break-inside:avoid;page-break-inside:avoid}}

/* v28 shapes-time: 2~3쪽 시각 읽기 카드 97% 개선 */
.st-time-guide-v28{height:12mm;min-height:12mm;margin-bottom:3mm;border-radius:5mm;background:#eff6ff;border:1px solid #bfdbfe;display:grid;grid-template-columns:repeat(3,1fr);gap:2mm;align-items:center;padding:1.7mm 3mm;color:#1d4ed8;font-weight:1000;font-size:11px}
.st-time-guide-v28.half{background:#f0fdf4;border-color:#bbf7d0;color:#047857}.st-time-guide-v28 span{display:flex;align-items:center;justify-content:center;gap:1.5mm;white-space:nowrap}.st-time-guide-v28 b{width:5.5mm;height:5.5mm;border-radius:50%;background:#fff;color:inherit;border:1px solid currentColor;display:grid;place-items:center;font-size:9px;font-weight:1000}
.st-time-grid-v28{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:3.2mm;flex:1;min-height:0}.st-time-card-v28{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:3.3mm 3.5mm;display:grid;grid-template-columns:37mm minmax(0,1fr);grid-template-rows:8mm 1fr 12mm;gap:1.6mm 3mm;align-items:center;box-shadow:0 1mm 4mm rgba(15,23,42,.035);min-height:0;overflow:hidden}.st-time-card-v28>b{position:absolute;left:3mm;top:3mm;width:7.5mm;height:7.5mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center;z-index:2}.st-time-card-v28>strong{grid-column:2;grid-row:1;font-size:12.5px;font-weight:1000;color:#334155;align-self:end;white-space:nowrap}.st-time-clock-wrap{grid-column:1;grid-row:1/4;display:grid;place-items:center;min-width:0}.st-time-card-v28 .st-clock{width:33mm;height:33mm;border-width:1.35mm}.st-time-card-v28 .st-clock .st-hour{height:9mm;width:1.55mm}.st-time-card-v28 .st-clock .st-minute{height:13mm;width:1mm}.st-time-answer-v28{grid-column:2;grid-row:3;height:11mm;display:grid;grid-template-columns:8mm minmax(0,1fr) 8mm;gap:1.5mm;align-items:center;min-width:0}.st-time-answer-v28.half{grid-template-columns:8mm minmax(0,1fr) 7mm 17mm}.st-time-answer-v28 span{height:8mm;border-radius:999px;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:10px;font-weight:1000}.st-time-card-v28.half .st-time-answer-v28 span{background:#dcfce7;color:#047857}.st-time-answer-v28 i{height:10mm;border:1.4px solid #93c5fd;border-radius:3mm;background:#eff6ff}.st-time-card-v28.half .st-time-answer-v28 i{border-color:#86efac;background:#f0fdf4}.st-time-answer-v28 em{font-style:normal;font-size:12px;font-weight:1000;color:#1d4ed8;white-space:nowrap}.st-time-card-v28.half .st-time-answer-v28 em{color:#047857}.st-oclock-page .st-body,.st-half-page .st-body{padding-bottom:4.5mm}.st-oclock-page .st-footer span,.st-half-page .st-footer span{font-size:12px}
@media print{.st-time-card-v28{break-inside:avoid;page-break-inside:avoid}}

/* v29 shapes-time: 3쪽 30분 답란 확장 및 2~3쪽 답안 스트립 안정화 */
.st-time-card-v28{grid-template-columns:31mm minmax(0,1fr);grid-template-rows:8mm 1fr 12.5mm;gap:1.4mm 2.4mm;padding:3.1mm 3.3mm;}
.st-time-clock-wrap{grid-column:1;grid-row:1/3;}
.st-time-card-v28>strong{grid-column:2;grid-row:1;}
.st-time-answer-v28{grid-column:1/3;grid-row:3;height:12mm;display:grid;grid-template-columns:8mm minmax(0,1fr) 8mm;gap:1.8mm;align-items:center;margin-top:.4mm;}
.st-time-answer-v28.half{grid-template-columns:8mm minmax(0,1fr) 25mm;}
.st-time-answer-v28.half em:first-of-type{display:none;}
.st-time-answer-v28.half em:last-of-type::before{content:'시 ';}
.st-time-answer-v28 i{height:10.8mm;min-width:0;}
.st-time-answer-v28 em{font-size:12.5px;text-align:left;}
.st-time-card-v28 .st-clock{width:31mm;height:31mm;}
@media print{.st-time-answer-v28.half{grid-template-columns:8mm minmax(0,1fr) 25mm}.st-time-answer-v28 i{min-width:28mm}}


/* v30 shapes-time: 인쇄창 전용 CSS 누락 보정 + 3쪽 30분 답란 확장 */
.st-oclock-page .st-time-answer-v28,
.st-half-page .st-time-answer-v28{grid-column:1/3;grid-row:3;width:100%;height:12.8mm;display:grid;align-items:center;margin-top:.2mm;}
.st-oclock-page .st-time-answer-v28{grid-template-columns:8mm minmax(0,1fr) 9mm;gap:1.8mm;}
.st-half-page .st-time-answer-v28.half{grid-template-columns:8mm minmax(0,1fr) 25mm;gap:1.8mm;}
.st-half-page .st-time-answer-v28.half em:first-of-type{display:none;}
.st-half-page .st-time-answer-v28.half em:last-of-type::before{content:'시 ';}
.st-time-answer-v28 i{height:11mm;min-width:0;border-radius:3.2mm;}
.st-time-answer-v28 em{font-size:12.5px;font-weight:1000;text-align:left;white-space:nowrap;}
.st-oclock-page .st-time-card-v28,
.st-half-page .st-time-card-v28{grid-template-columns:31mm minmax(0,1fr);grid-template-rows:8mm 1fr 13.5mm;gap:1.3mm 2.4mm;padding:3mm 3.2mm;}
.st-oclock-page .st-time-clock-wrap,
.st-half-page .st-time-clock-wrap{grid-column:1;grid-row:1/3;}
.st-time-card-v28 .st-clock{width:31mm;height:31mm;}
@media print{
  .st-oclock-page .st-time-answer-v28,
  .st-half-page .st-time-answer-v28{grid-column:1/3!important;grid-row:3!important;width:100%!important;}
  .st-half-page .st-time-answer-v28.half{grid-template-columns:8mm minmax(34mm,1fr) 25mm!important;}
  .st-oclock-page .st-time-answer-v28{grid-template-columns:8mm minmax(34mm,1fr) 9mm!important;}
}


/* v31 pattern finding worksheet 97% A4 layout */
.pf-page,.pf-answer-page,.pf-teacher-answer{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8;color:#1f2937}
.pf-page::before,.pf-answer-page::before,.pf-teacher-answer::before{content:"";position:absolute;inset:5mm;border:1mm solid #fde68a;border-radius:8mm;pointer-events:none}.pf-page>*,.pf-answer-page>*,.pf-teacher-answer>*{position:relative}
.pf-header{height:30mm;min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa}.pf-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.pf-title{font-size:22px;font-weight:1000;line-height:1.08;color:#1d4ed8;letter-spacing:-.02em}.pf-subtitle{font-size:11.5px;color:#64748b;font-weight:800;margin-top:1mm}
.pf-body{height:225mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.94);padding:5mm;min-height:0;overflow:hidden}.pf-footer{height:11mm;min-height:11mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.pf-footer span{font-size:13px;font-weight:1000;color:#be123c}.pf-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}
.pf-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:3mm;flex:0 0 auto}.pf-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.pf-section-title strong{font-size:16px;color:#334155;line-height:1.1}.pf-section-title small{font-size:10.8px;color:#64748b;font-weight:800;margin-top:.5mm}
.pf-shape{width:10.5mm;height:10.5mm;display:inline-block;position:relative;flex:0 0 auto;border:1.2px solid rgba(15,23,42,.14);box-shadow:0 .4mm 1mm rgba(15,23,42,.05)}.pf-shape.small{width:8.5mm;height:8.5mm}.pf-circle{border-radius:50%}.pf-square{border-radius:2.2mm}.pf-rectangle{width:15.5mm;height:8.8mm;border-radius:2.2mm}.pf-rectangle.small{width:12mm;height:7mm}.pf-triangle{width:0!important;height:0!important;border-left:5.3mm solid transparent!important;border-right:5.3mm solid transparent!important;border-bottom:10.5mm solid currentColor!important;border-top:0!important;background:transparent!important;box-shadow:none!important}.pf-triangle.small{border-left-width:4.2mm!important;border-right-width:4.2mm!important;border-bottom-width:8.5mm!important}.pf-red{background:#ef4444;color:#ef4444}.pf-yellow{background:#f59e0b;color:#f59e0b}.pf-green{background:#22c55e;color:#22c55e}.pf-blue{background:#60a5fa;color:#60a5fa}
.pf-word-grid{display:grid;grid-template-rows:repeat(4,1fr);gap:4mm;flex:1;min-height:0}.pf-word-row{display:grid;grid-template-columns:72mm minmax(0,1fr);gap:5mm;align-items:center;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;padding:4mm;min-height:0}.pf-word-left{display:grid;grid-template-columns:34mm 1fr;grid-template-rows:auto auto;align-items:center;column-gap:4mm;min-width:0}.pf-mini-seq{grid-row:1/3;display:flex;gap:1.8mm;align-items:center;justify-content:center;min-width:0}.pf-mini-seq .pf-shape{width:7mm;height:7mm}.pf-mini-seq .pf-rectangle{width:10mm;height:6mm}.pf-mini-seq .pf-triangle{border-left-width:3.5mm!important;border-right-width:3.5mm!important;border-bottom-width:7mm!important}.pf-word-left strong{font-size:19px;font-weight:1000;color:#1d4ed8}.pf-word-left small{font-size:10.5px;font-weight:800;color:#64748b}.pf-word-practice{display:grid;grid-template-columns:repeat(3,1fr);gap:2mm}.pf-word-practice i{height:13mm;border:1.2px dashed #cbd5e1;border-radius:3mm;display:grid;place-items:center;color:#cbd5e1;background:#fff;font-size:18px;font-weight:1000;font-style:normal}.pf-bottom-activity{height:18mm;margin-top:3mm;border-radius:5mm;border:1.1px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:38mm repeat(3,1fr);gap:3mm;align-items:center;padding:3mm}.pf-bottom-activity strong{font-size:12px;color:#1d4ed8}.pf-bottom-activity i{height:9mm;border:1.2px solid #93c5fd;border-radius:3mm;background:#fff}.pf-bottom-activity small{grid-column:1/-1;color:#64748b;font-size:10.2px;font-weight:800}
.pf-choice-grid,.pf-blank-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0}.pf-choice-card,.pf-blank-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:5mm 5mm 4mm;display:flex;flex-direction:column;justify-content:space-between;min-height:0;box-shadow:0 1mm 4mm rgba(15,23,42,.035)}.pf-choice-card>b,.pf-blank-card>b,.pf-complete-row>b{position:absolute;left:4mm;top:4mm;width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.pf-seq-line{min-height:24mm;display:flex;align-items:center;justify-content:center;gap:3mm;padding-left:6mm}.pf-seq-line.large{min-height:36mm;gap:3.2mm}.pf-next-mark,.pf-blank-shape{width:12mm;height:12mm;border:1.4px dashed #93c5fd;border-radius:3mm;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;font-size:18px;font-weight:1000}.pf-blank-shape.small{width:9.5mm;height:9.5mm;font-size:14px}.pf-choice-row{display:flex;justify-content:center;gap:5mm}.pf-choice-row>span{display:grid;justify-items:center;gap:1.3mm}.pf-choice-row i{width:15mm;height:15mm;border:1px solid #e2e8f0;border-radius:4mm;background:#f8fafc;display:grid;place-items:center;font-style:normal}.pf-choice-row em{width:8mm;height:8mm;border:1.4px solid #94a3b8;border-radius:50%;background:#fff}.pf-draw-answer{height:11mm;display:grid;grid-template-columns:11mm 1fr;gap:2mm;align-items:center}.pf-draw-answer span{height:8mm;border-radius:999px;background:#dcfce7;color:#047857;display:grid;place-items:center;font-size:10px;font-weight:1000}.pf-draw-answer i{height:10mm;border:1.4px solid #86efac;border-radius:3mm;background:#f0fdf4}
.pf-complete-list{display:grid;grid-template-rows:repeat(4,1fr);gap:4mm;flex:1;min-height:0}.pf-complete-row{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) 35mm;align-items:center;gap:4mm;padding:5mm 5mm 5mm 14mm;min-height:0}.pf-long-seq{display:flex;align-items:center;justify-content:center;gap:2.8mm;min-width:0}.pf-rule-name{height:10mm;border-radius:99px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:1000;display:grid;place-items:center;text-align:center}.pf-check-strip{height:10mm;margin-top:3mm;border-radius:5mm;background:#f0fdf4;border:1px solid #bbf7d0;color:#047857;font-weight:1000;font-size:12px;display:grid;place-items:center}.pf-answer-page{background:#fffdf8}.pf-answer-wrap{display:flex;flex-direction:column;gap:4mm}.pf-student-grid{grid-template-columns:1fr}.pf-student-grid article{min-height:42mm}.pf-teacher-answer .teacher-v10-answer-cards{grid-template-columns:1fr}.pf-teacher-answer .teacher-v10-answer-cards article{grid-template-columns:38mm 1fr}.pf-teacher-answer .teacher-v10-chips em{font-size:11px;min-width:12mm;padding:0 1.2mm}.pf-teacher-answer .pf-header{height:29mm;min-height:29mm}
/* v32 pattern finding page 2~3 print-fit overrides */
.pf-choice-grid,.pf-blank-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:3.2mm!important;width:100%!important;overflow:hidden!important;}
.pf-choice-card,.pf-blank-card{min-width:0!important;overflow:hidden!important;padding:4.2mm 3.2mm 3.5mm!important;}
.pf-seq-line{min-width:0!important;max-width:100%!important;overflow:hidden!important;padding-left:3mm!important;gap:1.7mm!important;}
.pf-seq-line.large{gap:1.8mm!important;min-height:32mm!important;}
.pf-choice-card .pf-shape,.pf-blank-card .pf-shape{width:8.2mm!important;height:8.2mm!important;}
.pf-choice-card .pf-rectangle,.pf-blank-card .pf-rectangle{width:11.4mm!important;height:7mm!important;}
.pf-choice-card .pf-triangle,.pf-blank-card .pf-triangle{border-left-width:4.1mm!important;border-right-width:4.1mm!important;border-bottom-width:8.2mm!important;}
.pf-next-mark,.pf-blank-shape{width:10mm!important;height:10mm!important;font-size:15px!important;}
.pf-choice-row{gap:3.2mm!important;min-width:0!important;}
.pf-choice-row i{width:13mm!important;height:13mm!important;}
.pf-choice-row i .pf-shape{width:8mm!important;height:8mm!important;}
.pf-choice-row i .pf-rectangle{width:10.5mm!important;height:6.5mm!important;}
.pf-choice-row i .pf-triangle{border-left-width:4mm!important;border-right-width:4mm!important;border-bottom-width:8mm!important;}
.pf-choice-row em{width:7mm!important;height:7mm!important;}
.pf-draw-answer{height:10mm!important;grid-template-columns:10mm minmax(0,1fr)!important;}

@media print{.pf-choice-card,.pf-blank-card,.pf-complete-row,.pf-word-row{break-inside:avoid;page-break-inside:avoid}}

/* v33 three digit numbers worksheet 97% A4 layout */
.td-page{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8;color:#1f2937}
.td-page::before{content:"";position:absolute;inset:5mm;border:1mm solid #fde68a;border-radius:8mm;pointer-events:none}.td-page>*{position:relative}.td-header{height:30mm;min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa}.td-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.td-title{font-size:22px;font-weight:1000;line-height:1.08;color:#1d4ed8;letter-spacing:-.02em}.td-subtitle{font-size:11.5px;color:#64748b;font-weight:800;margin-top:1mm}.td-body{height:225mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.94);padding:5mm;min-height:0;overflow:hidden}.td-footer{height:11mm;min-height:11mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.td-footer span{font-size:13px;font-weight:1000;color:#be123c}.td-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}.td-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:3mm;flex:0 0 auto}.td-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.td-section-title strong{font-size:16px;color:#334155;line-height:1.1}.td-section-title small{font-size:10.8px;color:#64748b;font-weight:800;margin-top:.5mm}
.td-hundred{width:15mm;height:15mm;border-radius:2.5mm;background:linear-gradient(90deg,rgba(29,78,216,.15) 1px,transparent 1px),linear-gradient(rgba(29,78,216,.15) 1px,transparent 1px),#bfdbfe;background-size:1.5mm 1.5mm;border:1.2px solid #60a5fa;display:inline-block}.td-hundred.big{width:24mm;height:24mm}.td-ten{width:4mm;height:16mm;border-radius:1.6mm;background:repeating-linear-gradient(to bottom,#fde68a 0,#fde68a 1.45mm,#f59e0b 1.55mm,#fde68a 1.65mm);border:1px solid #f59e0b;display:inline-block}.td-ten.big{width:7mm;height:28mm}.td-one{width:5.2mm;height:5.2mm;border-radius:50%;background:#fb7185;border:1px solid #e11d48;display:inline-block}.td-one.big{width:11mm;height:11mm}.td-place-intro{display:grid;grid-template-columns:repeat(3,1fr);gap:4mm;margin-bottom:4mm}.td-place-intro article{height:54mm;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2mm}.td-place-intro b{font-size:18px;color:#1d4ed8}.td-place-intro p{font-size:11px;color:#64748b;font-weight:800;margin:0}.td-word-practice{display:grid;grid-template-rows:repeat(4,1fr);gap:3mm;flex:1}.td-word-practice article{display:grid;grid-template-columns:34mm 1fr;gap:4mm;align-items:center;border:1.1px solid #e2e8f0;border-radius:5mm;background:#fff;padding:3mm}.td-word-practice strong{font-size:16px;color:#0f766e}.td-word-practice div{display:grid;grid-template-columns:repeat(3,1fr);gap:2mm}.td-word-practice i{height:11mm;border:1.2px dashed #cbd5e1;border-radius:3mm;display:grid;place-items:center;font-style:normal;color:#cbd5e1;font-weight:1000}.td-bottom-activity{height:18mm;margin-top:3mm;border-radius:5mm;border:1.1px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:30mm repeat(3,1fr);gap:3mm;align-items:center;padding:3mm}.td-bottom-activity strong{font-size:12px;color:#1d4ed8}.td-bottom-activity i{height:9mm;border:1.2px solid #93c5fd;border-radius:3mm;background:#fff;display:grid;place-items:center;font-style:normal;color:#64748b;font-size:11px;font-weight:900}.td-bottom-activity small{grid-column:1/-1;color:#64748b;font-size:10.2px;font-weight:800}
.td-model-grid,.td-hto-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0;overflow:hidden}.td-model-card,.td-hto-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:4mm;display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:0;overflow:hidden}.td-model-card>b,.td-hto-card>b,.td-compare-row>b{position:absolute;left:4mm;top:4mm;width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.td-blocks{display:grid;grid-template-columns:1fr 1fr 1fr;gap:2mm;align-items:center;padding-left:7mm;min-width:0}.td-hundreds,.td-tens,.td-ones{display:flex;flex-wrap:wrap;gap:1mm;align-items:center;justify-content:center;min-width:0}.td-blocks.small .td-hundred{width:9mm;height:9mm;background-size:1.2mm 1.2mm}.td-blocks.small .td-ten{width:2.8mm;height:12mm}.td-blocks.small .td-one{width:4.2mm;height:4.2mm}.td-answer-line{height:10mm;display:grid;grid-template-columns:10mm 1fr;gap:2mm;align-items:center}.td-answer-line span{height:7.5mm;border-radius:999px;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:10px;font-weight:1000}.td-answer-line i{height:9mm;border:1.4px solid #93c5fd;border-radius:3mm;background:#f8fafc}.td-hto-card strong{font-size:30px;font-weight:1000;color:#1d4ed8;text-align:center;margin-top:4mm}.td-hto-labels,.td-hto-boxes{display:grid;grid-template-columns:repeat(3,1fr);gap:2mm}.td-hto-labels span{height:7mm;border-radius:99px;background:#eff6ff;color:#2563eb;font-size:11px;font-weight:1000;display:grid;place-items:center}.td-hto-boxes i{height:13mm;border:1.4px solid #93c5fd;border-radius:3mm;background:#f8fafc}.td-compare-list{display:grid;grid-template-rows:repeat(8,1fr);gap:2.5mm;flex:1;min-height:0}.td-compare-row{position:relative;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;display:grid;grid-template-columns:33mm minmax(0,1fr) 26mm;gap:3mm;align-items:center;padding:2mm 4mm 2mm 13mm;min-width:0;overflow:hidden}.td-compare-row strong{font-size:12px;color:#0f766e}.td-num-chips,.td-seq-chips{display:flex;gap:2mm;justify-content:center;min-width:0;overflow:hidden}.td-num-chips span,.td-seq-chips span{height:9mm;min-width:15mm;border-radius:3mm;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;display:grid;place-items:center;font-size:14px;font-weight:1000}.td-seq-chips span.blank{background:#fff7ed;border:1.3px dashed #fb923c;color:#ea580c}.td-compare-row>i{height:9mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#f8fafc}.td-student-answer .td-answer-wrap{display:flex;flex-direction:column;gap:4mm}.td-teacher-answer .teacher-v10-answer-cards{grid-template-columns:1fr}.td-teacher-answer .teacher-v10-answer-cards article{grid-template-columns:42mm 1fr}.td-teacher-answer .teacher-v10-chips em{font-size:11px;min-width:12mm;padding:0 1.2mm}
@media print{.td-model-card,.td-hto-card,.td-compare-row,.td-word-practice article{break-inside:avoid;page-break-inside:avoid}}

/* v34: 초2 여러 가지 도형 97% A4 학습지 + 사이드바 계층 개선 */
.menu-stage-heading{display:flex;align-items:center;justify-content:space-between}.menu-stage-heading em{font-style:normal;font-size:11px;color:var(--muted)}.grade-group{border:1px solid var(--line);border-radius:13px;margin-bottom:8px;background:rgba(255,255,255,.42);overflow:hidden}.grade-heading{width:100%;border:0;background:transparent;color:var(--text);display:flex;justify-content:space-between;align-items:center;padding:10px 11px;font-weight:900;cursor:pointer;text-align:left}.grade-heading em{font-style:normal;font-size:11px;color:var(--muted);background:var(--soft);border-radius:999px;padding:2px 7px}.grade-body{padding:0 8px 8px}.grade-group.is-collapsed .grade-body{display:none}.grade-group.is-empty .grade-heading{opacity:.68}.empty-menu-note{font-size:12px;color:var(--muted);padding:8px 10px;border-radius:10px;background:rgba(148,163,184,.1)}
.g2s-page{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8;color:#1f2937}.g2s-page::before{content:"";position:absolute;inset:5mm;border:1mm solid #fde68a;border-radius:8mm;pointer-events:none}.g2s-page>*{position:relative}.g2s-header{height:30mm;min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa}.g2s-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.g2s-title{font-size:22px;font-weight:1000;line-height:1.08;color:#1d4ed8;letter-spacing:-.02em}.g2s-subtitle{font-size:11.5px;color:#64748b;font-weight:800;margin-top:1mm}.g2s-body{height:225mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.94);padding:5mm;min-height:0;overflow:hidden}.g2s-footer{height:11mm;min-height:11mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.g2s-footer span{font-size:13px;font-weight:1000;color:#be123c}.g2s-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}.g2s-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:3mm;flex:0 0 auto}.g2s-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.g2s-section-title strong{font-size:16px;color:#334155;line-height:1.1}.g2s-section-title small{font-size:10.8px;color:#64748b;font-weight:800;margin-top:.5mm}
.g2s-shape{width:13mm;height:13mm;display:inline-block;position:relative;flex:0 0 auto;border:1.2px solid rgba(15,23,42,.14);box-shadow:0 .4mm 1mm rgba(15,23,42,.05)}.g2s-shape.small{width:8mm;height:8mm}.g2s-shape.large{width:20mm;height:20mm}.g2s-shape.big{width:24mm;height:24mm}.g2s-triangle{width:0!important;height:0!important;border-left:6.5mm solid transparent!important;border-right:6.5mm solid transparent!important;border-bottom:13mm solid currentColor!important;border-top:0!important;background:transparent!important;box-shadow:none!important}.g2s-triangle.small{border-left-width:4mm!important;border-right-width:4mm!important;border-bottom-width:8mm!important}.g2s-triangle.large{border-left-width:10mm!important;border-right-width:10mm!important;border-bottom-width:20mm!important}.g2s-triangle.big{border-left-width:12mm!important;border-right-width:12mm!important;border-bottom-width:24mm!important}.g2s-square{border-radius:2.5mm}.g2s-pentagon{clip-path:polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%)}.g2s-hexagon{clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}.g2s-red{background:#ef4444;color:#ef4444}.g2s-yellow{background:#f59e0b;color:#f59e0b}.g2s-green{background:#22c55e;color:#22c55e}.g2s-blue{background:#60a5fa;color:#60a5fa}.g2s-purple{background:#a78bfa;color:#a78bfa}
.g2s-word-grid{display:grid;grid-template-rows:repeat(4,1fr);gap:3.5mm;flex:1;min-height:0}.g2s-word-grid article{display:grid;grid-template-columns:62mm minmax(0,1fr);align-items:center;gap:4mm;border:1.2px solid #dbe4f0;border-radius:5.5mm;background:#fff;padding:3.8mm;min-width:0;overflow:hidden}.g2s-word-left{display:grid;grid-template-columns:24mm minmax(0,1fr);gap:3.5mm;align-items:center}.g2s-word-left strong{font-size:18px;font-weight:1000;color:#1d4ed8}.g2s-word-left small{display:block;font-size:10.5px;color:#64748b;font-weight:800;line-height:1.25}.g2s-practice{display:grid;grid-template-columns:repeat(3,1fr);gap:2mm;min-width:0}.g2s-practice i{height:11mm;border:1.2px dashed #cbd5e1;border-radius:3mm;display:grid;place-items:center;font-style:normal;color:#cbd5e1;font-weight:1000;font-size:14px}.g2s-concept-row{height:17mm;border:1.1px dashed #bfdbfe;background:#eff6ff;border-radius:5mm;display:grid;grid-template-columns:18mm 1fr 12mm 1fr;gap:2.5mm;align-items:center;padding:2.5mm 4mm}.g2s-concept-row strong{font-size:12px;color:#1d4ed8}.g2s-concept-row i{height:8.5mm;border:1.2px solid #93c5fd;background:#fff;border-radius:3mm}.g2s-concept-row small{grid-column:1/-1;color:#64748b;font-size:10.2px;font-weight:800}
.g2s-name-grid,.g2s-count-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-width:0;overflow:hidden}.g2s-name-card,.g2s-count-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:4mm;display:flex;flex-direction:column;justify-content:space-between;align-items:center;min-width:0;overflow:hidden}.g2s-name-card>b,.g2s-count-card>b{position:absolute;left:4mm;top:4mm;width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.g2s-show-shape{height:30mm;display:grid;place-items:center}.g2s-choice-names{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:2mm}.g2s-choice-names span{height:17mm;border:1px solid #e2e8f0;background:#f8fafc;border-radius:4mm;display:grid;grid-template-rows:1fr 6mm;place-items:center;font-size:12px;font-weight:1000;color:#334155}.g2s-choice-names em{width:7mm;height:7mm;border:1.1px solid #94a3b8;border-radius:50%;background:#fff}.g2s-count-card strong{font-size:16px;color:#1d4ed8}.g2s-dual-answer{width:100%;display:grid;grid-template-columns:18mm 1fr 8mm;gap:2mm;align-items:center}.g2s-dual-answer span{font-size:11px;font-weight:1000;color:#0f766e}.g2s-dual-answer i{height:9.5mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#f8fafc}.g2s-dual-answer em{font-size:11px;font-style:normal;font-weight:900;color:#64748b}.g2s-classify-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:4mm;flex:1;min-height:0}.g2s-shape-board{border:1.2px solid #dbe4f0;background:#fff;border-radius:6mm;padding:7mm;display:flex;flex-wrap:wrap;gap:4mm;align-content:center;justify-content:center;overflow:hidden}.g2s-classify-answers{display:grid;grid-template-rows:repeat(4,1fr);gap:3mm;min-width:0}.g2s-classify-answers article{display:grid;grid-template-columns:10mm 22mm 14mm 1fr 7mm;gap:2mm;align-items:center;border:1.1px solid #e2e8f0;border-radius:5mm;background:#fff;padding:3mm;min-width:0}.g2s-classify-answers strong{font-size:13px;color:#1d4ed8}.g2s-classify-answers span,.g2s-classify-answers em{font-size:10.5px;font-weight:900;color:#64748b;font-style:normal}.g2s-classify-answers i{height:8.5mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#f8fafc}.g2s-check-strip{height:10mm;margin-top:3mm;border-radius:5mm;background:#f0fdf4;border:1px solid #bbf7d0;color:#047857;font-weight:1000;font-size:12px;display:grid;place-items:center}.g2s-student-answer,.g2s-teacher-answer{background:#fffdf8}.g2s-teacher-answer .g2s-header,.g2s-student-answer .g2s-header{height:29mm;min-height:29mm}.g2s-teacher-answer .teacher-v10-answer-cards{grid-template-columns:1fr}.g2s-teacher-answer .teacher-v10-answer-cards article{grid-template-columns:38mm 1fr}.g2s-teacher-answer .teacher-v10-chips em{font-size:11px;min-width:14mm;padding:0 1.1mm}
@media print{.g2s-word-grid article,.g2s-name-card,.g2s-count-card,.g2s-classify-answers article{break-inside:avoid;page-break-inside:avoid}.menu-group,.grade-group{break-inside:avoid}}

/* v35: 잘못된 주소 경고 페이지 */
.warning-page {
    max-width: 760px;
    margin: 72px auto;
    padding: 48px 36px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(255, 251, 235, .96));
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    text-align: center;
}
.warning-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #2563eb;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .24);
}
.warning-page h1 {
    margin: 8px 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #1d4ed8;
}
.warning-page .lead {
    color: #334155;
    font-size: 1.08rem;
}
.warning-help {
    margin: 16px auto 24px;
    max-width: 560px;
    color: #64748b;
    line-height: 1.7;
}
.warning-page a.primary-btn { text-decoration: none; display: inline-flex; }



/* v45 multiplication concept worksheet - print quality refinements */
.mul-page{padding:11mm 12mm 10mm;display:flex;flex-direction:column;gap:4mm;background:#fffdf8;color:#1f2937}.mul-page::before{content:"";position:absolute;inset:5mm;border:1mm solid #fde68a;border-radius:8mm;pointer-events:none}.mul-page>*{position:relative}.mul-header{height:30mm;min-height:30mm;display:flex;justify-content:space-between;align-items:center;gap:7mm;padding:4.5mm 7mm;border-radius:7mm;background:linear-gradient(135deg,#fff7ed,#ecfeff);border:1px solid #fed7aa}.mul-kicker{font-size:10.5px;font-weight:900;color:#0f766e;letter-spacing:.03em}.mul-title{font-size:22px;font-weight:1000;line-height:1.08;color:#1d4ed8;letter-spacing:-.02em}.mul-subtitle{font-size:11.5px;color:#64748b;font-weight:800;margin-top:1mm}.mul-meta{display:grid;grid-template-columns:12mm 34mm;gap:2.7mm 2mm;align-items:center;font-size:11.5px;font-weight:900;min-width:48mm}.mul-meta b{display:block;height:7.5mm;border-bottom:1.2px solid #334155}.mul-body{height:225mm;display:flex;flex-direction:column;border:1.2px solid #e2e8f0;border-radius:7mm;background:rgba(255,255,255,.94);padding:5mm;min-height:0;overflow:hidden}.mul-footer{height:11mm;min-height:11mm;border-radius:5mm;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:space-between;padding:0 6mm}.mul-footer span{font-size:13px;font-weight:1000;color:#be123c}.mul-footer em{font-size:10.5px;font-style:normal;color:#64748b;font-weight:900}.mul-section-title{display:grid;grid-template-columns:9mm 1fr;grid-template-rows:auto auto;column-gap:3mm;align-items:center;margin-bottom:3mm;flex:0 0 auto}.mul-section-title span{grid-row:1/3;width:8.5mm;height:8.5mm;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:1000}.mul-section-title strong{font-size:16px;color:#334155;line-height:1.1}.mul-section-title small{font-size:10.8px;color:#64748b;font-weight:800;margin-top:.5mm}.mul-concept-grid,.mul-picture-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(3,1fr);gap:4mm;flex:1;min-height:0;overflow:hidden}.mul-concept-card,.mul-picture-card{position:relative;border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:4mm;display:flex;flex-direction:column;justify-content:space-between;min-width:0;overflow:hidden}.mul-concept-card>b,.mul-picture-card>b{position:absolute;left:4mm;top:4mm;width:7mm;height:7mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:10px;font-weight:1000;display:grid;place-items:center}.mul-group-label{text-align:center;font-size:14px;font-weight:1000;color:#1d4ed8}.mul-groups{display:flex;flex-wrap:nowrap;gap:1.4mm;align-items:center;justify-content:center;min-width:0;overflow:hidden}.mul-group{position:relative;min-width:11mm;max-width:17mm;border:1px solid #bfdbfe;border-radius:4mm;background:#eff6ff;padding:4mm 1mm 1.5mm;display:grid;grid-template-columns:repeat(3,1fr);gap:.8mm;justify-items:center}.mul-group em{position:absolute;top:1mm;left:50%;transform:translateX(-50%);font-size:8px;font-style:normal;color:#2563eb;font-weight:900}.mul-group i{width:2.8mm;height:2.8mm;border-radius:50%;background:#fb7185;border:1px solid #e11d48}.mul-groups.is-small .mul-group{min-width:9mm;max-width:13mm}.mul-groups.is-small .mul-group i{width:2.35mm;height:2.35mm}.mul-add-line,.mul-eq-line{display:grid;align-items:center;gap:1.5mm;font-weight:900;color:#334155}.mul-add-line{grid-template-columns:auto 1fr;font-size:11px}.mul-add-line i,.mul-eq-line i{height:8mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#f8fafc}.mul-eq-line{grid-template-columns:12mm 6mm 12mm 6mm 1fr;text-align:center}.mul-eq-line span{height:8mm;border-radius:3mm;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center}.mul-eq-line em{font-style:normal;font-size:16px;color:#64748b}.mul-guide-strip,.mul-check-strip{height:10mm;margin-top:3mm;border-radius:5mm;background:#f0fdf4;border:1px solid #bbf7d0;color:#047857;font-weight:1000;font-size:12px;display:grid;place-items:center}.mul-write-eq{height:15mm;display:grid;grid-template-columns:1fr 8mm 1fr 8mm 1fr;gap:2mm;align-items:center}.mul-write-eq i{height:11mm;border:1.4px solid #93c5fd;border-radius:3mm;background:#f8fafc}.mul-write-eq span{font-size:18px;font-weight:1000;color:#64748b;text-align:center}.mul-practice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,1fr);gap:3.2mm;flex:1;min-height:0;overflow:hidden}.mul-practice-card{position:relative;border:1.2px solid #dbe4f0;border-radius:5mm;background:#fff;display:grid;grid-template-columns:1fr 8mm 1fr;gap:2mm;align-items:center;padding:4mm 4mm 4mm 10mm;min-width:0}.mul-practice-card b{position:absolute;left:3mm;top:3mm;width:6mm;height:6mm;border-radius:50%;background:#fef3c7;color:#b45309;font-size:9px;display:grid;place-items:center}.mul-practice-card strong{font-size:18px;color:#1d4ed8;text-align:center}.mul-practice-card span{font-size:18px;font-weight:1000;color:#64748b}.mul-practice-card i{height:11mm;border:1.4px solid #93c5fd;border-radius:3mm;background:#f8fafc}.mul-dan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4mm;flex:1;min-height:0}.mul-dan-card{border:1.2px solid #dbe4f0;border-radius:6mm;background:#fff;padding:4mm;display:flex;flex-direction:column;gap:2.5mm;min-width:0}.mul-dan-card h3{margin:0;height:12mm;border-radius:4mm;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:20px}.mul-dan-row{display:grid;grid-template-columns:18mm 1fr;gap:2mm;align-items:center}.mul-dan-row span{font-size:12px;font-weight:1000;color:#334155}.mul-dan-row i{height:9.5mm;border:1.3px solid #93c5fd;border-radius:3mm;background:#f8fafc}.mul-speak-box{height:20mm;margin-top:4mm;border-radius:5mm;border:1.1px dashed #bfdbfe;background:#eff6ff;display:grid;grid-template-columns:28mm 1fr;grid-template-rows:1fr auto;gap:2mm;padding:3mm;align-items:center}.mul-speak-box strong{font-size:12px;color:#1d4ed8}.mul-speak-box i{height:9mm;background:#fff;border:1.2px solid #93c5fd;border-radius:3mm}.mul-speak-box small{grid-column:1/-1;color:#64748b;font-size:10px;font-weight:800}.mul-answer-section{border:1.2px solid #dbe4f0;background:#fff;border-radius:6mm;padding:4mm;margin-bottom:4mm}.mul-answer-section h3{margin:0 0 3mm;font-size:15px;color:#1d4ed8}.mul-answer-chips{display:flex;flex-wrap:wrap;gap:2mm}.mul-answer-chips em{min-height:8mm;border-radius:999px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;font-style:normal;font-size:11px;font-weight:900;display:flex;align-items:center;gap:1.2mm;padding:0 2.5mm}.mul-answer-chips b{width:5.5mm;height:5.5mm;border-radius:50%;background:#fff;color:#2563eb;display:grid;place-items:center;font-size:9px}.mul-teacher-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm;margin-bottom:4mm}.mul-teacher-summary article{border:1px solid #fed7aa;background:#fff7ed;border-radius:5mm;padding:3mm}.mul-teacher-summary b{display:block;color:#be123c;font-size:12px}.mul-teacher-summary span{font-size:11px;font-weight:800;color:#64748b}.mul-teacher-tips{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm}.mul-teacher-tips article{border:1px solid #e2e8f0;background:#fff;border-radius:5mm;padding:3mm}.mul-teacher-tips strong{font-size:13px;color:#0f766e}.mul-teacher-tips p{font-size:10.5px;line-height:1.35;color:#64748b;font-weight:800;margin:1.5mm 0 0}@media print{.mul-concept-card,.mul-picture-card,.mul-practice-card,.mul-dan-card,.mul-answer-section{break-inside:avoid;page-break-inside:avoid}}



/* v45 multiplication print quality refinements */
.mul-card-hint{height:6mm;text-align:center;font-size:11px;font-weight:1000;color:#0f766e;line-height:1}
.mul-picture-card{gap:2mm;justify-content:space-between}
.mul-picture-card .mul-groups{height:31mm;flex-wrap:wrap;align-content:center;justify-content:center;gap:1.1mm 1.25mm;overflow:hidden}
.mul-picture-card .mul-group{min-width:8mm;max-width:10.5mm;border-radius:3mm;padding:3.2mm .8mm 1.1mm}
.mul-picture-card .mul-group em{font-size:7px;top:.65mm}
.mul-picture-card .mul-group i{width:2.05mm;height:2.05mm}
.mul-picture-card .mul-write-eq{height:18mm;grid-template-columns:minmax(0,1fr) 6mm minmax(0,1fr) 6mm minmax(0,1fr)}
.mul-picture-card .mul-write-eq i{height:10.5mm}
.mul-practice-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,1fr);gap:3mm}
.mul-practice-card{padding:3.5mm 3.5mm 3.5mm 9mm;grid-template-columns:1fr 7mm 29mm}
.mul-practice-card strong{font-size:17px}.mul-practice-card i{height:10mm}
.mul-teacher-quick{padding:3.2mm;margin-bottom:3mm}.mul-teacher-quick h3{margin-bottom:1.8mm}
.mul-teacher-answer-row{display:grid;grid-template-columns:27mm 1fr;gap:2mm;align-items:start;border-top:1px solid #edf2f7;padding-top:1.4mm;margin-top:1.4mm}
.mul-teacher-answer-row:first-of-type{border-top:0;padding-top:0;margin-top:0}
.mul-teacher-answer-row>strong{font-size:10.5px;color:#334155;line-height:1.25;padding-top:1mm}
.mul-teacher-v45 .mul-answer-chips{gap:1.15mm}.mul-teacher-v45 .mul-answer-chips em{min-height:6.2mm;font-size:9.3px;padding:0 1.6mm}.mul-teacher-v45 .mul-answer-chips b{width:4.6mm;height:4.6mm;font-size:8px}


/* v46 multiplication print-safe overrides: prevent clipped A4 output */
.mul-page{padding:10mm 11mm 9mm!important;gap:3mm!important;overflow:hidden!important}
.mul-page::before{inset:5mm!important;border-radius:8mm!important}
.mul-header{height:28mm!important;min-height:28mm!important;padding:4mm 6mm!important;border-radius:6mm!important}
.mul-title{font-size:20.5px!important;line-height:1.06!important}
.mul-subtitle{font-size:10.8px!important;margin-top:.6mm!important}
.mul-kicker{font-size:10px!important}
.mul-meta{grid-template-columns:11mm 31mm!important;min-width:44mm!important;font-size:10.5px!important;gap:2.1mm 2mm!important}
.mul-meta b{height:6.6mm!important}
.mul-body{height:220mm!important;padding:4mm!important;border-radius:6mm!important;overflow:hidden!important;min-height:0!important}
.mul-footer{height:10mm!important;min-height:10mm!important;padding:0 5mm!important;border-radius:4.5mm!important}
.mul-footer span{font-size:12px!important}.mul-footer em{font-size:9.8px!important}
.mul-section-title{grid-template-columns:8mm 1fr!important;margin-bottom:2.3mm!important;column-gap:2.6mm!important}
.mul-section-title span{width:7.5mm!important;height:7.5mm!important;font-size:12px!important}
.mul-section-title strong{font-size:15px!important}.mul-section-title small{font-size:10px!important}
.mul-concept-grid,.mul-picture-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:3mm!important;width:100%!important;overflow:hidden!important;min-height:0!important}
.mul-concept-card,.mul-picture-card{min-width:0!important;overflow:hidden!important;border-radius:5mm!important;padding:3.2mm!important;gap:1.6mm!important;box-shadow:none!important}
.mul-concept-card>b,.mul-picture-card>b{left:3mm!important;top:3mm!important;width:6.2mm!important;height:6.2mm!important;font-size:9px!important}
.mul-group-label{font-size:12.5px!important;line-height:1.15!important;height:5.2mm!important;display:grid!important;place-items:center!important}
.mul-groups{max-width:100%!important;min-width:0!important;overflow:hidden!important;gap:.8mm!important}
.mul-concept-card .mul-groups{height:23mm!important;flex-wrap:wrap!important;align-content:center!important;justify-content:center!important}
.mul-picture-card .mul-groups{height:24mm!important;flex-wrap:wrap!important;align-content:center!important;justify-content:center!important;gap:.8mm!important}
.mul-group,.mul-groups.is-small .mul-group,.mul-picture-card .mul-group{min-width:7.2mm!important;max-width:9.5mm!important;border-radius:2.6mm!important;padding:2.7mm .65mm .9mm!important;gap:.45mm!important}
.mul-group em,.mul-picture-card .mul-group em{font-size:6.4px!important;top:.45mm!important}
.mul-group i,.mul-groups.is-small .mul-group i,.mul-picture-card .mul-group i{width:1.82mm!important;height:1.82mm!important}
.mul-add-line{grid-template-columns:minmax(0,1fr) 23mm!important;font-size:9.6px!important;gap:1.1mm!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important}
.mul-add-line i{height:7.2mm!important}.mul-eq-line{grid-template-columns:10.5mm 5mm 10.5mm 5mm minmax(0,1fr)!important;gap:1.1mm!important}.mul-eq-line span,.mul-eq-line i{height:7.5mm!important}.mul-eq-line em{font-size:14px!important}
.mul-card-hint{height:5mm!important;font-size:10.2px!important;line-height:1!important}
.mul-write-eq,.mul-picture-card .mul-write-eq{height:13mm!important;grid-template-columns:minmax(0,1fr) 5mm minmax(0,1fr) 5mm minmax(0,1fr)!important;gap:1.4mm!important}.mul-write-eq i,.mul-picture-card .mul-write-eq i{height:9mm!important}.mul-write-eq span{font-size:15px!important}
.mul-guide-strip,.mul-check-strip{height:8.5mm!important;margin-top:2.3mm!important;font-size:11px!important;border-radius:4mm!important}
.mul-practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(5,minmax(0,1fr))!important;gap:2.6mm!important;overflow:hidden!important}
.mul-practice-card{padding:3mm 3mm 3mm 8mm!important;grid-template-columns:minmax(0,1fr) 6mm 27mm!important;gap:1.5mm!important;border-radius:4.5mm!important;min-width:0!important;overflow:hidden!important}.mul-practice-card b{left:2.4mm!important;top:2.4mm!important;width:5.4mm!important;height:5.4mm!important;font-size:8px!important}.mul-practice-card strong{font-size:16px!important}.mul-practice-card span{font-size:16px!important}.mul-practice-card i{height:9mm!important}
.mul-dan-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3mm!important;overflow:hidden!important}.mul-dan-card{padding:3.2mm!important;gap:2mm!important;border-radius:5mm!important;overflow:hidden!important}.mul-dan-card h3{height:10.5mm!important;font-size:18px!important}.mul-dan-row{grid-template-columns:16mm minmax(0,1fr)!important}.mul-dan-row i{height:8.5mm!important}.mul-speak-box{height:17mm!important;margin-top:3mm!important;padding:2.4mm!important}
.mul-answer-section{padding:3mm!important;margin-bottom:3mm!important}.mul-teacher-answer-row{grid-template-columns:25mm minmax(0,1fr)!important}.mul-teacher-v45 .mul-answer-chips em{font-size:8.8px!important;min-height:5.8mm!important}
@media print{.mul-page{margin:0!important;box-shadow:none!important}.mul-concept-card,.mul-picture-card,.mul-practice-card,.mul-dan-card,.mul-answer-section{break-inside:avoid!important;page-break-inside:avoid!important}}


/* v47 multiplication space rebuild: full-width rows for 8/9 groups */
.mul-row-grid{grid-template-columns:1fr!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:3mm!important}
.mul-wide-card{display:grid!important;grid-template-columns:minmax(0,1fr) 62mm!important;grid-template-rows:1fr!important;align-items:center!important;padding:3mm 3mm 3mm 11mm!important;gap:4mm!important}
.mul-wide-card>b{left:3mm!important;top:50%!important;transform:translateY(-50%)!important}
.mul-row-left,.mul-row-right{min-width:0!important;overflow:hidden!important}
.mul-row-left{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:1.6mm!important;height:100%!important}
.mul-row-right{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:2mm!important}
.mul-wide-card .mul-group-label,.mul-wide-card .mul-card-hint{height:auto!important;text-align:left!important;justify-content:start!important;place-items:start!important;font-size:12.2px!important;line-height:1.1!important;padding-left:1mm!important}
.mul-wide-card .mul-groups{height:auto!important;min-height:25mm!important;max-height:32mm!important;display:flex!important;flex-wrap:wrap!important;align-content:center!important;justify-content:flex-start!important;gap:1mm!important;overflow:hidden!important}
.mul-wide-card .mul-group{min-width:8.2mm!important;max-width:9.2mm!important;flex:0 0 8.6mm!important;border-radius:2.4mm!important;padding:2.6mm .55mm .75mm!important;gap:.35mm!important}
.mul-wide-card .mul-group i{width:1.55mm!important;height:1.55mm!important}
.mul-wide-card .mul-group em{font-size:5.8px!important;top:.35mm!important}
.mul-wide-card .mul-add-line{grid-template-columns:minmax(0,1fr)!important;font-size:9.4px!important;white-space:normal!important;line-height:1.25!important;gap:.8mm!important}
.mul-wide-card .mul-add-line i{height:7.8mm!important;width:100%!important}
.mul-wide-card .mul-eq-line{grid-template-columns:11mm 5mm 11mm 5mm minmax(0,1fr)!important}
.mul-wide-card .mul-write-eq{height:auto!important;grid-template-columns:minmax(0,1fr) 5mm minmax(0,1fr) 5mm minmax(0,1fr)!important}
.mul-wide-card .mul-write-eq i{height:12mm!important}


/* v61 public page-view statistics */
.public-stats-card{margin:18px 0 20px;padding:22px;border:1px solid rgba(37,99,235,.18);border-radius:24px;background:linear-gradient(135deg,rgba(239,246,255,.98),rgba(255,255,255,.96));box-shadow:0 18px 44px rgba(15,23,42,.07)}
.public-stats-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.public-stats-head h2{margin:2px 0 4px;font-size:24px;letter-spacing:-.04em;color:#0f172a}.public-stats-head p{margin:0;color:#64748b;font-weight:750;line-height:1.45}.stats-live-badge{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:30px;border-radius:999px;background:#dcfce7;color:#166534;border:1px solid #bbf7d0;font-size:12px;font-weight:1000;letter-spacing:.06em}.public-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.public-stats-grid article{border:1px solid #dbeafe;background:#fff;border-radius:18px;padding:16px;min-width:0}.public-stats-grid span{display:block;font-size:12px;font-weight:900;color:#64748b}.public-stats-grid strong{display:block;margin-top:6px;font-size:30px;line-height:1;font-weight:1000;color:#1d4ed8;letter-spacing:-.04em}.public-stats-top{margin-top:14px;border:1px dashed #bfdbfe;border-radius:18px;background:rgba(255,255,255,.72);padding:14px 16px}.public-stats-top>strong{display:block;margin-bottom:8px;font-size:14px;color:#334155}.public-stats-top ol{margin:0;padding-left:20px}.public-stats-top li{padding:5px 0;color:#475569;font-weight:850}.public-stats-top li span{display:inline-block;max-width:calc(100% - 70px);vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.public-stats-top li em{float:right;font-style:normal;color:#2563eb;font-weight:1000}@media(max-width:960px){.public-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.public-stats-card{padding:16px;border-radius:20px}.public-stats-head{display:block}.stats-live-badge{margin-top:10px}.public-stats-grid{grid-template-columns:1fr}.public-stats-grid strong{font-size:26px}}
[data-theme="dark"] .public-stats-card{background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(30,41,59,.92));border-color:rgba(96,165,250,.28)}[data-theme="dark"] .public-stats-head h2{color:#e5eefc}[data-theme="dark"] .public-stats-head p,[data-theme="dark"] .public-stats-grid span,[data-theme="dark"] .public-stats-top li{color:#cbd5e1}[data-theme="dark"] .public-stats-grid article,[data-theme="dark"] .public-stats-top{background:rgba(15,23,42,.78);border-color:rgba(96,165,250,.24)}[data-theme="dark"] .public-stats-grid strong,[data-theme="dark"] .public-stats-top li em{color:#93c5fd}
