/* =========================================================================
   WORKSPACE BALANCED BORDERLESS & PREMIUM DESIGN SYSTEM TOKENS
   ========================================================================= */
.workspace-fullscreen-overlay,
.proj-layout,
#project-app,
.workspace-fullscreen-card {
    --co-shadow-surface: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --co-shadow-card: 0 3px 12px -2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    --co-shadow-card-hover: 0 8px 24px -4px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.03);
    --co-shadow-panel: 0 6px 28px -3px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.02);
    --co-shadow-floating: 0 16px 42px -4px rgba(0, 0, 0, 0.16), 0 4px 14px -2px rgba(0, 0, 0, 0.06);
    --co-shadow-modal: 0 24px 60px -8px rgba(0, 0, 0, 0.28);
    --co-surface-recessed: color-mix(in srgb, var(--bg-body) 70%, var(--card-bg));
    --co-surface-subtle: color-mix(in srgb, var(--card-bg) 85%, var(--bg-body));
    --co-border-subtle: color-mix(in srgb, var(--border-color) 45%, transparent);
    --co-border-divider: color-mix(in srgb, var(--border-color) 50%, transparent);
    --co-border-light: color-mix(in srgb, var(--border-color) 30%, transparent);
}

[data-theme="dark"] .workspace-fullscreen-overlay,
[data-theme="dark"] .proj-layout,
[data-theme="dark"] #project-app,
[data-theme="dark"] .workspace-fullscreen-card,
[data-theme="sunmoon"] .workspace-fullscreen-overlay,
[data-theme="sunmoon"] .proj-layout,
[data-theme="sunmoon"] #project-app,
[data-theme="sunmoon"] .workspace-fullscreen-card {
    --co-shadow-surface: 0 1px 4px rgba(0, 0, 0, 0.35);
    --co-shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.45);
    --co-shadow-card-hover: 0 8px 26px -4px rgba(0, 0, 0, 0.6);
    --co-shadow-panel: 0 8px 32px -4px rgba(0, 0, 0, 0.55);
    --co-shadow-floating: 0 20px 50px -4px rgba(0, 0, 0, 0.65), 0 6px 16px rgba(0, 0, 0, 0.35);
    --co-shadow-modal: 0 30px 80px -10px rgba(0, 0, 0, 0.85);
    --co-surface-recessed: rgba(255, 255, 255, 0.04);
    --co-surface-subtle: rgba(255, 255, 255, 0.06);
    --co-border-subtle: rgba(255, 255, 255, 0.08);
    --co-border-divider: rgba(255, 255, 255, 0.10);
    --co-border-light: rgba(255, 255, 255, 0.06);
}

/* =========================================================================
   WORKSPACE FULLSCREEN OVERLAY MODAL (THEME-AWARE & REUSABLE ENGINE)
   ========================================================================= */
.workspace-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 9980; /* Lower than mac-dock (9999) & reveal trigger (10000) so dock remains on top */
    background: rgba(246, 245, 244, 0.55); /* Luminous frosted glass for Light mode matching --bg-body (#f6f5f4) */
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 16px 95px 16px;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    animation: workspaceOverlayFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark theme overlay */
[data-theme=dark] .workspace-fullscreen-overlay,
.dark-mode .workspace-fullscreen-overlay {
    background: rgba(19, 21, 26, 0.70);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

/* Sunset / Sunmoon theme overlay */
[data-theme=sunmoon] .workspace-fullscreen-overlay {
    background: rgba(22, 20, 18, 0.72);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

/* B&W Monochrome theme overlay */
[data-theme=bw] .workspace-fullscreen-overlay {
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(25px) grayscale(100%);
    -webkit-backdrop-filter: blur(25px) grayscale(100%);
}

/* Modal overlays inside workspace app (e.g. Editorial Planner) - keep below dock */
.modal-editorial-overlay,
.modal-overlay {
    z-index: 9990 !important;
}

.modal-editorial-overlay {
    background: rgba(246, 245, 244, 0.55) !important;
    backdrop-filter: blur(25px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(160%) !important;
}

[data-theme=dark] .modal-editorial-overlay,
.dark-mode .modal-editorial-overlay {
    background: rgba(19, 21, 26, 0.70) !important;
}

[data-theme=sunmoon] .modal-editorial-overlay {
    background: rgba(22, 20, 18, 0.72) !important;
}

[data-theme=bw] .modal-editorial-overlay {
    background: rgba(18, 18, 18, 0.75) !important;
}

@keyframes workspaceOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.workspace-fullscreen-overlay.d-none {
    display: none !important;
}

.workspace-fullscreen-card {
    width: 100%;
    max-width: 1350px;
    height: calc(100vh - 105px);
    max-height: calc(100vh - 105px);
    background: var(--card-bg, #ffffff);
    
    border-radius: 18px;
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: workspaceCardScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);

    border: none !important;
    box-shadow: var(--co-shadow-modal);
}

[data-theme=dark] .workspace-fullscreen-card,
.dark-mode .workspace-fullscreen-card,
[data-theme=sunmoon] .workspace-fullscreen-card {
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@keyframes workspaceCardScaleIn {
    from {
        opacity: 0;
        transform: scale(0.975) translateY(-6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.workspace-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    height: 52px;
    min-height: 52px;
    background: var(--card-bg, #ffffff);
    
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px 18px 0 0;
    z-index: 20;
    flex-shrink: 0;

    

    border-bottom: 1px solid var(--co-border-divider) !important;
}

[data-theme=dark] .workspace-modal-header,
.dark-mode .workspace-modal-header {
    background: color-mix(in srgb, var(--card-bg, #1a1d25) 92%, #000000 8%);
    border-bottom-color: var(--border-color, #323644);
}

[data-theme=sunmoon] .workspace-modal-header {
    background: color-mix(in srgb, var(--card-bg, #2d2725) 92%, #000000 8%);
    border-bottom-color: var(--border-color, #433837);
}

.workspace-header-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.workspace-header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--primary-light, rgba(244, 106, 37, 0.15));
    color: var(--primary-color, #f46a25);
    border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.workspace-header-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main, #2d2725);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1.2;
}

.workspace-header-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted, #8c7b73);
}

.workspace-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workspace-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9px;
    background: var(--bg-body, #f6f5f4);
    
    color: var(--text-main, #2d2725);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 25;
    pointer-events: auto;
    transition: all 0.15s ease;

    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme=dark] .workspace-close-btn,
.dark-mode .workspace-close-btn,
[data-theme=sunmoon] .workspace-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.workspace-close-btn * {
    pointer-events: none;
}

.workspace-close-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important; color: #ef4444 !important;
    color: #ef4444 !important;
    transform: translateY(-1px);
}

.workspace-modal-body {
    flex: 1 1 auto;
    width: 100%;
    height: calc(100% - 52px);
    max-height: calc(100% - 52px);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

.workspace-modal-body #project-app {
    min-height: 100%;
    width: 100%;
}

.workspace-modal-body .page-content-state {
    width: 100%;
}

.workspace-modal-body .page-content-state.show {
    display: block !important;
}

.workspace-modal-body .page-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    width: 100%;
}

  .scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
        .scrollbar::-webkit-scrollbar-track { background: transparent; }
        .scrollbar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
        * { box-sizing: border-box; }
        /* =========================================
           LAYOUT & SIDEBAR
           ========================================= */
        .proj-layout { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; padding: 24px; }
        @media (max-width: 992px) { .proj-layout { grid-template-columns: 1fr; } }
        .proj-sidebar { 
            background: var(--card-bg); 
             
             
            border-radius: 20px; 
            padding: 18px; 
             
            position: sticky; 
            top: 24px; 
            max-height: calc(100vh - 205px); 
            overflow-y: auto; 
            overflow-x: hidden; 
            display: flex;
            flex-direction: column;
            gap: 12px;
        
    
    
    

    border: none !important;
    border-inline-end: 1px solid var(--co-border-subtle) !important;
    box-shadow: var(--co-shadow-surface);
}
        .tree-header { 
            display: flex; 
            flex-direction: column; 
            gap: 10px; 
            padding-bottom: 12px; 
             
        
    

    border-bottom: 1px solid var(--co-border-divider) !important;
}
        .tree-header-top {
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
        }
        .tree-title { 
            font-size: 14px; 
            font-weight: 800; 
            color: var(--text-main); 
            display: flex; 
            align-items: center; 
            gap: 8px; 
        }
        .tree-count-pill {
            font-size: 11px;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 10px;
            background: var(--co-surface-recessed);
            
            color: var(--text-muted);
        
    

    border: 1px solid var(--co-border-light) !important;
}
        .tree-header-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .tree-action-btn {
            width: 28px;
            height: 28px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: var(--card-bg);
            
            
            color: var(--text-muted);
            cursor: pointer;
            transition: 0.2s;
        
    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
        .tree-action-btn:hover {
            border-color: var(--primary-color) !important;
            color: var(--primary-color);
            background: var(--primary-light);
        }
        .tree-action-btn.active {
            border-color: var(--primary-color) !important;
            color: var(--primary-color);
            background: var(--primary-light);
        }
        .tree-search-row {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        .tree-search-wrap {
            position: relative;
            flex: 1;
            min-width: 0;
        }
        .tree-search-wrap input {
            width: 100%;
            height: 34px;
            padding-inline-start: 10px;
            padding-inline-end: 28px;
            font-size: 12px;
            font-weight: 600;
            border-radius: 10px;
            
            background: var(--card-bg);
            
            color: var(--text-main);
            outline: none;
            transition: 0.2s;
        
    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
        .tree-search-wrap input:focus {
            border-color: var(--primary-color) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent) !important;
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        .tree-search-icon {
            position: absolute;
            inset-inline-end: 8px;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            color: var(--text-muted);
            pointer-events: none;
        }
        .tree-search-clear {
            position: absolute;
            inset-inline-end: 6px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border-radius: 4px;
        }
        .tree-search-clear:hover {
            color: var(--danger);
            background: var(--icon-danger-bg);
        }

        /* =========================================
           PROJECT TREE MODERN & CREATIVE DESIGN (100% THEME ADAPTIVE)
           ========================================= */
        #tree-root-container {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding-top: 4px;
        }
        .tree-root-node-card {
            background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
            
            box-shadow: var(--co-shadow-surface);
            border-radius: 14px !important;
            padding: 8px 12px !important;
            margin-bottom: 6px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        
    

    border: 1px solid var(--co-border-subtle) !important;
}
        .tree-root-node-card:hover {
            border-color: var(--primary-color) !important;
            box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
            transform: translateY(-1px);
        }
        .tree-root-node-card.active {
            background: var(--primary-light) !important;
            border-color: var(--primary-color) !important;
            box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 25%, transparent), var(--shadow-sm) !important;
        }
        .tree-node { 
            margin-top: 3px; 
            user-select: none; 
            width: 100%; 
            position: relative; 
        }
        .tree-node-content { 
            display: flex; 
            align-items: center; 
            gap: 7px; 
            padding: 6px 10px; 
            border-radius: 11px; 
            cursor: pointer; 
            color: var(--text-main); 
            font-size: 13px; 
            font-weight: 600; 
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
            position: relative; 
            width: 100%;
            min-width: 0;
            border: none;
        }
        .tree-node-content:hover { 
            background: var(--bg-body); 
            transform: translateX(3px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.04);
        }
        html[dir="rtl"] .tree-node-content:hover {
            transform: translateX(-3px);
        }
        .tree-node-content.active { 
            background: var(--primary-light); 
            color: var(--primary-color); 
            font-weight: 800;
            border-inline-start: 3.5px solid var(--primary-color);
            box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 12%, transparent);
        }
        .tree-node-content.active .folder-icon { 
            color: var(--primary-color); 
            fill: color-mix(in srgb, var(--primary-color) 20%, transparent); 
            transform: scale(1.08);
        }
        
        .tree-node-name { 
            flex: 1; 
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis; 
            min-width: 0;
            padding-inline-start: 2px;
            padding-inline-end: 4px;
            letter-spacing: -0.2px;
        }
        
        .tree-toggle { 
            width: 18px; 
            height: 18px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            cursor: pointer; 
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
            color: var(--text-muted); 
            flex-shrink: 0;
            border-radius: 5px;
        }
        .tree-toggle:hover {
            background: var(--card-bg);
            color: var(--primary-color);
        }
        .tree-toggle.open { 
            transform: rotate(90deg); 
            color: var(--primary-color);
        }
        html[dir="rtl"] .tree-toggle.open {
            transform: rotate(-90deg);
        }
        .tree-toggle.hidden { opacity: 0; pointer-events: none; }
        
        .folder-icon { 
            width: 16px; 
            height: 16px; 
            color: #f59e0b; 
            transition: all 0.2s ease; 
            flex-shrink: 0;
        }
        .folder-open-icon {
            color: var(--primary-color);
        }
        
        .tree-children { 
            padding-inline-start: 16px; 
            display: none; 
            border-inline-start: 1.5px solid rgba(var(--primary-rgb, 16, 185, 129), 0.2); 
            margin-inline-start: 13px; 
            margin-top: 3px; 
            position: relative;
            animation: fadeIn 0.2s ease;
        }
        .tree-children.open { display: block; }
        .tree-children > .tree-node { position: relative; }
        .tree-children > .tree-node::before { 
            content: ''; 
            position: absolute; 
            top: 17px; 
            inset-inline-start: -16px; 
            width: 14px; 
            border-top: 1.5px solid rgba(var(--primary-rgb, 16, 185, 129), 0.2); 
            pointer-events: none; 
            z-index: 0; 
        }
        
        .tree-node-actions {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-inline-start: auto;
        }
        .tree-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 6px;
            
            background: var(--co-surface-recessed); 
            color: var(--text-muted); 
            font-weight: 700; 
            flex-shrink: 0;
            background: var(--bg-body);
            transition: 0.15s;
        
    

    border: 1px solid var(--co-border-light) !important;
}
        .tree-badge-folder {
            border-color: rgba(59, 130, 246, 0.25);
            color: #3b82f6;
        }
        .tree-badge-art {
            border-color: rgba(16, 185, 129, 0.25);
            color: var(--primary-color);
        }
        .tree-node-content.active .tree-badge {
            background: var(--card-bg);
            border-color: rgba(16, 185, 129, 0.4);
            color: var(--primary-color);
        }

        .tree-quick-add-btn {
            width: 20px;
            height: 20px;
            padding: 0;
            display: none;
            align-items: center;
            justify-content: center;
            
            background: var(--card-bg);
            color: var(--text-muted);
            border-radius: 6px;
            cursor: pointer;
            transition: 0.15s;
            flex-shrink: 0;
        
    

    border: 1px solid var(--co-border-subtle) !important;
}
        .tree-node-content:hover .tree-quick-add-btn {
            display: inline-flex;
        }
        .tree-quick-add-btn:hover {
            border-color: var(--primary-color) !important;
            color: #fff;
            background: var(--primary-color);
            transform: scale(1.1);
        }

        .tree-menu-btn {
            width: 22px;
            height: 22px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: transparent;
            color: var(--text-muted);
            border-radius: 6px;
            cursor: pointer;
            opacity: 0.6;
            transition: 0.15s;
            flex-shrink: 0;
        }
        .tree-node-content:hover .tree-menu-btn,
        .tree-menu-btn:hover {
            opacity: 1;
            background: var(--card-bg);
            color: var(--text-main);
            box-shadow: var(--shadow-sm);
        }

        .tree-empty-search {
            padding: 20px 10px;
            text-align: center;
            color: var(--text-muted);
            font-size: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
/* =========================================
   MAIN AREA & HEADER
   ========================================= */
.proj-main { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px;}
.proj-main-header {
    background: var(--card-bg);
    border: none !important;
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: var(--co-shadow-card); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 12px; 
    position: relative;
}
.breadcrumbs { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 13px; 
    color: var(--text-muted); 
    flex-wrap: wrap; 
}
.crumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--card-bg);
    
     
    color: var(--text-muted); 
    font-size: 13px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 

    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.crumb-item:hover { 
    color: var(--primary-color); 
    border-color: var(--primary-color) !important; 
    background: var(--primary-light); 
    transform: translateY(-1px);
}
.crumb-sep { 
    display: inline-flex; 
    align-items: center; 
    color: var(--text-muted); 
    opacity: 0.4; 
    font-size: 12px; 
    user-select: none;
    padding: 0 2px;
}
.crumb-current { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 5px 12px; 
    border-radius: 8px; 
    background: var(--primary-light); 
    color: var(--primary-color); 
    font-weight: 700; 
    font-size: 13px; 
    border: 1px solid transparent; 
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.btn-proj {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: var(--card-bg);
    
     
    color: var(--text-main);

    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.btn-proj:hover { 
    border-color: var(--primary-color) !important; color: var(--primary-color) !important; 
    color: var(--primary-color); 
    background: var(--card-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn-proj-primary { 
    background: var(--primary-color); 
    color: #ffffff; 
    border: 1px solid transparent; 
    box-shadow: 0 4px 12px var(--primary-shadow);
}
.btn-proj-primary:hover { 
    background: color-mix(in srgb, var(--primary-color) 88%, #000); 
    box-shadow: 0 6px 16px var(--primary-shadow);
    transform: translateY(-1px);
}
.planner-toolbar {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    gap: 12px; 
    flex-wrap: wrap; 
    background: var(--card-bg); 
    padding: 12px 18px; 
    border-radius: 16px; 
     
    

    
    

    border: none !important;
    box-shadow: var(--co-shadow-surface);
}
.pl-search-wrap { 
    flex: 1; 
    min-width: 240px; 
    position: relative; 
    display: flex;
    align-items: center;
}
.pl-search-wrap input {
            width: 100%;
            height: 38px;
            background: var(--card-bg);
            
             
    color: var(--text-main); 
    padding-inline-start: 36px;
    padding-inline-end: 32px; 
    border-radius: 10px; 
    font-family: inherit; 
    font-size: 13px; 
    font-weight: 600;
    outline: none; 
    transition: 0.2s ease; 

    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
        .pl-search-wrap input:focus { 
            border-color: var(--primary-color) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent) !important; 
            box-shadow: 0 0 0 3px var(--primary-light);
            background: var(--card-bg);
        }
        .pl-search-icon { 
            position: absolute; 
            inset-inline-start: 12px; 
            top: 50%; 
            transform: translateY(-50%); 
            width: 16px; 
            height: 16px;
            color: var(--text-muted); 
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .pl-search-clear {
            position: absolute;
            inset-inline-end: 8px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border-radius: 6px;
            transition: 0.15s;
        }
        .pl-search-clear:hover {
            color: var(--danger);
            background: var(--icon-danger-bg);
        }
        
        .pl-controls-wrap { 
            display: flex; 
            gap: 10px; 
            align-items: center; 
            flex-wrap: wrap; 
        }
        .pl-filters {
            display: flex;
            gap: 6px;
            align-items: center;
            background: color-mix(in srgb, var(--bg-body) 80%, var(--card-bg));
            padding: 4px;
            border-radius: 12px;
            border: 1px solid var(--co-border-light) !important;
        }
        .pl-filter-btn { 
            padding: 5px 12px; 
            height: 30px;
            background: transparent; 
            border: 1px solid transparent; 
            border-radius: 8px; 
            font-size: 12px; 
            font-weight: 700; 
            color: var(--text-muted); 
            cursor: pointer; 
            white-space: nowrap; 
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s ease;
        }
        .pl-filter-btn:hover { 
            color: var(--text-main); 
            background: var(--card-bg);
        }
        .pl-filter-btn.active {
            background: var(--card-bg);
            color: var(--primary-color);
            border: 1px solid var(--co-border-light) !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
        }
        .pl-filter-count {
            font-size: 10px;
            padding: 1px 5px;
            border-radius: 6px;
            background: var(--bg-body);
            color: var(--text-muted);
            font-weight: 800;
        }
        .pl-filter-btn.active .pl-filter-count {
            background: var(--primary-light);
            color: var(--primary-color);
        }
        
        .view-toggle {
            display: flex;
            background: color-mix(in srgb, var(--bg-body) 80%, var(--card-bg));
            border: 1px solid var(--co-border-light) !important; 
            border-radius: 10px; 
            padding: 3px; 
            height: 38px;
            align-items: center;
        }
        .view-toggle-btn { 
            padding: 0 10px; 
            height: 30px; 
            background: transparent; 
             
            border-radius: 7px; 
            color: var(--text-muted); 
            font-size: 12px; 
            font-weight: 700; 
            cursor: pointer; 
            display: flex; 
            align-items: center; 
            justify-content: center;
            gap: 6px; 
            transition: 0.2s ease;
        
    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
        .view-toggle-btn:hover {
            color: var(--text-main);
        
    border-color: var(--primary-color) !important;}
        .view-toggle-btn.active {
            background: var(--card-bg);
            color: var(--primary-color);
            border: 1px solid var(--co-border-light) !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        /* =========================================
           SIDEBAR MINI ACTIVITY & PLANNER WIDGET
           ========================================= */
        .sidebar-activity-widget {
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
            border-radius: 14px;
            padding: 10px 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 8px;
            transition: all 0.2s ease;
            cursor: pointer;
            user-select: none;
        }
        .sidebar-activity-widget:hover {
            border-color: var(--primary-color);
            background: var(--card-bg);
            box-shadow: var(--shadow-sm);
        }
        .sidebar-act-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .sidebar-act-title {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 800;
            color: var(--text-main);
        }
        .sidebar-act-expand-btn {
            width: 22px;
            height: 22px;
            border-radius: 6px;
            border: 1px solid var(--co-border-subtle) !important;
            background: var(--card-bg);
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.15s ease;
        }
        .sidebar-activity-widget:hover .sidebar-act-expand-btn {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }
        .sidebar-act-stats {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4px;
            background: color-mix(in srgb, var(--bg-body) 70%, var(--card-bg));
            padding: 5px 8px;
            border-radius: 8px;
            border: 1px solid var(--co-border-light) !important;
        }
        .sidebar-act-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 10px;
            color: var(--text-muted);
            font-weight: 700;
        }
        .sidebar-act-stat strong {
            font-size: 12px;
            color: var(--primary-color);
            font-weight: 800;
        }
        .sidebar-act-heatmap {
            display: flex;
            gap: 2px;
            width: 100%;
            justify-content: space-between;
            padding-top: 2px;
        }
        .sidebar-act-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .sidebar-act-cell {
            width: 100%;
            aspect-ratio: 1/1;
            border-radius: 2px;
            background: var(--card-bg);
            border: none !important; outline: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
            transition: all 0.15s ease;
        }
        .sidebar-act-cell.selected-date {
            border-color: var(--primary-color) !important;
            box-shadow: 0 0 0 1.5px var(--primary-color) !important;
        }

        /* =========================================
           EDITORIAL CONTENT PLANNER & ACTIVITY CALENDAR
           ========================================= */
        .content-activity-card {
            background: var(--card-bg);
            
            border-radius: 20px;
            padding: 16px 20px;
            margin-bottom: 20px;
            
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        
    
    

    border: none !important;
    box-shadow: var(--co-shadow-card);
}
        .content-activity-card.is-collapsed {
            padding: 12px 20px;
        }
        .activity-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
        }
        .activity-title-group {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .activity-title {
            font-size: 15px;
            font-weight: 800;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .cal-collapse-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    
    background: var(--co-surface-recessed);
    box-shadow: var(--co-shadow-surface);
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.2s ease;
        
    border: 1px solid var(--co-border-subtle) !important;
}
        .cal-collapse-btn:hover {
            border-color: var(--primary-color) !important;
            color: var(--primary-color);
            background: var(--card-bg);
        }
        .activity-active-filter-badge {
            background: var(--primary-light);
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: 0.2s;
        }
        .activity-active-filter-badge:hover {
            background: var(--primary-color);
            color: #fff;
        }
        .activity-controls-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .cal-month-nav {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: color-mix(in srgb, var(--bg-body) 80%, var(--card-bg));
            border: 1px solid var(--co-border-light) !important;
            border-radius: 10px;
            padding: 3px 6px;
        }
        .cal-nav-btn {
            width: 26px;
            height: 26px;
            border-radius: 6px;
            
            background: transparent;
            color: var(--text-main);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.15s;
        
    border: 1px solid var(--co-border-subtle) !important;
}
        .cal-nav-btn:hover {
            background: var(--card-bg);
            color: var(--primary-color);
        
    border-color: var(--primary-color) !important;}
        .cal-month-title {
            font-size: 12px;
            font-weight: 800;
            color: var(--text-main);
            padding: 0 8px;
            min-width: 110px;
            text-align: center;
        }
        .cal-today-btn {
            height: 26px;
            padding: 0 8px;
            border-radius: 6px;
            border: 1px solid var(--co-border-subtle) !important;
            background: var(--card-bg);
            color: var(--text-muted);
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            transition: 0.15s;
        }
        .cal-today-btn:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }
        .cal-view-switch {
    display: inline-flex;
    background: var(--co-surface-recessed);
    border: none !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    border-radius: 10px;
            padding: 3px;
        }
        .cal-view-btn {
            height: 28px;
            padding: 0 10px;
            border-radius: 7px;
            
            background: transparent;
            color: var(--text-muted);
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: 0.15s;
        
    border: 1px solid var(--co-border-subtle) !important;
}
        .cal-view-btn.active {
            background: var(--card-bg);
            color: var(--primary-color);
            box-shadow: var(--shadow-sm);
        }
        .btn-plan-article {
            height: 34px;
            padding: 0 14px;
            border-radius: 10px;
            border: none;
            background: var(--primary-color);
            color: #fff;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }
        .btn-plan-article:hover {
            background: var(--primary-hover, var(--primary-color));
            box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 35%, transparent);
            transform: translateY(-1px);
        }

        /* Stats Bar inside Calendar */
        .activity-stats-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid var(--co-border-light) !important;
        }
        .activity-stat-pill {
            background: var(--bg-body);
            border: 1px solid var(--co-border-subtle) !important;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .activity-stat-pill strong {
            color: var(--primary-color);
            font-weight: 800;
        }
        .activity-stat-pill.dot-draft span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
        .activity-stat-pill.dot-writing span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
        .activity-stat-pill.dot-published span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

        /* =========================================
           MONTH PLANNING CALENDAR GRID
           ========================================= */
        .cal-month-wrap {
            margin-top: 14px;
            user-select: none;
        }
        .cal-weekdays-row {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
            margin-bottom: 6px;
        }
        .cal-weekday-label {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    padding: 6px 0;
    background: var(--co-surface-recessed);
    border-radius: 8px;
    border: none !important;
        }
        .cal-days-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
        }
        .cal-day-cell {
            min-height: 98px;
            background: var(--bg-body);
            border: 1px solid var(--co-border-light) !important;
            border-radius: 12px;
            padding: 6px 8px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
            position: relative;
        }
        .cal-day-cell:hover {
            border-color: var(--primary-color);
            background: var(--card-bg);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .cal-day-cell.other-month {
            opacity: 0.38;
            background: transparent;
        }
        .cal-day-cell.is-today {
            border-color: var(--primary-color);
            box-shadow: inset 0 0 0 1.5px var(--primary-color);
        }
        .cal-day-cell.selected-date {
            border-color: var(--primary-color) !important;
            box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 40%, transparent), 0 6px 16px color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
            background: color-mix(in srgb, var(--primary-color) 10%, var(--card-bg)) !important;
        }
        .cal-day-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 11px;
            font-weight: 800;
            color: var(--text-muted);
        }
        .cal-day-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 6px;
            color: var(--text-main);
        }
        .cal-day-cell.is-today .cal-day-num {
            background: var(--primary-color);
            color: #fff;
            font-weight: 800;
        }
        .cal-day-actions {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .cal-count-badge {
            background: var(--card-bg);
            
            font-size: 10px;
            font-weight: 800;
            padding: 1px 5px;
            border-radius: 6px;
            color: var(--primary-color);
        
    border: 1px solid var(--co-border-light) !important;
}
        .cal-day-add-btn {
            width: 20px;
            height: 20px;
            border-radius: 6px;
            border: 1px dashed var(--border-color);
            background: var(--card-bg);
            color: var(--text-muted);
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.15s;
        }
        .cal-day-cell:hover .cal-day-add-btn {
            display: inline-flex;
        }
        .cal-day-add-btn:hover {
            background: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }

        /* Article Chips Inside Calendar Day */
        .cal-art-chips-list {
            display: flex;
            flex-direction: column;
            gap: 3px;
            overflow-y: auto;
            max-height: 80px;
        }
        .cal-art-chip {
            background: var(--card-bg);
             box-shadow: var(--co-shadow-surface);
            border-radius: 6px;
            padding: 3px 6px;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-main);
            cursor: pointer;
            transition: transform 0.1s, border-color 0.15s;
            overflow: hidden;
            white-space: nowrap;
        
    border: 1px solid var(--co-border-light) !important;
}
        .cal-art-chip:hover {
            border-color: var(--primary-color);
            transform: scale(1.02);
            color: var(--primary-color);
        }
        .chip-status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .chip-status-dot.dot-published { background: var(--success); }
        .chip-status-dot.dot-writing { background: var(--blue); }
        .chip-status-dot.dot-draft { background: var(--text-muted); }
        .chip-title {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex: 1;
        }
        .cal-more-pill {
            font-size: 10px;
            font-weight: 800;
            color: var(--primary-color);
            padding: 2px 4px;
            text-align: center;
            border-radius: 4px;
            background: var(--primary-light);
            cursor: pointer;
        }

        /* =========================================
           YEARLY ACTIVITY HEATMAP MATRIX (100% MATHEMATICALLY ALIGNED & FULL-WIDTH)
           ========================================= */
        .activity-scroll-wrap {
            overflow-x: auto;
            padding: 12px 0 6px;
            width: 100%;
        }
        .activity-grid-container {
            display: flex;
            flex-direction: column;
            gap: 4px;
            width: 100%;
            min-width: 820px;
            user-select: none;
        }
        .activity-months-row {
            display: flex;
            gap: 3px;
            height: 16px;
            margin-bottom: 2px;
            padding-inline-start: 28px;
            width: 100%;
        }
        .activity-month-col {
            flex: 1;
            min-width: 12px;
            position: relative;
            height: 16px;
        }
        .act-month-text {
            position: absolute;
            inset-inline-start: 0;
            top: 0;
            font-size: 10px;
            font-weight: 800;
            color: var(--text-muted);
            white-space: nowrap;
            pointer-events: none;
        }
        .activity-body-row {
            display: flex;
            gap: 6px;
            align-items: flex-start;
            width: 100%;
        }
        .activity-days-labels {
            display: flex;
            flex-direction: column;
            gap: 3px;
            width: 22px;
            flex-shrink: 0;
            padding-top: 1px;
        }
        .activity-day-label {
            font-size: 9px;
            font-weight: 700;
            color: var(--text-muted);
            height: 13px;
            line-height: 13px;
            text-align: start;
        }
        .activity-weeks-grid {
            display: flex;
            gap: 3px;
            flex: 1;
            width: 100%;
        }
        .activity-week-col {
            flex: 1;
            min-width: 12px;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .activity-cell {
            width: 100%;
            aspect-ratio: 1 / 1;
            min-width: 12px;
            min-height: 12px;
            max-width: 18px;
            max-height: 18px;
            border-radius: 3px;
            cursor: pointer;
            transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
            position: relative;
            background: var(--bg-body);
            border: none !important; outline: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
        }
        .activity-cell:hover {
            transform: scale(1.45);
            z-index: 5;
            border-color: var(--primary-color);
            box-shadow: 0 3px 10px rgba(0,0,0,0.3);
        }
        .activity-cell.is-today {
            box-shadow: inset 0 0 0 1.5px var(--blue);
        }
        .activity-cell.selected-date {
            border-color: #fff !important;
            transform: scale(1.4);
            box-shadow: 0 0 0 2px var(--primary-color);
        }
        .activity-level-0 {
            background: var(--bg-body);
            border-color: var(--border-color);
        }
        .activity-level-1 {
            background: color-mix(in srgb, var(--primary-color) 25%, var(--card-bg));
            border-color: color-mix(in srgb, var(--primary-color) 35%, var(--border-color));
        }
        .activity-level-2 {
            background: color-mix(in srgb, var(--primary-color) 50%, var(--card-bg));
            border-color: color-mix(in srgb, var(--primary-color) 60%, var(--border-color));
        }
        .activity-level-3 {
            background: color-mix(in srgb, var(--primary-color) 75%, var(--card-bg));
            border-color: color-mix(in srgb, var(--primary-color) 85%, var(--border-color));
        }
        .activity-level-4 {
            background: var(--primary-color);
            border-color: var(--primary-color);
            box-shadow: 0 0 8px color-mix(in srgb, var(--primary-color) 40%, transparent);
        }
        .activity-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
            font-size: 11px;
            color: var(--text-muted);
        }
        .activity-legend {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .legend-box {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            border: none !important; outline: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
        }

        /* =========================================
           EDITORIAL PLANNER MODAL WINDOW (EXPANDED POPUP)
           ========================================= */
        .modal-editorial-overlay {
            z-index: 10000;
        }
        .editorial-planner-modal-card {
            width: 94vw;
            max-width: 1350px;
            height: calc(100vh - 105px);
            max-height: calc(100vh - 105px);
            display: flex;
            flex-direction: column;
            padding: 24px;
            border-radius: 24px;
            background: var(--card-bg);
            border: 1px solid var(--co-border-light) !important;
            box-shadow: 0 25px 60px rgba(0,0,0,0.35);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }
        .editorial-planner-modal-card.is-fullscreen {
            width: 100vw !important;
            height: 100vh !important;
            max-width: 100vw !important;
            max-height: 100vh !important;
            border-radius: 0 !important;
            padding: 20px 28px !important;
        }
        .editorial-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 14px;
            padding-bottom: 16px;
            
        
    

    border-bottom: 1px solid var(--co-border-divider) !important;
}
        .editorial-modal-title {
            font-size: 18px;
            font-weight: 800;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .editorial-modal-body {
            flex: 1;
            overflow-y: auto;
            padding-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .editorial-modal-day-cell {
            min-height: 115px !important;
            padding: 8px 10px !important;
        }
        .editorial-modal-day-cell .cal-art-chips-list {
            max-height: 95px !important;
        }
        .btn-modal-action-icon {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            border: 1px solid var(--co-border-subtle) !important;
            background: var(--bg-body);
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.15s ease;
        }
        .btn-modal-action-icon:hover {
            background: var(--card-bg);
            color: var(--primary-color);
            border-color: var(--primary-color);
        }

        /* Status Picker Pills in Modal */
        .status-picker-group {
            display: flex;
            gap: 8px;
            margin-top: 6px;
        }
        .status-pill-btn {
            flex: 1;
            padding: 8px 12px;
            border-radius: 10px;
            
            background: var(--bg-body);
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: 0.15s;
        
    border: 1px solid var(--co-border-light) !important;
}
        .status-pill-btn:hover {
            border-color: var(--text-main);
            color: var(--text-main);
        }
        .status-pill-btn.active.st-draft {
            background: var(--bg-body);
            border-color: var(--text-muted);
            color: var(--text-main);
            box-shadow: var(--shadow-sm);
        }
        .status-pill-btn.active.st-writing {
            background: var(--icon-blue-bg);
            border-color: var(--blue);
            color: var(--blue);
            box-shadow: var(--shadow-sm);
        }
        .status-pill-btn.active.st-published {
            background: var(--icon-green-bg);
            border-color: var(--success);
            color: var(--success);
            box-shadow: var(--shadow-sm);
        }

        /* =========================================
           GUEST LIMIT & UPGRADE MODAL (THEME DYNAMIC)
           ========================================= */
        .modal-guest-overlay {
            z-index: 10000;
        }
        .guest-limit-modal-card {
            text-align: center;
            border-radius: 24px !important;
            padding: 24px 28px !important;
            max-width: 490px !important;
            border: 1px solid var(--co-border-light) !important; box-shadow: var(--co-shadow-modal);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
            animation: fadeIn 0.25s ease;
        }
        .guest-limit-header {
            display: flex;
            justify-content: center;
            position: relative;
            margin-bottom: 16px;
        }
        .guest-limit-header .close-modal {
            position: absolute;
            inset-inline-end: 0;
            top: -4px;
        }
        .guest-limit-icon-wrap {
            width: 64px;
            height: 64px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-light);
            color: var(--primary-color);
            border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
            box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 20%, transparent);
        }
        .guest-limit-icon-wrap.icon-project {
            background: color-mix(in srgb, var(--warning, #f59e0b) 12%, var(--card-bg));
            color: var(--warning, #f59e0b);
            border-color: color-mix(in srgb, var(--warning, #f59e0b) 30%, transparent);
        }
        .guest-limit-icon-wrap.icon-article {
            background: color-mix(in srgb, var(--blue, #3b82f6) 12%, var(--card-bg));
            color: var(--blue, #3b82f6);
            border-color: color-mix(in srgb, var(--blue, #3b82f6) 30%, transparent);
        }
        .guest-limit-title {
            font-size: 18px;
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 8px;
        }
        .guest-limit-message {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 16px;
            padding: 0 8px;
        }
        .guest-quota-summary-box {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            background: var(--bg-body);
            border: none !important; box-shadow: var(--co-shadow-surface);
            border-radius: 14px;
            padding: 10px;
            margin-bottom: 16px;
        }
        .guest-summary-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }
        .guest-summary-label {
            font-size: 10px;
            font-weight: 700;
            color: var(--text-muted);
        }
        .guest-summary-val {
            font-size: 13px;
            font-weight: 800;
            color: var(--text-main);
        }
        .guest-summary-val.limit-hit {
            color: var(--danger, #ef4444);
        }
        .guest-perks-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            text-align: start;
            background: var(--bg-body);
            border: 1px dashed var(--border-color);
            border-radius: 14px;
            padding: 12px 16px;
            margin-bottom: 20px;
        }
        .guest-perk-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-main);
        }
        .perk-check {
            width: 15px;
            height: 15px;
            color: var(--primary-color);
            flex-shrink: 0;
        }
        .guest-limit-footer {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .btn-guest-register {
            height: 42px;
            border-radius: 12px;
            background: var(--primary-color) !important;
            color: #fff !important;
            font-size: 13px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: none;
            cursor: pointer;
            transition: 0.2s;
            box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 30%, transparent);
        }
        .btn-guest-register:hover {
            background: var(--primary-hover, var(--primary-color)) !important;
            transform: translateY(-1px);
        }
        .btn-guest-login {
            height: 38px;
            border-radius: 12px;
            background: var(--bg-body);
            color: var(--text-main);
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: 1px solid var(--co-border-subtle) !important;
            cursor: pointer;
            transition: 0.2s;
        }
        .btn-guest-login:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        /* Topbar Guest Quota Pill */
        .guest-quota-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 5px 12px;
            background: color-mix(in srgb, var(--warning, #f59e0b) 10%, var(--card-bg));
            border: 1px solid color-mix(in srgb, var(--warning, #f59e0b) 30%, var(--border-color));
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-main);
            cursor: pointer;
            transition: 0.2s;
        }
        .guest-quota-badge:hover {
            border-color: var(--primary-color);
            background: var(--primary-light);
        }
        .btn-guest-upgrade {
            padding: 3px 9px;
            background: var(--primary-color);
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 10px;
            font-weight: 800;
            cursor: pointer;
            transition: 0.15s;
        }
        .btn-guest-upgrade:hover {
            background: var(--primary-hover, var(--primary-color));
            transform: scale(1.05);
        }

        /* =========================================
           DATA TABLE STANDARDS (PRIME CHECKLIST)
           ========================================= */
        .articles-card {
            background: var(--card-bg);
            
            border-radius: 20px;
            overflow: hidden;
             
            display: flex;
            flex-direction: column;
        
    
    

    border: none !important;
    box-shadow: var(--co-shadow-card);
}
        .table-header {
            padding: 12px 20px;
            
            background: var(--co-surface-recessed); 
            display: flex; 
            align-items: center; 
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        
    

    border-bottom: 1px solid var(--co-border-divider) !important;
}
        .table-header-left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 260px;
        }
        .table-stats-badge {
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
            padding: 5px 12px;
            height: 38px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 800;
            color: var(--text-main);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }
        .table-stats-badge strong {
            color: var(--primary-color);
        }
        .table-search-input-wrap {
            position: relative;
            flex: 1;
            max-width: 320px;
            min-width: 180px;
            display: flex;
            align-items: center;
        }
        .table-search-input-wrap input {
            width: 100%;
            height: 38px;
            background: var(--card-bg);
            
            
            border-radius: 10px;
            padding-inline-start: 34px;
            padding-inline-end: 30px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-main);
            outline: none;
            transition: 0.2s ease;
        
    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
        .table-search-input-wrap input:focus {
            border-color: var(--primary-color) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent) !important;
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        .table-search-icon {
            position: absolute;
            inset-inline-start: 10px;
            width: 14px;
            height: 14px;
            color: var(--text-muted);
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .table-search-clear {
            position: absolute;
            inset-inline-end: 8px;
            width: 20px;
            height: 20px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: 0.15s;
        }
        .table-search-clear:hover {
            color: var(--danger);
            background: var(--icon-danger-bg);
        }
        .table-header-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .export-dropdown-wrap {
            position: relative;
        }
        .export-btn {
            height: 38px;
            padding: 5px 14px;
            border-radius: 10px;
            
            background: var(--card-bg);
            
            color: var(--text-main);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s;
        
    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
        .export-btn:hover {
            border-color: var(--primary-color) !important;
            color: var(--primary-color);
        }
        .export-menu {
            position: absolute;
            top: calc(100% + 6px);
            inset-inline-end: 0;
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important;
            box-shadow: var(--co-shadow-floating);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            padding: 6px;
            min-width: 160px;
            z-index: 100;
            display: none;
            flex-direction: column;
            gap: 4px;
        }
        .export-menu.open {
            display: flex;
        }
        .export-item {
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-main);
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: 0.15s;
        }
        .export-item:hover {
            background: var(--bg-body);
            color: var(--primary-color);
        }

        /* Scroll Container Isolation */
        .proj-table-wrap { 
            overflow-x: auto; 
            width: 100%;
        }
        .proj-table { 
            width: 100%; 
            border-collapse: collapse; 
            text-align: start; 
        }
        .proj-table th {
            background: var(--card-bg);
            padding: 12px 16px;
            font-size: 11px;
            font-weight: 800;
            color: var(--text-muted);
             
            white-space: nowrap;
            letter-spacing: 0.5px;
            user-select: none;
            text-align: start;
        
    

    border-bottom: 1px solid var(--co-border-divider) !important;
}
        .proj-table th.sortable {
            cursor: pointer;
            transition: color 0.15s;
        }
        .proj-table th.sortable:hover {
            color: var(--primary-color);
        }
        .proj-table th.sorted {
            color: var(--primary-color);
        }
        .sort-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
            margin-inline-start: 4px;
            width: 12px;
            height: 12px;
        }
        .proj-table td {
            padding: 12px 16px;
            font-size: 13px;
            color: var(--text-main);
             
            font-weight: 600; 
            vertical-align: middle; 
            transition: 0.15s; 
            position: relative;
        
    

    border-bottom: 1px solid var(--co-border-subtle) !important;
}
        .score-header-cell {
            width: 105px;
            white-space: nowrap;
        }
        .score-cell {
            width: 105px;
            white-space: nowrap;
        }
        .proj-table tr:hover td { 
            background: var(--bg-body); 
        }
        .proj-table tr.selected td { 
            background: var(--primary-light); 
        }
        
        .proj-table-art-title { 
            font-size: 14px; 
            font-weight: 800; 
            color: var(--text-main); 
            margin-bottom: 5px; 
            cursor: pointer; 
            transition: 0.2s ease; 
            display: block;
            line-height: 1.4;
        }
        .proj-table-art-title:hover { 
            color: var(--primary-color); 
            text-decoration: underline;
        }
        .proj-table-art-kw { 
            font-size: 12px; 
            font-family: monospace; 
            color: var(--blue); 
            display: flex; 
            align-items: center; 
            gap: 4px; 
        }
        .proj-table-art-url-wrap { 
            font-size: 11px; 
            margin-top: 4px; 
        }
        .proj-table-art-url { 
            color: var(--text-muted); 
            text-decoration: none; 
            display: inline-flex; 
            align-items: center; 
            gap: 4px; 
            transition: 0.2s; 
        }
        .proj-table-art-url:hover { 
            color: var(--primary-color); 
            text-decoration: underline; 
        }
        .proj-table-date { 
            font-family: monospace; 
            color: var(--text-muted); 
            font-size: 12px; 
        }

        /* Custom Checkbox Design */
        .premium-checkbox { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; margin: 0; user-select: none;}
        .premium-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; cursor: pointer;}
        .premium-checkbox .chk-box { width: 20px; height: 20px; border: 2px solid var(--border-color); border-radius: 6px; background: var(--bg-body); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
        .premium-checkbox .chk-icon { width: 14px; height: 14px; color: white; opacity: 0; transform: scale(0.5); transition: 0.2s; stroke-width: 3;}
        .premium-checkbox:hover .chk-box { border-color: var(--primary-color); }
        .premium-checkbox input:checked + .chk-box { background: var(--primary-color); border-color: var(--primary-color); }
        .premium-checkbox input:checked + .chk-box .chk-icon { opacity: 1; transform: scale(1); }
        .premium-checkbox input:disabled + .chk-box { opacity: 0.4; cursor: not-allowed; border-color: var(--border-color); background: var(--bg-body); }
        .checkbox-cell { width: 44px; text-align: center; }

        /* Badges */
        .status-badge { padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
        .st-published { background: var(--icon-green-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.25) !important; }
        .st-writing { background: var(--icon-blue-bg); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.25) !important; }
        .st-draft { background: color-mix(in srgb, var(--bg-body) 70%, var(--card-bg)); border: 1px solid var(--co-border-light) !important; color: var(--text-muted); }
        .st-analyzing { background: var(--icon-orange-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.25) !important; }
        .perm-avatars { display: flex; align-items: center; }
        .perm-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-light); color: var(--primary-color); border: 2px solid var(--card-bg); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; margin-inline-start: -8px; position: relative; cursor:help; transition: transform 0.15s ease; }
        .perm-avatar:hover { transform: translateY(-2px); z-index: 5; }
        .perm-avatar:first-child { margin-inline-start: 0; }
        .perm-avatar.role-owner { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border-color: var(--card-bg); }
        .perm-avatar.role-manager { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border-color: var(--card-bg); }
        .perm-avatar.role-editor { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: var(--card-bg); }
        .perm-avatar.role-viewer { background: rgba(100, 116, 139, 0.15); color: #64748b; border-color: var(--card-bg); }
        
        .role-badge { padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; }
        .role-badge.role-owner { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
        .role-badge.role-manager { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }
        .role-badge.role-editor { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
        .role-badge.role-viewer { background: rgba(100, 116, 139, 0.15); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.3); }
        
        .perm-member-avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--primary-light); color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
        /* Premium Empty State & Action Buttons */
        .empty-folder {
            text-align: center;
            padding: 56px 24px;
            color: var(--text-muted);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .empty-folder-illustration {
            width: 76px;
            height: 76px;
            border-radius: 22px;
            background: color-mix(in srgb, var(--primary-color) 9%, var(--card-bg));
            border: 1.5px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
            box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--primary-color) 16%, transparent),
                        inset 0 1px 0 rgba(255, 255, 255, 0.25);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 18px;
            position: relative;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .empty-folder:hover .empty-folder-illustration {
            transform: translateY(-2px) scale(1.04);
        }

        .empty-folder-illustration svg,
        .empty-folder-illustration i {
            width: 34px !important;
            height: 34px !important;
            color: var(--primary-color) !important;
            stroke-width: 1.8px !important;
            display: block;
            margin: 0 !important;
        }

        .empty-folder h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-main);
            margin: 0 0 6px 0;
            letter-spacing: -0.2px;
        }

        .empty-folder-desc {
            font-size: 13.5px;
            color: var(--text-muted);
            margin: 0 auto;
            max-width: 440px;
            line-height: 1.55;
        }

        .empty-folder-actions {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 22px;
            flex-wrap: wrap;
        }

        /* Modern Ergonomic Action Buttons */
        .btn-empty-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            height: 40px;
            padding: 0 20px;
            font-size: 13px;
            font-weight: 700;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            
            
            background: color-mix(in srgb, var(--card-bg) 95%, var(--text-main) 2%);
            color: var(--text-main);
            font-family: inherit;
            user-select: none;
            white-space: nowrap;
            
            position: relative;
            outline: none;
        
    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

        .btn-empty-action .btn-empty-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn-empty-action svg,
        .btn-empty-action i {
            width: 15px !important;
            height: 15px !important;
            display: block !important;
            margin: 0 !important;
            stroke-width: 2.2px !important;
            flex-shrink: 0;
        }

        .btn-empty-action .btn-empty-text {
            display: inline-block;
            line-height: 1;
        }

        /* Hover & Active for Secondary */
        .btn-empty-action:hover {
            background: color-mix(in srgb, var(--primary-color) 9%, var(--card-bg));
            border-color: color-mix(in srgb, var(--primary-color) 60%, transparent);
            color: var(--primary-color) !important;
            transform: translateY(-1.5px);
            box-shadow: 0 5px 15px color-mix(in srgb, var(--primary-color) 15%, transparent);
        }

        .btn-empty-action:hover .btn-empty-icon svg,
        .btn-empty-action:hover .btn-empty-icon i,
        .btn-empty-action:hover > svg,
        .btn-empty-action:hover > i {
            transform: scale(1.12);
            color: var(--primary-color);
        }

        .btn-empty-action:active {
            transform: translateY(0) scale(0.98);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        }

        /* Primary Action Variant */
        .btn-empty-action.primary {
            background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 85%, #000) 100%);
            color: #ffffff !important;
            border: 1px solid color-mix(in srgb, #ffffff 22%, transparent);
            box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 35%, transparent),
                        0 1px 3px rgba(0, 0, 0, 0.08);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
        }

        .btn-empty-action.primary .btn-empty-icon svg,
        .btn-empty-action.primary .btn-empty-icon i,
        .btn-empty-action.primary > svg,
        .btn-empty-action.primary > i {
            color: #ffffff !important;
        }

        .btn-empty-action.primary:hover {
            background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 92%, #ffffff) 0%, var(--primary-color) 100%);
            color: #ffffff !important;
            border-color: color-mix(in srgb, #ffffff 40%, transparent);
            transform: translateY(-2px);
            box-shadow: 0 8px 22px color-mix(in srgb, var(--primary-color) 50%, transparent),
                        0 2px 6px rgba(0, 0, 0, 0.12);
        }

        .btn-empty-action.primary:hover .btn-empty-icon svg,
        .btn-empty-action.primary:hover .btn-empty-icon i,
        .btn-empty-action.primary:hover > svg,
        .btn-empty-action.primary:hover > i {
            transform: scale(1.15) rotate(-3deg);
            color: #ffffff !important;
        }

        .btn-empty-action.primary:active {
            transform: translateY(0) scale(0.98);
            box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 35%, transparent);
        }

        .tree-first-project-prompt { margin: 10px 8px; padding: 10px 12px; border: 1.5px dashed color-mix(in srgb, var(--primary-color) 45%, var(--border-color)); border-radius: 9px; background: color-mix(in srgb, var(--primary-color) 6%, transparent); color: var(--primary-color); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s ease; }
        .tree-first-project-prompt:hover { background: color-mix(in srgb, var(--primary-color) 14%, transparent); border-color: var(--primary-color); transform: translateY(-1px); }

        .multi-art-target-project-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--co-surface-recessed);
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid var(--co-border-subtle) !important;
}
        .multi-art-target-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
        .target-proj-dropdown-wrap { position: relative; min-width: 220px; }
        .target-proj-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--co-border-subtle) !important; cursor: pointer; font-size: 12.5px; transition: all 0.15s ease; }
        .target-proj-trigger:hover { border-color: var(--primary-color) !important; }

        /* Row Actions */
        .row-actions-group {
            display: flex;
            align-items: center;
            gap: 4px;
            justify-content: flex-end;
        }
        .btn-row-action {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.15s;
        }
        .btn-row-action:hover {
            background: var(--bg-body);
            color: var(--text-main);
            border-color: var(--primary-color) !important;
        }
        .btn-row-action.open-editor:hover {
            color: var(--primary-color);
            background: var(--primary-light);
        }
        .btn-row-action.danger:hover {
            color: var(--danger);
            background: var(--icon-danger-bg);
        }

        /* Table Footer & Pagination */
        .table-footer {
            padding: 12px 20px;
            
            background: var(--co-surface-recessed);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        
    

    border-top: 1px solid var(--co-border-divider) !important;
}
        .table-footer-left {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
        }
        .page-size-select-wrap {
            position: relative;
            display: inline-block;
        }
        .page-size-btn {
            height: 32px;
            padding: 4px 10px;
            border-radius: 8px;
            
            background: var(--card-bg);
            
            color: var(--text-main);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        
    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
        .page-size-menu {
            position: absolute;
            bottom: calc(100% + 4px);
            inset-inline-start: 0;
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important;
            box-shadow: var(--co-shadow-floating);
            border-radius: 10px;
            box-shadow: var(--shadow-lg);
            padding: 4px;
            min-width: 80px;
            z-index: 100;
            display: none;
            flex-direction: column;
            gap: 2px;
        }
        .page-size-menu.open {
            display: flex;
        }
        .page-size-item {
            padding: 6px 10px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-main);
            border-radius: 6px;
            cursor: pointer;
            text-align: center;
            transition: 0.15s;
        }
        .page-size-item:hover, .page-size-item.active {
            background: var(--primary-light);
            color: var(--primary-color);
        }

        .table-pagination {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .page-nav-btn {
            height: 32px;
            min-width: 32px;
            padding: 0 8px;
            border-radius: 8px;
            
            background: var(--card-bg);
            
            color: var(--text-main);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.15s;
        
    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
        .page-nav-btn:hover:not(:disabled) {
            border-color: var(--primary-color) !important;
            color: var(--primary-color);
            background: var(--primary-light);
        }
        .page-nav-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .page-info-pill {
            font-size: 12px;
            font-weight: 800;
            color: var(--text-main);
            padding: 0 10px;
            height: 32px;
            display: flex;
            align-items: center;
            background: var(--card-bg);
             
            border-radius: 8px;
        
    

    border: 1px solid var(--co-border-light) !important;
}

        /* =========================================
           KANBAN BOARD MODERN REDESIGN
           ========================================= */
        .kanban-board { 
            display: none; 
            grid-template-columns: repeat(3, minmax(320px, 1fr));
            gap: 16px; 
            padding-bottom: 20px; 
            align-items: flex-start;
        }
        .kanban-board.active { display: grid; }
        .kanban-col {
            background: color-mix(in srgb, var(--bg-body) 70%, var(--card-bg));
            border-radius: 18px;
            border: 1px solid var(--co-border-light) !important;
            display: flex;
            flex-direction: column;
            box-shadow: var(--co-shadow-card);
            overflow: hidden;
            transition: all 0.2s ease;
        }
        .kanban-header {
            padding: 14px 16px;
            
            background: transparent;
            display: flex; 
            justify-content: space-between; 
            align-items: center;
        
    

    border-bottom: 1px solid var(--co-border-divider) !important;
}
        .kanban-header-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 800;
            color: var(--text-main);
        }
        .kanban-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            display: inline-block;
        }
        .kanban-dot.dot-draft { background: var(--text-muted); }
        .kanban-dot.dot-writing { background: var(--blue, #3b82f6); }
        .kanban-dot.dot-published { background: var(--success, #10b981); }
        .k-count {
            background: var(--card-bg);
            border: 1px solid var(--co-border-light) !important;
            padding: 2px 8px; 
            border-radius: 6px; 
            font-size: 11px; 
            font-weight: 800;
            color: var(--text-muted);
        }
        .kanban-add-btn {
            width: 24px;
            height: 24px;
            border-radius: 7px;
            border: 1px solid var(--co-border-subtle) !important;
            background: var(--card-bg);
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.15s ease;
        }
        .kanban-add-btn:hover {
            border-color: var(--primary-color);
            color: #fff;
            background: var(--primary-color);
        }
        .kanban-cards { 
            padding: 12px; 
            display: flex; 
            flex-direction: column; 
            gap: 10px; 
            max-height: 720px; 
            overflow-y: auto; 
            min-height: 180px;
        }
        .k-card {
            background: var(--card-bg);
            
            border-radius: 14px;
            padding: 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            
        
    
    

    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: var(--co-shadow-surface);
}
        .k-card:hover { 
            border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border-color)); 
            transform: translateY(-2px); 
            box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        }
        .k-card-top-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            flex-wrap: wrap;
        }
        .k-card-title { 
            font-size: 13.5px; 
            font-weight: 800; 
            color: var(--text-main); 
            line-height: 1.45; 
            cursor: pointer;
            transition: color 0.15s;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .k-card-title:hover {
            color: var(--primary-color);
        }
        .k-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
             
            padding-top: 10px;
            margin-top: 2px;
            gap: 8px;
        
    

    border-top: 1px solid var(--co-border-light) !important;
}
        .k-card-footer-left {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .k-card-date { 
            font-size: 11px; 
            color: var(--text-muted); 
            font-weight: 600;
        }
        .k-card-actions {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .k-action-btn {
            width: 26px;
            height: 26px;
            border-radius: 6px;
            border: 1px solid var(--co-border-subtle) !important;
            background: var(--card-bg);
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.15s;
        }
        .k-action-btn:hover {
            border-color: var(--primary-color) !important;
            color: var(--primary-color);
            background: var(--card-bg);
        }
        .k-action-btn.danger:hover {
            border-color: var(--danger, #ef4444);
            color: var(--danger, #ef4444);
        }
        .kanban-empty-state {
            padding: 32px 10px;
            text-align: center;
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 600;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            border: 1px dashed var(--border-color);
            border-radius: 12px;
            margin-top: 6px;
        }

        /* =========================================
           PROFESSIONAL TARGET KEYWORD & SCORE METADATA
           ========================================= */
        .art-kw-meta-wrap {
            display: flex;
            align-items: center;
            gap: 7px;
            margin-top: 0;
            margin-bottom: 0;
            flex-wrap: wrap;
        }

        /* Keyword & Location Capsule */
        .art-kw-capsule {
            display: inline-flex;
            align-items: center;
            background: color-mix(in srgb, var(--bg-body) 65%, var(--card-bg));
            border: 1px solid var(--co-border-subtle) !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
            border-radius: 8px;
            padding: 2px 4px 2px 3px;
            gap: 6px;
            max-width: 100%;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
        }
        .art-kw-capsule:hover {
            border-color: color-mix(in srgb, var(--primary-color) 45%, var(--border-color));
            background: color-mix(in srgb, var(--primary-color) 3%, var(--card-bg));
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        /* Location (Flag + Lang) Combo */
        .art-loc-combo {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: var(--card-bg);
            border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
            padding: 2px 5px;
            border-radius: 5px;
            flex-shrink: 0;
        }
        .art-country-flag {
            width: 14px;
            height: 10px;
            border-radius: 2px;
            object-fit: cover;
            display: block;
            box-shadow: 0 1px 2px rgba(0,0,0,0.15);
        }
        .art-lang-tag {
            font-size: 9.5px;
            font-weight: 800;
            color: var(--blue, #3b82f6);
            line-height: 1;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }

        /* Keyword Body */
        .art-kw-body {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            min-width: 0;
        }
        .art-kw-label {
            font-size: 11.5px;
            font-weight: 700;
            color: var(--text-main);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 220px;
            letter-spacing: -0.1px;
        }

        /* Quick Copy on Hover */
        .art-kw-quick-copy {
            width: 18px;
            height: 18px;
            border-radius: 4px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0.4;
            transition: all 0.15s ease;
            padding: 0;
            flex-shrink: 0;
        }
        .art-kw-capsule:hover .art-kw-quick-copy {
            opacity: 1;
        }
        .art-kw-quick-copy:hover {
            background: var(--primary-light);
            color: var(--primary-color);
            transform: scale(1.1);
        }

        /* SEO Score Badge */
        .art-score-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 7px;
            border: 1px solid transparent;
            line-height: 1.2;
            transition: all 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .art-score-badge .score-indicator-ring {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .art-score-badge .score-number {
            font-family: inherit;
            letter-spacing: -0.2px;
        }
        .art-score-badge .score-number small {
            font-size: 8.5px;
            font-weight: 700;
            opacity: 0.7;
            margin-inline-start: 1px;
        }

        /* Score Variations */
        .art-score-badge.score-high {
            background: color-mix(in srgb, var(--success, #10b981) 12%, var(--card-bg));
            color: var(--success, #10b981);
            border-color: color-mix(in srgb, var(--success, #10b981) 35%, transparent);
            box-shadow: 0 1px 4px color-mix(in srgb, var(--success, #10b981) 12%, transparent);
        }
        .art-score-badge.score-mid {
            background: color-mix(in srgb, var(--warning, #f59e0b) 12%, var(--card-bg));
            color: var(--warning, #f59e0b);
            border-color: color-mix(in srgb, var(--warning, #f59e0b) 35%, transparent);
        }
        .art-score-badge.score-low {
            background: color-mix(in srgb, var(--danger, #ef4444) 12%, var(--card-bg));
            color: var(--danger, #ef4444);
            border-color: color-mix(in srgb, var(--danger, #ef4444) 35%, transparent);
        }
        .art-score-badge.score-none {
            background: var(--bg-body);
            color: var(--text-muted);
            border-color: var(--border-color);
        }

        /* Live URL Badge */
        .art-url-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            background: color-mix(in srgb, var(--bg-body) 65%, var(--card-bg));
            border: 1px solid var(--co-border-subtle) !important;
            padding: 2px 7px;
            border-radius: 6px;
            text-decoration: none;
            max-width: 190px;
            transition: all 0.15s ease;
        }
        .art-url-badge:hover {
            color: var(--primary-color);
            border-color: var(--primary-color);
            background: var(--primary-light);
        }
        .art-url-text {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Active Date Filter Pill */
        .table-date-filter-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--primary-light);
            color: var(--primary-color);
            border: 1px solid color-mix(in srgb, var(--primary-color) 35%, transparent);
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            transition: 0.15s ease;
            margin-inline-start: 8px;
        }
        .table-date-filter-pill:hover {
            background: var(--primary-color);
            color: #fff;
        }
        .table-date-filter-pill .pill-x-btn {
            background: none;
            border: none;
            color: inherit;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            padding: 0;
        }

        /* =========================================
           STICKY BULK ACTIONS BAR
           ========================================= */
        .bulk-action-bar { 
            position: fixed; 
            bottom: -100px; 
            left: 50%; 
            transform: translateX(-50%); 
            background: var(--card-bg); 
            border: 1px solid var(--primary-color); 
            border-radius: 20px; 
            padding: 12px 24px; 
            display: flex; 
            align-items: center; 
            gap: 16px; 
            box-shadow: 0 12px 40px rgba(0,0,0,0.4); 
            z-index: 10000; 
            transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
            opacity: 0;
            max-width: 90vw;
            flex-wrap: wrap;
        }
        .bulk-action-bar.visible { 
            bottom: 24px; 
            opacity: 1; 
        }
        .bulk-count {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 800;
            color: var(--text-main);
        }
        .bulk-count i,
        .bulk-count svg {
            width: 15px !important;
            height: 15px !important;
        }
        .bulk-actions-btns {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .btn-bulk-cancel {
    background: var(--card-bg);
    border: 1px solid var(--co-border-subtle) !important;
            color: var(--text-muted);
            height: 36px;
            padding: 0 12px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.15s;
        }
        .btn-bulk-cancel:hover {
            background: var(--bg-body);
            color: var(--text-main);
        }

        /* Context Menus & Dropdowns */
        .icon-btn { 
            background: transparent; 
            border: none; 
            color: var(--text-muted); 
            width: 32px; 
            height: 32px; 
            border-radius: 8px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            cursor: pointer; 
            transition: 0.2s;
        }
        .icon-btn:hover { 
            background: var(--bg-body); 
            color: var(--text-main); 
        }
        .dropdown-menu {
            position: absolute;
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important; 
            border-radius: 12px; 
            box-shadow: var(--shadow-lg); 
            padding: 5px; 
            z-index: 10000; 
            min-width: 170px; 
            opacity: 0; 
            visibility: hidden; 
            transform: translateY(10px); 
            transition: 0.2s; 
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .dropdown-menu.show { 
            opacity: 1; 
            visibility: visible; 
            transform: translateY(0); 
        }
        .dropdown-item { 
            padding: 7px 10px; 
            font-size: 12.5px; 
            font-weight: 600; 
            color: var(--text-main); 
            cursor: pointer; 
            border-radius: 8px; 
            display: flex; 
            align-items: center; 
            gap: 8px; 
            transition: 0.15s ease; 
        }
        .dropdown-item span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .dropdown-item i,
        .dropdown-item svg,
        .dropdown-item span i,
        .dropdown-item span svg {
            width: 13px !important;
            height: 13px !important;
            min-width: 13px;
            min-height: 13px;
            max-width: 13px;
            max-height: 13px;
            stroke-width: 1.85px;
            opacity: 0.85;
            flex-shrink: 0;
            vertical-align: middle;
        }
        .dropdown-item:hover { 
            background: var(--bg-body); 
            color: var(--primary-color); 
        }
        .dropdown-item.danger:hover { 
            color: var(--danger); 
            background: var(--icon-danger-bg); 
        }

        /* =========================================
           PLANNER TOOLBAR & FILTERS
           ========================================= */
        .planner-toolbar {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    gap: 10px; 
    flex-wrap: nowrap; 
    background: var(--card-bg); 
    padding: 10px 16px; 
    border-radius: 16px; 
    border: none !important; 
    box-shadow: var(--co-shadow-card);
}
        
        .pl-search-wrap { 
            flex: 0 1 230px; 
            min-width: 160px; 
            max-width: 250px; 
            position: relative; 
            display: flex;
            align-items: center;
        }
        .pl-search-wrap input {
            width: 100%;
            height: 38px;
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03); 
            color: var(--text-main); 
            padding-inline-start: 36px;
            padding-inline-end: 32px; 
            border-radius: 10px; 
            font-family: inherit; 
            font-size: 13px; 
            font-weight: 600;
            outline: none; 
            transition: 0.2s ease; 
        }
        .pl-search-wrap input:focus { 
            border-color: var(--primary-color); 
            box-shadow: 0 0 0 3px var(--primary-light);
            background: var(--card-bg);
        }
        .pl-search-icon { 
            position: absolute; 
            inset-inline-start: 10px; 
            top: 50%; 
            transform: translateY(-50%); 
            width: 15px; 
            height: 15px;
            color: var(--text-muted); 
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .pl-search-icon i,
        .pl-search-icon svg {
            width: 15px !important;
            height: 15px !important;
        }
        .pl-search-clear {
            position: absolute;
            inset-inline-end: 6px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border-radius: 6px;
            transition: 0.15s;
        }
        .pl-search-clear:hover {
            color: var(--danger);
            background: var(--icon-danger-bg);
        }
        
        .pl-controls-wrap { 
            display: flex; 
            gap: 8px; 
            align-items: center; 
            flex-wrap: nowrap; 
            margin-inline-start: auto;
        }
        .pl-filters {
            display: flex;
            gap: 4px;
            align-items: center;
            background: color-mix(in srgb, var(--bg-body) 80%, var(--card-bg));
            padding: 3px;
            border-radius: 12px;
            border: 1px solid var(--co-border-light) !important;
            flex-shrink: 0;
        }
        .pl-filter-btn { 
            padding: 4px 10px; 
            height: 30px;
            background: transparent; 
            border: 1px solid transparent; 
            border-radius: 8px; 
            font-size: 12px; 
            font-weight: 700; 
            color: var(--text-muted); 
            cursor: pointer; 
            white-space: nowrap; 
            display: flex;
            align-items: center;
            gap: 5px;
            transition: 0.2s ease;
        }
        .pl-filter-btn:hover { 
            color: var(--text-main); 
            background: var(--card-bg);
        }
        .pl-filter-btn.active {
            background: var(--card-bg);
            color: var(--primary-color);
            border: 1px solid var(--co-border-light) !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
        }
        .pl-filter-count {
            font-size: 10px;
            padding: 1px 5px;
            border-radius: 6px;
            background: var(--bg-body);
            color: var(--text-muted);
            font-weight: 800;
        }
        .pl-filter-btn.active .pl-filter-count { cursor: pointer; 
        }
        .btn-bulk-launch { 
            background: var(--primary-color); 
             
            color: #fff; 
            padding: 0 16px; 
            height: 36px; 
            border-radius: 10px; 
            font-size: 12px; 
            font-weight: 700; 
            cursor: pointer; 
            display: flex; 
            align-items: center; 
            gap: 6px; 
            transition: 0.2s;
            box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 35%, transparent);
        
    border: 1px solid var(--co-border-subtle) !important;
}
        .btn-bulk-launch:hover { 
            background: var(--primary-hover, var(--primary-color));
            transform: translateY(-1px); 
        }
        .btn-bulk-action {
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--co-border-subtle) !important;
    background: var(--card-bg);
            color: var(--text-main);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.15s;
        }
        .btn-bulk-action:hover {
            border-color: var(--primary-color) !important;
            color: var(--primary-color);
        }
        .btn-bulk-action.danger:hover {
            border-color: var(--danger);
            color: var(--danger);
            background: var(--icon-danger-bg);
        }

        /* Modals & Forms */
        .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 9999; opacity: 0; transition: 0.3s; padding: 16px;}
        .modal-overlay.active { display: flex; opacity: 1; }
        .modal-content {
            background: var(--card-bg);
            width: 100%;
            border-radius: 24px;
            padding: 24px;
            box-shadow: var(--co-shadow-modal);
            border: 1px solid var(--co-border-light) !important; transform: scale(0.95); transition: 0.3s; max-height: 90vh; overflow: visible;}
        .modal-content.modal-sm { max-width: 450px; }
        .modal-content.modal-md { max-width: 500px; }
        .modal-content.modal-lg { max-width: 750px; }
        .modal-overlay.active .modal-content { transform: scale(1); }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 16px;
             
    

    border-bottom: 1px solid var(--co-border-divider) !important;
}
        .modal-title { font-size: 18px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--text-main); }
        .modal-title-icon { color: var(--primary-color); }
        .close-modal { background: var(--bg-body); border: none; width: 32px; height: 32px; border-radius: 8px; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
        .close-modal:hover { background: var(--danger); color: white; }
        .modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
        .modal-footer.bordered {
             padding-top: 16px; 
    

    border-top: 1px solid var(--co-border-divider) !important;
}

        .form-group { margin-bottom: 16px; position: relative;}
        .form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
        .form-input {
            width: 100%;
            background: var(--card-bg);
            
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03); color: var(--text-main); padding: 12px 16px; border-radius: 12px; font-family: inherit; font-size: 14px; outline: none; transition: 0.2s;
    

    border: 1px solid var(--co-border-subtle) !important;
}
        .form-input:focus { border-color: var(--primary-color) !important; }
        .form-input:disabled { opacity: 0.6; cursor: not-allowed; }

        .save-path-group { margin-bottom: 24px; }
        .save-path-label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
        .save-path-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--co-surface-recessed);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--co-border-subtle) !important;
}
        .save-path-text { font-weight: 700; font-size: 13px; color: var(--text-main); }
        
        /* Access Management Box */
        .access-management-box {
            background: color-mix(in srgb, var(--bg-body) 70%, var(--card-bg));
            border: 1px solid var(--co-border-subtle) !important; border-radius: 16px; padding: 16px; margin-top: 16px; }
        .access-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
        .access-header i { color: var(--primary-color); width: 24px; height: 24px; }
        .access-header h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-main); }
        .access-header p { margin: 4px 0 0; font-size: 11px; color: var(--text-muted); }
        
        .access-search-area { position: relative; margin-bottom: 16px; }
        .access-search-input {
    width: 100%;
    background: var(--card-bg);
    
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06); border-radius: 12px; font-size: 13px; color: var(--text-main); outline: none; transition: 0.2s; 
    border: 1px solid var(--co-border-subtle) !important;
}
        html[dir="rtl"] .access-search-input { padding: 12px 40px 12px 16px; }
        html[dir="ltr"] .access-search-input { padding: 12px 16px 12px 40px; }
        .access-search-input:focus { border-color: var(--primary-color) !important; }
        .search-icon { position: absolute; top: 50%; transform: translateY(-50%); width: 16px; color: var(--text-muted); }
        html[dir="rtl"] .search-icon { right: 14px; }
        html[dir="ltr"] .search-icon { left: 14px; }
        
        .access-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: none !important;
    box-shadow: var(--co-shadow-floating); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 200; max-height: 250px; overflow-y: auto; }
        .access-search-title {
    padding: 10px 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--co-border-divider) !important;
}
        .access-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--co-border-light) !important; cursor: pointer; transition: 0.2s; }
        .access-result-item:last-child { border-bottom: none; }
        .access-result-item:hover { background: var(--bg-body); }
        .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary-color); display: flex; align-items: center; justify-content: center; }
        .user-avatar i { width: 16px; }
        .user-details { flex: 1; display: flex; flex-direction: column; }
        .user-name { font-size: 13px; font-weight: 600; color: var(--text-main); }
        .user-uname { font-size: 11px; color: var(--text-muted); }
        .access-empty-msg { padding: 16px; text-align: center; color: var(--text-muted); font-size: 12px; }
        .form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
        .form-input {
            width: 100%;
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03); color: var(--text-main); padding: 12px 16px; border-radius: 12px; font-family: inherit; font-size: 14px; outline: none; transition: 0.2s;}
        .form-input:focus { border-color: var(--primary-color); }
        .form-input:disabled { opacity: 0.6; cursor: not-allowed; }

        .save-path-group { margin-bottom: 24px; }
        .save-path-label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
        .save-path-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--co-surface-recessed);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--co-border-subtle) !important;
}
        .save-path-text { font-weight: 700; font-size: 13px; color: var(--text-main); }
        
        /* Access Management Box */
        .access-management-box {
            background: color-mix(in srgb, var(--bg-body) 70%, var(--card-bg));
            border: 1px solid var(--co-border-subtle) !important; border-radius: 16px; padding: 16px; margin-top: 16px; }
        .access-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
        .access-header i { color: var(--primary-color); width: 24px; height: 24px; }
        .access-header h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-main); }
        .access-header p { margin: 4px 0 0; font-size: 11px; color: var(--text-muted); }
        
        .access-search-area { position: relative; margin-bottom: 16px; }
        .access-search-input {
    width: 100%;
    background: var(--card-bg);
    border: none !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06); border-radius: 12px; font-size: 13px; color: var(--text-main); outline: none; transition: 0.2s; }
        html[dir="rtl"] .access-search-input { padding: 12px 40px 12px 16px; }
        html[dir="ltr"] .access-search-input { padding: 12px 16px 12px 40px; }
        .access-search-input:focus { border-color: var(--primary-color); }
        .search-icon { position: absolute; top: 50%; transform: translateY(-50%); width: 16px; color: var(--text-muted); }
        html[dir="rtl"] .search-icon { right: 14px; }
        html[dir="ltr"] .search-icon { left: 14px; }
        
        .access-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: none !important;
    box-shadow: var(--co-shadow-floating); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 200; max-height: 250px; overflow-y: auto; }
        .access-search-title {
    padding: 10px 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--co-border-divider) !important;
}
        .access-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--co-border-light) !important; cursor: pointer; transition: 0.2s; }
        .access-result-item:last-child { border-bottom: none; }
        .access-result-item:hover { background: var(--bg-body); }
        .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary-color); display: flex; align-items: center; justify-content: center; }
        .user-avatar i { width: 16px; }
        .user-details { flex: 1; display: flex; flex-direction: column; }
        .user-name { font-size: 13px; font-weight: 600; color: var(--text-main); }
        .user-uname { font-size: 11px; color: var(--text-muted); }
        .access-empty-msg { padding: 16px; text-align: center; color: var(--text-muted); font-size: 12px; }
        
        .add-btn { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: 0.2s; }
        .add-btn:hover { background: var(--primary-color); color: white; }
        .add-btn i { width: 12px; height: 12px; }
        
        .active-members-list { display: flex; flex-direction: column; gap: 8px; max-height: 150px; overflow-y: auto; padding-right: 4px;}
        .member-item {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important; padding: 10px 12px; border-radius: 12px; }
        .remove-btn { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: none; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
        .remove-btn:hover { background: #ef4444; color: white; }
        .remove-btn i { width: 14px; height: 14px; }
        
        /* Delegated Custom Select */
        .c-select { position: relative; width: 100%; user-select: none; }
        .c-select-trigger {
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); padding: 12px 16px; border-radius: 12px; color: var(--text-main); font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s;}
        .c-select-trigger:hover { border-color: var(--primary-color) !important; }
        .c-select-options {
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            right: 0;
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.2s; z-index: 200; max-height: 200px; overflow-y: auto;}
        .c-select.open .c-select-options { opacity: 1; visibility: visible; transform: translateY(0); }
        .c-option { padding: 8px 12px; cursor: pointer; transition: 0.2s; font-size: 12.5px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 8px;}
        .c-option span { display: inline-flex; align-items: center; justify-content: center; }
        .c-option i, .c-option svg, .c-option span i, .c-option span svg { width: 13px !important; height: 13px !important; stroke-width: 1.85px; flex-shrink: 0; }
        .c-option:hover { background: var(--primary-light); color: var(--primary-color); }

        /* =========================================
           MULTI-ARTICLE BUILDER (Smart Rows)
           ========================================= */
        .multi-art-scroll { max-height: 40vh; overflow-y: auto; padding-right: 8px; }
        .art-row-block {
            background: var(--card-bg);
            border: 1px solid var(--co-border-subtle) !important; border-radius: 16px; padding: 16px; position: relative; transition: 0.2s; margin-bottom: 12px; }
        .art-row-block:focus-within { border-color: var(--primary-color); }
        .art-row-inputs { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
        .art-row-main { display: flex; width: 100%; gap: 12px; align-items: flex-start; }
        @media(max-width:600px){ .art-row-inputs, .art-row-main { flex-direction: column; } }
        .art-title-group { flex: 2; margin: 0; }
        .art-kw-group { flex: 1; margin: 0; position: relative; }
        .kw-checking-status { font-size: 11px; color: var(--primary-color); margin-inline-start: 4px; font-weight: 700; }
        
        .btn-remove-row {
    background: var(--co-surface-recessed);
    color: var(--text-muted);
    border: 1px solid var(--co-border-subtle) !important; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; flex-shrink: 0; margin-top: 26px; }
        .btn-remove-row:hover { color: var(--danger); border-color: var(--danger); background: var(--icon-danger-bg); }
        
        .suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--card-bg);
    border: 1px solid var(--co-border-subtle) !important; box-shadow: var(--co-shadow-floating); width: 100%; max-height: 200px; overflow-y: auto; padding: 0; margin: 0; list-style: none; box-shadow: var(--shadow-md); border-radius: 10px; }
        .suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--co-border-light) !important; font-size: 13px; display: flex; justify-content: space-between; align-items: center; transition: 0.15s; }
        .suggestion-item:last-child { border-bottom: none; }
        .suggestion-item:hover { background: var(--bg-body); }
        .suggestion-kw-text { font-weight: 600; color: var(--text-main); }
        .suggestion-meta { color: var(--text-muted); font-size: 11px; display: flex; align-items: center; gap: 6px; }
        .suggestion-lang-iso { text-transform: uppercase; font-weight: 800; color: var(--blue); }
        
        .flag-img-sm { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-color); }
        .flag-img-md { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-color); }
        
        .selected-kw-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--co-surface-recessed);
    border: 1px solid var(--co-border-subtle) !important; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; width: 100%; }
        .selected-kw-text { flex: 1; font-size: 13px; color: var(--text-main); margin-inline-start: 4px; }
        .btn-clear-kw { padding: 4px; height: auto; border: none; background: transparent; cursor: pointer; color: var(--danger); display: flex; align-items: center; justify-content: center; }

        .loc-options-box { display: flex; width: 100%; gap: 12px; margin-top: 12px; padding: 12px; background: var(--bg-body); border-radius: 10px; border: 1px dashed var(--warning); }
        .loc-box-label { font-size: 12px; color: var(--warning); font-weight: 700; display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
        .loc-select-trigger {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--co-border-subtle) !important; border-radius: 8px; background: var(--card-bg); color: var(--text-main); font-size: 12px; font-weight: 700; height: 34px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; position: relative; transition: 0.2s; }
        .loc-select-trigger:hover { border-color: var(--primary-color); }
        .loc-select-options {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--co-border-subtle) !important; box-shadow: var(--co-shadow-floating); border-radius: 8px; box-shadow: var(--shadow-lg); z-index: 100; overflow-y: auto; max-height: 160px; display: flex; flex-direction: column; }
        .loc-select-option { padding: 8px 10px; font-size: 12px; cursor: pointer; transition: background 0.15s; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; }
        .loc-select-option:hover, .loc-select-option.active { background: var(--bg-body); font-weight: 700; color: var(--primary-color); }
        
        .btn-add-extra-art { width: 100%; border-style: dashed; justify-content: center; margin: 16px 0; color: var(--primary-color); border-color: var(--primary-color); }
        .btn-add-extra-art:hover { background: var(--primary-light); }
        
        .perm-select-list {
    background: var(--co-surface-recessed);
    border: none !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 12px;}
        .perm-item { display: flex; align-items: center; gap: 10px; cursor: pointer;}
        
        .auto-workspace-toggle-box {
    background: var(--co-surface-recessed);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--co-border-subtle) !important; margin-bottom: 20px; }
        .auto-workspace-toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
        .auto-workspace-toggle-text { font-size: 13px; font-weight: 700; color: var(--text-main); }
        .auto-workspace-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
        
        .queue-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 4px; margin-bottom: 20px;}
        .queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--co-border-subtle) !important; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--text-main);}
        @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px);} to { opacity: 1; transform: translateY(0);} }
        @keyframes spinIcon { 100% { transform: rotate(360deg); } }
        .spin { animation: spinIcon 1.5s linear infinite; }

        .ico-9 { width: 9px; height: 9px; }
        .ico-10 { width: 10px; height: 10px; }
        .ico-11 { width: 11px; height: 11px; }
        .ico-12 { width: 12px; height: 12px; }
        .ico-13 { width: 13px; height: 13px; }
        .ico-14 { width: 14px; height: 14px; }
        .ico-15 { width: 15px; height: 15px; }
        .ico-16 { width: 16px; height: 16px; }
        .ico-18 { width: 18px; height: 18px; }
        .ico-22 { width: 22px; height: 22px; }
        .ico-24 { width: 24px; height: 24px; }
        .ico-28 { width: 28px; height: 28px; }
        .c-primary { color: var(--primary-color); }
        .c-warning { color: var(--warning, #f59e0b); }
        .c-success { color: var(--success); }
        .c-blue { color: var(--blue); }
        .c-muted { color: var(--text-muted); }
        .c-danger { color: var(--danger); }
        .c-gold { color: #f59e0b; }
        .gold-crown-inline { width: 13px; height: 13px; margin-inline-end: 4px; vertical-align: middle; color: #f59e0b; }
        .op-40 { opacity: 0.4; }
        .op-70 { opacity: 0.7; }
        .op-80 { opacity: 0.8; }
        .fw-700 { font-weight: 700; }
        .fw-800 { font-weight: 800; }
        .sort-dropdown-wrap { width: 125px; flex-shrink: 0; }
        .sort-trigger-btn { padding: 6px 8px; min-height: 34px; border-radius: 10px; }
        .sort-label-text { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .sort-icon-inline { width: 12px; height: 12px; margin-inline-end: 3px; vertical-align: middle; }
        .writer-dropdown-wrap { min-width: 150px; max-width: 200px; height: 38px; }
        .writer-trigger-btn { padding: 6px 10px; height: 38px; border-radius: 10px; }
        .writer-label-text { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .role-badge-spaced { margin-inline-start: 6px; font-size: 10px; padding: 1px 5px; }
        .btn-clear-search-pill { font-size: 11px; padding: 4px 10px; margin-top: 4px; border-radius: 8px; }
        .th-actions { text-align: end; }
        .kw-label-truncated { max-width: 130px; }
        .bulk-icon-aligned { width: 14px; height: 14px; vertical-align: middle; }
        .privacy-managed-box {
    padding: 10px 14px;
    background: var(--co-surface-recessed);
    border: 1px solid var(--co-border-subtle) !important; border-radius: 10px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
        .privacy-managed-tag { font-size: 11px; margin-inline-start: auto; opacity: 0.8; }
        .move-modal-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
        .move-modal-item-label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
        .move-modal-item-box {
    padding: 10px 14px;
    background: var(--co-surface-recessed);
    border: 1px solid var(--co-border-subtle) !important; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
        .move-modal-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .move-trigger-btn { min-height: 42px; border-radius: 10px; }
        .move-trigger-content { display: flex; align-items: center; gap: 8px; overflow: hidden; }
        .move-trigger-text { font-size: 13px; font-weight: 700; }
        .move-options-scroll { max-height: 220px; }
        .move-option-active-check { margin-inline-start: auto; }
        .move-modal-footer { margin-top: 24px; }
        .loc-box-flex1 { flex: 1; }
        .lang-iso-badge { font-weight: 800; color: var(--blue); }
        .perm-list-scroll { max-height: 180px; }
        .perm-member-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg-body); margin-bottom: 6px; cursor: pointer; }
        .perm-member-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
        .perm-member-name { font-size: 13px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .perm-member-uname { font-size: 11px; color: var(--text-muted); }
        .perm-empty-msg { padding: 14px; text-align: center; color: var(--text-muted); font-size: 13px; }
        .queue-file-icon { width: 14px; margin-inline-end: 6px; color: var(--text-muted); }
        .cal-activity-stats { margin-top: 0; padding-top: 0; border-top: none; }
        .cal-grid-spaced { margin-top: 4px; }
        .cal-footer-bordered {
    padding-top: 12px;
    border-top: 1px solid var(--co-border-light) !important; margin-top: 10px; }
        .cal-footer-active-date { color: var(--primary-color); font-weight: 800; }
        .cal-footer-date-icon { width: 13px; height: 13px; vertical-align: middle; }
        .btn-cal-close { height: 32px; padding: 0 14px; font-size: 12px; }
        .btn-guest-full { width: 100%; justify-content: center; }
        .user-item-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
        .flex-gap-6 { display: flex; align-items: center; gap: 6px; }
        .flex-gap-8 { display: flex; align-items: center; gap: 8px; }
        .privacy-trigger-icon { width: 14px; margin-inline-end: 6px; }
        .privacy-opt-icon { width: 16px; margin-inline-end: 8px; color: var(--text-muted); }
        .sched-label-icon { width: 13px; height: 13px; margin-inline-end: 4px; }
        .optional-hint { font-size: 11px; font-weight: normal; color: var(--text-muted); }
        .pos-rel { position: relative; }
        .mb-16 { margin-bottom: 16px; }
        .lang-iso-badge-inline { font-weight: 800; color: var(--blue); margin-inline-end: 8px; }
        .move-opt-prefix-icon { width: 12px; height: 12px; opacity: 0.8; }
        .move-opt-prefix-wrap { margin-inline-end: 6px; }

        /* =========================================
           ONBOARDING STEPPER & ROOT GUIDANCE BANNERS
           ========================================= */
        .workspace-stepper-banner {
            margin: 14px 20px 0 20px;
            padding: 16px 20px;
            background: color-mix(in srgb, var(--primary-color) 6%, var(--card-bg));
            border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
            border-radius: 14px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
        }

        .stepper-banner-inner {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .stepper-step {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .stepper-step.step-active .step-badge {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary-color);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 14px;
            box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 40%, transparent);
        }

        .stepper-step.step-disabled .step-badge {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--border-color);
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            opacity: 0.6;
        }

        .stepper-step.step-disabled {
            opacity: 0.55;
        }

        .step-content {
            flex: 1;
        }

        .step-title {
            font-size: 13.5px;
            font-weight: 700;
            color: var(--text-main);
        }

        .step-desc {
            font-size: 11.5px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .btn-step-action {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            height: 34px;
            padding: 0 16px;
            border-radius: 9px;
            font-size: 12px;
            font-weight: 700;
            background: var(--primary-color);
            color: #ffffff;
            
            cursor: pointer;
            transition: all 0.18s ease;
            white-space: nowrap;
            box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 30%, transparent);
        
    border: 1px solid var(--co-border-subtle) !important;
}

        .btn-step-action:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 45%, transparent);
        }

        .stepper-connector {
            color: var(--text-muted);
            opacity: 0.5;
        }

        .workspace-root-guide-banner {
            margin: 12px 20px 0 20px;
            padding: 10px 18px;
            background: color-mix(in srgb, var(--co-surface-subtle) 80%, transparent);
            border: 1px dashed color-mix(in srgb, var(--border-color) 80%, transparent);
            border-radius: 11px;
        }

        .root-guide-inner {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12.5px;
            color: var(--text-muted);
        }

        .guide-text {
            flex: 1;
            font-weight: 600;
        }

        .btn-guide-new-proj {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            height: 28px;
            padding: 0 12px;
            border-radius: 7px;
            font-size: 11.5px;
            font-weight: 700;
            background: var(--card-bg);
            color: var(--primary-color);
            border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
            cursor: pointer;
            transition: 0.15s ease;
        }

        .btn-guide-new-proj:hover {
            background: color-mix(in srgb, var(--primary-color) 12%, var(--card-bg));
            border-color: var(--primary-color);
        }
    