    /* =========================================
       DAILY TASKS & MULTI-PROJECT WORKSPACE (.dtb-)
       ========================================= */

    /* Page Container Breakout for Full Width Professional Workspace */
    #page-content, .page-content {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: clamp(12px, 2vw, 24px) !important;
        padding-right: clamp(12px, 2vw, 24px) !important;
        padding-bottom: 60px !important;
    }
    .page-container {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Dynamic Typography Scale for Easy Eye Comfort */
    .dtb-wrapper {
        --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        
        /* Font Scale & Layout Variables */
        --dtb-col-width: 340px;
        --dtb-col-title-sz: 15.5px;
        --dtb-task-title-sz: 14.5px;
        --dtb-task-desc-sz: 13px;
        --dtb-task-meta-sz: 11.5px;
        --dtb-subtask-sz: 12.5px;
        --dtb-quick-inp-sz: 13px;

        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
        transition: all 0.3s var(--ease-out);
    }

    /* Font Scale Modifier: Large (120%) */
    .dtb-wrapper.font-size-large {
        --dtb-col-width: 370px;
        --dtb-col-title-sz: 17.5px;
        --dtb-task-title-sz: 16.5px;
        --dtb-task-desc-sz: 14.5px;
        --dtb-task-meta-sz: 13px;
        --dtb-subtask-sz: 14px;
        --dtb-quick-inp-sz: 14.5px;
    }

    /* Font Scale Modifier: Extra Large (140% - High Readability) */
    .dtb-wrapper.font-size-xl {
        --dtb-col-width: 400px;
        --dtb-col-title-sz: 19.5px;
        --dtb-task-title-sz: 18.5px;
        --dtb-task-desc-sz: 16px;
        --dtb-task-meta-sz: 14px;
        --dtb-subtask-sz: 15.5px;
        --dtb-quick-inp-sz: 16px;
    }

    .dtb-panel {
        position: relative;                
        width: 100%;
        max-width: 100%;
        border-radius: 24px;
        padding: 0;
        overflow: visible;
        transition: all 0.3s var(--ease-out);
    }

    /* Focus Mode Workspace Layout */
    .dtb-panel.is-focus-mode {
        padding: 0;
    }
    .dtb-panel.is-focus-mode .dtb-project-bar {
        position: sticky;
        top: 10px;
        z-index: 60;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border-color));
    }
    .dtb-panel.is-focus-mode .dtb-board {
        min-height: calc(100vh - 220px);
    }
    .dtb-panel.is-focus-mode .task-list {
        max-height: calc(100vh - 300px);
    }

    /* Custom Scrollbar */
    .custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
    .custom-scroll::-webkit-scrollbar-track { background: transparent; }
    .custom-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
    .custom-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

    /* ---------- UNIFIED COMMAND CENTER — TIER 1: WORKSPACE BAR ---------- */
    .dtb-project-bar {
        position: relative;
        z-index: 60;
        display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
        background: var(--bg-body); border: 1px solid var(--border-color);
        padding: 12px 18px; border-radius: 18px; 
        margin-bottom: 22px; /* Breathable spacing from Tier 2 options bar */
        box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    }
    
    .pb-left-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .pb-right-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

    .project-switcher-wrap { position: relative; z-index: 70; }
    .ps-header-btn {
        background: var(--card-bg) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        padding: 7px 14px !important;
        cursor: pointer;
        transition: all 0.2s;
        display: flex; align-items: center; justify-content: space-between;
    }
    .ps-header-btn:hover { border-color: var(--primary-color) !important; transform: translateY(-1px); }
    .ps-current-info { display: flex; align-items: center; gap: 8px; }
    .ps-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
    .ps-name { font-size: 13.5px; font-weight: 900; color: var(--text-main); }
    .ps-badge { font-size: 10.5px; font-weight: 800; background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-muted); padding: 2px 7px; border-radius: 100px; font-family: 'Space Mono', monospace; }

    .ps-dropdown-body {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        z-index: 1000 !important;
        width: 320px !important;
        border-radius: 16px !important;
        padding: 0 !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
    }
    [dir="rtl"] .ps-dropdown-body {
        left: auto;
        right: 0;
    }

    .ps-dropdown-header {
        padding: 12px 16px; border-bottom: 1px solid var(--border-color);
        display: flex; justify-content: space-between; align-items: center;
        font-size: 11.5px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
    }
    .ps-add-btn {
        background: var(--primary-light); border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
        color: var(--primary-color); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
        cursor: pointer; display: flex; align-items: center; gap: 4px; transition: 0.2s;
    }
    .ps-add-btn:hover { background: var(--primary-color); color: #fff; }

    .ps-item {
        display: flex !important; justify-content: space-between !important; align-items: center !important;
        padding: 10px 14px !important; margin: 2px 6px; border-radius: 10px !important;
    }
    .ps-item-main { display: flex; align-items: center; gap: 10px; overflow: hidden; flex-grow: 1; }
    .ps-item-name { font-size: 13px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ps-item-count { font-size: 11px; color: var(--text-muted); font-family: 'Space Mono', monospace; }

    .ps-item-actions { display: flex; align-items: center; gap: 4px; opacity: 0.6; transition: 0.2s; }
    .ps-item:hover .ps-item-actions { opacity: 1; }
    .ps-act-btn { background: transparent; border: none; color: var(--text-muted); padding: 4px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .ps-act-btn:hover { background: var(--border-color); color: var(--text-main); }
    .ps-act-btn.del:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

    .ps-dropdown-footer { padding: 8px 12px; border-top: 1px solid var(--border-color); background: var(--bg-body); }
    .ps-footer-btn { width: 100%; background: transparent; border: 1px dashed var(--border-color); color: var(--primary-color); font-size: 12px; font-weight: 800; padding: 8px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: 0.2s; }
    .ps-footer-btn:hover { background: var(--primary-light); border-color: var(--primary-color); }

    /* View Mode Tabs */
    .view-mode-tabs { display: flex; align-items: center; gap: 4px; background: var(--card-bg); padding: 4px; border-radius: 12px; border: 1px solid var(--border-color); }
    .v-tab-btn {
        background: transparent; border: none; color: var(--text-muted); font-size: 12px; font-weight: 800;
        padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px;
    }
    .v-tab-btn:hover { color: var(--text-main); }
    .v-tab-btn.active { background: var(--primary-color); color: #fff; box-shadow: 0 2px 8px var(--primary-shadow); }
    .master-tab.active { background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end)); }
    .master-badge { font-size: 10px; font-weight: 900; background: #ef4444; color: #fff; padding: 1px 5px; border-radius: 100px; font-family: 'Space Mono', monospace; }

    /* Pomodoro Header Trigger */
    .pomo-trigger-btn {
        background: rgba(239, 68, 68, 0.08) !important;
        border: 1px solid rgba(239, 68, 68, 0.25) !important;
        color: #ef4444 !important;
        font-family: 'Space Mono', monospace;
    }
    .pomo-trigger-btn.running {
        background: #ef4444 !important;
        color: #ffffff !important;
        border-color: #ef4444 !important;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
        animation: pulsePomo 2s infinite;
    }
    @keyframes pulsePomo { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

    /* ---------- UNIFIED COMMAND CENTER — TIER 2: CONTROLS STRIP ---------- */
    .dtb-options-bar {
        position: relative;
        z-index: 20;
        display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
        background: var(--bg-body); padding: 10px 18px;
        border-radius: 18px; border: 1px solid var(--border-color);
        margin-bottom: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.02);
        transition: all 0.25s var(--ease-out);
    }

    .ob-left-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-grow: 1; }
    .ob-right-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    
    .ob-search-wrap { position: relative; display: flex; align-items: center; }
    .ob-search-ico { position: absolute; left: 10px; width: 14px; height: 14px; color: var(--text-muted); pointer-events: none; }
    [dir="rtl"] .ob-search-ico { left: auto; right: 10px; }
    
    .search-inp {
        background: var(--card-bg); border: 1px solid var(--border-color);
        color: var(--text-main); padding: 7px 26px 7px 32px; border-radius: 100px;
        font-size: 12.5px; font-weight: 700; outline: none; transition: all 0.25s var(--ease-out); width: 180px;
    }
    [dir="rtl"] .search-inp { padding: 7px 32px 7px 26px; }
    .search-inp:focus { border-color: var(--primary-color); width: 230px; box-shadow: 0 0 0 3px var(--primary-light); }
    
    .search-clear-btn { position: absolute; right: 8px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
    [dir="rtl"] .search-clear-btn { right: auto; left: 8px; }
    .search-clear-btn:hover { color: #ef4444; }

    .filter-pills-wrap { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
    .f-btn {
        background: transparent; border: 1px solid transparent; color: var(--text-muted);
        padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 700;
        cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
    }
    .f-btn:hover { color: var(--text-main); background: var(--card-bg); }
    .f-btn.on { background: var(--primary-light); color: var(--primary-color); border-color: color-mix(in srgb, var(--primary-color) 30%, transparent); }
    .f-btn.warn.on { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
    .f-btn.danger.on { background: rgba(239, 68, 68, 0.12); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
    
    .font-size-btn {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        font-weight: 800;
        color: var(--text-main);
    }
    .font-size-btn:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .focus-mode-btn {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        font-weight: 800;
    }
    .focus-mode-btn.on {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end));
        color: #ffffff !important;
        border-color: transparent;
        box-shadow: 0 4px 12px var(--primary-shadow);
    }

    .action-primary {
        background: var(--primary-color) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px var(--primary-shadow);
        font-weight: 800 !important;
    }
    .action-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

    .action-ghost {
        background: var(--card-bg) !important;
        border: 1px solid var(--border-color) !important;
    }
    .action-ghost:hover { border-color: var(--primary-color) !important; color: var(--primary-color) !important; }

    .action-danger {
        background: rgba(239, 68, 68, 0.08) !important;
        color: #ef4444 !important;
        border: 1px solid rgba(239, 68, 68, 0.25) !important;
    }
    .action-danger:hover { background: rgba(239, 68, 68, 0.15) !important; }

    .dir-toggle {
        display: flex; align-items: center; gap: 6px; background: var(--card-bg);
        border: 1px solid var(--border-color); color: var(--text-muted); font-size: 11px; font-weight: 800;
        cursor: pointer; padding: 5px 10px; border-radius: 8px; transition: 0.2s;
    }
    .dir-toggle:hover { border-color: var(--primary-color); color: var(--text-main); }
    .dir-toggle .dt-ltr { color: var(--primary-color); }
    .dir-toggle.rtl .dt-ltr { color: inherit; }
    .dir-toggle.rtl .dt-rtl { color: var(--primary-color); }

    /* Switch Component */
    .sw { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
    .sw-track { width: 30px; height: 16px; background: var(--border-color); border-radius: 10px; position: relative; transition: 0.25s; }
    .sw-thumb { width: 12px; height: 12px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: 0.25s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
    .sw-track.on { background: var(--primary-color); }
    .sw-track.on .sw-thumb { left: 16px; }
    .sw-lbl { font-size: 11.5px; font-weight: 800; color: var(--text-muted); }

    /* ---------- TAGS FILTER STRIP ---------- */
    .dtb-tags-strip {
        display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
        background: var(--card-bg); border: 1px dashed var(--border-color);
        padding: 8px 16px; border-radius: 14px; margin-bottom: 20px;
    }
    .tags-strip-lbl { font-size: 12px; font-weight: 800; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
    .tags-chips-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .tag-chip-btn {
        background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 100px;
        padding: 3px 10px; font-size: 11.5px; font-weight: 800; color: var(--text-muted);
        cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 4px;
    }
    .tag-chip-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
    .tag-chip-btn.active { background: var(--primary-light); border-color: var(--primary-color); color: var(--primary-color); }
    .tc-count { font-size: 10px; opacity: 0.7; font-family: 'Space Mono', monospace; }
    .tag-chip-clear {
        background: transparent; border: none; color: #ef4444; font-size: 11px; font-weight: 800;
        cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px;
    }

    /* ---------- POMODORO MODAL STYLING ---------- */
    .pomodoro-modal-box { max-width: 440px; }
    .pomodoro-modal-body { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px; }
    
    .pomo-mode-tabs { display: flex; gap: 6px; background: var(--bg-body); padding: 4px; border-radius: 100px; border: 1px solid var(--border-color); width: 100%; justify-content: center; }
    .pm-tab { background: transparent; border: none; font-size: 11.5px; font-weight: 800; color: var(--text-muted); padding: 6px 12px; border-radius: 100px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
    .pm-tab.active { background: var(--card-bg); color: #ef4444; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid var(--border-color); }

    .pomo-display-card { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; margin: 8px 0; }
    .pomo-circle-wrap { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .pomo-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
    .pomo-ring-bg { fill: none; stroke: var(--border-color); stroke-width: 5; }
    .pomo-ring-progress { fill: none; stroke: #ef4444; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 283; transition: stroke-dashoffset 0.8s ease; }
    
    .pomo-time-text { font-size: 38px; font-weight: 900; color: var(--text-main); font-family: 'Space Mono', monospace; z-index: 2; line-height: 1; }
    .pomo-state-label { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; z-index: 2; }

    .pomo-task-info { background: var(--bg-body); border: 1px solid var(--border-color); padding: 8px 14px; border-radius: 10px; width: 100%; text-align: center; font-size: 12px; }
    .pti-lbl { color: var(--text-muted); font-size: 11px; font-weight: 700; margin-right: 6px; display: inline-flex; align-items: center; gap: 4px; }
    .pti-name { color: var(--text-main); }

    .pomo-controls-row { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: center; }
    .pomo-ctrl-btn { border-radius: 100px; font-size: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
    .pomo-start { background: #ef4444; color: #fff; border: none; padding: 10px 24px; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35); }
    .pomo-start:hover { transform: translateY(-1px); filter: brightness(1.08); }
    .pomo-pause { background: #f59e0b; color: #fff; border: none; padding: 10px 24px; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35); }
    .pomo-reset { background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-muted); padding: 10px; }
    .pomo-reset:hover { color: var(--text-main); border-color: var(--text-muted); }

    .pomo-stats-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; border-top: 1px solid var(--border-color); padding-top: 14px; text-align: center; }
    .psb-item { display: flex; flex-direction: column; gap: 2px; }
    .psb-val { font-size: 16px; font-weight: 900; color: var(--text-main); font-family: 'Space Mono', monospace; }
    .psb-lbl { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

    /* ---------- ARCHIVE / TRASH DRAWER ---------- */
    .trash-drawer-box { max-width: 520px; }
    .trash-actions-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); }
    .trash-items-list { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; }
    .trash-item-card { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .tic-info { flex-grow: 1; overflow: hidden; }
    .tic-top { display: flex; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 4px; }
    .tic-proj { font-weight: 800; }
    .tic-date { color: var(--text-muted); font-family: 'Space Mono', monospace; }
    .tic-title { font-size: 13.5px; font-weight: 800; color: var(--text-main); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tic-desc { font-size: 11.5px; color: var(--text-muted); margin: 2px 0 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tic-actions { display: flex; align-items: center; gap: 6px; }

    .trash-empty-state { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); }
    .trash-empty-state h4 { font-size: 16px; font-weight: 800; color: var(--text-main); margin: 0; }
    .trash-empty-state p { font-size: 13px; margin: 0; max-width: 320px; }

    /* ---------- INTERACTIVE CALENDAR VIEW ---------- */
    .calendar-container { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 20px; margin-bottom: 30px; }
    .calendar-header-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
    .cal-nav-group { display: flex; align-items: center; gap: 8px; }
    .cal-nav-btn { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-main); width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
    .cal-nav-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
    .cal-month-title { font-size: 18px; font-weight: 900; color: var(--text-main); margin: 0 6px; }
    .cal-hint-text { font-size: 12px; color: var(--text-muted); font-weight: 600; }

    .cal-weekdays-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; text-align: center; }
    .cw-cell { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 0; }

    .cal-grid-matrix { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
    .cal-day-cell {
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px;
        min-height: 110px; padding: 8px; display: flex; flex-direction: column; gap: 4px;
        cursor: pointer; transition: all 0.2s;
    }
    .cal-day-cell:hover { border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
    .cal-day-cell.other-month { opacity: 0.35; background: var(--bg-body); }
    .cal-day-cell.is-today { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 4%, var(--card-bg)); }
    .cal-day-cell.drag-target { border: 2px dashed var(--primary-color); background: var(--primary-light); }

    .cdc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
    .cdc-num { font-size: 12px; font-weight: 900; color: var(--text-main); font-family: 'Space Mono', monospace; }
    .cal-day-cell.is-today .cdc-num { background: var(--primary-color); color: #fff; padding: 1px 5px; border-radius: 4px; }
    .cdc-count { font-size: 9.5px; font-weight: 900; background: var(--bg-body); border: 1px solid var(--border-color); padding: 1px 4px; border-radius: 4px; color: var(--text-muted); font-family: 'Space Mono', monospace; }

    .cdc-tasks-wrap { display: flex; flex-direction: column; gap: 3px; max-height: 90px; overflow-y: auto; }
    .cdc-task-pill {
        font-size: 10.5px; font-weight: 700; background: var(--bg-body); border: 1px solid var(--border-color);
        border-left-width: 3px; border-radius: 4px; padding: 2px 5px; display: flex; align-items: center; gap: 4px;
        cursor: grab; overflow: hidden; transition: transform 0.15s;
    }
    .cdc-task-pill:hover { transform: translateX(2px); border-color: var(--primary-color); }
    .cdc-task-pill .dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
    .cdc-task-pill .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
    .cdc-task-pill.done { opacity: 0.6; }
    .cdc-task-pill.done .title { text-decoration: line-through; }

    /* ---------- MASTER TODAY OVERVIEW DECK ---------- */
    .master-today-container {
        background: var(--bg-body); border: 1px solid var(--border-color);
        border-radius: 20px; padding: 24px; margin-bottom: 30px;
    }
    .mt-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 18px; }
    .mt-title-info h2 { font-size: 20px; font-weight: 900; color: var(--text-main); margin: 0 0 6px 0; display: flex; align-items: center; gap: 10px; }
    .mt-title-info p { font-size: 13.5px; color: var(--text-muted); margin: 0; font-weight: 500; }
    
    .mt-summary-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .mt-chip { background: var(--card-bg); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
    .mt-chip strong { color: var(--text-main); font-family: 'Space Mono', monospace; }
    .mt-chip.highlight { background: var(--primary-light); border-color: var(--primary-color); color: var(--primary-color); }
    .mt-chip.highlight strong { color: var(--primary-color); }

    .master-tasks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
    .master-task-card {
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px;
        padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.2s, box-shadow 0.2s;
    }
    .master-task-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
    .master-task-card.overdue { border-left: 4px solid #ef4444; }
    [dir="rtl"] .master-task-card.overdue { border-left: 1px solid var(--border-color); border-right: 4px solid #ef4444; }
    .master-task-card.today { border-left: 4px solid #f59e0b; }
    [dir="rtl"] .master-task-card.today { border-left: 1px solid var(--border-color); border-right: 4px solid #f59e0b; }

    .mtc-header { display: flex; justify-content: space-between; align-items: center; }
    .mtc-project-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; border: 1px solid transparent; }
    .mtc-project-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
    .mtc-due-badge { font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; font-family: 'Space Mono', monospace; }
    .mtc-due-badge.overdue { color: #ef4444; }
    .mtc-due-badge.today { color: #f59e0b; }

    .mtc-body { display: flex; align-items: flex-start; gap: 10px; }
    .mtc-content { flex-grow: 1; }
    .mtc-task-title { font-size: 14.5px; font-weight: 800; color: var(--text-main); margin: 0 0 4px 0; line-height: 1.4; }
    .mtc-task-title.done { text-decoration: line-through; opacity: 0.6; }
    .mtc-task-desc { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .mtc-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 10px; margin-top: auto; }
    .mtc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .prio-tag { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 4px; font-family: 'Space Mono', monospace; }
    .prio-tag.prio-high { background: rgba(239,68,68,0.12); color: #ef4444; }
    .prio-tag.prio-med { background: rgba(245,158,11,0.12); color: #f59e0b; }
    .prio-tag.prio-low { background: rgba(59,130,246,0.12); color: #3b82f6; }
    .assignee-tag, .subtask-tag { font-size: 11px; font-weight: 700; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
    
    .mtc-jump-btn { background: transparent; border: none; color: var(--primary-color); font-size: 11.5px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: transform 0.15s; }
    .mtc-jump-btn:hover { transform: translateX(2px); }
    [dir="rtl"] .mtc-jump-btn:hover { transform: translateX(-2px); }

    .master-empty-card { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
    .master-empty-card h3 { font-size: 18px; font-weight: 900; color: var(--text-main); margin: 0; }
    .master-empty-card p { font-size: 14px; color: var(--text-muted); max-width: 480px; margin: 0; }

    /* ---------- APEXCHARTS ANALYTICS DECK (FULLY RESPONSIVE) ---------- */
    .dtb-analytics-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 20px;
        width: 100%;
    }
    @media (max-width: 880px) {
        .dtb-analytics-grid {
            grid-template-columns: minmax(0, 1fr);
        }
    }
    
    .analytics-card {
        background: var(--bg-body);
        border: 1px solid var(--border-color);
        border-radius: 18px;
        padding: 16px 18px 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        width: 100%;
        min-height: 290px;
        box-sizing: border-box;
        overflow: hidden;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .analytics-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    }
    .ac-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        flex-shrink: 0;
        width: 100%;
    }
    .ac-title {
        font-size: 12.5px;
        font-weight: 800;
        color: var(--text-main);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .ac-badge {
        font-size: 11px;
        font-weight: 800;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 3px 8px;
        border-radius: 100px;
        color: var(--text-muted);
        font-family: 'Space Mono', monospace;
        flex-shrink: 0;
    }
    .ac-badge.danger {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
        border-color: rgba(239, 68, 68, 0.25);
    }
    
    .chart-container {
        min-height: 220px;
        height: 220px;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .chart-container > div {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* ApexCharts SVG Text Overrides */
    .chart-container text,
    .chart-container .apexcharts-text {
        fill: var(--text-main) !important;
        font-family: 'DM Sans', 'Inter', sans-serif !important;
    }
    .chart-container .apexcharts-legend-text {
        color: var(--text-muted) !important;
    }

    /* ---------- PROGRESS SECTION ---------- */
    .dtb-progress-section { margin-bottom: 24px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 16px 20px; }
    .ps-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
    .ps-date { font-size: 15px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; }
    .ps-stats-wrap { display: flex; align-items: center; gap: 14px; }
    .ps-stats { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-muted); font-weight: 700; }
    .ps-stats strong { color: var(--text-main); font-weight: 900; font-family: 'Space Mono', monospace; }
    .ps-pct { font-size: 20px; font-weight: 900; color: var(--primary-color); font-family: 'Space Mono', monospace; }
    
    .progress-track { height: 8px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 100px; overflow: hidden; }
    .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--primary-gradient-end)); border-radius: 100px; transition: width 0.6s var(--ease-out); }

    /* ---------- KANBAN BOARD WRAPPER (FULL WIDTH FLUID) ---------- */
    .dtb-board-wrap { margin-bottom: 30px; overflow-x: auto; padding-bottom: 16px; width: 100%; }
    .dtb-board { display: flex; gap: 18px; min-height: 540px; align-items: flex-start; width: max-content; min-width: 100%; }
    
    /* Column Box */
    .dtb-col {
        background: var(--bg-body); border-radius: 18px; 
        width: var(--dtb-col-width); min-width: var(--dtb-col-width);
        display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color);
        transition: width 0.3s var(--ease-out), min-width 0.3s var(--ease-out), border-color 0.2s, background 0.2s;
    }
    .dtb-col.drag-over { border-color: var(--primary-color); background: var(--primary-light); }
    
    /* Collapsed Column Ribbon Mode */
    .dtb-col.is-collapsed {
        width: 52px !important; min-width: 52px !important;
        cursor: pointer; user-select: none;
    }
    .dtb-col.is-collapsed .col-header {
        flex-direction: column; padding: 14px 6px; min-height: 480px; align-items: center; justify-content: flex-start; gap: 14px;
    }
    .collapsed-vertical-title {
        writing-mode: vertical-rl; transform: rotate(180deg);
        font-size: var(--dtb-col-title-sz); font-weight: 900; color: var(--text-main);
        white-space: nowrap; margin-top: 10px;
    }
    
    .col-header { 
        padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; 
        border-bottom: 1px solid var(--border-color); position: relative; background: var(--card-bg); 
    }
    
    .col-title-row { display: flex; align-items: center; gap: 8px; flex-grow: 1; overflow: hidden; }
    
    /* Column Color Dot & Picker */
    .col-color-picker-wrap { position: relative; display: flex; align-items: center; }
    .col-color-dot-btn { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--card-bg); cursor: pointer; box-shadow: 0 0 0 1px var(--border-color); transition: transform 0.2s; }
    .col-color-dot-btn:hover { transform: scale(1.2); }
    .col-color-dropdown {
        position: absolute; top: calc(100% + 8px); left: 0; z-index: 100;
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px;
        padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); width: 120px;
    }
    .ccd-swatch { width: 20px; height: 20px; border-radius: 50%; border: none; cursor: pointer; transition: transform 0.15s; }
    .ccd-swatch:hover { transform: scale(1.2); }

    .col-title {
        background: transparent; border: 1px solid transparent; color: var(--text-main);
        font-size: var(--dtb-col-title-sz); font-weight: 900; outline: none; padding: 4px 6px; border-radius: 6px;
        transition: 0.2s; width: 100%; text-overflow: ellipsis; font-family: inherit;
    }
    .col-title:focus, .col-title:hover { border-color: var(--border-color); background: var(--bg-body); }
    
    .col-progress-pill {
        background: var(--bg-body); color: var(--text-muted); font-size: 11.5px; font-weight: 900; 
        padding: 3px 8px; border-radius: 100px; border: 1px solid var(--border-color); 
        font-family: 'Space Mono', monospace; white-space: nowrap; flex-shrink: 0;
    }
    
    .col-actions { display: flex; align-items: center; gap: 3px; }
    .col-act-btn { background: transparent; border: none; color: var(--text-muted); padding: 4px; border-radius: 6px; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; }
    .col-act-btn:hover { background: var(--border-color); color: var(--text-main); }
    .col-act-btn.add:hover { color: var(--primary-color); }
    .col-act-btn.del:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

    /* Column Sort Dropdown */
    .col-sort-wrap { position: relative; }
    .col-sort-dropdown {
        position: absolute; top: calc(100% + 6px); right: 0; z-index: 100;
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px;
        padding: 6px; width: 160px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; flex-direction: column; gap: 2px;
    }
    [dir="rtl"] .col-sort-dropdown { right: auto; left: 0; }
    .csd-item {
        background: transparent; border: none; padding: 7px 10px; border-radius: 6px;
        font-size: 11.5px; font-weight: 800; color: var(--text-main); text-align: left; cursor: pointer;
        display: flex; align-items: center; gap: 6px; transition: 0.15s;
    }
    [dir="rtl"] .csd-item { text-align: right; }
    .csd-item:hover { background: var(--primary-light); color: var(--primary-color); }

    .task-list { padding: 12px; display: flex; flex-direction: column; gap: 12px; min-height: 140px; max-height: 600px; overflow-y: auto; transition: 0.2s; }
    .task-list.over { background: rgba(59, 130, 246, 0.04); border-radius: 12px; }
    
    .col-empty-state {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 36px 16px; text-align: center; gap: 6px; color: var(--text-muted);
        font-size: 13px; font-weight: 700; border: 1px dashed var(--border-color); border-radius: 12px;
    }
    .col-empty-state small { font-size: 11.5px; opacity: 0.7; font-weight: 500; }

    .add-task-row { padding: 10px 12px; border-top: 1px solid var(--border-color); background: var(--card-bg); }
    .at-inp { width: 100%; background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-main); padding: 9px 14px; border-radius: 10px; font-size: var(--dtb-quick-inp-sz); font-weight: 600; outline: none; transition: 0.2s; font-family: inherit; }
    .at-inp:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); }
    
    .add-col-btn {
        min-width: 280px; height: 56px; background: var(--bg-body);
        border: 2px dashed var(--border-color); border-radius: 18px; color: var(--text-muted);
        font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center;
        gap: 8px; cursor: pointer; transition: all 0.2s;
    }
    .add-col-btn:hover { border-color: var(--primary-color); color: var(--primary-color); background: var(--primary-light); }

    /* ---------- TASK CARD COMPONENT ---------- */
    .dtb-task-card {
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 14px;
        padding: 14px 16px; position: relative; overflow: hidden; cursor: grab;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02); transition: all 0.2s var(--ease-out);
    }
    .dtb-task-card:hover { border-color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
    .dtb-task-card:active { cursor: grabbing; }
    .dtb-task-card.dragging { opacity: 0.4; transform: scale(0.96); }
    .dtb-task-card.done { opacity: 0.65; }
    .dtb-task-card.done .task-title { text-decoration: line-through; color: var(--text-muted); }
    
    .task-prio-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
    [dir="rtl"] .task-prio-bar { left: auto; right: 0; }
    .dtb-task-card.prio-high .task-prio-bar { background: #ef4444; }
    .dtb-task-card.prio-med .task-prio-bar { background: #f59e0b; }
    .dtb-task-card.prio-low .task-prio-bar { background: #3b82f6; }
    
    .task-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
    .task-check {
        width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-color);
        flex-shrink: 0; cursor: pointer; margin-top: 2px; transition: 0.2s; position: relative;
    }
    .task-check:hover { border-color: var(--primary-color); }
    .task-check.checked { background: #10b981; border-color: #10b981; }
    .task-check.checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 3.5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
    
    .task-title { flex-grow: 1; font-size: var(--dtb-task-title-sz); font-weight: 800; color: var(--text-main); line-height: 1.45; word-break: break-word; }
    
    .task-pomo-quick-btn { background: transparent; border: none; color: #ef4444; cursor: pointer; padding: 2px; border-radius: 4px; opacity: 0; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
    .dtb-task-card:hover .task-pomo-quick-btn { opacity: 0.7; }
    .task-pomo-quick-btn:hover { opacity: 1 !important; background: rgba(239, 68, 68, 0.1); }

    .task-menu { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; border-radius: 4px; opacity: 0; transition: 0.2s; }
    .dtb-task-card:hover .task-menu { opacity: 1; }
    .task-menu:hover { background: var(--border-color); color: var(--text-main); }
    
    .task-body { padding-left: 28px; }
    [dir="rtl"] .task-body { padding-left: 0; padding-right: 28px; }
    
    .task-desc { font-size: var(--dtb-task-desc-sz); color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
    
    /* Linked GuinRank Tool Chip */
    .task-tool-badge { margin-bottom: 8px; }
    .tool-link-chip {
        display: inline-flex; align-items: center; gap: 5px;
        background: var(--primary-light); color: var(--primary-color);
        border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
        padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800;
        text-decoration: none; transition: 0.2s;
    }
    .tool-link-chip:hover { background: var(--primary-color); color: #fff; }

    .task-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
    .task-tag { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; cursor: pointer; transition: 0.15s; font-family: 'Space Mono', monospace; }
    .task-tag:hover { filter: brightness(1.15); transform: translateY(-1px); }
    
    /* Interactive Card Subtasks */
    .card-subtasks-preview { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 10px; }
    .csp-row { display: flex; align-items: center; gap: 8px; font-size: var(--dtb-subtask-sz); }
    .csp-check { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--border-color); cursor: pointer; position: relative; flex-shrink: 0; }
    .csp-check.checked { background: var(--primary-color); border-color: var(--primary-color); }
    .csp-check.checked::after { content: ''; position: absolute; left: 3.5px; top: 0.5px; width: 2.5px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
    .csp-text { color: var(--text-main); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .csp-text.done { text-decoration: line-through; opacity: 0.6; }

    .task-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--dtb-task-meta-sz); font-weight: 800; color: var(--text-muted); margin-top: 6px; }
    .meta-item { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-body); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border-color); font-family: 'Space Mono', monospace; }
    .meta-item.overdue { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: rgba(239, 68, 68, 0.25); }
    .meta-item.today { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border-color: rgba(245, 158, 11, 0.25); }
    .meta-item.ok { color: #10b981; }
    
    .sub-bar { height: 4px; background: var(--border-color); border-radius: 2px; margin-top: 8px; overflow: hidden; }
    .sub-fill { height: 100%; background: #10b981; border-radius: 2px; }

    /* ---------- BULLETPROOF MODAL OVERLAY & HEADER FIX ---------- */
    .dtb-modal-overlay { 
        position: fixed !important; 
        inset: 0 !important; 
        background: rgba(0, 0, 0, 0.7) !important; 
        backdrop-filter: blur(8px) !important; 
        -webkit-backdrop-filter: blur(8px) !important;
        z-index: 100000 !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
        opacity: 0; 
        pointer-events: none; 
        transition: opacity 0.25s ease; 
        padding: 24px !important;
        box-sizing: border-box !important;
    }
    .dtb-modal-overlay.open { opacity: 1 !important; pointer-events: auto !important; }
    
    .dtb-modal-box {
        position: relative !important;
        background: var(--card-bg) !important; 
        border: 1px solid var(--border-color) !important; 
        width: 100% !important; 
        max-width: 640px !important;
        border-radius: 24px !important; 
        overflow: hidden !important; 
        margin: auto !important;
        transform: translateY(16px) scale(0.97) !important;
        transition: transform 0.3s var(--ease-spring) !important; 
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
        display: flex !important; 
        flex-direction: column !important; 
        max-height: calc(100vh - 48px) !important;
        box-sizing: border-box !important;
    }
    .dtb-modal-box.modal-lg { max-width: 840px !important; }
    .dtb-modal-overlay.open .dtb-modal-box { transform: translateY(0) scale(1) !important; }
    
    /* Guaranteed Visible Modal Header */
    .dtb-modal-header,
    .dtb-modal-box .modal-header {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 50 !important;
        padding: 18px 24px !important;
        margin: 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: var(--bg-body) !important;
        flex-shrink: 0 !important;
        min-height: 64px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .modal-title {
        font-size: 16.5px;
        font-weight: 900;
        color: var(--text-main);
        display: flex;
        align-items: center;
        gap: 10px;
        line-height: 1;
    }
    .modal-title-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--primary-light);
        color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .modal-close {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        cursor: pointer;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.2s;
        flex-shrink: 0;
    }
    .modal-close:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
        border-color: rgba(239, 68, 68, 0.3);
        transform: rotate(90deg);
    }
    
    .dtb-modal-box .modal-body { 
        flex: 1 1 auto !important; 
        min-height: 0 !important; 
        padding: 22px 24px !important; 
        overflow-y: auto !important; 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 18px !important; 
    }
    
    .form-row { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
    .form-row-h { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (max-width: 600px) { .form-row-h { grid-template-columns: 1fr; } }
    
    .form-lbl { font-size: 11.5px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
    .form-inp { background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-main); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; outline: none; transition: 0.2s; width: 100%; font-family: inherit; }
    .form-inp:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); }
    .form-ta { resize: vertical; min-height: 85px; line-height: 1.55; }

    /* Project Color Picker in Modal */
    .project-color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
    .pc-swatch { width: 26px; height: 26px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: transform 0.2s; }
    .pc-swatch:hover { transform: scale(1.15); }
    .pc-swatch.active { border-color: var(--text-main); transform: scale(1.15); box-shadow: 0 0 0 2px var(--primary-color); }

    /* Templates Grid in Modal */
    .templates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 600px) { .templates-grid { grid-template-columns: 1fr; } }
    .template-card {
        background: var(--bg-body); border: 1.5px solid var(--border-color); border-radius: 14px;
        padding: 14px; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; gap: 8px; position: relative;
    }
    .template-card:hover { border-color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
    .template-card.active { border-color: var(--primary-color); background: var(--primary-light); box-shadow: 0 0 0 2px var(--primary-color); }
    .custom-pill { font-size: 9.5px; background: rgba(139, 92, 246, 0.15); color: #8b5cf6; padding: 2px 6px; border-radius: 100px; font-weight: 900; margin-left: 6px; }
    .del-tmpl-btn { position: absolute; top: 12px; right: 12px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 4px; }
    .del-tmpl-btn:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
    [dir="rtl"] .del-tmpl-btn { right: auto; left: 12px; }

    .tc-header { display: flex; align-items: center; gap: 10px; }
    .tc-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .tc-title { font-size: 13px; font-weight: 800; color: var(--text-main); }
    .tc-desc { font-size: 11.5px; color: var(--text-muted); margin: 0; line-height: 1.4; }
    .tc-columns-preview { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
    .tc-col-pill { font-size: 10px; font-weight: 700; background: var(--card-bg); border: 1px solid var(--border-color); padding: 2px 6px; border-radius: 4px; color: var(--text-muted); }

    /* Custom Dropdown in Modal */
    .custom-dropdown { position: relative; width: 100%; }
    .cd-header {
        display: flex; align-items: center; justify-content: space-between; background: var(--bg-body); border: 1px solid var(--border-color);
        color: var(--text-main); padding: 9px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: 0.2s;
    }
    .cd-header:hover { border-color: var(--primary-color); }
    .custom-dropdown.active .cd-header { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); }
    .cd-body {
        position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card-bg); border: 1px solid var(--border-color);
        border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 100; overflow: hidden;
    }
    .cd-list { max-height: 180px; overflow-y: auto; padding: 6px; }
    .cd-item { padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--text-main); cursor: pointer; transition: background 0.15s; }
    .cd-item:hover { background: var(--bg-body); }
    .cd-item.active { background: var(--primary-light); color: var(--primary-color); }
    
    .prio-chips { display: flex; gap: 6px; }
    .prio-chip { background: var(--bg-body); border: 1px solid var(--border-color); padding: 7px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 800; cursor: pointer; transition: 0.2s; flex-grow: 1; color: var(--text-muted); }
    .prio-chip.high.on { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: #ef4444; }
    .prio-chip.med.on { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: #f59e0b; }
    .prio-chip.low.on { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #3b82f6; }
    .prio-chip.none.on { background: var(--border-color); color: var(--text-main); }
    
    .subtask-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
    .subtask-item { display: flex; align-items: center; gap: 8px; background: var(--bg-body); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border-color); }
    .sub-check { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--border-color); cursor: pointer; position: relative; transition: 0.2s; flex-shrink: 0; }
    .sub-check.done { background: #10b981; border-color: #10b981; }
    .sub-check.done::after { content: ''; position: absolute; left: 3px; top: 0px; width: 3px; height: 6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
    .sub-inp { padding: 4px 6px !important; font-size: 12.5px !important; border: none !important; background: transparent !important; }
    .sub-del { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 4px; transition: 0.2s; }
    .sub-del:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
    
    .sub-add-wrap { display: flex; gap: 6px; }
    .sub-add-btn { padding: 8px 14px; border-radius: 10px; background: var(--primary-light); border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent); color: var(--primary-color); cursor: pointer; font-weight: 800; font-size: 12.5px; white-space: nowrap; transition: 0.2s; }
    .sub-add-btn:hover { background: var(--primary-color); color: #fff; }

    .dtb-modal-box .modal-footer { 
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 50 !important;
        padding: 14px 24px !important; 
        border-top: 1px solid var(--border-color) !important; 
        display: flex !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        background: var(--bg-body) !important; 
        flex-shrink: 0 !important; 
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .modal-save { background: var(--primary-color); color: #fff; border: none; padding: 10px 22px; border-radius: 10px; font-size: 13.5px; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; box-shadow: 0 4px 12px var(--primary-shadow); }
    .modal-save:hover { transform: translateY(-1px); filter: brightness(1.08); }
    .modal-del { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); padding: 9px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
    .modal-del:hover { background: rgba(239,68,68,0.2); }

    /* ---------- 4 VITAL STATS STRIP ---------- */
    .stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 40px; }
    .stats-sc { background: var(--bg-body); border-radius: 18px; padding: 18px; border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.2s; }
    .stats-sc:hover { transform: translateY(-2px); }
    .stats-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
    .stats-ico.cb { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
    .stats-ico.cg { background: rgba(16, 185, 129, 0.1); color: #10b981; }
    .stats-ico.cr { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
    .stats-ico.cp { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
    .stats-val { font-size: 26px; font-weight: 900; color: var(--text-main); line-height: 1; margin-bottom: 4px; font-family: 'Space Mono', monospace; }
    .stats-lbl { font-size: 12px; font-weight: 700; color: var(--text-muted); }

    /* ---------- BENTO BOX FEATURES CLUSTER ---------- */
    .console-features { margin-top: 40px; width: 100%; }
    .bento-features-cluster { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; grid-auto-rows: minmax(130px, auto); gap: 18px; width: 100%; position: relative; z-index: 2; }
    .bento-card { background: rgba(255, 255, 255, 0.015); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; transition: all 0.4s var(--ease-out); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
    .bento-card::after { content: ''; position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%); pointer-events: none; }
    .bento-card:hover { transform: translateY(-3px); border-color: var(--primary-color); box-shadow: 0 10px 26px rgba(0,0,0,0.06); }
    .bento-card-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; gap: 10px; }
    
    .dashed-ring-wrapper { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; width: 40px; height: 40px; }
    .dashed-ring-wrapper::before { content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border: 1px dashed var(--border-color); border-radius: 14px; opacity: 0.5; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); z-index: 0; }
    .bento-card:hover .dashed-ring-wrapper::before { opacity: 1; transform: scale(1.1) rotate(180deg); border-color: var(--primary-color); }
    
    .bc-icon-wrapper { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-body); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.3s ease; }
    .bento-card:hover .bc-icon-wrapper { background: var(--primary-color); color: white; border-color: transparent; }
    .bc-icon-wrapper i, .bc-icon-wrapper svg { width: 16px; height: 16px; }

    .bc-title { font-size: 15px; font-weight: 800; color: var(--text-main); margin: 0; }
    .bc-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0; font-weight: 500; }
    
    .bc-wide-top { grid-column: span 2; }
    .bc-tall { grid-row: span 2; }
    .bc-wide-mid { grid-column: span 2; }

    @media (max-width: 900px) {
        .bento-features-cluster { grid-template-columns: repeat(2, 1fr); }
        .bc-wide-top, .bc-wide-mid { grid-column: span 2; }
        .bc-tall { grid-row: span 1; grid-column: span 1; }
    }
    @media (max-width: 768px) {
        .dtb-project-bar { flex-direction: column; align-items: stretch; }
        .pb-left-group, .pb-right-group { width: 100%; justify-content: space-between; }
        .dtb-options-bar { flex-direction: column; align-items: stretch; border-radius: 20px; }
        .ob-left-controls, .ob-right-controls { width: 100%; justify-content: space-between; }
        .bento-features-cluster { grid-template-columns: 1fr; }
        .bc-wide-top, .bc-wide-mid, .bc-tall { grid-column: span 1; }
    }

    /* Print & PDF Export Media Styles */
    @media print {
        header, footer, nav, .dtb-hero, .dtb-options-bar, .pb-right-group, .stats-strip, .console-features, .add-task-row, .add-col-btn, .col-actions { display: none !important; }
        #page-content, .page-content, .dtb-panel { width: 100% !important; padding: 0 !important; background: #fff !important; }
        .dtb-task-card { break-inside: avoid; border: 1px solid #ccc !important; box-shadow: none !important; }
    }

    /* =========================================
       ZERO INLINE STYLES EXTENSIONS
       ========================================= */
    #boardImportInput {
        display: none;
    }

    .modal-title-icon i {
        width: 16px;
        height: 16px;
    }

    .modal-close i {
        width: 16px;
        height: 16px;
    }

    .cd-header i {
        width: 14px;
        height: 14px;
    }

    .tool-link-header {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .tool-link-header i {
        width: 14px;
        height: 14px;
        color: var(--primary-color);
    }

    .sub-del i {
        width: 12px;
        height: 12px;
    }

    .modal-del i {
        width: 14px;
        height: 14px;
    }

    .modal-save i {
        width: 16px;
        height: 16px;
    }

    .modal-title-icon.pomo-icon {
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
    }

    .modal-title-icon.pomo-icon i {
        width: 18px;
        height: 18px;
    }

    .pm-tab i {
        width: 13px;
        height: 13px;
    }

    .pti-lbl i {
        width: 12px;
        height: 12px;
    }

    .pomo-ctrl-btn i {
        width: 18px;
        height: 18px;
    }

    .pomo-ctrl-btn.pomo-reset i {
        width: 16px;
        height: 16px;
    }

    .modal-title-icon.archive-icon {
        background: rgba(100, 116, 139, 0.15);
        color: var(--text-muted);
    }

    .modal-title-icon.archive-icon i {
        width: 18px;
        height: 18px;
    }

    .trash-drawer-box .modal-body {
        padding: 16px;
    }

    .btn-purge-all {
        padding: 4px 10px;
        font-size: 11px;
    }

    .btn-purge-all i {
        width: 12px;
        height: 12px;
    }

    .btn-restore-task {
        padding: 5px 12px;
        font-size: 11.5px;
    }

    .btn-restore-task i {
        width: 12px;
        height: 12px;
    }

    .ps-act-btn.del i {
        width: 13px;
        height: 13px;
    }

    .trash-empty-state i {
        width: 36px;
        height: 36px;
        opacity: 0.3;
    }

    .tc-icon.icon-purple {
        background: rgba(139, 92, 246, 0.15);
        color: #8b5cf6;
    }

    .tc-icon.icon-blue {
        background: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
    }

    .tc-icon.icon-pink {
        background: rgba(236, 72, 153, 0.15);
        color: #ec4899;
    }

    .tc-icon.icon-cyan {
        background: rgba(6, 182, 212, 0.15);
        color: #06b6d4;
    }

    .tc-icon.icon-green {
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
    }

    .tc-icon i {
        width: 18px;
        height: 18px;
    }

    .del-tmpl-btn i {
        width: 12px;
        height: 12px;
    }

    .dtb-hero-badge i {
        width: 14px;
        height: 14px;
    }

    .ps-header-btn i.ps-chevron {
        width: 14px;
        height: 14px;
        margin-left: 8px;
    }

    .ps-add-btn i {
        width: 12px;
        height: 12px;
    }

    .ps-act-btn i {
        width: 11px;
        height: 11px;
    }

    .ps-footer-btn.mb-xs {
        margin-bottom: 6px;
    }

    .ps-footer-btn i {
        width: 14px;
        height: 14px;
    }

    .v-tab-btn i {
        width: 13px;
        height: 13px;
    }

    .action-primary i {
        width: 14px;
        height: 14px;
    }

    .pomo-trigger-btn i {
        width: 14px;
        height: 14px;
    }

    .pb-right-group .action-ghost i {
        width: 13px;
        height: 13px;
    }

    .icon-wrap-inline {
        display: inline-flex;
        align-items: center;
    }

    .focus-mode-btn i {
        width: 13px;
        height: 13px;
    }

    .search-clear-btn i {
        width: 12px;
        height: 12px;
    }

    .icon-indicator-red {
        color: #ef4444;
    }

    .font-size-btn i {
        width: 13px;
        height: 13px;
    }

    .ob-right-controls i.icon-spreadsheet-green {
        width: 13px;
        height: 13px;
        color: #10b981;
    }

    .ob-right-controls .action-ghost i {
        width: 13px;
        height: 13px;
    }

    .dir-toggle i {
        width: 12px;
        height: 12px;
    }

    .dir-divider {
        opacity: 0.3;
    }

    .action-danger i {
        width: 13px;
        height: 13px;
    }

    .tags-strip-lbl i {
        width: 12px;
        height: 12px;
    }

    .tag-chip-clear i {
        width: 11px;
        height: 11px;
    }

    .mt-title-info h2 i {
        width: 22px;
        height: 22px;
        color: var(--primary-color);
    }

    .mtc-due-badge i {
        width: 11px;
        height: 11px;
    }

    .assignee-tag i {
        width: 10px;
        height: 10px;
    }

    .mtc-jump-btn i {
        width: 12px;
        height: 12px;
    }

    .mec-icon i {
        width: 36px;
        height: 36px;
        color: #10b981;
    }

    .master-empty-card .action-primary i {
        width: 14px;
        height: 14px;
    }

    .cal-nav-btn i {
        width: 16px;
        height: 16px;
    }

    .btn-cal-today {
        margin-left: 8px;
    }

    .ac-title i {
        width: 14px;
        height: 14px;
    }

    .ps-date i {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }

    .col-act-btn.mt-auto {
        margin-top: auto;
    }

    .col-act-btn i {
        width: 12px;
        height: 12px;
    }

    .csd-item i.icon-prio-red {
        width: 12px;
        height: 12px;
        color: #ef4444;
    }

    .csd-item i.icon-due-amber {
        width: 12px;
        height: 12px;
        color: #f59e0b;
    }

    .csd-item i {
        width: 12px;
        height: 12px;
    }

    .csd-item i.icon-unfinished-blue {
        width: 12px;
        height: 12px;
        color: #3b82f6;
    }

    .task-pomo-quick-btn i {
        width: 13px;
        height: 13px;
    }

    .task-menu i {
        width: 14px;
        height: 14px;
    }

    .tool-link-chip i {
        width: 11px;
        height: 11px;
    }

    .meta-item i {
        width: 11px;
        height: 11px;
    }

    .meta-item.assignee i {
        width: 11px;
        height: 11px;
    }

    .meta-item.sub-progress i {
        width: 11px;
        height: 11px;
    }

    .col-empty-state i {
        width: 22px;
        height: 22px;
        opacity: 0.3;
    }

    .add-col-btn i {
        width: 18px;
        height: 18px;
    }

    .stats-ico i {
        width: 20px;
        height: 20px;
    }