            .regular-week-day-header {
                min-width: 80px;
                flex-shrink: 0;
            }
            
            .regular-week-body {
                display: flex;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .regular-week-day-column {
                min-width: 150px;
                flex-shrink: 0;
            }
            
            .task-list-card {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .task-list-actions {
                width: 100%;
                justify-content: flex-end;
            }
        }
        
        /* ===================== */
        /* COMMENTS SYSTEM       */
        /* ===================== */
        
        .comments-section {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 2px solid #e5e7eb;
        }
        
        .comments-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            color: var(--dark);
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .comments-header .comment-count {
            background: var(--primary);
            color: white;
            font-size: 0.75rem;
            padding: 0.15rem 0.5rem;
            border-radius: 10px;
            font-weight: 600;
        }
        
        .comments-list {
            max-height: 250px;
            overflow-y: auto;
            margin-bottom: 1rem;
            padding-right: 0.5rem;
        }
        
        .comments-list::-webkit-scrollbar {
            width: 6px;
        }
        
        .comments-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }
        
        .comments-list::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }
        
        .comment-item {
            background: #f9fafb;
            border-radius: 12px;
            padding: 0.75rem 1rem;
            margin-bottom: 0.75rem;
            border-left: 3px solid var(--primary);
            animation: slideIn 0.2s ease-out;
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .comment-item.own-comment {
            background: #ecfdf5;
            border-left-color: var(--success);
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.4rem;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--dark);
        }
        
        .comment-time {
            font-size: 0.75rem;
            color: var(--gray);
        }
        
        .comment-text {
            font-size: 0.9rem;
            color: #374151;
            line-height: 1.5;
            white-space: pre-wrap;
            word-break: break-word;
        }
        
        .comment-text a {
            color: #2563eb;
            text-decoration: underline;
            word-break: break-all;
            transition: color 0.15s;
        }
        
        .comment-text a:hover {
            color: #1d4ed8;
        }
        
        .comment-text a:visited {
            color: #7c3aed;
        }
        
        /* File Attachments */
        .task-files-section {
            margin-top: 0.5rem;
        }
        
        .task-files-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .task-files-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }
        
        .task-file-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.6rem 0.75rem;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            transition: all 0.2s;
        }
        
        .task-file-item:hover {
            background: #f0fdf4;
            border-color: var(--primary);
        }
        
        .task-file-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.7rem;
            font-weight: 700;
            color: white;
        }
        
        .task-file-icon.pdf { background: #ef4444; }
        .task-file-icon.doc { background: #3b82f6; }
        .task-file-icon.xls { background: #22c55e; }
        .task-file-icon.img { background: #f59e0b; }
        .task-file-icon.other { background: #6b7280; }
        
        .file-role-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            font-size: 0.65rem;
            font-weight: 600;
            padding: 0.1rem 0.4rem;
            border-radius: 4px;
            line-height: 1.2;
        }
        
        .file-role-badge.creator {
            background: #dbeafe;
            color: #1d4ed8;
        }
        
        .file-role-badge.executor {
            background: #dcfce7;
            color: #16a34a;
        }
        
        .task-file-info {
            flex: 1;
            min-width: 0;
        }
        
        .task-file-name {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--dark);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .task-file-meta {
            font-size: 0.75rem;
            color: var(--gray);
            display: flex;
            gap: 0.5rem;
        }
        
        .task-file-actions {
            display: flex;
            gap: 0.25rem;
            flex-shrink: 0;
        }
        
        .task-file-actions button {
            width: 32px;
            height: 32px;
            border: none;
            background: transparent;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            color: var(--gray);
        }
        
        .task-file-actions button:hover {
            background: #e5e7eb;
        }
        
        .task-file-actions button.delete-file:hover {
            background: #fef2f2;
            color: #ef4444;
        }
        
        .file-upload-area {
            border: 2px dashed #d1d5db;
            border-radius: 10px;
            padding: 1rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .file-upload-area:hover,
        .file-upload-area.dragover {
            border-color: var(--primary);
            background: #f0fdf4;
            color: var(--primary);
        }
        
        .file-upload-area .upload-icon {
            margin-bottom: 0.25rem;
        }
        
        .file-upload-progress {
            display: none;
            margin-top: 0.5rem;
        }
        
        .file-upload-progress .progress-bar {
            height: 6px;
            background: #e5e7eb;
            border-radius: 3px;
            overflow: hidden;
        }
        
        .file-upload-progress .progress-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 3px;
            transition: width 0.2s;
        }
        
        .file-upload-progress .progress-text {
            font-size: 0.75rem;
            color: var(--gray);
            margin-top: 0.25rem;
        }
        
        /* Image preview in files */
        .task-file-item.image-preview {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .task-file-item.image-preview .file-preview-img {
            width: 100%;
            max-height: 200px;
            object-fit: cover;
            border-radius: 8px;
            margin-top: 0.5rem;
            cursor: pointer;
        }
        
        .task-file-item .file-preview-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            width: 100%;
        }
        
        .comment-input-wrapper {
            display: flex;
            gap: 0.5rem;
            align-items: flex-end;
        }
        
        .comment-input {
            flex: 1;
            min-height: 44px;
            max-height: 120px;
            padding: 0.6rem 0.9rem;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 0.9rem;
            resize: none;
            font-family: inherit;
            transition: border-color 0.2s;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .comment-send-btn {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: var(--primary);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .comment-send-btn:hover {
            background: var(--primary-dark);
        }
        
        .comment-send-btn:disabled {
            background: #d1d5db;
            cursor: not-allowed;
        }
        
        .comments-empty {
            text-align: center;
            padding: 1.5rem;
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .comments-section.hidden { display: none; }
        
        /* Audit log entries */
        .audit-entry {
            display: flex;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            border-bottom: 1px solid #f3f4f6;
            font-size: 0.8rem;
            line-height: 1.4;
        }
        .audit-entry:last-child { border-bottom: none; }
        .audit-icon { 
            width: 24px; height: 24px; border-radius: 50%; 
            display: flex; align-items: center; justify-content: center; 
            flex-shrink: 0; font-size: 0.7rem; margin-top: 2px;
        }
        .audit-body { flex: 1; }
        .audit-user { font-weight: 600; color: var(--text); }
        .audit-action { color: var(--gray); }
        .audit-time { font-size: 0.7rem; color: #9ca3af; margin-top: 2px; }
        .audit-value { 
            display: inline-block; padding: 0.1rem 0.35rem; border-radius: 4px; 
            font-size: 0.75rem; font-weight: 500; background: #f3f4f6;
        }
        
        /* Escalation badges */
        .escalation-badge {
            display: inline-flex; align-items: center; gap: 0.25rem;
            padding: 0.15rem 0.5rem; border-radius: 10px;
            font-size: 0.7rem; font-weight: 600;
        }
        .escalation-1 { background: #fef3c7; color: #92400e; }
        .escalation-2 { background: #fed7aa; color: #9a3412; }
        .escalation-3 { background: #fee2e2; color: #dc2626; }
        
        /* Kanban Board */
        .kanban-board {
            display: flex; gap: 0.75rem; overflow-x: auto;
            padding: 0.5rem 0; min-height: 70vh;
            -webkit-overflow-scrolling: touch;
        }
        .kanban-column {
            flex: 0 0 280px; max-width: 280px;
            background: #f3f4f6; border-radius: 12px;
            display: flex; flex-direction: column; max-height: 80vh;
        }
        .kanban-column-header {
            padding: 0.75rem; font-weight: 700; font-size: 0.85rem;
            display: flex; justify-content: space-between; align-items: center;
            border-radius: 12px 12px 0 0; position: sticky; top: 0;
        }
        .kanban-column-count {
            background: rgba(255,255,255,0.7); padding: 0.1rem 0.5rem;
            border-radius: 10px; font-size: 0.75rem; font-weight: 700;
        }
        .kanban-column-body {
            flex: 1; overflow-y: auto; padding: 0.5rem;
            display: flex; flex-direction: column; gap: 0.5rem;
        }
        .kanban-card {
            background: white; border-radius: 10px; padding: 0.7rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08); cursor: pointer;
            border-left: 3px solid transparent; transition: box-shadow 0.15s;
        }
        .kanban-card:hover { box-shadow: 0 3px 8px rgba(0,0,0,0.12); }
        .kanban-card.overdue { border-left-color: #ef4444; }
        .kanban-card.today { border-left-color: #f59e0b; }
        .kanban-card-title {
            font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem;
            line-height: 1.3; color: var(--text);
        }
        .kanban-card-meta {
            display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.72rem; color: #6b7280;
        }
        .kanban-card-meta span {
            display: inline-flex; align-items: center; gap: 0.2rem;
        }
        .kanban-card-badge {
            display: inline-block; padding: 0.1rem 0.35rem; border-radius: 6px;
            font-size: 0.68rem; font-weight: 600;
        }
        .kanban-card.dragging { opacity: 0.4; }
        .kanban-column-body.drag-over { background: #e0f2fe; border-radius: 0 0 12px 12px; }
        @media(max-width:768px) {
            .kanban-board { gap: 0.5rem; }
            .kanban-column { flex: 0 0 250px; max-width: 250px; }
        }
        
        /* Skeleton loading */
        .skeleton-card {
            background: white;
            padding: 0.75rem 1rem;
            border-left: 4px solid #e5e7eb;
            border-bottom: 1px solid #f0f0f0;
            animation: skeletonPulse 1.2s ease-in-out infinite;
        }
        
        .skeleton-line {
            height: 14px;
            background: #e5e7eb;
            border-radius: 4px;
            margin-bottom: 0.4rem;
        }
        
        .skeleton-line.short { width: 40%; }
        .skeleton-line.medium { width: 65%; }
        .skeleton-line.long { width: 90%; }
        
        .skeleton-row {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }
        
        .skeleton-circle {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #e5e7eb;
            flex-shrink: 0;
        }
        
        @keyframes skeletonPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        @media (max-width: 767px) {
            .comments-list { max-height: 200px; }
            .comment-input { font-size: 16px; }
        }

        /* Onboarding hints */
        .hint-pulse { position: relative; }
        .hint-pulse::after {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: inherit;
            border: 2px solid #3b82f6;
            animation: hintPulse 2s ease-in-out infinite;
            pointer-events: none;
        }
        @keyframes hintPulse {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(1.03); }
        }
        .hint-tooltip {
            position: fixed;
            z-index: 10020;
            background: #1e293b;
            color: white;
            padding: 0.6rem 1rem;
            border-radius: 10px;
            font-size: 0.8rem;
            line-height: 1.4;
            max-width: 260px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.25);
            animation: hintFadeIn 0.3s ease;
        }
        .hint-tooltip .hint-dismiss {
            display: inline-block;
            margin-top: 6px;
            padding: 2px 10px;
            background: rgba(255,255,255,0.15);
            border: none;
            border-radius: 5px;
            color: white;
            cursor: pointer;
            font-size: 0.72rem;
        }
        .hint-tooltip .hint-step { font-size: 0.65rem; color: #94a3b8; margin-bottom: 4px; }
        @keyframes hintFadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }
