/* Standalone workspace: deliberately no theme stylesheet or wp_head. */
:root{color-scheme:dark;--bg:#181818;--surface:#222;--raised:#2d2d2d;--canvas:#1d1d1d;--fg:#ececec;--muted:#aaa;--border:#3b3b3b;--accent:#a8c7fa;--grid:#393939;--shadow:0 6px 30px #0003;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}
:root[data-theme=light]{color-scheme:light;--bg:#f9f9f9;--surface:#fff;--raised:#f0f0f0;--canvas:#fafafa;--fg:#202020;--muted:#6b6b6b;--border:#dedede;--accent:#3d6da8;--grid:#ddd;--shadow:0 6px 30px #0000000d}
*{box-sizing:border-box}html,body,#mb-app{margin:0;width:100%;height:100%;overflow:hidden}body{background:var(--bg);color:var(--fg)}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:36px;min-height:36px;padding:8px 11px;border:1px solid transparent;border-radius:9px;background:transparent;line-height:1.25}button:hover,summary:hover{background:var(--raised)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.45;cursor:default}button svg,summary svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}input:not([type=checkbox]):not([type=color]),textarea,select{width:100%;min-width:0;padding:10px 12px;background:var(--bg);border:1px solid var(--border);border-radius:9px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--accent)}input[type=checkbox]{accent-color:var(--accent)}input[type=color]{width:30px;height:30px;padding:2px;border:1px solid var(--border);border-radius:7px;background:transparent;cursor:pointer}textarea{resize:vertical;line-height:1.6}h1,h2,p{margin:0}h1{font-size:27px;font-weight:550;letter-spacing:-.7px}h2{font-size:19px;font-weight:550}p{line-height:1.65;color:var(--muted)}small{color:var(--muted);font-size:12px;line-height:1.5}.mb-spacer{flex:1}.mb-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.mb-actions>button:last-child{background:var(--fg);color:var(--bg)}
.mb-dashboard{height:100%;display:grid;grid-template-columns:220px minmax(0,1fr)}.mb-sidebar{display:flex;flex-direction:column;gap:6px;padding:26px 14px 18px;border-right:1px solid var(--border);background:var(--surface)}.mb-brand{font-size:18px;font-weight:600;letter-spacing:2px;padding:0 12px 2px}.mb-sidebar>small{padding:0 12px 26px}.mb-sidebar>button{justify-content:flex-start}.mb-home{font-size:12px;padding:10px 12px;color:var(--muted)}.mb-dashboard-main{overflow:auto;padding:38px clamp(20px,4vw,64px)}.mb-dashboard-top{display:flex;align-items:center;gap:22px;margin-bottom:32px}.mb-dashboard-top input{max-width:340px;margin-left:auto}.mb-dashboard-top>button{background:var(--fg);color:var(--bg);white-space:nowrap}.mb-board-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:20px}.mb-board-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--surface);min-width:0}.mb-board-preview{display:block;width:100%;height:175px;border-radius:0;background:var(--canvas);padding:15px}.mb-board-preview svg{width:100%;height:100%}.mb-card-info{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:5px;padding:15px}.mb-card-info>strong{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mb-card-info>small{grid-row:2}.mb-card-info>button{grid-column:2;grid-row:1/3}.mb-empty{grid-column:1/-1;text-align:center;padding:90px 20px}.mb-empty p{margin:14px 0 24px}.mb-empty button{border-color:var(--border)}
.mb-editor{height:100%;position:relative;isolation:isolate}.mb-topbar{position:absolute;top:12px;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:20;pointer-events:none}.mb-titlebar,.mb-top-actions{pointer-events:auto;display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;padding:4px;min-width:0}.mb-titlebar{max-width:55vw}.mb-title{max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;text-align:left;font-weight:500}.mb-save{font-size:11px;color:var(--muted);padding:0 10px;white-space:nowrap}.mb-tools button.active{background:var(--raised);color:var(--accent);border-color:var(--border)}.mb-divider{height:23px;border-left:1px solid var(--border);margin:0 3px}.mb-stage{position:absolute;inset:0;background-color:var(--canvas);background-image:radial-gradient(var(--grid) .8px,transparent .8px);touch-action:none;overflow:hidden;outline:none}.mb-stage[data-tool=hand]{cursor:grab}.mb-stage[data-tool=hand]:active{cursor:grabbing}.mb-stage:not([data-tool=select]):not([data-tool=hand]){cursor:crosshair}#mb-canvas{width:100%;height:100%;display:block;user-select:none}.mb-object{cursor:default}.mb-object-text{white-space:pre-wrap;overflow:hidden;height:100%;word-break:break-word;line-height:1.35;font-family:Inter,system-ui,sans-serif;padding:0}.mb-object-frame .mb-object-text{font-size:15px!important;font-weight:550}.mb-object-file .mb-object-text{font-size:15px!important;display:flex;align-items:center}.mb-object-note>rect:first-child{filter:drop-shadow(0 3px 5px #0002)}[data-resize]{cursor:nwse-resize}#mb-peers{pointer-events:none}.mb-context{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:4px;align-items:center;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);z-index:15;max-width:calc(100% - 32px);flex-wrap:wrap;justify-content:center}.mb-context[hidden]{display:none}.mb-context select{width:65px;padding:7px;font-size:12px}.mb-zoom{position:absolute;bottom:24px;right:16px;display:flex;gap:2px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);z-index:16}.mb-zoom button{min-width:30px;padding:6px}.mb-scale{font-size:12px;width:55px}.mb-upload-list{position:absolute;left:16px;bottom:24px;display:grid;gap:8px;z-index:30;width:min(320px,calc(100% - 32px))}.mb-upload{padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:12px;display:grid;grid-template-columns:1fr 30px;gap:6px;box-shadow:var(--shadow)}.mb-upload>span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mb-upload>progress{width:100%;grid-column:1;height:5px;accent-color:var(--accent)}.mb-upload>small{grid-column:1}.mb-upload>button{grid-column:2;grid-row:1/4;padding:4px;min-width:28px}.mb-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10000;padding:13px 20px;border:1px solid var(--border);background:var(--surface);border-radius:12px;box-shadow:var(--shadow);max-width:min(600px,calc(100vw - 24px));font-size:13px;line-height:1.5}.mb-toast.error{border-color:#b77b7b}
.mb-dialog{color:var(--fg);background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:0;width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-shadow:0 20px 100px #0005;overflow:auto}.mb-dialog::backdrop{background:#0007;backdrop-filter:blur(3px)}.mb-dialog>header{position:sticky;top:0;background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid var(--border);z-index:1}.mb-dialog-body{padding:20px;display:flex;flex-direction:column;gap:16px}.mb-dialog-body>button{justify-content:flex-start;text-align:left}.mb-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mb-template{border:1px solid var(--border);padding:22px;display:flex;align-items:flex-start;flex-direction:column;gap:12px}.mb-template>svg{width:28px;height:28px}.mb-template strong{font-weight:500}.mb-template small{text-align:left}.mb-member-form{display:grid;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--border)}.mb-member-form label{display:flex;align-items:center;gap:8px;font-size:13px}.mb-member-row,.mb-file-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:10px 0;border-bottom:1px solid var(--border)}.mb-member-row>span,.mb-file-row>strong{font-size:13px;overflow-wrap:anywhere;font-weight:500}.mb-member-row>small,.mb-file-row>small{grid-column:1}.mb-member-row>button{grid-column:2;grid-row:1/3}.mb-file-row>button{font-size:12px}.mb-login{margin:15vh auto;padding:30px;width:min(450px,95%);text-align:center}.mb-login p{margin:20px 0}.mb-login a{display:inline-flex;border:1px solid var(--border);border-radius:9px;padding:10px 25px}
@media(min-width:1100px){.mb-context{bottom:24px;max-width:calc(100% - 440px)}}
@media(max-width:900px){.mb-save{display:none}.mb-titlebar{max-width:calc(100vw - 205px)}.mb-title{max-width:100%;font-size:13px}.mb-context{bottom:80px}.mb-dashboard-top{flex-wrap:wrap;gap:14px}.mb-dashboard-top input{order:3;max-width:none}.mb-dashboard-top>button{margin-left:auto}.mb-dashboard{grid-template-columns:180px minmax(0,1fr)}.mb-context button{padding:7px}.mb-context>button>span{display:none}}
@media(max-width:600px){.mb-dashboard{display:block}.mb-sidebar{height:58px;padding:8px 12px;border-right:0;border-bottom:1px solid var(--border);flex-direction:row;align-items:center;gap:2px}.mb-sidebar>.mb-brand{font-size:14px;padding:8px 4px;letter-spacing:1px}.mb-sidebar>small,.mb-sidebar>.mb-home,.mb-sidebar>.mb-spacer{display:none}.mb-sidebar>button{min-width:34px;padding:7px}.mb-sidebar>button>span{display:none}.mb-sidebar>button:last-of-type{margin-left:auto}.mb-dashboard-main{height:calc(100dvh - 58px);padding:24px 16px}.mb-dashboard-top{margin-bottom:22px}.mb-dashboard-top h1{font-size:25px}.mb-board-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.mb-topbar{left:8px;right:8px;top:8px;gap:6px}.mb-titlebar{max-width:calc(100vw - 172px)}.mb-top-actions{gap:0;padding:3px}.mb-top-actions button{min-width:32px;padding:6px}.mb-titlebar>button:first-child{min-width:28px;padding:5px}.mb-title{padding:6px;max-width:100%}.mb-context{bottom:78px;left:8px;right:8px;transform:none;max-width:none;justify-content:flex-start;gap:3px;padding:6px}.mb-context>button{min-width:32px;min-height:32px}.mb-zoom{bottom:max(12px,env(safe-area-inset-bottom));right:10px}.mb-upload-list{bottom:150px;left:10px}.mb-dialog-body{padding:16px}.mb-template-grid{gap:9px}.mb-template{padding:16px}.mb-template strong{font-size:13px}.mb-dialog>header{padding:12px 16px}.mb-toast{bottom:14px}}
@media(max-width:370px){.mb-titlebar{max-width:calc(100vw - 163px)}.mb-template-grid{grid-template-columns:1fr}}
.mb-ai-summary{white-space:pre-wrap}.mb-ai-items{display:grid;gap:10px;max-height:40vh;overflow:auto}.mb-ai-items article{padding:12px 14px;background:var(--bg);border:1px solid var(--border);border-radius:9px}.mb-ai-items article p{white-space:pre-wrap;color:var(--fg);font-size:13px}.mb-ai-billing{padding:10px 0}.mb-ai-billing p{font-size:13px}.mb-ai-billing small{display:block;margin-top:6px}.mb-ai-billing a{display:inline-block;font-size:12px;margin-top:10px;text-decoration:underline}.mb-invite-result{display:flex;flex-direction:column;gap:10px}.mb-login>a{margin:12px 5px}.mb-login>button{display:flex;margin:12px auto}
@media(max-width:600px){.mb-titlebar{max-width:calc(100vw - 196px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{html,body,#mb-app{height:auto;overflow:visible;background:white}.mb-topbar,.mb-tools,.mb-context,.mb-zoom,.mb-upload-list,.mb-toast{display:none!important}.mb-editor{height:95vh}.mb-stage{background:none;position:relative;height:95vh}#mb-canvas{height:95vh}#mb-peers,[data-resize]{display:none}}
.mb-sidebar>button.active{background:var(--raised)}
body.mb-workspace #um3d-live-toggle:not(.um3d-live-in-modal){left:16px!important;right:auto!important;background:var(--surface)!important;border-color:var(--border)!important;color:var(--fg)!important;box-shadow:var(--shadow)!important;font-weight:400!important}
body.mb-workspace #um3d-live-pencil{background:var(--surface)!important;border-color:var(--muted)!important;color:var(--fg)!important}
body.mb-workspace.um3d-live-on [data-um3d-live-key].um3d-live-hovered{outline-color:var(--muted)!important;background:var(--raised)!important}
@media(max-width:600px){body.mb-workspace #um3d-live-toggle:not(.um3d-live-in-modal){left:10px!important;bottom:14px!important;width:36px!important;min-height:36px!important;padding:8px!important}body.mb-workspace #um3d-live-toggle:not(.um3d-live-in-modal) span{display:none!important}}
@media print{#um3d-live-toggle,#um3d-live-pencil,#um3d-live-dialog{display:none!important}}
.mb-media-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:2}
.mb-media{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:auto;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:11px;overflow:hidden;background:var(--surface);color:var(--fg);box-shadow:0 3px 16px #0002;user-select:none}
.mb-media.selected{outline:2px solid var(--accent);outline-offset:1px}
.mb-media [hidden]{display:none!important}
.mb-media-title{flex:0 0 32px;padding:8px 11px;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;cursor:move;line-height:16px;background:var(--surface);border-bottom:1px solid var(--border)}
.mb-media-body{position:relative;flex:1;min-height:34px;background:#101010;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer}
.mb-media-body video{width:100%;height:100%;position:absolute;inset:0;object-fit:contain;background:#101010}
.mb-media-body audio{display:none}
.mb-media-body.is-audio{background:var(--raised)}
.mb-media-body.is-audio::before{content:'';position:absolute;width:160px;height:30px;opacity:.23;background:repeating-linear-gradient(90deg,var(--muted) 0 3px,transparent 3px 8px);border-radius:8px;clip-path:polygon(0 40%,10% 25%,20% 45%,30% 0,40% 30%,50% 10%,60% 40%,70% 20%,80% 35%,90% 0,100% 40%,100% 60%,90% 100%,80% 65%,70% 80%,60% 60%,50% 90%,40% 70%,30% 100%,20% 55%,10% 75%,0 60%)}
.mb-media-status{position:relative;display:block;padding:6px 10px;border-radius:7px;background:#0008;color:#eee;font-size:11px;line-height:1.5;max-width:90%;text-align:center}
.mb-media-controls{flex:0 0 auto;display:flex;flex-wrap:nowrap;gap:6px;align-items:center;padding:7px 8px;background:var(--surface);border-top:1px solid var(--border)}
.mb-media-controls button{width:28px;min-width:28px;min-height:26px;height:26px;padding:4px;border-radius:6px}
.mb-media-controls svg{width:16px;height:16px}
.mb-media-play{flex:none}.mb-media-seek{flex:1 1 0;min-width:24px!important}.mb-media-time{flex:none;white-space:nowrap;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.mb-media-mute{flex:none}.mb-media-volume{flex:0 1 70px;max-width:80px}.mb-media-speed{flex:0 0 50px}.mb-media-full{flex:none}
.mb-media-controls select{font-size:10px;min-height:23px;width:59px;padding:2px 5px;border-radius:5px;background:var(--raised)}
.mb-media-controls input[type=range]{width:100%;min-width:0;height:16px;padding:0;border:0;cursor:pointer;accent-color:var(--fg);background:transparent;appearance:none}
.mb-media-controls input[type=range]::-webkit-slider-runnable-track{height:3px;background:var(--border);border-radius:5px}
.mb-media-controls input[type=range]::-webkit-slider-thumb{appearance:none;margin-top:-3px;width:9px;height:9px;border-radius:50%;background:var(--fg)}
.mb-media-controls input[type=range]::-moz-range-track{height:3px;background:var(--border);border-radius:5px}
.mb-media-controls input[type=range]::-moz-range-thumb{width:9px;height:9px;border:0;border-radius:50%;background:var(--fg)}
.mb-media-resize{display:none;position:absolute;right:0;bottom:0;width:11px;height:11px;cursor:nwse-resize;border-right:3px solid var(--accent);border-bottom:3px solid var(--accent)}
.mb-media.can-resize .mb-media-resize{display:block}
.mb-media:fullscreen{position:fixed!important;inset:0!important;transform:none!important;width:100vw!important;height:100dvh!important;border:0;border-radius:0;outline:0}
@media print{.mb-media-controls,.mb-media-title,.mb-media-resize{display:none!important}}

.mb-object-menu{position:fixed;z-index:10000;min-width:220px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--fg);box-shadow:var(--shadow)}.mb-object-menu>button{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;border:0;background:transparent;color:inherit;text-align:left;font-size:13px;font-weight:400;padding:10px 12px;border-radius:7px;cursor:pointer}.mb-object-menu>button:hover,.mb-object-menu>button:focus-visible{background:var(--bg);outline:none}.mb-object-menu small{color:var(--muted);font-size:11px}



.mb-rich-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--bg);margin-bottom:12px}.mb-rich-toolbar button{min-width:32px;padding:7px 10px}.mb-rich-toolbar label{display:flex;align-items:center;gap:5px;font-size:11px}.mb-rich-toolbar input[type=color]{width:30px;height:30px;padding:2px}.mb-rich-toolbar input[type=url]{flex:1;min-width:140px}.mb-rich-toolbar select{max-width:100px}.mb-rich-editor{min-height:230px;max-height:50vh;overflow:auto;border:1px solid var(--border);border-radius:9px;padding:16px;background:var(--bg);outline:none;white-space:pre-wrap;overflow-wrap:anywhere}.mb-rich-editor:focus{border-color:var(--muted)}.mb-rich-editor p,.mb-object-text p{margin:0 0 .4em}.mb-object-text a,.mb-rich-editor a{color:#6aa9e9;text-decoration:underline}.mb-object-text ul,.mb-object-text ol{padding-left:1.4em;margin:.3em 0}.mb-mention-picker{display:flex;flex-direction:column;gap:3px;max-height:180px;overflow:auto}.mb-mention-picker:empty{display:none}.mb-mention-picker button{text-align:left}.mb-notification{display:flex!important;align-items:flex-start!important;flex-direction:column;gap:6px;text-align:left;margin:6px 0;width:100%;padding:12px!important}.mb-notification small{white-space:pre-wrap;color:var(--muted)}.mb-context input[type=number]{width:65px}.mb-object-comment{cursor:pointer}

.mb-rich-editor p,.mb-rich-editor div,.mb-rich-editor li,.mb-rich-editor blockquote{color:inherit}.mb-rich-toolbar select{max-width:160px;min-width:110px}.mb-rich-toolbar button[title="Полужирный"]{font-weight:700}.mb-rich-toolbar button[title="Курсив"]{font-style:italic}.mb-rich-toolbar button[title="Подчёркнутый"]{text-decoration:underline}.mb-rich-toolbar button[title="Зачёркнутый"]{text-decoration:line-through}.mb-notice-count{font-size:10px;padding:1px 4px;border-radius:8px;background:var(--fg);color:var(--bg)}

/* One creation rail and one anchored flyout. */
.mb-tools{position:absolute;display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow);left:12px;right:auto;top:50%;bottom:auto;transform:translateY(-50%);flex-direction:column;max-width:none;max-height:calc(100dvh - 140px);overflow-y:auto;overflow-x:hidden;padding:6px;gap:3px;z-index:25}.mb-tools>button{width:36px;min-width:36px;height:36px}.mb-tools .mb-divider{display:block;width:24px;height:1px;min-height:1px;margin:5px auto;border:0;background:var(--border)}.mb-flyout{position:absolute;left:72px;top:80px;z-index:26;width:310px;max-width:calc(100vw - 88px);max-height:calc(100dvh - 110px);display:flex;flex-direction:column;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--fg);box-shadow:var(--shadow);overflow:hidden}.mb-flyout>header{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--border)}.mb-flyout>header strong{font-size:13px;font-weight:500}.mb-flyout-body{padding:12px;overflow:auto;display:flex;flex-direction:column;gap:9px}.mb-flyout-body h3{font-size:12px;font-weight:500;margin:10px 0 3px}.mb-flyout-body p,.mb-flyout-body label,.mb-flyout-body output{font-size:12px;color:var(--muted);line-height:1.5}.mb-flyout-body button{border-radius:7px;padding:8px;font-size:12px;text-align:left}.mb-flyout-body button:hover,.mb-flyout-body button.active{background:var(--bg)}.mb-flyout-body button svg{width:24px;height:24px}.mb-shape-grid,.mb-frame-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.mb-shape-grid button,.mb-frame-presets button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:74px}.mb-frame-presets small{font-size:10px;color:var(--muted)}.mb-panel-tabs{display:flex;gap:4px;flex-wrap:wrap}.mb-frame-row{display:flex;gap:3px;align-items:center}.mb-frame-row>button:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.mb-frame-row>button:not(:first-child){min-width:28px}.mb-frame-list{display:flex;flex-direction:column;gap:4px}.mb-emoji-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.mb-emoji-grid button{font-size:24px;text-align:center}.mb-presenting .mb-topbar,.mb-presenting .mb-tools,.mb-presenting .mb-context,.mb-presenting .mb-zoom,.mb-presenting .mb-upload-list{display:none!important}.mb-presenting .mb-object-frame .mb-object-text{display:none}.mb-present-controls{position:absolute;z-index:40;bottom:14px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.mb-present-controls button,.mb-present-controls select{font-size:12px;padding:7px;max-width:180px}.mb-present-controls>span{font-size:12px;white-space:nowrap}.mb-presentation-join{position:absolute;z-index:35;top:76px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:var(--shadow);font-size:12px}.mb-presentation-join>span{overflow-wrap:anywhere}.mb-presenting .mb-stage{touch-action:none}.mb-stage[data-tool=eraser]{cursor:crosshair}.mb-stage[data-tool=draw]{cursor:crosshair}
@media(max-width:600px){.mb-tools{top:auto;bottom:12px;left:8px;right:8px;transform:none;flex-direction:row;max-width:calc(100vw - 16px);max-height:52px;overflow-x:auto;overflow-y:hidden;width:max-content;margin:auto;gap:1px;padding:4px}.mb-tools>button{width:30px;min-width:30px;height:34px}.mb-tools .mb-divider{width:1px;min-width:1px;height:20px;margin:auto 3px}.mb-flyout{left:8px;right:8px;top:auto;bottom:66px;width:auto;max-width:none;max-height:calc(100dvh - 150px)}.mb-context{bottom:118px}.mb-zoom{bottom:68px}.mb-top-actions>button[title="Файлы"],.mb-top-actions>button[title="Обсуждения"]{display:none}.mb-presentation-join{top:64px;flex-wrap:wrap}.mb-present-controls{width:calc(100% - 24px)}.mb-present-controls select{max-width:135px}}

.mb-object-text p,.mb-object-text div,.mb-object-text li,.mb-object-text blockquote{color:inherit}

.mb-present-controls{width:max-content}.mb-flyout-body button:disabled:hover{background:transparent}@media(max-width:600px){.mb-present-controls{width:calc(100% - 24px)}}

@media(max-width:600px){.mb-titlebar{max-width:none;flex:1}.mb-top-actions{flex-shrink:0}.mb-title{min-width:0;flex:1}.mb-tools{scrollbar-width:none}.mb-tools::-webkit-scrollbar{display:none}}

.mb-diagram-text{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.mb-diagram-text>*{max-width:100%;width:100%}

.mb-flyout-body{min-width:0;overflow-x:hidden}.mb-pen-panel{gap:16px;padding:16px}.mb-pen-panel .mb-panel-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:3px;border:1px solid var(--border);border-radius:9px}.mb-pen-panel .mb-panel-tabs button{min-width:0;padding:8px 4px;justify-content:center;text-align:center}.mb-pen-palette{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.mb-pen-palette .mb-color-swatch{display:block;position:relative;justify-self:center;width:30px;height:30px;min-width:30px;min-height:30px;padding:0;border:1px solid #8885;border-radius:50%;background:var(--swatch)}.mb-pen-palette .mb-color-swatch:hover{background:var(--swatch);transform:scale(1.07)}.mb-pen-palette .mb-color-swatch.active{background:var(--swatch);outline:2px solid var(--fg);outline-offset:3px}.mb-pen-custom{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center}.mb-pen-custom input[type=color]{width:38px;height:38px}.mb-pen-custom input[type=text]{width:100%;min-width:0;height:38px;font-family:ui-monospace,monospace;font-size:12px}.mb-pen-width-heading{display:grid;grid-template-columns:minmax(0,1fr) 60px auto;align-items:center;gap:8px;font-size:12px}.mb-pen-width-heading input[type=number]{min-width:0;width:60px;height:34px;padding:6px;font-size:12px;text-align:center}.mb-pen-panel input.mb-pen-width[type=range]{appearance:none;display:block;width:100%;min-width:0;height:20px;margin:0;padding:0;background:transparent;border:0;border-radius:0;accent-color:var(--fg)}.mb-pen-width::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:var(--border)}.mb-pen-width::-webkit-slider-thumb{appearance:none;width:14px;height:14px;margin-top:-5px;border:2px solid var(--surface);border-radius:50%;background:var(--fg);box-shadow:0 0 0 1px var(--border)}.mb-pen-width::-moz-range-track{height:4px;border-radius:4px;background:var(--border)}.mb-pen-width::-moz-range-thumb{width:12px;height:12px;border:2px solid var(--surface);border-radius:50%;background:var(--fg)}.mb-pen-preview{height:56px;min-width:0;display:flex;align-items:center;justify-content:center;background:var(--bg);border:1px solid var(--border);border-radius:9px;overflow:hidden}.mb-pen-preview span{display:block;width:72%;height:var(--pen-width);max-height:40px;border-radius:30px;background:var(--pen-color);opacity:var(--pen-opacity)}

.mb-thread-dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:hidden}.mb-thread-body{padding:0;display:flex;flex-direction:column;max-height:calc(100dvh - 112px);min-height:0;overflow:hidden}.mb-thread-summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 24px;border-bottom:1px solid var(--border);color:var(--muted);font-size:12px}.mb-thread-status{padding:3px 8px;border:1px solid var(--border);border-radius:20px;color:var(--fg);font-size:11px}.mb-thread-status.is-resolved{background:var(--bg)}.mb-thread-attached{margin-left:auto;font-size:11px}.mb-thread-timeline{padding:8px 24px;overflow-y:auto;min-height:100px;max-height:48dvh}.mb-thread-message{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:18px 0;border-bottom:1px solid var(--border)}.mb-thread-message:last-child{border-bottom:0}.mb-thread-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--raised);font-size:13px;font-weight:500}.mb-thread-avatar img{display:block;float:none;width:34px;height:34px;margin:0;border-radius:50%;object-fit:cover}.mb-thread-content{min-width:0}.mb-thread-author{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:25px}.mb-thread-author strong{font-size:13px;font-weight:550}.mb-thread-author small{font-size:10px}.mb-thread-author .mb-thread-edit{margin-left:auto;padding:2px 6px;min-height:24px;font-size:11px;color:var(--muted)}.mb-thread-content>p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--fg);font-size:14px;line-height:1.6;margin:7px 0 0}.mb-thread-footer{flex-shrink:0;padding:16px 24px;border-top:1px solid var(--border);background:var(--surface)}.mb-thread-composer{padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--bg)}.mb-thread-composer textarea{display:block;width:100%;min-height:72px;max-height:160px;border:0;background:transparent;padding:5px 2px;resize:none;font-size:13px}.mb-thread-composer-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}.mb-thread-composer-actions small{font-size:11px}.mb-thread-composer .mb-thread-send{padding:8px 16px;min-height:34px;background:var(--fg);color:var(--bg);font-size:12px;border-radius:8px}.mb-thread-resolve{margin-top:10px;font-size:11px;min-height:28px;padding:3px 0;color:var(--muted)}.mb-thread-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.mb-files-dialog{width:min(1240px,calc(100vw - 32px))}.mb-files-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.mb-files-toolbar input{max-width:340px;margin-left:auto}.mb-files-usage{font-size:12px;margin:16px 0}.mb-files-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.mb-file-card{min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);overflow:hidden;display:flex;flex-direction:column}.mb-file-thumb{position:relative;aspect-ratio:16/10;display:grid;place-items:center;background:var(--bg);overflow:hidden}.mb-file-thumb>img:not(.mb-file-format-icon),.mb-file-thumb>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}.mb-file-thumb>img.mb-file-format-icon{width:60px;height:60px;object-fit:contain}.mb-file-thumb.is-fallback video{display:none}.mb-file-symbol{font-size:32px;color:var(--muted)}.mb-file-format{position:absolute;right:9px;bottom:9px;z-index:2;padding:3px 6px;border-radius:5px;background:#222b;color:#fff;font-size:10px}.mb-file-details{padding:14px 14px 8px;min-width:0}.mb-file-details strong{display:block;overflow-wrap:anywhere;font-size:12px;font-weight:500;line-height:1.5}.mb-file-details small{display:block;font-size:11px;margin-top:6px}.mb-file-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;padding:8px 12px 12px;margin-top:auto}.mb-file-actions>button{font-size:11px;min-height:32px;min-width:32px;padding:6px 8px;border:1px solid var(--border)}.mb-files-pages{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:20px;font-size:12px}.mb-files-empty{grid-column:1/-1;padding:40px 0;text-align:center}.mb-file-object{height:100%;display:flex;flex-direction:column;justify-content:center;gap:8px}.mb-file-object strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.mb-file-object small{font-size:11px;color:inherit;opacity:.7}.mb-object-comment{cursor:grab}.mb-stage:active .mb-object-comment{cursor:grabbing}
@media(max-width:600px){.mb-thread-dialog,.mb-files-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.mb-thread-body{max-height:calc(100dvh - 88px)}.mb-thread-summary{padding:12px 16px;gap:8px}.mb-thread-attached{margin-left:0}.mb-thread-timeline{padding:4px 16px;max-height:45dvh}.mb-thread-message{gap:10px;padding:14px 0}.mb-thread-author{gap:6px}.mb-thread-author small{display:none}.mb-thread-footer{padding:12px 16px}.mb-thread-composer-actions small{font-size:10px}.mb-files-toolbar input{max-width:none;margin:0}.mb-files-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}

@media(max-width:1200px){.mb-files-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1000px){.mb-files-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.mb-files-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.mb-files-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){.mb-files-grid{grid-template-columns:minmax(0,1fr)}}

/* Direct authoring on the canvas, with a single shared formatting toolbar. */
.mb-inline-editor{position:fixed;inset:0;margin:auto;z-index:55;box-sizing:border-box;width:min(860px,calc(100vw - 32px));height:min(580px,calc(100dvh - 40px));min-width:min(420px,calc(100vw - 32px));min-height:min(360px,calc(100dvh - 40px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--fg);box-shadow:0 24px 90px #0005;overflow:hidden;resize:both}.mb-inline-editor[open]{display:flex;flex-direction:column}.mb-inline-editor::backdrop{background:#0005;backdrop-filter:blur(2px)}.mb-inline-header{display:flex;align-items:center;justify-content:space-between;flex:none;gap:16px;padding:12px 16px;border-bottom:1px solid var(--border)}.mb-inline-header strong{font-size:14px;font-weight:550}.mb-inline-header button{min-width:32px;min-height:32px;padding:6px;display:grid;place-items:center;border-radius:7px}.mb-inline-header button:hover{background:var(--raised)}.mb-inline-header svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.5}.mb-inline-body{display:flex;flex-direction:column;min-width:0;min-height:0;flex:1;overflow:hidden}.mb-inline-editor .mb-rich-toolbar{flex:none;padding:10px 12px;border-bottom:1px solid var(--border);display:flex;align-items:center;flex-wrap:wrap;gap:6px;max-height:40%;overflow:auto;min-height:48px}.mb-inline-editor .mb-rich-toolbar button{min-width:30px;min-height:30px;padding:5px 7px;font-size:12px}.mb-inline-editor .mb-rich-toolbar select{width:auto;max-width:170px;padding:6px;font-size:12px}.mb-inline-editor .mb-rich-toolbar label{font-size:11px;display:flex;align-items:center;gap:5px}.mb-inline-editor .mb-rich-toolbar input[type=color]{width:28px;height:28px;padding:2px}.mb-inline-editor .mb-rich-toolbar input[type=url]{width:190px;flex:1;min-width:110px;padding:6px;font-size:12px}.mb-inline-editor .mb-rich-editor{flex:1;margin:0;border:0;border-radius:0;min-height:70px;max-height:none;overflow:auto;padding:20px;outline:none;user-select:text}.mb-inline-actions{display:flex;flex:none;justify-content:flex-end;gap:8px;padding:10px 26px 10px 12px;border-top:1px solid var(--border)}.mb-inline-actions button{font-size:12px;padding:7px 14px}.mb-inline-actions button:last-child{background:var(--fg);color:var(--bg)}.mb-editor-resize-grip{position:absolute;right:3px;bottom:3px;width:13px;height:13px;pointer-events:none;opacity:.6;background:repeating-linear-gradient(135deg,transparent 0 3px,var(--muted) 3px 4px,transparent 4px 6px);clip-path:polygon(100% 0,100% 100%,0 100%)}
@media(max-width:600px){.mb-inline-editor{width:calc(100vw - 20px);height:calc(100dvh - 32px);min-width:calc(100vw - 24px);min-height:min(340px,calc(100dvh - 24px));max-width:calc(100vw - 12px);max-height:calc(100dvh - 16px)}.mb-inline-header{padding:10px 12px}.mb-inline-editor .mb-rich-toolbar{padding:8px;gap:4px;max-height:40%}.mb-inline-editor .mb-rich-editor{padding:16px}}
.mb-column-title{height:34px;line-height:32px;font-size:16px;font-weight:550;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;cursor:text;color:var(--fg)}.mb-column-title input{width:100%;height:32px;padding:3px 5px;font:inherit;border:1px solid var(--accent);border-radius:4px;background:var(--surface);color:var(--fg)}.mb-column-controls{display:flex;align-items:center;gap:2px;height:36px}.mb-column-controls button{padding:6px;min-width:32px;min-height:32px;border-radius:6px;color:var(--fg);display:inline-flex;align-items:center;justify-content:center;font-size:12px}.mb-column-controls button:hover{background:var(--raised)}.mb-column-controls svg{width:18px;height:18px}.mb-column-add-card button{justify-content:flex-start;width:100%;gap:6px;color:var(--muted)}
.mb-files-upload-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:10px}.mb-files-upload-list:empty{display:none}.mb-files-upload-list .mb-upload{box-shadow:none;background:var(--bg);grid-template-columns:minmax(0,1fr) 30px}.mb-files-upload-list .mb-upload>span{min-width:0}.mb-files-upload-list .mb-upload small{font-variant-numeric:tabular-nums}.mb-files-upload-list progress{accent-color:var(--muted)}

.mb-sticky-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:4px}.mb-sticky-palette button{aspect-ratio:1;min-height:45px;border-radius:3px;border:1px solid #0002;box-shadow:0 3px 6px #0002}.mb-sticky-palette button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:3px}

.mb-object-file .mb-object-text.mb-file-object{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:4px}.mb-file-object>img{display:block;flex:none;width:48px;height:48px;object-fit:contain}.mb-file-object>svg{flex:none;width:44px;height:44px;stroke:currentColor;fill:none;stroke-width:1.4;opacity:.75}.mb-file-object>strong{max-width:100%;font-size:13px;font-weight:500;line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

.mb-media-dialog{width:min(960px,calc(100vw - 32px));height:min(640px,calc(100dvh - 40px))}.mb-media-dialog .mb-inline-header>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.mb-viewer-actions{display:flex;align-items:center;gap:6px;flex:none}.mb-viewer-body{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--bg)}.mb-viewer-image{display:block;width:100%;height:100%;object-fit:contain;min-height:0}.mb-viewer-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;padding:20px;text-align:center;pointer-events:none}.mb-viewer-body>.mb-media{position:relative!important;transform:none!important;width:100%!important;height:100%!important;border:0;border-radius:0;box-shadow:none;max-width:none}.mb-viewer-body .mb-media-title,.mb-viewer-body .mb-media-resize{display:none}.mb-viewer-body .mb-media-body{flex:1;min-height:0}.mb-viewer-body .mb-media-body video{object-fit:contain}.mb-viewer-body .mb-media-controls{flex:none;padding:12px 24px 14px 12px}.mb-viewer-body .mb-media-volume{width:80px}
@media(max-width:600px){.mb-media-dialog{width:calc(100vw - 20px);height:calc(100dvh - 32px)}.mb-viewer-body .mb-media-controls{padding:8px 20px 10px 8px;gap:5px}.mb-viewer-body .mb-media-volume{display:none}}

.mb-media{container-type:inline-size}.mb-media-controls>button{flex-shrink:0}.mb-media-controls .mb-media-volume{width:70px}.mb-media-controls .mb-media-speed{width:50px}
@container(max-width:440px){.mb-media-controls{gap:3px!important;padding:7px 14px 7px 6px!important}.mb-media-controls .mb-media-volume{display:none}.mb-media-controls button{width:24px;min-width:24px;padding:3px}.mb-media-controls .mb-media-speed{flex-basis:44px;width:44px;padding:2px 3px}.mb-media-controls .mb-media-time{font-size:9px}.mb-media-controls .mb-media-seek{min-width:16px!important}}

.mb-viewer-name{display:flex;align-items:center;gap:6px;min-width:0;flex:1}.mb-viewer-name>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:550}.mb-viewer-name>button{flex:none;min-width:28px;width:28px;height:28px;min-height:28px;padding:6px;color:var(--muted)}.mb-viewer-name>button:hover{color:var(--fg)}.mb-viewer-name>button svg{width:15px;height:15px}.mb-viewer-rename{display:flex;align-items:center;gap:5px;width:100%;min-width:0}.mb-viewer-rename input{min-width:0;flex:1;padding:6px 8px;font-size:13px}.mb-filename-extension{font-size:12px;color:var(--muted);white-space:nowrap}.mb-viewer-rename button{flex:none;min-width:28px;width:28px;height:28px;min-height:28px;padding:5px}

.mb-media-download{flex:none}.mb-media-controls .mb-media-download[hidden]{display:none}

.mb-notification-list{display:flex;flex-direction:column;gap:8px;min-width:0}.mb-notification-list .mb-notification{border:1px solid var(--border);border-radius:12px;margin:0;padding:16px!important;overflow-wrap:anywhere;white-space:normal}.mb-notification-list .mb-empty{width:100%}
