/* 0.7.96 – unified editor UI: modals, formatting and adaptive sizing */
.ctf-legacy-upload-hidden{display:none!important}.ctf-v2-group{display:inline-flex!important;vertical-align:top!important}.ctf-v2-btn{display:inline-block!important;margin:0!important}.ctf-v2-btn>button{width:38px!important;height:30px!important;padding:4px 7px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important}.ctf-font-trigger{font-weight:800;font-size:13px;letter-spacing:-.4px}.ctf-v2-pop{position:absolute;z-index:10020;top:100%;right:6px;margin-top:5px;min-width:260px;padding:10px;background:#fff;border:1px solid #d6dde7;border-radius:14px;box-shadow:0 18px 44px rgba(15,23,42,.2);color:#172033}.ctf-v2-pop>button{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:10px;border-radius:9px;text-align:left;cursor:pointer}.ctf-v2-pop>button:hover{background:#f3f6fa}.ctf-v2-pop>button>span:first-child{font-size:18px;width:24px;text-align:center}.ctf-v2-pop small{display:block;color:#687386}.ctf-v2-pop-title{display:block;margin:3px 4px 10px;font-size:14px}.ctf-v2-colors{display:grid;grid-template-columns:repeat(5,34px);gap:8px}.ctf-v2-sizes{display:grid;gap:5px}.ctf-v2-sizes button{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;cursor:pointer;text-align:left;color:inherit}.ctf-v2-sizes button:hover{background:#f3f6fa}.ctf-v2-sizes small{font-size:11px}.ctf-color-swatch[data-color=coral]{background:#e85d4a!important}.ctf-color-swatch[data-color=amber]{background:#d97706!important}.ctf-color-swatch[data-color=lime]{background:#65a30d!important}.ctf-color-swatch[data-color=mint]{background:#10b981!important}.ctf-color-swatch[data-color=cyan]{background:#0891b2!important}.ctf-color-swatch[data-color=sky]{background:#0284c7!important}.ctf-color-swatch[data-color=indigo]{background:#4f46e5!important}.ctf-color-swatch[data-color=violet]{background:#8b5cf6!important}.ctf-color-swatch[data-color=rose]{background:#e11d48!important}.ctf-color-swatch[data-color=brown]{background:#8b5e3c!important}.ctf-v2-dialog{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.64);backdrop-filter:blur(4px)}.ctf-v2-card{width:min(760px,100%);max-height:min(800px,92vh);overflow:auto;background:#fff;border:1px solid #dbe2ea;border-radius:20px;box-shadow:0 28px 80px rgba(2,8,23,.3);color:#172033}.ctf-v2-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #e6ebf1}.ctf-v2-card-head strong{display:block;font-size:20px}.ctf-v2-card-head span{display:block;color:#6b7280;margin-top:3px;font-size:13px}.ctf-v2-card-head>button{border:0;background:#eef2f7;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:23px;line-height:1}.ctf-v2-card-body{padding:20px 22px}.ctf-v2-field{display:grid;gap:7px;font-weight:700}.ctf-v2-field input,.ctf-v2-emoji-search{width:100%;box-sizing:border-box;border:1px solid #d3dae4;border-radius:10px;padding:11px 12px;font:inherit;background:#fff;color:#172033}.ctf-v2-emoji-browser{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;min-height:390px}.ctf-v2-emoji-nav{display:flex;flex-direction:column;gap:4px;padding-right:8px;border-right:1px solid #e5eaf0}.ctf-v2-emoji-nav button{border:0;background:transparent;color:#596579;border-radius:8px;padding:8px 10px;text-align:left;cursor:pointer}.ctf-v2-emoji-nav button:hover,.ctf-v2-emoji-nav button.is-active{background:#eef4ff;color:#245fbd}.ctf-v2-emoji-main{min-width:0}.ctf-v2-emoji-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:5px;max-height:330px;overflow:auto;margin-top:12px;padding-right:4px}.ctf-v2-emoji-grid button{border:0;background:transparent;border-radius:8px;padding:7px;font-size:22px;cursor:pointer}.ctf-v2-emoji-grid button:hover{background:#f2f5f9;transform:translateY(-1px)}.ctf-v2-youtube-live{display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px;align-items:center;margin-top:14px;padding:12px;border:1px solid #dce4ee;border-radius:13px;background:#f7f9fc}.ctf-v2-youtube-live[hidden]{display:none!important}.ctf-v2-youtube-live img{width:180px;height:101px;object-fit:cover;border-radius:9px;background:#e8edf3}.ctf-v2-youtube-live strong,.ctf-v2-youtube-live small{display:block}.ctf-v2-youtube-live small{color:#667085;margin-top:4px;line-height:1.45}.ctf-v2-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1.5px dashed #aab7c8;border-radius:14px;padding:24px 18px;text-align:center;background:#f8fafc;cursor:pointer}.ctf-v2-drop:hover{background:#f1f5f9;border-color:#7c8da3}.ctf-v2-drop>span{font-size:28px}.ctf-v2-drop small,.ctf-v2-upload-note,.ctf-v2-upload-item small,.ctf-v2-item-modes small,.ctf-v2-mode-row small{color:#6b7280;font-weight:400}.ctf-v2-drop input{position:absolute;opacity:0;pointer-events:none}.ctf-v2-upload-note{margin:12px 0 14px;font-size:13px}.ctf-v2-upload-list{display:grid;gap:12px}.ctf-v2-uploading{display:flex;align-items:center;gap:10px;padding:14px;border-radius:12px;background:#f5f8fc;border:1px solid #e1e7ef}.ctf-v2-uploading>span{width:18px;height:18px;border:2px solid #c8d2df;border-top-color:#2563eb;border-radius:50%;animation:ctfspin .75s linear infinite}.ctf-v2-upload-item{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;padding:12px;border:1px solid #e0e6ee;border-radius:14px;background:#fbfcfe}.ctf-v2-upload-item>img{width:110px;height:96px;object-fit:cover;border-radius:10px;background:#eef2f6}.ctf-v2-upload-copy>strong{display:block;overflow-wrap:anywhere}.ctf-v2-item-modes,.ctf-v2-mode-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.ctf-v2-item-modes label,.ctf-v2-mode-row label{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid #dce3ec;border-radius:10px;background:#fff;cursor:pointer}.ctf-v2-item-modes label:has(input:checked),.ctf-v2-mode-row label:has(input:checked){border-color:#7ca7ee;background:#f4f8ff}.ctf-v2-item-modes input,.ctf-v2-mode-row input{margin-top:3px}.ctf-v2-item-modes strong,.ctf-v2-mode-row strong{display:block;font-size:13px}.ctf-v2-item-modes small,.ctf-v2-mode-row small{display:block;font-size:11px;margin-top:2px;line-height:1.35}.ctf-v2-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.ctf-v2-actions button{border:1px solid #d2dae5;background:#fff;border-radius:9px;padding:10px 14px;font-weight:800;cursor:pointer}.ctf-v2-actions .is-primary{background:#2563eb;color:#fff;border-color:#2563eb}.ctf-v2-actions button:disabled{opacity:.5;cursor:not-allowed}.ctf-v2-toast{position:fixed;left:50%;bottom:28px;z-index:1000000;transform:translate(-50%,20px);opacity:0;background:#172033;color:#fff;border-radius:10px;padding:10px 14px;box-shadow:0 12px 30px rgba(0,0,0,.2);transition:.2s ease}.ctf-v2-toast.is-visible{transform:translate(-50%,0);opacity:1}.ctf-v2-toast.is-error{background:#991b1b}.ctf-image-lightbox{position:fixed;inset:0;z-index:999998;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(0,0,0,.82);backdrop-filter:blur(3px)}.ctf-image-lightbox img{max-width:min(94vw,1600px);max-height:90vh;object-fit:contain;border-radius:12px;box-shadow:0 24px 70px rgba(0,0,0,.4)}.ctf-image-lightbox button{position:fixed;top:18px;right:20px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:28px;cursor:pointer}.ctf-forum-image{max-width:100%;height:auto}.ctf-forum-image-preview{max-height:420px;object-fit:contain}.ctf-image-popup{display:inline-block;max-width:100%}.ctf-text-color.ctf-color-coral{color:#c24132}.ctf-text-color.ctf-color-amber{color:#b45309}.ctf-text-color.ctf-color-lime{color:#4d7c0f}.ctf-text-color.ctf-color-mint{color:#047857}.ctf-text-color.ctf-color-cyan{color:#0e7490}.ctf-text-color.ctf-color-sky{color:#0369a1}.ctf-text-color.ctf-color-indigo{color:#4338ca}.ctf-text-color.ctf-color-violet{color:#7c3aed}.ctf-text-color.ctf-color-rose{color:#be123c}.ctf-text-color.ctf-color-brown{color:#795548}.ctf-font-small{font-size:13px!important}.ctf-font-normal{font-size:16px!important}.ctf-font-large{font-size:19px!important}.ctf-font-xlarge{font-size:23px!important}.ctf-wrap .wp-editor-area{resize:none!important}.ctf-wrap .wp-editor-container iframe{resize:none!important;min-height:260px}.ctf-wrap .mce-resizehandle{display:none!important}@keyframes ctfspin{to{transform:rotate(360deg)}}
.ctf-wrap.ctf-forum-dark .ctf-v2-pop{background:#111925;border-color:#334154;color:#eef4fb}.ctf-wrap.ctf-forum-dark .ctf-v2-pop>button:hover,.ctf-wrap.ctf-forum-dark .ctf-v2-sizes button:hover{background:#1a2635}.ctf-wrap.ctf-forum-dark .ctf-v2-pop small{color:#9aa8bb}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-coral,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-coral{color:#ff9b8f}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-amber,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-amber{color:#fbbf24}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-lime,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-lime{color:#a3e635}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-mint,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-mint{color:#6ee7b7}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-cyan,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-cyan{color:#67e8f9}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-sky,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-sky{color:#7dd3fc}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-indigo,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-indigo{color:#a5b4fc}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-violet,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-violet{color:#c4b5fd}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-rose,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-rose{color:#fda4af}.ctf-wrap.ctf-forum-dark .ctf-text-color.ctf-color-brown,.ctf-forum-dark-enabled .ctf-text-color.ctf-color-brown{color:#d7b49e}.ctf-forum-dark-enabled .ctf-v2-card{background:#101722;color:#eef4fb;border-color:#334154}.ctf-forum-dark-enabled .ctf-v2-card-head{border-color:#2f3b4c}.ctf-forum-dark-enabled .ctf-v2-card-head span,.ctf-forum-dark-enabled .ctf-v2-upload-note,.ctf-forum-dark-enabled .ctf-v2-upload-item small,.ctf-forum-dark-enabled .ctf-v2-item-modes small,.ctf-forum-dark-enabled .ctf-v2-mode-row small,.ctf-forum-dark-enabled .ctf-v2-youtube-live small{color:#a4afbf}.ctf-forum-dark-enabled .ctf-v2-card-head>button{background:#1c2735;color:#eef4fb}.ctf-forum-dark-enabled .ctf-v2-drop,.ctf-forum-dark-enabled .ctf-v2-uploading,.ctf-forum-dark-enabled .ctf-v2-upload-item,.ctf-forum-dark-enabled .ctf-v2-youtube-live{background:#151f2c;border-color:#334154}.ctf-forum-dark-enabled .ctf-v2-item-modes label,.ctf-forum-dark-enabled .ctf-v2-mode-row label{background:#111925;border-color:#354255}.ctf-forum-dark-enabled .ctf-v2-item-modes label:has(input:checked),.ctf-forum-dark-enabled .ctf-v2-mode-row label:has(input:checked){background:#162943;border-color:#5f8fd6}.ctf-forum-dark-enabled .ctf-v2-field input,.ctf-forum-dark-enabled .ctf-v2-emoji-search{background:#0b1119;color:#eef4fb;border-color:#334154}.ctf-forum-dark-enabled .ctf-v2-emoji-nav{border-color:#334154}.ctf-forum-dark-enabled .ctf-v2-emoji-nav button{color:#a8b4c4}.ctf-forum-dark-enabled .ctf-v2-emoji-nav button:hover,.ctf-forum-dark-enabled .ctf-v2-emoji-nav button.is-active{background:#172943;color:#8cb8ff}.ctf-forum-dark-enabled .ctf-v2-emoji-grid button:hover{background:#1a2635}.ctf-forum-dark-enabled .ctf-v2-actions button:not(.is-primary){background:#182230;color:#eef4fb;border-color:#3a4759}
@media(max-width:700px){.ctf-v2-dialog{padding:10px}.ctf-v2-card-head,.ctf-v2-card-body{padding:16px}.ctf-v2-emoji-browser{grid-template-columns:1fr;min-height:0}.ctf-v2-emoji-nav{display:flex;flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid #e5eaf0;padding:0 0 8px}.ctf-v2-emoji-nav button{white-space:nowrap}.ctf-v2-emoji-grid{grid-template-columns:repeat(6,1fr);max-height:290px}.ctf-v2-youtube-live{grid-template-columns:1fr}.ctf-v2-youtube-live img{width:100%;height:auto;aspect-ratio:16/9}.ctf-v2-upload-item{grid-template-columns:84px minmax(0,1fr)}.ctf-v2-upload-item>img{width:84px;height:84px}.ctf-v2-item-modes,.ctf-v2-mode-row{grid-template-columns:1fr}.ctf-v2-actions{flex-direction:column-reverse}.ctf-v2-actions button{width:100%}.ctf-v2-pop{right:0;min-width:240px}}
