/* Review: explicit latest PDF dimensions override the earlier compact release. */
.editor-mode{background:#f2f6fa}
#course-editor.course-editor button:focus-visible{outline:2px solid #87a3c2;outline-offset:2px}
#course-editor.course-editor{font:15px/1.7 system-ui,sans-serif;color:#17365d;max-width:1320px;margin:20px auto;padding:0 26px}
#course-editor.course-editor .editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#61738a;margin-bottom:8px}
#course-editor.course-editor .editor-subtitle{font-size:12px}
#course-editor.course-editor .editor-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:8px 0 16px}
#course-editor.course-editor .editor-status{margin:0 auto 0 0;font-size:12px;color:#61738a}
#course-editor.course-editor .editor-actions button{font-size:13px;min-height:38px;padding:8px 14px;border-radius:9px}
#course-editor.course-editor .editor-shell{grid-template-columns:230px minmax(0,1fr);border:1px solid #dce5ef;border-radius:12px;overflow:visible;background:#f2f6fa}
#course-editor.course-editor .editor-sidebar{padding:20px 14px;border-right:1px solid #dce5ef;align-self:stretch;background:#f2f6fa;border-radius:12px 0 0 12px}
#course-editor.course-editor .editor-sidebar h2{margin:28px 10px 12px;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.08em;color:#61738a}
#course-editor.course-editor .editor-sidebar .editor-lesson{font-size:13px;line-height:1.5;padding:12px 10px;border-radius:10px;margin:0 0 4px}
#course-editor.course-editor .editor-sidebar .add-lesson{background:transparent;color:#61738a;font-size:12px;justify-content:flex-start;padding:10px}
#course-editor.course-editor .editor-sidebar .reading-toggle{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:4px 5px;min-height:38px;background:transparent;color:#61738a;font-size:12px;font-weight:400;white-space:nowrap}
.switch-track{position:relative;display:block;width:32px;min-width:32px;height:19px;border-radius:20px;background:#d4dfe9}
.switch-track:before{position:absolute;content:'';width:15px;height:15px;background:#fff;left:2px;top:2px;border-radius:50%;box-shadow:0 1px 3px #17365d18}
[aria-checked=true]>.switch-track{background:#17365d}[aria-checked=true]>.switch-track:before{left:15px}
#course-editor.course-editor .editor-paper.lesson-material{position:relative;padding:24px 57px;background:#fff;border-radius:0 12px 12px 0;min-width:0;min-height:calc(100vh - 200px);font-size:16px;line-height:1.75;overflow-wrap:anywhere}
#course-editor .editor-paper.lesson-material .lesson-title{font-size:28px;line-height:1.3;margin:0 38px 20px 0;padding:0;min-height:36px;color:#17365d;font-weight:700;border:0;outline:none;overflow-wrap:anywhere}
#course-editor .editor-paper.lesson-material .lesson-title:focus{outline:2px solid #d5e1ed;outline-offset:7px;border-radius:3px}
#course-editor .editor-paper.lesson-material .lesson-actions{position:absolute;right:14px;top:25px;margin:0}
#course-editor .editor-paper.lesson-material .lesson-actions button{width:38px;height:38px;min-height:38px;padding:0;background:transparent;color:#7188a3}
#course-editor .editor-paper.lesson-material .lesson-actions button:not(.danger){display:none}
#course-editor .editor-paper.lesson-material .editor-block{position:relative;padding:0;border:0;border-radius:0;margin:0;background:transparent}
#course-editor .editor-paper.lesson-material .block-label{display:none}
#course-editor .editor-paper.lesson-material .editable{font:inherit;line-height:1.75;min-height:28px;border:0;border-radius:0;padding:0;outline:none;overflow-wrap:anywhere}
#course-editor .editor-paper.lesson-material .editable:focus-visible{outline:none}
#course-editor .editor-paper.lesson-material p{margin:0 0 14px}
#course-editor .editor-paper.lesson-material p:last-child{margin-bottom:0}
#course-editor .editor-paper.lesson-material h1:not(.lesson-title){font-size:28px;line-height:1.35;margin:15px 0}
#course-editor .editor-paper.lesson-material h2{font-size:22px;line-height:1.4;margin:15px 0}
#course-editor .editor-paper.lesson-material h3{font-size:18px;line-height:1.5;margin:15px 0}
#course-editor .editor-paper.lesson-material .editable>:first-child,#course-editor .editor-paper.lesson-material .rich-text>:first-child{margin-top:0}
#course-editor .editor-paper.lesson-material .block-rail{top:0;padding:3px;gap:0;border-radius:24px;opacity:0;pointer-events:none;box-shadow:0 4px 18px #17365d12;z-index:6}
#course-editor .editor-paper.lesson-material .rail-left{left:-48px}
#course-editor .editor-paper.lesson-material .rail-right{right:-48px}
#course-editor .editor-paper.lesson-material .block-rail button{width:38px;min-width:38px;height:38px;min-height:38px;padding:0;color:#7188a3}
#course-editor .editor-paper.lesson-material .block-rail svg,#course-editor .lesson-actions svg{width:19px;height:19px}
#course-editor .editor-paper.lesson-material .editor-block:hover>.block-rail,#course-editor .editor-paper.lesson-material .editor-block:focus-within>.block-rail{opacity:1;pointer-events:auto}
#course-editor .editor-paper.lesson-material .editor-tools{flex-wrap:nowrap;gap:0;width:fit-content;max-width:100%;overflow-x:auto;border-radius:22px;background:#fff;box-shadow:0 3px 16px #17365d12;padding:4px;margin:0 0 12px}
#course-editor .editor-paper.lesson-material .editor-tools button{height:38px;min-height:38px;min-width:38px;padding:4px 8px;flex-shrink:0;font-size:13px;color:#17365d;border-radius:18px}
#course-editor .editor-paper.lesson-material .editor-tools button[aria-pressed=true]{background:#e3ecf5}
#course-editor .editor-paper.lesson-material .table-dimensions{display:none;align-items:flex-end;gap:8px;margin:0 0 12px}
#course-editor .editor-paper.lesson-material [data-type=table]:focus-within .table-dimensions{display:flex}
#course-editor .editor-paper.lesson-material .table-dimensions .field{font-size:11px;max-width:90px}
#course-editor .editor-paper.lesson-material .table-scroll{overflow:auto;max-width:100%;margin:0;border-radius:0}
#course-editor .editor-paper.lesson-material table{border-collapse:collapse;table-layout:fixed;width:100%;font:inherit;color:#17365d}
#course-editor .editor-paper.lesson-material th,#course-editor .editor-paper.lesson-material td{border:1px solid #d5e1ed;padding:9px;overflow-wrap:anywhere;min-width:100px;text-align:left;vertical-align:top}
#course-editor .editor-paper.lesson-material th{background:#f2f6fa}
#course-editor .editor-paper.lesson-material blockquote{border:0;border-left:3px solid #87a3c2;background:#f2f6fa;padding:8px 16px;margin:0;color:#365575}
#course-editor .editor-paper.lesson-material .course-media{margin:0}
#course-editor .editor-paper.lesson-material .course-media img,#course-editor .editor-paper.lesson-material .course-media video{max-width:100%;max-height:none;height:auto;display:block;object-fit:contain;border-radius:10px}
#course-editor .editor-paper.lesson-material .course-media video{width:100%;background:#17365d}
#course-editor .editor-paper.lesson-material .course-media figcaption{font-size:12px;margin:8px 0 0;color:#61738a}
#course-editor .editor-paper.lesson-material .lesson-body{font:inherit;line-height:inherit}
#course-editor .editor-paper.lesson-material .lesson-body>*{margin:0 0 28px}
#course-editor .editor-paper.lesson-material .editor-pager{display:none}
#course-editor .editor-paper.lesson-material .lesson-body>.callout{margin-bottom:28px}
#course-editor .editor-paper.lesson-material .editor-gap:focus-visible{outline:2px solid #87a3c2;outline-offset:2px;border-radius:24px}
#course-editor.course-editor .reading-next{margin-top:24px;min-height:44px;background:#17365d;color:white}
#course-editor.is-reading .editor-heading,#course-editor.is-reading .editor-actions{display:none}
#course-editor .notice:not(:empty){font-size:13px;padding:12px;margin:0 0 14px;background:#f2f6fa;border:1px solid #d5e1ed;border-radius:9px}
#course-editor .notice.error{border-color:#c2959a;color:#8a3e48}
@media(max-width:800px){
 #course-editor.course-editor{margin:12px 0;padding:0 12px}
 #course-editor.course-editor .editor-heading{flex-wrap:wrap;gap:0;font-size:11px}
 #course-editor.course-editor .editor-actions{flex-wrap:wrap;margin:6px 0 12px}
 #course-editor.course-editor .editor-status{width:100%;font-size:11px}
 #course-editor.course-editor .editor-actions button{flex:0 0 auto;min-height:44px}
 #course-editor.course-editor .editor-shell{grid-template-columns:minmax(0,1fr)}
 #course-editor.course-editor .editor-sidebar{padding:10px 14px;border-right:0;border-bottom:1px solid #dce5ef;border-radius:12px 12px 0 0}
 #course-editor.course-editor .editor-sidebar h2{display:none}
 #course-editor.course-editor .editor-sidebar nav{max-height:90px;overflow:auto;margin-top:7px}
 #course-editor.course-editor .editor-sidebar .editor-lesson{font-size:12px;padding:8px 10px;min-height:44px}
 #course-editor.course-editor .editor-sidebar .reading-toggle{min-height:44px}
 #course-editor.course-editor .editor-sidebar .add-lesson{font-size:11px;min-height:44px}
 #course-editor.course-editor .editor-paper.lesson-material{padding:24px 47px;border-radius:0 0 12px 12px}
 #course-editor .editor-paper.lesson-material .lesson-title{font-size:25px;margin-right:12px}
 #course-editor .editor-paper.lesson-material .rail-left{left:-46px}
 #course-editor .editor-paper.lesson-material .rail-right{right:-46px}
 #course-editor .editor-paper.lesson-material .block-rail{padding:0;box-shadow:none}
 #course-editor .editor-paper.lesson-material .block-rail button,#course-editor .editor-paper.lesson-material .editor-tools button{width:44px;min-width:44px;height:44px;min-height:44px}
 #course-editor .editor-paper.lesson-material .editor-tools button:first-child{width:auto}
 #course-editor .editor-paper.lesson-material aside.callout{padding:20px 12px;gap:12px}
 #course-editor .editor-paper.lesson-material .callout .info-text{padding-right:8px}
 #course-editor .editor-paper.lesson-material .callout .callout-dots{top:1px;right:0;min-height:44px;width:44px;height:44px}
 #course-editor .editor-paper.lesson-material .callout .callout-menu{right:-30px;width:320px}
 #course-editor .editor-paper.lesson-material .callout-menu .color-swatch{width:44px;min-width:44px;height:44px;min-height:44px}
 #course-editor .editor-paper.lesson-material .table-dimensions{flex-wrap:wrap}
}
@media(pointer:coarse){#course-editor .editor-paper.lesson-material .block-rail button,#course-editor .editor-paper.lesson-material .editor-tools button{min-width:44px;width:44px;height:44px;min-height:44px}}
#course-editor .editor-paper.lesson-material .callout,.lesson-body .callout{position:relative;display:flex;align-items:flex-start;gap:19px;padding:26px 22px;margin:0;border:1px solid #d5e1ed;border-radius:18px;background:#f2f6fa;color:#17365d;box-shadow:none}
.info-symbol{display:grid;place-items:center;width:35px;height:35px;min-width:35px;border-radius:50%;background:#e3ecf5;color:var(--callout-ink,#17365d)}
.info-symbol svg{width:22px;height:22px}
.info-text{min-width:0;flex:1}
.info-text p:last-child{margin-bottom:0}
.color-slate{--callout-ink:#526174;--swatch:#526174}.color-blue{--callout-ink:#395a91;--swatch:#395a91}.color-green{--callout-ink:#477d69;--swatch:#477d69}.color-orange{--callout-ink:#ac653f;--swatch:#ac653f}.color-red{--callout-ink:#a65359;--swatch:#a65359}.color-purple{--callout-ink:#8064a1;--swatch:#8064a1}
#course-editor .callout .callout-dots{position:absolute;right:8px;top:8px;width:38px;height:38px;min-height:38px;padding:0;background:transparent;color:#61738a;font-size:24px}
#course-editor .callout .info-text{padding-right:22px}
#course-editor .callout .callout-menu{position:absolute;right:8px;top:48px;z-index:20;width:280px;max-width:calc(100vw - 40px);padding:16px;background:#fff;border-radius:22px;box-shadow:0 12px 36px #17365d25;color:#61738a}
#course-editor .callout-menu .menu-caption{display:block;font-size:11px;letter-spacing:.12em;margin:7px 0 10px}
#course-editor .callout-menu .mood-option{display:flex;justify-content:flex-start;gap:14px;padding:7px 8px;min-height:44px;width:100%;background:transparent;color:#526880;font-size:15px;border-radius:10px}
#course-editor .callout-menu .mood-option[aria-checked=true]{background:#f2f6fa;color:#17365d}
#course-editor .callout-menu .mood-option .info-symbol{width:29px;min-width:29px;height:29px}
#course-editor .callout-menu .color-options{display:flex;gap:4px}
#course-editor .callout-menu .color-swatch{width:38px;height:38px;min-height:38px;min-width:0;border-radius:12px;padding:0;background:#f5f6f8}
#course-editor .callout-menu .color-swatch:before{content:'';width:16px;height:16px;border-radius:50%;background:var(--swatch)}
#course-editor .callout-menu .color-swatch[aria-checked=true]{outline:1.5px solid #17365d;outline-offset:-2px}
#course-editor .info-text:focus-within>.editor-tools{display:flex}
[hidden]{display:none!important}
#course-editor .editor-gap .insert-bar{display:none;opacity:1}
#course-editor:has(.callout-menu:not([hidden])) .editor-gap .insert-bar{display:none}
#course-editor .editor-gap.gap-active .insert-bar,#course-editor .editor-gap:focus-within .insert-bar{display:flex}
@media(hover:hover){#course-editor .editor-gap:hover .insert-bar{display:flex}}
#course-editor .editor-gap{position:relative;min-height:28px;padding:0;align-items:center}
#course-editor .editor-gap .insert-bar{position:relative;z-index:5;box-shadow:0 4px 18px #17365d12;padding:4px 6px}
#course-editor .editor-gap .insert-icon{width:38px;min-width:38px;height:38px;min-height:38px;padding:0}
#course-editor .editor-gap .insert-icon svg{width:19px;height:19px}
@media(max-width:760px),(pointer:coarse){#course-editor .editor-gap .insert-icon{width:44px;min-width:44px;height:44px;min-height:44px}}
/* Artem editor layout: blue/white paper, insertion gaps and compact block rails. */
/* Compact authoring surface: scoped to the editor, not learner pages. */
.editor-mode .topbar{height:56px;padding:0 24px}
.editor-mode .brand{font-size:14px;gap:8px}
.editor-mode .brand-mark{width:28px;height:28px;border-radius:8px;font-size:11px}
.editor-mode .brand small{font-size:8px;letter-spacing:.8px;margin-top:2px}
.editor-mode .local-badge{font-size:10px;padding:5px 8px}
.editor-mode .site-footer{margin-top:22px;font-size:10px}
#course-editor{max-width:1120px;margin:18px auto;padding:0 20px;font-size:14px}
#course-editor .editor-heading h1{font-size:22px;line-height:1.2;margin:7px 0}
#course-editor .text-button{font-size:12px;min-height:24px}
#course-editor .editor-subtitle,#course-editor .editor-status{font-size:11px;line-height:1.4;margin:5px 0}
#course-editor .editor-actions{gap:6px;margin:10px 0 8px}
#course-editor button{min-height:32px;padding:6px 10px;border-radius:6px;font-size:12px;gap:5px}
#course-editor .editor-shell{grid-template-columns:208px minmax(0,1fr);border-radius:10px}
#course-editor .editor-sidebar{padding:14px 12px}
#course-editor .editor-sidebar h2{font-size:12px;margin:0 0 8px}
#course-editor .editor-lesson{min-height:32px;padding:7px 8px;margin-bottom:2px;font-size:12px;line-height:1.35;border-radius:5px}
#course-editor .editor-paper{padding:18px 44px}
#course-editor .field{font-size:11px;line-height:1.4}
#course-editor input:not([type=checkbox]),#course-editor select{min-height:32px;padding:6px 8px;margin-top:4px;border-radius:5px;font-size:12px}
#course-editor textarea{padding:6px 8px;border-radius:5px;font-size:13px}
#course-editor .lesson-actions{gap:4px;margin-bottom:10px}
#course-editor .lesson-actions button{font-size:11px;min-height:28px;padding:4px 7px}
#course-editor .editor-gap{padding:4px 0;min-height:38px}
#course-editor .insert-bar{gap:2px;padding:2px 5px;border:1px solid #edf1f5;box-shadow:0 2px 8px #17365d09;opacity:.6;flex-wrap:nowrap}
#course-editor .editor-gap:hover .insert-bar,#course-editor .editor-gap:focus-within .insert-bar{opacity:1}
#course-editor .insert-icon{width:28px;min-width:28px;height:28px;min-height:28px;padding:0;background:transparent;border-radius:50%}
#course-editor .insert-icon svg,#course-editor .block-rail svg{display:block;width:14px;height:14px;flex:none}
#course-editor .editor-block{padding:7px 0 9px}
#course-editor .block-label{font-size:9px;letter-spacing:.04em}
#course-editor .block-rail{top:8px;padding:2px;gap:1px;opacity:0;pointer-events:none;border-radius:18px;box-shadow:0 2px 10px #17365d0c}
#course-editor .block-rail.rail-left{left:-34px}
#course-editor .block-rail.rail-right{right:-34px}
#course-editor .block-rail button{width:28px;height:28px;min-height:28px;min-width:28px;padding:0;border-radius:50%;font-size:12px;background:transparent;color:#7188a3}
#course-editor .block-rail button.danger{color:#9d5360}
#course-editor .editor-block:hover>.block-rail,#course-editor .editor-block:focus-within>.block-rail{opacity:1;pointer-events:auto}
#course-editor .editor-tools{display:none;gap:2px;margin:5px 0;flex-wrap:wrap}
#course-editor .editor-block:focus-within>.editor-tools{display:flex}
#course-editor .editor-tools button{min-width:28px;min-height:28px;height:28px;padding:3px 6px;font-size:12px;background:transparent;color:#61738a}
#course-editor .editable{min-height:48px;line-height:1.6;padding:6px;border-color:transparent;border-radius:4px;font-size:14px}
#course-editor .editor-block:hover>.editable,#course-editor .editable:focus-visible{border-color:#d5e1ed}
#course-editor .editable p{margin:0 0 8px}
#course-editor .table-dimensions{gap:6px;margin:8px 0}
#course-editor .table-scroll{margin:10px 0;border-radius:5px}
#course-editor .table-scroll td,#course-editor .table-scroll th{padding:7px}
#course-editor .course-media{margin:12px 0}
#course-editor .course-media img,#course-editor .course-media video{max-height:340px;border-radius:6px}
#course-editor .course-media figcaption{font-size:11px;margin-top:5px}
#course-editor .editor-paper .callout{padding:12px 14px;margin:12px 0;border-radius:8px}
#course-editor .lesson-body{font-size:14px;line-height:1.65}
#course-editor .editor-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid #edf1f5}
#course-editor .editor-pager:last-child{margin:14px 0 0;padding:10px 0 0;border-bottom:0;border-top:1px solid #edf1f5}
#course-editor .editor-pager span{font-size:11px;color:#61738a;white-space:nowrap}
#course-editor .editor-pager button{font-size:11px;padding:5px 8px;min-height:28px;background:transparent;color:#526880}
@media(max-width:760px){
 .editor-mode .topbar{padding:0 14px}
 #course-editor{margin:12px auto;padding:0 12px}
 #course-editor .editor-heading h1{font-size:20px}
 #course-editor .editor-shell{grid-template-columns:minmax(0,1fr)}
 #course-editor .editor-sidebar{padding:12px}
 #course-editor .editor-sidebar nav{max-height:148px;overflow:auto}
 #course-editor .editor-actions{gap:5px}
 #course-editor .editor-actions button{flex:1 1 auto;min-height:44px;padding:6px 8px;font-size:11px}
 #course-editor .editor-paper{padding:14px 44px}
 #course-editor .insert-bar{padding:2px;gap:0;box-shadow:none;max-width:100%;overflow-x:auto;justify-content:flex-start}
 #course-editor .insert-icon{width:44px;min-width:44px;height:44px;min-height:44px;flex-shrink:0}
 #course-editor .editor-gap{min-height:48px;padding:2px 0}
 #course-editor .block-rail{opacity:1;pointer-events:auto;box-shadow:none;padding:0}
 #course-editor .block-rail.rail-left{left:-44px}
 #course-editor .block-rail.rail-right{right:-44px}
 #course-editor .block-rail button{width:44px;min-width:44px;height:44px;min-height:44px}
 #course-editor .editor-tools button{min-width:44px;min-height:44px;height:44px}
 #course-editor .editor-pager{gap:4px}
 #course-editor .editor-pager button{min-height:44px;padding:5px 4px;font-size:10px}
 #course-editor .editor-pager span{font-size:10px}
}
@media(pointer:coarse) and (min-width:761px){
 #course-editor .insert-icon,#course-editor .block-rail button,#course-editor .editor-tools button{width:44px;min-width:44px;height:44px;min-height:44px}
 #course-editor .block-rail{opacity:1;pointer-events:auto}
 #course-editor .block-rail.rail-left{left:-44px}
 #course-editor .block-rail.rail-right{right:-44px}
}
.course-editor{max-width:1320px;margin:32px auto;padding:0 28px;color:#17365d}.editor-heading h1{font-size:30px;margin:12px 0}.editor-subtitle,.editor-status{font-size:13px;color:#61738a}.editor-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.course-editor button{background:#17365d;color:#fff}.course-editor button.secondary{background:#e3ecf5;color:#17365d}.course-editor button.danger{background:#fff0f1;color:#9d2532}.course-editor button:disabled{opacity:.45}.course-editor .notice:empty{display:none}.editor-shell{display:grid;grid-template-columns:230px minmax(0,1fr);background:#f2f6fa;border:1px solid #dce5ef;border-radius:18px;overflow:hidden}.editor-sidebar{padding:22px 16px;border-right:1px solid #dce5ef;min-width:0}.editor-sidebar h2{font-size:16px}.course-editor .editor-lesson{display:block;background:transparent;color:#526880;text-align:left;width:100%;font-size:13px;overflow-wrap:anywhere;margin-bottom:6px;padding:12px 10px}.course-editor .editor-lesson.active{background:#e3ecf5;color:#17365d}.editor-paper{min-width:0;background:#fff;padding:28px 38px}.editor-paper>.field{margin-bottom:12px}.course-editor .field{display:block;font-weight:600;font-size:13px}.course-editor input:not([type=checkbox]),.course-editor textarea,.course-editor select{width:100%;min-height:44px;border:1px solid #cfdce9;border-radius:8px;background:#fff;color:#17365d;padding:10px;font:inherit;margin-top:7px}.course-editor input[type=file]{max-width:100%;font-size:13px}.course-editor textarea{min-height:100px;resize:vertical}.course-editor select{max-width:240px}.course-editor select:focus-visible,.editable:focus-visible{outline:3px solid #87a3c2;outline-offset:3px}.lesson-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}.lesson-actions button{font-size:12px;padding:8px 10px}.editor-gap{display:flex;justify-content:center;padding:14px 0;min-height:64px}.insert-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;border-radius:28px;padding:4px;background:#fff;box-shadow:0 3px 18px #17365d18}.course-editor .insert-icon{background:transparent;color:#526880;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;font-size:18px}.course-editor .insert-icon:hover{background:#e3ecf5}.editor-block{position:relative;min-width:0;padding:12px 0 16px}.block-controls{display:flex;justify-content:flex-end;gap:4px;margin-bottom:6px}.block-controls button{width:44px;height:44px;min-height:44px;padding:0;font-size:18px}.block-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#61738a}.editor-tools{display:flex;flex-wrap:wrap;gap:4px;margin:10px 0}.editor-tools button{min-width:44px;min-height:44px;padding:8px}.editable{min-height:100px;line-height:1.75;padding:12px;border:1px solid #d5e1ed;border-radius:9px;overflow-wrap:anywhere;white-space:pre-wrap}.editable:empty:before{content:'Начните писать…';color:#61738a}.table-dimensions{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:14px 0}.table-dimensions .field{width:100px}.table-scroll{max-width:100%;overflow:auto;margin:18px 0;border:1px solid #d5e1ed;border-radius:10px}.table-scroll table{border-collapse:collapse;width:100%;min-width:440px}.table-scroll th,.table-scroll td{border:1px solid #d5e1ed;text-align:left;padding:12px;vertical-align:top;min-width:140px;overflow-wrap:anywhere}.table-scroll th{background:#f2f6fa}.table-scroll .field{font-size:11px}.course-media{margin:22px 0}.course-media img,.course-media video{display:block;width:100%;max-height:520px;object-fit:contain;border-radius:12px;background:#f2f6fa}.course-media video{background:#17365d}.course-media figcaption{font-size:13px;color:#61738a;margin-top:10px}.lesson-body .callout,.editor-paper .callout{border:1px solid #d5e1ed;border-radius:18px;background:#f2f6fa;color:#17365d;padding:22px;margin:22px 0}.lesson-body .tone-warning,.editor-paper .tone-warning{background:#fff6df;border-color:#e8d6a3;color:#6d501b}.lesson-body .tone-success,.editor-paper .tone-success{background:#eaf5ed;border-color:#bddbc5;color:#235233}.rich-text{overflow-wrap:anywhere}.check-label{display:flex;gap:10px;align-items:center;min-height:44px}.course-editor .notice{overflow-wrap:anywhere}.course-editor .lesson-body{font-size:16px;line-height:1.75}
@media(max-width:760px){.course-editor{padding:0 14px;margin:20px auto}.editor-shell{grid-template-columns:minmax(0,1fr)}.editor-sidebar{border-right:0;border-bottom:1px solid #dce5ef;padding:16px}.editor-sidebar nav{max-height:220px;overflow:auto}.editor-paper{padding:20px 14px}.editor-actions{gap:8px}.editor-actions button{flex:1 1 140px}.course-editor .insert-icon{width:38px;min-width:38px}.insert-bar{gap:0;padding:3px}.course-editor input[type=file]{font-size:12px}.editor-heading h1{font-size:26px}.course-editor .table-scroll input{min-width:120px}}
/* Compact source-style side rails; visible on keyboard focus/touch. */
.editor-paper{padding-left:54px;padding-right:54px}.block-rail{position:absolute;top:16px;display:flex;flex-direction:column;gap:3px;padding:2px;background:#fff;border-radius:24px;box-shadow:0 4px 18px #17365d12;opacity:.35}.block-rail.rail-left{left:-48px}.block-rail.rail-right{right:-48px}.block-rail button{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;font-size:18px}.editor-block:hover>.block-rail,.editor-block:focus-within>.block-rail{opacity:1}@media(max-width:760px){.editor-paper{padding-left:48px;padding-right:48px}.block-rail.rail-left{left:-46px}.block-rail.rail-right{right:-46px}.block-rail{opacity:1;box-shadow:none}.editor-paper .table-dimensions{display:block}.editor-paper .table-dimensions button{margin-top:8px}}@media(pointer:coarse){.block-rail{opacity:1}}
:root{--ink:#1e293b;--muted:#647087;--accent:#354db3;--blue:#263b87;--line:#e4e7ee;--paper:#fff;--bg:#f5f6f9;--radius:22px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button,.button{min-height:46px;border:0;border-radius:10px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;font-weight:600;background:var(--ink);color:white;line-height:1.3}button:hover:not(:disabled),.button:hover{background:#303e56}.secondary{background:#edf0f6;color:var(--ink)}.secondary:hover:not(:disabled){background:#e1e6f0}.danger{color:#9d2532;background:#fff0f1}.text-button{color:var(--accent);background:transparent;padding-left:0}.text-button:hover:not(:disabled){background:#edf0f6}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #6e86ed;outline-offset:4px}.topbar{height:88px;padding:0 48px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:white}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-weight:700;font-size:17px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e9edfa;color:var(--accent);font-size:14px;letter-spacing:-1px}.brand small{display:block;font-size:9px;font-weight:600;letter-spacing:1.3px;color:var(--muted);margin-top:5px}.local-badge,.badge{font-size:11px;letter-spacing:.4px;background:#edf0f6;color:#536079;border-radius:100px;padding:8px 12px;display:inline-block}.local-badge:before{content:'';display:inline-block;background:#627668;width:6px;height:6px;border-radius:50%;margin-right:7px}.site-footer{max-width:1120px;margin:48px auto 24px;padding:0 24px;display:flex;justify-content:space-between;gap:18px;color:var(--muted);font-size:11px;line-height:1.6}.cover{max-width:660px;margin:48px auto 0;border-radius:var(--radius);overflow:hidden;background:white;box-shadow:0 18px 55px #23325d12;border:1px solid #e1e5ed}.cover-hero{background:linear-gradient(120deg,#263b87,#5c59b0);color:white;padding:38px 40px 36px;position:relative}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase;display:block;color:var(--accent)}.cover-hero .eyebrow{color:#d0d7fa}.cover h1{font-size:37px;line-height:1.13;letter-spacing:-1.4px;margin:20px 0;max-width:560px;text-wrap:balance}.cover-hero p{font-size:16px;line-height:1.7;margin:0;color:#e6e9ff}.cover-body{padding:25px 40px 30px}.section-label{font-size:11px;letter-spacing:1.4px;color:var(--muted);text-transform:uppercase;font-weight:700;margin:0 0 13px}.syllabus{list-style:none;margin:0 0 22px;padding:0;counter-reset:lesson}.syllabus li{display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.4;padding:6px 0}.syllabus li:before{counter-increment:lesson;content:counter(lesson);display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;color:var(--muted);background:#f0f2f7;font-size:11px}.wide{width:100%}.consent{font-size:11px;line-height:1.6;color:var(--muted);margin:14px 0 0}.cover-sign{border-top:1px solid var(--line);margin-top:22px;padding-top:18px;display:flex;gap:10px;align-items:center;font-size:12px}.cover-sign .brand-mark{width:32px;height:32px;font-size:11px}.state{max-width:620px;margin:100px auto;padding:40px;background:white;border:1px solid var(--line);border-radius:20px}.state h1{font-size:30px;letter-spacing:-.7px}.state p{color:var(--muted);line-height:1.7}.state code{display:block;background:var(--bg);padding:16px;border-radius:8px;overflow-wrap:anywhere}.learning{max-width:1120px;margin:38px auto;display:grid;grid-template-columns:250px minmax(0,720px);gap:58px;padding:0 24px}.sidebar{position:sticky;top:30px;align-self:start}.sidebar-title{font-size:14px;font-weight:700;line-height:1.5;margin:16px 0 23px}.nav-list{display:grid;gap:6px}.nav-lesson{background:transparent;color:var(--muted);width:100%;justify-content:flex-start;text-align:left;font-weight:400;font-size:12px;line-height:1.45;padding:10px;border-radius:9px;gap:10px}.nav-lesson:hover:not(:disabled){background:#e9edf6}.nav-lesson.active{background:#e6eaf7;color:var(--blue);font-weight:700}.nav-lesson:disabled{opacity:.6}.nav-number{flex:0 0 24px;height:24px;display:grid;place-items:center;border-radius:50%;background:white;font-size:11px}.nav-lesson.active .nav-number{background:var(--accent);color:white}.nav-lesson.done .nav-number{background:#e1eee7;color:#326548}.sidebar-note{font-size:11px;line-height:1.7;color:var(--muted);border-top:1px solid var(--line);padding-top:18px;margin-top:24px}.reader{min-width:0;background:white;border:1px solid var(--line);border-radius:16px;padding:30px 36px 32px}.progress-row{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:11px;margin-bottom:30px}.progress-track{height:4px;border-radius:10px;background:#edf0f5;flex:1;overflow:hidden}.progress-fill{height:100%;background:var(--accent)}.reader h1{font-size:30px;letter-spacing:-.8px;line-height:1.2;margin:13px 0 30px}.lesson-body h2{font-size:21px;line-height:1.4;letter-spacing:-.35px;margin:30px 0 14px}.lesson-body p,.lesson-body li{font-size:15px;line-height:1.85;overflow-wrap:anywhere}.lesson-body p{margin:0 0 19px;white-space:pre-line}.lesson-body ul,.lesson-body ol{padding-left:23px;margin:10px 0 24px}.lesson-body li{padding-left:5px;margin:8px 0}.callout{background:#f0f3fa;padding:22px;border-radius:12px;margin:24px 0;font-size:15px;line-height:1.8;white-space:pre-line}.video-placeholder{margin:25px 0 30px;background:#eff1f6;border:1px solid #e3e6ee;min-height:210px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}.video-placeholder .video-label{letter-spacing:1.6px;font-size:10px;color:var(--muted);margin-bottom:16px}.video-placeholder strong{font-size:18px}.video-placeholder p{font-size:12px;line-height:1.7;max-width:340px;margin:12px 0 0;color:var(--muted)}.lesson-bottom{border-top:1px solid var(--line);padding-top:24px;margin-top:32px}.lesson-bottom .wide{justify-content:space-between}.save-hint{font-size:11px;text-align:center;color:var(--muted);margin:13px 0 0}.notice{padding:16px 18px;border-radius:10px;background:#fff2ed;color:#813f28;line-height:1.6;font-size:13px;margin:16px 0;overflow-wrap:anywhere}.notice button{margin-top:10px}.success{background:#eaf3ed;color:#326548}.quiz{border:1px solid var(--line);padding:22px;margin-top:28px;border-radius:12px;min-width:0}.quiz legend{font-weight:700;font-size:15px;padding:0 8px;max-width:100%}.quiz label{display:flex;gap:12px;align-items:center;min-height:48px;font-size:14px;line-height:1.5;padding:8px 0;cursor:pointer}.quiz input{accent-color:var(--accent);width:18px;height:18px;flex:0 0 18px}.field{display:grid;gap:8px;font-size:12px;font-weight:600;margin:16px 0}.field input,.field textarea{width:100%;min-height:46px;border:1px solid #cfd5e1;border-radius:8px;padding:13px;background:white;color:var(--ink);font-weight:400}.field textarea{resize:vertical;line-height:1.6;min-height:130px}.drawer-toggle{display:none}.admin{max-width:1160px;margin:40px auto;padding:0 24px}.admin-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.admin h1{font-size:32px;letter-spacing:-.8px;margin:10px 0}.admin h2{font-size:21px}.admin-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px}.panel{padding:24px;background:white;border:1px solid var(--line);border-radius:14px;min-width:0}.panel h2{margin-top:0}.panel p{color:var(--muted);font-size:12px;line-height:1.7}.create-panel{align-self:start}.link-list{display:grid;gap:16px}.link-card{border-top:1px solid var(--line);padding-top:20px;min-width:0}.link-card:first-child{border-top:0;padding-top:0}.link-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.link-heading h3{font-size:15px;overflow-wrap:anywhere;margin:0}.link-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin:16px 0;font-size:11px;color:var(--muted);line-height:1.6}.link-meta strong{display:block;color:var(--ink);font-weight:400;overflow-wrap:anywhere}.actions{display:flex;flex-wrap:wrap;gap:8px}.actions button,.actions a{font-size:12px}.link-card details{margin:16px 0;font-size:12px}.link-card summary{cursor:pointer;min-height:44px;padding:12px 0}.answer-text{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:16px;line-height:1.7}.funnel{margin-top:24px}.funnel-row{display:grid;grid-template-columns:minmax(0,1fr) 72px 80px;gap:12px;font-size:12px;padding:14px 0;border-bottom:1px solid var(--line);line-height:1.6}.funnel-row span:not(:first-child){text-align:right}.funnel-row.header{font-size:10px;color:var(--muted)}.skip{position:fixed;left:20px;top:-90px;background:white;padding:15px;z-index:20}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hidden{display:none!important}@media(min-width:1400px){.cover{margin-top:60px}.cover-hero{padding-top:42px;padding-bottom:40px}}@media(max-width:850px){.topbar{height:76px;padding:0 24px}.learning{gap:24px;grid-template-columns:210px minmax(0,1fr);padding:0 20px}.reader{padding:26px}.admin-grid{grid-template-columns:1fr}.create-panel form{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.create-panel form button{align-self:end;margin-bottom:16px}.site-footer{flex-direction:column;gap:4px}}@media(max-width:620px){.topbar{padding:0 18px;height:72px}.brand{font-size:14px;gap:9px}.brand small{font-size:7px;letter-spacing:1px}.brand-mark{width:34px;height:34px}.local-badge{font-size:9px;padding:7px 9px}.cover{margin:22px 14px 0;border-radius:18px}.cover-hero{padding:30px 25px}.cover h1{font-size:31px;letter-spacing:-1px;margin:18px 0}.cover-hero p{font-size:14px;line-height:1.7}.cover-body{padding:24px}.syllabus li{font-size:12px;padding:7px 0;align-items:flex-start}.eyebrow{font-size:9px;letter-spacing:1.2px}.site-footer{margin-top:28px;padding:0 22px;font-size:10px}.learning{display:block;margin:16px auto;padding:0 14px}.drawer-toggle{display:flex;width:100%;justify-content:space-between;margin-bottom:14px}.sidebar{display:none;position:static;padding:18px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:16px}.sidebar.open{display:block}.reader{padding:24px 22px;border-radius:13px}.reader h1{font-size:27px}.lesson-body p,.lesson-body li{font-size:14px;line-height:1.85}.lesson-body h2{font-size:19px}.progress-row{margin-bottom:24px}.video-placeholder{min-height:185px;padding:22px}.state{margin:35px 16px;padding:28px}.state h1{font-size:26px}.admin{padding:0 16px;margin-top:25px}.admin-heading{align-items:flex-start;flex-wrap:wrap}.admin h1{font-size:27px}.create-panel form{display:block}.panel{padding:20px}.link-meta{grid-template-columns:1fr}.funnel-row{grid-template-columns:minmax(0,1fr) 48px 62px;gap:8px;font-size:11px}.quiz{padding:16px}.actions button,.actions a{flex:1}.callout{padding:18px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
