.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:26px}.editor-heading p{color:var(--muted);font-size:1rem;margin:0}.editor-heading>.button{flex-shrink:0}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px;align-items:start}.editor-panel{min-width:0;border:1px solid var(--line);border-radius:12px;padding:26px;margin:0 0 28px}.editor-panel legend{font-weight:700;font-size:1.12rem;padding:0 9px}.editor-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.course-editor .field{font-size:.94rem;line-height:1.7;margin-bottom:20px}.course-editor input,.course-editor textarea,.course-editor select{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--line);border-radius:7px;background:white;padding:11px 12px;font:inherit;color:var(--ink)}.course-editor textarea{resize:vertical;min-height:90px}.course-editor input:focus,.course-editor textarea:focus,.course-editor select:focus{outline:2px solid var(--green);outline-offset:2px}.course-editor .fineprint{font-size:.875rem;line-height:1.8}.lesson-editor-row{display:grid;grid-template-columns:50px minmax(0,1fr) 100px 45px;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:8px 0 16px;margin-bottom:16px}.lesson-editor-row .field{margin:0;font-size:.875rem}.lesson-label{font-size:.875rem;font-weight:700}.lesson-editor-row>.text-button{align-self:end;padding-bottom:12px;font-size:.875rem}.course-editor button:disabled{opacity:.45;cursor:not-allowed}.editor-summary{position:sticky;top:28px;border:1px solid var(--line);border-radius:12px;padding:26px;background:var(--soft)}.editor-summary h2{font-size:1.4rem;line-height:1.5;overflow-wrap:anywhere}.editor-summary p{font-size:.94rem;line-height:1.8;color:var(--muted)}.editor-summary dl>div{gap:15px}.editor-summary dd{text-align:right}.editor-actions{display:flex;justify-content:flex-end;gap:12px}.editor-error{background:#fff2ee;color:#974326;border:1px solid #e4b8a8;border-radius:9px;padding:18px;margin-bottom:22px;line-height:1.8}.editor-error[hidden]{display:none}.admin-new-class{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.admin-new-class p{margin:0;color:var(--muted);font-size:.94rem;line-height:1.8}
.lesson-editor-row{grid-template-columns:50px minmax(0,1fr) 100px}.lesson-row-actions{grid-column:2/-1;display:flex;gap:20px;justify-content:flex-end}.lesson-row-actions .text-button{font-size:.875rem;min-height:36px}.editor-change-note{background:var(--soft);border-radius:7px;padding:12px 15px;font-size:.875rem;line-height:1.8;color:var(--muted)}
@media(max-width:950px){.editor-layout{grid-template-columns:minmax(0,1fr) 255px;gap:22px}.editor-panel{padding:20px}.lesson-editor-row{grid-template-columns:42px minmax(0,1fr) 78px;gap:8px}.editor-summary{padding:20px}}
@media(max-width:760px){.editor-layout{grid-template-columns:1fr}.editor-summary{position:static;grid-row:1}.editor-heading{align-items:flex-start;flex-direction:column}.editor-pair{grid-template-columns:1fr;gap:0}.lesson-editor-row{grid-template-columns:1fr 90px}.lesson-editor-row .lesson-label{grid-column:1/-1}.lesson-editor-row>.text-button{grid-column:2;justify-self:end;padding:0}.course-editor .field{font-size:1rem}.course-editor input,.course-editor textarea,.course-editor select{font-size:1rem}.admin-new-class{align-items:stretch;flex-direction:column;gap:15px}}
@media(max-width:760px){.lesson-row-actions{grid-column:1/-1}}
.editor-draft{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;margin-bottom:30px;border:1px solid #cbdcc9;border-radius:12px;background:#f5f8f2}
.editor-draft[data-state=saved]{border-color:#719f7a;background:#edf7ee}.editor-draft[data-state=saved] strong{color:#245936}
.editor-error,.editor-draft .draft-failed{white-space:pre-line;overflow-wrap:anywhere}
.editor-draft[hidden]{display:none}.editor-draft strong{font-size:.96rem}.editor-draft p{margin:8px 0 0;font-size:.88rem;line-height:1.75;color:var(--green)}.editor-draft .fineprint{font-size:.8rem;color:var(--muted)}.editor-draft .draft-failed{color:#974326}
.editor-draft-actions{flex-shrink:1;display:flex;flex-wrap:wrap;gap:10px}.editor-draft-actions [data-draft-choices]{display:flex;flex-wrap:wrap;gap:10px}.editor-draft-actions [hidden]{display:none}.course-editor fieldset:disabled{opacity:.55}
@media(max-width:760px){.editor-draft{flex-direction:column;align-items:stretch;padding:18px}.editor-draft-actions{flex-shrink:1}.editor-draft-actions>.button,.editor-draft-actions [data-draft-choices]{width:100%}.editor-draft-actions [data-draft-choices]>.button{flex:1}}
.sales-editor-heading{display:flex;gap:16px;align-items:baseline;justify-content:space-between;margin:28px 0 16px}.sales-editor-heading h3{font-size:1rem;margin:0}.sales-editor-heading span{font-size:.8rem;color:var(--muted)}.sales-editor-block{border:1px solid var(--line);border-radius:9px;padding:18px;background:#fafbf9;margin:0 0 18px}.sales-editor-block .field:last-child{margin-bottom:0}.sales-row-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.sales-row-number{font-size:.86rem}.sales-row-actions{display:flex;gap:14px}.sales-row-actions button{font-size:.8rem;min-height:36px}.sales-add-actions{display:flex;gap:10px;flex-wrap:wrap}.sales-editor-spaced{margin-top:30px}.sales-image-draft{display:block;max-width:100%;max-height:340px;width:auto;height:auto;object-fit:contain;margin:0 auto 20px;border:1px solid var(--line);border-radius:6px}.sales-image-draft[hidden]{display:none}.sales-image-message,.sales-upload-status{font-size:.85rem;line-height:1.8;color:var(--muted)}.course-editor input[type=file]{font-size:.85rem;padding:10px}.editor-actions{flex-wrap:wrap}.sales-preview-dialog{width:min(940px,calc(100vw - 32px));max-width:none;max-height:90vh;padding:0;border:0;border-radius:14px;background:#fff;color:var(--ink)}.sales-preview-dialog::backdrop{background:#0f211ac9}.sales-preview-toolbar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:15px;background:#fff;padding:18px 26px;border-bottom:1px solid var(--line);font-size:.88rem}.sales-preview-body{padding:30px}.sales-preview-course{padding:8px 0 32px;border-bottom:1px solid var(--line);margin-bottom:30px}.sales-preview-course h1{font-size:1.8rem;margin:14px 0}.sales-preview-course p{font-size:.92rem;color:var(--muted)}.sales-preview-curriculum{padding-top:35px}.sales-preview-curriculum h2{font-size:1.4rem;margin-top:30px}.sales-preview-curriculum h3{font-size:1.02rem}.sales-preview-curriculum p,.sales-preview-curriculum li{font-size:.92rem;line-height:1.9}.sales-preview-curriculum li{padding:10px 0;border-bottom:1px solid var(--line)}.sales-preview-curriculum li span{display:block;color:var(--muted);font-size:.83rem}.course-detail-navigation{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--line)}.course-detail-navigation nav{display:flex;gap:10px}.course-detail-navigation button{border:0;background:transparent;padding:20px 18px;color:var(--green);font:inherit;font-size:.93rem;font-weight:700;min-height:52px}.course-detail-navigation button:hover{background:var(--soft)}.detail-body{width:100%;max-width:800px;margin-inline:auto}#course-story,#course-learning,#course-curriculum{scroll-margin-top:85px}#course-story:focus,#course-learning:focus,#course-curriculum:focus{outline:0}
@media(max-width:560px){.sales-editor-heading{align-items:flex-start;flex-direction:column;gap:7px}.sales-editor-block{padding:14px}.sales-row-heading{align-items:flex-start;flex-direction:column;gap:4px}.sales-row-actions{align-self:flex-end}.sales-preview-toolbar{padding:14px;flex-direction:column;align-items:stretch}.sales-preview-body{padding:18px}.sales-preview-course h1{font-size:1.5rem}.course-detail-navigation nav{gap:0}.course-detail-navigation button{padding:15px 12px;font-size:.85rem}.editor-actions>.button{flex:1 1 auto;text-align:center}}
