:root{
 --bg:#F8F9F7;--surface:#FFFFFF;--surface-soft:#F2F5F0;--text-main:#1F2924;--text-body:#35423B;--text-muted:#647168;
 --brand:#214E3A;--brand-hover:#173A2B;--brand-soft:#EAF1E9;--border:#E2E8E1;
 --ink:var(--text-main);--muted:var(--text-muted);--green:var(--brand);--green-soft:var(--brand-soft);--line:var(--border);--paper:var(--surface);
 --radius:12px;--control-radius:9px;--shadow:0 2px 12px rgba(22,35,26,.04);--focus:0 0 0 3px rgba(33,78,58,.16);
 --s1:8px;--s2:12px;--s3:16px;--s4:24px;--s5:32px;--s6:48px;--sidebar:220px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text-body);font:400 14px/22px Inter,'PingFang SC','Microsoft YaHei','Noto Sans SC',sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{border:0;background:none;cursor:pointer;color:inherit}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,[contenteditable]:focus-visible{outline:2px solid var(--brand);outline-offset:3px}input:focus,textarea:focus,select:focus{outline:0;border-color:var(--brand)!important;box-shadow:var(--focus)}input,textarea,select{color:var(--text-main)}::placeholder{color:var(--text-muted);opacity:1}h1,h2,h3,h4,p{margin:0}h1{font-size:28px;line-height:38px;font-weight:600;letter-spacing:-.5px;color:var(--text-main)}h2{font-size:18px;line-height:26px;font-weight:600;color:var(--text-main)}h3{font-size:15px;line-height:22px;font-weight:600;color:var(--text-main)}small{font-size:12px;line-height:18px}.muted{color:var(--text-muted)}.flex{display:flex;align-items:center;gap:var(--s2)}.spread{display:flex;align-items:center;justify-content:space-between;gap:var(--s3)}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.eyebrow{font-size:12px;line-height:18px;color:var(--text-muted)}.skip-link{position:fixed;top:-80px;background:white;padding:12px 16px;z-index:100}.skip-link:focus{top:8px;left:8px}.mobile-nav-scrim{display:none}
/* Shell */
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--surface);border-right:1px solid var(--border);padding:32px 16px 24px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;padding:0 8px 32px}.brand img{width:32px;height:40px}.brand strong{font-size:20px;line-height:28px;font-weight:600;color:var(--text-main);letter-spacing:.5px;display:block}.brand small{display:block;font-size:12px;line-height:18px;color:var(--text-muted);margin-top:4px}.nav-section{padding:0 12px;font-size:12px;line-height:18px;color:var(--text-muted);margin:16px 0 8px}.nav-item{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:12px;border-radius:8px;color:var(--text-muted);font-size:14px;line-height:20px;text-align:left;margin:4px 0;transition:background 150ms,color 150ms}.nav-item .icon{width:18px;height:18px}.nav-item:hover{background:var(--surface-soft);color:var(--text-main)}.nav-item.active{background:var(--brand-soft);color:var(--brand);font-weight:600}.nav-count{font-size:12px;margin-left:auto;font-variant-numeric:tabular-nums}.nav-bottom{margin-top:auto}.plan-link{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;line-height:20px;text-align:left;padding:24px 8px;color:var(--brand)}.plan-link small{font-size:12px;line-height:18px;color:var(--text-muted);display:block;margin-top:4px}.plan-link>.icon{width:18px}.profile{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border-top:1px solid var(--border);padding:24px 8px 0}.profile small{display:block;color:var(--text-muted);font-size:12px;line-height:18px}.profile>.icon{margin-left:auto;width:18px;color:var(--text-muted)}.avatar{width:36px;height:36px;display:grid;place-items:center;background:var(--surface-soft);border:1px solid var(--border);border-radius:50%;color:var(--brand);font-size:14px;line-height:20px;flex-shrink:0}.shell{margin-left:var(--sidebar);min-height:100vh}.topbar{height:64px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 40px}.crumb{display:flex;align-items:center;gap:12px;color:var(--text-muted);font-size:12px;line-height:18px}.crumb b{font-weight:500}.crumb>.icon{width:18px;height:18px}.top-actions{display:flex;align-items:center;gap:16px}.global-search{display:flex;align-items:center;gap:8px;color:var(--text-muted);min-height:40px;padding:0 12px;background:var(--bg);border:1px solid var(--border);border-radius:8px}.global-search .icon{width:18px;height:18px}.global-search input{width:150px;font-size:13px;line-height:20px;background:none;border:0;outline:0;min-height:38px}.global-search input:focus{box-shadow:none}.global-search:focus-within{box-shadow:var(--focus);border-color:var(--brand)}.kbd{font:12px/18px inherit;color:var(--text-muted);border:1px solid var(--border);background:var(--surface);border-radius:4px;padding:0 4px}.icon-button{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:8px;color:var(--text-muted);flex-shrink:0;transition:background 150ms,color 150ms}.icon-button .icon{width:18px;height:18px}.icon-button:hover{background:var(--surface-soft);color:var(--brand)}.mobile-menu{display:none}.main{max-width:1240px;margin:0 auto;padding:32px 40px 48px;min-width:0}.btn{min-height:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border:1px solid var(--border);border-radius:var(--control-radius);font-size:14px;line-height:20px;font-weight:600;background:var(--surface);color:var(--text-body);white-space:nowrap;text-decoration:none;transition:background 150ms,border-color 150ms,color 150ms}.btn .icon{width:18px;height:18px}.btn:hover{background:var(--surface-soft);border-color:#ADBDAF}.btn.primary{background:var(--brand);border-color:var(--brand);color:white}.btn.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}.btn.small{min-height:44px;font-size:13px;padding:0 12px}.btn.soft{background:var(--brand-soft);color:var(--brand)}.btn.danger{color:#9D3D30}.text-button{display:inline-flex;align-items:center;gap:8px;font-size:13px;line-height:20px;min-height:32px;color:var(--brand);white-space:nowrap;padding:4px 0}.text-button .icon{width:18px;height:18px}.text-button:hover{text-decoration:underline;text-underline-offset:4px}
/* Primary task, recent work, weekly plan, then templates. */
.prep-panel{background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius);padding:24px 32px;box-shadow:var(--shadow)}.prep-intro p{color:var(--text-muted);font-size:14px;line-height:22px;margin-top:8px}.prep-form{display:grid;grid-template-columns:120px 120px minmax(200px,1fr) auto;align-items:end;gap:12px;margin-top:24px}.prep-form .field{margin:0;min-width:0}.prep-form .field label{font-size:12px;line-height:18px;margin-bottom:8px;color:var(--text-body)}.prep-form select,.prep-form input{height:44px}.prep-submit{min-width:140px;height:44px}.prep-details{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}.capability-line{display:flex;flex-wrap:wrap;gap:16px;color:var(--text-muted)}.capability-line span{display:flex;align-items:center;gap:8px;font-size:12px;line-height:18px}.capability-line .icon{width:16px;height:16px}.prep-details>p{font-size:12px;line-height:18px;color:var(--text-muted)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr);gap:24px;margin-top:24px;align-items:stretch}.recent-section,.schedule-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:24px;min-width:0;box-shadow:var(--shadow)}.section-head{margin:0 0 16px;min-height:32px}.section-head h2{font-size:18px;line-height:26px}.lesson-list{background:var(--surface);border-top:1px solid var(--border)}.recent-section .lesson-list{border:0}.lesson-row{display:flex;align-items:center;gap:8px;min-height:72px;padding:12px 8px;border-bottom:1px solid var(--border);cursor:pointer;position:relative;transition:background 150ms}.lesson-row:last-child{border-bottom:0}.lesson-row:hover{background:var(--surface-soft)}.subject-tile{width:32px;height:40px;display:grid;place-items:center;color:var(--text-muted);flex-shrink:0}.subject-tile .icon{width:20px;height:20px}.lesson-main{flex:1;min-width:0;padding:0;text-align:left}.lesson-title{display:block;font-size:15px;line-height:22px;font-weight:600;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-meta{display:block;font-size:13px;line-height:18px;color:var(--text-muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-detail{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin-left:8px}.status{display:inline-flex;align-items:center;gap:8px;font-size:12px;line-height:18px;color:var(--brand)}.status:before{content:'';width:6px;height:6px;background:var(--brand);border-radius:50%}.status.draft{color:var(--text-muted)}.status.draft:before{background:#7B887E}.row-time{font-size:12px;line-height:18px;color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.favourite.active{color:var(--brand)}.favourite.active .icon{fill:var(--brand-soft)}.lesson-row .icon-button{width:36px;height:40px}.week-range{display:flex;align-items:center;gap:8px;font-size:12px;line-height:18px;color:var(--text-muted);border-bottom:1px solid var(--border);padding-bottom:16px}.week-range .icon{width:16px;height:16px}.weekly-events{margin-top:8px}.weekly-event{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}.weekly-event:last-child{border-bottom:0}.event-time{font-size:12px;line-height:18px;font-variant-numeric:tabular-nums;color:var(--text-muted)}.event-time span,.event-time time{display:block}.event-time time{margin-top:8px;color:var(--text-body)}.weekly-event h3{font-size:14px;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.weekly-event p{font-size:12px;line-height:18px;color:var(--text-muted);margin-top:4px}.weekly-event .text-button{font-size:12px;margin-top:4px;min-height:24px}.schedule-add{margin-top:16px;width:100%}.schedule-empty{text-align:center;padding:32px 0 8px}.schedule-empty>.icon{width:28px;height:28px;color:var(--text-muted);margin-bottom:16px}.schedule-empty h3{font-size:14px;line-height:22px}.schedule-empty p{font-size:13px;line-height:22px;color:var(--text-muted);margin-top:8px}.schedule-empty .btn{margin-top:24px}.empty{border:1px dashed var(--border);border-radius:var(--radius);background:var(--surface);text-align:center;padding:48px 24px;color:var(--text-muted)}.empty>.icon{width:28px;height:28px;margin-bottom:16px}.empty h3{margin-bottom:8px}.empty p{font-size:14px;line-height:22px;margin-bottom:24px}.home-empty{border:0;background:var(--bg);padding:32px 24px;min-height:248px}.legacy-link{display:block;margin:16px auto 0}.starter-section{margin-top:24px}.templates-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.template-mini{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;min-height:124px;transition:background 150ms,transform 150ms,border-color 150ms}.template-mini:hover{transform:translateY(-1px);background:var(--surface-soft);border-color:#BCCBBB}.template-mini h3{font-size:15px;line-height:22px}.template-mini p{font-size:13px;line-height:22px;color:var(--text-muted);margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.template-mini>.icon{color:var(--brand);width:18px}.footer{display:flex;justify-content:space-between;gap:16px;font-size:12px;line-height:18px;color:var(--text-muted);margin-top:32px;padding-top:24px;border-top:1px solid var(--border)}.footer-separator{margin:0 8px;color:var(--text-muted)}.footer-mode{display:flex;align-items:center;gap:8px}.footer-mode i{width:6px;height:6px;border-radius:50%;background:var(--text-muted)}
/* Shared pages */
.page-heading{margin-bottom:32px}.page-heading p{font-size:14px;line-height:22px;color:var(--text-muted);margin-top:8px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:24px}.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:9px;padding:0 12px;min-height:44px;background:var(--surface);min-width:280px}.search-box input{border:0;background:none;outline:0;min-height:42px;width:100%;font-size:14px}.search-box:focus-within{box-shadow:var(--focus);border-color:var(--brand)}.search-box input:focus{box-shadow:none}.search-box .icon{width:18px;height:18px;color:var(--text-muted)}.toolbar select{height:44px;border:1px solid var(--border);border-radius:9px;background:var(--surface);font-size:14px;padding:0 12px}.result-count{margin-left:auto;color:var(--text-muted);font-size:13px;line-height:20px}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{min-height:44px;padding:12px 16px;border:1px solid var(--border);border-radius:9px;font-size:14px;line-height:20px;background:var(--surface)}.chip.active{background:var(--brand-soft);border-color:#B9CABB;color:var(--brand);font-weight:600}.chip:hover{background:var(--surface-soft)}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.template-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface)}.template-cover{padding:24px;background:var(--surface-soft);border-bottom:1px solid var(--border)}.template-kind{font-size:12px;line-height:18px;color:var(--text-muted)}.template-cover h3{font-size:18px;line-height:26px;margin-top:12px}.template-outline{display:flex;flex-direction:column;gap:8px;margin-top:24px;font-size:12px;line-height:18px;color:var(--text-muted)}.template-outline span{border-top:1px solid var(--border);padding-top:8px}.template-card .info{padding:24px}.template-card .info p{font-size:14px;line-height:22px;color:var(--text-muted);margin:12px 0 24px}.template-card .info>.spread:last-child{align-items:flex-start;flex-wrap:wrap;gap:12px}.template-card .info .flex{flex-wrap:wrap}.tag{font-size:12px;line-height:18px;padding:4px 8px;background:var(--bg);color:var(--text-muted);border-radius:4px}.panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:24px;box-shadow:var(--shadow)}.panel+.panel{margin-top:24px}.settings-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px}.field{margin-bottom:24px;min-width:0}.field label{display:block;font-size:14px;line-height:22px;font-weight:500;color:var(--text-body);margin-bottom:8px}.field input,.field select,.field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);font-size:14px;line-height:22px}.field textarea{min-height:96px;resize:vertical;line-height:22px}.field small{display:block;font-size:12px;line-height:18px;color:var(--text-muted);margin-top:8px}.form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.required{color:var(--brand);margin-left:4px}.notice{padding:12px 16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;font-size:13px;line-height:22px;color:var(--text-muted);margin-bottom:24px}.notice .icon{width:18px;height:18px;margin-right:8px}.setting-section{margin-bottom:24px}.setting-section h2{margin-bottom:16px}.backup-actions{display:flex;gap:12px;flex-wrap:wrap}.section-note{font-size:13px;line-height:22px;color:var(--text-muted);margin-top:16px}.resource-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.resource-card{padding:24px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.resource-card h3{overflow-wrap:anywhere}.resource-card p{font-size:13px;line-height:20px;color:var(--text-muted);margin:12px 0 24px}.upload-area{border:1px dashed #A2B4A5;background:var(--surface-soft);border-radius:var(--radius);padding:32px 24px;text-align:center;cursor:pointer;margin-bottom:24px;color:var(--brand)}.upload-area:hover{background:var(--brand-soft)}.upload-area p{font-size:14px;line-height:22px;margin-top:12px}.upload-area small{display:block;font-size:12px;line-height:18px;margin-top:8px;color:var(--text-muted)}.schedule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.schedule-column{padding:24px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:240px}.schedule-column>h3{font-size:15px;line-height:22px;padding-bottom:16px;border-bottom:1px solid var(--border);margin-bottom:16px}.schedule-card{padding:16px 0;border-bottom:1px solid var(--border)}.schedule-card h4{font-size:15px;line-height:22px;font-weight:600;margin-top:8px;color:var(--text-main)}.schedule-card p{font-size:13px;line-height:20px;color:var(--text-muted);margin-top:8px}.schedule-card .text-button{font-size:13px}.capability-panel>h2{margin:8px 0 24px}.capability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-bottom:32px}.capability-grid .icon{color:var(--brand);margin-bottom:16px}.capability-grid h3{margin-bottom:8px}.capability-grid p,.service-boundary p{font-size:14px;line-height:22px;color:var(--text-muted)}.service-boundary{margin-top:32px;padding-top:24px;border-top:1px solid var(--border)}.service-boundary h3{margin-bottom:8px}.help-item{padding:24px 0;border-bottom:1px solid var(--border)}.help-item:last-child{border-bottom:0}.help-item summary{font-size:15px;line-height:22px;font-weight:600;cursor:pointer;color:var(--text-main)}.help-item p{font-size:14px;line-height:24px;color:var(--text-muted);margin-top:12px}
/* Editor and modal controls */
.editor-top{margin-bottom:24px;flex-wrap:wrap}.editor-top>.flex{flex-wrap:wrap}.editor-layout{display:grid;grid-template-columns:176px minmax(0,1fr);gap:24px}.outline{position:sticky;top:24px;align-self:start;padding:16px 0}.outline h3{font-size:13px;line-height:20px;color:var(--text-muted);margin-bottom:16px}.outline a{display:block;text-decoration:none;font-size:13px;line-height:20px;color:var(--text-muted);padding:12px 8px;border-radius:8px}.outline a:hover{background:var(--brand-soft);color:var(--brand)}.editor-paper{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:48px;min-height:700px}.document-label{font-size:12px;line-height:18px;color:var(--text-muted);margin-bottom:16px}.document-title{font-size:28px;line-height:38px;font-weight:600;padding:4px 0;outline:none;overflow-wrap:anywhere}.document-meta{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;line-height:20px;color:var(--text-muted);border-bottom:1px solid var(--border);padding:24px 0;margin-bottom:32px}.document-section{margin-top:32px;scroll-margin-top:24px}.document-section h2{font-size:18px;line-height:26px;margin-bottom:12px}.editable{font-size:14px;line-height:26px;color:var(--text-body);white-space:pre-wrap;overflow-wrap:anywhere;outline:none;min-height:48px;padding:8px;margin-left:-8px;border:1px solid transparent;border-radius:8px}.editable:focus{border-color:var(--brand);box-shadow:var(--focus);background:#FCFDFC}.editor-status{display:flex;align-items:center;gap:8px;font-size:12px;line-height:18px;color:var(--text-muted)}.editor-status:before{content:'';width:6px;height:6px;background:var(--brand);border-radius:50%}.editor-help{font-size:12px;line-height:18px;color:var(--text-muted);margin-top:24px}.read-only .editable{border-color:transparent!important;box-shadow:none!important;background:transparent!important}.read-only .editor-help{display:none}.overlay{position:fixed;inset:0;background:rgba(22,35,26,.38);z-index:50;display:flex;align-items:center;justify-content:center;padding:24px}.modal{width:min(720px,100%);max-height:92vh;background:var(--surface);border-radius:var(--radius);box-shadow:0 16px 48px rgba(22,35,26,.16);overflow:auto}.modal.narrow{width:min(496px,100%)}.modal-head{padding:24px 32px;border-bottom:1px solid var(--border);display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.modal-head h2{font-size:24px;line-height:32px}.modal-head p{font-size:13px;line-height:22px;color:var(--text-muted);margin-top:8px}.modal-body{padding:24px 32px}.modal-foot{border-top:1px solid var(--border);padding:16px 32px;display:flex;align-items:center;justify-content:flex-end;gap:12px}.step-marker{display:flex;align-items:center;gap:12px;font-size:12px;line-height:18px;color:var(--text-muted);margin-bottom:24px}.step-marker b{display:grid;place-items:center;width:24px;height:24px;background:var(--brand);color:#fff;border-radius:50%;font-size:12px;font-weight:500}.step-marker i{display:block;width:32px;height:1px;background:var(--border)}.preview-copy{max-height:400px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:26px;color:var(--text-body)}.template-detail h3{margin:24px 0 12px}.template-detail p{font-size:14px;line-height:24px;color:var(--text-muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,8px);max-width:min(560px,calc(100vw - 32px));background:var(--brand);color:#fff;padding:12px 24px;border-radius:9px;z-index:100;opacity:0;pointer-events:none;transition:opacity 150ms,transform 150ms;font-size:14px;line-height:22px}#toast.visible{opacity:1;transform:translate(-50%,0)}.danger-text{color:#9D3D30}
@media(max-width:1200px){.main{padding:32px 24px 48px}.topbar{padding:0 24px}.prep-panel{padding:24px}.prep-form{grid-template-columns:104px 104px minmax(160px,1fr) auto}.prep-submit{min-width:128px}.prep-details{align-items:flex-start;flex-wrap:wrap;gap:8px}.dashboard-grid{grid-template-columns:minmax(0,2.2fr) minmax(248px,1fr)}.recent-section,.schedule-panel{padding:16px}.lesson-row>.subject-tile{display:none}.lesson-detail{margin-left:0}.lesson-row{gap:8px}.templates-mini{gap:12px}.template-mini{padding:16px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-layout{grid-template-columns:152px minmax(0,1fr)}.editor-paper{padding:32px}.resource-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.prep-form{grid-template-columns:1fr 1fr}.topic-field{grid-column:1}.prep-submit{width:100%;align-self:end}.dashboard-grid{grid-template-columns:1fr}.schedule-panel{padding:24px}.weekly-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.schedule-empty{padding:24px 0}.schedule-empty p br{display:none}.schedule-empty .btn{margin-top:16px}.schedule-add{width:auto}.templates-mini{grid-template-columns:1fr}.template-mini{min-height:96px;padding:24px}.template-mini p{-webkit-line-clamp:1}.settings-grid{grid-template-columns:1fr}.schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-layout{grid-template-columns:1fr}.outline{display:none}.global-search input{width:120px}.top-actions{gap:8px}.capability-grid{grid-template-columns:1fr;gap:24px}}
@media(max-width:768px){:root{--sidebar:220px}.sidebar{transform:translateX(-100%);transition:transform 150ms}.sidebar.mobile-open{transform:translateX(0)}.mobile-nav-scrim.visible{position:fixed;inset:0;display:block;background:rgba(22,35,26,.38);z-index:19}.shell{margin-left:0}.topbar{height:64px;padding:0 16px;gap:16px}.mobile-menu{display:grid}.crumb>.icon,.crumb>span{display:none}.crumb b{font-size:13px}.top-actions>.avatar{display:none}.global-search{display:none}.main{padding:24px 16px 32px}.prep-panel{padding:24px}.prep-intro h1{font-size:28px;line-height:38px}.prep-intro p{font-size:14px;line-height:22px;max-width:520px}.prep-form{gap:16px 12px;margin-top:24px}.prep-details{margin-top:16px}.capability-line{gap:12px}.prep-details>p{font-size:12px;line-height:18px}.dashboard-grid{gap:24px;margin-top:24px}.recent-section,.schedule-panel{padding:16px}.lesson-row{min-height:72px;padding:12px 0}.lesson-row>.subject-tile{display:none}.lesson-title{font-size:15px;line-height:22px}.lesson-meta{font-size:13px;line-height:18px}.lesson-row .icon-button{width:40px;height:44px}.lesson-detail{margin-left:0}.footer{flex-wrap:wrap;gap:12px;margin-top:24px;padding-top:24px}.section-head{gap:12px}.section-head h2{font-size:18px;line-height:26px}.text-button{font-size:13px}.template-mini{padding:24px;min-height:112px}.template-mini p{-webkit-line-clamp:2}.template-grid{gap:16px}.template-cover{padding:24px 16px}.template-card .info{padding:16px}.page-heading{margin-bottom:24px;align-items:flex-start;flex-wrap:wrap}.page-heading h1{font-size:26px;line-height:36px}.page-heading p{font-size:14px;line-height:22px}.search-box{min-width:100%;width:100%}.toolbar{gap:12px}.toolbar select{min-width:0;flex:1}.result-count{font-size:12px}.chips{gap:8px}.chip{padding:12px}.panel{padding:24px 16px}.resource-list{grid-template-columns:1fr}.upload-area{padding:24px 16px}.form-row{gap:16px}.editor-top>.flex{gap:8px}.editor-top .btn{font-size:13px;min-height:44px;padding:0 12px}.editor-top{gap:16px}.editor-paper{padding:32px 24px}.document-title{font-size:26px;line-height:36px}.document-meta{gap:12px}.editable{font-size:14px;line-height:26px}.document-section h2{font-size:18px;line-height:26px}.overlay{padding:16px}.modal{max-height:94vh}.modal-head{padding:24px}.modal-head h2{font-size:22px;line-height:30px}.modal-body{padding:24px}.modal-foot{padding:16px 24px;gap:8px;flex-wrap:wrap}.modal-foot .btn{font-size:13px}.notice{font-size:13px;line-height:22px}}
@media(max-width:520px){.prep-panel{padding:24px 16px}.prep-form .topic-field{grid-column:1/-1}.prep-submit{grid-column:1/-1}.prep-details{gap:12px}.capability-line{gap:12px}.capability-line span{gap:4px}.capability-line .icon{width:16px;height:16px}.recent-section .section-head{gap:8px}.lesson-row{display:grid;grid-template-columns:minmax(0,1fr) 40px 40px;gap:4px 8px;padding:16px 0}.lesson-main{grid-column:1;grid-row:1;align-self:start}.lesson-meta{white-space:normal}.lesson-detail{grid-column:1;grid-row:2;display:flex;flex-direction:row;align-items:center;gap:12px;margin-top:4px}.lesson-row>.favourite{grid-column:2;grid-row:1/3}.lesson-row>.row-menu{grid-column:3;grid-row:1/3}.row-time{font-size:12px}.status{font-size:12px}.weekly-events{grid-template-columns:1fr}.schedule-empty p br{display:initial}.template-grid{grid-template-columns:1fr}.template-outline{flex-direction:row;flex-wrap:wrap;gap:12px}.template-outline span{border:0;padding:0}.template-mini{padding:24px 16px}.schedule-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr;gap:0}.modal-head,.modal-body{padding:24px 16px}.modal-foot{padding:16px}.modal-foot .btn{flex:1;padding:0 8px}.editor-paper{padding:24px 16px}.editor-top .flex{gap:8px}.editor-top .btn{font-size:12px;padding:0 8px}.editor-top .btn .icon{width:16px}.page-heading>.btn{width:100%}.footer{font-size:12px;line-height:18px}.brand small{font-size:12px}.settings-grid{gap:24px}.backup-actions .btn{flex:1}.capability-panel .btn{width:100%;white-space:normal}.step-marker{gap:8px}.step-marker i{width:24px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{body{background:white}.sidebar,.topbar,.editor-top,.outline,.editor-help,.footer,.notice,#toast,.modal,.skip-link{display:none!important}.shell{margin:0}.main{max-width:none;padding:0}.editor-layout{display:block}.editor-paper{border:0;box-shadow:none;padding:0}.editable{margin:0;padding:0;border:0;color:#222}.document-section{break-inside:avoid}.document-section h2{color:#111}body>*:not(#app){display:none}@page{size:A4;margin:20mm}}
