:root {
            --sidebar-width: 255px;
            --topbar-height: 52px;
        }

        body, html {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
            background-color: var(--bg-app);
            font-family: var(--font-family);
        }

        /* App Shell Layout */
        .app-shell {
            display: flex;
            height: 100vh;
            width: 100vw;
            overflow: hidden;
        }

        /* Luxury Dark Obsidian Sidebar */
        .sidebar {
            width: var(--sidebar-width);
            background: linear-gradient(180deg, #070B14 0%, #0D1627 45%, #080D1A 100%);
            color: var(--text-inverse);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
            z-index: 30;
            border-right: 1px solid rgba(255, 255, 255, 0.08);
            position: relative;
        }

        /* Ambient subtle glowing backlight in sidebar */
        .sidebar::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; height: 160px;
            background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
            pointer-events: none;
        }

        .sidebar-brand {
            height: var(--topbar-height);
            padding: 0 16px;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(7, 11, 20, 0.98) 100%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: flex-start;
            position: relative;
            z-index: 2;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        }

        .brand-info {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
        }

        /* Luxury Circular Emblem Frame */
        .brand-logo-frame {
            position: relative;
            width: 36px;
            height: 36px;
            aspect-ratio: 1 / 1;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at 35% 35%, #1E293B 0%, #070D1A 100%);
            padding: 1.5px;
            border: 1.5px solid rgba(56, 189, 248, 0.5);
            box-shadow: 0 0 14px rgba(56, 189, 248, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 0 6px rgba(0, 212, 255, 0.25);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            flex-shrink: 0;
            cursor: pointer;
        }

        .brand-logo-frame:hover {
            transform: scale(1.08) rotate(4deg);
            border-color: #38BDF8;
            box-shadow: 0 0 20px rgba(56, 189, 248, 0.65), 0 0 8px #FFFFFF, inset 0 0 10px rgba(56, 189, 248, 0.4);
        }

        .brand-logo {
            width: 100%;
            height: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            border-radius: 50%;
            display: block;
            filter: drop-shadow(0 0 2px rgba(0, 212, 255, 0.3));
        }

        .brand-logo-fallback {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            background: linear-gradient(135deg, #0284C7, #2563EB);
            color: #FFFFFF;
        }

        /* Typography & Program Name */
        .brand-text-block {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
        }

        .brand-title {
            font-size: 0.95rem;
            font-weight: 850;
            letter-spacing: 0.05em;
            line-height: 1.1;
            display: flex;
            align-items: baseline;
            gap: 2px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
        }

        .brand-title-main {
            color: #FFFFFF;
            letter-spacing: 0.04em;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        }

        .brand-title-accent {
            background: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
            font-weight: 900;
        }

        .brand-sub {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 3px;
        }

        .brand-sub-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #38BDF8;
            box-shadow: 0 0 6px #38BDF8;
            animation: pulseSubDot 2s infinite ease-in-out;
        }

        @keyframes pulseSubDot {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.35; transform: scale(0.8); }
        }

        .brand-sub-text {
            font-size: 0.625rem;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: #94A3B8;
            transition: color 0.2s ease;
        }

        .sidebar-brand:hover .brand-sub-text {
            color: #E2E8F0;
        }


        .nav-scroller {
            flex-grow: 1;
            overflow-y: auto;
            padding: 8px 0;
            position: relative;
            z-index: 2;
        }

        /* Category Header with Glow Dot & Divider Line */
        .nav-category {
            padding: 10px 14px 4px;
            font-size: 0.65rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--cat-color, #94A3B8);
            display: flex;
            align-items: center;
            gap: 7px;
            opacity: 0.95;
        }

        .cat-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--cat-color, #94A3B8);
            box-shadow: 0 0 7px var(--cat-color, #94A3B8);
            flex-shrink: 0;
        }

        .cat-line {
            flex-grow: 1;
            height: 1px;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
        }

        /* --- MODERN NAVBAR ITEM WITH VIBRANT COLORS & HOVER EFFECT --- */
        .nav-item {
            position: relative;
            display: flex;
            align-items: center;
            width: calc(100% - 14px);
            margin: 2px 7px;
            padding: 7px 11px;
            background: transparent;
            color: #94A3B8;
            text-decoration: none;
            border: 1px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.825rem;
            font-weight: 500;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            text-align: left;
            font-family: inherit;
            outline: none;
            overflow: hidden;
        }

        /* Left glowing indicator pill */
        .nav-item .nav-indicator {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%) scaleY(0);
            width: 3.5px;
            height: 16px;
            background: var(--item-color, #38BDF8);
            border-radius: 0 4px 4px 0;
            box-shadow: 0 0 10px var(--item-color, #38BDF8);
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
            opacity: 0;
        }

        /* Custom icon box with subtle tinted background */
        .nav-item .nav-icon-box {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 7px;
            margin-right: 9px;
            font-size: 0.95rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .nav-item .nav-text {
            flex-grow: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.2s ease, transform 0.2s ease;
        }

        /* Micro arrow sliding in on hover */
        .nav-item .nav-arrow {
            font-size: 0.8rem;
            opacity: 0;
            transform: translateX(-6px);
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            color: var(--item-color, #38BDF8);
            font-weight: 700;
        }

        /* Active dot */
        .nav-item .nav-active-pill {
            display: none;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--item-color, #38BDF8);
            box-shadow: 0 0 8px var(--item-color, #38BDF8);
        }

        /* --- NAVBAR HOVER EFFECTS --- */
        .nav-item:hover {
            background: linear-gradient(90deg, rgba(var(--item-rgb, 56, 189, 248), 0.18) 0%, rgba(var(--item-rgb, 56, 189, 248), 0.03) 100%);
            color: #FFFFFF;
            padding-left: 14px;
            border-color: rgba(var(--item-rgb, 56, 189, 248), 0.35);
            box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.35), 0 0 14px rgba(var(--item-rgb, 56, 189, 248), 0.18);
        }

        .nav-item:hover .nav-indicator {
            transform: translateY(-50%) scaleY(1);
            opacity: 1;
            background: var(--item-color, #38BDF8);
            box-shadow: 0 0 10px var(--item-color, #38BDF8), 0 0 3px #FFFFFF;
        }

        .nav-item:hover .nav-icon-box {
            transform: scale(1.15) rotate(4deg);
            border-color: rgba(var(--item-rgb, 56, 189, 248), 0.6);
            box-shadow: 0 0 12px rgba(var(--item-rgb, 56, 189, 248), 0.45);
            background: rgba(var(--item-rgb, 56, 189, 248), 0.25);
        }

        .nav-item:hover .nav-text {
            color: #FFFFFF;
            font-weight: 600;
            text-shadow: 0 0 10px rgba(var(--item-rgb, 56, 189, 248), 0.35);
        }

        .nav-item:hover .nav-arrow {
            opacity: 1;
            transform: translateX(0);
        }

        /* --- ACTIVE STATE --- */
        .nav-item.active {
            background: linear-gradient(90deg, rgba(var(--item-rgb, 56, 189, 248), 0.26) 0%, rgba(var(--item-rgb, 56, 189, 248), 0.07) 100%);
            color: #FFFFFF;
            font-weight: 600;
            border-color: rgba(var(--item-rgb, 56, 189, 248), 0.45);
            box-shadow: 0 3px 14px rgba(var(--item-rgb, 56, 189, 248), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }

        .nav-item.active .nav-indicator {
            transform: translateY(-50%) scaleY(1.3);
            opacity: 1;
            background: var(--item-color, #38BDF8);
            box-shadow: 0 0 10px var(--item-color, #38BDF8);
        }

        .nav-item.active .nav-icon-box {
            background: rgba(var(--item-rgb, 56, 189, 248), 0.3);
            border-color: rgba(var(--item-rgb, 56, 189, 248), 0.6);
            box-shadow: 0 0 14px rgba(var(--item-rgb, 56, 189, 248), 0.45);
            transform: scale(1.06);
        }

        .nav-item.active .nav-active-pill {
            display: block;
        }

        /* Workspace Main Area */
        .workspace-area {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: var(--bg-app);
            position: relative;
        }

        /* Frosted Glass Topbar - Adaptive & Responsive */
        .topbar {
            height: var(--topbar-height);
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(226, 232, 240, 0.85);
            box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            z-index: 20;
            gap: 10px;
        }

        .topbar-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            flex: 1;
        }

        /* Responsive Mobile / Tablet Drawer Toggle Button */
        .sidebar-toggle-btn {
            display: none;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: #F1F5F9;
            border: 1px solid #CBD5E1;
            color: var(--bank-navy);
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .sidebar-toggle-btn:hover {
            background: #E2E8F0;
            border-color: #94A3B8;
        }

        /* Sidebar Off-canvas Backdrop Overlay */
        .sidebar-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(7, 11, 20, 0.65);
            backdrop-filter: blur(4px);
            z-index: 25;
            display: none;
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .sidebar-backdrop.active {
            display: block;
            opacity: 1;
        }

        .current-tool-title {
            font-size: 0.925rem;
            font-weight: 700;
            color: var(--bank-navy);
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 11px 4px 5px;
            background: #F8FAFC;
            border: 1px solid #E2E8F0;
            border-radius: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .tool-icon-badge {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.925rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            flex-shrink: 0;
        }

        .topbar-search-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #FFFFFF;
            border: 1px solid #CBD5E1;
            border-radius: 20px;
            padding: 4.5px 12px;
            font-size: 0.775rem;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .topbar-search-btn:hover {
            border-color: #6366F1;
            background: #FFFFFF;
            color: var(--text-primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 2px 6px rgba(99, 102, 241, 0.1);
            transform: translateY(-1px);
        }

        .kbd-badge {
            background: #F1F5F9;
            border: 1px solid #CBD5E1;
            border-radius: 4px;
            padding: 1px 5px;
            font-size: 0.65rem;
            font-weight: 700;
            color: var(--text-secondary);
        }

        .topbar-right {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        /* Screen Breakpoints for Shell */
        @media (max-width: 1080px) {
            .sidebar-toggle-btn {
                display: inline-flex;
            }
            .sidebar {
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                transform: translateX(-100%);
                transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
                z-index: 30;
            }
            .sidebar.sidebar-open {
                transform: translateX(0);
                box-shadow: 12px 0 35px rgba(0, 0, 0, 0.55);
            }
        }

        @media (max-width: 768px) {
            .topbar {
                padding: 0 10px;
            }
            .tool-desc-pill {
                display: none !important;
            }
            .topbar-search-btn .kbd-badge {
                display: none;
            }
            .system-date-badge {
                font-size: 0.72rem;
                padding: 3px 8px;
            }
        }

        @media (max-width: 580px) {
            .topbar-search-btn span:first-child {
                display: none;
            }
            .system-date-badge {
                display: none;
            }
        }

        .system-date-badge {
            font-size: 0.775rem;
            color: var(--text-secondary);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: #F8FAFC;
            border: 1px solid #E2E8F0;
            border-radius: 20px;
        }

        /* Viewport Multi-Frame Container */
        .viewport-wrapper {
            flex-grow: 1;
            position: relative;
            overflow: hidden;
            width: 100%;
            height: calc(100vh - var(--topbar-height));
        }

        .view-frame {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: none;
            display: none;
        }

        .view-frame.active-view {
            display: block;
        }

        /* Dashboard Native Cockpit */
        #dashboard-view {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            overflow-y: auto;
            padding: 10px 20px 24px;
            display: none;
        }

        #dashboard-view.active-view {
            display: block;
        }

        /* --- VIBRANT STAT CARDS --- */
        .stat-card-modern {
            position: relative;
            background: #FFFFFF;
            border-radius: 12px;
            padding: 15px 18px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
            border: 1px solid #E2E8F0;
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
        }

        .stat-card-modern::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; height: 3.5px;
            background: transparent;
            transition: all 0.22s ease;
        }

        .stat-card-modern:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 3px 6px -2px rgba(15, 23, 42, 0.03);
        }

        .stat-card-gold {
            background: linear-gradient(145deg, #FFFFFF 0%, #FFFDF9 50%, #FEF9ED 100%);
            border-color: #FDE68A;
        }
        .stat-card-gold::before {
            background: linear-gradient(90deg, #F59E0B, #D97706);
        }

        .stat-card-blue {
            background: linear-gradient(145deg, #FFFFFF 0%, #FAFDFF 50%, #F0F7FF 100%);
            border-color: #BFDBFE;
        }
        .stat-card-blue::before {
            background: linear-gradient(90deg, #3B82F6, #2563EB);
        }

        .stat-card-violet {
            background: linear-gradient(145deg, #FFFFFF 0%, #FDFAFF 50%, #FAF5FF 100%);
            border-color: #E9D5FF;
        }
        .stat-card-violet::before {
            background: linear-gradient(90deg, #8B5CF6, #7C3AED);
        }

        .stat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .stat-label-modern {
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #64748B;
        }

        .stat-icon-wrap {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        }

        .stat-value-modern {
            font-size: 1.45rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 5px;
            line-height: 1.1;
        }

        .stat-footer {
            display: flex;
            align-items: center;
        }

        .mini-tag {
            font-size: 0.65rem;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 5px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .tag-amber { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
        .tag-blue { background: #DBEAFE; color: #1D4ED8; border: 1px solid #BFDBFE; }
        .tag-violet { background: #F3E8FF; color: #6D28D9; border: 1px solid #E9D5FF; }

        /* ==========================================================================
           ADVANCED DAILY BRANCH TASK HUB STYLING
           ========================================================================== */
        .task-hub-card {
            background: #FFFFFF;
            border-radius: 14px;
            border: 1px solid var(--border-subtle);
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
            padding: 22px;
            position: relative;
        }

        .task-hub-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-subtle);
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .task-hub-title-box {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .task-hub-icon-badge {
            width: 42px;
            height: 42px;
            border-radius: 11px;
            background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
            border: 1px solid rgba(99, 102, 241, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.35rem;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
        }

        .task-hub-title {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--bank-navy);
            letter-spacing: -0.01em;
        }

        .task-hub-subtitle {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .task-hub-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Progress Bar Section */
        .task-progress-card {
            background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
            border: 1px solid #E2E8F0;
            border-radius: 10px;
            padding: 10px 14px;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .task-progress-label {
            font-size: 0.775rem;
            font-weight: 700;
            color: var(--bank-navy);
            white-space: nowrap;
        }

        .task-progress-track {
            flex-grow: 1;
            height: 8px;
            background: #E2E8F0;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
        }

        .task-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #10B981 0%, #06B6D4 100%);
            border-radius: 20px;
            transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
        }

        .task-progress-text {
            font-family: var(--font-mono);
            font-size: 0.775rem;
            font-weight: 800;
            color: #059669;
            white-space: nowrap;
        }

        /* Task Creation Form Grid */
        .task-form-grid {
            display: grid;
            grid-template-columns: 1fr 150px 145px auto;
            gap: 10px;
            margin-bottom: 18px;
            align-items: center;
            background: #F8FAFC;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid #E2E8F0;
        }

        @media (max-width: 950px) {
            .task-form-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        .task-input-field {
            padding: 9px 12px;
            border: 1px solid #CBD5E1;
            border-radius: 8px;
            font-size: 0.85rem;
            outline: none;
            background: #FFFFFF;
            transition: all 0.2s ease;
            width: 100%;
        }

        .task-input-field:focus {
            border-color: #2563EB;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }

        .task-select {
            padding: 9px 10px;
            border: 1px solid #CBD5E1;
            border-radius: 8px;
            font-size: 0.8rem;
            background: #FFFFFF;
            outline: none;
            cursor: pointer;
            font-weight: 500;
            color: var(--text-primary);
        }

        .task-select:focus {
            border-color: #2563EB;
        }

        /* Task Filter & Search Toolbar */
        .task-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .task-filters {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .task-filter-btn {
            background: #F1F5F9;
            border: 1px solid transparent;
            color: var(--text-secondary);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.18s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .task-filter-btn:hover {
            background: #E2E8F0;
            color: var(--text-primary);
        }

        .task-filter-btn.active {
            background: var(--bank-navy);
            color: #FFFFFF;
            border-color: var(--bank-navy);
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
        }

        .task-filter-count {
            background: rgba(255, 255, 255, 0.2);
            padding: 1px 6px;
            border-radius: 10px;
            font-size: 0.65rem;
        }

        .task-filter-btn:not(.active) .task-filter-count {
            background: #CBD5E1;
            color: #0F172A;
        }

        .task-search-input {
            padding: 5px 12px;
            border: 1px solid #CBD5E1;
            border-radius: 20px;
            font-size: 0.75rem;
            outline: none;
            width: 200px;
            background: #FFFFFF;
        }

        .task-search-input:focus {
            border-color: #2563EB;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
        }

        /* Task List Items */
        .task-list-box {
            display: flex;
            flex-direction: column;
            gap: 7px;
            max-height: 420px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .task-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            background: #FFFFFF;
            border-radius: 10px;
            border: 1px solid #E2E8F0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }

        .task-row:hover {
            border-color: #CBD5E1;
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
        }

        .task-row.is-urgent {
            border-left: 3.5px solid #EF4444;
            background: #FFFBFB;
        }

        .task-row.is-done {
            opacity: 0.55;
            background: #F8FAFC;
        }

        .task-row.is-done .task-text {
            text-decoration: line-through;
            color: #64748B;
        }

        .task-checkbox {
            width: 17px;
            height: 17px;
            accent-color: #2563EB;
            cursor: pointer;
            border-radius: 4px;
        }

        .task-text {
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--bank-navy);
            line-height: 1.25;
            margin-bottom: 3px;
        }

        .task-meta-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .task-due-pill {
            font-size: 0.65rem;
            font-weight: 600;
            color: #0284C7;
            background: #F0F9FF;
            padding: 2px 7px;
            border-radius: 4px;
            border: 1px solid #BAE6FD;
        }

        .priority-high {
            background: #FEE2E2;
            color: #991B1B;
            border: 1px solid #FECACA;
            font-size: 0.65rem;
        }

        .priority-medium {
            background: #FEF3C7;
            color: #92400E;
            border: 1px solid #FDE68A;
            font-size: 0.65rem;
        }

        .priority-low {
            background: #DCFCE7;
            color: #166534;
            border: 1px solid #BBF7D0;
            font-size: 0.65rem;
        }

        .task-delete-btn {
            background: transparent;
            border: none;
            color: #94A3B8;
            font-size: 0.85rem;
            padding: 4px 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .task-delete-btn:hover {
            color: #DC2626;
            background: #FEE2E2;
        }

        /* Command Palette Modal */
        .cmd-palette-overlay {
            position: fixed;
            inset: 0;
            background: rgba(8, 13, 26, 0.75);
            backdrop-filter: blur(8px);
            z-index: 9999;
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding-top: 80px;
        }

        .cmd-palette {
            width: 580px;
            max-width: 90vw;
            background: #FFFFFF;
            border-radius: var(--radius-md);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
            overflow: hidden;
            border: 1px solid rgba(99, 102, 241, 0.3);
            animation: cmdSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

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

        .cmd-input-wrap {
            padding: 13px 18px;
            border-bottom: 1px solid var(--border-subtle);
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--bg-subtle);
        }

        .cmd-input {
            width: 100%;
            border: none;
            outline: none;
            font-size: 1rem;
            font-family: inherit;
            color: var(--text-primary);
            background: transparent;
        }

        .cmd-results {
            max-height: 400px;
            overflow-y: auto;
            padding: 8px;
            scrollbar-width: thin;
            scrollbar-color: #CBD5E1 transparent;
        }

        .cmd-results::-webkit-scrollbar {
            width: 6px;
        }

        .cmd-results::-webkit-scrollbar-thumb {
            background-color: #CBD5E1;
            border-radius: 4px;
        }

        .cmd-header-info {
            padding: 6px 16px;
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            background: #F8FAFC;
            border-bottom: 1px solid var(--border-subtle);
        }

        .cmd-item {
            padding: 9px 12px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.15s ease;
            margin-bottom: 3px;
        }

        .cmd-item:hover, .cmd-item.selected {
            background-color: rgba(var(--item-rgb, 99, 102, 241), 0.1);
        }

        .cmd-item-left {
            display: flex;
            align-items: center;
            gap: 11px;
            min-width: 0;
            flex: 1;
        }

        .cmd-item-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            flex-shrink: 0;
        }

        .cmd-item-name {
            font-weight: 600;
            color: var(--bank-navy);
            font-size: 0.865rem;
        }

        .cmd-item-file {
            font-size: 0.68rem;
            color: #64748B;
            background: #F1F5F9;
            padding: 1px 6px;
            border-radius: 4px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-weight: 500;
            border: 1px solid #E2E8F0;
        }

        .cmd-item-cat {
            font-size: 0.7rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 1px;
        }

        .cmd-footer-hints {
            padding: 8px 16px;
            background: #F8FAFC;
            border-top: 1px solid var(--border-subtle);
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 14px;
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        .cmd-footer-hints kbd {
            background: #FFFFFF;
            border: 1px solid #CBD5E1;
            border-radius: 4px;
            padding: 1px 5px;
            font-size: 0.65rem;
            font-weight: 700;
            color: var(--text-secondary);
            box-shadow: 0 1px 1px rgba(0,0,0,0.06);
        }
