.mb-editor-source { display:none !important; }

.mb-room-post-starter {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin:0 0 10px;
    padding:11px 12px;
    border:1px solid #d7dfeb;
    border-left:3px solid #2f6cf6;
    background:#f8fbff;
    color:#172033;
    font-size:13px;
}
.mb-room-post-starter > span { color:#687386; }
.mb-room-post-starter-actions { display:flex; gap:6px; margin-left:auto; }
.mb-room-post-starter-button {
    height:30px;
    padding:0 10px;
    border:1px solid #cbd5e1;
    border-radius:3px;
    background:#fff;
    color:#172033;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}
.mb-room-post-starter-button:hover,
.mb-room-post-starter-button:focus { border-color:#2f6cf6; color:#245bd1; }

.mb-rich-editor {
    position:relative;
    overflow:hidden;
    border:1px solid #cfd6e1;
    border-radius:4px;
    background:#fff;
}

.mb-editor-toolbar {
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
    padding:9px 10px;
    border-bottom:1px solid #dce2ea;
    background:#f7f8fb;
}
.mb-editor-group {
    display:flex;
    align-items:center;
    gap:4px;
    min-height:36px;
    padding-right:7px;
    border-right:1px solid #d8dee8;
}
.mb-editor-group:last-child { padding-right:0; border-right:0; }

.mb-editor-button,
.mb-editor-size,
.mb-editor-font,
.mb-editor-heading {
    height:36px;
    min-width:36px;
    padding:0 9px;
    border:1px solid #cbd4e0;
    border-radius:3px;
    background:#fff;
    color:#172033;
    font-size:13px;
    line-height:34px;
    cursor:pointer;
}
.mb-editor-button:hover,
.mb-editor-button:focus,
.mb-editor-size:focus,
.mb-editor-font:focus,
.mb-editor-heading:focus { border-color:#2f6cf6; color:#245bd1; outline:0; }
.mb-editor-button:active { background:#edf3ff; }
.mb-editor-text-button { width:36px; padding:0; }
.mb-editor-text-button.is-bold { font-size:16px; font-weight:700; }
.mb-editor-text-button.is-italic { font-size:16px; font-style:italic; }
.mb-editor-text-button.is-underline { font-size:16px; text-decoration:underline; }
.mb-editor-text-button.is-strikethrough { font-size:16px; text-decoration:line-through; }
.mb-editor-icon-button { width:36px; padding:0; }
.mb-editor-icon-button i { font-size:14px; }
.mb-editor-size { width:104px; line-height:normal; }
.mb-editor-font { width:102px; line-height:normal; }
.mb-editor-heading { width:112px; line-height:normal; }
.mb-editor-color { width:36px; height:36px; padding:4px; border:1px solid #cbd4e0; border-radius:3px; background:#fff; cursor:pointer; }
.mb-editor-image-input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }

.mb-editor-canvas {
    min-height:340px;
    padding:17px;
    color:#1b2433;
    font-size:16px;
    line-height:1.75;
    outline:0;
    overflow-wrap:anywhere;
}
.mb-editor-canvas:empty:before { content:attr(data-placeholder); color:#98a1af; pointer-events:none; }
.mb-editor-canvas h2 { margin:1.35em 0 .55em; font-size:1.55em; line-height:1.3; }
.mb-editor-canvas h3 { margin:1.25em 0 .5em; font-size:1.28em; line-height:1.35; }
.mb-editor-canvas h4 { margin:1.2em 0 .45em; font-size:1.1em; line-height:1.4; }
.mb-editor-canvas blockquote { margin:1em 0; padding:.15em 0 .15em 1em; border-left:3px solid #2f6cf6; color:#526074; }
.mb-editor-canvas img { max-width:100%; height:auto; margin:8px 0; cursor:pointer; }
.mb-editor-canvas img.mb-editor-image-selected { outline:2px solid #2f6cf6; outline-offset:2px; }
.mb-editor-canvas a { color:#2467db; text-decoration:underline; }
.mb-editor-video-wrap { position:relative; width:100%; max-width:920px; aspect-ratio:16 / 9; margin:16px 0; background:#0f172a; }
.mb-editor-video-frame { display:block; width:100%; height:100%; border:0; }
.mb-editor-status { display:none; padding:7px 12px; border-top:1px solid #dce2ea; background:#f7f9fc; color:#687386; font-size:13px; }
.mb-editor-status.is-visible { display:block; }
.mb-editor-image-tools { display:none; position:absolute; z-index:4; gap:4px; padding:5px; border:1px solid #cbd5e1; border-radius:4px; background:#172033; box-shadow:0 4px 14px rgba(15, 23, 42, .22); }
.mb-editor-image-tools.is-visible { display:flex; }
.mb-editor-image-button { height:28px; padding:0 7px; border:0; border-radius:2px; background:#fff; color:#172033; font-size:12px; cursor:pointer; }
.mb-editor-image-button:hover, .mb-editor-image-button:focus { background:#dbeafe; }
.mb-editor-image-button.is-delete { background:#fee2e2; color:#b42318; }
.mb-editor-image-resize { display:none; position:absolute; z-index:5; width:16px; height:16px; padding:0; border:2px solid #fff; border-radius:2px; background:#2f6cf6; box-shadow:0 1px 4px rgba(15, 23, 42, .3); cursor:nwse-resize; touch-action:none; }
.mb-editor-image-resize.is-visible { display:block; }

.mb-editor-title-count {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:62px;
    height:42px;
    margin-left:8px;
    color:#7b8798;
    font-size:12px;
    font-variant-numeric:tabular-nums;
    vertical-align:middle;
}
.mb-editor-title-count.is-near-limit { color:#c2410c; font-weight:700; }

@media (max-width: 768px) {
    .mb-room-post-starter { align-items:flex-start; padding:10px; }
    .mb-room-post-starter > span { width:100%; }
    .mb-room-post-starter-actions { width:100%; margin-left:0; }
    .mb-room-post-starter-button { flex:1 1 0; padding:0 6px; }
    .mb-editor-toolbar { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:6px; padding:8px; }
    .mb-editor-group { display:contents; }
    .mb-editor-button,
    .mb-editor-size,
    .mb-editor-font,
    .mb-editor-heading,
    .mb-editor-color { width:100%; min-width:0; height:38px; margin:0; }
    .mb-editor-font,
    .mb-editor-size,
    .mb-editor-heading { grid-column:span 2; padding:0 6px; font-size:12px; }
    .mb-editor-canvas { min-height:300px; padding:14px; font-size:16px; }
    .mb-editor-image-tools { max-width:calc(100% - 16px); overflow-x:auto; }
    .mb-editor-image-button { flex:0 0 auto; }
    .mb-editor-title-input-wrap { position:relative; }
    .mb-editor-title-input-wrap input[name=wr_subject] { padding-right:72px; }
    .mb-editor-title-count { position:absolute; top:50%; right:9px; height:38px; min-width:58px; margin:0; transform:translateY(-50%); pointer-events:none; }
}
