:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#1b3448;background:#eaf0f4;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.35}input,select,textarea{color:#18354a}textarea{resize:vertical;line-height:1.55}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #2582b2;outline-offset:2px}
.topbar{height:76px;background:#193347;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:22px;box-shadow:0 2px 13px #19334722}.identity{display:flex;align-items:center;gap:12px;flex-shrink:0}.identity-mark{width:42px;height:42px;border:2px solid #f3c543;border-radius:8px;display:grid;place-items:center;position:relative;color:#f3c543;font-weight:800;letter-spacing:-2px}.identity-mark:after{content:"";position:absolute;width:25px;height:1px;background:#f3c543;bottom:8px}.brand-name{font-weight:750;letter-spacing:.11em;font-size:17px}.brand-sub{font-size:12px;color:#cbd9df;letter-spacing:.07em}.topbar-actions{display:flex;align-items:center;gap:10px}.save-status{font-size:13px;color:#c8dce6;min-width:80px;text-align:right;margin-right:6px}.button{border:1px solid transparent;border-radius:8px;padding:10px 16px;font-size:14px;font-weight:650;white-space:nowrap}.button.primary{background:#f7cb49;color:#173247}.button.primary:hover{background:#ffdb68}.button.ghost{border-color:#7890a2;background:transparent;color:#f1f7f9}.button.ghost:hover{background:#ffffff16}.button.subtle{background:#eaf3f8;border-color:#c9d9e2;color:#24475e;padding:8px 11px}.workspace{display:grid;grid-template-columns:272px minmax(530px,1fr) minmax(410px,.88fr);gap:16px;align-items:start;padding:16px;max-width:1940px;margin:auto}.lesson-rail,.main-editor,.preview-column{min-width:0}.lesson-rail{background:#fff;border-radius:11px;box-shadow:0 4px 22px #1933470d;min-height:calc(100vh - 108px);padding:18px 16px;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto}.rail-heading{display:flex;align-items:center;justify-content:space-between;font-size:16px;font-weight:750;margin-bottom:15px}.rail-heading small{font-size:13px;color:#7b8d98;margin-left:3px}.text-button{border:0;background:none;color:#17769d;font-size:14px;font-weight:650;padding:5px}.text-button:hover{text-decoration:underline}.lesson-fields label,.field-settings label,.full-label,.form-grid label,.number-field{display:block;color:#526778;font-size:13px;font-weight:650}.lesson-fields label{margin:0 0 13px}.lesson-fields input,.lesson-fields textarea,.field-settings input,.field-settings select,.number-field input,.form-grid input,.form-grid textarea,.variation-card input,.variation-card textarea,.full-label textarea,.selected-inspector input{display:block;width:100%;margin-top:6px;border:1px solid #cedbe3;border-radius:7px;background:#fff;padding:9px 10px;font-size:15px;font-weight:400;min-height:39px}.lesson-fields input::placeholder,.lesson-fields textarea::placeholder,.form-grid textarea::placeholder,.form-grid input::placeholder,.full-label textarea::placeholder{color:#98a9b2}.two-inputs{display:grid;grid-template-columns:1fr 1fr;gap:9px}.logo-row{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:12px;font-weight:400;color:#728492;overflow:hidden}.logo-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drills-heading{border-top:1px solid #e6edf0;padding-top:18px;margin-top:7px;margin-bottom:8px}.exercise-list{display:flex;flex-direction:column;gap:7px}.exercise-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid transparent;border-radius:8px;padding:11px 9px;background:#f5f8fa;color:#193347}.exercise-item:hover{background:#eaf4f7}.exercise-item.is-active{background:#e9f3f7;border-color:#76b6c8}.exercise-number{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:6px;background:#f9d258;color:#22394b;font-size:12px;font-weight:800}.exercise-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:650}.storage-note{color:#738693;font-size:13px;line-height:1.55;margin:20px 4px 2px;border-top:1px solid #e5edf0;padding-top:13px}.editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-height:71px;padding:7px 4px 13px}.eyebrow{color:#518097;font-size:13px;font-weight:750;letter-spacing:.05em}.editor-head h1{font-size:22px;line-height:1.3;margin:4px 0 0;font-weight:750}.small-actions{display:flex;gap:5px}.icon-button{border:1px solid #ccdbe2;background:#fff;color:#375970;border-radius:6px;min-width:31px;height:31px;font-size:18px}.icon-button:hover{background:#e7f4f7}.icon-button.danger{color:#b44238}.editor-card{background:#fff;border-radius:11px;box-shadow:0 4px 22px #1933470d;padding:22px;margin-bottom:16px}.card-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.card-title-row>div,.section-label{display:flex;align-items:center;gap:10px}.card-title-row h2{font-size:18px;margin:0}.step-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:#f9d259;color:#243b49;width:34px;height:30px;font-size:14px;font-weight:750}.hint{color:#7b8d98;font-size:13px}.field-settings{display:grid;grid-template-columns:1.25fr 1.15fr .65fr .65fr;gap:10px;align-items:end}.field-settings label{white-space:nowrap}.field-settings input,.field-settings select{margin-top:7px}.palette-row{border-top:1px solid #e4eaee;padding-top:16px;margin-top:17px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.palette-label{font-size:13px;color:#526778;font-weight:650;white-space:nowrap}.swatches{display:flex;gap:6px;flex-wrap:wrap}.swatch{width:30px;height:30px;display:grid;place-items:center;border:2px solid transparent;background:transparent;border-radius:50%;padding:3px}.swatch span{width:21px;height:21px;border-radius:50%;display:block;box-shadow:0 0 0 1px #68829344}.swatch.selected{border-color:#233e51}.number-field{margin-left:auto;white-space:nowrap}.number-field input{display:inline-block;width:68px;margin-left:7px;margin-top:0;padding:6px 8px;min-height:34px;text-align:center}.tool-row{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 13px}.tool-button{border:1px solid #cbdbe2;border-radius:7px;background:#f4f8fa;color:#274a5e;font-size:13px;padding:8px 9px;font-weight:650}.tool-button:hover{border-color:#63a8bd;background:#e9f4f8}.clear-field{margin-left:auto}.canvas-wrap{background:#f7fafb;border:1px solid #dce7eb;border-radius:9px;overflow:hidden;user-select:none;touch-action:none}.canvas-wrap svg{width:100%;height:auto;display:block;touch-action:none}.placed{cursor:grab;touch-action:none}.placed.is-dragging{cursor:grabbing}.placed.is-selected .selection-ring{stroke:#182f43;stroke-width:3;stroke-dasharray:5 4}.selected-inspector{min-height:27px;margin:10px 0 6px;display:flex;align-items:center;gap:10px;color:#596f7b;font-size:13px}.selected-inspector .selection-name{color:#18394b;font-weight:700}.selected-inspector input{width:82px;display:inline-block;margin:0;min-height:32px;padding:5px 7px;text-align:center}.selected-inspector button{margin-left:auto}.full-label{margin-top:9px}.full-label textarea{margin-top:7px}.section-label{font-size:17px;font-weight:750;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #e4edf1}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{min-width:0}.form-grid .span-2{grid-column:1/-1}.form-grid textarea{min-height:74px}.content-card .section-label:not(:first-child){margin-top:27px}.variation-card{border:1px solid #d7e3e8;border-radius:8px;background:#f8fafb;padding:12px;margin:10px 0}.variation-head{display:flex;gap:8px;align-items:center}.variation-head input{margin:0}.variation-card textarea{margin-top:9px}.variation-head button{border:none;background:transparent;color:#ad5147;font-size:13px;white-space:nowrap}.add-variation{background:#edf5f7;border:1px dashed #8db9c7;border-radius:7px;width:100%;padding:9px;color:#236f8e;font-size:14px;font-weight:650;margin-top:9px}.preview-column{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;padding-right:3px}.preview-title{display:flex;justify-content:space-between;padding:11px 1px 14px;color:#516a7b;font-size:14px;font-weight:700}.preview-title span:last-child{font-size:12px;color:#78909c}.preview-help{color:#6d8291;font-size:13px;line-height:1.5;padding:0 4px 25px}.sheet{width:100%;min-height:780px;background:#fff;color:#203b4e;display:flex;flex-direction:column;box-shadow:0 9px 25px #17324724;font-size:13px;line-height:1.55;overflow:hidden}.sheet-header{background:#1b3448;color:#fff;padding:24px 28px 17px}.sheet-overline{font-size:12px;letter-spacing:.07em;opacity:.9}.sheet-header h2{font-size:26px;line-height:1.3;font-weight:500;margin:7px 0 8px;letter-spacing:.015em}.sheet-subtitle{font-size:13px;color:#e1e9ec}.sheet-body{padding:15px 28px 9px;flex:1;display:flex;flex-direction:column;gap:10px}.sheet-intro{line-height:1.7}.sheet-intro p{margin:0 0 5px}.sheet-section{margin:1px 0 0}.section-heading{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:500;margin:0 0 8px}.section-heading .step-chip{width:29px;height:27px;font-size:12px}.sheet-diagram{width:100%;height:auto;display:block;max-height:255px}.diagram-legend{display:flex;flex-wrap:wrap;gap:8px 15px;color:#526a79;font-size:11px;justify-content:center;margin:2px 0}.legend-item{display:inline-flex;align-items:center;gap:5px}.legend-dot{width:14px;height:14px;border-radius:50%;display:inline-block}.diagram-note{color:#526777;margin:4px 0 0;font-size:11px;white-space:pre-wrap;line-height:1.55}.sheet-text{white-space:pre-wrap;line-height:1.62;margin:0}.sheet-text:empty{display:none}.sheet-notes{border-top:1px solid #ccdbe1;margin-top:auto;padding-top:10px;color:#5a7080;font-size:11px;white-space:pre-wrap;line-height:1.5}.sheet-footer{display:flex;justify-content:space-between;gap:12px;padding:13px 28px 20px;color:#516577;font-size:11px}.cover .sheet-body{padding-top:23px;gap:16px}.cover h3{font-size:16px;margin:0 0 10px}.cover-goal{background:#f3f8fa;border-left:3px solid #f2c744;padding:12px 14px;white-space:pre-wrap;line-height:1.65}.cover-list{list-style:none;padding:0;margin:0}.cover-list li{display:flex;gap:12px;border-bottom:1px solid #e5ecef;padding:10px 0}.cover-list .cover-number{flex-shrink:0;width:28px;height:28px;border-radius:5px;display:grid;place-items:center;background:#f8d15d;font-size:12px;font-weight:750}.cover-list strong{font-size:14px;font-weight:700}.cover-list small{display:block;color:#728493;font-size:11px;margin-top:2px}.cover-meta{margin-top:auto;border-top:1px solid #d4e0e6;padding-top:13px;color:#526a79;font-size:12px}.logo-image{max-height:35px;max-width:95px;object-fit:contain;vertical-align:middle}.cover .logo-image{max-height:52px;max-width:140px;margin-bottom:9px}.print-root{display:none}.mobile-tabs{display:none}
@media(max-width:1410px){.workspace{grid-template-columns:236px minmax(500px,1fr) minmax(340px,.75fr);gap:12px;padding:12px}.lesson-rail{padding:15px 12px}.editor-card{padding:17px}.sheet-header{padding:20px}.sheet-body{padding:13px 20px 8px}.sheet-footer{padding:10px 20px 16px}.sheet-header h2{font-size:22px}}
@media(max-width:1160px){.workspace{grid-template-columns:240px minmax(0,1fr)}.preview-column{grid-column:2;position:static;max-height:none;overflow:visible}.preview-column .sheet{max-width:620px}.lesson-rail{max-height:calc(100vh - 24px)}}
@media(max-width:760px){.topbar{height:auto;min-height:68px;padding:10px 14px;flex-wrap:wrap}.topbar-actions{width:100%;justify-content:space-between;gap:5px}.save-status{font-size:12px;text-align:left;min-width:0;margin-right:auto}.button{padding:9px 11px;font-size:13px}.secondary-action{padding:8px!important}.mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#193347;padding:0 12px}.mobile-tabs button{border:0;border-bottom:3px solid transparent;background:none;color:#c7dbe3;padding:11px;font-size:14px}.mobile-tabs button.active{color:#fff;border-color:#f2cb51;font-weight:750}.workspace{display:block;padding:10px}.mobile-panel{display:none!important}.mobile-panel.active{display:block!important}.lesson-rail{position:static;max-height:none;min-height:0}.preview-column{padding:0 3px}.editor-head{margin-top:3px}.editor-head h1{font-size:20px}.editor-card{padding:15px}.field-settings{grid-template-columns:1fr 1fr}.hint{display:none}.sheet{max-width:100%;min-height:730px}.sheet-header{padding:18px}.sheet-body{padding:12px 18px 8px}.sheet-footer{padding:10px 18px 16px}.sheet-header h2{font-size:21px}.sheet-diagram{max-height:235px}}
@media(max-width:420px){.topbar-actions .secondary-action{font-size:12px;padding:7px!important}.topbar-actions .primary{font-size:12px}.brand-name{font-size:16px}.tool-button{padding:7px;font-size:12px}.field-settings{gap:8px}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.palette-row{gap:6px}.number-field{margin-left:0}.sheet{font-size:12px}.sheet-header h2{font-size:19px}.section-heading{font-size:14px}}
@media print{@page{size:A4;margin:0}html,body{width:210mm;margin:0!important;padding:0!important;background:white!important;color:#203b4e;-webkit-print-color-adjust:exact;print-color-adjust:exact}.app-shell{display:none!important}.print-root{display:block!important}.sheet{width:210mm;min-height:297mm;height:auto;box-shadow:none;overflow:visible;font-size:11.3pt;line-height:1.48;break-after:page;page-break-after:always}.sheet:last-child{break-after:auto;page-break-after:auto}.sheet-header{padding:7mm 14mm 5mm}.sheet-overline{font-size:9pt}.sheet-header h2{font-size:22pt;margin:2mm 0 2mm}.sheet-subtitle{font-size:10pt}.sheet-body{padding:4mm 14mm 1mm;gap:2.3mm}.sheet-intro p{margin-bottom:1mm}.section-heading{font-size:13.5pt;margin-bottom:2mm;gap:3mm}.section-heading .step-chip{width:8.5mm;height:7.5mm;font-size:10pt}.sheet-section{break-inside:avoid;page-break-inside:avoid}.sheet-diagram{height:81mm;max-height:81mm}.diagram-legend{font-size:8.5pt;margin:0}.diagram-note,.sheet-notes,.sheet-footer{font-size:8.5pt}.sheet-notes{margin-top:auto;padding-top:2.5mm}.sheet-text{line-height:1.47}.sheet-footer{padding:2mm 14mm 5mm}.cover .sheet-body{padding-top:7mm;gap:6mm}.cover h3{font-size:14pt}.cover-goal{padding:3mm 4mm}.cover-list li{padding:3mm 0}.cover-list strong{font-size:11pt}.cover-list small{font-size:8.5pt}.cover-meta{font-size:9pt}.logo-image{max-height:11mm}.cover .logo-image{max-height:18mm}}
