@import"https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@400;700&display=swap";body{font-family:Noto Sans SC,sans-serif}.textbook-serif{font-family:"Noto Serif SC",serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button:disabled{opacity:.5;cursor:wait}body{color:#111827;background:#f8fafc}.app-shell{min-height:100vh;min-height:100dvh;padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}.app-header{background:#fffffff7;border-bottom:1px solid #e5e7eb;padding:calc(12px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px));display:flex;align-items:center;justify-content:space-between;gap:8px}.app-brand{display:flex;align-items:center;gap:10px;min-width:0}.app-title{font-size:clamp(18px,2vw,24px);font-weight:700;margin:0;line-height:1.35}.brand-name{font-size:10px;font-weight:700;color:#64748b;letter-spacing:.12em}.header-actions{display:flex;gap:4px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;min-width:48px;padding:10px 16px;border:1px solid #d1d5db;border-radius:12px;font-size:16px;font-weight:600;line-height:1.4;cursor:pointer;text-decoration:none;transition:background .15s}.button-primary{color:#fff;background:#2563eb;border-color:#2563eb}.button-primary:hover{background:#1d4ed8}.button-secondary{color:#334155;background:#fff}.button-ghost{color:#475569;background:transparent;border-color:transparent}.button-danger{color:#b91c1c;background:transparent;border-color:transparent}.button-ghost:hover,.button-secondary:hover{background:#eef2f7}button:disabled{cursor:default;opacity:.5}.button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}.icon{width:22px;height:22px;flex:0 0 auto}.compact-action{padding:10px}.action-label{display:none}.app-navigation{position:fixed;bottom:0;left:0;right:0;z-index:40;display:flex;gap:8px;background:#fff;border-top:1px solid #e5e7eb;padding:8px max(16px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}.app-navigation .button{flex:1}.app-navigation .active{color:#1d4ed8;background:#eff6ff}.count-badge{padding:2px 7px;font-size:13px;background:#dbeafe;color:#1d4ed8;border-radius:16px}.app-content{width:100%;max-width:1440px;margin:0 auto;padding:20px max(16px,env(safe-area-inset-right,0px)) 20px max(16px,env(safe-area-inset-left,0px))}.editor-panel{max-width:896px;padding:clamp(16px,3vw,32px);margin:0 auto 24px;background:#fff;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 4px 16px #0f172a08}.editor-heading,.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.editor-heading h2,.dialog-heading h2{font-size:20px;margin:0}.editor-heading .button{padding:10px;font-size:14px;white-space:nowrap;flex-shrink:0}.editor-intro{color:#64748b;font-size:15px;line-height:1.6;margin:8px 0 16px}.lesson-input{width:100%;min-height:256px;resize:vertical;border:1px solid #cbd5e1;background:#f8fafc;border-radius:12px;padding:16px;font-size:18px;line-height:1.7}.drop-zone{margin-top:16px;padding:12px;text-align:center;border:1px dashed #cbd5e1;border-radius:12px}.drop-zone p{margin:6px 0;font-size:14px;line-height:1.5;color:#64748b}.attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.attachment{display:inline-flex;align-items:center;gap:4px;max-width:100%;background:#eff6ff;border-radius:12px;padding-left:12px}.attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.editor-actions{display:flex;flex-direction:column;gap:16px;margin-top:20px}.exercise-count{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-size:15px}.count-control{display:flex;align-items:center;border:1px solid #cbd5e1;border-radius:12px;background:#fff}.count-control input{width:56px;min-height:48px;border:none;padding:8px 2px;text-align:center;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;font-size:18px}.count-control input::-webkit-inner-spin-button,.count-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.saved-lessons{max-width:896px;margin:0 auto;display:flex;flex-direction:column;gap:8px}.field-label{font-size:15px;font-weight:600}.saved-lessons select,.share-url{width:100%;min-height:48px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;font-size:16px}.save-status{text-align:center;font-size:14px;color:#64748b;margin:16px 0}.worksheet-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.worksheet-toolbar p{font-size:15px;color:#64748b;margin:0}.notice{background:#fef2f2;border-left:4px solid #ef4444;padding:16px;margin-bottom:24px;color:#b91c1c;border-radius:8px}.notice p{margin:0;line-height:1.6}.notice-title{font-weight:700}.spinner{display:inline-block;width:24px;height:24px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}.button{transition:none}}.app-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #e5e7eb;border-radius:20px;padding:20px;color:#111827;box-shadow:0 24px 80px #0f172a33}.app-dialog::backdrop{background:#0f172a66}.app-dialog p{line-height:1.6;font-size:16px;color:#475569}.app-dialog h3{font-size:16px;margin:20px 0 4px}.share-url{margin-top:8px;font-size:14px}.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.dialog-status{min-height:24px;margin-bottom:0}.worksheet-list{display:flex;flex-direction:column;gap:clamp(16px,3vw,40px)}.slide-frame{position:relative;width:100%;aspect-ratio:297 / 210;overflow:hidden;background:#fff;border:1px solid #e5e7eb;box-shadow:0 4px 16px #0f172a0d;margin:20px 0}.worksheet{position:absolute;top:0;left:0;width:297mm;height:210mm;padding:40px 50px 34px;display:flex;flex-direction:column;gap:26px;background:#fff;color:#17212e;transform-origin:0 0;transform:scale(var(--slide-scale, 1))}.page-width-probe{position:fixed;width:100%;height:0;left:0;top:0}.worksheet ruby{ruby-align:center}.worksheet rt{font-family:Noto Sans SC,sans-serif;font-size:16px;font-weight:400;color:#526174;line-height:1.15;letter-spacing:0}.worksheet-heading{flex:0 0 auto;padding-bottom:18px;border-bottom:1px solid #ccd6dc;font-family:Noto Sans SC,sans-serif}.worksheet-heading>span{display:block;font-size:16px;color:#526174;letter-spacing:.03em}.worksheet-heading h2{font-size:36px;line-height:1.2;margin:12px 0 14px}.worksheet-heading p{font-size:19px;line-height:1.4;margin:0}.word-bank{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:18px;padding-top:12px}.word-bank>span{border:1px solid #7d919c;border-radius:5px;padding:9px 16px 5px;font-size:32px;line-height:1.6;text-align:center;white-space:nowrap}.worksheet-columns{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:34px}.worksheet-dialogue{min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:space-evenly;font-size:36px;line-height:1.95;padding:12px 0}.worksheet-dialogue p{margin:0}.dialogue-lines{display:flex;flex-direction:column;gap:24px}.dialogue-line{display:flex;align-items:baseline;gap:14px}.dialogue-line strong{flex:0 0 auto;font-family:Noto Sans SC,sans-serif;font-size:24px}.dialogue-line p{min-width:0}.reading-question{margin-top:12px}.support-question{font:21px/1.5 Noto Sans SC,sans-serif}.scramble-parts{display:flex;flex-wrap:wrap;gap:22px}.scramble-parts>span{border:1px solid #9aaab2;padding:3px 10px;line-height:1.8}.answer-blank{display:inline-block;width:2.5em;height:1em;border-bottom:1.5px solid currentColor;vertical-align:-.1em;margin:0 .08em}.item-list{height:100%;margin:0;padding-left:32px;display:flex;flex-direction:column;justify-content:space-around;gap:20px}.item-list li{padding-left:3px}.item-list li::marker{font-family:Noto Sans SC,sans-serif;font-size:22px;color:#477e99}.choice-options{display:flex;flex-wrap:wrap;gap:14px 22px;font-size:32px;line-height:1.6;margin-top:18px}.choice-options>span{display:inline-flex;align-items:baseline;gap:12px;white-space:nowrap}.choice-options b,.match-grid b{font-family:Noto Sans SC,sans-serif;font-size:20px;color:#477e99}.judge-box,.match-box{display:inline-block;width:28px;height:28px;border:1px solid #526174;flex-shrink:0}.judgement{display:list-item;position:relative;padding-right:46px!important}.judgement .judge-box{position:absolute;right:0;top:22px}.worksheet-matching .worksheet-columns{grid-template-columns:1fr}.match-grid{height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:60px;row-gap:30px;font-size:32px}.match-left,.match-right{position:relative;padding:0 38px 0 28px}.match-grid b{position:absolute;left:0}.match-box{position:absolute;right:0;top:18px}.answer-line{border-bottom:1px solid #8899a2;height:54px;flex:0 0 auto}.worksheet-image{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;border-left:1px solid #a4b1b9;padding-left:22px}.worksheet-image img{display:block;width:100%;height:100%;object-fit:contain}.image-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.picture-scenes{flex-direction:column;gap:12px}.picture-scenes figure{width:100%;flex:1 1 0;min-height:0;margin:0;display:flex;align-items:center;gap:12px}.picture-scenes img{width:calc(100% - 35px)}.picture-scenes figcaption{color:#477e99;font:700 24px Noto Sans SC,sans-serif}.worksheet-footer{display:flex;justify-content:space-between;flex:0 0 auto;font-size:16px;color:#526174}.answer-pages{display:none}.solution-groups{flex:1;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:18px}.solution-groups h3{font-size:22px;margin:0 0 20px}.solution-groups ol{display:flex;flex-wrap:wrap;gap:18px 50px;margin:0;padding-left:28px;font:26px/1.8 "Noto Serif SC",serif}.solution-groups li{padding-left:6px}.coverage-option{margin-top:18px;font-size:15px;display:flex;align-items:flex-start;gap:10px;line-height:1.5}.coverage-option input{margin-top:5px;width:18px;height:18px}@media(min-width:768px){.app-shell{padding-bottom:40px}.app-header{padding-left:clamp(24px,3vw,40px);padding-right:clamp(24px,3vw,40px)}.action-label{display:inline}.app-navigation{position:static;width:fit-content;margin:24px auto 0;border:1px solid #e5e7eb;border-radius:16px;padding:4px}.app-navigation .button{flex:0 1 auto;min-width:144px}.app-content{padding:24px clamp(24px,3vw,40px)}.editor-actions{flex-direction:row;align-items:end;justify-content:space-between}.exercise-count{flex-direction:column;align-items:start}}@media(max-width:479px){.editor-actions>button{width:100%}.editor-heading{align-items:start}.editor-heading h2{font-size:18px;padding-top:10px}.worksheet-toolbar .button{width:100%}}@media print{@page{size:A4 landscape;margin:0}html,body{width:297mm;margin:0}body{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff!important}.no-print{display:none!important}.app-shell{min-height:0;padding-bottom:0}.app-content{max-width:none;padding:0!important}.worksheet-list{display:block}.slide-frame{margin:0;width:297mm;height:210mm;aspect-ratio:auto;border:none;box-shadow:none;break-inside:avoid;break-after:page;page-break-after:always}.slide-frame:last-of-type{break-after:auto;page-break-after:auto}.worksheet{transform:none}[data-print-mode=solutions] .student-pages{display:none}[data-print-mode=solutions] .answer-pages{display:block}.worksheet-list .slide-frame:last-child{break-after:auto;page-break-after:auto}}
