:root {
            --primary-color: #000000;
            --secondary-color: #333333;
            --accent-color: #000000;
            --light-bg: #f8f9fa;
            --border-color: #dee2e6;
            --sidebar-width: 340px;
            --viewer-surface: #ebebeb;
        }

        html {
            margin: 0;
            padding: 0;
            min-height: 100%;
            background-color: var(--light-bg);
            max-width: 100%;
            width: 100%;
        }

        html:not(.itqan-editor-active) {
            overflow-x: visible;
        }

        body,
        body.bg-light-subtle {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--light-bg) !important;
        }

        html:not(.itqan-editor-active) body.bg-light-subtle {
            overflow-x: visible;
            overflow-y: auto;
        }

        html.itqan-editor-active {
            height: 100%;
            overflow: hidden;
        }

        html.itqan-editor-active body.bg-light-subtle {
            overflow: hidden !important;
            height: 100%;
            max-height: 100dvh;
        }

        html.itqan-editor-active nav.navbar.navbar-expand-xl.navbar-dark.bg-dark {
            position: sticky;
            top: 0;
            z-index: 1040;
        }

        html.itqan-editor-active .navbar .dropdown-menu {
            z-index: 1060 !important;
        }

        @media (min-width: 1200px) {
            html.itqan-editor-active .navbar.navbar-expand-xl #navbarNav.collapse.navbar-collapse {
                max-height: none !important;
                overflow: visible !important;
            }
        }

        .upload-area {
            position: relative;
            cursor: pointer;
            isolation: isolate;
            transition: background-color 0.3s ease, border-color 0.3s ease;
            border: 2px dashed #ced4da;
            border-radius: 12px;
            background: var(--light-bg, #f8f9fa);
            min-height: auto;
        }

        .upload-area:hover,
        .upload-area.dragover {
            background-color: #eef0f2;
            border-color: #6b7280 !important;
        }

        #dropArea,
        .upload-area.card {
            overflow: visible;
            max-width: 100%;
            --bs-card-bg: #f8f9fa;
            background-color: #f8f9fa !important;
            background: #f8f9fa !important;
            box-shadow: none !important;
            border: 2px dashed #ced4da !important;
        }

        .container.my-5 > .row.justify-content-center > .col-lg-8 {
            min-width: 0;
        }

        #upload-section #imagesUpload {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
            z-index: 10;
        }

        #upload-section #selectFileBtn {
            min-width: 240px;
        }

        .cloud-upload-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #dee2e6;
            background: white;
            transition: all 0.3s;
            cursor: pointer;
            padding: 0;
            position: relative;
            z-index: 100;
        }

        .cloud-upload-btn:hover {
            border-color: #000;
            transform: scale(1.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .cloud-icon {
            position: relative;
            display: inline-block;
            transition: transform 0.3s ease;
            z-index: 101;
        }

        .cloud-tooltip {
            visibility: hidden;
            width: 140px;
            background-color: #333;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 8px 5px;
            position: absolute;
            z-index: 1000;
            bottom: 125%;
            left: 50%;
            margin-left: -70px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 12px;
            white-space: nowrap;
            pointer-events: none;
        }

        .cloud-tooltip::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }

        .cloud-icon:hover .cloud-tooltip {
            visibility: visible;
            opacity: 1;
        }

        #adContainer {
            margin: 20px 0;
            text-align: center;
            overflow: hidden;
            max-width: 100%;
            box-sizing: border-box;
        }

        #adContainer ins.adsbygoogle {
            display: block !important;
            width: min(100%, 728px) !important;
            max-width: 100% !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        .main-editor {
            display: none;
            height: calc(100vh - 60px);
            flex-direction: row;
            min-width: 0;
            min-height: 0;
        }

        html.itqan-editor-active #imgfbEditorSection.main-editor {
            display: flex !important;
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            top: var(--itqan-editor-top, 72px);
            height: auto !important;
            min-height: 0 !important;
            box-sizing: border-box;
            z-index: 1;
        }

        #imgfbEditorSection .sidebar {
            width: var(--sidebar-width);
            min-width: var(--sidebar-width);
            flex: 0 0 var(--sidebar-width);
            background: #fff;
            border-left: 1px solid #ddd;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 1;
            overflow: hidden;
            min-height: 0;
            height: 100%;
        }

        #imgfbEditorSection .sidebar .merge-sidebar-body {
            flex: 1 1 auto;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: auto;
            padding-top: 0;
        }

        .merge-sidebar-header {
            flex-shrink: 0;
            padding: 16px 18px;
            border-bottom: 1px solid #eee;
            font-weight: 700;
            font-size: 17px;
            background: #fff;
            text-align: center;
            color: #222;
        }

        .merge-sidebar-body {
            padding: 16px 18px 12px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        #imgfbEditorSection .sidebar > .merge-sidebar-footer {
            flex-shrink: 0;
            margin-top: auto;
            padding: 14px 18px 18px;
            border-top: 1px solid #eee;
            background: #fff;
        }

        .merge-sidebar-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .merge-sidebar-label {
            font-size: 0.8rem;
            font-weight: 700;
            color: #666;
            text-align: center;
            margin: 0;
        }

        #imgfbEditorSection .merge-cloud-stack {
            display: flex;
            flex-direction: row;
            gap: 12px;
            align-items: center;
            justify-content: center;
            padding: 12px 14px;
            background: #f8f9fa;
            border: 1px dashed #dee2e6;
            border-radius: 10px;
            width: 100%;
            box-sizing: border-box;
        }

        .merge-sidebar-help-btn {
            width: 100%;
            margin: 0 0 0.85rem;
            padding: 0.55rem 0.75rem;
            font-size: 0.82rem;
            font-weight: 600;
            border: 1px dashed var(--border-color);
            border-radius: 8px;
            background: #fff;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
        }

        .merge-sidebar-help-btn:hover {
            background: #f8f9fa;
            border-color: #adb5bd;
            color: #111;
        }

        .merge-stats-sidebar.stats-card {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin: 0;
            width: 100%;
            background: transparent;
            border: none;
            padding: 0;
        }

        .merge-stats-sidebar .merge-stat-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .merge-stats-sidebar .merge-stat-item:last-child {
            border-bottom: 0;
        }

        .merge-stats-sidebar .merge-stat-icon {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #111;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            flex-shrink: 0;
        }

        .merge-stats-sidebar .merge-stat-text strong {
            display: block;
            font-size: 0.95rem;
            line-height: 1.15;
        }

        .merge-stats-sidebar .merge-stat-text small {
            font-size: 0.72rem;
            color: #888;
        }

        .sidebar-select-wrap {
            width: 100%;
        }

        .sidebar-select-wrap .form-label {
            font-size: 0.8rem;
            font-weight: 700;
            color: #666;
            margin-bottom: 6px;
        }

        .sidebar-select-wrap .form-select {
            font-size: 0.9rem;
            border-radius: 10px;
        }

        .merge-sidebar-btn-clear {
            width: 100%;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid #ddd;
            background: #f5f5f5;
            color: #444;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
        }

        .merge-sidebar-btn-clear:hover {
            background: #eee;
            border-color: #bbb;
            color: #222;
        }

        .btn-finish {
            background: #000;
            color: #fff;
            width: 100%;
            border: none;
            padding: 15px;
            font-size: 18px;
            font-weight: 700;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-finish:hover:not(:disabled) {
            background: #222;
            color: #fff;
        }

        .btn-finish:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .viewer-container {
            flex: 1 1 auto;
            min-width: 0;
            min-height: 0;
            background: var(--viewer-surface);
            overflow: hidden;
            padding: 0 12px 12px;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        #imgfbPreviewWrap {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            padding-top: 10px;
        }

        .audio-preview-card {
            border: none;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            padding: 8px 4px 16px;
            margin-bottom: 0;
        }

        .audio-preview-card > h6 {
            color: #555;
            font-weight: 600;
        }

        .imgfb-preview-container {
            border: none;
            border-radius: 0;
            background: transparent;
            padding: 8px 0;
            max-height: none;
            overflow: visible;
        }

        .imgfb-images-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
            gap: 18px;
            justify-content: start;
        }

        .imgfb-image-item {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 10px;
            border-radius: 8px;
            background: #fff;
            border: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .imgfb-image-item .imgfb-image-thumb {
            position: relative;
            width: 100%;
            aspect-ratio: 8.5 / 11;
            min-height: 220px;
            background: #fff;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        .imgfb-image-item .imgfb-image-thumb img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .imgfb-image-item .imgfb-image-name {
            text-align: center;
            font-size: 0.75rem;
            padding: 0 4px;
            color: #666;
            word-break: break-word;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .imgfb-image-item .imgfb-remove-btn {
            position: absolute;
            top: 14px;
            right: 14px;
            z-index: 2;
            width: 28px;
            height: 28px;
            border: 0;
            border-radius: 50%;
            background: rgba(0,0,0,0.65);
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .viewer-container #imgfbAdContainerViewer {
            margin-top: 16px;
            flex-shrink: 0;
            text-align: center;
        }

        .viewer-container #imgfbAdContainerViewer ins.adsbygoogle {
            display: inline-block !important;
            width: min(100%, 728px) !important;
            max-width: 100% !important;
        }

        .upload-pick-wrap {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transform: translateX(18px);
            position: relative;
            z-index: 20;
        }

        .upload-cloud-stack {
            display: flex;
            flex-direction: column;
            gap: 1px;
            position: relative;
            z-index: 220;
            pointer-events: auto;
        }

        .upload-cloud-stack .cloud-icon,
        .upload-cloud-stack .cloud-upload-btn {
            pointer-events: auto;
        }

        .container.my-5 {
            margin-top: 1rem !important;
            margin-bottom: 2rem !important;
        }

        #mergePageHeader {
            margin-bottom: 0 !important;
        }

        #mergePageHeader .display-5 {
            font-size: clamp(1.75rem, 3.5vw, 2.15rem);
            margin-bottom: 0.55rem !important;
            line-height: 1.25;
        }

        #mergePageHeader .lead {
            margin-bottom: 1.15rem !important;
            font-size: 0.98rem;
            line-height: 1.45;
        }

        #upload-section #dropArea.upload-area,
        #upload-section #dropArea.card.upload-area,
        #upload-section #dropArea.card.shadow-sm.upload-area {
            width: min(100%, var(--itqan-tool-panel-w, 46.5rem));
            max-width: min(100%, var(--itqan-tool-panel-w, 46.5rem));
            margin-left: auto;
            margin-right: auto;
            padding: 0.65rem 1.55rem 0.45rem !important;
            box-shadow: none !important;
            overflow: visible !important;
            --bs-card-bg: #f8f9fa;
            background-color: #f8f9fa !important;
            background: #f8f9fa !important;
            border: 2px dashed #ced4da !important;
        }

        @media (min-width: 576px) {
            #upload-section #dropArea.upload-area,
            #upload-section #dropArea .card-body,
            #upload-section #dropArea .upload-row-wrap,
            #upload-section #dropArea .d-flex.justify-content-center {
                overflow: visible !important;
            }
        }

        @media (min-width: 992px) {
            #upload-section #dropArea.upload-area {
                padding-block: 0.75rem 0.5rem !important;
                padding-inline: 1.55rem !important;
                overflow: visible !important;
            }
        }

        @media (max-width: 575.98px) {
            #upload-section #dropArea.upload-area {
                width: 100%;
                padding: 1rem !important;
                overflow: visible !important;
            }
            #upload-section #dropArea .card-body,
            #upload-section #dropArea .upload-row-wrap {
                overflow: visible !important;
            }
        }

        #upload-section #dropArea .card-body {
            padding: 0.3rem 0.85rem 0.2rem;
            overflow: visible !important;
            width: 100%;
            background: transparent !important;
        }

        #upload-section #dropArea .upload-row-wrap {
            overflow: visible !important;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .imgfb-options-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #222;
            margin: 4px 0 12px;
        }
        .imgfb-field {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
        }
        .imgfb-field label {
            flex: 1 1 auto;
            font-size: 0.88rem;
            font-weight: 600;
            color: #444;
            margin: 0;
            text-align: start;
        }
        .imgfb-field .imgfb-spin {
            width: 110px;
            flex: 0 0 110px;
            border-radius: 8px;
            border: 1px solid #d0d5dd;
            padding: 6px 8px;
            font-size: 0.9rem;
            text-align: center;
        }
        .imgfb-aspect-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 8px 0 14px;
        }
        .imgfb-aspect-btn {
            border: 1px solid #d8dce2;
            background: #fff;
            color: #333;
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
        }
        .imgfb-aspect-btn.active,
        .imgfb-aspect-btn:hover {
            border-color: #111111;
            color: #111111;
            background: #f5f5f5;
        }
        .imgfb-stage-wrap {
            flex: 1 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .imgfb-canvas-host {
            flex: 1 1 auto;
            min-height: 280px;
            background: var(--viewer-surface);
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .imgfb-canvas-host img {
            max-width: 100%;
            display: block;
        }
        .imgfb-stage-inner {
            position: relative;
            display: inline-block;
            max-width: 100%;
            max-height: 100%;
            line-height: 0;
            user-select: none;
        }
        .imgfb-stage-inner img#imgfbPreviewImage {
            max-width: min(100%, 900px);
            max-height: calc(100vh - 260px);
            width: auto;
            height: auto;
            display: block;
        }
        .imgfb-overlay {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }
        .imgfb-face-box {
            position: absolute;
            border: 2px solid #111111;
            box-shadow: 0 0 0 1px rgba(255,255,255,0.55);
            box-sizing: border-box;
            pointer-events: auto;
            cursor: move;
            touch-action: none;
            overflow: hidden;
            background-repeat: no-repeat;
            z-index: 2;
        }
        .imgfb-face-box .imgfb-box-fill {
            position: absolute;
            pointer-events: none;
            background-repeat: no-repeat;
            transform-origin: center center;
            z-index: 0;
        }
        .imgfb-face-box.active {
            border-color: #000000;
            box-shadow: 0 0 0 2px rgba(0,0,0,0.45);
            z-index: 3;
        }
        .imgfb-face-box .imgfb-box-del {
            position: absolute;
            top: 4px;
            inset-inline-start: 4px;
            width: 22px;
            height: 22px;
            border: none;
            border-radius: 50%;
            background: rgba(0,0,0,0.7);
            color: #fff;
            font-size: 11px;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 4;
            padding: 0;
        }
        .imgfb-face-box.active .imgfb-box-del,
        .imgfb-face-box:hover .imgfb-box-del { display: inline-flex; }
        .imgfb-face-box .imgfb-resize-handle {
            position: absolute;
            width: 12px;
            height: 12px;
            background: #fff;
            border: 2px solid #111;
            border-radius: 2px;
            right: -6px;
            bottom: -6px;
            cursor: se-resize;
            z-index: 5;
        }
        .imgfb-add-area-btn {
            width: 100%;
            border: 1px dashed #111111;
            background: #fff;
            color: #111111;
            border-radius: 10px;
            padding: 10px 12px;
            font-weight: 700;
            font-size: 0.9rem;
            margin-bottom: 14px;
            cursor: pointer;
        }
        .imgfb-add-area-btn:hover { background: #f5f5f5; border-color: #000; }
        .imgfb-stage-wrap > h6 {
            text-align: center;
            margin-bottom: 8px;
        }
        .files-bar {
            flex-shrink: 0;
            padding: 8px 12px 12px;
            background: var(--viewer-surface);
            border-bottom: none;
        }
        .files-bar__inner {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 6px 10px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .files-bar .file-pill {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #ffffff;
            border: 1px solid #e0e0e0;
            border-radius: 999px;
            padding: 6px 14px 6px 10px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            min-width: min(100%, 320px);
            max-width: min(100%, 520px);
        }
        .files-bar .file-pill__select {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 14px;
            outline: none;
            text-align: right;
            direction: rtl;
            min-width: 0;
            max-width: 100%;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding-inline-end: 4px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: left 4px center;
            padding-left: 18px;
        }
        .files-bar .file-pill__select option {
            direction: rtl;
            text-align: right;
        }
        .files-bar .file-pill__delete {
            background: transparent;
            border: none;
            color: #6c757d;
            font-size: 16px;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 6px;
            transition: color 0.2s, background 0.2s;
        }
        .files-bar .file-pill__delete:hover {
            color: #dc3545;
            background: #f8d7da33;
        }
        .imgfb-options-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #222;
            margin: 4px 0 12px;
        }
        .imgfb-field {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
        }
        .imgfb-field label {
            flex: 1 1 auto;
            font-size: 0.88rem;
            font-weight: 600;
            color: #444;
            margin: 0;
            text-align: start;
        }
        .imgfb-field .imgfb-spin {
            width: 110px;
            flex: 0 0 110px;
            border-radius: 8px;
            border: 1px solid #d0d5dd;
            padding: 6px 8px;
            font-size: 0.9rem;
            text-align: center;
        }
        .imgfb-aspect-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 8px 0 14px;
        }
        .imgfb-aspect-btn {
            border: 1px solid #d8dce2;
            background: #fff;
            color: #333;
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
        }
        .imgfb-aspect-btn.active,
        .imgfb-aspect-btn:hover {
            border-color: #111111;
            color: #111111;
            background: #f5f5f5;
        }
        .imgfb-stage-wrap {
            flex: 1 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .imgfb-canvas-host {
            flex: 1 1 auto;
            min-height: 280px;
            background: var(--viewer-surface);
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .imgfb-canvas-host img {
            max-width: 100%;
            display: block;
        }
        .imgfb-stage-wrap > h6 {
            text-align: center;
            margin-bottom: 8px;
        }
        .files-bar {
            flex-shrink: 0;
            padding: 8px 12px 12px;
            background: var(--viewer-surface);
            border-bottom: none;
        }
        .files-bar__inner {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 6px 10px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .files-bar .file-pill {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #ffffff;
            border: 1px solid #e0e0e0;
            border-radius: 999px;
            padding: 6px 14px 6px 10px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            min-width: min(100%, 320px);
            max-width: min(100%, 520px);
        }
        .files-bar .file-pill__select {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 14px;
            outline: none;
            text-align: right;
            direction: rtl;
            min-width: 0;
            max-width: 100%;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding-inline-end: 4px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: left 4px center;
            padding-left: 18px;
        }
        .files-bar .file-pill__select option {
            direction: rtl;
            text-align: right;
        }
        .files-bar .file-pill__delete {
            background: transparent;
            border: none;
            color: #6c757d;
            font-size: 16px;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 6px;
            transition: color 0.2s, background 0.2s;
        }
        .files-bar .file-pill__delete:hover {
            color: #dc3545;
            background: #f8d7da33;
        }
        .btn-finish.imgfb-finish {
            background: #000000;
        }
        .btn-finish.imgfb-finish:hover:not(:disabled) {
            background: #222222;
            color: #fff;
        }



        @media (max-width: 991.98px) {
            html.itqan-editor-active { overflow: auto !important; height: auto !important; }
            html.itqan-editor-active body { overflow: auto !important; height: auto !important; max-height: none !important; }
            .main-editor { flex-direction: column !important; height: auto !important; }
            html.itqan-editor-active .main-editor { position: relative !important; flex-direction: column !important; height: auto !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; }
            .sidebar { order: 1 !important; position: relative !important; width: 100% !important; min-width: 0 !important; max-height: none !important; height: auto !important; flex: none !important; border-left: none; border-top: 1px solid #ddd; }
            .sidebar .merge-sidebar-body { overflow: visible !important; max-height: none !important; height: auto !important; }
            .viewer-container { order: 2 !important; width: 100% !important; min-height: 50vh; overflow: visible !important; }
            .sidebar > .merge-sidebar-footer, .main-editor .p-3 { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important; background: #fff; border-top: 1px solid #e8e8e8; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); }
            .btn-finish { padding: 14px !important; font-size: 16px !important; border-radius: 10px !important; }
            .upload-pick-wrap { transform: none; }
            html.itqan-editor-active .tool-seo-visible-wrap, html.itqan-editor-active .merge-seo-content { display: none !important; }
            .files-bar {
                padding: 8px 10px;
            }
            .files-bar__inner {
                justify-content: center;
            }
            .files-bar .file-pill {
                min-width: 0 !important;
                max-width: 100%;
                flex: 1 1 100%;
            }
        }
