.ce-wrapper {
    background: transparent;
    margin-bottom: 1rem;
    position: relative;
    overflow: visible;
}

.ce-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(42,31,71,0.6);
    border: 1px solid rgba(247,158,11,0.12);
    position: relative;
    z-index: 2;
    overflow: visible;
}

.ce-align-dropdown {
    width: auto;
}

.ce-align-toggle {
    min-width: 42px;
    width: auto;
    padding: 6px 8px;
    justify-content: center;
    gap: 6px;
}

.ce-align-toggle .fa {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.ce-align-menu {
    min-width: 42px;
    width: 42px;
    padding: 4px;
}

.ce-align-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 0;
    text-align: center;
}

.ce-align-item .fa {
    font-size: 0.95rem;
    pointer-events: none;
}

.ce-align-item.is-active,
.ce-align-item.is-active:hover {
    color: #f79e0b;
}

.ce-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.ce-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    appearance: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.ce-dropdown-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 2px;
}

.ce-dropdown-caret {
    font-size: 0.72rem;
    opacity: 0.75;
    flex-shrink: 0;
    line-height: 1;
    margin-right: 2px;
    padding-left: 4px;
}

.ce-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 90;
    min-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #0f0b21;
    border: 1px solid rgba(247, 158, 11, 0.28);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(247, 158, 11, 0.55) rgba(255, 255, 255, 0.06);
}

.ce-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.ce-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 4px 2px;
}

.ce-dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(247, 158, 11, 0.75), rgba(247, 158, 11, 0.45));
    border-radius: 6px;
    border: 2px solid #0f0b21;
}

.ce-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffae2b, rgba(247, 158, 11, 0.85));
}

.ce-dropdown.is-open .ce-dropdown-menu {
    display: block;
}

.ce-dropdown-item {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
    padding: 8px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ce-dropdown-item:hover {
    background: rgba(247, 158, 11, 0.14);
    color: #fff;
    border-left-color: rgba(247, 158, 11, 0.55);
}

.ce-dropdown-item.is-active {
    background: rgba(247, 158, 11, 0.24);
    color: #f79e0b;
    border-left-color: #f79e0b;
    font-weight: 600;
}

.ce-dropdown-item.is-active:hover {
    background: rgba(247, 158, 11, 0.3);
    color: #ffae2b;
}

.ce-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.ce-btn:hover { background: rgba(247,158,11,0.08); border-color: rgba(247,158,11,0.18); }

.ce-btn.is-active,
.ce-btn.is-active:hover {
    background: rgba(247,158,11,0.18);
    border-color: rgba(247,158,11,0.35);
    color: #f79e0b;
}

.ce-select { background: #0f0b21; color: #fff; border: 1px solid rgba(255,255,255,0.06); padding: 6px 10px; border-radius: 6px; }
.ce-font-select {
    min-width: 132px;
    max-width: 160px;
}
.ce-size-select {
    min-width: 84px;
}
.ce-dropdown .ce-dropdown-toggle {
    padding: 7px 12px;
}
.ce-color { width: 36px; height: 28px; border: none; padding: 0; background: transparent; cursor: pointer; }
.ce-color-dropdown {
    position: relative;
}
.ce-color-toggle {
    min-width: 52px;
    gap: 4px;
}
.ce-color-preview {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.ce-color-dropdown .ce-dropdown-menu {
    top: auto;
    bottom: auto;
    overflow: visible;
}

.ce-color-dropdown.is-open > .ce-color-menu {
    position: fixed !important;
    display: block;
    margin: 0;
}
.ce-color-menu.is-floating {
    position: fixed !important;
    bottom: auto !important;
    min-width: 192px;
}
.ce-color-submenu-menu.is-floating {
    position: fixed !important;
    top: auto !important;
}
.ce-color-menu {
    width: 192px;
    padding: 8px;
    z-index: 100;
    max-height: min(70vh, 520px);
    overflow-x: visible;
    overflow-y: auto;
}
.ce-color-compact-section {
    margin-top: 0;
}
.ce-color-compact-grid {
    display: grid;
    grid-template-columns: repeat(8, 22px);
    gap: 0;
    width: 176px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}
.ce-color-compact-grid .ce-color-swatch {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
}
.ce-color-compact-grid .ce-color-swatch:hover {
    transform: none;
    outline: 2px solid #f79e0b;
    outline-offset: -2px;
    z-index: 1;
    position: relative;
}
.ce-color-compact-grid .ce-color-swatch.is-active {
    outline: 2px solid #f79e0b;
    outline-offset: -2px;
    position: relative;
    z-index: 1;
}
.ce-color-compact-grid .ce-color-swatch.is-light {
    border: 0;
}
.ce-color-compact-grid .ce-color-reset {
    background: #2a2148;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}
.ce-color-compact-grid .ce-color-reset:hover {
    background: #352a5a;
    color: #f79e0b;
}
.ce-color-section {
    margin-top: 8px;
}
.ce-color-section-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    padding: 0 2px;
}
.ce-color-theme-grid {
    display: grid;
    grid-template-columns: repeat(10, 16px);
    gap: 3px;
}
.ce-color-standard-row {
    display: grid;
    grid-template-columns: repeat(10, 16px);
    gap: 3px;
}
.ce-color-swatch {
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    cursor: pointer;
    box-sizing: border-box;
}
.ce-color-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.ce-color-menu-item:hover {
    background: rgba(247, 158, 11, 0.12);
}
.ce-color-auto-icon,
.ce-color-more-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.ce-color-auto-icon {
    background: #ffffff;
}
.ce-color-more-icon {
    background: conic-gradient(#ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}
.ce-color-section {
    margin-top: 8px;
}
.ce-color-section-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    padding: 0 2px;
}
.ce-color-theme-grid {
    display: grid;
    grid-template-columns: repeat(10, 16px);
    gap: 3px;
}
.ce-color-standard-row {
    display: grid;
    grid-template-columns: repeat(10, 16px);
    gap: 3px;
}
.ce-color-swatch {
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    cursor: pointer;
    box-sizing: border-box;
}
.ce-color-swatch:hover {
    transform: scale(1.08);
    border-color: rgba(247, 158, 11, 0.8);
    z-index: 1;
}
.ce-color-swatch.is-active {
    outline: 2px solid #f79e0b;
    outline-offset: 1px;
}
.ce-color-swatch.is-light {
    border-color: rgba(255, 255, 255, 0.35);
}
.ce-color-submenu-wrap {
    position: static;
    margin-top: 4px;
}
.ce-color-submenu-toggle {
    justify-content: flex-start;
}
.ce-color-submenu-caret {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.7;
}
.ce-color-submenu-menu {
    display: none;
    position: absolute;
    left: calc(100% + 4px);
    right: auto;
    top: auto;
    bottom: 0;
    background: rgba(15, 11, 33, 0.98);
    border: 1px solid rgba(247, 158, 11, 0.25);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 110;
}
.ce-color-submenu-wrap.is-open > .ce-color-submenu-menu {
    display: block;
}
.ce-color-more-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 236px;
    padding: 10px;
}
.ce-color-more-wrap.is-open .ce-color-more-menu {
    display: flex;
}
.ce-custom-color-picker {
    width: 216px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ce-color-sv-panel {
    position: relative;
    width: 100%;
    height: 148px;
    border-radius: 6px;
    border: 1px solid rgba(247, 158, 11, 0.28);
    cursor: crosshair;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.ce-color-sv-cursor {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ce-color-picker-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ce-color-preview-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.ce-color-hue-track {
    position: relative;
    flex: 1;
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
}
.ce-color-hue-cursor {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ce-color-rgb-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ce-color-rgb-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ce-color-rgb-field span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    line-height: 1;
}
.ce-color-rgb-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 4px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    -moz-appearance: textfield;
}
.ce-color-rgb-field input::-webkit-outer-spin-button,
.ce-color-rgb-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ce-color-rgb-field input:focus,
.ce-custom-color-picker .ce-color-hex-input:focus {
    outline: none;
    border-color: rgba(247, 158, 11, 0.55);
    box-shadow: 0 0 0 1px rgba(247, 158, 11, 0.18);
}
.ce-custom-color-picker .ce-color-hex-input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    text-transform: uppercase;
    text-align: center;
}
.ce-color-more-preview {
    width: 100%;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ce-color-picker-input {
    width: 100%;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}
.ce-color-hex-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    text-transform: uppercase;
}
.ce-color-hex-input:focus {
    outline: none;
    border-color: rgba(247, 158, 11, 0.55);
}
.ce-color-gradient-wrap {
    position: relative;
    margin-top: 4px;
}
.ce-color-gradient-toggle {
    justify-content: flex-start;
}
.ce-color-gradient-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #666 0%, #fff 100%);
    flex-shrink: 0;
}
.ce-color-gradient-menu {
    min-width: 168px;
    padding: 6px;
    max-height: min(60vh, 360px);
    overflow-y: auto;
}
.ce-color-gradient-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.ce-color-gradient-item:hover {
    background: rgba(247, 158, 11, 0.12);
}
.ce-color-gradient-preview {
    width: 48px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}
.ce-divider { width: 8px; }

.ce-editor-zone {
    position: relative;
    margin-top: 8px;
}

.ce-editor {
    display: block;
    min-height: 420px;
    height: 420px;
    max-height: 80vh;
    overflow: auto;
    resize: vertical;
    padding: 14px 22px 14px 14px;
    border-radius: 8px;
    margin-top: 0;
    background: #0f0b21;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.04);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
}

.ce-editor::-webkit-resizer {
    width: 22px;
    height: 22px;
    border-bottom-right-radius: 8px;
    background-color: rgba(15, 11, 33, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M18 4 L4 18' stroke='%23f79e0b' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M18 9 L9 18' stroke='%23f79e0b' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M18 14 L14 18' stroke='%23f79e0b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    cursor: ns-resize;
}

.ce-editor:hover::-webkit-resizer {
    background-color: rgba(42, 31, 71, 0.95);
    background-size: 18px 18px;
}

.ce-editor:focus { outline: 2px solid rgba(247,158,11,0.12); }

@media (max-width: 576px){
    .ce-toolbar { gap:6px; padding:6px; }
    .ce-select { font-size: 12px; }
}

.ce-editor, .ce-editor * {
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.ce-editor ul,
.ce-editor ol {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
    max-width: 100%;
    list-style-position: inside;
}

.ce-editor li {
    margin-bottom: 0.45rem;
}

.ce-editor img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.ce-editor .ce-media-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 12px 12px 0;
    vertical-align: top;
    line-height: 0;
    overflow: hidden;
}

.ce-editor .ce-media-wrap[data-ce-media="video"]::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: default;
}

.ce-editor .ce-media-wrap.is-selected {
    outline: 2px solid rgba(247, 158, 11, 0.45);
    outline-offset: 1px;
    border-radius: 4px;
}

.ce-editor .ce-media-wrap img {
    margin: 0 !important;
    vertical-align: top;
}

.ce-editor .ce-media-wrap iframe {
    margin: 0 !important;
    pointer-events: none;
    vertical-align: top;
}

.ce-editor .ce-media-resizer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    border-bottom-right-radius: 4px;
    background-color: rgba(15, 11, 33, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M18 4 L4 18' stroke='%23f79e0b' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M18 9 L9 18' stroke='%23f79e0b' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M18 14 L14 18' stroke='%23f79e0b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    cursor: nwse-resize;
    opacity: 0.7;
    z-index: 5;
    pointer-events: auto;
}

.ce-editor .ce-media-wrap:hover .ce-media-resizer,
.ce-editor .ce-media-wrap.is-selected .ce-media-resizer {
    opacity: 1;
    background-color: rgba(42, 31, 71, 0.95);
}

.ce-editor table {
    max-width: 100%;
    height: auto;
}

.ce-link-panel,
.ce-image-panel,
.ce-video-panel {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 30;
    width: 280px;
    max-width: calc(100% - 20px);
    margin: 0;
    border-radius: 8px;
    background: rgba(42, 31, 71, 0.97);
    border: 1px solid rgba(247, 158, 11, 0.28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transform: translate(-50%, -50%);
}

.ce-video-panel.is-open {
    display: flex;
    flex-direction: column;
    max-height: min(420px, calc(100vh - 32px));
    animation: ceLinkPanelIn 0.16s ease;
}

.ce-link-panel.is-open,
.ce-image-panel.is-open {
    display: block;
    animation: ceLinkPanelIn 0.16s ease;
}

@keyframes ceLinkPanelIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 6px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.ce-editor-zone.ce-insert-panel-open::before,
.ce-editor-zone.ce-link-panel-open::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(15, 11, 33, 0.62);
    z-index: 20;
    pointer-events: none;
}

.ce-editor-zone.ce-insert-panel-open .ce-editor,
.ce-editor-zone.ce-link-panel-open .ce-editor {
    pointer-events: none;
}

.ce-link-panel-inner,
.ce-image-panel-inner,
.ce-video-panel-inner {
    padding: 8px 10px 10px;
}

.ce-video-panel-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.ce-video-panel-fields {
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.ce-video-panel-actions {
    flex-shrink: 0;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(247, 158, 11, 0.1);
}

.ce-link-panel-header,
.ce-image-panel-header,
.ce-video-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(247, 158, 11, 0.12);
}

.ce-link-panel-title,
.ce-image-panel-title,
.ce-video-panel-title {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.ce-link-panel-title .fa,
.ce-image-panel-title .fa,
.ce-video-panel-title .fa {
    color: #f79e0b;
    margin-right: 5px;
    font-size: 0.75rem;
}

.ce-link-panel-close,
.ce-image-panel-close,
.ce-video-panel-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.ce-link-panel-close:hover,
.ce-image-panel-close:hover,
.ce-video-panel-close:hover {
    color: #f79e0b;
}

.ce-link-panel-fields,
.ce-image-panel-fields,
.ce-video-panel-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ce-link-panel-label,
.ce-image-panel-label,
.ce-video-panel-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
}

.ce-link-panel-input,
.ce-image-panel-input,
.ce-video-panel-input {
    width: 100%;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f0b21;
    color: #fff;
    font-size: 0.78rem;
}

.ce-link-panel-input:focus,
.ce-image-panel-input:focus,
.ce-video-panel-input:focus {
    outline: none;
    border-color: rgba(247, 158, 11, 0.45);
    box-shadow: 0 0 0 2px rgba(247, 158, 11, 0.1);
}

.ce-link-panel-input::placeholder,
.ce-image-panel-input::placeholder,
.ce-video-panel-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.ce-link-panel-hint,
.ce-image-panel-hint,
.ce-video-panel-hint {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.66rem;
    line-height: 1.35;
    font-weight: 400;
}

.ce-link-panel-hint .fa,
.ce-image-panel-hint .fa,
.ce-video-panel-hint .fa {
    color: rgba(247, 158, 11, 0.75);
    font-size: 0.72rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.ce-link-panel-error,
.ce-image-panel-error,
.ce-video-panel-error {
    margin-top: 6px;
    color: #f87171;
    font-size: 0.72rem;
}

.ce-link-panel-actions,
.ce-image-panel-actions,
.ce-video-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.ce-link-panel-actions .btn,
.ce-image-panel-actions .btn,
.ce-video-panel-actions .btn {
    min-width: 72px;
    padding: 5px 12px;
    font-size: 0.78rem;
    line-height: 1.2;
}

.ce-image-panel-preview {
    margin-top: 2px;
    padding: 6px;
    border-radius: 6px;
    background: rgba(15, 11, 33, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.ce-image-panel-preview img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
}

.ce-video-platform-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(247, 158, 11, 0.16);
    border: 1px solid rgba(247, 158, 11, 0.28);
    color: #f79e0b;
    font-size: 0.68rem;
    font-weight: 600;
}

.ce-video-dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ce-video-panel-preview {
    margin-top: 2px;
    padding: 4px;
    border-radius: 6px;
    background: rgba(15, 11, 33, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    overflow: hidden;
    max-height: 112px;
    aspect-ratio: 16 / 9;
}

.ce-video-panel-preview iframe {
    display: block;
    width: 100%;
    height: 100px;
    max-width: 100%;
    max-height: 100px;
    margin: 0 auto;
    border: 0;
    border-radius: 4px;
    background: #000;
}

.ce-editor iframe.forum-video-embed {
    max-width: 100%;
    border: 0;
    border-radius: 6px;
    display: block;
    margin: 8px 0;
    background: #000;
}

.ce-editor .ce-media-wrap iframe.forum-video-embed {
    margin: 0 !important;
}