body.lesson-editor #outline.structure-v2{padding:12px;overflow:auto;overflow-x:hidden}.structure-v2,.structure-organizer{color:var(--ink,#182c44);font-family:Manrope,Arial,sans-serif}.structure-controls{display:grid;gap:10px;margin-bottom:16px}.structure-controls input[type=search],.structure-move select{box-sizing:border-box;width:100%;min-width:0;padding:9px 11px;border:1px solid #d8e4ef;border-radius:10px;background:var(--surface,#fff);color:inherit}.structure-modes{display:flex;background:#edf3fa;padding:3px;border-radius:12px}.structure-modes button{flex:1;font-size:12px!important;border:0!important;background:transparent!important;padding:9px 4px!important}.structure-modes button.active{background:#edfac0!important;color:#193043!important;border-radius:9px}.structure-open{border:0!important;background:transparent!important;text-align:left;color:#365c82!important;padding:3px!important}.structure-tools{display:flex;flex-wrap:wrap;gap:5px}.structure-tools button{font-size:12px!important;padding:6px 8px!important}.structure-page{border:1px solid #e0e8f1;border-radius:14px;margin-bottom:14px;background:var(--surface,#fff);min-width:0}.structure-page-head{display:flex;align-items:center;gap:6px;padding:10px 8px;background:#e7f1fc;border-radius:14px 14px 0 0;font-size:14px}.structure-page-head>strong{flex:1;min-width:0;overflow-wrap:anywhere}.structure-page-items{padding:6px}.structure-row{display:flex;align-items:center;gap:4px;min-width:0;padding:5px 2px;border:1px solid transparent;border-radius:10px}.structure-row.is-selected{border-color:#badc68;background:#f5fadd}.structure-pick{flex:1;min-width:0;background:transparent!important;border:0!important;padding:4px!important;text-align:left;display:grid;gap:3px}.structure-pick strong{font-size:13px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.structure-pick small{font-size:11px;color:#65809a}.structure-grip{cursor:grab!important;flex:0 0 22px;padding:4px!important;background:transparent!important;border:0!important;color:#7d95b0!important}.structure-grip:active{cursor:grabbing!important}.structure-menu{position:relative;flex:none}.structure-menu>summary{list-style:none;cursor:pointer;padding:4px 7px}.structure-menu>summary::-webkit-details-marker{display:none}.structure-menu-pop{position:absolute;right:0;top:100%;z-index:90;background:var(--surface,#fff);border:1px solid #d5e2ef;box-shadow:0 8px 30px #19334822;border-radius:12px;padding:6px;width:205px}.structure-menu-pop button{display:block;width:100%;text-align:left;font-size:12px!important;border:0!important;background:transparent!important;padding:9px!important}.structure-menu-pop button:hover{background:#eef5fc!important}.structure-task>summary{list-style:none;cursor:pointer}.structure-task>summary::-webkit-details-marker{display:none}.structure-task>summary:before{content:'▸';float:left;margin:12px 2px}.structure-task[open]>summary:before{content:'▾'}.structure-children{margin-left:18px;border-left:1px solid #dce7f0;padding-left:6px}.structure-seam{height:8px;border-top:2px solid transparent;font-size:0;min-width:30px}.structure-seam.structure-over{border-color:#a9d600;background:#f2facd}.structure-seam.structure-over:after{content:'Переместить сюда';font-size:11px;background:#eaf9b5}.structure-page-end{padding:14px 8px;text-align:center;border:1px dashed #cdddeb;border-radius:8px;color:#6d839b;font-size:12px;margin:8px 0}.structure-over:not(.structure-seam){outline:2px solid #a9d600;background:#f5fadf!important}.structure-row input[type=checkbox]{width:16px!important;flex:0 0 16px}.structure-organizer{box-sizing:border-box;width:calc(100vw - 64px);max-width:1700px;height:calc(100dvh - 64px);max-height:none;margin:auto;padding:24px;border:1px solid #cfddeb;border-radius:22px;background:linear-gradient(#e9f4ff,#fff 240px);overflow:auto}.structure-organizer::backdrop,.structure-move::backdrop{background:#142b4355;backdrop-filter:blur(3px)}.structure-board-heading{display:flex;justify-content:space-between;align-items:center;font-size:28px;font-weight:750}.structure-organizer>.structure-controls{grid-template-columns:320px 1fr auto;align-items:center}.structure-organizer .structure-tools{justify-content:flex-end}.structure-board{display:flex;align-items:flex-start;gap:18px;overflow:auto;min-height:55vh;padding:4px 3px 100px}.structure-board>.structure-page{flex:0 0 360px}.structure-board.is-flat{display:block;max-width:800px;margin:auto}.structure-board .structure-pick strong{font-size:14px}.structure-move{padding:24px;border:1px solid #ccdcea;border-radius:18px;width:360px;max-width:calc(100vw - 48px);background:var(--surface,#fff);color:inherit}.structure-move select{margin-bottom:14px}.structure-notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:99999;display:flex;align-items:center;gap:20px;padding:12px 18px;background:#fff;border:1px solid #d3e3ed;box-shadow:0 4px 20px #13283a22;border-radius:12px}.structure-notice button{background:#eefaC6!important}.structure-question-title{font-size:17px;margin:0 0 12px}.lesson-shared-title{display:flex;align-items:center;gap:12px}.structure-task-index{background:#eef7dd;border:1px solid #afc88d;padding:7px 10px;border-radius:10px}
body.ui-dark .structure-page-head,body.ui-dark .structure-modes{background:#24394d}body.ui-dark .structure-organizer{background:#172b3a}body.ui-dark .structure-row.is-selected{background:#30432a}body.ui-dark .structure-notice{background:#203449;color:#ecf5ff}
@media(max-width:900px){.structure-organizer{width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:14px}.structure-organizer>.structure-controls{display:grid;grid-template-columns:1fr}.structure-board-heading{font-size:21px}.structure-board>.structure-page{flex-basis:min(340px,85vw)}}

.structure-seam{position:relative;height:18px}.structure-split{position:absolute;right:6px;top:-3px;font-size:10px!important;padding:2px 6px!important;opacity:0;z-index:2}.structure-unit:hover>.structure-seam .structure-split,.structure-split:focus-visible{opacity:1}.structure-seam.structure-over .structure-split{visibility:hidden}
@media(min-width:1300px){html[data-lessync-surface=editor] body.studio-editor>.layout:has(#outline.structure-v2):not(.structure-collapsed):not(.catalog-open){grid-template-columns:340px minmax(0,1fr) 300px!important}html[data-lessync-surface=editor] body.studio-editor>.layout.no-settings:has(#outline.structure-v2):not(.structure-collapsed):not(.catalog-open){grid-template-columns:340px minmax(0,1fr)!important}}

/* Stable editor location and selection */
.structure-context{position:sticky;top:calc(var(--builder-header-height,70px) + 8px);z-index:12;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:#f5f9ff;border:1px solid #d8e4f2;border-radius:12px;margin:0 0 18px;font-size:14px;overflow-anchor:none}
.structure-context-actions{display:flex;gap:6px;flex-shrink:0}.structure-context-actions button{padding:6px 12px}.structure-settings-context{padding:12px 4px;font-weight:700;font-size:14px}
#blocks>.block.active{outline:2px solid #a6cf39!important;box-shadow:inset 4px 0 #b7f500!important}
#outline .structure-row.is-selected{background:#f2facd;border-left:3px solid #a6cf39;border-radius:8px}
#outline .structure-row.is-current-group{background:#edf3fa;border-color:transparent}
.structure-page-select{background:transparent!important;border:0!important;text-align:left;font-weight:700;flex:1;padding:4px!important}
#blocks{overflow-anchor:none}.structure-pick:hover{background:#eef2f6}.structure-pick{transition:none!important}
body.dark .structure-context,[data-theme=dark] .structure-context{background:#202c39;color:#edf3fa}

#blocks>.block{scroll-margin-top:240px}

/* Context lives within the editor toolbar, never on top of the lesson. */
body>header #structure-context{position:static!important;inset:auto!important;flex-basis:100%;margin:0;padding:6px 12px;border:0;background:transparent;min-width:0;box-shadow:none;font-size:12px;z-index:auto}
#structure-context>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:calc(100% - 100px)}
.author-shared-header select{max-width:210px;font-size:13px}.structure-context-actions button{padding:3px 9px}
