    /* Shoot Folders Dropdown */
    .shoot-folders-dropdown .hover-bg-light:hover {
        background-color: #f8f9fa;
    }

    .shoot-folder-item {
        transition: background-color 0.15s ease;
    }

    /* Script folder badge - shows linked shoot folder */
    .script-info {
        flex: 1;
        min-width: 0;
    }

    .script-folder-badge {
        font-size: 0.65rem;
        color: #6c757d;
        margin-top: 2px;
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .script-folder-badge i {
        font-size: 0.6rem;
        color: #f0ad4e;
    }

    .script-item.active .script-folder-badge {
        color: rgba(255, 255, 255, 0.8);
    }

    .script-item.active .script-folder-badge i {
        color: #ffc107;
    }

    /* Layout - Scripts (links) | Secties (midden) | Preview (rechts) */
    .three-column-layout {
        display: grid;
        grid-template-columns: 360px 1fr minmax(280px, 1fr);
        gap: 0.5rem;
        flex: 1;
        min-height: 0; /* Important for flex child to allow shrinking */
        transition: grid-template-columns 0.3s ease;
    }

    /* Collapsed state combinations */
    .three-column-layout.scripts-collapsed {
        grid-template-columns: 36px 1fr minmax(280px, 1fr);
    }
    .three-column-layout.sections-collapsed {
        grid-template-columns: 360px 36px minmax(280px, 1fr);
    }
    .three-column-layout.preview-collapsed {
        grid-template-columns: 360px 1fr 36px;
    }
    .three-column-layout.scripts-collapsed.sections-collapsed {
        grid-template-columns: 36px 36px minmax(280px, 1fr);
    }
    .three-column-layout.scripts-collapsed.preview-collapsed {
        grid-template-columns: 36px 1fr 36px;
    }
    .three-column-layout.sections-collapsed.preview-collapsed {
        grid-template-columns: 360px 36px 36px;
    }
    .three-column-layout.scripts-collapsed.sections-collapsed.preview-collapsed {
        grid-template-columns: 36px 36px 36px;
    }

    .preview-column, .scripts-column, .sections-column {
        overflow: hidden;
        transition: all 0.3s ease;
        min-height: 0; /* Important for grid child to allow content sizing */
        display: flex;
        flex-direction: column;
    }

    /* Scripts column collapsed state */
    .scripts-column.collapsed,
    .sections-column.collapsed,
    .preview-column.collapsed {
        min-width: 36px;
        max-width: 36px;
    }

    /* Generic collapsed bar styling */
    .scripts-collapsed-bar,
    .sections-collapsed-bar,
    .preview-collapsed-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0.25rem;
        border-radius: 0.375rem;
        height: 100%;
        cursor: pointer;
        color: white;
        gap: 0.5rem;
        transition: filter 0.2s;
    }

    .scripts-collapsed-bar:hover,
    .sections-collapsed-bar:hover,
    .preview-collapsed-bar:hover {
        filter: brightness(0.9);
    }

    .scripts-collapsed-bar {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .sections-collapsed-bar {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .preview-collapsed-bar {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    }

    .scripts-collapsed-bar i,
    .sections-collapsed-bar i,
    .preview-collapsed-bar i {
        font-size: 0.875rem;
    }

    .scripts-collapsed-bar .collapse-icon,
    .sections-collapsed-bar .collapse-icon,
    .preview-collapsed-bar .collapse-icon {
        font-size: 0.625rem;
        opacity: 0.8;
    }

    .scripts-collapsed-bar .collapsed-script-name,
    .collapsed-column-label {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        font-size: 0.7rem;
        font-weight: 500;
        max-height: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .collapse-toggle {
        color: #6c757d;
        transition: color 0.2s;
    }

    .collapse-toggle:hover {
        color: #495057;
    }

    .card.h-100 {
        flex: 1;
        min-height: 0; /* Important to allow shrinking */
        display: flex;
        flex-direction: column;
        border: none !important;
        box-shadow: none !important;
    }

    .card-body {
        flex: 1;
        min-height: 0; /* Important to allow shrinking */
        overflow-y: auto;
    }

    .card-header {
        flex-shrink: 0;
    }

    .card-footer, .preview-footer {
        flex-shrink: 0;
    }

    /* Remove all card divider borders in the layout */
    .three-column-layout .card-header,
    .three-column-layout .card-footer {
        border: none !important;
    }

    .three-column-layout .card-header {
        background: #f8fafc;
    }

    .three-column-layout .card-footer {
        background: #f8fafc;
    }

    /* Preview footer - redesigned */
    .preview-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0.5rem;
        background: linear-gradient(to right, #f8fafc, #f1f5f9);
        gap: 0.5rem;
    }

    .preview-footer-stats {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .stat-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.25rem 0.5rem;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        font-size: 0.7rem;
        font-weight: 500;
        color: #64748b;
        transition: all 0.15s ease;
        text-decoration: none;
        cursor: default;
    }

    .stat-pill i {
        font-size: 0.6rem;
    }

    .stat-pill.scripts {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        border-color: #93c5fd;
        color: #1e40af;
    }

    .stat-pill.toggle {
        cursor: pointer;
        background: #f1f5f9;
        color: #94a3b8;
    }

    .stat-pill.toggle:hover {
        background: #e2e8f0;
        border-color: #cbd5e1;
    }

    .stat-pill.toggle.active {
        background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
        border-color: #86efac;
        color: #15803d;
    }

    .stat-pill.drive {
        cursor: pointer;
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border-color: #fcd34d;
        color: #92400e;
    }

    .stat-pill.drive:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .sync-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.65rem;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border: none;
        border-radius: 0.375rem;
        font-size: 0.7rem;
        font-weight: 600;
        color: white;
        cursor: pointer;
        transition: all 0.15s ease;
        box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
    }

    .sync-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(37, 99, 235, 0.3);
    }

    .sync-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .sync-btn i {
        font-size: 0.65rem;
    }

    /* Sync folder selector */
    .sync-folder-selector {
        display: flex;
        align-items: center;
    }

    .sync-folder-select {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
        height: auto !important;
        min-height: 0 !important;
        border-radius: 0.375rem;
        border: 1px solid #d1d5db;
        background-color: white;
        min-width: 120px;
        max-width: 150px;
    }

    .sync-folder-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
        outline: none;
    }

    .sync-folder-select:disabled {
        background-color: #f3f4f6;
        cursor: not-allowed;
    }

    /* Modal layout - no scrolling on modal itself */
    .modal-content-large {
        display: flex;
        flex-direction: column;
        width: min(95vw, 1700px);
        height: 90vh !important;
        max-height: 90vh !important;
        overflow: hidden !important;
    }

    .modal-content-large .modal-header {
        flex-shrink: 0;
        padding: 0.5rem 0.75rem !important;
    }

    .script-shoot-close-btn {
        white-space: nowrap;
        font-weight: 500;
    }

    .modal-content-large .modal-body {
        flex: 1;
        padding: 0.5rem !important;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    /* Validation toast - floating */
    .validation-toast {
        position: absolute;
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 1px solid #f59e0b;
        color: #92400e;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 100;
        animation: slideUp 0.3s ease;
    }

    .validation-toast-close {
        background: none;
        border: none;
        color: #92400e;
        font-size: 1.1rem;
        cursor: pointer;
        padding: 0;
        margin-left: 0.5rem;
        opacity: 0.7;
    }

    .validation-toast-close:hover {
        opacity: 1;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(1rem);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }

    /* Sticky headers - compact */
    .sticky-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #f8fafc;
        padding: 0.35rem 0.5rem !important;
        border: none !important;
    }

    .sticky-header h6 {
        font-size: 0.8rem !important;
    }

    /* Search bar - compact */
    .search-bar {
        position: relative;
    }

    .search-bar .input-group {
        border-radius: 0.25rem;
        overflow: hidden;
    }

    .search-bar .input-group-text {
        background: #f8f9fa;
        border-right: none;
        color: #6c757d;
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    .search-bar input.form-control {
        border-left: none;
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    .search-bar input.form-control:focus {
        box-shadow: none;
        border-color: #ced4da;
    }

    .search-bar input.form-control:focus + .input-group-text,
    .search-bar .input-group:focus-within .input-group-text {
        border-color: #86b7fe;
    }

    .search-bar .btn-outline-secondary {
        border-left: none;
        padding: 0.2rem 0.35rem;
        font-size: 0.7rem;
    }

    /* Filter bar - compact */
    .filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        align-items: center;
    }

    .filter-bar select {
        flex: 1;
        min-width: 80px;
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
    }

    .filter-bar .form-check {
        margin: 0;
        white-space: nowrap;
    }

    .filter-bar .form-check-label {
        cursor: pointer;
        user-select: none;
        font-size: 0.65rem;
    }

    .filter-bar .form-check-input {
        width: 0.85rem;
        height: 0.85rem;
    }

    /* Category grouping - compact */
    .category-group {
        margin-bottom: 0.5rem;
    }

    .category-header {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.3rem 0.5rem;
        background: linear-gradient(to right, #f8fafc, white);
        border-left: 2px solid #6b7280;
        border-radius: 0 0.25rem 0.25rem 0;
        margin-bottom: 0.25rem;
        font-weight: 600;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #374151;
    }

    .category-header i {
        font-size: 0.75rem;
    }

    .category-title {
        flex: 1;
    }

    .category-count {
        font-size: 0.6rem;
        padding: 0.1rem 0.35rem;
        border-radius: 9999px;
        color: white;
    }

    .category-add-btn {
        opacity: 0.6;
        transition: opacity 0.2s, transform 0.2s;
    }

    .category-add-btn:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .category-header:hover .category-add-btn {
        opacity: 1;
    }

    /* Section accordion - compact */
    .section-item {
        border: 1px solid #e2e8f0;
        border-radius: 0.25rem;
        margin-bottom: 0.25rem;
        overflow: hidden;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.3rem 0.4rem;
        background: #f8fafc;
        cursor: pointer;
        transition: background 0.2s;
    }

    .section-header:hover {
        background: #f1f5f9;
    }

    .section-header.expanded {
        border-bottom: 1px solid #e2e8f0;
    }

    .section-info {
        display: flex;
        align-items: center;
        gap: 0.2rem;
        flex: 1;
    }

    .section-name {
        font-weight: 500;
        font-size: 0.75rem;
    }

    .section-count {
        font-size: 0.65rem;
    }

    .section-actions {
        display: flex;
        gap: 0.15rem;
    }

    .section-lines {
        padding: 0.3rem;
        background: white;
    }

    .section-instructions {
        font-size: 0.65rem;
        color: #64748b;
        font-style: italic;
        padding: 0.15rem 0.35rem;
        background: #f8fafc;
        border-radius: 0.2rem;
        margin-bottom: 0.25rem;
    }

    /* Line items - compact */
    .line-item {
        display: flex;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.3rem 0.4rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.2rem;
        margin-bottom: 0.15rem;
        cursor: pointer;
        transition: all 0.15s;
    }

    .line-item:hover {
        background: #f8fafc;
    }

    .line-item.selected {
        background: #eff6ff;
        border-color: #3b82f6;
    }

    .line-checkbox {
        flex-shrink: 0;
        transform: scale(0.9);
    }

    .line-content {
        flex: 1;
        min-width: 0;
    }

    .line-text {
        font-size: 0.75rem;
        line-height: 1.35;
        word-wrap: break-word;
    }

    .line-flags {
        display: flex;
        gap: 0.15rem;
        margin-top: 0.15rem;
    }

    .line-flags .flag-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.25rem;
        height: 1rem;
        font-size: 0.55rem;
        border-radius: 0.2rem;
        background: #f1f5f9;
        color: #94a3b8;
        border: 1px solid #e2e8f0;
        cursor: pointer;
        transition: all 0.15s ease;
        padding: 0;
        font-weight: 600;
    }

    .line-flags .flag-btn:hover {
        background: #e2e8f0;
        border-color: #cbd5e1;
        transform: scale(1.05);
    }

    .line-flags .flag-btn.active {
        background: #3b82f6;
        color: white;
        border-color: #2563eb;
    }

    .line-flags .flag-btn.active:hover {
        background: #2563eb;
        border-color: #1d4ed8;
    }

    /* Readonly/disabled state voor niet-geselecteerde zinnen */
    .line-flags .flag-btn.readonly,
    .line-flags .flag-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
    }

    .line-flags .flag-btn.readonly:hover,
    .line-flags .flag-btn:disabled:hover {
        background: #f1f5f9;
        border-color: #e2e8f0;
        transform: none !important;
    }

    .line-flags .flag-btn.readonly.active,
    .line-flags .flag-btn:disabled.active {
        background: #93c5fd;
        border-color: #93c5fd;
    }

    .line-flags .flag-btn.version-add,
    .line-flags .flag-btn.version-remove {
        width: 1rem;
        font-size: 0.65rem;
        background: #f8fafc;
        color: #64748b;
        border: 1px dashed #cbd5e1;
    }

    .line-flags .flag-btn.version-add:hover {
        background: #dcfce7;
        color: #16a34a;
        border-color: #86efac;
    }

    .line-flags .flag-btn.version-remove:hover {
        background: #fee2e2;
        color: #dc2626;
        border-color: #fca5a5;
    }

    .line-flags .flag-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 1.25rem;
        padding: 0 0.5rem;
        font-size: 0.625rem;
        border-radius: 0.25rem;
        font-weight: 600;
    }

    .line-flags .flag-badge.remarketing {
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #fcd34d;
    }

    .line-flags .flag-badge.age-section {
        background: #dbeafe;
        color: #1e40af;
        border: 1px solid #60a5fa;
    }

    /* Age Line Item Styles */
    .age-line-item {
        border-left: 3px solid #3b82f6;
    }

    .age-line-item.selected {
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        border-left-color: #1d4ed8;
    }

    .age-line-indicator {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.25rem;
        height: 1.25rem;
        background: #dbeafe;
        color: #1e40af;
        border-radius: 0.25rem;
        font-size: 0.625rem;
        margin-right: 0.375rem;
    }

    .age-line-flags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        align-items: center;
        margin-top: 0.375rem;
        padding: 0.375rem;
        background: rgba(59, 130, 246, 0.05);
        border-radius: 0.375rem;
        border: 1px dashed #93c5fd;
    }

    .age-variant-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 1.25rem;
        padding: 0 0.5rem;
        font-size: 0.625rem;
        font-weight: 700;
        background: #3b82f6;
        color: white;
        border-radius: 0.25rem;
        margin-left: 0.25rem;
    }

    /* Script Count Badge in Footer - compact */
    .script-count-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.2rem;
        padding: 0.1rem 0.3rem;
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        color: #1e40af;
        border-radius: 0.2rem;
        font-size: 0.6rem;
        border: 1px solid #93c5fd;
    }

    .script-count-badge i {
        font-size: 0.5rem;
    }

    .footer-stats {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem;
    }

    .remarketing-toggle .form-check-input {
        width: 1.5rem;
        height: 0.75rem;
    }

    .x-small {
        font-size: 0.65rem !important;
    }

    .line-actions {
        flex-shrink: 0;
    }

    /* Script list - compact */
    .script-list {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .script-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.3rem 0.4rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.2rem;
        cursor: pointer;
        transition: all 0.15s;
    }

    .script-item:hover {
        background: #f8fafc;
    }

    .script-item.active {
        background: #eff6ff;
        border-color: #3b82f6;
    }

    .script-name {
        font-size: 0.75rem;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .script-actions {
        display: flex;
        gap: 0.25rem;
        flex-shrink: 0;
    }

    .script-actions .btn {
        padding: 0.1rem 0.25rem;
        font-size: 0.7rem;
    }

    /* Recent Scripts Panel & Script Search */
    .recent-scripts-section,
    .script-search-section {
        border-top: 1px solid #e2e8f0;
        padding-top: 0.75rem;
    }

    .script-search-container {
        position: relative;
    }

    .script-search-input .form-control {
        font-size: 0.8rem;
    }

    .script-search-input .form-text {
        font-size: 0.65rem;
        color: #94a3b8;
    }

    .script-search-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #e2e8f0;
        border-top: none;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        max-height: 350px;
        overflow-y: auto;
        z-index: 1050;
    }

    .search-dropdown-header {
        padding: 0.5rem 0.75rem;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .search-dropdown-loading,
    .search-dropdown-empty,
    .search-dropdown-hint {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-dropdown-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.625rem 0.75rem;
        border-bottom: 1px solid #f1f5f9;
        cursor: pointer;
        transition: background 0.15s;
    }

    .search-dropdown-item:last-child {
        border-bottom: none;
    }

    .search-dropdown-item:hover {
        background: #f1f5f9;
    }

    .search-item-content {
        flex: 1;
        min-width: 0;
    }

    .search-item-client {
        font-size: 0.7rem;
        color: #64748b;
        margin-bottom: 0.125rem;
    }

    .search-item-client .badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.35rem;
    }

    .search-item-script {
        font-size: 0.8rem;
        font-weight: 500;
        color: #1e293b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-item-meta {
        font-size: 0.65rem;
        color: #94a3b8;
        margin-top: 0.125rem;
    }

    .search-item-actions {
        display: flex;
        gap: 0.25rem;
        margin-left: 0.5rem;
    }

    .recent-scripts-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        cursor: pointer;
        border-radius: 0.375rem;
        transition: background 0.15s;
    }

    .recent-scripts-header:hover {
        background: #f1f5f9;
    }

    .recent-scripts-content {
        margin-top: 0.5rem;
    }

    .recent-script-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.5rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.375rem;
        margin-bottom: 0.375rem;
        background: #fafafa;
    }

    .recent-script-item:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
    }

    .recent-script-info {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
    }

    .recent-script-client {
        font-size: 0.7rem;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .recent-script-name {
        font-weight: 500;
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .recent-script-meta {
        font-size: 0.65rem;
        color: #94a3b8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .recent-script-actions {
        display: flex;
        gap: 0.25rem;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }

    .btn-xs {
        padding: 0.15rem 0.35rem;
        font-size: 0.7rem;
        line-height: 1;
    }

    .x-small {
        font-size: 0.7rem;
    }

    /* Modal Medium Size */
    .modal-medium {
        background: white;
        border-radius: 0.5rem;
        width: 100%;
        max-width: 500px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    /* Preview - compact */
    .preview-body {
        padding: 0.5rem;
        overflow-y: auto;
    }

    .preview-script-content {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .preview-title {
        font-size: 1.1rem;
        font-weight: 700;
        padding: 0.35rem 0;
        color: #1e293b;
        text-align: center;
    }

    .preview-divider {
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 0.5rem;
    }

    .preview-half-space {
        height: 0.25rem;
    }

    .preview-spacer {
        height: 0.5rem;
    }

    .preview-main-section {
        margin-bottom: 0.75rem;
    }

    .preview-main-header {
        font-size: 0.95rem;
        font-weight: 700;
        color: #1e293b;
        padding: 0.35rem 0;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 0.35rem;
    }

    .preview-section-header {
        font-size: 0.8rem;
        font-weight: 600;
        color: #334155;
        padding: 0.15rem 0;
        margin-top: 0.35rem;
    }

    .preview-instruction {
        font-size: 0.7rem;
        color: #64748b;
        font-style: italic;
        padding: 0.1rem 0;
        margin: 0.1rem 0;
    }

    .preview-line {
        padding: 0.15rem 0;
        margin: 0.1rem 0;
        line-height: 1.4;
        font-size: 0.75rem;
    }

    .preview-line-instruction {
        font-size: 0.7rem;
        color: #64748b;
        font-style: italic;
        padding: 0.1rem 0;
    }

    .audience-icon {
        font-size: 0.65rem;
        margin-right: 0.15rem;
    }

    .audience-icon.men { color: #3b82f6; }
    .audience-icon.women { color: #ec4899; }
    .audience-icon.both { color: #8b5cf6; }
    .audience-icon.general { color: #94a3b8; }

    .preview-empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: #94a3b8;
    }

    .preview-empty-state i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .preview-empty-state p {
        font-size: 0.8rem;
    }

    .preview-reorder-hint {
        font-size: 0.65rem;
        color: #64748b;
        text-align: center;
        padding: 0.3rem;
        background: #f8fafc;
        border-radius: 0.2rem;
        margin-bottom: 0.35rem;
    }

    .preview-draggable-list {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .preview-drag-item {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.3rem 0.4rem;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 0.2rem;
    }

    .drag-handle {
        cursor: grab;
        color: #94a3b8;
        font-size: 0.7rem;
    }

    .drag-handle:hover {
        color: #3b82f6;
    }

    .drag-order {
        width: 1.25rem;
        text-align: center;
        font-size: 0.65rem;
        color: #64748b;
    }

    .drag-audience {
        font-size: 0.65rem;
        color: #3b82f6;
    }

    .drag-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        min-width: 0;
    }

    .drag-text {
        font-size: 0.7rem;
    }

    .drag-instruction {
        font-size: 0.65rem;
        color: #6b7280;
        padding-left: 0.2rem;
        border-left: 1px solid #e5e7eb;
        margin-left: 0.2rem;
    }

    .drag-section {
        font-size: 0.55rem;
        color: #94a3b8;
        background: #f1f5f9;
        padding: 0.1rem 0.25rem;
        border-radius: 0.15rem;
    }

    /* Geconsolideerde leeftijdskaart in variant preview */
    .preview-drag-item.age-line-card {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 1px solid #f59e0b;
    }

    .preview-drag-item.age-line-card .drag-audience.age-indicator {
        color: #d97706;
        font-size: 0.75rem;
    }

    .preview-drag-item.age-line-card .drag-section.age-section-badge {
        background: #fbbf24;
        color: #78350f;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .age-count-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1rem;
        height: 1rem;
        font-size: 0.55rem;
        font-weight: 600;
        background: #78350f;
        color: white;
        border-radius: 50%;
        padding: 0 0.2rem;
    }

    /* Variant stats bar - compact */
    .variant-stats-bar {
        display: flex;
        gap: 0.15rem;
        padding: 0.25rem 0.35rem;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        overflow-x: auto;
    }

    .variant-stat-btn {
        display: flex;
        align-items: center;
        gap: 0.15rem;
        padding: 0.15rem 0.35rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.2rem;
        background: white;
        cursor: pointer;
        font-size: 0.65rem;
        transition: all 0.15s;
    }

    .variant-stat-btn:hover {
        border-color: #3b82f6;
    }

    .variant-stat-btn.active {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
    }

    .variant-stat-btn.empty {
        opacity: 0.5;
    }

    .variant-icon {
        font-size: 0.75rem;
    }

    .variant-label {
        font-size: 0.6rem;
    }

    .variant-count {
        font-size: 0.6rem;
        font-weight: 600;
    }

    .variant-selector {
        width: auto;
        min-width: 120px;
        font-size: 0.75rem;
        padding: 0.2rem 0.35rem;
    }

    /* Preview script content - compact */
    .preview-script-content {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .preview-script-content .section-header {
        font-weight: 600;
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
        color: #1e293b;
        font-size: 0.8rem;
    }

    .preview-script-content .instruction {
        font-style: italic;
        color: #64748b;
        font-size: 0.7rem;
    }

    /* Modal styles */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10200;
    }

    .modal-small, .modal-medium {
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        max-height: 90vh;
        overflow: auto;
    }

    .modal-small {
        width: 350px;
    }

    .modal-medium {
        width: 450px;
    }

    .modal-header-sm {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .modal-body-sm {
        padding: 1rem;
    }

    .modal-footer-sm {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-top: 1px solid #e2e8f0;
    }

    .btn-close-sm {
        background: none;
        border: none;
        font-size: 1.25rem;
        cursor: pointer;
        color: #64748b;
    }

    /* SortableJS ghost/drag classes */
    .sortable-ghost {
        opacity: 0.4;
        background: #eff6ff !important;
        border: 2px dashed #3b82f6 !important;
    }

    .sortable-drag {
        opacity: 1 !important;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid #3b82f6 !important;
        z-index: 9999 !important;
    }

    /* Global fallback class - wordt door SortableJS toegevoegd aan het gekloon element */
    .sortable-fallback {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        background: #dbeafe !important;
        box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5) !important;
        border: 3px solid #2563eb !important;
        border-radius: 0.5rem !important;
        z-index: 2147483647 !important;
        pointer-events: none !important;
        min-width: 200px !important;
    }

    /* DRAG & DROP: Geen overflow changes nodig!
       De sortable clone wordt via fallbackOnBody: true op het BODY element geplaatst
       met z-index: 2147483647, dus hij is altijd zichtbaar boven alles.
       Overflow: visible zou scroll posities resetten en is NIET nodig. */

    /* Voorkom text selectie tijdens drag */
    body.dragging-active {
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }

    body.dragging-active * {
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }

    /* Element dat wordt gedragged - krijgt .dragging class via JS */
    .preview-line-draggable.dragging {
        opacity: 0.5 !important;
        background: #fef3c7 !important;
        border: 2px dashed #f59e0b !important;
    }

    /* Specifieke styles voor preview-drag-item tijdens drag */
    .preview-drag-item.sortable-drag,
    .preview-drag-item.sortable-fallback {
        opacity: 1 !important;
        visibility: visible !important;
        background: #ffffff !important;
        box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4) !important;
        border: 2px solid #3b82f6 !important;
        border-radius: 0.25rem !important;
        z-index: 999999 !important;
        position: fixed !important;
        pointer-events: none;
    }

    .preview-drag-item.sortable-chosen {
        background: #f0f9ff !important;
        border-color: #3b82f6 !important;
    }

    /* Clickable preview lines */
    .clickable-preview-line {
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.1s ease;
        border-radius: 0.25rem;
    }

    .clickable-preview-line:hover {
        background-color: #e0e7ff !important;
        transform: translateX(2px);
    }

    .preview-script-content .clickable-preview-line:hover {
        background-color: #e0e7ff;
    }

    /* Highlighted line in sections column */
    .line-item.highlighted {
        animation: highlightPulse 2s ease-out;
        background-color: #fef3c7 !important;
        border-color: #f59e0b !important;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
    }

    @keyframes highlightPulse {
        0% {
            background-color: #fbbf24;
            box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.5);
        }
        50% {
            background-color: #fef3c7;
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
        }
        100% {
            background-color: #fef3c7;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
        }
    }

    /* Preview drag item click feedback */
    .preview-drag-item.clickable-preview-line:active {
        transform: scale(0.98);
    }

    /* Section-based sortable containers for "Alle varianten" view */
    .section-sortable-container {
        min-height: 20px;
        margin-bottom: 0.5rem;
    }

    .preview-line-draggable {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.35rem 0.5rem;
        margin-bottom: 0.25rem;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 0.375rem;
        transition: all 0.15s ease;
    }

    .preview-line-draggable:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

    .preview-line-draggable.sortable-ghost {
        opacity: 0.4;
        background: #eff6ff !important;
        border: 2px dashed #3b82f6 !important;
    }

    .preview-line-draggable.sortable-chosen {
        background: #f0f9ff;
        border-color: #3b82f6;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    }

    .preview-line-draggable.sortable-drag,
    .preview-line-draggable.sortable-fallback {
        opacity: 1 !important;
        visibility: visible !important;
        background: #ffffff !important;
        box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4) !important;
        border: 2px solid #3b82f6 !important;
        border-radius: 0.375rem !important;
        z-index: 999999 !important;
        position: fixed !important;
        transform: scale(1.02);
        pointer-events: none;
    }

    .section-drag-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        min-width: 20px;
        height: 20px;
        color: #94a3b8;
        cursor: grab;
        flex-shrink: 0;
        padding: 2px;
        border-radius: 4px;
        transition: background-color 0.15s;
    }

    .section-drag-handle:hover {
        background-color: #f1f5f9;
        color: #64748b;
    }

    .section-drag-handle:active {
        cursor: grabbing;
        color: #3b82f6;
        background-color: #e2e8f0;
    }

    .section-drag-handle i {
        pointer-events: none;
    }

    .preview-line-text {
        flex: 1;
        font-size: 0.75rem;
        line-height: 1.4;
        word-break: break-word;
    }

    /* Variant-specifieke line elementen */
    .variant-line-order {
        width: 1.25rem;
        min-width: 1.25rem;
        text-align: center;
        font-size: 0.7rem;
        font-weight: 500;
        color: #64748b;
    }

    .variant-line-audience {
        font-size: 0.7rem;
        color: #3b82f6;
        min-width: 2.5rem;
    }

    .variant-line-audience.age-indicator {
        color: #d97706;
    }

    .variant-line-section {
        font-size: 0.6rem;
        color: #94a3b8;
        background: #f1f5f9;
        padding: 0.15rem 0.35rem;
        border-radius: 0.2rem;
        white-space: nowrap;
    }

    .variant-line-section.age-section-badge {
        background: #fbbf24;
        color: #78350f;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    /* Warning: meerdere zinnen uit dezelfde sectie */
    .duplicate-section-warning {
        color: #f59e0b;
        font-size: 0.7rem;
        margin-right: 0.25rem;
        cursor: help;
        position: relative;
    }

    .duplicate-section-warning:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background: #292524;
        color: #fef3c7;
        padding: 0.35rem 0.6rem;
        border-radius: 6px;
        font-size: 0.75rem;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
        border: 1px solid #f59e0b;
    }

    .duplicate-section-warning:hover::before {
        content: '';
        position: absolute;
        bottom: 105%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #292524;
        z-index: 1000;
        pointer-events: none;
    }

    .preview-line-draggable.has-duplicate-section {
        border-left: 2px solid #f59e0b;
    }

    /* Age line card styling voor variant views */
    .preview-line-draggable.age-line-card {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border: 1px solid #f59e0b;
    }

    .preview-line-draggable.age-line-card:hover {
        background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
        border-color: #d97706;
    }

    /* Age lines dropdown - klikbare chip met dropdown lijst */
    .age-lines-dropdown-container {
        position: relative;
    }

    .age-dropdown-trigger {
        cursor: pointer;
        display: flex !important;
        align-items: center;
        gap: 0.25rem;
        transition: all 0.15s ease;
    }

    .age-dropdown-trigger:hover {
        background: #f59e0b !important;
        color: white !important;
    }

    .age-dropdown-trigger .dropdown-arrow {
        font-size: 0.5rem;
        transition: transform 0.2s ease;
    }

    .age-lines-dropdown-container.open .age-dropdown-trigger .dropdown-arrow {
        transform: rotate(180deg);
    }

    .age-lines-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        min-width: 300px;
        max-width: 400px;
        max-height: 250px;
        overflow-y: auto;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .age-lines-dropdown-container.open .age-lines-dropdown {
        display: block;
    }

    .age-lines-dropdown-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        font-weight: 600;
        color: #64748b;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .age-line-dropdown-item {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid #f1f5f9;
        transition: background 0.15s ease;
        cursor: pointer;
    }

    .age-line-dropdown-item:last-child {
        border-bottom: none;
    }

    .age-line-dropdown-item:hover {
        background: #fef3c7;
    }

    .age-line-number {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.65rem;
        font-weight: 600;
        color: #78350f;
        background: #fde68a;
        border-radius: 50%;
    }

    .age-line-text {
        font-size: 0.75rem;
        color: #334155;
        line-height: 1.4;
    }

    /* Gegroepeerde instructie - komt NA een groep zinnen met dezelfde instructie */
    .preview-grouped-instruction {
        font-size: 0.8rem;
        color: #6b7280;
        font-style: italic;
        padding: 0.35rem 0.5rem;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        background: #f8fafc;
        border-left: 3px solid #cbd5e1;
        border-radius: 0 0.25rem 0.25rem 0;
    }

    /* Gegroepeerde instructie voor variant preview (specifieke variant tabs) */
    .preview-grouped-instruction-variant {
        font-size: 0.75rem;
        color: #6b7280;
        font-style: italic;
        padding: 0.3rem 0.5rem 0.3rem 2.5rem; /* Extra padding links voor alignment met drag items */
        margin-top: 0.15rem;
        margin-bottom: 0.35rem;
        background: #f1f5f9;
        border-left: 2px solid #94a3b8;
        border-radius: 0 0.25rem 0.25rem 0;
    }

    .preview-line-instr-badge {
        color: #94a3b8;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .preview-line-instr-badge:hover {
        color: #3b82f6;
    }

    /* Reorder hint for section sortables */
    .section-reorder-hint {
        font-size: 0.7rem;
        color: #94a3b8;
        margin-bottom: 0.25rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
