        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            /* Color palette */
            --mist: #F8F6F4;
            --quartz: #EDE8E2;
            --rose-ash: #D9C9BE;
            --sage: #B8BFA9;
            --sage-light: #E8EBE2;
            --moss: #6B7563;
            --cinnamon: #B67755;

            /* Grays - NOW WITH WARM TINT */
            --gray-50: #FAFAF9;
            --gray-100: #F5F5F4;
            --gray-200: #F0EFED;
            --gray-300: #E3E1DD;
            --gray-400: #C4C1BB;
            --gray-500: #A39E96;
            --gray-600: #7A756E;
            --gray-700: #625D56;
            --gray-800: #46423D;
            --gray-900: #2A2622;
            
            /* Functional colors */
            --border: var(--gray-300);
            --text-primary: var(--gray-900);
            --text-secondary: var(--gray-600);
            --text-tertiary: var(--gray-500);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            font-size: 14px;
            color: var(--text-primary);
            background: var(--gray-50);
            line-height: 1.5;
        }
        
        /* Top Bar */
        .top-bar {
            height: 60px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            padding: 0 24px;
            background: white;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo {
            font-size: 20px;
            font-weight: 700;
            color: var(--moss);
            margin-right: 32px;
        }
        
        /* Main Navigation */
        .main-nav {
            display: flex;
            gap: 4px;
            margin-right: 32px;
        }
        
        .nav-tab {
            padding: 8px 16px;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            border-radius: 6px;
            transition: all 0.2s;
        }
        
        .nav-tab:hover {
            background: var(--mist);
            color: var(--moss);
        }
        
        .nav-tab.active {
            background: var(--moss);
            color: white;
        }
        
        .search-bar {
            flex: 1;
            max-width: 400px;
            position: relative;
        }
        
        .search-bar input {
            width: 100%;
            padding: 8px 12px 8px 36px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 13px;
            background: var(--mist);
        }
        
        .search-bar input:focus {
            outline: none;
            border-color: var(--sage);
            background: white;
        }
        
        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            font-size: 14px;
        }
        
        .top-bar-actions {
            margin-left: auto;
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .btn-icon {
            width: 32px;
            height: 32px;
            border: none;
            background: none;
            cursor: pointer;
            border-radius: 4px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-icon:hover {
            background: var(--mist);
            color: var(--cinnamon);
        }
        
        /* Page Container */
        .page {
            display: none;
        }
        
        .page.active {
            display: block;
        }
        
        /* Filter Bar */
        .filter-bar {
            padding: 16px 24px;
            border-bottom: 1px solid var(--border);
            background: white;
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .filter-dropdown {
            position: relative;
        }
        
        .filter-btn {
            padding: 6px 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: white;
            cursor: pointer;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-primary);
            transition: all 0.2s;
        }

        .filter-btn:hover {
            border-color: var(--cinnamon);
            background: var(--mist);
        }
        
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.02);
            min-width: 200px;
            max-height: 400px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
        }
        
        .dropdown-menu.open {
            display: block;
        }
        
        .dropdown-item {
            padding: 8px 12px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .dropdown-item:hover {
            background: var(--mist);
        }
        
        .dropdown-item input[type="checkbox"] {
            margin: 0;
            cursor: pointer;
            accent-color: var(--moss);
        }
        
        .dropdown-divider {
            height: 1px;
            background: var(--border);
            margin: 4px 0;
        }
        
        .saved-views {
            margin-left: auto;
            display: flex;
            gap: 8px;
        }
        
        .view-pill {
            padding: 6px 12px;
            border: 1px solid var(--border);
            border-radius: 16px;
            font-size: 12px;
            background: white;
            cursor: pointer;
            color: var(--text-secondary);
            transition: all 0.2s;
        }

        .view-pill:hover {
            background: var(--sage);
            border-color: var(--sage);
            color: var(--moss);
        }
        
        .btn-primary {
            padding: 8px 16px;
            border: none;
            background: var(--moss);
            color: white;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }

        .btn-primary:hover {
            background: var(--cinnamon);
        }
        
        /* Navigation */
        .nav-container {
            padding: 24px 24px 20px;
            background: white;
            border-bottom: 1px solid var(--border);
        }

        .horizon-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }

        .horizon-row {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .horizon-selector {
            display: inline-flex;
            gap: 0;
            background: var(--gray-100);
            border-radius: 12px;
            padding: 3px;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
        }

        .concerns-filter-btn {
            padding: 10px 18px;
            background: var(--gray-100);
            border: none;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: 0.3px;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
        }

        .concerns-filter-btn:hover {
            color: var(--moss);
        }

        .horizon-btn {
            padding: 10px 18px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            border-radius: 9px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: 0.5px;
            position: relative;
        }

        .horizon-btn:hover:not(.active) {
            color: var(--moss);
        }

        .horizon-btn.active {
            background: white;
            color: var(--moss);
            box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
        }

        .period-navigator {
            display: inline-flex;
            align-items: center;
            gap: 20px;
            padding: 6px 16px;
            background: transparent;
            border-radius: 12px;
        }
        
        .nav-arrow {
            width: 32px;
            height: 32px;
            border: none;
            background: var(--gray-100);
            cursor: pointer;
            border-radius: 8px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600;
        }

        .nav-arrow:hover {
            background: var(--moss);
            color: white;
            transform: scale(1.05);
        }

        .nav-arrow:active {
            transform: scale(0.95);
        }

        .period-label {
            font-size: 15px;
            font-weight: 600;
            color: var(--moss);
            min-width: 180px;
            text-align: center;
            letter-spacing: 0.3px;
        }

        /* View Mode Toggle */
        .view-mode-toggle {
            display: inline-flex;
            background: var(--gray-100);
            border-radius: 8px;
            padding: 3px;
            gap: 2px;
        }

        .view-mode-btn {
            padding: 6px 16px;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 500;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .view-mode-btn:hover {
            color: var(--text-primary);
        }

        .view-mode-btn.active {
            background: white;
            color: var(--moss);
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        /* Three Panel Layout (for Horizons page) */
        .three-panel-container {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            gap: 0;
            height: calc(100vh - 180px);
            overflow: hidden;
            transition: opacity 0.15s ease-in-out;
        }

        .three-panel-container.transitioning {
            opacity: 0.5;
        }
        
        .panel {
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            border-right: 1px solid var(--border);
        }
        
        .panel:last-child {
            border-right: none;
        }
        
        .panel.context-left {
            background: var(--quartz);
        }
        
        .panel.center {
            background: var(--mist);
            box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
        }
        
        .panel.context-right {
            background: var(--sage-light);
        }
        
        .panel-header {
            padding: 20px 16px;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .context-left .panel-header {
            background: var(--quartz);
        }
        
        .center .panel-header {
            background: var(--mist);
        }

        .context-right .panel-header {
            background: var(--sage-light);
        }
        
        .panel-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--moss);
            margin-bottom: 4px;
        }
        
        .panel-subtitle {
            font-size: 12px;
            color: var(--text-secondary);
        }
        
        .panel-content {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
        }
        
        /* Single Column Layout (for other pages) */
        .single-column-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 24px;
            background: var(--mist);
            min-height: calc(100vh - 136px);
        }
        
        .page-header {
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }
        
        .page-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--moss);
            margin-bottom: 8px;
        }
        
        .page-description {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }
        
        /* Tree View */
        .tree-item {
            border-bottom: 1px solid rgba(0,0,0,0.04);
        }
        
        .tree-item:last-child {
            border-bottom: none;
        }
        
        .tree-node {
            display: flex;
            align-items: flex-start;
            padding: 8px 8px;
            cursor: pointer;
            transition: background 0.15s;
            border-radius: 6px;
            border-left: 3px solid transparent;
            margin: 2px 0;
        }

        .tree-node:hover {
            background: rgba(182, 119, 85, 0.08);
            border-left-color: var(--cinnamon);
        }

        .tree-node.active {
            background: rgba(184, 191, 169, 0.12);
            border-left-color: var(--moss);
        }
        
        .tree-expand {
            width: 18px;
            height: 18px;
            border: none;
            background: none;
            cursor: pointer;
            color: var(--text-tertiary);
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .tree-expand.collapsed::before {
            content: '›';
        }
        
        .tree-expand.expanded::before {
            content: '⌄';
        }
        
        .tree-expand.leaf {
            opacity: 0;
        }

        /* Action buttons for time mapping */
        .action-btn {
            padding: 2px 6px;
            font-size: 11px;
            border: 1px solid;
            border-radius: 4px;
            background: white;
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 500;
            margin-left: 4px;
        }

        .add-btn {
            border-color: var(--moss);
            color: var(--moss);
        }

        .add-btn:hover {
            background: var(--moss);
            color: white;
        }

        .remove-btn {
            border-color: #d32f2f;
            color: #d32f2f;
        }

        .remove-btn:hover {
            background: #d32f2f;
            color: white;
        }

        .tree-content {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .tree-label {
            font-size: 13px;
            color: var(--text-primary);
            font-weight: 500;
            display: inline;
            margin-bottom: 0;
        }

        .tree-meta {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            flex-wrap: wrap;
        }
        
        .tree-children {
            padding-left: 20px;
        }
        
        .tree-children.hidden {
            display: none;
        }
        
        /* Tree depth styling */
        .tree-item.depth-0 .tree-label {
            font-size: 15px;
            font-weight: 600;
            color: var(--moss);
        }
        
        .tree-item.depth-1 .tree-label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }
        
        .tree-item.depth-2 .tree-label {
            font-size: 13px;
            font-weight: 500;
        }
        
        .tree-item.depth-3 .tree-label {
            font-size: 12px;
            font-weight: 400;
        }
        
        .tree-item.depth-4 .tree-label,
        .tree-item.depth-5 .tree-label,
        .tree-item.depth-6 .tree-label,
        .tree-item.depth-7 .tree-label,
        .tree-item.depth-8 .tree-label,
        .tree-item.depth-9 .tree-label {
            font-size: 12px;
            font-weight: 400;
            color: var(--text-secondary);
        }
        
        /* Badges */
        .type-badge {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .type-project {
            background: var(--moss);
            color: white;
        }

        .type-process {
            background: var(--cinnamon);
            color: white;
        }

        .type-orphan {
            background: var(--rose-ash);
            color: #5a3f34;
        }
        
        .type-book {
            background: #E8D5B7;
            color: #654321;
        }
        
        .type-website {
            background: #B8E8D5;
            color: #1a5c4a;
        }
        
        .type-influencer {
            background: #D5B8E8;
            color: #4a1a5c;
        }
        
        .type-course {
            background: #E8B8C3;
            color: #5c1a2a;
        }
        
        .status-badge {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }
        
        .status-active {
            background: var(--sage);
            color: #3d4a34;
        }
        
        .status-completed {
            background: var(--gray-300);
            color: var(--gray-700);
        }
        
        .status-paused {
            background: var(--cinnamon);
            color: white;
        }
        
        .status-inactive {
            background: var(--gray-200);
            color: var(--gray-600);
        }
        
        .progress-indicator {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .progress-bar {
            width: 40px;
            height: 4px;
            background: var(--gray-200);
            border-radius: 2px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--cinnamon);
            transition: width 0.3s ease;
        }
        
        .rollup-link {
            font-size: 10px;
            color: var(--cinnamon);
            text-decoration: none;
            font-weight: 500;
        }
        
        .rollup-link:hover {
            text-decoration: underline;
        }
        
        .item-count {
            font-size: 10px;
            color: var(--text-tertiary);
            background: rgba(0,0,0,0.06);
            padding: 2px 6px;
            border-radius: 10px;
            font-weight: 600;
        }
        
        .horizon-badge {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
            background: var(--quartz);
            color: var(--text-secondary);
            letter-spacing: 0.3px;
        }
        
        .concern-link {
            font-size: 10px;
            color: var(--moss);
            text-decoration: none;
            font-weight: 500;
        }

        .concern-link:hover {
            text-decoration: underline;
            color: var(--cinnamon);
        }

        .source-link {
            font-size: 10px;
            color: var(--sage);
            text-decoration: none;
            font-weight: 500;
        }

        .source-link:hover {
            text-decoration: underline;
            color: var(--cinnamon);
        }
        
        .orphan-section {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed var(--border);
        }
        
        .orphan-section-title {
            font-size: 11px;
            font-weight: 600;
            color: var(--moss);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 8px;
            padding: 0 8px;
        }
        
        .empty-state {
            text-align: center;
            padding: 48px 24px;
            color: var(--text-secondary);
        }
        
        .empty-state-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.3;
        }
        
        .empty-state-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }
        
        .empty-state-description {
            font-size: 14px;
            line-height: 1.6;
        }

        /* Bottom Navigation (Mobile) */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 64px;
            background: white;
            border-top: 1px solid var(--border);
            z-index: 1000;
            box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
        }

        .bottom-nav-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: 100%;
            max-width: 600px;
            margin: 0 auto;
        }

        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            height: 100%;
            border: none;
            background: none;
            cursor: pointer;
            color: var(--text-tertiary);
            transition: all 0.2s;
            font-size: 10px;
            font-weight: 500;
            padding: 8px 4px;
        }

        .bottom-nav-item:active {
            background: var(--mist);
        }

        .bottom-nav-item.active {
            color: var(--moss);
        }

        .bottom-nav-icon {
            font-size: 20px;
            margin-bottom: 4px;
        }

        /* Mobile Responsive Styles */
        @media (max-width: 768px) {
            /* Top Bar Adjustments */
            .top-bar {
                padding: 0 12px;
                height: 56px;
            }

            .logo {
                font-size: 18px;
                margin-right: 12px;
            }

            /* Hide desktop navigation */
            .main-nav {
                display: none;
            }

            /* Hide search bar on small screens */
            .search-bar {
                display: none;
            }

            /* Adjust top bar actions */
            .top-bar-actions {
                gap: 8px;
            }

            .btn-icon {
                width: 36px;
                height: 36px;
            }

            /* Show bottom navigation */
            .bottom-nav {
                display: block;
            }

            /* Add padding to pages for bottom nav */
            .page {
                padding-bottom: 64px;
            }

            /* Navigation Container */
            .nav-container {
                padding: 16px 12px;
            }

            /* Horizon Controls */
            .horizon-controls {
                gap: 12px;
            }

            .horizon-row {
                flex-direction: column;
                gap: 12px;
                width: 100%;
            }

            /* Make horizon selector scrollable */
            .horizon-selector {
                width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                padding: 3px;
                justify-content: flex-start;
            }

            .horizon-selector::-webkit-scrollbar {
                display: none;
            }

            .horizon-btn {
                padding: 10px 14px;
                font-size: 11px;
                white-space: nowrap;
                flex-shrink: 0;
            }

            /* Concerns filter button full width */
            .concerns-filter-btn {
                width: 100%;
                justify-content: center;
            }

            /* Period Navigator */
            .period-navigator {
                gap: 12px;
                padding: 6px 12px;
            }

            .period-label {
                font-size: 14px;
                min-width: 140px;
            }

            .nav-arrow {
                width: 36px;
                height: 36px;
            }

            /* View Mode Toggle */
            .view-mode-toggle {
                padding: 2px;
            }

            .view-mode-btn {
                padding: 6px 12px;
                font-size: 12px;
            }

            /* Three Panel Layout - Show only center panel */
            .three-panel-container {
                grid-template-columns: 1fr;
                height: calc(100vh - 56px - 130px - 64px); /* top-bar - nav-container - bottom-nav */
            }

            .panel.context-left,
            .panel.context-right {
                display: none !important;
            }

            .panel.center {
                border-right: none;
            }

            /* Panel Headers - Hide on mobile since period navigator shows same info */
            .panel-header {
                display: none;
            }

            .panel-content {
                padding: 12px;
            }

            /* Filter Bar */
            .filter-bar {
                padding: 12px;
                flex-wrap: wrap;
                gap: 8px;
            }

            .filter-dropdown {
                flex: 1;
                min-width: 140px;
            }

            .filter-btn {
                width: 100%;
                justify-content: space-between;
            }

            .saved-views {
                width: 100%;
                margin-left: 0;
            }

            .btn-primary {
                width: 100%;
                justify-content: center;
            }

            /* Single Column Container */
            .single-column-container {
                padding: 16px 12px;
                min-height: calc(100vh - 200px);
            }

            .page-header {
                margin-bottom: 20px;
                padding-bottom: 12px;
            }

            .page-title {
                font-size: 20px;
            }

            .page-description {
                font-size: 13px;
            }

            /* Tree View */
            .tree-node {
                padding: 8px 6px;
            }

            .tree-children {
                padding-left: 16px;
            }

            .tree-label {
                font-size: 13px;
            }

            .tree-meta {
                font-size: 10px;
            }

            /* Badges */
            .type-badge,
            .status-badge {
                padding: 2px 6px;
                font-size: 10px;
            }

            .horizon-badge {
                font-size: 9px;
            }

            /* Dropdown Menu */
            .dropdown-menu {
                left: 0;
                right: 0;
                width: auto;
                min-width: auto;
            }
        }

        @media (max-width: 480px) {
            /* Extra small screens */
            .logo {
                font-size: 16px;
            }

            .top-bar {
                padding: 0 8px;
            }

            .nav-container {
                padding: 12px 8px;
            }

            .horizon-btn {
                padding: 8px 12px;
                font-size: 10px;
            }

            .period-label {
                font-size: 13px;
                min-width: 120px;
            }

            .panel-header {
                padding: 14px 10px;
            }

            .panel-title {
                font-size: 16px;
            }

            .panel-content {
                padding: 10px;
            }

            .single-column-container {
                padding: 12px 8px;
            }

            .filter-bar {
                padding: 10px 8px;
            }

            .bottom-nav-item {
                font-size: 9px;
            }

            .bottom-nav-icon {
                font-size: 18px;
            }
        }

        /* Time Budget Page Styles */
        .time-budget-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-bottom: 24px;
        }

        .budget-section,
        .tracking-section,
        .comparison-section {
            background: white;
            border-radius: 12px;
            padding: 24px;
            border: 1px solid var(--border);
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        .comparison-section {
            grid-column: 1 / -1;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }

        .section-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--moss);
        }

        .section-subtitle {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        /* Budget List */
        .budget-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .budget-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .budget-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .budget-item-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .budget-item-input {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .budget-item-input input {
            width: 60px;
            padding: 4px 8px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 13px;
            text-align: center;
            background: var(--mist);
        }

        .budget-item-input input:focus {
            outline: none;
            border-color: var(--moss);
            background: white;
        }

        .budget-item-input span {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .budget-item-bar {
            height: 8px;
            background: var(--gray-200);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .budget-item-fill {
            height: 100%;
            background: var(--moss);
            transition: width 0.3s ease;
        }

        .budget-item-fill.over-budget {
            background: #d32f2f;
        }

        .budget-summary {
            margin-top: 20px;
            padding: 16px;
            background: var(--mist);
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        .budget-summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .budget-summary-row:last-child {
            margin-bottom: 0;
            padding-top: 8px;
            border-top: 1px solid var(--border);
            font-weight: 700;
        }

        .budget-summary-label {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .budget-summary-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .budget-summary-value.available {
            color: var(--moss);
        }

        .budget-summary-value.over {
            color: #d32f2f;
        }

        /* Time Tracking */
        .time-log-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-height: 400px;
            overflow-y: auto;
        }

        .time-log-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            background: var(--mist);
            border-radius: 8px;
            border: 1px solid var(--border);
            transition: all 0.2s;
        }

        .time-log-item:hover {
            background: white;
            border-color: var(--moss);
        }

        .time-log-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .time-log-concern {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .time-log-meta {
            display: flex;
            gap: 12px;
            align-items: center;
            font-size: 11px;
            color: var(--text-secondary);
        }

        .time-log-hours {
            font-weight: 600;
            color: var(--moss);
        }

        .time-log-notes {
            font-size: 11px;
            color: var(--text-tertiary);
            margin-top: 4px;
            font-style: italic;
        }

        .time-log-delete {
            padding: 6px 10px;
            border: 1px solid var(--border);
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-size: 11px;
            color: var(--text-secondary);
            transition: all 0.2s;
        }

        .time-log-delete:hover {
            border-color: #d32f2f;
            color: #d32f2f;
            background: #ffebee;
        }

        .time-log-empty {
            text-align: center;
            padding: 48px 24px;
            color: var(--text-secondary);
        }

        .time-log-empty-icon {
            font-size: 48px;
            margin-bottom: 12px;
            opacity: 0.3;
        }

        .time-log-empty-text {
            font-size: 14px;
        }

        /* Comparison Chart */
        .comparison-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .comparison-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .comparison-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .comparison-item-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .comparison-item-values {
            display: flex;
            gap: 16px;
            font-size: 12px;
        }

        .comparison-value {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .comparison-value-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .comparison-value-dot.budgeted {
            background: var(--moss);
        }

        .comparison-value-dot.actual {
            background: var(--cinnamon);
        }

        .comparison-value-label {
            color: var(--text-tertiary);
        }

        .comparison-value-number {
            font-weight: 600;
            color: var(--text-primary);
        }

        .comparison-variance {
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 4px;
        }

        .comparison-variance.under {
            background: var(--sage-light);
            color: var(--moss);
        }

        .comparison-variance.over {
            background: #ffebee;
            color: #d32f2f;
        }

        .comparison-variance.on-track {
            background: var(--quartz);
            color: var(--text-secondary);
        }

        .comparison-bars {
            display: flex;
            gap: 8px;
            height: 24px;
        }

        .comparison-bar {
            height: 100%;
            border-radius: 4px;
            position: relative;
            transition: all 0.3s ease;
        }

        .comparison-bar.budgeted {
            background: var(--moss);
            opacity: 0.3;
        }

        .comparison-bar.actual {
            background: var(--cinnamon);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal.open {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 32px;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(0,0,0,0.16);
        }

        .modal-header {
            margin-bottom: 24px;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--moss);
            margin-bottom: 8px;
        }

        .modal-subtitle {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .modal-body {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .form-input,
        .form-select,
        .form-textarea {
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            background: var(--mist);
            transition: all 0.2s;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--moss);
            background: white;
        }

        .form-textarea {
            min-height: 80px;
            resize: vertical;
        }

        .form-hint {
            font-size: 11px;
            color: var(--text-tertiary);
            margin-top: 4px;
        }

        .modal-footer {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
        }

        .primary-btn {
            padding: 10px 20px;
            border: none;
            background: var(--moss);
            color: white;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .primary-btn:hover {
            background: var(--cinnamon);
        }

        .secondary-btn {
            padding: 10px 20px;
            border: 1px solid var(--border);
            background: white;
            color: var(--text-primary);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .secondary-btn:hover {
            background: var(--mist);
            border-color: var(--moss);
        }

        /* Time Budget Mobile Responsive */
        @media (max-width: 768px) {
            .time-budget-container {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .budget-section,
            .tracking-section,
            .comparison-section {
                padding: 16px;
            }

            .section-title {
                font-size: 16px;
            }

            .modal-content {
                padding: 24px 16px;
            }

            .modal-title {
                font-size: 18px;
            }

            .comparison-bars {
                height: 20px;
            }
        }

        @media (max-width: 480px) {
            .budget-section,
            .tracking-section,
            .comparison-section {
                padding: 12px;
            }

            .section-title {
                font-size: 15px;
            }

            .budget-item-input input {
                width: 50px;
            }

            .modal-content {
                padding: 20px 12px;
            }

            .modal-footer {
                flex-direction: column-reverse;
            }

            .primary-btn,
            .secondary-btn {
                width: 100%;
            }
        }
