.board-editor-open .layout>.sidebar,.board-editor-open .layout>main>.topbar,.board-editor-open .layout>main>.page-heading,.board-editor-open .room-status,.board-editor-open .workspace-skip{display:none}
.board-editor-open .room-overlay-global{z-index:145}
.board-editor{position:fixed;inset:0;z-index:140;display:grid;grid-template-columns:220px minmax(0,1fr) 270px;grid-template-rows:62px minmax(0,1fr);background:#f2f1f5;color:#302c3a;font-size:13px}
.board-editor button,.board-editor input,.board-editor textarea{font-size:13px;border-radius:8px;min-height:36px}
.board-editor button{padding:7px 11px}.board-editor input{padding:8px;margin-top:5px;margin-bottom:0}.board-editor textarea{padding:10px;min-height:100px;resize:vertical}
.board-editor-header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;background:#fff;border-bottom:1px solid #e0dce7;z-index:5}
.board-editor-title{display:flex;align-items:center;gap:16px;min-width:0}.board-editor-title>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:40vw}.board-editor-header .row{gap:8px;flex-shrink:0}.board-editor-header [data-room-access]{white-space:nowrap}
.board-layers{grid-column:1;grid-row:2;background:#fff;border-right:1px solid #e0dce7;display:flex;flex-direction:column;min-height:0;z-index:4}
.board-panel-head{display:flex;justify-content:space-between;padding:20px 16px 14px;border-bottom:1px solid #eeeaf3}.board-panel-head span{color:#81768d;font-size:12px}
[data-board-layers]{flex:1;overflow-y:auto;padding:8px}.board-layer{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;color:#5d536b;border:0;margin-bottom:3px;min-height:40px!important}.board-layer>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.board-layer:hover:not(:disabled){background:#f2edf9;color:#493664}.board-layer.selected{background:#e9e1f7;color:#543695}.board-layer-actions{padding:14px;border-top:1px solid #eeeaf3;display:grid;gap:8px}
.board-editor-center{grid-column:2;grid-row:2;position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.board-mobile-add{display:none}
.board-tool-strip{display:flex;align-items:center;gap:6px;padding:8px 12px;background:#ffffffdf;border-bottom:1px solid #e0dce7;z-index:3;flex-shrink:0}.board-tool-strip>button{min-width:36px}.board-tool-strip [aria-pressed=true]{background:#e5dbf6;color:#53388a}.board-tool-strip .hint{font-size:11px;margin-left:auto}
.board-editor .moodboard-viewport{position:relative;flex:1;min-height:0;height:auto;overflow:hidden;border:0;border-radius:0;background-color:#f3f1f7;background-image:radial-gradient(#cec5da .8px,transparent .8px);background-size:20px 20px;touch-action:none;outline-offset:-3px}
.board-editor .moodboard-plane{position:absolute;left:0;top:0;width:4000px;height:16000px;transform-origin:0 0;background:transparent;will-change:transform}
.board-camera-controls{position:absolute;bottom:18px;right:18px;display:flex;align-items:center;gap:4px;padding:5px;background:#fff;border:1px solid #ded7e8;border-radius:12px;box-shadow:0 4px 20px #2f224f15;z-index:4}.board-camera-controls button{background:transparent;border:0;color:#625270;font-size:12px}.board-camera-controls button:hover:not(:disabled){background:#eee7f8;color:#4e396d}
.board-properties{grid-column:3;grid-row:2;overflow:auto;background:#fff;border-left:1px solid #e0dce7;padding:18px;z-index:4}.board-properties h3{font-size:15px;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}.board-properties .hint{font-size:12px}.board-properties form{margin:18px 0;padding-bottom:18px;border-bottom:1px solid #eeeaf3}.board-properties button{max-width:100%;margin-top:10px}.board-property-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.board-property-grid label{margin:0;font-size:12px}.board-shortcuts{margin-top:28px;padding-top:20px;border-top:1px solid #eeeaf3}.board-shortcuts p{color:#71647e;font-size:12px;line-height:2}
.board-color-options{display:flex;gap:9px;align-items:center;border:0;padding:8px 0;margin:12px 0}.board-color-options legend{font-size:12px}.board-color-options label{position:relative;margin:0;cursor:pointer}.board-color-options input{position:absolute;opacity:0;width:1px;height:1px}.board-color-options span{display:block;width:27px;height:27px;background:var(--swatch);border-radius:50%;border:3px solid #fff;outline:1px solid #ddd}.board-color-options input:checked+span,.board-color-options input:focus-visible+span{outline:2px solid #6550be}
.board-editor .moodboard-lesson>[data-shared-block]{width:620px;max-width:none;box-shadow:0 5px 22px #30223d12}.board-editor .board-item{width:300px;overflow:visible}
.board-editor .board-handle{font-size:12px;color:#8a7c98;background:transparent;border:0;border-bottom:1px solid #e9e2f2;border-radius:0;padding:4px 0 10px;margin-bottom:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.board-editor .board-selected{outline:2px solid #7954ca;outline-offset:3px}.board-resize{display:none;position:absolute;right:-9px;bottom:-9px;width:14px!important;height:14px!important;min-height:14px!important;min-width:14px!important;padding:0!important;background:#fff!important;border:2px solid #7954ca!important;border-radius:3px!important;cursor:ew-resize!important;touch-action:none;z-index:8}
.board-edit-mode .board-selected>.board-resize{display:block}.board-edit-mode .moodboard-lesson>[data-shared-block],.board-edit-mode .board-item{cursor:move}.board-editor .moodboard-lesson>[data-shared-block]:hover,.board-editor .board-item:hover{box-shadow:0 5px 22px #6550be25}.board-pan-mode .moodboard-viewport,.board-pan-mode .moodboard-viewport *{cursor:grab!important}
.board-editor-open .room-dock{left:calc(220px + (100vw - 490px)/2);bottom:72px;z-index:150;max-width:calc(100vw - 550px);overflow:auto;box-shadow:0 4px 24px #30223d20;padding:6px}.board-editor-open .room-tool-icon{min-width:34px;width:34px;height:34px;min-height:34px;padding:7px}.board-editor-open .room-follow-button{font-size:11px;white-space:nowrap;padding:7px;min-height:34px}.board-editor-open .dock-divider{margin:0 2px}.board-editor-open .room-dock [data-room-clear]{display:none}
.board-item.marker-purple{background:#eee7fa}.board-item.marker-coral{background:#fde8ec}.board-item.marker-green{background:#e5f3eb}.board-item.marker-blue{background:#e5eefb}.board-item.marker-amber{background:#fff7d8}.board-item.board-image{background:#fff}
.board-editor-open dialog{z-index:200}
@media(max-width:1200px){.board-editor{grid-template-columns:185px minmax(0,1fr) 230px}.board-editor-open .room-dock{left:calc(185px + (100vw - 415px)/2);max-width:calc(100vw - 455px);bottom:72px}.board-camera-controls{right:12px;bottom:12px}.board-tool-strip .hint{display:none}.board-editor-title .hint{display:none}}
@media(max-width:800px){.board-editor{grid-template-columns:150px minmax(0,1fr);grid-template-rows:62px minmax(0,1fr)}.board-properties{display:none}.board-editor-open .room-dock{left:calc(150px + (100vw - 150px)/2);max-width:calc(100vw - 175px)}.board-editor-header{padding:8px;gap:8px}.board-editor-title>strong{display:none}.board-editor-header button{font-size:11px}.board-camera-controls [data-board-home]{display:none}.board-layers .board-layer{font-size:11px}.board-layer-actions{padding:8px}.board-editor-title{gap:5px}}
@media(max-width:500px){.board-editor{grid-template-columns:1fr}.board-layers{display:none}.board-editor-center{grid-column:1}.board-editor-open .room-dock{left:50%;max-width:calc(100vw - 20px)}.board-editor-header [data-room-access]{max-width:140px;white-space:normal}.board-tool-strip{padding:8px}.board-tool-strip::after{content:'Заметки — в меню объекта';display:none}}
@media(max-width:500px){.board-mobile-add{display:flex;gap:8px;padding:8px;background:#fff;border-bottom:1px solid #e0dce7}.board-mobile-add button{font-size:12px}.board-camera-controls{right:8px;left:8px;justify-content:center}.board-editor-title [data-board-exit]{max-width:135px}}

/* Редактор занимает окно; холст, объекты и свойства прокручиваются независимо. */
html.board-editor-open,html.board-editor-open body{overflow:hidden}
.ui-icon{display:inline-block;flex-shrink:0;vertical-align:middle;pointer-events:none}.with-ui-icon{display:inline-flex;align-items:center;justify-content:center;gap:8px}.ui-button-label{pointer-events:none}.board-editor button .ui-icon{width:18px;height:18px}.board-editor button:focus-visible{outline:3px solid #9a7bd0;outline-offset:2px}
.board-tool-divider{height:22px;width:1px;background:#ded7e8;margin:0 5px;flex-shrink:0}.board-drawing-tools{display:flex;gap:4px}.board-panel-toggle{display:none}.board-editor-header [data-board-mode],.board-editor-header [data-board-work-mode]{display:inline-flex;align-items:center;gap:7px}.board-editor-header [aria-pressed=true]{background:#e7def6;color:#523681;border-color:#bca5df}
.board-editor .board-tool-strip{overflow-x:auto;gap:4px}.board-editor .board-tool-strip>button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.board-editor .board-tool-strip .hint{white-space:nowrap}
.board-editor-open .room-dock [data-room-tool="select"],.board-editor-open .room-dock [data-room-undo],.board-editor-open .room-dock [data-learning-redo],.board-editor-open .room-dock>.dock-divider{display:none}
.board-editor .board-handle{display:flex;align-items:center;gap:8px;color:#6a5b7b}.board-handle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.board-layer .ui-icon{color:#74658c}.board-layer.selected .ui-icon{color:#65409b}
.board-drawing{position:absolute;min-width:0;min-height:0;pointer-events:none}.board-drawing>svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}.drawing-ink{pointer-events:none}.drawing-hit{pointer-events:stroke;cursor:move}.board-drawing.board-selected{pointer-events:auto}.board-drawing.board-selected:before{content:'';position:absolute;inset:-8px;border:1px dashed #7954ca;pointer-events:none}.board-drawing .board-resize{pointer-events:auto}.board-readonly .board-resize{display:none!important}
.board-properties .danger{color:#a23946}.board-properties button[type=submit]{display:inline-flex;align-items:center;gap:7px}.board-properties .hint{line-height:1.65}
@media(max-width:1200px){.board-tool-strip .hint{display:none!important}}
@media(max-width:800px){.board-panel-toggle{display:inline-flex;align-items:center;justify-content:center}.board-properties{display:block;position:absolute;top:62px;right:0;bottom:0;width:min(310px,92vw);transform:translateX(110%);box-shadow:-10px 0 35px #30223d20;z-index:10}.board-properties-open .board-properties{transform:none}.board-editor-header .row{gap:4px}.board-editor-header [data-room-access]{max-width:120px}}
@media(max-width:500px){.board-editor{grid-template-rows:104px minmax(0,1fr)}.board-editor-header{flex-wrap:wrap;align-content:center}.board-editor-title{width:100%}.board-editor-header>.row{width:100%;justify-content:space-between}.board-editor-header [data-room-access]{max-width:115px}.board-properties{top:104px}.board-layers{display:flex;position:absolute;top:104px;left:0;bottom:0;width:225px;transform:translateX(-110%);z-index:10;box-shadow:10px 0 35px #30223d20}.board-layers-open .board-layers{transform:none}}

.board-readonly .board-handle{cursor:default}.board-edit-mode .board-readonly{cursor:default}.board-drawing .board-resize{cursor:nwse-resize!important}
