/* The editor deliberately inherits Foxiz/Elementor text, font and theme colors. */
.oc-editor-area{font:inherit!important;color:inherit!important;background:transparent!important}
.oc-editor-area p{margin:0 0 1em;min-height:1.4em}
.oc-editor-area p:last-child{margin-bottom:0}
.oc-editor-area blockquote{margin:1em 0;padding:.75em 1em;border-left:3px solid var(--oc-accent,#F76500);background:var(--oc-surface-2);border-radius:0 8px 8px 0}
.oc-editor-area ul,.oc-editor-area ol{padding-left:1.5em}
.oc-editor-area:focus{outline:none}
.oc-editor-area img{max-width:100%;height:auto}
/* 0.6.6 editor polish */
.oc-editor-toolbar{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:7px!important;padding:8px 12px!important;min-height:58px}
.oc-editor-group{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;padding-right:9px!important;margin-right:1px!important;border-right:1px solid var(--oc-border)!important}
.oc-editor-group:last-of-type{border-right:0!important}
.oc-editor-toolbar button{box-sizing:border-box!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:40px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid var(--oc-border)!important;border-radius:9px!important;background:var(--oc-surface)!important;color:var(--oc-text)!important;font:inherit!important;font-size:1rem!important;line-height:1!important;vertical-align:middle!important}
.oc-editor-toolbar button:hover{border-color:var(--oc-accent)!important;background:var(--oc-surface-2)!important;color:var(--oc-text)!important}
.oc-editor-toolbar button b,.oc-editor-toolbar button i{display:block!important;line-height:1!important;font-size:1rem!important}
.oc-editor-toolbar button[data-action="smileys"]{font-family:Arial,sans-serif!important;font-size:1.45rem!important;font-weight:400!important;line-height:40px!important}
.oc-editor-toolbar button[data-action="smileys"]::first-letter{font-family:Arial,sans-serif!important}
.oc-editor-toolbar button[data-action="image"]{font-size:1.15rem!important}
.oc-editor-toolbar .oc-editor-clear{margin-left:2px!important}
.oc-smiley-panel{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;padding:9px 12px;background:var(--oc-surface-2);border-bottom:1px solid var(--oc-border)}
.oc-smiley-panel[hidden]{display:none!important}
.oc-smiley-panel button{box-sizing:border-box;width:36px;height:36px;border:1px solid var(--oc-border);border-radius:8px;background:var(--oc-surface);font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:1.2rem;line-height:36px;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.oc-smiley-panel button:hover{border-color:var(--oc-accent);background:var(--oc-accent)}
.oc-editor-area{min-height:190px}
.oc-editor-area blockquote.oc-user-quote{position:relative;margin:12px 0;padding:12px 14px 12px 17px;border-left:4px solid var(--oc-accent);background:var(--oc-surface-2);border-radius:0 10px 10px 0}
.oc-editor-area blockquote.oc-user-quote>strong{display:block;color:var(--oc-accent)!important;margin-bottom:6px}
.oc-editor-area details.oc-spoiler{border:1px solid var(--oc-border);border-radius:10px;background:var(--oc-surface-2);padding:8px 12px;margin:12px 0}
.oc-editor-area details.oc-spoiler summary{cursor:pointer;font-weight:800;color:inherit}
@media(max-width:760px){.oc-editor-toolbar{justify-content:flex-start!important;gap:4px!important;padding:7px 8px!important;overflow-x:auto}.oc-editor-group{gap:4px!important;padding-right:6px!important}.oc-editor-toolbar button{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important}.oc-editor-toolbar button[data-action="smileys"]{font-size:1.3rem!important}.oc-smiley-panel{justify-content:flex-start}}

/* 0.6.7 final toolbar alignment */
.oc-editor-toolbar{justify-content:flex-start!important;align-items:center!important}
.oc-editor-toolbar button{width:var(--oc-editor-button-size,42px)!important;min-width:var(--oc-editor-button-size,42px)!important;height:var(--oc-editor-button-size,42px)!important;border-radius:8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:0!important;line-height:1!important}
.oc-editor-toolbar button>*{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
.oc-toolbar-smiley{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",Arial,sans-serif!important;font-size:1.28rem!important;width:1em;height:1em}

/* OctoCommunity 0.6.69 — editor button colors follow Light/Dark forum settings */
.oc-forum-wrap .oc-editor-toolbar button{
  background:var(--oc-editor-button-bg,var(--oc-surface))!important;
  color:var(--oc-editor-button-text,var(--oc-text))!important;
  border-color:var(--oc-editor-button-border,var(--oc-border))!important;
}
.oc-forum-wrap .oc-editor-toolbar button:hover{
  background:var(--oc-surface-2)!important;
  color:var(--oc-text)!important;
  border-color:var(--oc-accent)!important;
}

/* 0.7.34 — modern editor toolbar */
.oc-forum-wrap .oc-editor{border-radius:14px!important;box-shadow:0 1px 0 rgba(255,255,255,.025) inset;overflow:visible!important}
.oc-forum-wrap .oc-editor-toolbar{gap:10px!important;padding:10px 12px!important;min-height:56px!important;flex-wrap:wrap!important;border-radius:14px 14px 0 0}
.oc-forum-wrap .oc-editor-group{gap:6px!important;padding-right:10px!important;margin-right:0!important}
.oc-forum-wrap .oc-editor-toolbar button{flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;border-radius:8px!important;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease!important}
.oc-forum-wrap .oc-editor-toolbar button:hover,.oc-forum-wrap .oc-editor-toolbar button:focus-visible{border-color:var(--oc-accent)!important;color:var(--oc-accent)!important;transform:translateY(-1px);outline:none!important}
.oc-forum-wrap .oc-editor-toolbar button:active{transform:translateY(0)}
.oc-forum-wrap .oc-editor-toolbar button svg{width:18px!important;height:18px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important;pointer-events:none}
.oc-forum-wrap .oc-editor-toolbar button[data-cmd="bold"] svg path{stroke-width:2.3!important}
.oc-forum-wrap .oc-editor-toolbar button[data-action="smileys"]{font-size:1.22rem!important}
.oc-forum-wrap .oc-editor-toolbar .oc-editor-clear{margin-left:0!important}
.oc-forum-wrap .oc-editor-area{padding:20px 22px!important;min-height:210px!important;line-height:1.7!important;border-radius:0 0 14px 14px}
@media(max-width:760px){.oc-forum-wrap .oc-editor-toolbar{gap:6px!important;padding:8px!important;flex-wrap:nowrap!important;overflow-x:auto!important}.oc-forum-wrap .oc-editor-group{gap:5px!important;padding-right:7px!important}.oc-forum-wrap .oc-editor-toolbar button{flex-basis:36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}}

/* 0.7.42 modern quote editor */
.oc-editor-area blockquote.oc-user-quote{padding:14px 18px!important;border:0!important;border-left:4px dotted var(--oc-accent)!important;border-radius:0 12px 12px 0!important}
.oc-editor-area blockquote.oc-user-quote:before,.oc-editor-area blockquote.oc-user-quote:after{content:none!important;display:none!important}
.oc-editor-area blockquote.oc-user-quote>strong{margin-bottom:9px!important;color:var(--oc-muted)!important}
.oc-editor-area .oc-quote-source{color:var(--oc-accent)!important;text-decoration:none;font-weight:800}


/* 0.7.60 – pasted rich text follows OctoCommunity instead of foreign formatting */
.oc-editor-area,.oc-editor-area *{font-family:inherit;color:inherit;}
.oc-editor-area table{width:100%;border-collapse:collapse;margin:1em 0;font:inherit!important;color:inherit!important;background:transparent!important;}
.oc-editor-area th,.oc-editor-area td{padding:10px 12px;border:1px solid var(--oc-border);font:inherit!important;color:inherit!important;background:transparent!important;text-align:left;}
.oc-editor-area th{font-weight:800!important;background:var(--oc-surface-2)!important;}

/* 0.7.75 – normaler Schreibtext nach Bildern/Medien bleibt im Editor lesbar.
   Nur normale Editor-Bloecke werden auf die Systemfarbe zurueckgesetzt;
   Links, Zitate und bewusst formatierte Spezialelemente behalten ihre Darstellung. */
.oc-forum-wrap .oc-editor-area > p,
.oc-forum-wrap .oc-editor-area > div:not(.oc-user-quote):not(.oc-spoiler),
.oc-forum-wrap .oc-editor-area > p > span:not([style*="color"]),
.oc-forum-wrap .oc-editor-area > div:not(.oc-user-quote):not(.oc-spoiler) > span:not([style*="color"]){
    color:var(--oc-text)!important;
}
.oc-forum-wrap .oc-editor-area > img + p,
.oc-forum-wrap .oc-editor-area > img + div,
.oc-forum-wrap .oc-editor-area > figure + p,
.oc-forum-wrap .oc-editor-area > figure + div{
    color:var(--oc-text)!important;
}

/* 0.8.27 — iOS Safari: contenteditable must compute to >=16px to avoid focus auto-zoom. */
@media (max-width: 900px) {
  .oc-forum-wrap .oc-editor-area,
  .oc-forum-wrap .oc-editor-area[contenteditable="true"] {
    font-size: 16px !important;
  }
}

/* 0.8.53 — square editor shell inside forum composers */
.oc-forum-wrap .oc-composer .oc-editor,
.oc-forum-wrap .oc-composer .oc-editor-toolbar,
.oc-forum-wrap .oc-composer .oc-editor-area{border-radius:0!important}

/* 0.8.97 – @mention autocomplete */
.oc-editor .oc-mention-suggest{position:absolute;left:14px;bottom:14px;z-index:10020;width:min(360px,calc(100% - 28px));max-height:280px;overflow:auto;padding:6px;background:var(--oc-surface);border:1px solid var(--oc-border);box-shadow:0 14px 34px rgba(0,0,0,.22)}
.oc-editor .oc-mention-choice{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;height:auto!important;min-height:48px!important;padding:7px 9px!important;border:0!important;background:transparent!important;color:var(--oc-text)!important;text-align:left!important;cursor:pointer!important}
.oc-editor .oc-mention-choice:hover,.oc-editor .oc-mention-choice:focus{background:var(--oc-surface-2)!important;outline:none!important;transform:none!important}
.oc-editor .oc-mention-choice img{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:0 0 34px}.oc-editor .oc-mention-choice span,.oc-editor .oc-mention-choice strong,.oc-editor .oc-mention-choice small{display:block}.oc-editor .oc-mention-choice small{color:var(--oc-muted);margin-top:2px}
\n/* 0.9.26 – compact scrolling editor: toolbar remains available on long posts. */
.oc-editor{position:relative!important;overflow:visible!important}
.oc-editor-toolbar{position:sticky!important;top:var(--oc-editor-sticky-top,0px)!important;z-index:32!important;background:var(--oc-surface,#202328)!important;border-bottom:1px solid var(--oc-border)!important;box-shadow:0 4px 12px rgba(0,0,0,.08)}
body:not([data-theme="dark"]) .oc-editor-toolbar{background:var(--oc-surface,#fff)!important}
.oc-editor-toolbar button svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.oc-editor-toolbar button[data-cmd="bold"] svg path:first-child{fill:currentColor!important;stroke:none!important}
.oc-editor-area{box-sizing:border-box!important;min-height:260px!important;max-height:min(62vh,620px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
@media(max-width:760px){.oc-editor-area{min-height:220px!important;max-height:52vh!important}.oc-editor-toolbar{top:0!important}}
