        :root {
            --primary: #6366f1; --urgent: #ef4444; --work: #f59e0b; --personal: #10b981; --hobby: #ec4899;
            --bg: #0f172a; --glass: rgba(30, 41, 59, 0.6); --text: #f8fafc; --border: rgba(255,255,255,0.1);
            --high-prio: #ff4757; --med-prio: #ffa502; --archive: #64748b;
        }

        body { 
            font-family: 'Inter', sans-serif; background: radial-gradient(circle at top left, #1e1b4b, #0f172a); 
            color: var(--text); min-height: 100vh; margin: 0; padding: 10px; display: flex; flex-direction: column; align-items: center;
        }

        button {
            transition: opacity 0.2s ease;
        }
        
        button:hover {
            opacity: 0.85;
        }

        .glass { background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
        .dashboard-container { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1400px; }

        .top-row { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
        
        @media (min-width: 900px) { 
            .top-row { flex-direction: row; } 
            .top-row > div { flex: 1; display: flex; flex-direction: column; height: 350px; } 
        }

        .agenda-container { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
        #timeline { flex: 1; overflow-y: auto; margin-top: 10px; padding-right: 5px; }
        
        .calendar-wrapper { display: flex; flex-direction: column; height: 100%; }

        #calendarGrid { 
            display: grid; 
            grid-template-columns: repeat(7, 1fr); 
            grid-template-rows: auto repeat(6, 1fr);
            gap: 6px; 
            flex: 1;
        }

        .cal-weekday {
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
            opacity: 0.5;
            font-weight: 700;
            padding-bottom: 5px;
        }

        .day { 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            cursor: pointer; 
            border-radius: 8px; 
            font-size: 0.75rem; 
            font-weight: 500;
            border: 1px solid transparent; 
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            min-height: 32px;
            background: rgba(255, 255, 255, 0.03);
            position: relative;
        }
        
        .day:hover:not(.empty) { 
            background: rgba(255,255,255,0.12); 
            transform: translateY(-1px);
            border-color: rgba(255,255,255,0.1);
        }
        
        .day.empty { cursor: default; opacity: 0; pointer-events: none; }
        .has-tasks { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
        
        .has-tasks::after {
            content: '';
            position: absolute;
            bottom: 4px;
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: var(--primary);
            box-shadow: 0 0 5px var(--primary);
        }

        .active-selection { 
            background: var(--primary) !important; 
            color: white !important;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
            border-color: rgba(255,255,255,0.2) !important;
        }
        
        .is-today { border-color: var(--primary) !important; color: var(--primary); background: rgba(99, 102, 241, 0.1); }

        .history-day { 
            background: rgba(255, 255, 255, 0.03); 
            border: 1px solid var(--border); 
            border-radius: 12px; 
            padding: 12px; 
            display: flex; 
            flex-direction: column; 
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            scroll-snap-align: center;
            flex: 0 0 220px;
            min-width: 220px;
        }

        .history-day:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
        .history-day.selected-active { border-color: var(--primary); background: rgba(99, 102, 241, 0.15) !important; animation: selectionPulse 2s infinite; z-index: 5; }

        .history-task-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 90px;
            overflow-y: auto;
            padding-right: 4px;
            margin-top: 5px;
        }

        .history-task-list::-webkit-scrollbar { width: 3px; }
        .history-task-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
        .history-task-list::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.4); border-radius: 10px; }

        .history-item-pill {
            font-size: 0.65rem;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 5px 8px;
            border-radius: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .history-item-pill .h-time { color: var(--personal); font-family: monospace; font-weight: 600; margin-right: 6px; }

        @keyframes selectionPulse {
            0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
            70% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
            100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
        }

        @keyframes livePulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
        .live-indicator { font-size: 0.5rem; color: #10b981; font-weight: 900; margin-left: 4px; animation: livePulse 1.5s infinite; }

        .kanban-row { display: flex; flex-direction: column; gap: 20px; }
        @media (min-width: 900px) { .kanban-row { flex-direction: row; } .kanban-column { flex: 1; } }

        #archive-vault { position: fixed; right: -100%; top: 0; width: 100%; max-width: 350px; height: 100vh; z-index: 200; transition: 0.4s ease; padding: 25px; overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; }
        #archive-vault.open { right: 0; }

        header { display: flex; width: 100%; flex-direction: column; gap: 15px; margin-bottom: 20px; max-width: 1400px;}
        .header-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
        @media (min-width: 768px) { header { flex-direction: row; align-items: center; justify-content: space-between; } }

        .search-container { position: relative; flex: 1; min-width: 250px; display: flex; gap: 10px; }
        .search-box-wrapper { position: relative; flex: 1; }
        .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.4; pointer-events: none; }
        .search-input { width: 100%; padding: 12px 35px 12px 40px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: white; outline: none; box-sizing: border-box; transition: all 0.2s; }
        .search-input:focus { background: rgba(255,255,255,0.1); border-color: var(--primary); box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2); }
        .search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; opacity: 0.5; display: none; transition: 0.2s; font-size: 0.9rem; }
        .search-clear:hover { opacity: 1; color: var(--urgent); }

        .daily-total-display { background: rgba(99, 102, 241, 0.15); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--primary); font-family: monospace; font-weight: bold; color: #818cf8; font-size: 0.9rem; }

        .kanban-column { padding: 15px; border-radius: 16px; display: flex; flex-direction: column; height: 460px; overflow: hidden; }
        .column-header { font-size: 0.75rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; padding: 10px; background: #1e293b; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-shrink: 0; }
        .card-list { flex: 1; overflow-y: auto; padding-right: 5px; }
        
        .card { padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); position: relative; border-left: 5px solid transparent; transition: all 0.2s; margin-bottom: 10px;}
        .card.active-tracking { border-right: 4px solid #10b981; background: rgba(16, 185, 129, 0.1); }
        .card.is-done { opacity: 0.5; filter: grayscale(0.6); }

        .prio-high { border-left-color: var(--high-prio); }
        .prio-med { border-left-color: var(--med-prio); }

        .project-tag, .company-tag, .due-tag { font-size: 0.6rem; padding: 2px 6px; border-radius: 4px; display: inline-block; margin: 0 4px 4px 0; }
        .project-tag { font-weight: bold; background: var(--project-bg, rgba(255,255,255,0.1)); border: 1px solid rgba(255,255,255,0.1); }
        .company-tag { background: rgba(255,255,255,0.05); color: #94a3b8; border: 1px solid var(--border); }
        .due-tag { background: rgba(255,255,255,0.05); color: #94a3b8; }
        .due-overdue { color: var(--urgent); font-weight: bold; border: 1px solid rgba(239, 68, 68, 0.3); }

        .time-tag { font-size: 0.7rem; color: #10b981; font-weight: bold; padding: 2px; margin-top: 4px; font-family: monospace; }
        .day-work-tag { font-size: 0.7rem; color: #818cf8; opacity: 0.8;  padding: 2px; margin-top: 6px;}
        
        .card-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; max-width: 60px; flex-wrap: wrap; justify-content: flex-end; }
        .icon-btn { background: rgba(255,255,255,0.1); border: none; color: white; width: 28px; height: 28px; border-radius: 6px; padding: 6px 8px; cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; justify-content: center;}
        .icon-btn:hover { background: rgba(255,255,255,0.2); }
        .icon-btn-delete { color: #ff4d4d; }

        .cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 0 5px; }
        .cal-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: white; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; font-size: 0.8rem; }
        .cal-btn:hover { background: var(--primary); border-color: var(--primary); }
        #monthTitle { font-weight: 700; font-size: 0.85rem; color: #f8fafc; text-transform: uppercase; letter-spacing: 1px; }

        .btn { padding: 10px 16px; border: none; border-radius: 8px; background: var(--primary); color: white; cursor: pointer; font-size: 0.85rem; font-weight: 600; white-space: nowrap;}
        .btn-secondary { background: rgba(255,255,255,0.1); }
        .btn-danger { background: #b91c1c; }

        .modal-base { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1000; padding: 20px; width: 90%; max-width: 380px; box-sizing: border-box; }
        .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 999; }
        label { font-size: 0.65rem; opacity: 0.5; display: block; margin: 8px 0 4px 0; text-transform: uppercase; }
        
        input, select { 
            width: 100%; 
            padding: 12px; 
            border-radius: 8px; 
            border: 1px solid var(--border); 
            background: #1e293b; 
            color: white; 
            box-sizing: border-box; 
            outline: none;
            transition: border-color 0.2s;
            color-scheme: dark;
        }

        input:focus, select:focus {
            border-color: var(--primary);
        }

        /* Enhanced Login Styling */
        #auth-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.95); z-index: 10000; display: none; align-items: center; justify-content: center; }
        .login-card { padding: 40px; width: 100%; max-width: 360px; border: 1px solid var(--border); text-align: center; }
        .auth-toggle-link { font-size: 0.7rem; color: var(--primary); cursor: pointer; text-decoration: underline; margin-top: 15px; display: block; }
        
        /* Save Indicator Styling */
        #sync-indicator { font-size: 0.6rem; padding: 4px 8px; border-radius: 10px; background: rgba(255,255,255,0.05); transition: all 0.3s; opacity: 0.7; display: flex; align-items: center; gap: 5px; }
        .sync-active { color: #f59e0b; animation: livePulse 1s infinite; }
        .sync-success { color: #10b981; }
        .sync-offline { color: #ef4444; }

        select {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: calc(100% - 12px) center;
            padding-right: 35px;
            cursor: pointer;
        }
        
        select option {
            background-color: #1e293b;
            color: white;
            padding: 10px;
        }

        /* Customizing input element arrows */
        input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.2s;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23818cf8' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
        }
        
        input[type="date"]::-webkit-calendar-picker-indicator:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        input[type="number"]::-webkit-inner-spin-button,
        input[type="number"]::-webkit-outer-spin-button {
            opacity: 0.8;
            cursor: pointer;
            height: 24px;
            transition: opacity 0.2s;
        }

        input[type="number"]::-webkit-inner-spin-button:hover,
        input[type="number"]::-webkit-outer-spin-button:hover {
            opacity: 1;
        }
        
        #company-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; margin-top: 10px; }
        
        @keyframes revenueGlow {
            0% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2), inset 0 0 5px rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.4); }
            50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), inset 0 0 10px rgba(99, 102, 241, 0.2); border-color: var(--primary); }
            100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2), inset 0 0 5px rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.4); }
        }

        .summary-pill { 
            background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); 
            padding: 18px; border-radius: 14px; border: 1px solid var(--border); 
            transition: transform 0.2s, box-shadow 0.2s, border-color 0.5s;
            max-width: 300px;
        }
        .summary-pill:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.2); }
        
        .summary-pill.tracking-active {
            animation: revenueGlow 2s infinite ease-in-out;
            background: rgba(99, 102, 241, 0.08);
        }

        .rate-input { 
            width: 75px; height: 35px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); 
            color: #10b981; border-radius: 6px; font-size: 0.8rem; text-align: center; 
            font-weight: bold; padding: 4px;
        }
        .revenue-total-badge { 
            flex: 1; 
            min-width: 140px;
            max-width: 170px; 
            background: rgba(255,255,255,0.03); padding: 16px; border-radius: 12px; 
            border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px;
            position: relative; 
            overflow: hidden;
            transition: all 0.5s ease;
        }
        .revenue-total-badge::before {
            content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
        }
        .badge-all-time::before { background: #10b981; box-shadow: 0 0 10px #10b981; }
        .badge-monthly::before { background: #6366f1; box-shadow: 0 0 10px #6366f1; }
        
        .revenue-total-badge.tracking-active {
            animation: revenueGlow 2s infinite ease-in-out;
            background: rgba(99, 102, 241, 0.08);
        }

        .rev-val { font-size: 1.5rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }

        ::-webkit-scrollbar { width: 12px; height: 12px; }
        ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 10px; }
        ::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 10px; }

        /* EXTRACTED STYLES */
        #auth-title { color: var(--primary); margin-bottom: 5px; }
        #auth-subtitle { font-size: 0.7rem; opacity: 0.6; margin-bottom: 25px; }
        #auth-email { margin-bottom: 10px; }
        #auth-pass { margin-bottom: 20px; }
        #auth-submit { width: 100%; margin-bottom: 10px; }
        #auth-reset-btn { width: 100%; margin-bottom: 10px; }
        .auth-cancel-btn { width: 100%; }
        #auth-error { color: var(--urgent); font-size: 0.6rem; margin-top: 10px; min-height: 15px; }

        .vault-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .vault-title { margin: 0; font-size: 1.2rem; }
        #vault-list { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; margin-bottom: 20px; }
        .vault-footer { padding-top: 15px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
        .vault-actions { display: flex; gap: 8px; flex-wrap: wrap; }
        .vault-action-btn { flex: 1; font-size: 0.65rem; }
        #importFile { display: none; }
        .vault-purge-btn { width: 100%; font-size: 0.7rem; }
        .vault-item { padding: 10px; font-size: 0.7rem; }
        .vault-item-title { font-weight: bold; }
        .vault-btn-restore { font-size: 0.5rem; margin-top: 5px; margin-right: 5px; }
        .vault-btn-delete { font-size: 0.5rem; margin-top: 5px; }

        .modal-base h3 { margin-top: 0; }
        .modal-actions-mt { display: flex; gap: 10px; margin-top: 20px; }
        .modal-actions-mt15 { display: flex; gap: 10px; margin-top: 15px; }
        .modal-actions { display: flex; gap: 10px; }
        .btn-flex { flex: 1; }
        #modal-notes-text { width: 100%; height: 150px; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: #1e293b; color: white; box-sizing: border-box; outline: none; margin-bottom: 15px; resize: vertical; }
        .flex-1 { flex: 1; }
        .modal-time-inputs { display: flex; gap: 10px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; margin-top: 10px; }

        #auth-btn-main { font-size: 0.65rem; padding: 6px 12px; border: 1px solid var(--primary); }
        .header-left { display: flex; align-items: center; gap: 12px; }
        .header-title-container { display: flex; flex-direction: column; justify-content: center; align-items: center; }
        .header-logo { margin: 0; font-size: 1.4rem; color: #818cf8; }
        #timezone-selector { width: auto; font-size: 0.7rem; padding: 8px 30px 8px 12px; }
        .header-actions { display: flex; gap: 8px; }

        .cal-container { padding: 15px; display: flex; flex-direction: column; }
        .agenda-glass { padding: 15px; }
        .section-title { font-size: 0.7rem; text-transform: uppercase; margin: 0; opacity: 0.6; }
        #agenda-date-label { margin-left: 5px; color: var(--primary); }
        .archive-all-btn { background: none; border: none; color: var(--primary); font-size: 0.6rem; cursor: pointer; }

        .history-container { padding: 20px; overflow: hidden; }
        .history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
        .history-actions { display: flex; gap: 8px; }
        .history-btn { font-size: 0.6rem; padding: 4px 12px; }
        #history-grid { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 12px; padding-top: 2px; padding-bottom: 15px; scroll-behavior: smooth; min-height: 130px; width: 100%; }

        .history-day-today-style { border-color: var(--primary); background: rgba(99, 102, 241, 0.05); }
        .history-day-header { display: flex; justify-content: space-between; margin: 0 0 10px 0; font-size: 0.75rem; align-items: baseline; }
        .history-date-bold { color: var(--primary); font-weight: bold; }
        .history-date-small { opacity: 0.5; font-weight: normal; }
        .day-total-val { font-family: monospace; color: var(--primary); font-weight: 800; }
        .history-progress-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
        .history-progress-bar { height: 100%; transition: width 0.3s; width: var(--progress-width, 0%); }
        .progress-today { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
        .progress-normal { background: #64748b; box-shadow: 0 0 8px transparent; }
        .history-idle-msg { font-size: 0.6rem; opacity: 0.3; text-align: center; margin-top: 10px; }

        .revenue-container { padding: 24px; }
        .revenue-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 20px; }
        .revenue-title { font-size: 0.75rem; text-transform: uppercase; margin: 0 0 4px 0; opacity: 0.6; letter-spacing: 1px; }
        .revenue-grouping { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
        .revenue-label { margin: 0; font-size: 0.6rem; }
        #revenue-sort-mode { width: auto; padding: 4px 28px 4px 8px; font-size: 0.65rem; background-color: rgba(255,255,255,0.05); }
        .export-financials-btn { font-size: 0.7rem; color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
        .revenue-badges { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 30px; }
        .badge-header { display: flex; justify-content: space-between; align-items: center; }
        .badge-title { font-size: 0.6rem; text-transform: uppercase; opacity: 0.5; font-weight: 700; }
        #revenue-timeframe, #m-year-select { width: 95px; padding: 2px 20px 2px 5px; font-size: 0.55rem; background-color: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 4px; color: #10b981; margin-bottom: 2px; height: 20px; }
        #grand-revenue-total, #m-total-km { color: #10b981; }
        #revenue-month-select { width: 90px; padding: 2px 20px 2px 5px; font-size: 0.55rem; background-color: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 4px; color: #818cf8; margin-bottom: 2px; height: 20px; }
        #monthly-revenue-total, #m-total-deduction { color: #818cf8; }
        .breakdown-title { font-size: 0.65rem; text-transform: uppercase; opacity: 0.4; margin-bottom: 15px; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }

        .summary-pill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .group-title { font-size: 0.95rem; font-weight: 700; color: #94a3b8; }
        .rate-input-container { display: flex; align-items: center; gap: 5px; }
        .rate-label { font-size: 0.6rem; opacity: 0.4; }
        .project-group-label { font-size: 0.6rem; opacity: 0.4; }
        .summary-pill-body { display: flex; flex-direction: column; gap: 8px; }
        .summary-stat-label { font-size: 0.55rem; text-transform: uppercase; opacity: 0.5; margin-bottom: 2px; }
        .summary-stat-row { display: flex; align-items: baseline; gap: 10px; }
        .stat-val-green { font-size: 1.3rem; font-weight: 800; color: #10b981; font-family: 'JetBrains Mono', monospace; }
        .stat-time-green { font-size: 0.8rem; font-weight: 700; color: #10b981; opacity: 0.7; font-family: monospace; }
        .stat-val-purple { font-size: 1.3rem; font-weight: 800; color: #818cf8; font-family: 'JetBrains Mono', monospace; }
        .stat-time-purple { font-size: 0.8rem; font-weight: 700; color: #818cf8; opacity: 0.7; font-family: monospace; }

        .tags-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
        .task-desc { font-weight: 600; font-size: 0.85rem; padding-right: 80px; }
        .task-time-row { display: flex; align-items: center; }

        .footer-container { padding: 15px; text-align: center; margin-bottom: 20px; }
        .footer-text { font-size: 0.75rem; opacity: 0.6; margin: 0; }
        .footer-link { color: var(--primary); text-decoration: none; font-weight: 600; }
        
        /* DYNAMIC CLASS REPLACEMENTS FOR EXTRACTED HTML & JS STYLES */
        #purged-modal { max-width: 500px; width: 95%; }
        .purged-subtitle { font-size: 0.65rem; opacity: 0.7; margin-top: -10px; margin-bottom: 15px; }
        .purged-search-input { margin-bottom: 15px; width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: white; outline: none; box-sizing: border-box; }
        .purged-list-container { min-height: 500px; max-height: 500px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }

        .show-flex { display: flex !important; }
        .show-modal { display: block !important; }
        .show-overlay { display: block !important; }
        .d-none { display: none !important; }
        .show-clear { display: block !important; }

        .auth-msg-success { color: var(--personal) !important; }

        .cursor-default { cursor: default !important; }
        .cursor-grab { cursor: grab !important; }

        .vault-status-span { margin-left: 8px; font-size: 0.6rem; }
        .status-archived { color: #10b981; }
        .status-deleted { color: #ef4444; }

        .purged-task-card { background: rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
        .purged-task-title { font-size: 0.8rem; font-weight: bold; margin-bottom: 8px; }
        .purged-task-date { font-size: 0.65rem; opacity: 0.6; font-weight: normal; margin-left: 8px; }
        .purged-task-row { display: flex; gap: 8px; margin-bottom: 8px; }
        .purged-task-input { flex: 1; padding: 6px; font-size: 0.7rem; }
        .purged-task-actions-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
        .purged-task-date-input { width: 115px; padding: 6px; font-size: 0.7rem; }
        .purged-task-time-input { width: 60px; padding: 6px; font-size: 0.7rem; }
        .purged-task-unit { font-size: 0.7rem; opacity: 0.5; }
        .purged-action-btn { padding: 6px 12px; font-size: 0.65rem; }
        .purged-empty-msg { font-size: 0.8rem; opacity: 0.5; text-align: center; padding: 20px; }
        
        /* MILEAGE TRACKER STYLES */
        .mileage-container { padding: 24px; margin-bottom: 20px; min-height: 600px; height: auto; overflow-y: auto; }
        .mileage-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .mileage-layout { display: flex; flex-direction: column; gap: 20px; }
        @media (min-width: 900px) { .mileage-layout { flex-direction: row; } .mileage-form, .mileage-data { flex: 1; } }
        .mileage-form { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; border: 1px solid var(--border); }
        .m-row { display: flex; gap: 10px; }
        .align-end { align-items: flex-end; }
        .m-list { flex: 1; overflow-y: auto; max-height: 350px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-right: 5px; }
        .m-item { padding: 12px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
        .m-item-details { display: flex; flex-direction: column; gap: 4px; }
        .m-item-title { font-size: 0.8rem; font-weight: bold; }
        .m-item-meta { font-size: 0.65rem; opacity: 0.7; }
        .m-item-stats { text-align: right; display: flex; flex-direction: column; gap: 4px; }
        .m-item-km { font-family: monospace; font-weight: bold; color: var(--primary); font-size: 0.9rem; }
        .m-item-type { font-size: 0.6rem; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
        .type-business { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
        .type-personal { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
        .btn-del-trip { background: none; border: none; color: #ef4444; cursor: pointer; opacity: 0.5; transition: 0.2s; font-size: 0.8rem; padding: 4px; }
        .btn-del-trip:hover { opacity: 1; }
        .btn-edit-trip { background: none; border: none; color: #f59e0b; cursor: pointer; opacity: 0.5; transition: 0.2s; font-size: 0.8rem; padding: 4px; margin-right: 5px; }
        .btn-edit-trip:hover { opacity: 1; }

        /* AUTOCOMPLETE STYLES */
        .autocomplete-items {
            position: absolute;
            border: 1px solid var(--border);
            border-top: none;
            z-index: 99;
            top: 100%;
            left: 0;
            right: 0;
            background: #1e293b;
            border-radius: 0 0 8px 8px;
            max-height: 200px;
            overflow-y: auto;
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        }
        .autocomplete-items div {
            padding: 10px;
            cursor: pointer;
            border-bottom: 1px solid var(--border);
            font-size: 0.75rem;
            line-height: 1.4;
        }
        .autocomplete-items div:hover {
            background-color: var(--primary);
            color: white;
        }
        .autocomplete-active {
            background-color: var(--primary) !important;
            color: white !important;
        }