/* SAERO ENGINE native V7 board editor. All styles scoped to this composer. */
.write-post .se-rich-source[hidden],.post-controls .se-rich-source[hidden]{display:none!important}
.se-rich-editor{min-height:235px;padding:17px 18px;border:1px solid #d6e0ec;border-radius:12px;background:#fff;color:#20252d;font-size:14px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap;outline:none;box-shadow:inset 0 2px 7px #20252d08}
.se-rich-editor:focus{border-color:#f16a42;box-shadow:0 0 0 3px #f16a4220}
.se-rich-editor:empty:before,.se-rich-editor:has(>div:only-child:empty):before{content:attr(data-placeholder);color:#94a3b8;pointer-events:none}
.se-rich-editor>div,.se-rich-editor>blockquote{min-height:1.65em}
.se-rich-editor blockquote,.se-rich-rendered blockquote{border-left:3px solid #f16a42;padding:9px 14px;margin:10px 0;background:#f16a4210}
.se-rich-editor .se-rich-media,.se-rich-rendered .se-rich-media{display:block;margin:14px 0;padding:10px;border:1px solid #d6e0ec;border-radius:12px;background:#f6f8fc;max-width:100%;min-height:90px;overflow:hidden}
.se-rich-editor .se-rich-media img,.se-rich-rendered .se-rich-media img{display:block;max-width:100%;max-height:450px;width:auto;height:auto;object-fit:contain;border-radius:8px;margin:auto}
.se-rich-editor .se-rich-media iframe,.se-rich-rendered .se-rich-media iframe{display:block;width:min(100%,700px);aspect-ratio:16/9;border:0;border-radius:9px}
.se-rich-media .se-rich-play{border:1px solid #f16a42;background:#fff5f1;color:#c34d2d;border-radius:8px;padding:11px 16px;font-size:13px;font-weight:700;cursor:pointer}
.se-title-row{display:flex;align-items:stretch;gap:8px;position:relative}
.se-title-row input{flex:1;min-width:0}
.se-title-row .se-title-emoji{flex:none;border:1px solid #d6e0ec;border-radius:10px;padding:8px 12px;background:#f6f8fc;color:#20252d;cursor:pointer;font-size:12px}
.se-title-row .se-title-emoji:hover{border-color:#f16a42}
.board-editor-toolbar{position:relative}
.board-editor-toolbar .se-editor-colors{display:flex;gap:5px;align-items:center;flex-wrap:wrap;max-width:100%;margin:0}
.se-editor-colors>span{font-size:11px;color:#64748b;margin-right:3px}
.board-editor-toolbar .se-color-dot{width:24px!important;height:24px!important;min-height:0!important;padding:0!important;border:2px solid #fff!important;border-radius:50%!important;background:var(--swatch)!important;box-shadow:0 0 0 1px #bdc5d0!important;cursor:pointer}
.board-editor-toolbar .se-color-dot:hover,.board-editor-toolbar .se-color-dot:focus-visible{box-shadow:0 0 0 2px #f16a42!important}
.se-color-direct{font-size:11px;color:#64748b;align-self:center}
.se-emoji-popup{position:absolute;top:calc(100% + 7px);right:0;width:min(430px,calc(100vw - 34px));max-height:515px;display:flex;flex-direction:column;padding:12px;background:#fff;color:#20252d;border:1px solid #d6e0ec;border-radius:14px;box-shadow:0 20px 46px #0003;z-index:90;font-family:inherit}
.se-title-row>.se-emoji-popup{top:calc(100% + 7px)}
.se-emoji-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.se-emoji-head strong{font-size:14px}
.se-emoji-head button{border:0;background:transparent;font-size:22px;cursor:pointer;color:inherit}
.se-emoji-popup input[type=search]{width:100%!important;margin:8px 0;padding:10px!important;font-size:12px!important;border:1px solid #d6e0ec!important;border-radius:8px!important;background:#f6f8fc!important;color:#20252d!important}
.se-emoji-tabs{display:flex;gap:5px;overflow-x:auto;padding:6px 0 9px;scrollbar-width:none}
.se-emoji-tabs button{flex:none!important;min-height:30px!important;padding:4px 9px!important;border:1px solid #d6e0ec!important;border-radius:20px!important;color:#475569!important;background:#f8fafc!important;font-size:11px!important}
.se-emoji-tabs button[aria-pressed=true]{background:#f16a42!important;color:white!important;border-color:#f16a42!important}
.se-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;max-height:312px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain;padding:7px 3px}
.se-emoji-grid button{display:grid;place-items:center;min-height:36px!important;width:100%;border:0!important;background:transparent!important;border-radius:8px;font-size:22px!important;line-height:1.2;cursor:pointer;padding:3px!important}
.se-emoji-grid button:hover{background:#ffede8!important}
.se-emoji-popup>small{font-size:10px;color:#64748b;margin-top:6px}
.se-rich-status{font-size:12px;color:#64748b}
.se-v7-app[data-theme="dark"] .se-rich-editor,.se-v7-app[data-theme="dark"] .se-emoji-popup{background:#111922;color:#f3f4f6;border-color:#445161}
.se-v7-app[data-theme="dark"] .se-rich-editor:focus{border-color:#f16a42}
.se-v7-app[data-theme="dark"] .se-rich-media{background:#20252d;border-color:#445161}
.se-v7-app[data-theme="dark"] .se-emoji-popup input[type=search],.se-v7-app[data-theme="dark"] .se-title-row .se-title-emoji{background:#20252d!important;color:#fff!important;border-color:#445161!important}
.se-v7-app[data-theme="dark"] .se-emoji-tabs button{background:#29313a!important;color:#eee!important;border-color:#445161!important}
.se-v7-app[data-theme="dark"] .se-emoji-tabs button[aria-pressed=true]{background:#f16a42!important}
.se-v7-app[data-theme="dark"] .se-emoji-grid button:hover{background:#29313a!important}
.se-v7-app[data-theme="dark"] .se-rich-media .se-rich-play{background:#29313a;color:#fda98f}
@media(max-width:720px){.se-title-row{flex-wrap:wrap}.se-title-row .se-title-emoji{margin-left:auto}.board-editor-toolbar .se-editor-colors{order:1}.se-emoji-popup{left:0;right:auto;max-width:100%}.se-rich-editor{min-height:220px;padding:12px}}
@media(prefers-reduced-motion:reduce){.se-rich-editor,.se-emoji-popup{scroll-behavior:auto}}

/* The popover remains scrollable by wheel/touch but hides both scrollbars. */
.se-emoji-grid::-webkit-scrollbar,.se-emoji-tabs::-webkit-scrollbar{display:none;width:0;height:0}
.se-emoji-popup:focus-within{outline:none}
.board-editor-toolbar button.se-color-dot{appearance:none!important;background-color:var(--swatch)!important;box-shadow:inset 0 0 0 1px #0002,0 0 0 1px #bbc4d0!important}
.se-v7-app[data-theme="dark"] .board-editor-toolbar button.se-color-dot{background-color:var(--swatch)!important;border-color:#20252d!important;box-shadow:0 0 0 1px #a7b4c5!important}
.se-rich-editor strong,.se-rich-rendered strong{font-weight:800!important}
.se-rich-editor .post-text-small,.se-rich-rendered .post-text-small{font-size:12px!important}
.se-rich-editor .post-text-normal,.se-rich-rendered .post-text-normal{font-size:16px!important}
.se-rich-editor .post-text-large,.se-rich-rendered .post-text-large{font-size:21px!important}
.se-rich-editor [style*="font-size: 12px"]{font-size:12px}
.se-rich-editor [style*="font-size: 16px"]{font-size:16px}
.se-rich-editor [style*="font-size: 21px"]{font-size:21px}
.se-rich-youtube-preview{position:relative;width:min(100%,700px);aspect-ratio:16/9;background:#0f172a;overflow:hidden;border-radius:10px}
.se-rich-youtube-preview>img{display:block!important;position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;filter:brightness(.78)}
.se-rich-youtube-preview .se-rich-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:0!important;background:#f16a42!important;color:#fff!important;box-shadow:0 5px 20px #0007;white-space:nowrap}
.se-rich-youtube-preview .se-rich-play:hover{background:#e84b3b!important}
@media(max-width:800px){.se-emoji-popup{max-width:calc(100vw - 28px)!important}.se-emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}
