:root{--bg:#f7faff;--paper:#fff;--ink:#10213f;--muted:#64748b;--line:rgba(49,80,126,.16);--blue:#2478ff;--green:#14b881;--orange:#f59e0b;--red:#ef4444;--shadow:0 18px 56px rgba(21,34,50,.08)}
*{box-sizing:border-box;margin:0;padding:0}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}body{min-height:100vh;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif;background:radial-gradient(circle at 8% 0%,rgba(36,120,255,.12),transparent 34%),radial-gradient(circle at 96% 0%,rgba(20,184,129,.12),transparent 36%),linear-gradient(180deg,#fbfdff 0%,var(--bg) 100%)}
.shell{max-width:1280px;margin:0 auto;padding:0 28px}.topbar{height:70px;background:rgba(255,255,255,.9);border-bottom:1px solid rgba(16,33,63,.08);position:sticky;top:0;z-index:50;backdrop-filter:blur(18px)}.nav{height:70px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:-.03em}.mark{width:38px;height:38px;border-radius:14px;background:linear-gradient(135deg,var(--blue),var(--green));display:grid;place-items:center;color:white;font-family:Fredoka,sans-serif;font-weight:800}.brand small{display:block;color:var(--muted);font-size:12px;font-weight:800;margin-top:2px}.links{display:flex;gap:8px;margin-left:auto}.links a{padding:9px 12px;border-radius:14px;color:#64748b;font-weight:900;font-size:14px}.links a:hover,.links a.active{background:#eef5ff;color:var(--blue)}
.maker-head{padding:24px 0 16px;display:flex;align-items:end;justify-content:space-between;gap:18px}.maker-head h1{font-size:34px;letter-spacing:-.035em}.maker-head p{margin-top:8px;color:#64748b;font-weight:850;line-height:1.55}.head-actions{display:flex;gap:10px;flex-wrap:wrap}.btn{border:0;display:inline-flex;justify-content:center;align-items:center;border-radius:15px;padding:11px 14px;font-weight:950;cursor:pointer;background:linear-gradient(135deg,var(--blue),var(--green));color:#fff}.btn.secondary{background:#fff;color:#1f3353;border:1px solid var(--line)}.btn.ghost{background:#f8fafc;color:#2478ff;border:1px solid var(--line)}.btn.danger{background:#fff;color:var(--red);border:1px solid rgba(239,68,68,.25)}.btn:disabled{opacity:.45;cursor:not-allowed}
.maker-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start;padding-bottom:54px}.paper-stage{background:rgba(255,255,255,.78);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow);padding:22px;overflow:auto}.worksheet-page{width:210mm;min-height:297mm;margin:0 auto;background:var(--paper);border:1px solid rgba(16,33,63,.12);box-shadow:0 16px 44px rgba(21,34,50,.11);padding:14mm 15mm 12mm;position:relative;overflow:hidden}.sheet-top{display:grid;grid-template-columns:92px minmax(0,1fr) 148px;gap:14px;align-items:start;margin-bottom:12px}.sheet-icon{width:76px;height:76px;border:1px solid rgba(49,80,126,.12);border-radius:14px;background:#fbfdff;display:grid;place-items:center;font-size:38px;position:relative;overflow:hidden}.icon-picker{cursor:pointer;transition:.16s ease}.icon-picker:hover{border-color:rgba(36,120,255,.45);box-shadow:0 0 0 4px rgba(36,120,255,.08)}.icon-picker:after{content:"点击换图";position:absolute;left:0;right:0;bottom:0;background:rgba(16,33,63,.72);color:#fff;font-size:10px;font-weight:900;text-align:center;padding:3px 0;opacity:0;transition:.16s}.icon-picker:hover:after{opacity:1}.icon-img{width:100%;height:100%;object-fit:contain;padding:8px;display:none}.icon-fallback{line-height:1}.title-field{width:100%;border:0;border-bottom:2px solid #d8dee8;background:#f3f6f9;border-radius:8px 8px 0 0;padding:9px 12px;text-align:center;font-size:22px;font-weight:950;color:#5a6574;outline:0}.mini-lines{display:grid;gap:7px;color:#31445f;font-size:11px;font-weight:850}.mini-line{display:flex;align-items:center;gap:5px}.mini-line span{flex:1;border-bottom:1px solid #9aa8bc;height:15px}.editor-box{border:1px solid var(--line);background:#fbfdff;border-radius:10px;padding:8px 10px;margin:8px 0}.editor-box label{display:block;font-size:12px;color:#64748b;font-weight:950;margin-bottom:5px}.sheet-field,.sheet-area{width:100%;border:1px solid #dbe3ef;border-radius:10px;background:#fff;padding:10px 11px;color:#10213f;outline:0;font-weight:800}.sheet-area{resize:vertical;min-height:120px;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:13px;line-height:1.55}.instructions-area{min-height:46px;max-height:82px;font-family:inherit;line-height:1.45}.section-title{font-size:15px;font-weight:950;letter-spacing:-.01em;margin:14px 0 8px;color:#10213f}.student-sheet{margin-top:14px}.generated-card{border:1px solid #dbe3ef;border-radius:12px;padding:12px;background:#fff;margin:9px 0;break-inside:avoid}.sheet-header-print{display:none;text-align:center;margin-bottom:18px}.print-icon{display:none}.sheet-header-print h2{font-size:24px;letter-spacing:-.03em}.sheet-header-print p{margin-top:4px;color:#64748b;font-size:13px;font-weight:850}.name-row-print{display:none;justify-content:space-between;gap:20px;margin:18px 0;color:#31445f;font-size:13px;font-weight:850}.line{display:inline-block;min-width:150px;border-bottom:1px solid #94a3b8;height:1em}.blank-line{display:inline-block;border-bottom:2px solid #94a3b8;min-width:190px;height:1.15em}.answer{color:#64748b;font-size:12px;font-weight:850;margin-top:6px}.answer-key-box{border:1px solid rgba(20,184,129,.28);background:#f0fdf8;border-radius:12px;padding:10px 12px;margin-top:12px;color:#166534;font-weight:850;font-size:13px;line-height:1.6}.warning{display:none;border:1px solid rgba(245,158,11,.34);background:#fffbeb;color:#92400e;border-radius:12px;padding:10px 12px;margin:10px 0;font-size:13px;font-weight:850;line-height:1.45}.warning.show{display:block}.side{display:grid;gap:16px}.side-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}.side-card h2{background:#347b3d;color:#fff;font-size:19px;letter-spacing:.02em;padding:14px 16px}.side-body{padding:16px}.stack{display:grid;gap:10px}.option-group{margin:14px 0}.option-group h3{font-size:14px;margin-bottom:8px}.choice{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e4ebf5;border-radius:12px;padding:10px;margin:7px 0;font-weight:900;color:#334155}.choice input{accent-color:var(--blue)}.side-note{font-size:12px;color:#64748b;font-weight:850;line-height:1.55}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#10213f;color:#fff;padding:10px 14px;border-radius:999px;font-size:13px;font-weight:900;box-shadow:0 10px 30px rgba(0,0,0,.18);display:none;z-index:1000}.no-print{}
.control-divider{height:1px;background:#e5edf7;margin:16px 0}.save-input,.save-select{width:100%;border:1px solid #dbe3ef;border-radius:12px;background:#fff;padding:10px 11px;color:#10213f;font-weight:850;outline:0}.save-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.save-row{display:grid;gap:8px}.word-bank{border:1px solid #dbe3ef;border-radius:12px;padding:10px;display:flex;flex-wrap:wrap;gap:7px;margin:10px 0;background:#fbfdff}.word-bank span{font-size:12px;font-weight:850;padding:5px 8px;background:#fff;border:1px solid #e2e8f0;border-radius:999px}.worksheet-table{width:100%;border-collapse:collapse}.worksheet-table td,.worksheet-table th{border-bottom:1px solid #e2e8f0;padding:8px 6px;vertical-align:top}.worksheet-table th{text-align:left;font-size:12px;color:#64748b}.scramble-word{font-weight:950;letter-spacing:.14em;font-size:16px}.hint-line{letter-spacing:.28em;font-weight:950;font-size:18px;line-height:1.65;display:inline-block;min-width:72%}.two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.spelling-row{break-inside:avoid;border-bottom:1px solid #e2e8f0;padding:8px 0;display:grid;grid-template-columns:32px 1fr;gap:8px;align-items:center}.spelling-line{border-bottom:1.8px solid #94a3b8;height:20px}.spelling-label{margin-top:6px;font-size:12px;color:#64748b;font-weight:850}.checkbox{width:18px;height:18px;border:1.7px solid #8da0b8;display:inline-block;margin-right:8px;vertical-align:middle}.match-grid{display:grid;grid-template-columns:1fr 1.55fr;gap:18px;align-items:start}.match-row{display:grid;grid-template-columns:28px 34px 1fr;align-items:start;gap:7px;border-bottom:1px solid #e2e8f0;padding:8px 0;font-weight:850;min-height:38px}.definition-row{display:grid;grid-template-columns:34px 1fr;align-items:start;gap:8px;border-bottom:1px solid #e2e8f0;padding:8px 0;line-height:1.35;min-height:38px}.match-column-title{font-size:12px;font-weight:950;color:#64748b;margin-bottom:4px}.spelling-writing-line{width:100%;height:22px;border-bottom:1.8px solid #94a3b8;margin-top:2px}.copy-line{height:26px;border-bottom:1.7px solid #94a3b8;margin-top:6px}.misspelled-table{width:100%;border-collapse:collapse;margin-top:6px}.misspelled-table th,.misspelled-table td{padding:6px 7px;border-bottom:1px solid #e2e8f0;text-align:center;vertical-align:middle}.misspelled-table th{font-size:12px;font-weight:950;color:#0f172a}.misspelled-table .write-cell{width:140px}.misspelled-table .num-cell{width:32px;text-align:left;font-weight:900}.misspelled-table .option-word{font-weight:900}.write-line{display:block;border-bottom:1.7px solid #94a3b8;height:18px;width:100%;min-width:110px}.circle-mark{display:inline-block;width:18px;height:18px;border:1.7px solid #94a3b8;border-radius:999px;vertical-align:middle;margin-right:6px}.trace-row{break-inside:avoid;margin:12px 0 16px}.trace-text{font-family:"Comic Sans MS","Fredoka","PingFang SC",cursive;font-size:30px;line-height:1.25;color:rgba(16,33,63,.22);-webkit-text-stroke:.35px rgba(16,33,63,.38);letter-spacing:.04em}.trace-line{height:24px;border-bottom:1.7px solid #94a3b8;margin-top:3px}.trace-guide{height:10px;border-top:1px dashed #cbd5e1;border-bottom:1px dashed #cbd5e1;margin-top:-18px;opacity:.9}
@media screen and (max-width:1100px){.maker-layout{grid-template-columns:1fr}.side{grid-template-columns:1fr 1fr}.worksheet-page{width:100%;min-height:900px}}@media screen and (max-width:720px){.shell{padding:0 16px}.nav{height:auto;min-height:70px;flex-wrap:wrap;padding:10px 0}.links{width:100%;overflow:auto}.brand small{display:none}.maker-head{display:block}.head-actions{margin-top:12px}.side{grid-template-columns:1fr}.paper-stage{padding:12px}.worksheet-page{padding:18px}.sheet-top{grid-template-columns:1fr}.sheet-icon{display:none}.match-grid{grid-template-columns:1fr}.two-columns{display:block}}

@page{size:A4;margin:0}
@media print{
  html,body{width:210mm;min-height:297mm;background:#fff!important}
  .topbar,.maker-head,.side,.editor-zone,.no-print{display:none!important}
  .shell{max-width:none!important;padding:0!important;margin:0!important}
  .maker-layout{display:block!important;padding:0!important}
  .paper-stage{border:0!important;box-shadow:none!important;padding:0!important;background:#fff!important;border-radius:0!important;overflow:visible!important}
  .worksheet-page{width:210mm!important;min-height:297mm!important;margin:0!important;border:0!important;box-shadow:none!important;padding:10mm 12mm 9mm!important;overflow:visible!important}
  .sheet-header-print{display:grid!important;grid-template-columns:54px 1fr 54px!important;align-items:center!important;text-align:center!important;margin-bottom:8px!important;gap:10px!important}
  .print-icon{display:grid!important;width:46px!important;height:46px!important;border:1px solid #dbe3ef!important;border-radius:10px!important;place-items:center!important;font-size:25px!important;overflow:hidden!important;justify-self:start!important}.print-icon img{width:100%!important;height:100%!important;object-fit:contain!important;padding:4px!important}
  .sheet-header-print h2{font-size:19px!important;letter-spacing:-.02em!important}
  .sheet-header-print p{font-size:10.5px!important;margin-top:2px!important;color:#111!important}
  .name-row-print{display:flex!important;justify-content:space-between!important;margin:8px 0 10px!important;font-size:11px!important}
  .line{min-width:115px!important}
  .student-sheet{margin-top:0!important}
  .generated-card{break-inside:avoid!important;page-break-inside:avoid!important;padding:7px 8px!important;margin:5px 0!important;border-radius:8px!important}
  .word-bank{padding:7px!important;margin:7px 0 9px!important;gap:5px!important}
  .word-bank span{font-size:10px!important;padding:3px 6px!important}
  .scramble-word{font-size:13px!important;letter-spacing:.1em!important}
  .hint-line{font-size:15px!important;letter-spacing:.22em!important;line-height:1.45!important;min-width:76%!important}
  .two-columns{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px 12px!important}
  .match-grid{display:grid!important;grid-template-columns:.95fr 1.45fr!important;gap:12px!important;align-items:start!important}
  .match-row,.definition-row{padding:5px 0!important;font-size:11.5px!important;line-height:1.28!important;min-height:28px!important}
  .definition-row{grid-template-columns:24px 1fr!important}
  .match-row{grid-template-columns:22px 24px 1fr!important}
  .match-column-title{display:none!important}
  .spelling-row{padding:5px 0!important;grid-template-columns:24px 1fr!important;break-inside:avoid!important}
  .spelling-label{font-size:10px!important;margin-top:3px!important}.spelling-writing-line{height:19px!important}.copy-line{height:19px!important}
  .blank-line{min-width:105px!important;border-bottom-width:1.5px!important}
  .misspelled-table th,.misspelled-table td{padding:3.5px 5px!important;font-size:10.5px!important}.misspelled-table .write-cell{width:115px!important}.write-line{height:14px!important}.trace-row{margin:8px 0 10px!important}.trace-text{font-size:24px!important}.trace-line{height:18px!important}.trace-guide{height:8px!important;margin-top:-14px!important}
  .answer-key-box{break-inside:avoid!important;font-size:11px!important;padding:8px!important;margin-top:8px!important}
}


/* v2.6 refinements */
.large-input-area{min-height:210px}
.misspelled-table.three-options th,.misspelled-table.three-options td{padding:9px 9px;font-size:15px;line-height:1.32}
.misspelled-table.three-options .option-word{font-weight:900;letter-spacing:.01em}
.misspelled-table.three-options .write-cell{width:160px}
.misspelled-table.three-options .write-line{height:22px;min-width:140px}
.collocation-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:start;margin-top:12px}
.collocation-left-row,.collocation-right-row{min-height:46px;padding:8px 0;display:grid;align-items:center;font-size:16px;line-height:1.25;font-weight:850}
.collocation-left-row{grid-template-columns:28px 36px 1fr;gap:10px}
.collocation-right-row{grid-template-columns:1fr 28px;gap:10px;padding-left:18px}
.collocation-prefix{text-align:left}.collocation-prefix:after{content:' -';color:#64748b;font-weight:800}.collocation-suffix{justify-self:start}.collocation-suffix:before{content:'- ';color:#64748b;font-weight:800}.collocation-letter{text-align:right;font-weight:950}.small-action{font-size:12px;padding:8px 10px;border-radius:12px}
@media print{
  .misspelled-table.three-options th,.misspelled-table.three-options td{padding:7.4px 6px!important;font-size:12px!important;line-height:1.28!important}
  .misspelled-table.three-options .write-cell{width:130px!important}.misspelled-table.three-options .write-line{height:19px!important;min-width:118px!important}.misspelled-table.three-options .num-cell{width:25px!important}
  .collocation-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:52px!important;margin-top:10px!important;align-items:start!important}
  .collocation-left-row,.collocation-right-row{min-height:42px!important;padding:5px 0!important;font-size:13.4px!important;line-height:1.22!important;break-inside:avoid!important}
  .collocation-left-row{grid-template-columns:22px 27px 1fr!important;gap:8px!important}.collocation-right-row{grid-template-columns:1fr 22px!important;gap:8px!important;padding-left:14px!important}
}

/* v2.7 refinements */
.hint-line{font-size:22px;letter-spacing:.58em;line-height:1.75;min-width:100%;white-space:nowrap}
.collocation-grid{gap:110px}
.collocation-left-row{grid-template-columns:28px 36px max-content 1fr;gap:10px}.collocation-prefix{text-align:left;justify-self:start}.collocation-right-row{padding-left:42px}
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin-top:18px}.info-card{border:1.7px solid #475569;border-radius:8px;overflow:hidden;break-inside:avoid}.info-card-title{background:#3f3f3f;color:white;text-align:center;font-weight:950;padding:8px;font-size:15px}.info-card-body{min-height:76px;display:grid;place-items:center;text-align:center;font-size:18px;padding:10px}.info-card-body.blank{color:transparent}.prompt-line-row{display:grid;grid-template-columns:minmax(180px,.9fr) 1.6fr;gap:18px;align-items:center;margin:14px 0;break-inside:avoid}.prompt-text{font-weight:850;line-height:1.35}.answer-dotted{border-bottom:2px dotted #94a3b8;height:28px}.sentence-scramble-row{break-inside:avoid;margin:18px 0}.sentence-write-line{border-bottom:2px solid #64748b;height:28px;margin-bottom:9px}.sentence-chips{font-size:15px;color:#64748b;line-height:1.8;word-spacing:.35em}.sort-word-bank{border:1.7px solid #94a3b8;border-radius:8px;padding:12px 16px;text-align:center;margin:18px auto 24px;max-width:84%;line-height:1.65;font-weight:850}.sort-table{width:100%;border-collapse:collapse;table-layout:fixed;margin-top:10px}.sort-table th{border:1.7px solid #475569;padding:10px 6px;font-size:15px}.sort-table td{border-left:1.7px solid #475569;border-right:1.7px solid #475569;border-bottom:1px dotted #cbd5e1;height:36px}.sort-table tr:last-child td{border-bottom:1.7px solid #475569}.pyramid-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 24px;margin-top:18px}.pyramid-card{text-align:center;break-inside:avoid}.pyramid{display:grid;justify-content:center;gap:0;margin-bottom:8px}.pyramid-row{display:flex;justify-content:center}.pyramid-cell{width:28px;height:28px;border:1.4px solid #64748b;background:#fff;display:grid;place-items:center;font-size:17px;color:#2563eb}.pyramid-word{font-size:18px;color:#334155}.pyramid-example .pyramid-cell{color:#2563eb}.small-sheet-note{font-size:13px;color:#64748b;font-weight:850;line-height:1.55;margin-top:6px}
@media print{
  .hint-line{font-size:18px!important;letter-spacing:.48em!important;line-height:1.55!important;min-width:100%!important;white-space:nowrap!important}
  .collocation-grid{gap:84px!important}.collocation-left-row{grid-template-columns:22px 27px max-content 1fr!important}.collocation-right-row{padding-left:34px!important}
  .info-grid{gap:9px 14px!important;margin-top:12px!important}.info-card-title{font-size:13px!important;padding:6px!important}.info-card-body{min-height:58px!important;font-size:15px!important;padding:8px!important}
  .prompt-line-row{grid-template-columns:.9fr 1.55fr!important;gap:14px!important;margin:11px 0!important}.answer-dotted{height:24px!important}
  .sentence-scramble-row{margin:14px 0!important}.sentence-write-line{height:24px!important}.sentence-chips{font-size:12px!important;line-height:1.6!important}
  .sort-word-bank{padding:9px 12px!important;margin:12px auto 18px!important;font-size:12.5px!important}.sort-table th{font-size:12px!important;padding:7px 4px!important}.sort-table td{height:30px!important}
  .pyramid-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px 18px!important;margin-top:12px!important}.pyramid-cell{width:22px!important;height:22px!important;font-size:13px!important}.pyramid-word{font-size:14px!important}
}

/* v2.8 refinements */
.hint-line{display:block!important;width:100%!important;min-width:100%!important;font-size:24px!important;letter-spacing:.95em!important;line-height:1.7!important;white-space:nowrap!important;overflow:visible!important}
.info-grid{gap:16px 18px;margin-top:14px}.info-card{border:1.6px solid #334155;border-radius:8px;overflow:hidden;break-inside:avoid}.info-card-title{background:#fff!important;color:#111827!important;border-bottom:1.4px solid #475569!important;text-align:center;font-weight:950;padding:8px!important;font-size:15px!important}.info-card-body{min-height:96px!important;font-size:18px!important;color:#111827!important}.info-card-body.blank{color:transparent!important}
.sort-word-bank{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:8px!important;max-width:100%!important;width:100%!important;overflow:hidden!important;word-break:normal!important}.sort-word-bank span{display:inline-flex;font-size:14px;font-weight:900;line-height:1.2;white-space:nowrap}.sort-table{width:100%;margin:18px auto 0}.sort-table td{height:44px}.sort-table th{font-size:16px}
@media print{
  .hint-line{font-size:19px!important;letter-spacing:.78em!important;line-height:1.5!important;width:100%!important;min-width:100%!important;white-space:nowrap!important}
  .info-grid{gap:12px 16px!important;margin-top:12px!important}.info-card-title{background:#fff!important;color:#111827!important;border-bottom:1.2px solid #475569!important;font-size:13.5px!important;padding:7px!important}.info-card-body{min-height:76px!important;font-size:16px!important;padding:8px!important;color:#111827!important}.info-card-body.blank{color:transparent!important}
  .sort-word-bank{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px!important;max-width:100%!important;width:100%!important;padding:8px 10px!important;margin:10px auto 16px!important;line-height:1.25!important;overflow:hidden!important}.sort-word-bank span{font-size:11.2px!important;white-space:nowrap!important}.sort-table{width:94%!important;margin:12px auto 0!important}.sort-table th{font-size:12.5px!important;padding:8px 4px!important}.sort-table td{height:39px!important}
}

/* v2.9 refinements */
.sort-word-bank{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;justify-items:center!important;align-items:center!important;gap:7px 12px!important;text-align:center!important;max-width:100%!important;width:100%!important;overflow:hidden!important}
.sort-word-bank span{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important;line-height:1.25!important}
.passage-bank{border:1.7px solid #94a3b8;border-radius:8px;padding:10px 14px;margin:12px auto 18px;display:flex;flex-wrap:wrap;gap:9px 16px;justify-content:center;font-weight:900}
.passage-bank span{white-space:nowrap}.gap-passage{font-size:16px;line-height:2.05;font-weight:800;color:#111827}.gap-passage p{margin:0 0 14px}.gap-blank{display:inline-block;border-bottom:1.8px solid #475569;min-width:115px;height:1.1em;vertical-align:baseline;margin:0 3px}.gap-answer{color:#64748b;font-size:12px;font-weight:850;margin-left:4px}.gap-answer-list{margin-top:16px;font-size:13px;line-height:1.7;color:#166534;font-weight:850}
@media print{
  .sort-word-bank{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:5px 8px!important;padding:8px 10px!important;margin:10px auto 15px!important}
  .sort-word-bank span{font-size:10.8px!important;line-height:1.15!important}
  .passage-bank{padding:8px 10px!important;margin:9px auto 14px!important;gap:6px 12px!important;font-size:11.5px!important}.gap-passage{font-size:13.6px!important;line-height:1.85!important}.gap-passage p{margin-bottom:10px!important}.gap-blank{min-width:92px!important;border-bottom-width:1.5px!important}.gap-answer-list{font-size:11px!important;margin-top:10px!important}
}

/* v3.0 refinements */
.sort-word-bank{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px 12px!important;align-items:start!important}
.sort-word-bank span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important;text-align:center!important;font-size:12.8px!important;line-height:1.22!important}
.passage-bank{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(72px,1fr))!important;gap:8px 12px!important;justify-items:center!important;align-items:center!important;max-width:92%!important}
.passage-bank span{white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;line-height:1.2!important}
.gap-passage{font-size:18px!important;line-height:2.18!important;font-weight:850!important;max-width:88%!important;margin:0 auto!important}
.gap-blank{min-width:130px!important;height:1.15em!important}
@media print{
  .sort-word-bank{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px 8px!important;padding:8px 10px!important}
  .sort-word-bank span{white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;font-size:10.6px!important;line-height:1.18!important}
  .passage-bank{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;max-width:90%!important;gap:5px 8px!important;padding:8px 10px!important}
  .passage-bank span{white-space:normal!important;overflow-wrap:anywhere!important;font-size:11.2px!important;line-height:1.18!important}
  .gap-passage{font-size:15.8px!important;line-height:2.05!important;max-width:88%!important;margin:0 auto!important}
  .gap-blank{min-width:112px!important}
}


/* v3.1 print polish */
.word-bank{border:1.6px solid #dbe3ef!important;border-radius:12px!important;background:#fff!important;padding:12px 16px!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px 14px!important;align-items:center!important;justify-items:center!important;text-align:center!important;line-height:1.35!important}
.word-bank span{display:block!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;font-size:13.5px!important;font-weight:900!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.25!important}
.hint-line{display:flex!important;align-items:flex-end!important;gap:12px!important;width:100%!important;min-width:0!important;letter-spacing:0!important;line-height:1.25!important;white-space:normal!important;overflow:visible!important;margin-top:8px!important}
.hint-line .blank-tick{display:inline-block;width:20px;height:18px;border-bottom:3px solid #222;flex:0 0 auto}
.hint-line .hint-letter{display:inline-grid;place-items:end center;width:20px;height:22px;font-size:20px;font-weight:950;line-height:1;color:#222;flex:0 0 auto}
.match-pair-grid{display:grid;grid-template-columns:32px 38px minmax(130px,.9fr) 42px minmax(220px,1.35fr);column-gap:14px;row-gap:12px;align-items:center;margin-top:8px}
.match-pair-grid .match-cell{font-weight:900;line-height:1.28;min-height:32px;display:flex;align-items:center}
.match-pair-grid .match-num,.match-pair-grid .match-letter{font-weight:950;justify-content:flex-start}
.match-pair-grid .match-word{justify-content:flex-start}
.match-pair-grid .match-clue{font-weight:750;justify-content:flex-start}
.match-row,.definition-row{border-bottom:0!important}
.spelling-row{border-bottom:0!important;padding-bottom:9px!important}
.misspelled-table th,.misspelled-table td{border-bottom:0!important}
.misspelled-table.three-options th,.misspelled-table.three-options td{border-bottom:0!important}
@media print{
  .word-bank{grid-template-columns:repeat(6,minmax(0,1fr))!important;padding:8px 10px!important;gap:6px 8px!important;margin:7px 0 10px!important}
  .word-bank span{font-size:10.8px!important;line-height:1.18!important}
  .hint-line{gap:9px!important;margin-top:5px!important;line-height:1.1!important}
  .hint-line .blank-tick{width:17px!important;height:14px!important;border-bottom-width:2.4px!important}
  .hint-line .hint-letter{width:17px!important;height:17px!important;font-size:16px!important}
  .match-pair-grid{grid-template-columns:24px 28px minmax(105px,.85fr) 30px minmax(185px,1.35fr)!important;column-gap:10px!important;row-gap:8px!important;margin-top:6px!important}
  .match-pair-grid .match-cell{min-height:27px!important;font-size:12px!important;line-height:1.22!important}
  .match-pair-grid .checkbox{width:17px!important;height:17px!important;margin-right:0!important}
  .spelling-row{border-bottom:0!important;padding-bottom:6px!important}
  .misspelled-table th,.misspelled-table td{border-bottom:0!important}
}

/* v3.3 worksheet branding footer: render inside every worksheet page, not as body fixed pseudo-elements. */
.worksheet-page{padding-bottom:21mm}
.worksheet-page::after{
  content:"Created at class.qingfanedu.com";
  position:absolute;
  left:12mm;
  right:12mm;
  bottom:7mm;
  border-top:1.2px solid #111;
  padding-top:3.4mm;
  font-size:10.5px;
  font-weight:850;
  color:#111;
  line-height:1;
  z-index:30;
  pointer-events:none;
}
.worksheet-page::before{
  content:"青帆英语";
  position:absolute;
  right:12mm;
  bottom:7mm;
  padding-top:3.4mm;
  font-size:10.5px;
  font-weight:900;
  color:#111;
  line-height:1;
  z-index:31;
  pointer-events:none;
}
@media print{
  .toast{display:none!important}
  body::before,body::after{content:none!important;display:none!important}
  .worksheet-page{padding-bottom:21mm!important}
  .worksheet-page::after{
    left:12mm!important;right:12mm!important;bottom:6mm!important;
    border-top:1.2px solid #111!important;padding-top:3.4mm!important;
    font-size:10.5px!important;font-weight:850!important;color:#111!important;line-height:1!important;
  }
  .worksheet-page::before{
    right:12mm!important;bottom:6mm!important;padding-top:3.4mm!important;
    font-size:10.5px!important;font-weight:900!important;color:#111!important;line-height:1!important;
  }
}

/* v3.7 direct PDF download capture state */
.pdf-brand-footer{display:none}
.worksheet-page.pdf-capturing{width:210mm!important;min-height:297mm!important;margin:0!important;border:0!important;box-shadow:none!important;padding:10mm 12mm 21mm!important;overflow:visible!important;background:#fff!important;box-sizing:border-box!important}
.worksheet-page.pdf-capturing::before,.worksheet-page.pdf-capturing::after{content:none!important;display:none!important}
.worksheet-page.pdf-capturing .editor-zone{display:none!important}
.worksheet-page.pdf-capturing .sheet-header-print{display:grid!important;grid-template-columns:54px 1fr 54px!important;align-items:center!important;text-align:center!important;margin-bottom:8px!important;gap:10px!important}
.worksheet-page.pdf-capturing .print-icon{display:grid!important;width:46px!important;height:46px!important;border:1px solid #dbe3ef!important;border-radius:10px!important;place-items:center!important;font-size:25px!important;overflow:hidden!important;justify-self:start!important}
.worksheet-page.pdf-capturing .print-icon img{width:100%!important;height:100%!important;object-fit:contain!important;padding:4px!important}
.worksheet-page.pdf-capturing .sheet-header-print h2{font-size:19px!important;letter-spacing:-.02em!important;margin:0!important}
.worksheet-page.pdf-capturing .sheet-header-print p{font-size:10.5px!important;margin-top:2px!important;color:#111!important}
.worksheet-page.pdf-capturing .name-row-print{display:flex!important;justify-content:space-between!important;margin:8px 0 10px!important;font-size:11px!important;color:#111!important}
.worksheet-page.pdf-capturing .pdf-brand-footer{display:none!important}

body.pdf-generating{cursor:progress!important}
body.pdf-generating button{pointer-events:none}
