            
            .mobile-task-card.swiping {
                transition: none;
            }
            
            .swipe-action-bg {
                position: absolute;
                top: 0;
                bottom: 0;
                width: 100%;
                display: flex;
                align-items: center;
                padding: 0 1.5rem;
                font-weight: 600;
                font-size: 0.9rem;
                opacity: 0;
                transition: opacity 0.2s;
            }
            
            .swipe-action-bg.left {
                left: 0;
                background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
                color: white;
                justify-content: flex-start;
            }
            
            .swipe-action-bg.right {
                right: 0;
                background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
                color: white;
                justify-content: flex-end;
            }
            
            .swipe-action-bg.visible {
                opacity: 1;
            }
            
            .mobile-task-content {
                position: relative;
                z-index: 1;
            }
            
            /* Swipe hint animation */
            @keyframes swipeHint {
                0%, 100% { transform: translateX(0); }
                50% { transform: translateX(10px); }
            }
            
            .mobile-task-card.hint-swipe {
                animation: swipeHint 0.5s ease-in-out;
            }
            
            /* Mobile filter button */
            .mobile-filter-bar {
                display: flex;
                gap: 0.35rem;
                padding: 0.4rem 0.75rem;
                background: white;
                border-radius: 0;
                margin: 0 -0.5rem 0.25rem;
                box-shadow: none;
                border-bottom: 1px solid #f3f4f6;
            }
            
            .mobile-filter-btn {
                flex: 0 0 auto;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.3rem;
                padding: 0.45rem 0.5rem;
                background: #f5f5f5;
                border: none;
                border-radius: 8px;
                font-size: 0.78rem;
                font-weight: 500;
                color: #555;
                cursor: pointer;
                min-height: 36px;
                transition: all 0.15s ease;
                -webkit-tap-highlight-color: transparent;
            }
            
            .mobile-filter-btn.active {
                background: var(--success);
                color: white;
            }
            
            .mobile-filter-btn .filter-count {
                background: var(--success);
                color: white;
                font-size: 0.7rem;
                padding: 0.15rem 0.4rem;
                border-radius: 10px;
                font-weight: 600;
            }
            
            .mobile-filter-btn.active .filter-count {
                background: white;
                color: var(--success);
            }
            
            /* Hide desktop filters on mobile */
            .filters-row { display: none !important; }
            .controls-row .btn:not(.btn-success) { display: none; }
            
            /* Date group headers */
            .date-group-header {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                padding: 0.75rem 0.5rem;
                font-weight: 600;
                font-size: 0.85rem;
                color: #555;
                border-bottom: 2px solid #eee;
                margin-top: 0.5rem;
            }
            
            .date-group-header:first-child {
                margin-top: 0;
            }
            
            .date-group-header .date-label {
                flex: 1;
            }
            
            .date-group-header .task-count {
                background: #f0f0f0;
                padding: 0.2rem 0.6rem;
                border-radius: 10px;
                font-size: 0.75rem;
                color: #888;
            }
            
            .date-group-header.overdue {
                color: #e74c3c;
                border-bottom-color: #ffcccc;
            }
            
            .date-group-header.today {
                color: #f39c12;
                border-bottom-color: #ffe5b4;
            }
            
            .date-group-header.tomorrow {
                color: #3498db;
                border-bottom-color: #cce5ff;
            }
            
            /* Filter modal */
            .filter-modal-content {
                padding: 0;
                max-height: 80vh;
                overflow-y: auto;
            }
            
            .filter-modal-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 1rem;
                border-bottom: 1px solid #eee;
                position: sticky;
                top: 0;
                background: white;
                z-index: 10;
            }
            
            .filter-modal-header h3 {
                margin: 0;
                font-size: 1.1rem;
            }
            
            .filter-section {
                padding: 1rem;
                border-bottom: 1px solid #f0f0f0;
            }
            
            .filter-section:last-child {
                border-bottom: none;
            }
            
            .filter-section-title {
                font-weight: 600;
                font-size: 0.85rem;
                color: #888;
                margin-bottom: 0.75rem;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            
            .filter-chips {
                display: flex;
                flex-wrap: wrap;
                gap: 0.5rem;
            }
            
            .filter-chip {
                padding: 0.5rem 1rem;
                background: #f5f5f5;
                border: 2px solid transparent;
                border-radius: 20px;
                font-size: 0.85rem;
                cursor: pointer;
                transition: all 0.2s;
            }
            
            .filter-chip.selected {
                background: #e8f5e9;
                border-color: var(--success);
                color: var(--success);
                font-weight: 500;
            }
            
            .filter-modal-footer {
                display: flex;
                gap: 0.75rem;
                padding: 1rem;
                border-top: 1px solid #eee;
                position: sticky;
                bottom: 0;
                background: white;
            }
            
            .filter-modal-footer .btn {
                flex: 1;
            }
        }
        
        @media (max-width: 400px) {
            .header-ai-btn span { display: none; }
            .header-ai-btn { padding: 0.4rem; font-size: 0.9rem; }
            .support-btn span { display: none; }
            .support-btn { padding: 14px; border-radius: 50%; font-size: 18px; }
        }
        
        .assignee-checkbox {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            background: #f0f0f0;
            padding: 0.3rem 0.5rem;
            border-radius: 15px;
            font-size: 0.8rem;
            cursor: pointer;
        }
        
        .assignee-checkbox:hover { background: #e0e0e0; }
        .assignee-checkbox input { width: 14px; height: 14px; cursor: pointer; }
        
        .company-badge {
            background: rgba(255,255,255,0.3);
            padding: 0.2rem 0.5rem;
            border-radius: 10px;
            font-size: 0.7rem;
            margin-left: 0.5rem;
        }
        
        .password-toggle {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
            color: var(--gray);
        }
        
        .input-wrapper {
            position: relative;
        }
        
        .no-access-card {
            text-align: center;
            padding: 2rem;
        }
        
        .no-access-card h3 {
            color: var(--danger);
            margin-bottom: 1rem;
        }
        
        .no-access-card p {
            color: var(--gray);
            margin-bottom: 1.5rem;
            line-height: 1.5;
        }
        
        /* ===================== */
        /* CALENDAR VIEW STYLES  */
        /* ===================== */
        
        .calendar-view-switcher {
            display: flex;
            gap: 0.25rem;
            background: #e5e7eb;
            padding: 0.25rem;
            border-radius: 8px;
            margin-right: 1rem;
        }
        
        .calendar-view-btn {
            padding: 0.4rem 0.8rem;
            border: none;
            background: transparent;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            color: var(--gray);
            transition: all 0.2s;
        }
        
        .calendar-view-btn:hover {
            color: var(--dark);
        }
        
        .calendar-view-btn.active {
            background: white;
            color: var(--dark);
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        /* ── Уніфікований Page Toolbar ─────────────────────────── */
        .page-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.75rem;
            padding: 0.65rem 1rem;
            background: white;
            border-radius: 12px;
            margin-bottom: 1rem;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            border: 1px solid #f0f0f0;
        }
        .page-toolbar-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            min-width: 0;
        }
        .page-toolbar-right {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .page-toolbar-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        /* Сегмент кнопок (як у Завданнях) */
        .btn-segment {
            display: flex;
            background: #f3f4f6;
            border-radius: 8px;
            padding: 3px;
            gap: 1px;
        }
        .btn-segment .calendar-view-btn {
            border-radius: 6px;
            font-size: 0.82rem;
            padding: 0.3rem 0.75rem;
        }
        /* Кнопка "Як це працює" — уніфікована */
        .btn-howto {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.38rem 0.85rem;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            background: white;
            color: #6b7280;
            font-size: 0.82rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
        }
        .btn-howto:hover {
            background: #f0f9ff;
            color: #0369a1;
            border-color: #bae6fd;
        }
        /* Кнопка AI — уніфікована */
        .btn-ai {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.38rem 0.85rem;
            border-radius: 8px;
            border: none;
            background: linear-gradient(135deg, #8b5cf6, #6366f1);
            color: white;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s;
        }
        .btn-ai:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }


        
        .calendar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            padding: 1rem;
            background: white;
            border-radius: 12px;
            margin-bottom: 1rem;
            box-shadow: var(--shadow);
        }
        
        .calendar-nav {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .calendar-nav-btn {
            width: 36px;
            height: 36px;
            border: 1px solid #e5e7eb;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .calendar-nav-btn:hover {
            background: #f3f4f6;
        }
        
        .calendar-title {
            font-size: 1.25rem;
            font-weight: 600;
            min-width: 120px;
            flex: 1;
        }
        
        .calendar-today-btn {
            padding: 0.5rem 1rem;
            border: 1px solid #e5e7eb;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.2s;
        }
        
        .calendar-today-btn:hover {
            background: #f3f4f6;
        }
        
        /* Day View */
        .calendar-day-view {
            background: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }
        
        .calendar-day-header {
            display: flex;
            border-bottom: 1px solid #e5e7eb;
            background: #f9fafb;
        }
        
        .calendar-time-gutter {
            width: 60px;
            flex-shrink: 0;
            border-right: 1px solid #e5e7eb;
        }
        
        .calendar-day-column-header {
            flex: 1;
            padding: 0.75rem;
            text-align: center;
            font-weight: 500;
        }
        
        .calendar-day-column-header .day-name {
            font-size: 0.75rem;
            color: var(--gray);
            text-transform: uppercase;
        }
        
        .calendar-day-column-header .day-number {
            font-size: 1.5rem;
            font-weight: 600;
            margin-top: 0.25rem;
        }
        
        .calendar-day-column-header.today .day-number {
            background: var(--primary);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .calendar-day-body {
            display: flex;
            position: relative;
            max-height: calc(100vh - 300px);
            overflow-y: auto;
        }
        
        .calendar-time-slots {
            width: 60px;
            flex-shrink: 0;
            border-right: 1px solid #e5e7eb;
        }
        
        .calendar-time-slot {
            height: 60px;
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
            color: var(--gray);
            text-align: right;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .calendar-events-container {
            flex: 1;
            position: relative;
        }
        
        .calendar-hour-row {
            height: 60px;
            border-bottom: 1px solid #f3f4f6;
            position: relative;
        }
        
        .calendar-hour-row:hover {
            background: rgba(102, 126, 234, 0.08);
        }
        
        /* Hint on hover - desktop only */
        @media (min-width: 768px) {
            .calendar-hour-row:hover::after {
                content: '+ Додати';
                position: absolute;
                right: 8px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 0.75rem;
                color: var(--primary);
                opacity: 0.7;
                pointer-events: none;
            }
        }
        
        .calendar-event {
            position: absolute;
            left: 4px;
            right: 4px;
            border-radius: 6px;
            padding: 0.35rem 0.5rem;
            font-size: 0.8rem;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 1;
            border-left: 3px solid;
        }
        
        .calendar-event:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 2;
        }
        
        .calendar-event.status-new {
            background: #dbeafe;
            border-color: #3b82f6;
            color: #1e40af;
        }
        
        .calendar-event.status-progress {
            background: #fef3c7;
            border-color: #f59e0b;
            color: #92400e;
        }
        
        .calendar-event.status-review {
            background: #e0e7ff;
            border-color: #6366f1;
            color: #3730a3;
        }
        
        .calendar-event.status-done {
            background: #d1fae5;
            border-color: #10b981;
            color: #065f46;
            opacity: 0.7;
        }
        
        .calendar-event-title {
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .calendar-event-time {
            font-size: 0.7rem;
            opacity: 0.8;
            margin-top: 2px;
        }
        
        .calendar-event-done-mark {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 16px;
            height: 16px;
            background: #10b981;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .calendar-event-done-mark svg {
            width: 10px;
            height: 10px;
            color: white;
        }
        
        /* Mobile Week Strip (Google Calendar Style) */
        .mobile-week-strip {
            display: none;
        }
        
        @media (max-width: 767px) {
            .mobile-week-strip {
                display: block;
                background: white;
                padding: 12px 0 8px;
                margin: 0 -0.5rem;
                border-bottom: 1px solid #e5e7eb;
            }
            
            .week-strip-days {
                display: flex;
                justify-content: space-around;
                padding: 0 8px;
            }
            
            .week-strip-day {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 4px;
                border-radius: 16px;
                cursor: pointer;
                min-width: 40px;
                transition: all 0.15s ease;
                -webkit-tap-highlight-color: transparent;
            }
            
            .week-strip-day:active {
                transform: scale(0.92);
                background: rgba(0,0,0,0.05);
            }
            
            .week-strip-day .day-label {
                font-size: 0.65rem;
                color: #8e8e93;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                margin-bottom: 6px;
            }
            
            .week-strip-day .day-num {
                width: 34px;
                height: 34px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.1rem;
                font-weight: 400;
                border-radius: 50%;
                color: #1c1c1e;
                position: relative;
                transition: all 0.2s ease;
            }
            
            .week-strip-day.today .day-label {
                color: #007aff;
            }
            
            .week-strip-day.today .day-num {
                background: #007aff;
                color: white;
                font-weight: 500;
            }
            
            .week-strip-day.selected:not(.today) .day-num {
                background: rgba(0, 122, 255, 0.12);
                color: #007aff;
                font-weight: 500;
            }
            
            .week-strip-day.today.selected .day-num {
                box-shadow: none;
            }
            
            /* Task dots under day number - Apple style */
            .week-strip-day .task-dots {
                display: flex;
                gap: 3px;
                margin-top: 6px;
                min-height: 6px;
                justify-content: center;
            }
            
            .week-strip-day .task-dot {
                width: 5px;
                height: 5px;
                border-radius: 50%;
                background: #c7c7cc;
            }
            
            .week-strip-day .task-dot.status-new { background: #007aff; }
            .week-strip-day .task-dot.status-progress { background: #ff9500; }
            .week-strip-day .task-dot.status-review { background: #af52de; }
            .week-strip-day .task-dot.status-done { background: #34c759; }
        }
        
        /* Task Quick Menu / Bottom Sheet */
        .task-quick-menu {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            z-index: 10000;
            min-width: 180px;
            overflow: hidden;
            animation: fadeInMenu 0.15s ease;
        }
        
        @keyframes fadeInMenu {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Mobile Bottom Sheet */
        @media (max-width: 767px) {
            .task-quick-menu {
                position: fixed !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                top: auto !important;
                max-width: 100%;
                min-width: 100%;
                border-radius: 20px 20px 0 0;
                box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
                animation: slideUpSheet 0.25s ease-out;
                padding-bottom: env(safe-area-inset-bottom);
            }
            
            @keyframes slideUpSheet {
                from { transform: translateY(100%); }
                to { transform: translateY(0); }
            }
            
            .task-bottom-sheet-overlay {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0,0,0,0.4);
                z-index: 9999;
                animation: fadeIn 0.2s ease;
            }
            
            @keyframes fadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            
            .task-quick-menu::before {
                content: '';
                display: block;
                width: 40px;
                height: 4px;
                background: #ddd;
                border-radius: 2px;
                margin: 12px auto 8px;
            }
            
            .task-quick-menu-header {
                padding: 12px 20px 16px;
                font-size: 1.1rem;
                max-width: 100%;
                border-bottom: 1px solid #f0f0f0;
            }
            
            .task-quick-menu-item {
                padding: 16px 20px;
                font-size: 1rem;
            }
            
            .task-quick-menu-item svg {
                width: 22px;
                height: 22px;
            }
        }
        
        .task-quick-menu-header {
            padding: 12px 16px;
            font-weight: 600;
            font-size: 0.9rem;
            background: #f9fafb;
            border-bottom: 1px solid #e5e7eb;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
        }
        
        .task-quick-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background 0.15s;
        }
        
        .task-quick-menu-item:hover {
            background: #f3f4f6;
        }
        
        .task-quick-menu-item.complete {
            color: #059669;
        }
        
        .task-quick-menu-item.complete:hover {
            background: #ecfdf5;
        }
        
        .task-quick-menu-item.delete {
            color: #dc2626;
        }
        
        .task-quick-menu-item.delete:hover {
            background: #fef2f2;
        }
        
        .task-quick-menu-item svg {
            flex-shrink: 0;
        }
        
        /* Drag & Drop */
        .calendar-hour-row {
            cursor: pointer;
            transition: background 0.15s;
        }
        
        .calendar-hour-row:hover {
            background: rgba(102, 126, 234, 0.05);
        }
        
        .calendar-hour-row.drag-over {
            background: rgba(102, 126, 234, 0.15);
            box-shadow: inset 0 0 0 2px var(--primary);
        }
        
        .calendar-event[draggable="true"] {
            cursor: grab;
        }
        
        .calendar-event[draggable="true"]:active {
            cursor: grabbing;
        }
        
        /* Week View */
        .calendar-week-view {
            background: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }
        
        .calendar-week-header {
            display: flex;
            border-bottom: 1px solid #e5e7eb;
            background: #f9fafb;
        }
        
        .calendar-week-day-header {
            flex: 1;
            padding: 0.5rem;
            text-align: center;
            border-right: 1px solid #e5e7eb;
            min-width: 0;
        }
        
        .calendar-week-day-header:last-child {
            border-right: none;
        }
        
        .calendar-week-body {
            display: flex;
            max-height: calc(100vh - 300px);
            overflow-y: auto;
        }
        
        .calendar-week-day-column {
            flex: 1;
            border-right: 1px solid #e5e7eb;
            position: relative;
            min-width: 0;
        }
        
        .calendar-week-day-column:last-child {
            border-right: none;
        }
        
        .calendar-week-event {
            margin: 2px 4px;
            padding: 0.25rem 0.4rem;
            border-radius: 4px;
            font-size: 0.75rem;
            cursor: pointer;
            border-left: 3px solid;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        /* Month View */
        .calendar-month-view {
            background: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }
        
        .calendar-month-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            background: #f9fafb;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .calendar-month-day-name {
            padding: 0.75rem;
            text-align: center;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--gray);
            text-transform: uppercase;
        }
        
        .calendar-month-body {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
        }
        
        .calendar-month-day {
            min-height: 100px;
            border-right: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
            padding: 0.25rem;
        }
        
        .calendar-month-day:nth-child(7n) {
            border-right: none;
        }
        
        .calendar-month-day.other-month {
            background: #f9fafb;
        }
        
        .calendar-month-day.other-month .month-day-number {
            color: #d1d5db;
        }
        
        .calendar-month-day.today .month-day-number {
            background: var(--primary);
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .month-day-number {
            font-size: 0.85rem;
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .calendar-month-event {
            padding: 0.15rem 0.35rem;
            margin-bottom: 2px;
            border-radius: 3px;
            font-size: 0.7rem;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            border-left: 3px solid;
        }
        
        .calendar-month-event.status-new {
            background: #dbeafe;
            border-color: #3b82f6;
            color: #1e40af;
        }
        .calendar-month-event.status-progress {
            background: #fef3c7;
            border-color: #f59e0b;
            color: #92400e;
        }
        .calendar-month-event.status-review {
            background: #e0e7ff;
            border-color: #6366f1;
            color: #3730a3;
        }
        .calendar-month-event.status-done {
            background: #d1fae5;
            border-color: #10b981;
            color: #065f46;
            opacity: 0.7;
        }
        .calendar-month-event:hover {
            filter: brightness(0.95);
        }
        
        .calendar-month-more {
            font-size: 0.7rem;
            color: var(--gray);
            padding: 0.15rem 0.35rem;
            cursor: pointer;
        }
        
        .calendar-month-more:hover {
            color: var(--primary);
        }
        
        /* All-day events / No time tasks */
        .calendar-allday-section {
            border-bottom: 1px solid #e5e7eb;
            padding: 0.5rem;
            background: #fefce8;
            min-height: 40px;
        }
        
        .calendar-allday-label {
            font-size: 0.7rem;
            color: var(--gray);
            margin-bottom: 0.25rem;
        }
        
        .calendar-allday-event {
            display: inline-block;
            padding: 0.2rem 0.5rem;
            margin: 2px;
            border-radius: 4px;
            font-size: 0.75rem;
            cursor: pointer;
        }
        
        /* Current time indicator */
        .calendar-current-time {
            position: absolute;
            left: 0;
            right: 0;
            height: 2px;
            background: #ef4444;
            z-index: 10;
        }
        
        .calendar-current-time::before {
            content: '';
            position: absolute;
            left: -5px;
            top: -4px;
            width: 10px;
            height: 10px;
            background: #ef4444;
            border-radius: 50%;
        }
        
        /* List View (existing) */
        .calendar-list-view {
            /* existing table/card styles */
        }
        
        /* Mobile Calendar Styles - Google Calendar Style */
        @media (max-width: 767px) {
            .calendar-header {
                flex-wrap: wrap;
                gap: 0.3rem;
                padding: 0.5rem 0.75rem 0.25rem;
                margin: 0 -0.5rem 0 -0.5rem;
                border-radius: 0;
                background: white;
                border-bottom: none;
                justify-content: space-between;
            }
            
            .calendar-view-switcher {
                display: flex;
                gap: 0;
                order: 10;
                width: 100%;
                padding: 3px;
                background: #f1f3f5;
                border-radius: 10px;
                margin: 0.15rem 0 0.15rem;
            }
            
            .calendar-view-switcher .calendar-view-btn {
                flex: 1;
                font-size: 0;
                padding: 0.4rem 0;
                border-radius: 8px;
                text-align: center;
                margin-right: 0;
                min-height: 36px;
                transition: all 0.15s ease;
                border: none;
                background: transparent;
                color: #6b7280;
                font-weight: 500;
            }
            
            .calendar-view-switcher .calendar-view-btn.active {
                background: white;
                color: #1a1a1a;
                font-weight: 600;
                box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            }
            
            .calendar-view-switcher .calendar-view-btn::after {
                content: attr(data-short);
                font-size: 0.8rem;
            }
            
            .calendar-nav {
                order: 1;
                gap: 0;
            }
            
            .calendar-nav-btn {
                width: 32px;
                height: 32px;
                background: transparent;
                border: none;
            }
            
            .calendar-title {
                order: 2;
                min-width: auto;
                font-size: 1.05rem;
                font-weight: 600;
                flex: 1;
                text-align: left;
                margin-left: 2px;
            }
            
            .calendar-today-btn {
                display: inline-flex;
                order: 3;
                padding: 0.3rem 0.7rem;
                font-size: 0.8rem;
                border: 1px solid #e5e7eb;
                background: white;
                min-height: 32px;
            }
            }
            
            /* Hide add button in TASKS header on mobile - use FAB instead */
            #calendarHeader .btn-success {
                display: none;
            }
            
            /* Hide day header on mobile - use week strip instead */
            .calendar-day-header {
                display: none;
            }
            
            .calendar-day-view {
                border-radius: 0;
                margin: 0 -0.5rem;
                box-shadow: none;
                border-top: none;
                -webkit-overflow-scrolling: touch;
            }
            
            .calendar-time-gutter,
            .calendar-time-slots {
                width: 48px;
            }
            
            .calendar-time-slot {
                font-size: 0.75rem;
                padding: 0.2rem 0.4rem;
                text-align: right;
                color: #6b7280;
            }
            
            .calendar-day-body {
                max-height: calc(100vh - 260px);
                min-height: 400px;
            }
            
            .calendar-hour-row {
                height: 48px;
                cursor: pointer;
                transition: background 0.1s ease;
                -webkit-tap-highlight-color: transparent;
            }
            
            .calendar-hour-row:active {
                background: rgba(0, 122, 255, 0.15) !important;
            }
            
            /* Hint text on empty hours */
            .calendar-hour-row:empty::after {
                content: '';
            }
            
            /* Hide desktop day column header */
            .calendar-day-column-header {
                display: none;
            }
            
            .calendar-allday-section {
                margin: 0;
                padding: 8px 12px;
                background: #f9fafb;
                border-bottom: 1px solid #e5e7eb;
            }
            
            .calendar-event {
                font-size: 0.85rem;
                padding: 8px 10px;
                left: 2px;
                right: 2px;
                border-radius: 8px;
                border-left-width: 4px;
                min-height: 36px;
                -webkit-tap-highlight-color: transparent;
            }
            
            .calendar-event:active {
                opacity: 0.7;
                transform: scale(0.98);
            }
            
            .calendar-event-title {
                font-size: 0.85rem;
                font-weight: 600;
            }
            
            .calendar-event-time {
                display: block;
                font-size: 0.75rem;
                opacity: 0.85;
