/* Scoped editor layout: full-width form, progressive fields, optional preview. */
body:has(#view-a2.active) #global-course-search{display:none}
body #view-a2[data-simplified]{min-width:0;max-width:1100px;margin:0 auto;padding-bottom:0;color:#283125}
body #view-a2[data-simplified] [hidden]{display:none!important}
body #view-a2[data-simplified] .editor-intro{display:block;margin:0 0 24px;padding:0;min-height:0}
body #view-a2[data-simplified] .editor-intro h2{font-size:26px;line-height:1.35;margin:0 0 8px;font-weight:650;letter-spacing:0}
body #view-a2[data-simplified] .editor-intro p{font-size:14px;line-height:1.6;color:#596253;margin:0}
body #view-a2[data-simplified] .editor-layout{display:block;min-width:0;width:100%;max-width:none;margin:0}
body #view-a2[data-simplified] .editor-main{display:block;min-width:0;max-width:none;width:100%}
body #view-a2 .course-editor-tabs{display:flex;gap:4px;border-bottom:1px solid #DDE2D5;margin-bottom:0;overflow-x:auto;scrollbar-width:thin}
body #view-a2 .course-editor-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:14px 18px;background:transparent;white-space:nowrap;font-size:14px;font-weight:500;color:#596253;min-height:48px;flex:none}
body #view-a2 .course-editor-tabs button:hover{background:#EDF1E5;color:#334320}
body #view-a2 .course-editor-tabs button[aria-selected=true]{border-bottom-color:#718832;color:#354B1E;font-weight:650;background:#EEF3E3}
body #view-a2 .course-editor-tabs .course-preview-tab{margin-left:auto}
body #view-a2 .course-editor-panel{background:#fff;border:1px solid #E2E6DC;border-top:0;border-radius:0 0 12px 12px;padding:28px 32px 32px;min-width:0;outline-offset:-3px}
body #view-a2 .course-editor-panel>h3{font-size:20px;line-height:1.4;margin:0 0 8px;font-weight:650}
body #view-a2 .course-section-description{color:#596253;font-size:14px;line-height:1.65;margin:0 0 28px;max-width:70ch}
body #view-a2 .course-editor-panel h4{font-size:15px;margin:28px 0 18px;font-weight:650}
body #view-a2 .course-field-grid,body #view-a2 .course-editor-panel .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin:0 0 20px;min-width:0}
body #view-a2 .course-editor-panel .form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px;margin:0 0 20px}
body #view-a2 .course-editor-panel .form-group{min-width:0;width:auto;max-width:none;margin:0;padding:0;grid-column:auto}
body #view-a2 .course-editor-panel .form-group.form-full{grid-column:1/-1}
body #view-a2 .course-editor-panel .form-label{font-size:14px;line-height:1.5;font-weight:550;color:#283125;margin-bottom:8px}
body #view-a2 .course-editor-panel :is(.form-input,.form-select,.form-textarea){box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:1px solid #D5DCD0;border-radius:7px;background:white;padding:10px 12px;color:#283125;font-size:14px;line-height:22px;box-shadow:none;caret-color:#526B29}
body #view-a2 .course-editor-panel :is(.form-input,.form-select){min-height:44px;height:44px}
body #view-a2 .course-editor-panel .form-textarea{min-height:120px;resize:vertical}
body #view-a2 .course-editor-panel ::placeholder{color:#737C6E;opacity:1}
body #view-a2 .course-editor-panel .form-hint{font-size:12px;line-height:1.65;color:#626C5D;margin:7px 0 0}
body #view-a2 .course-editor-panel .form-hint.error{color:#A22F25}
body #view-a2 .course-editor-panel .error{border-color:#B74439}
body #view-a2 .course-optional{border:0;border-top:1px solid #E5E9DF;border-bottom:1px solid #E5E9DF;padding:0;margin:22px 0;background:none;border-radius:0}
body #view-a2 .course-optional>summary{padding:16px 0;min-height:48px;cursor:pointer;font-size:14px;font-weight:550;line-height:1.6;color:#35412D}
body #view-a2 .course-optional>summary span{font-weight:400;color:#626C5D;font-size:12px;margin-left:10px}
body #view-a2 .course-optional[open]>.course-field-grid{padding:8px 0 4px}
body #view-a2 .course-editor-panel .content-grid{display:block;margin:0}
body #view-a2 .course-editor-panel .content-editor-group{border:0;border-bottom:1px solid #E5E9DF;border-radius:0;background:transparent;margin:0;padding:0;box-shadow:none}
body #view-a2 .course-editor-panel .content-editor-group>summary{padding:18px 0;font-size:15px;line-height:1.5;min-height:48px;color:#283125}
body #view-a2 .course-editor-panel .content-editor-group>.form-group{padding:0 0 24px}
body #view-a2 .course-editor-panel :is(.upload-area,.cover-preview){min-height:132px;height:148px;border-radius:8px;max-width:100%}
body #view-a2 .course-editor-panel .upload-area{border:1px dashed #AAB79A;background:#F7F9F3;cursor:pointer}
body #view-a2 .course-editor-panel .upload-area:hover{border-color:#718832;background:#EFF4E1}
body #view-a2 .course-editor-panel .upload-area svg,body #view-a2 .course-editor-panel .upload-area svg *{stroke:#718832!important}
body #view-a2 .course-editor-panel .upload-hint{color:#626C5D}
body #view-a2 .course-editor-footer{position:sticky;bottom:0;z-index:25;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;margin:24px 0 0;background:#F4F5F1;border:0;border-top:1px solid #DBE1D2;border-radius:0;box-shadow:none;width:100%;min-width:0}
body #view-a2 .course-editor-footer .editor-panel-body{display:flex;flex-direction:row-reverse;align-items:center;gap:12px;padding:0;border:0;background:none}
body #view-a2 .course-editor-footer .btn{width:auto;min-width:112px;min-height:44px;margin:0;padding:10px 18px;font-size:14px;border-radius:8px;white-space:nowrap}
body #view-a2 .course-editor-footer #a2-save-draft-h{border:1px solid #CCD6BE;background:#fff;color:#354B1E}
body #view-a2 .course-save-note{font-size:12px;color:#596253;margin:0;line-height:1.6}
body #view-a2 .course-preview-panel .editor-side{position:static;display:flex;width:100%;max-width:390px;min-width:0;margin:0 auto;gap:12px}
body #view-a2 .course-preview-panel #course-preview-frame{width:100%;height:720px;max-width:100%;border:1px solid #DDE2D5;border-radius:12px;background:white}
body #view-a2 .course-preview-panel .course-preview-heading{display:none}
body #view-a2 .course-preview-panel #course-preview-assets{max-width:100%}
body #view-a2 ::selection{background:#E2EBCB;color:#283125}
@media(max-width:1100px){body #view-a2 .course-editor-footer{bottom:0}}
@media(max-width:700px){
 body #view-a2[data-simplified]{width:100%;max-width:100%}
 body #view-a2[data-simplified] .editor-intro h2{font-size:23px}
 body #view-a2 .course-editor-panel{padding:22px 16px}
 body #view-a2 .course-field-grid,body #view-a2 .course-editor-panel .form-grid,body #view-a2 .course-editor-panel .form-grid-3{grid-template-columns:minmax(0,1fr);gap:18px}
 body #view-a2 .course-editor-tabs button{padding:12px;font-size:13px}
 body #view-a2 .course-optional>summary span{display:block;margin:4px 0 0 15px}
 body #view-a2 .course-editor-footer{flex-wrap:wrap;gap:8px;padding:12px 0}
 body #view-a2 .course-save-note{width:100%;font-size:11px}
 body #view-a2 .course-editor-footer .editor-panel-body{width:100%}
 body #view-a2 .course-editor-footer .btn{flex:1;min-width:0}
}

body #view-a2 .course-outline-editor #f-course-content{min-height:300px;resize:vertical;line-height:1.8}
body #view-a2 .course-outline-editor .field-optional{font-size:12px;font-weight:400;color:#626C5D}
body #view-a2 #course-content-count{display:block;margin-top:6px;font-variant-numeric:tabular-nums}
body #view-a2 .course-outline-preview{margin-top:16px;border:1px solid #DBE1D2;border-radius:8px;padding:12px 16px}
body #view-a2 .course-outline-preview>summary{cursor:pointer;font-size:13px;color:#354B1E}
body #view-a2 .course-outline-preview-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;padding-top:14px;color:#283125}
