        /* ============================================
           RESET & BASICS
           ============================================ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            min-height: 100vh;
            color: #e0e0e0;
        }

        /* ============================================
           HEADER & NAVIGATION
           ============================================ */
        header {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            padding: 15px 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: #f39c12;
        }

        .logo span {
            color: #e0e0e0;
        }

        /* Pipeline Sub-Navigation */
        .pipeline-subnav {
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding: 10px 30px;
            position: sticky;
            top: 62px;
            z-index: 99;
        }

        .pipeline-subnav-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .progress-step {
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            background: rgba(255, 255, 255, 0.05);
            color: #888;
            transition: all 0.3s;
            cursor: pointer;
        }

        .progress-step.active {
            background: #f39c12;
            color: #1a1a2e;
            font-weight: bold;
        }

        .progress-step.completed {
            background: rgba(46, 204, 113, 0.3);
            color: #2ecc71;
        }

        .progress-step.skipped {
            background: rgba(255, 255, 255, 0.02);
            color: #555;
            text-decoration: line-through;
            cursor: default;
        }

        .progress-step:hover:not(.active):not(.skipped) {
            background: rgba(255, 255, 255, 0.1);
        }

        /* New Content Button (accent) */
        .btn-new-content {
            background: rgba(0, 212, 170, 0.12) !important;
            border-color: rgba(0, 212, 170, 0.4) !important;
            color: #00d4aa !important;
            font-weight: 600 !important;
        }

        .btn-new-content:hover {
            background: rgba(0, 212, 170, 0.22) !important;
            border-color: rgba(0, 212, 170, 0.6) !important;
        }

        /* ============================================
           MAIN CONTAINER
           ============================================ */
        main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px;
        }

        .screen {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .screen.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ============================================
           CARDS & PANELS
           ============================================ */
        .card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .card h2 {
            color: #f39c12;
            margin-bottom: 20px;
            font-size: 1.3rem;
        }

        .card h3 {
            color: #e0e0e0;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        /* ============================================
           FORM ELEMENTS
           ============================================ */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #aaa;
            font-size: 0.9rem;
        }

        .form-group label .required {
            color: #e74c3c;
        }

        input[type="text"],
        textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.3);
            color: #e0e0e0;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        input[type="text"]:focus,
        textarea:focus {
            outline: none;
            border-color: #f39c12;
        }

        textarea {
            min-height: 120px;
            resize: vertical;
        }

        /* ============================================
           BUTTONS
           ============================================ */
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }

        .btn-primary {
            background: #f39c12;
            color: #1a1a2e;
        }

        .btn-primary:hover {
            background: #e67e22;
            transform: translateY(-2px);
        }

        .btn-primary:disabled {
            background: #666;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #e0e0e0;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .btn-group {
            display: flex;
            gap: 15px;
            margin-top: 25px;
        }

        /* ============================================
           TRIGGER BUTTONS (Screen A)
           ============================================ */
        .trigger-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .trigger-btn {
            padding: 25px 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .trigger-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .trigger-btn.selected {
            background: rgba(243, 156, 18, 0.2);
            border-color: #f39c12;
        }

        .trigger-btn .icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .trigger-btn .title {
            font-weight: bold;
            color: #e0e0e0;
            margin-bottom: 5px;
        }

        .trigger-btn .desc {
            font-size: 0.8rem;
            color: #888;
        }

        .pipeline-badge {
            display: inline-block;
            margin-top: 8px;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: bold;
            background: rgba(243, 156, 18, 0.25);
            color: #f39c12;
        }

        /* Pipeline Source Tabs */
        .pipeline-tabs {
            display: flex;
            gap: 0;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.08);
        }

        .pipeline-tab {
            padding: 12px 20px;
            cursor: pointer;
            color: #888;
            font-size: 0.9rem;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pipeline-tab:hover {
            color: #ccc;
        }

        .pipeline-tab.active {
            color: #f39c12;
            border-bottom-color: #f39c12;
        }

        .pipeline-tab .tab-count {
            background: rgba(255, 255, 255, 0.1);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
        }

        .pipeline-tab.active .tab-count {
            background: rgba(243, 156, 18, 0.25);
        }

        .pipeline-source {
            display: none;
        }

        .pipeline-source.active {
            display: block;
        }

        /* Pipeline Item Cards */
        .pipeline-item {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 14px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .pipeline-item:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .pipeline-item.selected {
            background: rgba(243, 156, 18, 0.12);
            border-color: #f39c12;
        }

        .pipeline-item-icon {
            font-size: 1.4rem;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .pipeline-item-body {
            flex: 1;
            min-width: 0;
        }

        .pipeline-item-title {
            font-weight: 600;
            color: #e0e0e0;
            margin-bottom: 4px;
        }

        .pipeline-item-meta {
            font-size: 0.82rem;
            color: #888;
        }

        .pipeline-item-badges {
            display: flex;
            gap: 6px;
            margin-top: 6px;
            flex-wrap: wrap;
        }

        .pipeline-item-actions {
            display: flex;
            gap: 6px;
            margin-top: 8px;
        }

        .pipeline-item-actions .btn-pip-action {
            padding: 4px 10px;
            font-size: 0.76rem;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.04);
            color: #aaa;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .pipeline-item-actions .btn-pip-action:hover {
            background: rgba(255,255,255,0.08);
            color: #e0e0e0;
            border-color: rgba(255,255,255,0.2);
        }

        .pipeline-item-actions .btn-pip-summary {
            background: rgba(155, 89, 182, 0.12);
            color: #bb8fce;
            border-color: rgba(155, 89, 182, 0.25);
        }

        .pipeline-item-actions .btn-pip-summary:hover {
            background: rgba(155, 89, 182, 0.22);
            color: #d2b4de;
            border-color: #9b59b6;
        }

        .pipeline-item-actions .btn-pip-summary.loaded {
            background: rgba(46, 204, 113, 0.1);
            color: #82e0aa;
            border-color: rgba(46, 204, 113, 0.25);
        }

        .pipeline-item-actions .btn-pip-summary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .pipeline-item-actions .btn-pip-link {
            background: rgba(52, 152, 219, 0.12);
            color: #7fb3d8;
            border-color: rgba(52, 152, 219, 0.25);
            text-decoration: none;
        }

        .pipeline-item-actions .btn-pip-link:hover {
            background: rgba(52, 152, 219, 0.22);
            color: #a9cce3;
            border-color: #3498db;
        }

        .pipeline-item-inline-summary {
            margin-top: 8px;
            padding: 10px 12px;
            background: rgba(155, 89, 182, 0.06);
            border: 1px solid rgba(155, 89, 182, 0.15);
            border-radius: 8px;
            font-size: 0.82rem;
            color: #ccc;
            display: none;
        }

        .pipeline-item-inline-summary .pip-summary-loading {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #bb8fce;
        }

        .pipeline-item-inline-summary .pip-summary-loading .spinner-small {
            width: 14px;
            height: 14px;
            border: 2px solid rgba(155, 89, 182, 0.2);
            border-top-color: #9b59b6;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .pipeline-item-inline-summary .pip-summary-text {
            line-height: 1.5;
        }

        .pipeline-item-inline-summary .pip-summary-keypoints {
            margin-top: 6px;
            padding-left: 16px;
        }

        .pipeline-item-inline-summary .pip-summary-keypoints li {
            margin-bottom: 3px;
            color: #aaa;
        }

        .pipeline-item-inline-summary .pip-summary-relevance {
            margin-top: 6px;
            padding: 6px 8px;
            background: rgba(243, 156, 18, 0.08);
            border-radius: 6px;
            color: #f39c12;
            font-size: 0.78rem;
        }

        .pipeline-empty {
            text-align: center;
            padding: 30px 20px;
            color: #666;
        }

        .pipeline-empty .empty-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .pipeline-list {
            max-height: 350px;
            overflow-y: auto;
        }

        /* ============================================
           OUTPUT TILES (Screen A)
           ============================================ */
        .output-tiles {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        .output-tile {
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .output-tile:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .output-tile.selected {
            background: rgba(46, 204, 113, 0.2);
            border-color: #2ecc71;
        }

        .output-tile.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            pointer-events: none;
        }

        .output-tile .subtitle {
            font-size: 0.75rem;
            color: #666;
            margin-top: 5px;
        }

        .output-tile .icon {
            font-size: 1.8rem;
            margin-bottom: 8px;
        }

        .output-tile .title {
            font-weight: bold;
            color: #e0e0e0;
        }

        /* ============================================
           TOPIC CARDS (Screen B)
           ============================================ */
        .topics-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .topic-card {
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .topic-card:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .topic-card.selected {
            background: rgba(243, 156, 18, 0.15);
            border-color: #f39c12;
        }

        .topic-card.top-pick {
            border-color: rgba(46, 204, 113, 0.5);
            background: rgba(46, 204, 113, 0.06);
        }
        .topic-card.top-pick:hover {
            border-color: rgba(46, 204, 113, 0.7);
        }
        .topic-card.top-pick.selected {
            background: rgba(243, 156, 18, 0.15);
            border-color: #f39c12;
        }

        .topic-rank-badge {
            position: absolute;
            top: -10px;
            right: 16px;
            padding: 2px 10px;
            border-radius: 10px;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.5px;
        }
        .topic-rank-badge.gold   { background: #f39c12; color: #1a1a2e; }
        .topic-rank-badge.silver { background: #95a5a6; color: #1a1a2e; }
        .topic-rank-badge.bronze { background: #cd7f32; color: #1a1a2e; }

        .topic-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }

        .topic-gesamt-score {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1rem;
            color: #1a1a2e;
        }
        .topic-gesamt-score.score-high   { background: #2ecc71; }
        .topic-gesamt-score.score-medium { background: #f39c12; }
        .topic-gesamt-score.score-low    { background: #e74c3c; }

        .topic-card .topic-title {
            font-weight: bold;
            color: #e0e0e0;
            font-size: 1rem;
            margin: 0;
        }

        .topic-card .topic-rationale {
            color: #888;
            font-size: 0.85rem;
            margin-bottom: 12px;
        }

        .topic-scores {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .score-badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            background: rgba(255, 255, 255, 0.1);
        }

        .score-badge.high {
            background: rgba(46, 204, 113, 0.3);
            color: #2ecc71;
        }

        .score-badge.medium {
            background: rgba(243, 156, 18, 0.3);
            color: #f39c12;
        }

        .score-badge.low {
            background: rgba(231, 76, 60, 0.25);
            color: #e74c3c;
        }

        .topic-evidence-toggle {
            margin-top: 8px;
            padding: 0;
            border: none;
            background: none;
            color: #666;
            font-size: 0.75rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: color 0.2s;
        }
        .topic-evidence-toggle:hover { color: #aaa; }

        .topic-evidence-panel {
            display: none;
            margin-top: 8px;
            padding: 10px 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            font-size: 0.75rem;
            color: #888;
        }
        .topic-evidence-panel.open { display: block; }

        .evidence-section { margin-bottom: 6px; }
        .evidence-section:last-child { margin-bottom: 0; }
        .evidence-label {
            color: #aaa;
            font-weight: 600;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 2px;
        }
        .evidence-items {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }
        .evidence-tag {
            padding: 2px 8px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.06);
            font-size: 0.7rem;
            color: #999;
            max-width: 220px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .rss-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 16px;
            font-size: 0.8rem;
            background: rgba(52, 152, 219, 0.2);
            color: #3498db;
            margin-bottom: 15px;
        }

        .rss-badge.loading {
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .rss-source-link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.75rem;
            color: #3498db;
            text-decoration: none;
            margin-top: 6px;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .rss-source-link:hover {
            opacity: 1;
            text-decoration: underline;
        }

        /* ============================================
           RSS EXPLORER — 3-Panel Layout
           ============================================ */
        .rss-explorer-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            background: #13152a;
            z-index: 200;
            animation: fadeIn 0.25s ease;
        }
        .rss-explorer-overlay.active { display: flex; }

        .rss-explorer {
            display: flex;
            width: 100%; height: 100%;
            overflow: hidden;
        }

        /* --- Sidebar (left) --- */
        .rss-sidebar {
            width: 300px;
            min-width: 200px;
            max-width: 500px;
            background: #141630;
            border-right: 2px solid rgba(255,255,255,0.06);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }
        .rss-sidebar-resize {
            position: absolute;
            top: 0; right: -3px;
            width: 6px; height: 100%;
            cursor: col-resize;
            z-index: 10;
            background: transparent;
            transition: background 0.15s;
        }
        .rss-sidebar-resize:hover,
        .rss-sidebar-resize.dragging {
            background: rgba(243,156,18,0.35);
        }
        .rss-sidebar-header {
            padding: 16px 16px 10px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex-shrink: 0;
        }
        .rss-sidebar-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .rss-sidebar-header h2 {
            color: #f39c12;
            font-size: 1.05rem;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .rss-sidebar-subtitle {
            font-size: 0.72rem;
            color: #555;
            padding-left: 2px;
        }
        .rss-sidebar-close {
            background: none;
            border: none;
            color: #666;
            font-size: 1.3rem;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.15s;
        }
        .rss-sidebar-close:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }

        .rss-sidebar-body {
            flex: 1;
            overflow-y: auto;
            padding: 10px 12px;
        }
        .rss-sidebar-section-title {
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #555;
            margin: 18px 0 6px;
            padding: 4px 8px;
            background: rgba(255,255,255,0.02);
            border-radius: 4px;
        }
        .rss-sidebar-section-title:first-child { margin-top: 4px; }
        .rss-sidebar-section-hint {
            font-size: 0.7rem;
            color: #444;
            font-weight: 400;
            text-transform: none;
            letter-spacing: 0;
            margin-top: 1px;
        }

        /* --- Explorer Tree: Folders --- */
        .rss-folder-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }
        .rss-folder-node { margin-bottom: 1px; }

        .rss-folder-header {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 9px 10px;
            border-radius: 7px;
            cursor: pointer;
            transition: all 0.15s;
            background: transparent;
            border: 1px solid transparent;
        }
        .rss-folder-header:hover {
            background: rgba(255,255,255,0.04);
            border-color: rgba(255,255,255,0.06);
        }
        .rss-folder-header.active {
            background: rgba(243,156,18,0.1);
            border-color: rgba(243,156,18,0.25);
        }
        .rss-folder-header .folder-chevron {
            font-size: 0.6rem;
            color: #666;
            transition: transform 0.2s;
            width: 12px;
            text-align: center;
            flex-shrink: 0;
        }
        .rss-folder-header.expanded .folder-chevron { transform: rotate(90deg); }
        .rss-folder-header .folder-icon { font-size: 1.15rem; flex-shrink: 0; }
        .rss-folder-header .folder-name {
            flex: 1;
            color: #ddd;
            font-weight: 600;
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .rss-folder-header .folder-count {
            font-size: 0.7rem;
            color: #777;
            background: rgba(255,255,255,0.07);
            padding: 2px 8px;
            border-radius: 8px;
            flex-shrink: 0;
        }
        .rss-folder-header .folder-actions {
            display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s;
            flex-shrink: 0;
        }
        .rss-folder-header:hover .folder-actions { opacity: 1; }
        .rss-folder-header .folder-action-btn {
            background: none; border: none; color: #666;
            cursor: pointer; font-size: 0.78rem; padding: 3px 5px;
            border-radius: 4px; transition: all 0.15s;
        }
        .rss-folder-header .folder-action-btn:hover { color: #e0e0e0; background: rgba(255,255,255,0.08); }
        .rss-folder-header .folder-action-btn.search-btn:hover { color: #f39c12; }
        .rss-folder-header .folder-action-btn.rename-btn:hover { color: #3498db; }
        .rss-folder-header .folder-action-btn.delete-btn:hover { color: #e74c3c; }

        /* Inline rename */
        .folder-rename-input {
            flex: 1;
            padding: 4px 8px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(243,156,18,0.4);
            border-radius: 5px;
            color: #e0e0e0;
            font-size: 0.88rem;
            font-weight: 600;
            outline: none;
        }

        /* Folder children (feeds inside folder) */
        .rss-folder-children {
            display: none;
            padding-left: 20px;
            margin-top: 1px;
        }
        .rss-folder-node.expanded > .rss-folder-children { display: block; }

        .rss-folder-feed {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 5px 10px;
            font-size: 0.78rem;
            color: #999;
            border-radius: 5px;
            transition: all 0.15s;
        }
        .rss-folder-feed:hover { background: rgba(255,255,255,0.03); color: #bbb; }
        .rss-folder-feed .feed-dot {
            width: 5px; height: 5px;
            border-radius: 50%;
            background: #555;
            flex-shrink: 0;
        }
        .rss-folder-feed .feed-label {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .rss-folder-feed .feed-actions {
            display: flex; gap: 2px;
            opacity: 0; transition: opacity 0.15s;
            flex-shrink: 0;
        }
        .rss-folder-feed:hover .feed-actions { opacity: 1; }
        .rss-folder-feed .feed-move-btn,
        .rss-folder-feed .feed-remove-btn {
            background: none; border: none;
            cursor: pointer;
            font-size: 0.7rem; padding: 2px 4px;
            border-radius: 3px; transition: all 0.15s;
        }
        .rss-folder-feed .feed-move-btn { color: #888; }
        .rss-folder-feed .feed-move-btn:hover { color: #f39c12; background: rgba(243,156,18,0.1); }
        .rss-folder-feed .feed-remove-btn { color: #e74c3c; }
        .rss-folder-feed .feed-remove-btn:hover { background: rgba(231,76,60,0.1); }

        .feed-move-dropdown {
            position: absolute;
            right: 0; top: 100%;
            min-width: 160px;
            background: #1e2045;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.4);
            z-index: 50;
            padding: 4px 0;
            animation: fadeIn 0.15s ease;
        }
        .feed-move-dropdown-item {
            display: flex; align-items: center; gap: 6px;
            padding: 7px 12px;
            font-size: 0.78rem; color: #ccc;
            cursor: pointer; transition: background 0.12s;
            border: none; background: none; width: 100%;
            text-align: left;
        }
        .feed-move-dropdown-item:hover { background: rgba(243,156,18,0.1); color: #f39c12; }
        .feed-move-dropdown-item.current { color: #555; cursor: default; }
        .feed-move-dropdown-item.current:hover { background: none; color: #555; }
        .rss-folder-feed-add {
            display: flex; gap: 4px;
            padding: 4px 10px; margin-top: 2px;
        }
        .rss-folder-feed-add input {
            flex: 1; padding: 4px 8px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 5px; color: #ddd; font-size: 0.75rem;
        }
        .rss-folder-feed-add button {
            padding: 4px 8px;
            background: rgba(52,152,219,0.15); color: #3498db;
            border: 1px solid rgba(52,152,219,0.2);
            border-radius: 5px; cursor: pointer; font-size: 0.72rem;
            transition: all 0.15s;
        }
        .rss-folder-feed-add button:hover { background: rgba(52,152,219,0.25); }

        .rss-folder-create {
            display: flex; gap: 5px; margin-top: 10px; padding: 0 4px;
        }
        .rss-folder-create input {
            flex: 1; padding: 8px 10px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 7px; color: #ddd; font-size: 0.84rem;
        }
        .rss-folder-create button {
            padding: 8px 14px;
            background: rgba(46,204,113,0.12);
            color: #2ecc71;
            border: 1px solid rgba(46,204,113,0.25);
            border-radius: 7px; cursor: pointer;
            font-size: 0.84rem; transition: all 0.15s;
            white-space: nowrap;
        }
        .rss-folder-create button:hover { background: rgba(46,204,113,0.22); }

        /* --- Sidebar View-Switcher --- */
        .sidebar-view-switch {
            display: flex;
            gap: 2px;
            margin-bottom: 10px;
            background: rgba(255,255,255,0.03);
            border-radius: 8px;
            padding: 3px;
        }
        .sidebar-view-btn {
            flex: 1;
            padding: 7px 8px;
            background: transparent;
            border: 1px solid transparent;
            border-radius: 6px;
            color: #777;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s;
            text-align: center;
        }
        .sidebar-view-btn:hover { color: #bbb; background: rgba(255,255,255,0.04); }
        .sidebar-view-btn.active {
            color: #f39c12;
            background: rgba(243,156,18,0.1);
            border-color: rgba(243,156,18,0.2);
        }
        .sidebar-view-btn.active.ideas-active {
            color: #bb8fce;
            background: rgba(155,89,182,0.1);
            border-color: rgba(155,89,182,0.2);
        }
        .sidebar-view-content { display: none; }
        .sidebar-view-content.active { display: block; }

        /* --- Ideen-Ordner Sidebar --- */
        .idea-folder-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }
        .idea-folder-node { margin-bottom: 1px; }
        .idea-folder-header {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 9px 10px;
            border-radius: 7px;
            cursor: pointer;
            transition: all 0.15s;
            background: transparent;
            border: 1px solid transparent;
        }
        .idea-folder-header:hover {
            background: rgba(155,89,182,0.07);
            border-color: rgba(155,89,182,0.15);
        }
        .idea-folder-header.active {
            background: rgba(155,89,182,0.12);
            border-color: rgba(155,89,182,0.3);
        }
        .idea-folder-header .folder-chevron {
            font-size: 0.6rem; color: #666;
            transition: transform 0.2s; width: 12px;
            text-align: center; flex-shrink: 0;
        }
        .idea-folder-header.expanded .folder-chevron { transform: rotate(90deg); }
        .idea-folder-header .folder-icon { font-size: 1.05rem; flex-shrink: 0; }
        .idea-folder-header .folder-name {
            flex: 1; color: #ddd; font-weight: 600;
            font-size: 0.85rem; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis;
        }
        .idea-folder-header .folder-count {
            font-size: 0.7rem; color: #9b7fbf;
            background: rgba(155,89,182,0.1);
            padding: 2px 8px; border-radius: 8px; flex-shrink: 0;
        }
        .idea-folder-header .folder-actions {
            display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0;
        }
        .idea-folder-header:hover .folder-actions { opacity: 1; }
        .idea-folder-header .folder-action-btn {
            background: none; border: none; color: #666;
            cursor: pointer; font-size: 0.78rem; padding: 3px 5px;
            border-radius: 4px; transition: all 0.15s;
        }
        .idea-folder-header .folder-action-btn:hover { color: #e0e0e0; background: rgba(255,255,255,0.08); }
        .idea-folder-header .folder-action-btn.rename-btn:hover { color: #bb8fce; }
        .idea-folder-header .folder-action-btn.delete-btn:hover { color: #e74c3c; }

        .idea-folder-children {
            display: none;
            padding-left: 16px;
            margin-top: 2px;
        }
        .idea-folder-node.expanded > .idea-folder-children { display: block; }

        .idea-folder-idea {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 5px 8px;
            font-size: 0.76rem;
            color: #999;
            border-radius: 5px;
            transition: all 0.15s;
            cursor: default;
            position: relative;
        }
        .idea-folder-idea:hover { background: rgba(155,89,182,0.06); color: #bbb; }
        .idea-folder-idea .idea-dot {
            width: 16px; height: 16px;
            flex-shrink: 0;
            font-size: 0.7rem;
            text-align: center;
            line-height: 16px;
        }
        .idea-folder-idea .idea-label {
            flex: 1; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis;
        }
        .idea-folder-idea .idea-actions {
            display: flex; gap: 2px;
            opacity: 0; transition: opacity 0.15s;
            flex-shrink: 0;
        }
        .idea-folder-idea:hover .idea-actions { opacity: 1; }
        .idea-folder-idea .idea-move-btn,
        .idea-folder-idea .idea-remove-btn {
            background: none; border: none;
            cursor: pointer; font-size: 0.7rem;
            padding: 2px 4px; border-radius: 3px;
            transition: all 0.15s;
        }
        .idea-folder-idea .idea-move-btn { color: #888; position: relative; }
        .idea-folder-idea .idea-move-btn:hover { color: #bb8fce; background: rgba(155,89,182,0.1); }
        .idea-folder-idea .idea-remove-btn { color: #e74c3c; }
        .idea-folder-idea .idea-remove-btn:hover { background: rgba(231,76,60,0.1); }

        .idea-move-dropdown {
            position: absolute;
            right: 0; top: 100%;
            min-width: 170px;
            background: #1e2045;
            border: 1px solid rgba(155,89,182,0.25);
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.4);
            z-index: 50;
            padding: 4px 0;
            animation: fadeIn 0.15s ease;
        }
        .idea-move-dropdown-item {
            display: flex; align-items: center; gap: 6px;
            padding: 7px 12px;
            font-size: 0.78rem; color: #ccc;
            cursor: pointer; transition: background 0.12s;
            border: none; background: none; width: 100%;
            text-align: left;
        }
        .idea-move-dropdown-item:hover { background: rgba(155,89,182,0.12); color: #bb8fce; }

        /* --- Main panel (center) --- */
        .rss-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
            background: #13152a;
        }

        /* Tab-Navigation im Hauptbereich */
        .rss-main-tabs {
            display: flex;
            border-bottom: 2px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
            padding: 0 12px;
            gap: 0;
            background: rgba(0,0,0,0.15);
            align-items: stretch;
        }
        .rss-main-tab {
            padding: 13px 22px 11px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #666;
            cursor: pointer;
            border: none;
            background: none;
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }
        .rss-main-tab:hover { color: #aaa; background: rgba(255,255,255,0.02); }
        .rss-main-tab.active { color: #f39c12; border-bottom-color: #f39c12; }
        .rss-main-tab.active[data-tab="discover"] { color: #bb8fce; border-bottom-color: #bb8fce; }
        .rss-main-tab.active[data-tab="research"] { color: #9b59b6; border-bottom-color: #9b59b6; }
        .rss-main-tab .tab-icon { font-size: 1.05rem; }
        .rss-main-tab .tab-hint {
            font-size: 0.68rem; font-weight: 400; color: #555;
        }
        .rss-main-tab.active .tab-hint { color: #8a7230; }
        .rss-main-tab.active[data-tab="discover"] .tab-hint { color: #7d5fad; }
        .rss-main-tab.active[data-tab="research"] .tab-hint { color: #7d5fad; }
        .rss-main-tab-spacer { flex: 1; }
        .rss-main-tab-close {
            padding: 6px 10px;
            background: none; border: none;
            color: #555; font-size: 1.15rem;
            cursor: pointer; border-radius: 4px;
            display: flex; align-items: center;
        }
        .rss-main-tab-close:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }

        /* Push-News Badge */
        .rss-pushnews-badge {
            display: inline-block;
            margin-left: 6px;
            padding: 1px 7px;
            font-size: 0.7rem;
            font-weight: 700;
            color: #fff;
            background: #e74c3c;
            border-radius: 10px;
            min-width: 18px;
            text-align: center;
            line-height: 1.4;
        }
        .rss-main-tab.active[data-tab="pushnews"] { color: #e74c3c; border-bottom-color: #e74c3c; }

        /* Push-News Karten */
        .pushnews-card { transition: background 0.15s ease; }
        .pushnews-card:hover { background: rgba(255,255,255,0.04) !important; }

        /* Start-Screen Karten */
        .rss-start-card {
            transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
            cursor: pointer;
        }
        .rss-start-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.25);
            border-color: rgba(255,255,255,0.2) !important;
        }

        /* Ordner-Picker Popup */
        .folder-picker-popup {
            position: absolute; z-index: 9999;
            background: #1e1e2e; border: 1px solid rgba(255,255,255,0.12);
            border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            min-width: 200px; max-width: 280px; padding: 6px 0;
            max-height: 60vh; overflow-y: auto;
            animation: fpFadeIn 0.12s ease;
        }
        @keyframes fpFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
        .folder-picker-popup .fp-title {
            padding: 8px 14px 6px; font-size: 0.72rem; color: #888;
            text-transform: uppercase; letter-spacing: 0.5px;
        }
        .folder-picker-popup .fp-item {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 14px; cursor: pointer; font-size: 0.82rem;
            color: #ccc; transition: background 0.1s;
        }
        .folder-picker-popup .fp-item:hover { background: rgba(155,89,182,0.12); color: #e0e0e0; }
        .folder-picker-popup .fp-item .fp-icon { flex-shrink: 0; }

        /* Tab-Content */
        .rss-tab-content { display: none; flex: 1; flex-direction: column; overflow: hidden; min-height: 0; }
        .rss-tab-content.active { display: flex; }
        #rss-tab-content-start { overflow-y: auto; }
        #rss-tab-content-discover { overflow-y: auto; padding: 10px; }

        /* Feed Discovery Tab */
        .rss-discover-tab-toolbar {
            display: flex; gap: 8px; align-items: center;
            padding: 16px 24px; flex-shrink: 0;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .rss-discover-tab-toolbar input {
            flex: 1; min-width: 200px;
            padding: 11px 14px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 8px; color: #e0e0e0; font-size: 0.92rem;
        }
        .rss-discover-tab-toolbar input:focus {
            border-color: rgba(155,89,182,0.5); outline: none;
        }
        .rss-discover-search-btn {
            padding: 11px 22px;
            background: rgba(155,89,182,0.18);
            color: #bb8fce;
            border: 1px solid rgba(155,89,182,0.35);
            border-radius: 8px; cursor: pointer;
            font-size: 0.88rem; font-weight: 600;
            transition: all 0.15s; white-space: nowrap;
        }
        .rss-discover-search-btn:hover { background: rgba(155,89,182,0.3); }
        .rss-discover-search-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .rss-discover-results-area {
            flex: 1; overflow-y: auto; padding: 16px 24px;
        }
        .rss-discover-results-info {
            font-size: 0.82rem; color: #888; margin-bottom: 12px;
        }
        .rss-discover-results-info strong { color: #ccc; }
        .discover-feed-card-lg {
            display: flex; align-items: flex-start; justify-content: space-between;
            gap: 14px; padding: 14px 16px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 10px; margin-bottom: 8px;
            transition: border-color 0.15s;
        }
        .discover-feed-card-lg:hover { border-color: rgba(155,89,182,0.3); }
        .discover-feed-info-lg { flex: 1; min-width: 0; }
        .discover-feed-title-lg {
            font-size: 0.92rem; color: #ddd; font-weight: 600; margin-bottom: 3px;
        }
        .discover-feed-desc-lg { font-size: 0.8rem; color: #777; margin-bottom: 4px; }
        .discover-feed-url-lg {
            font-size: 0.72rem; color: #555;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .discover-feed-meta-lg {
            display: flex; gap: 12px; margin-top: 6px; font-size: 0.72rem; color: #555;
        }
        .discover-feed-meta-lg span { display: flex; align-items: center; gap: 3px; }
        .btn-add-discovered-lg {
            padding: 8px 18px;
            background: rgba(155,89,182,0.15);
            color: #bb8fce; border: 1px solid rgba(155,89,182,0.3);
            border-radius: 8px; cursor: pointer;
            font-size: 0.82rem; font-weight: 600;
            white-space: nowrap; flex-shrink: 0;
            transition: all 0.15s; align-self: center;
        }
        .btn-add-discovered-lg:hover { background: rgba(155,89,182,0.28); }
        .btn-add-discovered-lg.added {
            background: rgba(46,204,113,0.15); color: #2ecc71;
            border-color: rgba(46,204,113,0.3); cursor: default;
        }

        .rss-main-header {
            padding: 14px 20px 6px;
            flex-shrink: 0;
            display: flex;
            align-items: baseline;
            gap: 12px;
        }
        .rss-main-header h3 {
            color: #e0e0e0;
            font-size: 1rem;
            margin: 0;
            white-space: nowrap;
        }
        .rss-main-header-hint {
            font-size: 0.75rem;
            color: #555;
        }
        .rss-main-toolbar {
            padding: 8px 20px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            display: flex;
            gap: 8px;
            align-items: center;
            flex-shrink: 0;
            flex-wrap: wrap;
        }
        .rss-main-toolbar input,
        .rss-main-toolbar select {
            padding: 9px 12px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 0.88rem;
        }
        .rss-main-toolbar input:focus,
        .rss-main-toolbar select:focus {
            border-color: rgba(243,156,18,0.4);
            outline: none;
        }
        .rss-main-toolbar input { flex: 1; min-width: 140px; }
        .rss-main-search-btn {
            padding: 9px 18px;
            background: rgba(243,156,18,0.15);
            color: #f39c12;
            border: 1px solid rgba(243,156,18,0.35);
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.88rem;
            font-weight: 600;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .rss-main-search-btn:hover { background: rgba(243,156,18,0.25); }
        .rss-main-search-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        .rss-main-results-bar {
            padding: 8px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            flex-shrink: 0;
        }
        .rss-main-results-info { font-size: 0.8rem; color: #888; }
        .rss-main-results-info strong { color: #ccc; }
        .rss-sort-select {
            padding: 5px 10px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 6px;
            color: #aaa; font-size: 0.78rem;
            cursor: pointer;
        }

        .rss-main-body {
            flex: 1;
            overflow-y: auto;
            padding: 12px 16px;
        }
        .rss-article-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .rss-article-card {
            display: flex;
            flex-direction: column;
            padding: 12px 14px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s;
            border: 1px solid transparent;
            background: transparent;
        }
        .rss-article-card:hover {
            background: rgba(255,255,255,0.03);
            border-color: rgba(255,255,255,0.06);
        }
        .rss-article-card.active {
            background: rgba(243,156,18,0.08);
            border-color: rgba(243,156,18,0.25);
        }
        .rss-article-title {
            font-weight: 600;
            color: #e0e0e0;
            font-size: 0.88rem;
            margin-bottom: 4px;
            line-height: 1.35;
        }
        .rss-article-meta {
            font-size: 0.73rem;
            color: #777;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }
        .rss-article-snippet {
            font-size: 0.78rem;
            color: #888;
            margin-top: 4px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* --- Preview panel (right) --- */
        .rss-preview {
            width: 400px;
            min-width: 400px;
            background: #151730;
            border-left: 2px solid rgba(255,255,255,0.06);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .rss-preview-header {
            padding: 18px 20px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
        }
        .rss-preview-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: #e0e0e0;
            line-height: 1.4;
            margin-bottom: 8px;
        }
        .rss-preview-meta {
            display: flex; flex-wrap: wrap; gap: 10px;
            font-size: 0.78rem; color: #888;
            align-items: center;
        }
        .rss-preview-meta a { color: #3498db; text-decoration: none; }
        .rss-preview-meta a:hover { text-decoration: underline; }

        .rss-preview-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px;
        }
        .rss-preview-summary {
            font-size: 0.88rem;
            color: #bbb;
            line-height: 1.65;
        }
        .rss-preview-kb {
            margin-top: 14px;
            padding: 10px 12px;
            background: rgba(46,204,113,0.06);
            border-left: 3px solid rgba(46,204,113,0.4);
            border-radius: 6px;
            font-size: 0.82rem;
            color: #2ecc71;
        }
        .rss-preview-actions {
            padding: 14px 20px;
            border-top: 1px solid rgba(255,255,255,0.06);
            display: flex;
            gap: 8px;
            align-items: center;
            flex-shrink: 0;
            flex-wrap: wrap;
        }
        .rss-preview-placeholder {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #444;
            text-align: center;
            padding: 40px 20px;
        }
        .rss-preview-placeholder .ph-icon { font-size: 2.5rem; margin-bottom: 12px; }
        .rss-preview-placeholder p { font-size: 0.85rem; max-width: 240px; }

        .btn-save-idea {
            padding: 7px 16px;
            border: 1px solid rgba(46,204,113,0.4);
            border-radius: 8px;
            background: rgba(46,204,113,0.12);
            color: #2ecc71;
            cursor: pointer;
            font-size: 0.82rem;
            font-weight: 600;
            transition: all 0.15s;
        }
        .btn-save-idea:hover { background: rgba(46,204,113,0.22); }
        .btn-save-idea.saved {
            background: rgba(46,204,113,0.25);
            border-color: #2ecc71; cursor: default;
        }
        .btn-open-article {
            padding: 7px 14px;
            border: 1px solid rgba(52,152,219,0.3);
            border-radius: 8px;
            background: rgba(52,152,219,0.1);
            color: #3498db;
            cursor: pointer;
            font-size: 0.82rem;
            text-decoration: none;
            transition: all 0.15s;
        }
        .btn-open-article:hover { background: rgba(52,152,219,0.2); }

        .kb-badge-small {
            padding: 3px 8px; border-radius: 10px;
            font-size: 0.72rem; font-weight: 600;
        }
        .kb-badge-small.match { background: rgba(46,204,113,0.2); color: #2ecc71; }
        .kb-badge-small.no-match { background: rgba(255,255,255,0.06); color: #666; }

        .relevance-badge {
            padding: 3px 8px;
            border-radius: 10px;
            font-size: 0.72rem;
            font-weight: 600;
        }
        .relevance-badge.rel-high   { background: rgba(46,204,113,0.2); color: #2ecc71; }
        .relevance-badge.rel-medium { background: rgba(243,156,18,0.2); color: #f39c12; }
        .relevance-badge.rel-low    { background: rgba(231,76,60,0.15); color: #e74c3c; }
        .relevance-badge.rel-none   { background: rgba(255,255,255,0.06); color: #666; }

        /* Responsive: hide preview <1200px */
        @media (max-width: 1200px) {
            .rss-preview { display: none; }
            .rss-preview-mobile-overlay {
                display: flex !important;
                position: fixed;
                top: 0; left: 0; width: 100vw; height: 100vh;
                background: rgba(0,0,0,0.7);
                z-index: 250;
                justify-content: flex-end;
            }
            .rss-preview-mobile-overlay .rss-preview {
                display: flex;
                width: 420px; max-width: 90vw;
                min-width: auto;
                animation: slideInRight 0.25s ease;
            }
        }
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* Responsive: sidebar drawer <900px */
        @media (max-width: 900px) {
            .rss-sidebar { display: none; }
            .rss-sidebar.mobile-open {
                display: flex;
                position: fixed;
                top: 0; left: 0;
                height: 100vh; z-index: 260;
                animation: slideInLeft 0.2s ease;
            }
            .rss-mobile-sidebar-toggle {
                display: flex !important;
            }
        }
        @keyframes slideInLeft {
            from { transform: translateX(-100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        .rss-mobile-sidebar-toggle {
            display: none;
            padding: 9px 12px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            color: #ccc; cursor: pointer;
            font-size: 0.82rem; transition: all 0.15s;
        }
        .rss-mobile-sidebar-toggle:hover { background: rgba(255,255,255,0.1); color: #f39c12; }

        .feed-category-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.7rem;
            font-weight: 600;
            background: rgba(52, 152, 219, 0.15);
            color: #5dade2;
            border: 1px solid rgba(52, 152, 219, 0.25);
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s;
        }

        .feed-category-badge:hover {
            background: rgba(52, 152, 219, 0.25);
        }

        .feed-category-badge.empty {
            background: rgba(255, 255, 255, 0.04);
            color: #666;
            border-color: rgba(255, 255, 255, 0.1);
        }

        /* (Legacy category-filter and add-row styles removed — replaced by Recherche-Center sidebar styles) */

        /* ============================================
           RESEARCH PROGRESS
           ============================================ */
        .research-step {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            margin-bottom: 6px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
            transition: all 0.3s ease;
        }

        .research-step.active {
            background: rgba(243, 156, 18, 0.1);
            border-left: 3px solid #f39c12;
        }

        .research-step.done {
            background: rgba(46, 204, 113, 0.08);
            border-left: 3px solid #2ecc71;
        }

        .research-step.error {
            background: rgba(231, 76, 60, 0.08);
            border-left: 3px solid #e74c3c;
        }

        .rs-icon {
            font-size: 1.1rem;
            width: 24px;
            text-align: center;
        }

        .rs-label {
            flex: 1;
            color: #ccc;
            font-size: 0.9rem;
        }

        .research-step.active .rs-label {
            color: #f39c12;
            font-weight: 600;
        }

        .research-step.done .rs-label {
            color: #2ecc71;
        }

        .rs-count {
            font-size: 0.8rem;
            color: #888;
            min-width: 60px;
            text-align: right;
        }

        .research-step.done .rs-count {
            color: #2ecc71;
        }

        .research-stat-tile {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 12px;
            text-align: center;
        }

        .research-stat-tile .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #f39c12;
        }

        .research-stat-tile .stat-label {
            font-size: 0.75rem;
            color: #999;
            margin-top: 4px;
        }

        @keyframes researchPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .research-step.active .rs-icon {
            animation: researchPulse 1s infinite;
        }

        /* ============================================
           POSITIONING (Screen C)
           ============================================ */
        .positioning-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }

        .positioning-option {
            padding: 25px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .positioning-option:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .positioning-option.selected {
            background: rgba(243, 156, 18, 0.2);
            border-color: #f39c12;
        }

        .positioning-option .icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

        .positioning-option .title {
            font-weight: bold;
            color: #e0e0e0;
            margin-bottom: 8px;
        }

        .positioning-option .desc {
            color: #888;
            font-size: 0.9rem;
        }

        .positioning-content {
            display: none;
            margin-top: 20px;
        }

        .positioning-content.active {
            display: block;
        }

        .positioning-confirmed {
            border: 1px solid #2ecc71;
            border-radius: 12px;
            padding: 16px 20px;
            background: rgba(46, 204, 113, 0.08);
        }

        .positioning-confirmed-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .positioning-confirmed-badge {
            font-weight: 600;
            color: #2ecc71;
            font-size: 0.95rem;
        }

        .positioning-confirmed-preview {
            color: #ccc;
            font-size: 0.9rem;
            line-height: 1.6;
            white-space: pre-wrap;
            max-height: 150px;
            overflow-y: auto;
            padding: 10px 14px;
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
        }

        .btn-sm {
            font-size: 0.8rem !important;
            padding: 6px 12px !important;
        }

        .kb-preview {
            background: rgba(46, 204, 113, 0.1);
            border: 1px solid rgba(46, 204, 113, 0.3);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 15px;
        }

        .kb-preview h4 {
            color: #2ecc71;
            margin-bottom: 10px;
        }

        /* Artikel-Vorschau */
        .topic-preview-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 16px;
        }

        .topic-rss-link {
            color: #3498db;
            text-decoration: none;
            font-size: 0.9rem;
            white-space: nowrap;
            padding: 6px 12px;
            border: 1px solid rgba(52, 152, 219, 0.3);
            border-radius: 6px;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .topic-rss-link:hover {
            background: rgba(52, 152, 219, 0.15);
            border-color: #3498db;
        }

        .topic-rationale-box {
            background: rgba(255, 255, 255, 0.04);
            border-left: 3px solid #f39c12;
            padding: 16px 20px;
            border-radius: 0 8px 8px 0;
            margin-bottom: 16px;
        }

        .topic-preview-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-shrink: 0;
        }

        .btn-article-summary {
            background: rgba(155, 89, 182, 0.15);
            color: #bb8fce;
            border: 1px solid rgba(155, 89, 182, 0.3);
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .btn-article-summary:hover {
            background: rgba(155, 89, 182, 0.25);
            border-color: #9b59b6;
            color: #d2b4de;
        }

        .btn-article-summary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-article-summary.loaded {
            background: rgba(46, 204, 113, 0.12);
            color: #82e0aa;
            border-color: rgba(46, 204, 113, 0.3);
        }

        .article-summary-box {
            background: rgba(155, 89, 182, 0.06);
            border: 1px solid rgba(155, 89, 182, 0.15);
            border-radius: 8px;
            padding: 16px 20px;
            margin-bottom: 16px;
            animation: summaryFadeIn 0.3s ease;
        }

        @keyframes summaryFadeIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .article-summary-loading {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #bb8fce;
            font-size: 0.9rem;
        }

        .summary-spinner {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(155, 89, 182, 0.2);
            border-top-color: #9b59b6;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .article-summary-content .summary-section {
            margin-bottom: 12px;
        }

        .article-summary-content .summary-section:last-child {
            margin-bottom: 0;
        }

        .summary-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: #bb8fce;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
        }

        .article-summary-content p {
            color: #ddd;
            line-height: 1.6;
            margin: 0;
            font-size: 0.92rem;
        }

        .article-summary-content ul {
            color: #ccc;
            margin: 0;
            padding-left: 18px;
            line-height: 1.7;
            font-size: 0.9rem;
        }

        .article-summary-content ul li {
            margin-bottom: 4px;
        }

        .topic-scores-preview {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        /* KB-Status-Banner */
        .kb-status-banner {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 16px;
            font-size: 0.9rem;
        }

        .kb-status-banner.no-match {
            background: rgba(231, 76, 60, 0.1);
            border: 1px solid rgba(231, 76, 60, 0.3);
            color: #e74c3c;
        }

        .kb-status-banner.has-match {
            background: rgba(46, 204, 113, 0.1);
            border: 1px solid rgba(46, 204, 113, 0.3);
            color: #2ecc71;
        }

        /* KB-Option deaktiviert */
        .positioning-option.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Skip-Info */
        .skip-info {
            background: rgba(243, 156, 18, 0.1);
            border: 1px solid rgba(243, 156, 18, 0.3);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 15px;
        }

        /* ============================================
           CONTENT BRIEF (Screen D)
           ============================================ */
        .brief-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
        }

        .brief-field {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .brief-field:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .brief-field .label {
            color: #f39c12;
            font-size: 0.85rem;
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .brief-field .value {
            color: #e0e0e0;
            line-height: 1.6;
        }

        .correction-box {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 20px;
        }

        .correction-box h4 {
            color: #e0e0e0;
            margin-bottom: 15px;
        }

        .correction-counter {
            display: inline-block;
            padding: 6px 16px;
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 15px;
            border: 1px solid rgba(231, 76, 60, 0.3);
        }

        .correction-counter.ok {
            background: rgba(46, 204, 113, 0.15);
            color: #2ecc71;
            border-color: rgba(46, 204, 113, 0.3);
        }

        /* ============================================
           OUTPUT DISPLAY (Screen E)
           ============================================ */
        .output-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .output-tab {
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            color: #888;
        }

        .output-tab:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .output-tab.active {
            background: #f39c12;
            color: #1a1a2e;
            border-color: #f39c12;
        }

        .length-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .length-tab {
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            cursor: pointer;
            color: #888;
            font-size: 0.9rem;
        }

        .length-tab.active {
            background: rgba(243, 156, 18, 0.2);
            color: #f39c12;
            border-color: #f39c12;
        }

        /* ============================================
           PLATFORM SELECTOR (Step 5 Social)
           ============================================ */
        .platform-selector {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 16px;
        }

        .platform-selector-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            transition: all 0.2s;
        }

        .platform-selector-item.active {
            background: rgba(243, 156, 18, 0.06);
            border-color: rgba(243, 156, 18, 0.25);
        }

        .platform-selector-item.disabled {
            opacity: 0.4;
        }

        .platform-selector-item.disabled .output-tab {
            pointer-events: none;
        }

        .platform-selector-item.disabled .platform-length-tabs {
            pointer-events: none;
            opacity: 0.3;
        }

        /* Toggle Switch */
        .platform-toggle {
            position: relative;
            display: inline-block;
            width: 38px;
            height: 20px;
            flex-shrink: 0;
        }

        .platform-toggle-cb {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .platform-toggle-slider {
            position: absolute;
            cursor: pointer;
            inset: 0;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            transition: all 0.25s;
        }

        .platform-toggle-slider::before {
            content: '';
            position: absolute;
            height: 16px;
            width: 16px;
            left: 2px;
            bottom: 2px;
            background: #888;
            border-radius: 50%;
            transition: all 0.25s;
        }

        .platform-toggle-cb:checked + .platform-toggle-slider {
            background: rgba(0, 212, 170, 0.3);
        }

        .platform-toggle-cb:checked + .platform-toggle-slider::before {
            transform: translateX(18px);
            background: #00d4aa;
        }

        /* Per-Platform Length Tabs */
        .platform-length-tabs {
            display: flex;
            gap: 4px;
            margin-left: auto;
        }

        .plat-len-tab {
            padding: 4px 10px;
            font-size: 0.78rem;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: transparent;
            color: #888;
            cursor: pointer;
            transition: all 0.15s;
        }

        .plat-len-tab:hover {
            color: #ccc;
            border-color: rgba(255, 255, 255, 0.2);
        }

        .plat-len-tab.active {
            background: rgba(243, 156, 18, 0.15);
            color: #f39c12;
            border-color: rgba(243, 156, 18, 0.3);
        }

        /* Variant Chips (Summary) */
        .variant-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            background: rgba(0, 212, 170, 0.08);
            border: 1px solid rgba(0, 212, 170, 0.2);
            border-radius: 20px;
            color: #00d4aa;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .variant-chip-remove {
            cursor: pointer;
            font-size: 0.75rem;
            opacity: 0.6;
            transition: opacity 0.15s;
            margin-left: 2px;
        }

        .variant-chip-remove:hover {
            opacity: 1;
            color: #e74c3c;
        }

        /* ============================================
           FINALIZE VARIANT TABS (Step 6)
           ============================================ */
        .finalize-variant-tab {
            padding: 8px 16px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.04);
            color: #888;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .finalize-variant-tab:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #ccc;
        }

        .finalize-variant-tab.active {
            background: rgba(79, 140, 255, 0.12);
            border-color: rgba(79, 140, 255, 0.3);
            color: #4f8cff;
        }

        .variant-tab-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #e74c3c;
            color: #fff;
            font-size: 0.65rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .output-content {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 25px;
            white-space: pre-wrap;
            line-height: 1.8;
            font-size: 0.95rem;
        }

        .output-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        /* ============================================
           COPYABLE SECTIONS (Copy & Paste Ready)
           ============================================ */
        .copyable-section {
            position: relative;
            cursor: pointer;
            transition: all 0.3s;
        }

        .copyable-section:hover {
            border-color: #2ecc71;
            background: rgba(46, 204, 113, 0.05);
        }

        .copyable-section:hover .copy-hint {
            opacity: 1;
        }

        .copyable-section.copied {
            border-color: #2ecc71;
        }

        .copy-hint {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.75rem;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .copy-content {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            padding: 20px;
            white-space: pre-wrap;
            line-height: 1.7;
            font-size: 0.95rem;
            color: #e0e0e0;
        }

        .copy-content.hashtags {
            color: #3498db;
            font-size: 0.9rem;
            word-spacing: 5px;
        }

        .copy-content.blog-title {
            font-size: 1.3rem;
            font-weight: bold;
            color: #f39c12;
        }

        .copy-content.meta-desc {
            color: #888;
            font-style: italic;
        }

        .copy-content.blog-article h2 {
            color: #f39c12;
            margin: 20px 0 10px 0;
            font-size: 1.1rem;
        }

        .image-suggestion {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 15px;
            border-left: 3px solid #9b59b6;
        }

        .image-suggestion .suggestion-title {
            color: #9b59b6;
            font-weight: bold;
            margin-bottom: 8px;
        }

        /* Ads Badge (Paket-Info) */
        .ads-badge {
            background: rgba(243, 156, 18, 0.15);
            color: #f39c12;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        /* Facebook Ad Feed-Vorschau */
        .fb-ad-card {
            background: #242424;
            border-radius: 8px;
            margin-bottom: 28px;
            cursor: pointer;
            transition: all 0.25s;
            overflow: hidden;
            position: relative;
            border: 1px solid #3a3a3a;
            max-width: 500px;
        }

        .fb-ad-card:hover {
            border-color: rgba(46, 204, 113, 0.5);
            box-shadow: 0 2px 16px rgba(46, 204, 113, 0.08);
        }

        .fb-ad-card:hover .fb-ad-badge {
            opacity: 1;
        }

        .fb-ad-card.copied {
            border-color: #2ecc71;
        }

        .fb-ad-card.copied .fb-ad-badge {
            opacity: 1;
            color: #2ecc71;
        }

        .fb-ad-top {
            padding: 12px 16px 0;
        }

        .fb-ad-page-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .fb-ad-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f39c12, #e67e22);
            flex-shrink: 0;
        }

        .fb-ad-page-info {
            flex: 1;
        }

        .fb-ad-page-name {
            font-weight: 600;
            font-size: 0.88rem;
            color: #e4e6eb;
        }

        .fb-ad-meta {
            font-size: 0.75rem;
            color: #b0b3b8;
        }

        .fb-ad-globe {
            font-size: 0.7rem;
        }

        .fb-ad-dots {
            color: #b0b3b8;
            font-size: 1.2rem;
            letter-spacing: 2px;
            cursor: default;
            padding: 4px;
        }

        .fb-ad-text-wrap {
            padding-bottom: 12px;
        }

        .fb-ad-text-collapsed,
        .fb-ad-text-full {
            font-size: 0.93rem;
            line-height: 1.45;
            color: #e4e6eb;
        }

        .fb-ad-pretext {
            white-space: pre-line;
            word-break: break-word;
        }

        .fb-ad-mehr {
            color: #b0b3b8;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.93rem;
            white-space: nowrap;
        }

        .fb-ad-wordcount {
            font-size: 0.7rem;
            color: #666;
            text-align: right;
            padding: 2px 0 6px;
        }

        .fb-ad-media {
            width: 100%;
            aspect-ratio: 1.91 / 1;
            background: #1a1a2e;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .fb-ad-media-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            background: linear-gradient(160deg, #1c1c30 0%, #2a2a44 50%, #1c1c30 100%);
            padding: 20px;
            text-align: center;
        }

        .fb-ad-media-placeholder > span {
            font-size: 2.5rem;
        }

        .fb-ad-creative-hint {
            font-size: 0.78rem;
            color: #666;
            line-height: 1.5;
            font-style: italic;
        }

        .fb-ad-link-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: #3a3b3c;
            gap: 12px;
        }

        .fb-ad-link-info {
            flex: 1;
            min-width: 0;
        }

        .fb-ad-domain {
            font-size: 0.72rem;
            color: #b0b3b8;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin-bottom: 2px;
        }

        .fb-ad-link-headline {
            font-weight: 600;
            font-size: 0.92rem;
            color: #e4e6eb;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .fb-ad-link-desc {
            font-size: 0.78rem;
            color: #b0b3b8;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .fb-ad-cta {
            background: #e4e6eb;
            color: #050505;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 0.82rem;
            font-weight: 600;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .fb-ad-reactions {
            padding: 4px 16px 8px;
        }

        .fb-ad-reaction-icons {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 8px 0 4px;
            border-bottom: 1px solid #3a3a3a;
            font-size: 0.85rem;
        }

        .fb-ad-action-row {
            display: flex;
            justify-content: space-around;
            padding: 8px 0 4px;
        }

        .fb-ad-action {
            color: #b0b3b8;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: default;
        }

        .fb-ad-badge {
            position: absolute;
            top: 12px;
            right: 50px;
            font-size: 0.7rem;
            color: #666;
            opacity: 0;
            transition: opacity 0.25s;
            background: rgba(0,0,0,0.5);
            padding: 2px 8px;
            border-radius: 4px;
        }

        /* ============================================
           SOCIAL FEED PREVIEW CARDS
           ============================================ */
        .social-feed-card {
            background: #242424;
            border-radius: 8px;
            margin-bottom: 16px;
            cursor: pointer;
            transition: all 0.25s;
            overflow: hidden;
            position: relative;
            border: 1px solid #3a3a3a;
            max-width: 500px;
        }

        .social-feed-card:hover {
            border-color: rgba(46, 204, 113, 0.5);
            box-shadow: 0 2px 16px rgba(46, 204, 113, 0.08);
        }

        .social-feed-card.copied {
            border-color: #2ecc71;
        }

        .sf-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
        }

        .sf-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .sf-avatar-fb {
            background: linear-gradient(135deg, #1877f2, #0d65d9);
        }

        .sf-avatar-ig {
            background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        }

        .sf-avatar-li {
            background: linear-gradient(135deg, #0a66c2, #004182);
        }

        .sf-header-info {
            flex: 1;
        }

        .sf-page-name {
            font-weight: 600;
            font-size: 0.88rem;
            color: #e4e6eb;
        }

        .sf-meta {
            font-size: 0.73rem;
            color: #b0b3b8;
        }

        .sf-dots {
            color: #b0b3b8;
            font-size: 1.2rem;
            letter-spacing: 2px;
            cursor: default;
            padding: 4px;
        }

        .sf-text-wrap {
            padding: 0 16px 12px;
        }

        .sf-text-collapsed,
        .sf-text-full {
            font-size: 0.93rem;
            line-height: 1.45;
            color: #e4e6eb;
        }

        .sf-pretext {
            white-space: pre-line;
            word-break: break-word;
        }

        .sf-pretext-inline {
            white-space: pre-line;
            word-break: break-word;
        }

        .sf-mehr {
            color: #b0b3b8;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.93rem;
            white-space: nowrap;
        }

        .sf-mehr:hover {
            text-decoration: underline;
        }

        .sf-media-placeholder {
            width: 100%;
            aspect-ratio: 1.91 / 1;
            background: linear-gradient(160deg, #1c1c30 0%, #2a2a44 50%, #1c1c30 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            color: #666;
        }

        .sf-media-ig {
            aspect-ratio: 1 / 1;
        }

        .sf-wordcount {
            font-size: 0.7rem;
            color: #666;
            text-align: right;
            padding: 4px 16px 8px;
        }

        /* Facebook specific */
        .sf-fb-reactions {
            padding: 4px 16px 8px;
        }

        .sf-fb-reaction-icons {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 8px 0 4px;
            border-bottom: 1px solid #3a3a3a;
            font-size: 0.85rem;
        }

        .sf-reaction-count {
            font-size: 0.78rem;
            color: #b0b3b8;
            margin-left: 6px;
        }

        .sf-fb-action-row {
            display: flex;
            justify-content: space-around;
            padding: 8px 0 4px;
        }

        .sf-fb-action {
            color: #b0b3b8;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: default;
        }

        /* Instagram specific */
        .sf-ig-actions {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 10px 16px 4px;
            font-size: 1.3rem;
        }

        .sf-ig-bookmark {
            margin-left: auto;
        }

        .sf-ig-likes {
            font-size: 0.82rem;
            font-weight: 600;
            color: #e4e6eb;
            padding: 2px 16px 6px;
        }

        .sf-ig-caption {
            padding: 0 16px 4px;
            font-size: 0.88rem;
            line-height: 1.45;
            color: #e4e6eb;
        }

        .sf-ig-username {
            font-weight: 600;
            margin-right: 6px;
        }

        .sf-ig-hashtags {
            font-size: 0.8rem;
            color: #4f8cff;
            padding: 2px 16px 8px;
            word-break: break-word;
        }

        /* LinkedIn specific */
        .sf-li-reactions {
            padding: 4px 16px 8px;
        }

        .sf-li-reaction-icons {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 8px 0 4px;
            border-bottom: 1px solid #3a3a3a;
            font-size: 0.85rem;
        }

        .sf-li-action-row {
            display: flex;
            justify-content: space-around;
            padding: 8px 0 4px;
        }

        .sf-li-action {
            color: #b0b3b8;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: default;
        }

        /* Ads einzelne Items (Headlines, Creatives, Hooks) */
        .ads-item {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .ads-text-body {
            line-height: 1.6;
        }

        .ads-item:hover {
            background: rgba(46, 204, 113, 0.1);
            border-left: 3px solid #2ecc71;
        }

        .ads-item:hover::after {
            content: '📋 Kopieren';
            position: absolute;
            right: 10px;
            top: 15px;
            background: rgba(46, 204, 113, 0.3);
            color: #2ecc71;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
        }

        .ads-item .item-number {
            color: #f39c12;
            font-weight: bold;
            margin-right: 10px;
        }

        .ads-char-count {
            float: right;
            font-size: 0.72rem;
            color: #666;
            font-weight: normal;
        }

        .ads-item.copied {
            border-left: 3px solid #2ecc71;
        }

        /* ============================================
           POST PREVIEW (Social Media Ready)
           ============================================ */
        .post-preview {
            background: #1a1a2e;
            border: 1px solid #333;
            max-width: 500px;
            margin: 0 auto;
        }

        .post-preview-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .post-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f39c12, #e67e22);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
            font-size: 1rem;
        }

        .post-meta .post-name {
            font-weight: bold;
            color: #e0e0e0;
        }

        .post-meta .post-time {
            font-size: 0.8rem;
            color: #888;
        }

        .post-text-area {
            padding: 15px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .post-text-area:hover {
            background: rgba(46, 204, 113, 0.1);
            border: 1px solid rgba(46, 204, 113, 0.3);
        }

        .post-text-area .copy-content {
            background: transparent;
            padding: 0;
            white-space: pre-wrap;
            line-height: 1.6;
        }

        .post-media {
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 15px;
            background: #000;
        }

        .post-media img,
        .post-media video {
            width: 100%;
            max-height: 400px;
            object-fit: contain;
            display: block;
        }

        .post-hashtags {
            padding: 10px 15px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            margin-bottom: 15px;
            cursor: pointer;
            position: relative;
        }

        .post-hashtags:hover {
            background: rgba(46, 204, 113, 0.1);
        }

        .post-hashtags .copy-content {
            background: transparent;
            padding: 0;
            color: #3498db;
        }

        .post-actions-preview {
            display: flex;
            justify-content: space-around;
            padding-top: 15px;
            border-top: 1px solid #333;
            color: #888;
            font-size: 0.9rem;
        }

        .post-actions-preview span {
            cursor: default;
            padding: 8px 15px;
            border-radius: 5px;
        }

        /* Alternative Text Items */
        .text-alternative {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
        }

        .text-alternative:hover {
            background: rgba(243, 156, 18, 0.1);
            border-color: #f39c12;
        }

        .text-alternative.selected {
            border-color: #2ecc71;
            background: rgba(46, 204, 113, 0.1);
        }

        .text-alternative .alt-label {
            font-size: 0.75rem;
            color: #f39c12;
            margin-bottom: 8px;
            font-weight: bold;
        }

        /* Platform Tips */
        .platform-tips {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .platform-tip {
            padding: 12px 15px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            font-size: 0.9rem;
            color: #aaa;
        }

        .platform-tip strong {
            color: #e0e0e0;
        }

        /* ============================================
           ALERTS & STATUS
           ============================================ */
        .alert {
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .alert-success {
            background: rgba(46, 204, 113, 0.2);
            border: 1px solid rgba(46, 204, 113, 0.3);
            color: #2ecc71;
        }

        .alert-info {
            background: rgba(52, 152, 219, 0.2);
            border: 1px solid rgba(52, 152, 219, 0.3);
            color: #3498db;
        }

        .status-widget {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 15px;
            background: rgba(46, 204, 113, 0.2);
            border-radius: 20px;
            font-size: 0.85rem;
            color: #2ecc71;
            transition: background 0.3s, color 0.3s;
        }

        .status-widget.status-error {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
        }

        .status-widget.status-unknown {
            background: rgba(136, 136, 136, 0.2);
            color: #888;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #2ecc71;
        }

        #kb-status-card.kb-unreachable {
            background: rgba(231, 76, 60, 0.12);
            border: 1px solid rgba(231, 76, 60, 0.3);
        }

        /* ============================================
           SEASON SELECT (Screen B2)
           ============================================ */
        .season-select {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .season-btn {
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            cursor: pointer;
            color: #888;
            transition: all 0.3s;
        }

        /* ============================================
           INDIVIDUAL MODE SELECT
           ============================================ */
        .individual-mode-select {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 25px;
        }

        .individual-mode-btn {
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
        }

        .individual-mode-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .individual-mode-btn.selected {
            background: rgba(243, 156, 18, 0.2);
            border-color: #f39c12;
        }

        .individual-mode-btn .icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .individual-mode-btn .title {
            font-weight: bold;
            color: #e0e0e0;
            margin-bottom: 5px;
        }

        .individual-mode-btn .desc {
            font-size: 0.8rem;
            color: #888;
        }

        /* ============================================
           MEDIA UPLOAD
           ============================================ */
        .media-upload-area {
            margin-bottom: 20px;
        }

        .upload-zone {
            border: 2px dashed rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .upload-zone:hover,
        .upload-zone.dragover {
            border-color: #f39c12;
            background: rgba(243, 156, 18, 0.1);
        }

        .upload-zone .upload-icon {
            font-size: 3rem;
            margin-bottom: 15px;
        }

        .upload-zone p {
            color: #888;
            margin: 0;
        }

        .upload-link {
            color: #f39c12;
            cursor: pointer;
            text-decoration: underline;
        }

        .upload-link:hover {
            color: #e67e22;
        }

        #media-preview {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            background: rgba(0, 0, 0, 0.3);
        }

        #media-preview img,
        #media-preview video {
            width: 100%;
            max-height: 300px;
            object-fit: contain;
            display: block;
        }

        #media-preview .remove-media {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(231, 76, 60, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            cursor: pointer;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #media-preview .remove-media:hover {
            background: #c0392b;
        }

        .season-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .season-btn.active {
            background: rgba(243, 156, 18, 0.2);
            color: #f39c12;
            border-color: #f39c12;
        }

        /* ============================================
           LOADING ANIMATION
           ============================================ */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top-color: #f39c12;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ============================================
           STEP TRANSITION LOADING OVERLAY
           ============================================ */
        .step-loading-overlay {
            display: flex;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(16, 20, 38, 0.88);
            backdrop-filter: blur(6px);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 18px;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }

        .step-loading-overlay.visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .step-loading-overlay .slo-spinner {
            width: 52px;
            height: 52px;
            border: 4px solid rgba(255, 255, 255, 0.08);
            border-top-color: #f39c12;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .step-loading-overlay .slo-text {
            color: #f39c12;
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
        }

        .step-loading-overlay .slo-sub {
            color: #888;
            font-size: 0.85rem;
            text-align: center;
            max-width: 320px;
        }

        .step-loading-overlay .slo-dots::after {
            content: '';
            animation: stepDots 1.5s steps(4, end) infinite;
        }

        @keyframes stepDots {
            0%   { content: ''; }
            25%  { content: '.'; }
            50%  { content: '..'; }
            75%  { content: '...'; }
            100% { content: ''; }
        }

        /* ============================================
           OUTPUT GENERATION PROGRESS OVERLAY
           ============================================ */
        .output-progress-overlay {
            display: flex;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(10, 12, 28, 0.92);
            backdrop-filter: blur(10px);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .output-progress-overlay.visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .opg-container {
            width: 420px;
            max-width: 90vw;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        .opg-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }

        .opg-icon-ring {
            position: relative;
            width: 80px;
            height: 80px;
        }

        .opg-icon-ring-track {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 4px solid rgba(255, 255, 255, 0.06);
        }

        .opg-icon-ring-fill {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 4px solid transparent;
            border-top-color: #f39c12;
            border-right-color: #f39c12;
            animation: opgRingSpin 2s linear infinite;
            transition: border-color 0.4s ease;
        }

        .opg-icon-ring-fill.complete {
            border-color: #2ecc71;
            animation: none;
        }

        @keyframes opgRingSpin {
            to { transform: rotate(360deg); }
        }

        .opg-icon-center {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            animation: opgPulse 2s ease-in-out infinite;
        }

        @keyframes opgPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.12); }
        }

        .opg-title {
            color: #f0f0f0;
            font-size: 1.25rem;
            font-weight: 700;
            margin: 0;
            text-align: center;
        }

        .opg-subtitle {
            color: #888;
            font-size: 0.88rem;
            margin: 0;
            text-align: center;
            max-width: 340px;
        }

        /* opg-progress-bar-wrap / opg-progress-bar removed: HTML uses opg-progress-track / opg-progress-fill */

        .opg-percent {
            color: #f39c12;
            font-size: 0.82rem;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            transition: color 0.3s ease;
        }

        .opg-percent.complete {
            color: #2ecc71;
        }

        .opg-steps {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 0;
            background: rgba(255, 255, 255, 0.025);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            overflow: hidden;
        }

        .opg-step {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            transition: background 0.3s ease, opacity 0.3s ease;
            opacity: 0.4;
        }

        .opg-step:last-child {
            border-bottom: none;
        }

        .opg-step.active {
            opacity: 1;
            background: rgba(243, 156, 18, 0.06);
        }

        .opg-step.done {
            opacity: 0.7;
            background: rgba(46, 204, 113, 0.04);
        }

        .opg-step-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.82rem;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.04);
            color: #666;
            transition: all 0.3s ease;
        }

        .opg-step.active .opg-step-icon {
            background: rgba(243, 156, 18, 0.15);
            color: #f39c12;
            animation: opgStepPulse 1.5s ease-in-out infinite;
        }

        @keyframes opgStepPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.3); }
            50% { box-shadow: 0 0 0 6px rgba(243, 156, 18, 0); }
        }

        .opg-step.done .opg-step-icon {
            background: rgba(46, 204, 113, 0.15);
            color: #2ecc71;
            animation: none;
        }

        .opg-step-body {
            flex: 1;
            min-width: 0;
        }

        .opg-step-label {
            font-size: 0.88rem;
            font-weight: 500;
            color: #999;
            transition: color 0.3s ease;
        }

        .opg-step.active .opg-step-label {
            color: #e0e0e0;
        }

        .opg-step.done .opg-step-label {
            color: #aaa;
        }

        .opg-step-detail {
            font-size: 0.75rem;
            color: #666;
            margin-top: 2px;
            transition: color 0.3s ease;
        }

        .opg-step.active .opg-step-detail {
            color: #999;
        }

        .opg-step-check {
            font-size: 0.75rem;
            color: transparent;
            flex-shrink: 0;
            transition: color 0.3s ease;
        }

        .opg-step.done .opg-step-check {
            color: #2ecc71;
        }

        .opg-elapsed {
            font-size: 0.75rem;
            color: #555;
            font-variant-numeric: tabular-nums;
        }

        /* ============================================
           WEB-RECHERCHE TAB
           ============================================ */
        .wr-stats-bar {
            display: flex; gap: 4px; padding: 8px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-wrap: wrap; flex-shrink: 0;
        }
        .wr-stat {
            font-size: 0.78rem; color: #888; padding: 5px 12px;
            background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
            border-radius: 6px; cursor: pointer; transition: all 0.15s;
        }
        .wr-stat:hover { background: rgba(155,89,182,0.08); border-color: rgba(155,89,182,0.2); color: #bbb; }
        .wr-stat strong { color: #9b59b6; font-weight: 700; margin-right: 3px; }
        .wr-results-scroll {
            flex: 1; overflow-y: auto; padding: 16px 20px;
            display: flex; flex-direction: column; gap: 20px;
        }
        .wr-section { display: flex; flex-direction: column; gap: 8px; }
        .wr-section-header {
            display: flex; align-items: center; gap: 10px;
            cursor: pointer; user-select: none; padding: 6px 0;
        }
        .wr-section-header h4 {
            margin: 0; font-size: 0.9rem; font-weight: 600; color: #ccc;
        }
        .wr-section-header .wr-section-count {
            font-size: 0.72rem; color: #9b59b6; background: rgba(155,89,182,0.12);
            padding: 2px 8px; border-radius: 10px;
        }
        .wr-section-header .wr-section-toggle {
            margin-left: auto; font-size: 0.7rem; color: #666; transition: transform 0.2s;
        }
        .wr-section.collapsed .wr-section-body { display: none; }
        .wr-section.collapsed .wr-section-toggle { transform: rotate(-90deg); }
        .wr-section-body { display: flex; flex-direction: column; gap: 6px; }

        .wr-serp-card {
            display: flex; flex-direction: column; gap: 4px;
            padding: 10px 14px; background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.05); border-radius: 8px;
            cursor: pointer; transition: all 0.15s;
        }
        .wr-serp-card:hover { background: rgba(155,89,182,0.06); border-color: rgba(155,89,182,0.15); }
        .wr-serp-card.active { background: rgba(155,89,182,0.1); border-color: rgba(155,89,182,0.3); }
        .wr-serp-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .wr-serp-title { font-size: 0.88rem; font-weight: 600; color: #d4a8e8; flex: 1; min-width: 0; }
        .wr-serp-date { font-size: 0.72rem; color: #8a8a8a; white-space: nowrap; flex-shrink: 0; }
        .wr-serp-url { font-size: 0.7rem; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .wr-serp-snippet { font-size: 0.78rem; color: #999; line-height: 1.4; }

        .wr-paa-card {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 14px; background: rgba(52,152,219,0.04);
            border: 1px solid rgba(52,152,219,0.1); border-radius: 8px;
            cursor: pointer; transition: all 0.15s;
        }
        .wr-paa-card:hover { background: rgba(52,152,219,0.08); border-color: rgba(52,152,219,0.2); }
        .wr-paa-card.active { background: rgba(52,152,219,0.12); border-color: rgba(52,152,219,0.3); }
        .wr-paa-q { font-size: 0.85rem; color: #7cb3d4; flex: 1; }
        .wr-paa-save {
            font-size: 0.7rem; padding: 4px 10px; background: rgba(46,204,113,0.1);
            border: 1px solid rgba(46,204,113,0.2); border-radius: 6px;
            color: #2ecc71; cursor: pointer; white-space: nowrap; flex-shrink: 0;
        }
        .wr-paa-save:hover { background: rgba(46,204,113,0.2); }
        .wr-paa-save.saved { color: #888; background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); pointer-events: none; }

        .wr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
        .wr-chip {
            font-size: 0.78rem; padding: 5px 12px;
            background: rgba(155,89,182,0.08); border: 1px solid rgba(155,89,182,0.15);
            border-radius: 16px; color: #b388d0; cursor: default; transition: all 0.15s;
        }
        .wr-chip:hover { background: rgba(155,89,182,0.14); }
        .wr-chip.wr-chip-click {
            cursor: pointer; position: relative;
        }
        .wr-chip.wr-chip-click::after {
            content: ' 🔬'; font-size: 0.65rem; opacity: 0; transition: opacity 0.15s;
        }
        .wr-chip.wr-chip-click:hover::after { opacity: 1; }
        .wr-chip.wr-chip-click:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(155,89,182,0.2); }
        .wr-chip.trend {
            background: rgba(46,204,113,0.08); border-color: rgba(46,204,113,0.15); color: #6fcf97;
        }
        .wr-chip.trend:hover { background: rgba(46,204,113,0.14); }
        .wr-chip.trend.wr-chip-click:hover { box-shadow: 0 2px 8px rgba(46,204,113,0.2); }

        /* ============================================
           RSS SEARCH LOADING ANIMATION (Inline)
           ============================================ */
        .rss-search-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px 24px;
            gap: 20px;
            animation: rssLoadFadeIn 0.3s ease;
        }
        @keyframes rssLoadFadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .rss-search-loading .rsl-spinner {
            width: 44px;
            height: 44px;
            border: 3px solid rgba(155,89,182,0.12);
            border-top-color: #9b59b6;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }
        .rss-search-loading.article-mode .rsl-spinner {
            border-top-color: #f39c12;
        }

        .rss-search-loading .rsl-title {
            color: #bb8fce;
            font-size: 1.05rem;
            font-weight: 600;
            text-align: center;
        }
        .rss-search-loading.article-mode .rsl-title {
            color: #f39c12;
        }
        .rss-search-loading .rsl-title .rsl-dots::after {
            content: '';
            animation: stepDots 1.5s steps(4, end) infinite;
        }

        .rss-search-loading .rsl-steps {
            display: flex;
            flex-direction: column;
            gap: 6px;
            width: 100%;
            max-width: 340px;
        }

        .rss-search-loading .rsl-step {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.82rem;
            color: #555;
            background: rgba(255,255,255,0.02);
            border: 1px solid transparent;
            transition: all 0.4s ease;
            opacity: 0.4;
        }

        .rss-search-loading .rsl-step.active {
            color: #bb8fce;
            background: rgba(155,89,182,0.08);
            border-color: rgba(155,89,182,0.2);
            opacity: 1;
        }
        .rss-search-loading.article-mode .rsl-step.active {
            color: #f39c12;
            background: rgba(243,156,18,0.08);
            border-color: rgba(243,156,18,0.2);
        }

        .rss-search-loading .rsl-step.done {
            color: #2ecc71;
            opacity: 0.7;
        }

        .rss-search-loading .rsl-step-icon {
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.9rem;
        }

        .rss-search-loading .rsl-step.active .rsl-step-icon {
            animation: rslPulse 1.2s ease-in-out infinite;
        }
        @keyframes rslPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        .rss-search-loading .rsl-step-text {
            flex: 1;
        }

        .rss-search-loading .rsl-step .rsl-step-check {
            font-size: 0.75rem;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .rss-search-loading .rsl-step.done .rsl-step-check {
            opacity: 1;
        }

        .rss-search-loading .rsl-sub {
            color: #666;
            font-size: 0.78rem;
            text-align: center;
            max-width: 300px;
        }

        /* ============================================
           RESPONSIVE
           ============================================ */
        @media (max-width: 768px) {
            .trigger-buttons,
            .output-tiles,
            .positioning-options {
                grid-template-columns: 1fr;
            }

            .topics-grid {
                grid-template-columns: 1fr;
            }

            .pipeline-subnav-content {
                flex-wrap: wrap;
                gap: 6px;
            }

            .header-content {
                flex-direction: column;
                gap: 15px;
            }
        }

        /* ============================================
           LOGIN SCREEN
           ============================================ */
        .login-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .login-overlay.hidden { display: none; }

        .login-card {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 16px;
            padding: 40px;
            width: 100%;
            max-width: 400px;
            backdrop-filter: blur(12px);
        }

        .login-card h2 {
            text-align: center;
            margin-bottom: 8px;
            color: #f39c12;
        }

        .login-card p {
            text-align: center;
            color: #888;
            font-size: 0.9rem;
            margin-bottom: 25px;
        }

        .login-card .form-group { margin-bottom: 16px; }

        .login-card label {
            display: block;
            margin-bottom: 6px;
            color: #aaa;
            font-size: 0.85rem;
        }

        .login-card input {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 10px;
            background: rgba(255,255,255,0.05);
            color: #e0e0e0;
            font-size: 1rem;
        }

        .login-card input:focus {
            outline: none;
            border-color: #f39c12;
        }

        .login-card .btn-login {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 10px;
            background: #f39c12;
            color: #1a1a2e;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            margin-top: 8px;
            transition: background 0.2s;
        }

        .login-card .btn-login:hover { background: #e67e22; }
        .login-card .btn-login:disabled { opacity: 0.5; cursor: not-allowed; }

        .login-error {
            color: #e74c3c;
            text-align: center;
            font-size: 0.85rem;
            margin-top: 12px;
            min-height: 1.2em;
        }

        .logout-btn {
            background: none;
            border: 1px solid rgba(255,255,255,0.15);
            color: #888;
            padding: 6px 14px;
            border-radius: 16px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .logout-btn:hover {
            border-color: #e74c3c;
            color: #e74c3c;
        }

        /* ============================================
           UTILITY NAV BUTTONS (RSS, Ideen, neben Logo)
           ============================================ */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-icon-btn {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.12);
            color: #ccc;
            padding: 7px 14px;
            border-radius: 18px;
            font-size: 0.82rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nav-icon-btn:hover {
            background: rgba(255,255,255,0.12);
            color: #f39c12;
            border-color: rgba(243,156,18,0.4);
        }

        .nav-icon-btn .badge-count {
            background: #f39c12;
            color: #1a1a2e;
            border-radius: 50%;
            min-width: 18px;
            height: 18px;
            font-size: 0.7rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* ============================================
           MODAL / OVERLAY (shared)
           ============================================ */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: #13152a;
            backdrop-filter: none;
            z-index: 9500;
            justify-content: stretch;
            align-items: stretch;
            overflow: hidden;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: #1e2235;
            border: none !important;
            border-radius: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            height: 100% !important;
            max-height: 100% !important;
            overflow-y: auto;
            padding: 24px 32px;
            position: relative;
            animation: none;
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 20px;
            background: none;
            border: none;
            color: #888;
            font-size: 1.4rem;
            cursor: pointer;
        }

        .modal-close:hover {
            color: #e74c3c;
        }

        /* --- Login-Modal: zentriert, nicht Vollbild --- */
        .modal-overlay.login-overlay {
            background: rgba(0,0,0,0.7);
            justify-content: center;
            align-items: center;
        }
        .modal-card.login-card {
            width: auto !important;
            max-width: 440px !important;
            height: auto !important;
            max-height: 80vh !important;
            border-radius: 16px !important;
            padding: 40px !important;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        }

        /* --- Legacy fullscreen-modal class (kept for compat) --- */
        .modal-overlay.fullscreen-modal {
            background: #13152a !important;
            padding-top: 0 !important;
            overflow: hidden !important;
            align-items: stretch !important;
            justify-content: stretch !important;
        }
        .modal-overlay.fullscreen-modal .modal-content {
            width: 100% !important;
            max-width: 100% !important;
            height: 100% !important;
            max-height: 100% !important;
            border: none !important;
            border-radius: 0 !important;
            padding: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            background: #13152a !important;
            overflow: hidden !important;
        }
        .fullscreen-modal .fm-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px 32px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
            background: #141630;
        }
        .fullscreen-modal .fm-header h2 {
            margin: 0;
            font-size: 1.3rem;
        }
        .fullscreen-modal .fm-header-subtitle {
            color: #888;
            font-size: 0.85rem;
            margin-left: 12px;
        }
        .fullscreen-modal .fm-close {
            background: none;
            border: none;
            color: #888;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 6px;
            transition: all 0.2s;
        }
        .fullscreen-modal .fm-close:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }
        .fullscreen-modal .fm-body {
            flex: 1;
            overflow-y: auto;
            padding: 24px 32px;
        }

        /* (Panel styles moved to Recherche-Center section above) */

        /* ============================================
           IDEENSAMMLUNG
           ============================================ */
        .ideas-toolbar {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .ideas-toolbar input,
        .ideas-toolbar select {
            padding: 8px 12px;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 8px;
            background: rgba(0,0,0,0.3);
            color: #e0e0e0;
            font-size: 0.85rem;
        }

        .ideas-toolbar select {
            min-width: 130px;
        }

        .ideas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 16px;
        }

        .idea-card {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            padding: 18px;
            transition: all 0.2s;
            position: relative;
        }

        .idea-card:hover {
            border-color: rgba(243,156,18,0.3);
        }

        .idea-card.kb-recommended {
            border-color: rgba(243,156,18,0.5);
            box-shadow: 0 0 12px rgba(243,156,18,0.1);
        }

        .idea-title {
            font-weight: 600;
            color: #e0e0e0;
            margin-bottom: 6px;
            font-size: 1rem;
        }

        .idea-rationale {
            font-size: 0.85rem;
            color: #999;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .idea-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .idea-badge {
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.72rem;
            font-weight: 600;
        }

        .idea-badge.source-topic { background: rgba(155,89,182,0.2); color: #9b59b6; }
        .idea-badge.source-rss { background: rgba(52,152,219,0.2); color: #3498db; }
        .idea-badge.source-manual { background: rgba(243,156,18,0.2); color: #f39c12; }
        .idea-badge.status-new { background: rgba(46,204,113,0.15); color: #2ecc71; }
        .idea-badge.status-planned { background: rgba(52,152,219,0.15); color: #3498db; }
        .idea-badge.status-used { background: rgba(255,255,255,0.08); color: #888; }
        .idea-badge.status-discarded { background: rgba(231,76,60,0.15); color: #e74c3c; }
        .idea-badge.kb-match { background: rgba(46,204,113,0.2); color: #2ecc71; }
        .idea-badge.kb-unchecked { background: rgba(255,255,255,0.06); color: #666; }
        .idea-badge.kb-recommended { background: rgba(243,156,18,0.25); color: #f39c12; }

        .idea-kb-snippet {
            font-size: 0.78rem;
            color: #888;
            background: rgba(46,204,113,0.06);
            border-radius: 6px;
            padding: 8px 10px;
            margin-bottom: 10px;
            border-left: 3px solid rgba(46,204,113,0.4);
        }

        .idea-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .idea-action-btn {
            padding: 5px 10px;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            background: rgba(255,255,255,0.04);
            color: #aaa;
            cursor: pointer;
            font-size: 0.75rem;
            transition: all 0.2s;
        }

        .idea-action-btn:hover {
            background: rgba(255,255,255,0.1);
            color: #e0e0e0;
        }

        .idea-action-btn.kb {
            border-color: rgba(46,204,113,0.3);
            color: #2ecc71;
        }

        .idea-action-btn.kb:hover {
            background: rgba(46,204,113,0.15);
        }

        .idea-action-btn.use {
            border-color: rgba(243,156,18,0.3);
            color: #f39c12;
        }

        .idea-action-btn.use:hover {
            background: rgba(243,156,18,0.15);
        }

        .idea-action-btn.delete:hover {
            border-color: rgba(231,76,60,0.4);
            color: #e74c3c;
            background: rgba(231,76,60,0.1);
        }

        .idea-action-btn.loading {
            opacity: 0.5;
            pointer-events: none;
        }

        .ideas-empty {
            text-align: center;
            padding: 40px;
            color: #666;
            font-size: 0.95rem;
        }

        .topic-card-actions {
            display: flex;
            gap: 6px;
            margin-top: 8px;
        }

        .btn-select-topic {
            padding: 5px 14px;
            border: 1px solid rgba(46,204,113,0.4);
            border-radius: 12px;
            background: rgba(46,204,113,0.1);
            color: #2ecc71;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 600;
            transition: all 0.2s;
        }
        .btn-select-topic:hover {
            background: rgba(46,204,113,0.25);
        }
        .topic-card.selected .btn-select-topic {
            background: #2ecc71;
            color: #1a1a2e;
            border-color: #2ecc71;
        }

        .btn-bookmark-topic {
            padding: 4px 10px;
            border: 1px solid rgba(243,156,18,0.3);
            border-radius: 12px;
            background: rgba(243,156,18,0.08);
            color: #f39c12;
            cursor: pointer;
            font-size: 0.75rem;
            transition: all 0.2s;
        }

        .btn-bookmark-topic:hover {
            background: rgba(243,156,18,0.2);
        }

        .btn-bookmark-topic.saved {
            background: rgba(46,204,113,0.2);
            border-color: rgba(46,204,113,0.4);
            color: #2ecc71;
            cursor: default;
        }

        .toast-msg {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: #2ecc71;
            color: #1a1a2e;
            padding: 12px 24px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.9rem;
            z-index: 500;
            display: none;
            animation: fadeIn 0.3s ease;
        }

        /* (Legacy discover-feed styles removed — now in Recherche-Center section) */

        /* ============================================
           INTEGRATIONS OVERLAY
           ============================================ */
        /* --- Overlay & Panel (unchanged layout) --- */
        .integrations-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9500;
            background: #13152a !important;
            animation: fadeIn 0.25s ease;
            flex-direction: column;
        }
        .integrations-overlay.open { display: flex !important; }

        .integrations-panel {
            background: transparent !important;
            border-radius: 0 !important;
            width: 100% !important;
            height: 100% !important;
            max-height: 100% !important;
            overflow: hidden !important;
            padding: 0 !important;
            position: relative;
            box-shadow: none !important;
            display: flex !important;
            flex-direction: column !important;
        }

        .integrations-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px 32px;
            margin-bottom: 0;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
            background: #141630;
        }
        .integrations-panel-header h2 {
            font-size: 1.3rem;
            color: #fff;
            margin: 0;
        }
        .integrations-close {
            background: none;
            border: none;
            color: #888;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 6px;
            transition: all 0.2s;
        }
        .integrations-close:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }

        .integrations-panel-body {
            flex: 1;
            overflow-y: auto;
            padding: 24px 32px;
        }

        .integrations-desc {
            color: #888;
            font-size: 0.85rem;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        /* --- Category groups --- */
        .integration-category {
            margin-bottom: 28px;
        }
        .integration-category-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .integration-category-icon {
            font-size: 1.1rem;
        }
        .integration-category-title {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 600;
            color: #ccc;
        }
        .integration-category-count {
            margin-left: auto;
            font-size: 0.75rem;
            color: #666;
        }

        /* --- Compact cards --- */
        .integration-card {
            background: #16213e;
            border: 1px solid #2a2a4a;
            border-radius: 10px;
            padding: 14px 18px;
            margin-bottom: 8px;
            transition: border-color 0.2s;
        }
        .integration-card.connected { border-color: rgba(46,204,113,0.4); }

        .integration-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .integration-card-title {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .integration-card-title h4 {
            margin: 0;
            font-size: 0.95rem;
            color: #fff;
            white-space: nowrap;
        }
        .integration-card-right {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .integration-status {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #444;
            flex-shrink: 0;
        }
        .integration-status.active {
            background: #2ecc71;
            box-shadow: 0 0 6px rgba(46,204,113,0.4);
        }

        /* --- Badge pill --- */
        .integration-badge {
            font-size: 0.7rem;
            padding: 3px 10px;
            border-radius: 20px;
            background: rgba(255,255,255,0.06);
            color: #666;
            white-space: nowrap;
        }
        .integration-badge.connected {
            background: rgba(46,204,113,0.12);
            color: #2ecc71;
        }

        .integration-card-desc {
            color: #777;
            font-size: 0.78rem;
            margin: 6px 0 0 0;
            line-height: 1.4;
        }

        /* --- Masked keys --- */
        .integration-masked {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }
        .integration-masked-field {
            font-size: 0.75rem;
            color: #999;
            background: rgba(255,255,255,0.04);
            padding: 3px 8px;
            border-radius: 4px;
        }
        .integration-masked-field code {
            color: #bbb;
            font-family: monospace;
            font-size: 0.75rem;
        }

        /* --- Setup guide (details/summary) --- */
        .integration-guide {
            margin-top: 8px;
        }
        .integration-guide summary {
            font-size: 0.78rem;
            color: #4f8cff;
            cursor: pointer;
            padding: 4px 0;
            user-select: none;
            list-style: none;
        }
        .integration-guide summary::-webkit-details-marker { display: none; }
        .integration-guide summary::before {
            content: '▸ ';
            font-size: 0.7rem;
        }
        .integration-guide[open] summary::before {
            content: '▾ ';
        }
        .integration-guide summary:hover {
            color: #6fa8ff;
        }
        .integration-guide-body {
            padding: 8px 12px;
            margin-top: 4px;
            background: rgba(79,140,255,0.04);
            border-radius: 8px;
            border-left: 2px solid rgba(79,140,255,0.2);
        }
        .integration-guide-body ol {
            margin: 0;
            padding-left: 20px;
            font-size: 0.78rem;
            color: #aaa;
            line-height: 1.7;
        }
        .integration-guide-body li {
            margin-bottom: 4px;
        }
        .integration-guide-body a {
            color: #4f8cff;
            text-decoration: none;
        }
        .integration-guide-body a:hover {
            text-decoration: underline;
        }
        .integration-guide-body code {
            background: rgba(255,255,255,0.06);
            padding: 1px 5px;
            border-radius: 3px;
            font-size: 0.76rem;
            color: #ccc;
        }
        .integration-guide-body strong {
            color: #ccc;
        }
        .integration-guide-body em {
            color: #bbb;
            font-style: italic;
        }
        .integration-guide-body p {
            margin: 8px 0 0;
            font-size: 0.78rem;
            color: #999;
            line-height: 1.6;
        }
        .integration-guide-body p strong {
            color: #ccc;
        }

        /* --- Detailed guide variant --- */
        .integration-guide-detailed {
            margin-top: 4px;
        }
        .integration-guide-detailed summary {
            color: #7c7c9a;
            font-size: 0.74rem;
        }
        .integration-guide-detailed summary:hover {
            color: #a0a0d0;
        }
        .integration-guide-detailed .integration-guide-body {
            background: rgba(124,124,154,0.06);
            border-left-color: rgba(124,124,154,0.25);
        }

        /* --- OAuth One-Click Section --- */
        .integration-oauth-section {
            margin-top: 10px;
        }
        .btn-oauth-connect {
            width: 100%;
            padding: 9px 16px;
            background: linear-gradient(135deg, #4f8cff 0%, #6366f1 100%);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.15s;
        }
        .btn-oauth-connect:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
        .btn-oauth-connect:active {
            transform: translateY(0);
        }
        .btn-oauth-connect:disabled {
            opacity: 0.5;
            cursor: wait;
        }
        .integration-divider {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 12px 0 4px;
        }
        .integration-divider::before,
        .integration-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255,255,255,0.08);
        }
        .integration-divider span {
            font-size: 0.72rem;
            color: #666;
            white-space: nowrap;
        }

        /* --- Form (hidden by default) --- */
        .integration-form { display: none; margin-top: 10px; }
        .integration-form.visible { display: block; }

        .integration-form label {
            display: block;
            color: #bbb;
            font-size: 0.78rem;
            margin-bottom: 3px;
            margin-top: 8px;
        }
        .integration-form label:first-child { margin-top: 0; }

        .integration-form input {
            width: 100%;
            padding: 7px 10px;
            background: #0f0f23;
            border: 1px solid #2a2a4a;
            border-radius: 6px;
            color: #fff;
            font-size: 0.85rem;
            outline: none;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }
        .integration-form input:focus { border-color: #4f8cff; }

        .integration-form-actions {
            display: flex;
            gap: 6px;
            margin-top: 10px;
        }
        .integration-form-actions button,
        .integration-card-right button {
            padding: 5px 14px;
            border-radius: 6px;
            border: none;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-connect {
            background: #4f8cff;
            color: #fff;
        }
        .btn-connect:hover { background: #3a6fd8; }

        .btn-disconnect {
            background: rgba(231,76,60,0.15);
            color: #e74c3c;
        }
        .btn-disconnect:hover { background: rgba(231,76,60,0.3); }

        .btn-toggle-form {
            background: rgba(79,140,255,0.12);
            color: #4f8cff;
        }
        .btn-toggle-form:hover { background: rgba(79,140,255,0.25); }

        .btn-cancel {
            background: rgba(255,255,255,0.06) !important;
            color: #888 !important;
        }
        .btn-cancel:hover {
            background: rgba(255,255,255,0.1) !important;
        }

        /* --- Status messages --- */
        .integration-msg {
            font-size: 0.78rem;
            margin-top: 6px;
            padding: 5px 10px;
            border-radius: 6px;
            display: none;
        }
        .integration-msg.success { display: block; background: rgba(46,204,113,0.12); color: #2ecc71; }
        .integration-msg.error { display: block; background: rgba(231,76,60,0.12); color: #e74c3c; }

        /* ============================================
           LIBRARY — Accordion-Ansicht
           ============================================ */
        .lib-accordion-item {
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            margin-bottom: 10px;
            background: rgba(255,255,255,0.02);
            overflow: hidden;
            transition: border-color 0.2s;
        }
        .lib-accordion-item:hover {
            border-color: rgba(255,255,255,0.15);
        }
        .lib-accordion-item.open {
            border-color: rgba(0,212,170,0.3);
        }

        .lib-accordion-header {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 18px;
            background: transparent;
            border: none;
            color: #e0e0e0;
            cursor: pointer;
            text-align: left;
            font-size: 0.92rem;
            gap: 12px;
            transition: background 0.15s;
        }
        .lib-accordion-header:hover {
            background: rgba(255,255,255,0.03);
        }

        .lib-acc-left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }
        .lib-acc-chevron {
            font-size: 0.7rem;
            color: #888;
            transition: transform 0.25s ease;
            flex-shrink: 0;
        }
        .lib-accordion-item.open .lib-acc-chevron {
            transform: rotate(90deg);
        }
        .lib-acc-topic {
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 300px;
        }
        .lib-acc-badges {
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }
        .lib-badge {
            font-size: 0.72rem;
            padding: 2px 8px;
            border-radius: 6px;
            white-space: nowrap;
        }
        .lib-badge-trigger {
            background: rgba(243,156,18,0.12);
            color: #f39c12;
        }
        .lib-badge-output {
            background: rgba(79,140,255,0.12);
            color: #4f8cff;
        }
        .lib-badge-count {
            background: rgba(255,255,255,0.06);
            color: #999;
        }
        .lib-acc-right {
            flex-shrink: 0;
        }
        .lib-acc-date {
            font-size: 0.78rem;
            color: #666;
        }

        /* Accordion Body */
        .lib-accordion-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease;
        }
        .lib-accordion-item.open .lib-accordion-body {
            max-height: 2000px;
        }
        .lib-accordion-body-inner {
            padding: 0 18px 18px;
        }

        /* Run Actions */
        .lib-run-actions {
            display: flex;
            gap: 8px;
            margin-bottom: 14px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .lib-action-btn {
            padding: 6px 14px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.12);
            background: transparent;
            color: var(--accent-color, #00d4aa);
            cursor: pointer;
            font-size: 0.82rem;
            transition: all 0.15s;
        }
        .lib-action-btn:hover {
            background: rgba(0,212,170,0.08);
            border-color: rgba(0,212,170,0.3);
        }
        .lib-action-btn.lib-action-primary {
            background: var(--accent-color, #00d4aa);
            color: #111;
            font-weight: 600;
            border-color: transparent;
        }
        .lib-action-btn.lib-action-primary:hover {
            background: #00e8bb;
        }
        .lib-action-btn:disabled {
            opacity: 0.5;
            cursor: wait;
        }

        /* Variant (Channel/Platform) Tabs */
        .lib-variant-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            padding-bottom: 0;
        }
        .lib-variant-tab {
            padding: 8px 16px;
            border: none;
            background: transparent;
            color: #888;
            cursor: pointer;
            font-size: 0.85rem;
            border-bottom: 2px solid transparent;
            transition: all 0.15s;
        }
        .lib-variant-tab:hover {
            color: #ccc;
        }
        .lib-variant-tab.active {
            color: #4f8cff;
            border-bottom-color: #4f8cff;
        }
        .lib-variant-panel {
            display: none;
        }
        .lib-variant-panel.active {
            display: block;
        }

        /* Length Tabs */
        .lib-length-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 10px;
        }
        .lib-length-tab {
            padding: 5px 12px;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.1);
            background: transparent;
            color: #888;
            cursor: pointer;
            font-size: 0.8rem;
            transition: all 0.15s;
        }
        .lib-length-tab:hover {
            color: #ccc;
            border-color: rgba(255,255,255,0.2);
        }
        .lib-length-tab.active {
            background: rgba(243,156,18,0.12);
            color: #f39c12;
            border-color: rgba(243,156,18,0.3);
        }
        .lib-content-block {
            display: none;
        }
        .lib-content-block.active {
            display: block;
        }

        /* Content Display */
        .lib-content-actions {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 8px;
        }
        .lib-copy-btn {
            padding: 4px 12px;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.12);
            background: transparent;
            color: #ccc;
            cursor: pointer;
            font-size: 0.8rem;
            transition: all 0.15s;
        }
        .lib-copy-btn:hover {
            background: rgba(0,212,170,0.1);
            color: #00d4aa;
            border-color: rgba(0,212,170,0.3);
        }
        .lib-content-text {
            white-space: pre-wrap;
            word-break: break-word;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 0.88rem;
            line-height: 1.65;
            color: #d0d0d0;
            background: rgba(0,0,0,0.15);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 10px;
            padding: 16px;
            max-height: 500px;
            overflow-y: auto;
        }
        .lib-content-text::-webkit-scrollbar {
            width: 6px;
        }
        .lib-content-text::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.12);
            border-radius: 3px;
        }

        .lib-acc-thumb {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            object-fit: cover;
            flex-shrink: 0;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .lib-image-preview {
            margin-bottom: 14px;
            text-align: center;
        }
        .lib-image-preview img {
            max-width: 100%;
            max-height: 220px;
            border-radius: 10px;
            object-fit: contain;
            border: 1px solid rgba(255,255,255,0.08);
        }

        @media (max-width: 640px) {
            .lib-acc-badges { display: none; }
            .lib-acc-topic { max-width: 180px; }
            .lib-run-actions { flex-wrap: wrap; }
            .lib-acc-thumb { width: 32px; height: 32px; }
        }

/* ============================================
   IMAGE PIPELINE
   ============================================ */
.image-source-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.03);
    padding: 4px;
    border-radius: 10px;
}
.image-source-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all 0.15s;
    text-align: center;
}
.image-source-tab:hover {
    color: #ccc;
    background: rgba(255,255,255,0.05);
}
.image-source-tab.active {
    color: #e0e0e0;
    background: rgba(255,255,255,0.08);
    font-weight: 600;
}
.image-source-content {
    display: none;
}
.image-source-content.active {
    display: block;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding: 8px 4px;
}
.image-gallery-grid::-webkit-scrollbar {
    width: 6px;
}
.image-gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

/* --- Gallery Item: Card-Layout mit Infos darunter --- */
.gallery-item {
    position: relative;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
    background: rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
}
.gallery-item:hover {
    border-color: rgba(0,212,170,0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.gallery-item.selected {
    border-color: var(--accent-color, #00d4aa);
    box-shadow: 0 0 0 2px rgba(0,212,170,0.25);
}
.gallery-item.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-color, #00d4aa);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
}
.gallery-item-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,0.3);
}
.gallery-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-item-info {
    padding: 10px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gallery-item-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gallery-item-name {
    font-size: 0.78rem;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    font-weight: 500;
}
.gallery-item-name-input {
    font-size: 0.78rem;
    color: #e0e0e0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(79,140,255,0.5);
    border-radius: 4px;
    padding: 2px 6px;
    flex: 1;
    min-width: 0;
    outline: none;
    font-weight: 500;
}
.gallery-item-rename-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 2px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    flex-shrink: 0;
}
.gallery-item:hover .gallery-item-rename-btn {
    opacity: 1;
}
.gallery-item-rename-btn:hover {
    color: #4f8cff;
}
.gallery-item-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.gallery-item-meta {
    font-size: 0.68rem;
    color: #888;
}
.gallery-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.gallery-toolbar-select {
    font-size: 0.82rem;
    color: #ccc;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    min-width: 130px;
}
.gallery-toolbar-select:hover {
    border-color: rgba(79,140,255,0.4);
    background: rgba(255,255,255,0.08);
}
.gallery-toolbar-select:focus {
    border-color: rgba(79,140,255,0.6);
    background: rgba(255,255,255,0.1);
}
.gallery-toolbar-select option {
    background: #1e2235;
    color: #ccc;
    padding: 6px 10px;
}

.gallery-folder-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    background: rgba(79,140,255,0.12);
    color: #4f8cff;
    border: 1px solid rgba(79,140,255,0.25);
}
.gallery-item-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #e74c3c;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    z-index: 5;
    padding: 0;
    line-height: 1;
}
.gallery-item:hover .gallery-item-delete {
    opacity: 1;
}
.gallery-item-delete:hover {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
}

/* --- Gallery Folders --- */
.gallery-folder-item {
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: rgba(255,255,255,0.03);
    min-height: 100px;
}
.gallery-folder-item:hover {
    border-color: rgba(79,140,255,0.4);
    background: rgba(79,140,255,0.06);
}
.gallery-folder-item .folder-icon {
    font-size: 2rem;
}
.gallery-folder-item .folder-name {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 500;
}
.gallery-folder-item .folder-count {
    font-size: 0.68rem;
    color: #666;
}
.gallery-folder-item.add-folder {
    border-color: rgba(79,140,255,0.2);
    color: #4f8cff;
}
.gallery-folder-item.add-folder:hover {
    border-color: rgba(79,140,255,0.5);
    background: rgba(79,140,255,0.08);
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #888;
}
.gallery-folder {
    background: rgba(243,156,18,0.06);
    border-color: rgba(243,156,18,0.15);
}
.gallery-folder:hover {
    border-color: rgba(243,156,18,0.4);
}

.cloud-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: #888;
    flex-wrap: wrap;
}
.cloud-crumb:hover {
    color: #f39c12;
}

.cloud-provider-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
}

.image-gen-results {
    margin-top: 12px;
}

/* ========== OVERLAY SUGGESTION CHIPS ========== */
.overlay-suggestion-chip {
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.04) !important;
    color: #ccc !important;
    font-weight: 500;
    transition: all 0.15s ease !important;
}
.overlay-suggestion-chip:hover {
    background: rgba(0,212,170,0.08) !important;
    border-color: rgba(0,212,170,0.25) !important;
    color: #00d4aa !important;
}
.overlay-suggestion-chip.selected {
    background: rgba(0,212,170,0.15) !important;
    border-color: rgba(0,212,170,0.4) !important;
    color: #00d4aa !important;
    font-weight: 600;
}

.overlay-mode-btn {
    transition: all 0.15s ease;
}
.overlay-mode-btn.active {
    background: rgba(0,212,170,0.1);
    border-color: rgba(0,212,170,0.3);
    color: #00d4aa;
}

/* Finalize Preview (Step 6) */
.fp-card {
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.fp-text {
    word-break: break-word;
}
.fp-mehr {
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}
.fp-mehr:hover {
    opacity: 1;
}
.fp-full-text {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.fp-full-text::-webkit-scrollbar {
    width: 5px;
}
.fp-full-text::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
}
.fp-copy-btn {
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

/* ============================================
   FINALIZE WIZARD
   ============================================ */
.finalize-wizard-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.wiz-connector {
    width: 30px;
    height: 2px;
    background: rgba(255,255,255,0.15);
}
.finalize-wiz-panel {
    margin-top: 15px;
}

/* ============================================
   UTILITY CLASSES (referenced in HTML)
   ============================================ */
.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #f39c12;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #f39c12;
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    margin-left: auto;
}
.alert-warning {
    background: rgba(243,156,18,0.1);
    border-left: 4px solid #f39c12;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #f39c12;
}
.project-select {
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.project-select:focus {
    outline: none;
    border-color: #f39c12;
}

/* slo-card / slo-dots (supplements Block 1 step-loading) */
.slo-card {
    text-align: center;
    padding: 40px;
}
.slo-dots::after {
    content: '';
    animation: slo-dots 1.4s steps(4,end) infinite;
}
@keyframes slo-dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* opg-progress-track/fill (supplements Block 1 opg styles -- matches HTML markup) */
.opg-progress-track {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}
.opg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f8cff, #00d4aa);
    border-radius: 3px;
    transition: width 0.6s ease;
}
.opg-progress-fill.complete {
    background: #00d4aa;
}

.modal-card {
    background: #1e2130;
    border-radius: 0 !important;
    padding: 24px 32px;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto;
    box-shadow: none;
}

/* ============================================
   LEFT APP SIDEBAR
   ============================================ */
.app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    background: linear-gradient(180deg, #0f1523 0%, #141b2d 100%);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    z-index: 9000;
    padding: 0;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand-icon {
    font-size: 1.3rem;
}
.sidebar-brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: #f39c12;
    letter-spacing: 0.5px;
}
.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}
.sidebar-section-label {
    padding: 8px 20px 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
    border-left: 3px solid transparent;
}
.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.sidebar-nav-item.active {
    background: rgba(243,156,18,0.1);
    color: #f39c12;
    border-left-color: #f39c12;
}
.sidebar-nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.sidebar-nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 8px 0;
}
.sidebar-logout {
    color: rgba(255,255,255,0.4);
}
.sidebar-logout:hover {
    color: #e74c3c;
    background: rgba(231,76,60,0.08);
}

/* Offset header + main for sidebar */
header { margin-left: 220px; }
main   { margin-left: 220px; }

/* ============================================
   SIDEBAR OVERLAYS (Right slide-in panels)
   ============================================ */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: #13152a;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.sidebar-panel {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    background: var(--bg-card, #1e2a3a);
    padding: 24px 32px;
    overflow-y: auto;
    transform: none !important;
    transition: none;
    box-shadow: none;
}
.sidebar-overlay.open .sidebar-panel {
    transform: none;
}
.alert-info {
    background: var(--blue-50, #ebf8ff);
    border-left: 4px solid var(--blue-500, #4299e1);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
}
.form-input {
    padding: 6px 10px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-card, #fff);
    color: var(--text, #1a202c);
}
.form-input:focus {
    outline: none;
    border-color: var(--primary, #4361ee);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.15);
}

/* KB Modal Tabs */
.kb-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
}
.kb-tab.active {
    background: #f39c12;
    color: #1a1a2e;
    border-color: #f39c12;
    font-weight: 600;
}
.kb-tab:hover:not(.active) {
    background: rgba(255,255,255,0.1);
}
