/* ==============================================
   Fluent Boards - Frontend Tasks Styles v2.0
   Interactive version with modals and badges
   ============================================== */

/* Frontend Tasks Wrapper */
.fbs-frontend-tasks-wrapper {
    max-width: 100%;
    margin: 20px 0;
}

/* Task Container */
.fbs-frontend-task {
    background: white;
    border: 1px solid #EBEEF5;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Task Header */
.fbs-frontend-task-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #F5F7FA;
    border-bottom: 1px solid #EBEEF5;
    transition: background 0.2s;
}

.fbs-frontend-task-header:hover {
    background: #ECF5FF;
}

.fbs-frontend-task-toggle {
    margin-right: 12px;
    font-size: 12px;
    color: #909399;
    transition: transform 0.2s;
}

.fbs-frontend-task.expanded .fbs-frontend-task-toggle {
    transform: rotate(90deg);
}

.fbs-frontend-task-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    flex: 1;
}

.fbs-frontend-task-count {
    color: #909399;
    font-size: 14px;
    font-weight: normal;
    margin-left: 8px;
}

/* Task Content */
.fbs-frontend-task-content {
    padding: 20px;
}

/* Subtasks List */
.fbs-subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fbs-subtasks-group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 10px;
    background: #F9FAFC;
    border-radius: 6px;
    border: 1px solid #E4E7ED;
    transition: all 0.2s;
    position: relative;
    border-radius: 10px;
}


.fbs-subtasks-group-item:hover {
    background: #C5D9F0;
    border-color: #409EFF;
}

.fbs-subtasks-group-item.completed {
    opacity: 0.65;
}

.fbs-subtasks-group-item.completed .fbs-subtask-title {
    text-decoration: line-through;
    color: #909399;
}

.fbs-subtasks-group-item.updating {
    opacity: 0.5;
    pointer-events: none;
}

/* Checkbox */
.fbs-subtask-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #DCDFE6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
    transition: all 0.2s;
}

/* Interactive Checkbox (for logged-in users only) */
.fbs-subtask-checkbox--interactive {
    cursor: pointer;
}

.fbs-subtask-checkbox--interactive:hover {
    border-color: #409EFF;
    transform: scale(1.1);
}

.fbs-subtask-checkbox--interactive:active {
    transform: scale(0.95);
}

.fbs-subtasks-group-item.completed .fbs-subtask-checkbox {
    background: #67C23A;
    border-color: #67C23A;
    color: white;
}

.fbs-subtask-checkbox svg {
    width: 14px;
    height: 14px;
}

/* Title */
.fbs-subtask-title {
    flex: 1;
    font-size: 14px;
    color: #303133;
    line-height: 1.5;
}

/* Tags Inline */
.fbs-subtask-tags-inline {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.fbs-subtask-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-weight: 500;
}

/* Subtask Info Badges */
.fbs-subtask-info {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.fbs-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #F0F0F0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    color: #606266;
}

.fbs-info-item:hover {
    background: #409EFF;
    color: white;
}

.fbs-info-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.fbs-info-item .badge {
    font-weight: 600;
    min-width: 14px;
    text-align: center;
}

/* Specific badge colors */
.fbs-assignees-badge {
    background: #E1F3FF;
    color: #409EFF;
}

.fbs-assignees-badge:hover {
    background: #409EFF;
    color: white;
}

.fbs-attachments-badge {
    background: #FDF6EC;
    color: #E6A23C;
}

.fbs-attachments-badge:hover {
    background: #E6A23C;
    color: white;
}

.fbs-comments-badge {
    background: #F4F4F5;
    color: #909399;
}

.fbs-comments-badge:hover {
    background: #909399;
    color: white;
}

/* Due date badge (backend-like colors) */
.fbs-due-date-badge {
    cursor: default;
    background: #f5f7fa;
    color: #606266;
}

.fbs-due-date-badge:hover {
    background: #f5f7fa;
    color: #606266;
}

.fbs-due-date-badge.is-upcoming {
    background: #f5f7fa;
    color: #606266;
}

.fbs-due-date-badge.is-overdue {
    color: #f56c6c;
}

.fbs-due-date-badge.is-completed {
    background: #f0f9eb;
    color: #67c23a;
}

/* Read-only assignee placeholder */
.fbs-assignee-avatar--empty {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #dcdfe6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #909399;
    background: #ffffff;
}

/* ==============================================
   MODAL WINDOWS
   ============================================== */

.fbs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fbs-modal {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: scaleIn 0.2s forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.fbs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #EBEEF5;
    background: #F5F7FA;
}

.fbs-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}

.fbs-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #909399;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.fbs-modal-close:hover {
    background: #E4E7ED;
    color: #303133;
}

.fbs-modal-body {
    padding: 20px;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

/* Assignee Item */
.fbs-assignees-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fbs-assignee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #EBEEF5;
}

.fbs-assignee-item:last-child {
    border-bottom: none;
}

.fbs-assignee-item:hover {
    background: #F5F7FA;
}

.fbs-assignee-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fbs-assignee-item .user-info {
    flex: 1;
}

.fbs-assignee-item .user-info .name {
    font-weight: 600;
    color: #303133;
    font-size: 14px;
    margin-bottom: 2px;
}

.fbs-assignee-item .user-info .email {
    font-size: 12px;
    color: #909399;
}

/* Attachment Item */
.fbs-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fbs-attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #EBEEF5;
    transition: background 0.2s;
}

.fbs-attachment-item:last-child {
    border-bottom: none;
}

.fbs-attachment-item:hover {
    background: #F5F7FA;
}

.fbs-attachment-item--empty {
    cursor: default;
    opacity: 0.75;
}

.fbs-attachment-item--empty:hover {
    background: transparent;
}

.fbs-attachment-item .file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F0F0;
    border-radius: 6px;
    font-size: 20px;
    flex-shrink: 0;
}

.fbs-attachment-item .file-info {
    flex: 1;
}

.fbs-attachment-item .file-info .file-name {
    font-weight: 600;
    color: #303133;
    font-size: 14px;
    margin-bottom: 2px;
    word-break: break-word;
}

.fbs-attachment-item .file-info .file-size {
    font-size: 12px;
    color: #909399;
}

.fbs-attachment-item .download-btn {
    padding: 6px 12px;
    background: #409EFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.fbs-attachment-item .download-btn:hover {
    background: #66B1FF;
}

/* Comment Item */
.fbs-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fbs-comment-item {
    padding-bottom: 16px;
    border-bottom: 1px solid #EBEEF5;
}

.fbs-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fbs-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fbs-comment-header .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.fbs-comment-header .author {
    font-weight: 600;
    color: #303133;
    font-size: 13px;
}

.fbs-comment-header .date {
    font-size: 12px;
    color: #909399;
    margin-left: auto;
}

.fbs-comment-body {
    font-size: 14px;
    color: #606266;
    line-height: 1.6;
    padding-left: 40px;
}

.fbs-comment-body p {
    margin: 0 0 8px 0;
}

.fbs-comment-body p:last-child {
    margin-bottom: 0;
}

/* Empty States */
.fbs-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #909399;
}

.fbs-empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.fbs-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Loading State */
.fbs-loading {
    text-align: center;
    padding: 40px 20px;
}

.fbs-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E4E7ED;
    border-top-color: #409EFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fbs-loading p {
    margin: 0;
    color: #909399;
    font-size: 14px;
}

/* Notification Toast */
.fbs-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fbs-notification.success {
    border-left: 4px solid #67C23A;
}

.fbs-notification.error {
    border-left: 4px solid #F56C6C;
}

.fbs-notification-icon {
    width: 20px;
    height: 20px;
}

.fbs-notification-message {
    font-size: 14px;
    color: #303133;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
    .fbs-frontend-task-header {
        padding: 12px 16px;
    }

    .fbs-frontend-task-title {
        font-size: 16px;
    }

    .fbs-frontend-task-content {
        padding: 16px;
    }

    .fbs-subtasks-group-item {
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .fbs-subtask-info {
        width: 100%;
        margin-top: 8px;
        justify-content: flex-end;
    }

    .fbs-modal {
        width: 95%;
        max-height: 90vh;
    }

    .fbs-notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .fbs-subtask-tags-inline {
        width: 100%;
        margin-top: 6px;
    }

    .fbs-info-item {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* ==============================================
   Attachments Tooltip (Admin-style)
   ============================================== */

.fbs-attachments-tooltip-wrapper {
    position: absolute;
    z-index: 10000;
    background: white;
    border: 1px solid #DCDFE6;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    pointer-events: none;
    max-width: 320px;
    min-width: 200px;
}

.fbs-attachments-tooltip-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fbs-attachments-tooltip-wrapper::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.fbs-attachments-tooltip {
    padding: 0;
}

.fbs-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fbs-attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #EBEEF5;
    transition: background 0.2s;
}

.fbs-attachment-item:last-child {
    border-bottom: none;
}

.fbs-attachment-item:hover {
    background: #F5F7FA;
}

.fbs-attachment-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.fbs-attachment-name {
    flex: 1;
    font-size: 14px;
    color: #303133;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbs-attachment-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #409EFF;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    border-top: 1px solid #EBEEF5;
    background: white;
}

.fbs-attachment-add-btn:hover {
    background: #ECF5FF;
}

.fbs-attachment-add-btn.fbs-uploading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.fbs-attachment-add-btn.fbs-uploading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #409EFF, transparent);
    animation: fbs-upload-progress 1.5s infinite;
}

@keyframes fbs-upload-progress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.fbs-attachment-add-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.fbs-attachment-new {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
    background: #F0F9FF;
}

.fbs-attachment-new:not(.fbs-attachment-new) {
    opacity: 1;
    transform: scale(1);
    background: transparent;
}

/* ==============================================
   File Preview Modal
   ============================================== */

.fbs-modal-large {
    max-width: 900px;
    width: 90%;
}

.fbs-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #EBEEF5;
    background: #F5F7FA;
}

.fbs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.fbs-btn:focus {
    outline: none;
}

.fbs-btn-primary {
    background: #409EFF;
    color: white;
}

.fbs-btn-primary:hover {
    background: #66B1FF;
    color: white;
}

.fbs-btn-secondary {
    background: #E4E7ED;
    color: #606266;
}

.fbs-btn-secondary:hover {
    background: #D3D6DC;
}

.fbs-file-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #F5F7FA;
    border-radius: 4px;
    padding: 20px;
}

.fbs-file-preview-container.fbs-file-no-preview {
    flex-direction: column;
}

.fbs-preview-image {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fbs-file-preview-icon {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.fbs-file-preview-name {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin: 0 0 8px 0;
}

.fbs-file-preview-info {
    font-size: 14px;
    color: #909399;
    margin: 0;
}

/* ==============================================
   ADMIN-LIKE SUBTASK DESIGN OVERRIDES
   ============================================== */

.fbs-frontend-task {
    border: none;
    box-shadow: none;
    background: transparent;
    margin-bottom: 24px;
}

.fbs-frontend-task-header {
    background: transparent;
    border: none;
    padding: 0 0 8px;
    cursor: pointer;
    gap: 10px;
}

.fbs-frontend-task-header:hover {
    background: transparent;
}

.fbs-frontend-task-toggle {
    display: inline-flex;
    margin-left: auto;
    font-size: 15px;
    color: #66748a;
    transition: transform 0.18s ease;
}

.fbs-frontend-task.expanded .fbs-frontend-task-toggle {
    transform: rotate(0deg);
}

.fbs-frontend-task:not(.expanded) .fbs-frontend-task-toggle {
    transform: rotate(-90deg);
}

.fbs-frontend-task-icon {
    width: 28px;
    height: 28px;
    color: #3f3f46;
    display: inline-flex;
}

.fbs-frontend-task-icon svg {
    width: 100%;
    height: 100%;
}

.fbs-frontend-task-title {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 600;
    color: #3a3a3f;
}

.fbs-frontend-task-count {
    display: none;
}

.fbs-frontend-task-content {
    padding: 0;
}

.fbs-frontend-task-progress {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fbs-frontend-task-progress .el-progress-bar {
    width: 100%;
}

.fbs-frontend-task-progress .el-progress-bar__outer {
    width: 100%;
    height: 12px;
    border-radius: 10px;
    background: #d6dbe4;
}

.fbs-frontend-task-progress .el-progress-bar__inner {
    height: 12px;
    border-radius: 10px;
    background: #169877;
}

.fbs-frontend-task-progress .el-progress__text {
    display: none;
}

.fbs-subtasks-list {
    gap: 0;
}

.fbs-subtasks-group-item {
    border: none;
    background: transparent;
    margin-bottom: 5px;
}


.fbs-subtasks-group-item .fbs-subtasks-card {
    width: 100%;
    padding: 8px 0;
}

.fbs-subtasks-title-and-icons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.fbs_subtask_title_wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.fbs-subtask-list {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 500;
    color: #49566d;
    min-width: 0;
}

.fbs-subtask-list>span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.fbs_subtask_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 0;
}

.fbs_subtask_actions .fbs-set-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 255px;
    justify-content: center;
}

.fbs_subtask_actions .fbs-set-date>span {
    line-height: 1;
}

.fbs_task_assignees {
    align-items: center;
    cursor: default;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 0 !important;
}

.fbs_task_assignees li {
    border: 2px solid #fff;
    border-radius: 50%;
    height: 38px;
    width: 38px;
    margin: 0;
    overflow: hidden;
}

.fbs_task_assignees li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fbs_task_assignees li.fbs_no_pip {
    background: #fff;
}

.fbs-assignees-add-btn {
    align-items: center;
    border: 2px solid #4a5870;
    border-radius: 50%;
    color: #4a5870;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.fbs-assignees-add-btn svg {
    width: 22px;
    height: 22px;
}

.fbs-subtask-notes-icon {
    width: 38px;
    height: 38px;
    border: 2px solid #4a5870;
    color: #4a5870;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f2f3f6;
}

.fbs-subtask-notes-icon:hover {
    background: #e9edf3;
}

.fbs-subtask-notes-icon .badge {
    display: none;
}

.fbs-subtask-attach-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fbs-subtask-attach-btn {
    background: transparent;
    border: none;
    color: #4a5870;
    padding: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: relative;
    border: 1px solid;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fbs-attach-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    background: rgb(64, 158, 255);
    color: white;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: white 0 0 0 2px;
    display: none;
    align-items: center;
    justify-content: center;
}

.fbs-attach-badge.fbs-attach-badge--visible {
    display: flex;
}

.fbs-tags-badge {
    display: none;
}

/* removed by request */
.fbs-subtask-tags-wrapper {
    display: none !important;
}

.fbs-subtask-checkbox {
    width: 38px;
    height: 38px;
    border: 2px solid #4a5870;
    border-radius: 50%;
}

.fbs-subtask-checkbox svg {
    width: 22px;
    height: 22px;
}

.fbs-subtasks-group-item.completed .fbs-subtask-checkbox {
    color: #4a5870;
    background: transparent;
    border-color: #4a5870;
}

.fbs-subtasks-group-item.completed .fbs-subtask-list>span {
    text-decoration: none;
    opacity: 0.75;
}

@media (max-width: 1200px) {
    .fbs-frontend-task-title {
        font-size: 28px;
    }

    .fbs-subtask-list {
        font-size: 24px;
    }

    .fbs_subtask_actions .fbs-set-date {
        font-size: 15px;
    }
}

@media (max-width: 900px) {
    .fbs-subtasks-title-and-icons {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 8px;
    }

    .fbs_subtask_actions {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }
}

/* ==============================================
   FINAL COMPACT TUNE (Admin-like density)
   ============================================== */

.fbs-frontend-tasks-wrapper .fbs-frontend-task-header {
    padding: 0 0 4px !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-icon {
    width: 16px !important;
    height: 16px !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-progress {
    margin: 0 0 6px !important;
    gap: 6px !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-progress .el-progress-bar__outer,
.fbs-frontend-tasks-wrapper .fbs-frontend-task-progress .el-progress-bar__inner {
    height: 7px !important;
    border-radius: 6px !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-progress .el-progress__text {
    display: inline-flex !important;
    font-size: 12px !important;
    color: #7b8598 !important;
    min-width: 28px !important;
    justify-content: flex-end !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item .fbs-subtasks-card {
    padding: 3px 0 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item {
    background: #eef1f4 !important;
    border-radius: 8px !important;
    padding: 0 6px !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-title-and-icons {
    gap: 10px !important;
}

.fbs-frontend-tasks-wrapper .fbs_subtask_title_wrap {
    gap: 8px !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-checkbox {
    width: 18px !important;
    height: 18px !important;
    border-width: 1.8px !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-checkbox svg {
    width: 12px !important;
    height: 12px !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-list {
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    color: #3f4e67 !important;
}

.fbs-frontend-tasks-wrapper .fbs_subtask_actions {
    gap: 5px !important;
}

.fbs-frontend-tasks-wrapper .fbs_subtask_actions .fbs-set-date {
    min-width: 0 !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    gap: 6px !important;
    color: #4a5870 !important;
}

.fbs-frontend-tasks-wrapper .fbs_subtask_actions .fbs-set-date i svg {
    width: 12px !important;
    height: 12px !important;
}

.fbs-frontend-tasks-wrapper .fbs_task_assignees li {
    width: 24px !important;
    height: 24px !important;
    border-width: 1px !important;
}

.fbs-frontend-tasks-wrapper .fbs_task_assignees {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.fbs-frontend-tasks-wrapper .fbs_task_assignees li {
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #d0d7e2 !important;
    transition: margin-left 0.18s ease !important;
}

.fbs-frontend-tasks-wrapper .fbs_task_assignees--multiple li {
    margin-left: -10px !important;
}

.fbs-frontend-tasks-wrapper .fbs_task_assignees--multiple li:first-child {
    margin-left: 0 !important;
}

.fbs-frontend-tasks-wrapper .fbs_task_assignees--multiple:hover li {
    margin-left: 5px !important;
}

.fbs-frontend-tasks-wrapper .fbs_task_assignees .avatar {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

.fbs-frontend-tasks-wrapper .fbs-assignees-fallback-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #c9ccd1 !important;
    color: #f3f4f6 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fbs-frontend-tasks-wrapper .fbs-assignees-fallback-avatar svg {
    width: 14px !important;
    height: 14px !important;
}

.fbs-frontend-tasks-wrapper .fbs-assignees-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #4a5870 !important;
    background: #eef1f4 !important;
}

.fbs-frontend-tasks-wrapper .fbs_task_assignees li.fbs_no_pip {
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    width: 22px !important;
    height: 22px !important;
}

.fbs-frontend-tasks-wrapper .fbs_task_assignees li.fbs_no_pip .fbs-assignees-add-btn {
    width: 22px !important;
    height: 22px !important;
    border: 1.5px solid #4a5870 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #4a5870 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fbs-frontend-tasks-wrapper .fbs-assignee-avatar--editable .fbs_task_assignees li.fbs_no_pip .fbs-assignees-add-btn {
    cursor: pointer !important;
}

.fbs-frontend-tasks-wrapper .fbs-assignee-avatar--editable .fbs_task_assignees li.fbs_no_pip .fbs-assignees-add-btn:hover {
    background: #e9edf3 !important;
    border-color: #4a5870 !important;
    color: #4a5870 !important;
}

.fbs-frontend-tasks-wrapper .fbs-assignees-add-btn {
    border-width: 1.5px !important;
}

/* Requested colors */
.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item.completed {
    background: #e4e6e9 !important;
    opacity: 1 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-checkbox.fbs-subtask-checkbox--interactive {
    border-color: #445164 !important;
    color: #445164 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-checkbox.fbs-subtask-checkbox--interactive:hover {
    border-color: #189877 !important;
    color: #189877 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item.completed .fbs-subtask-checkbox {
    border-color: #189877 !important;
    color: #fff !important;
    background: #189877 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item.completed .fbs-due-date-badge,
.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item.completed .fbs_subtask_actions .fbs-set-date {
    background-color: #8ff6c2 !important;
}

.fbs-frontend-tasks-wrapper .fbs-assignees-add-btn svg {
    width: 12px !important;
    height: 12px !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-notes-icon {
    width: 22px !important;
    height: 22px !important;
    border-width: 1.5px !important;
    background: transparent !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-notes-icon i svg {
    width: 12px !important;
    height: 12px !important;
}

.fbs-frontend-tasks-wrapper .fbs-task-link-icon {
    width: 22px !important;
    height: 22px !important;
    border: 1.5px solid #4a5870 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #4a5870 !important;
    background: transparent !important;
}

.fbs-frontend-tasks-wrapper .fbs-task-link-icon i svg {
    width: 12px !important;
    height: 12px !important;
}

.fbs-frontend-tasks-wrapper .fbs-task-link-icon.has-link {
    border-color: #189877 !important;
    color: #189877 !important;
}

.fbs-link-editor input {
    width: 100%;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    color: #2d3a4d;
}

.fbs-frontend-tasks-wrapper .fbs_subtask_actions .fbs-attachments-badge {
    background: transparent !important;
    color: #4a5870 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-attach-wrapper {
    width: 22px !important;
    height: 22px !important;
    border: none !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-attach-btn {
    width: 22px !important;
    height: 22px !important;
    color: #4a5870 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-attach-btn svg {
    width: 16px !important;
    height: 16px !important;
}


.fbs-frontend-tasks-wrapper .fbs-subtask-tags-wrapper,
.fbs-frontend-tasks-wrapper .fbs-tags-badge {
    display: none !important;
}

.fbs-attachments-badge {
    position: relative;
}

.fbs-attachments-badge.fbs-attachments-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Same check icon for undone and done */
.fbs-frontend-tasks-wrapper .fbs-subtask-checkbox svg {
    opacity: 1 !important;
}

/* Main tasks should visually match subtask rows */
.fbs-frontend-tasks-wrapper .fbs-frontend-task-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 8px !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task {
    background: #eef1f4 !important;
    border-radius: 10px !important;
    padding: 6px 10px !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-header .fbs_subtask_title_wrap {
    min-width: 0 !important;
    overflow: hidden !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-title {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    color: #3f4e67 !important;
    min-width: 0 !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-title > span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.fbs-frontend-tasks-wrapper .fbs-main-task-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
}

.fbs-frontend-tasks-wrapper .fbs_subtask_actions > .fbs-assignee-avatar,
.fbs-frontend-tasks-wrapper .fbs-main-task-actions > .fbs-assignee-avatar,
.fbs-frontend-tasks-wrapper .fbs_subtask_actions > .fbs_value.fbs-assignee-avatar,
.fbs-frontend-tasks-wrapper .fbs-main-task-actions > .fbs_value.fbs-assignee-avatar {
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.fbs-frontend-tasks-wrapper .fbs-assignee-avatar .fbs_assignees,
.fbs-frontend-tasks-wrapper .fbs-assignee-avatar .fbs_task_assignees {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.fbs-frontend-tasks-wrapper .fbs-main-task-actions .fbs-due-date-badge {
    max-width: 240px !important;
}

.fbs-frontend-tasks-wrapper .fbs-main-task-actions .fbs-due-date-badge span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-toggle {
    width: 22px !important;
    height: 22px !important;
    border: 1.5px solid #4a5870 !important;
    border-radius: 50% !important;
    color: #4a5870 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

@media (max-width: 1024px) {
    .fbs-frontend-tasks-wrapper .fbs-frontend-task-header {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    .fbs-frontend-tasks-wrapper .fbs-main-task-actions {
        grid-column: 1 / -1 !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
    }
}

.fbs-frontend-tasks-wrapper .fbs-task-checkbox svg {
    opacity: 1 !important;
}

/* ==============================================
   SUBTASK GROUPS STYLES
   ============================================== */

.fbs-subtask-group {
    margin-bottom: 20px;
}

.fbs-subtask-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    user-select: none;
}

.fbs-subtask-group-header:hover .fbs-subtask-group-title {
    color: #189877;
}

.fbs-subtask-group-toggle {
    font-size: 12px;
    color: #66748a;
    transition: transform 0.18s ease;
    display: inline-flex;
}

.fbs-subtask-group.collapsed .fbs-subtask-group-toggle {
    transform: rotate(-90deg);
}

.fbs-subtask-group-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #3a3a3f;
    transition: color 0.2s;
}

.fbs-subtask-group-count {
    font-size: 14px;
    color: #909399;
    font-weight: normal;
}

.fbs-grouped-subtasks {
    padding-left: 0;
    overflow: hidden;
}

.fbs-ungrouped-subtasks {
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fbs-subtask-group-header {
        padding: 6px 0;
    }

    .fbs-subtask-group-title {
        font-size: 14px;
    }

    .fbs-subtask-group-count {
        font-size: 12px;
    }
}

/* ==============================================
   TASK CHECKBOX STYLES
   ============================================== */

.fbs-task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #4a5870;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
    transition: all 0.2s;
    margin-right: 8px;
}

.fbs-task-checkbox svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.fbs-task-checkbox--interactive {
    cursor: pointer;
}

.fbs-task-checkbox--readonly {
    cursor: not-allowed;
    opacity: 0.6;
}

.fbs-task-checkbox--interactive:hover {
    border-color: #189877;
    transform: scale(1.1);
}

.fbs-task-checkbox--interactive:active {
    transform: scale(0.95);
}

.fbs-frontend-task.task-completed .fbs-task-checkbox {
    background: #189877;
    border-color: #189877;
    color: white;
}

.fbs-frontend-task.task-completed .fbs-task-checkbox svg {
    opacity: 1;
}

.fbs-frontend-task.task-completed .fbs-frontend-task-title {
    opacity: 0.65;
}

.fbs-frontend-task.updating {
    opacity: 0.6;
    pointer-events: none;
}

/* ==============================================
   EDIT MODE CONTROLS
   ============================================== */

.fbs-due-date-badge--editable {
    cursor: pointer !important;
}

.fbs-due-date-badge.is-empty {
    background: #f5f7fa !important;
    color: #7f8ca1 !important;
}

.fbs-assignee-avatar--editable {
    cursor: pointer;
}

.fbs-visual-status-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fbs-visual-status-actions.is-readonly {
    opacity: 0.65;
}

.fbs-visual-status-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.fbs-visual-status-btn:disabled {
    cursor: default;
}

.fbs-visual-status-btn--red {
    background: #f56c6c;
}

.fbs-visual-status-btn--orange {
    background: #e6a23c;
}

.fbs-visual-status-btn--green {
    background: #189877;
}

.fbs-visual-status-actions.is-editable .fbs-visual-status-btn:hover {
    transform: scale(1.12);
}

.fbs-visual-status-btn.is-active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.fbs-frontend-task.fbs-visual-status--red {
    background: #fbe9e9 !important;
}

.fbs-frontend-task.fbs-visual-status--orange {
    background: #fff1df !important;
}

.fbs-frontend-task.fbs-visual-status--green {
    background: #e9f8ef !important;
}

.fbs-subtasks-group-item.fbs-visual-status--red {
    background: #fdecec !important;
}

.fbs-subtasks-group-item.fbs-visual-status--orange {
    background: #fff3e6 !important;
}

.fbs-subtasks-group-item.fbs-visual-status--green {
    background: #ebf9f1 !important;
}

.fbs-modal--custom-content {
    max-width: 620px;
    width: min(94vw, 620px);
}

.fbs-modal-body--custom-content {
    padding: 26px 24px;
}

.fbs-date-editor .fbs-task-due-date-picker-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fbs-date-editor .fbs-task-due-date-picker-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.fbs-date-editor .fbs-task-due-date-picker-header > span {
    color: #1b2533;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.fbs-date-editor .fbs-subtask-date-close {
    border: none;
    background: transparent;
    color: #1b2533;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.fbs-date-editor .fbs-calendar .el-calendar__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 6px 0 10px;
    padding: 0;
}

.fbs-date-editor .fbs-calendar .el-calendar__header .el-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d6dae3;
    border-radius: 12px;
    color: #2f3a4a;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    font-weight: 500;
    height: 46px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 46px;
}

.fbs-date-editor .fbs-calendar .el-calendar__header .current-month-year {
    color: #30394a;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.fbs-date-editor .el-calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.fbs-date-editor .el-calendar-table tbody {
    display: table-row-group !important;
}

.fbs-date-editor .el-calendar-table tr {
    display: table-row !important;
}

.fbs-date-editor .el-calendar-table td {
    display: table-cell !important;
}

.fbs-date-editor .el-calendar-table th {
    color: #2f3a4a;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
}

.fbs-date-editor .el-calendar-table td {
    text-align: center;
    padding: 4px 0;
    cursor: pointer;
}

.fbs-date-editor .el-calendar-table td:hover .el-calendar-day {
    background: #f5f7fa;
}

.fbs-date-editor .el-calendar-day {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    font-size: 16px;
    height: 40px;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    width: 40px;
}

.fbs-date-editor .el-calendar-table td.prev .el-calendar-day,
.fbs-date-editor .el-calendar-table td.next .el-calendar-day {
    color: #cbd5f5;
}

.fbs-date-editor .el-calendar-table td.is-selected .el-calendar-day {
    background: #f0ecfd !important;
    color: #6b3ceb !important;
    font-weight: 500 !important;
}

.fbs-date-editor .el-calendar-table td.is-today .el-calendar-day {
    border: none !important;
    background: none !important;
    color: inherit !important;
    font-weight: inherit !important;
}

.fbs-date-editor .el-calendar-table td.is-today.is-selected .el-calendar-day {
    background: #f0ecfd !important;
    color: #6b3ceb !important;
    font-weight: 500 !important;
}

.fbs-date-editor .el-calendar-table td.is-range .el-calendar-day {
    background: #f7f4ff !important;
    color: #6b3ceb !important;
    font-weight: 400 !important;
}

.fbs-date-editor .fbs-task-due-date-start-date-wrap {
    display: block;
    width: 100%;
}

.fbs-date-editor .fbs-task-due-date-input {
    margin-bottom: 14px;
}

.fbs-date-editor .fbs-task-due-date-input > label {
    display: block;
    color: #374154;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.fbs-date-editor .fbs_date_inputs {
    align-items: center;
    display: flex;
    gap: 8px;
}

.fbs-date-editor .fbs_date_inputs > label.el-checkbox {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin: 0;
}

.fbs-date-editor .fbs_date_inputs > label.el-checkbox .el-checkbox__input {
    display: inline-flex;
    align-items: center;
}

.fbs-date-editor .fbs_date_inputs > label:not(.el-checkbox) {
    margin: 0;
    line-height: 36px;
}

.fbs-date-editor .fbs-dueDate {
    border: 1px solid #ced2da;
    border-radius: 10px;
    color: #445164;
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    min-width: 170px;
    padding: 10px 14px;
}

.fbs-date-editor .fbs-dueDate.disabled {
    color: #9ca3af;
    cursor: default;
    background: #f9fafb;
}

.fbs-date-editor .fbs-dueDate.is-active {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.fbs-date-editor .fbs-subtask-time-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fbs-date-editor .fbs-subtask-time-input {
    width: 120px;
    border: 1px solid #ced2da;
    border-radius: 10px;
    color: #445164;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
    padding: 10px 12px;
}

.fbs-date-editor .fbs-subtask-time-clear {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fbs-date-editor .fbs-subtask-time-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 120px;
    max-height: 200px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
    padding: 6px;
    z-index: 2606;
    display: none;
}

.fbs-date-editor .fbs-subtask-time-option {
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px 8px;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    color: #1b2533;
    font-size: 12px;
}

.fbs-date-editor .fbs-subtask-time-option:hover {
    background: #f0ecfd;
    color: #6b3ceb;
}

.fbs-date-editor .fbs-subtask-time-empty {
    padding: 6px 8px;
    color: #9ca3af;
    font-size: 12px;
}

.fbs-date-editor .fbs-subtask-reminder-select {
    display: block;
    margin-top: 8px;
    width: 100%;
    border: 1px solid #ced2da;
    border-radius: 10px;
    color: #445164;
    font-size: 14px;
    line-height: 1.3;
    padding: 8px 10px;
}

.fbs-date-editor .fbs-subtask-reminder-select:disabled {
    background: #f5f6f7;
    color: #9ca3af;
}

.fbs-date-editor .fbs-task-due-date-picker-bottom {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.fbs-date-editor .fbs-task-due-date-picker-bottom .el-button {
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    padding: 16px 22px;
    width: 100%;
    border: none;
}

.fbs-date-editor .fbs-task-due-date-picker-bottom .el-button.fbs-primary-btn {
    background: #6366f1;
    color: #fff;
}

.fbs-date-editor .fbs-task-due-date-picker-bottom .el-button.fbs-cancel-btn {
    background: #f5f6f7;
    color: #2f3448;
}

/* Admin-like date popover (same structure as dashboard) */
.fbs-subtask-date-popover {
    position: absolute;
    width: 320px;
    display: block;
    visibility: visible;
    opacity: 1;
    z-index: 2605;
}

.el-popover.fbs_task_due_date_popover {
    border: none;
    border-radius: 14px;
    box-shadow: 0 16px 42px -10px rgba(28, 39, 49, 0.24);
    box-sizing: border-box;
    padding: 16px 18px;
    width: 320px;
    max-width: 320px;
    background: #fff;
}

.el-popover.fbs_task_due_date_popover * {
    box-sizing: border-box;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-wrap {
    display: block;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-header > span {
    color: #1b2533;
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-date-close {
    color: #1b2533;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    border: none;
    background: none;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-date-close:hover {
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar {
    margin-bottom: 14px;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__header {
    border: none;
    margin: 0;
    padding: 0;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__header button {
    border: 1px solid #d6dae3;
    border-radius: 10px;
    color: #1b2533;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__header .current-month-year {
    font-size: 14px;
    color: #1b2533;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.4;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__header button:hover{
    color: #000 !important;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__header button svg {
    width: 14px;
    height: 14px;
    display: block;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__header button svg:hover{
    color: #000;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__body {
    padding: 0;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table tr,
.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table th,
.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td {
    border: none !important;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table th {
    font-size: 13px;
    color: #7a869a;
    font-weight: 600;
    padding: 4px 0 8px;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td {
    text-align: center;
    padding: 2px 0;
    cursor: pointer;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td .el-calendar-day {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td.prev .el-calendar-day,
.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td.next .el-calendar-day {
    color: #cbd5f5;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td.is-selected .el-calendar-day {
    background: #f0ecfd !important;
    color: #6b3ceb !important;
    font-weight: 500 !important;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td.is-today .el-calendar-day {
    border: none !important;
    background: none !important;
    color: inherit !important;
    font-weight: inherit !important;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td.is-today.is-selected .el-calendar-day {
    background: #f0ecfd !important;
    color: #6b3ceb !important;
    font-weight: 500 !important;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td.is-range .el-calendar-day {
    background: #f7f4ff !important;
    color: #6b3ceb !important;
    font-weight: 400 !important;
}

.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar-table td:hover .el-calendar-day {
    background: #f5f7fb;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-start-date-wrap {
    display: block;
    width: 100%;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-start-date-wrap .fbs-task-due-date-input {
    margin-bottom: 12px;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-start-date-wrap .fbs-task-due-date-input > label {
    display: block;
    font-weight: 700;
    color: #1b2533;
    font-size: 16px;
    margin: 0 0 6px;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-start-date-wrap .fbs-task-due-date-input .fbs_date_inputs {
    align-items: center;
    display: flex;
    gap: 8px;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-input .fbs-subtask-reminder-select {
    display: block;
    margin-top: 8px;
    width: 100%;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-start-date-wrap .fbs-task-due-date-input .fbs_date_inputs > label.el-checkbox {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin: 0;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-start-date-wrap .fbs-task-due-date-input .fbs_date_inputs > label.el-checkbox .el-checkbox__input {
    display: inline-flex;
    align-items: center;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-start-date-wrap .fbs-task-due-date-input .fbs_date_inputs .fbs-dueDate {
    border: 1px solid #ced2da;
    border-radius: 8px;
    color: #445164;
    cursor: pointer;
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
    min-width: 130px;
    min-height: 44px;
    padding: 11px 14px;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-start-date-wrap .fbs-task-due-date-input .fbs_date_inputs .fbs-dueDate.is-active {
    border-color: #6b3ceb;
    box-shadow: none;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-start-date-wrap .fbs-task-due-date-input .fbs_date_inputs .fbs-dueDate.disabled {
    color: #9ca3af;
    background: #f9fafb;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-time-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-time-input {
    width: 108px;
    border: 1px solid #ced2da;
    border-radius: 8px;
    color: #445164;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
    min-height: 44px;
    padding: 11px 12px;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-time-clear {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    width: auto;
    height: auto;
    box-shadow: none;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-time-clear:hover{
    box-shadow: none !important;
    background: transparent !important;
    color: #000 !important;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-time-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 120px;
    max-height: 200px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
    padding: 6px;
    z-index: 2606;
    display: none;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-time-option {
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px 8px;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    color: #1b2533;
    font-size: 12px;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-time-option:hover {
    background: #f0ecfd;
    color: #6b3ceb;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-time-empty {
    padding: 6px 8px;
    color: #9ca3af;
    font-size: 12px;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-reminder-select {
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-reminder-select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-bottom {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2px;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-bottom .el-button {
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    margin: 0;
    min-height: 44px;
    padding: 10px 16px;
    width: 100%;
    border: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-bottom .el-button.fbs-primary-btn {
    background: #6268f1;
    color: #fff;
    box-shadow: 0 4px 14px rgba(98, 104, 241, 0.22);
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-bottom .el-button.fbs-cancel-btn,
.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-bottom .el-button.fbs-cancel-btn:hover {
    background: #f5f6f7;
    border: none;
    color: #2f3448 !important;
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-bottom .el-button:hover {
    transform: translateY(-1px);
}

.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-bottom .el-button:active {
    transform: translateY(0);
}

.el-popover.fbs_task_due_date_popover .fbs-subtask-date-close:focus-visible,
.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__header button:focus-visible,
.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__header button:active,
.el-popover.fbs_task_due_date_popover .fbs-calendar .el-calendar__header button:focus,
.el-popover.fbs_task_due_date_popover .fbs-task-due-date-picker-bottom .el-button:focus-visible,
.el-popover.fbs_task_due_date_popover .fbs-subtask-time-input:focus-visible,
.el-popover.fbs_task_due_date_popover .fbs-dueDate:focus-visible,
.el-popover.fbs_task_due_date_popover .fbs-subtask-reminder-select:focus-visible {
    outline: 2px solid rgba(98, 104, 241, 0.42);
    outline-offset: 1px;
    color: #000 !important;
}

.el-popover.fbs_task_due_date_popover .el-popper__arrow {
    position: absolute;
    left: -6px;
    top: 28px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.el-popover.fbs_task_due_date_popover[data-place="left"] .el-popper__arrow {
    left: auto;
    right: -6px;
    transform: rotate(225deg);
    border-left: none;
    border-top: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.el-popover.fbs-task-add-popover-box.fbs-task-add-members-popover {
    position: absolute;
    width: 320px;
    max-width: calc(100vw - 16px);
    background: #fff;
    border: 1px solid #d6dae1;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(38, 50, 56, 0.12);
    padding: 0;
    z-index: 2705;
    font-size: 14px;
    line-height: 1.4;
    color: #445164;
}

.el-popover.fbs-task-add-popover-box.fbs-task-add-members-popover .el-popper__arrow {
    position: absolute;
    left: -6px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
}

.el-popover.fbs-task-add-popover-box.fbs-task-add-members-popover[data-place="left"] .el-popper__arrow {
    left: auto;
    right: -6px;
    transform: rotate(225deg);
    border-left: none;
    border-top: none;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.fbs-task-members-popover-content {
    padding: 16px 18px;
}

.fbs-task-members-heading {
    margin: 0;
    color: #445164;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.fbs-task-members-current-block {
    margin-top: 10px;
    min-height: 24px;
}

.fbs-task-members-empty {
    margin: 0;
    color: #5f6675;
    font-size: 14px;
    line-height: 1.3;
}

.fbs-task-members-current-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fbs-task-members-subheading {
    margin: 14px 0 8px;
    color: #445164;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.fbs-task-members-search {
    width: 100%;
    height: 42px;
    border: 1px solid #d6dae1;
    border-radius: 8px;
    padding: 0 12px !important;
    color: #445164;
    font-size: 14px;
    background: #fff;
    margin: 0 0 10px;
}

.fbs-task-members-search:focus {
    outline: none;
    border-color: #6268f1;
    box-shadow: 0 0 0 2px rgba(98, 104, 241, 0.14);
}

.fbs-task-members-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.fbs-task-members-empty-list {
    color: #7f8ca1;
    font-size: 13px;
    padding: 8px 2px;
}

.fbs-task-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 2px;
    border-radius: 8px;
}

.fbs-task-member-row.is-hidden {
    display: none;
}

.fbs-task-member-row:hover {
    background: #f8fafc;
}

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

.fbs-task-member-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c9ccd1;
    color: #f3f4f6;
}

.fbs-task-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fbs-task-member-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fbs-task-member-avatar-fallback svg {
    width: 24px;
    height: 24px;
}

.fbs-task-member-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1b2f55;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
}

.fbs-task-member-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    margin-left: 6px;
}

.fbs-task-member-toggle {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b8bcc5;
}

.fbs-task-member-toggle svg {
    width: 17px;
    height: 17px;
}

.fbs-task-member-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 0;
}

.fbs-task-member-toggle:hover {
    color: #6268f1;
    transform: scale(1.08);
}

.fbs-task-member-toggle.is-remove {
    color: #8d929d;
}

.fbs-task-member-toggle.is-add, .fbs-task-member-toggle.is-remove {
    color: #8d929d;
    box-shadow: none !important;
}

.fbs-task-member-toggle.is-add:hover,
.fbs-task-member-toggle.is-add:active,
.fbs-task-member-toggle.is-remove:hover,
.fbs-task-member-toggle.is-remove:active
{
    color: #000 !important;
}


.fbs-task-member-toggle:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

@media (max-width: 767px) {
    .el-popover.fbs-task-add-popover-box.fbs-task-add-members-popover {
        width: min(94vw, 420px);
    }

    .fbs-task-members-popover-content {
        padding: 14px 14px 14px;
    }

    .fbs-task-members-heading,
    .fbs-task-members-subheading {
        font-size: 18px;
    }

    .fbs-task-member-name {
        font-size: 14px;
    }

    .fbs-task-members-search {
        height: 38px;
        font-size: 14px;
    }

    .fbs-task-member-avatar {
        width: 34px;
        height: 34px;
    }

    .fbs-task-member-avatar-fallback svg {
        width: 20px;
        height: 20px;
    }
}

/* THEME ISOLATION */
.fbs-frontend-tasks-wrapper,
.fbs-frontend-tasks-wrapper *,
.fbs-modal,
.fbs-modal *,
.el-popover.fbs_task_due_date_popover,
.el-popover.fbs_task_due_date_popover *,
.el-popover.fbs-task-add-popover-box,
.el-popover.fbs-task-add-popover-box * {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
}

.fbs-frontend-tasks-wrapper h1,
.fbs-frontend-tasks-wrapper h2,
.fbs-frontend-tasks-wrapper h3,
.fbs-frontend-tasks-wrapper h4,
.fbs-frontend-tasks-wrapper h5,
.fbs-frontend-tasks-wrapper h6,
.fbs-modal h1,
.fbs-modal h2,
.fbs-modal h3,
.fbs-modal h4,
.fbs-modal h5,
.fbs-modal h6 {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
}

.fbs-frontend-tasks-wrapper button,
.fbs-frontend-tasks-wrapper input,
.fbs-frontend-tasks-wrapper select,
.fbs-frontend-tasks-wrapper textarea,
.fbs-modal button,
.fbs-modal input,
.fbs-modal select,
.fbs-modal textarea,
.el-popover.fbs_task_due_date_popover button,
.el-popover.fbs-task-add-popover-box button {
    font-family: "Poppins", "Segoe UI", sans-serif;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-attach-btn,
.fbs-frontend-tasks-wrapper .fbs-visual-status-btn,
.fbs-frontend-tasks-wrapper .fbs-task-action-link,
.fbs-modal .fbs-modal-close,
.el-popover.fbs_task_due_date_popover button,
.el-popover.fbs-task-add-popover-box button {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    text-transform: none;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-attach-btn:hover,
.fbs-frontend-tasks-wrapper .fbs-subtask-attach-btn:focus,
.fbs-frontend-tasks-wrapper .fbs-visual-status-btn:hover,
.fbs-frontend-tasks-wrapper .fbs-visual-status-btn:focus,
.fbs-modal .fbs-modal-close:hover,
.fbs-modal .fbs-modal-close:focus {
    box-shadow: none;
    text-decoration: none;
}

.fbs-frontend-tasks-wrapper .fbs-visual-status-btn {
    border-radius: 999px;
}

.fbs-modal .fbs-modal-close {
    border-radius: 50%;
}

/* ==============================================
   HSLG FRONTEND SHORTCODE POLISH
   Date: 2026-07-07
   Applies to: [fluent_tasks] and related front-end task shortcodes
   Purpose: black/grey branded cards, alternating row tones and less flat output
   ============================================== */

.fbs-frontend-tasks-wrapper {
    --hslg-task-ink: #111111;
    --hslg-task-deep-grey: #2c2c2c;
    --hslg-task-mid-grey: #6b6b6b;
    --hslg-task-panel: #eeeeee;
    --hslg-task-panel-alt: #e7e7e7;
    --hslg-task-row-1: #f4f4f4;
    --hslg-task-row-2: #ededed;
    --hslg-task-row-3: #e6e6e6;
    --hslg-task-border: #d2d2d2;
    --hslg-task-soft-border: rgba(17, 17, 17, 0.11);
    --hslg-task-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
    --hslg-task-row-shadow: 0 2px 7px rgba(17, 17, 17, 0.08);
    background: linear-gradient(180deg, #f6f6f6 0%, var(--hslg-task-panel) 100%) !important;
    border: 1px solid var(--hslg-task-border) !important;
    border-radius: 18px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 30px rgba(17, 17, 17, 0.06) !important;
    padding: 14px !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task:not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green) {
    background: linear-gradient(180deg, #f7f7f7 0%, #eeeeee 100%) !important;
    border: 1px solid var(--hslg-task-soft-border) !important;
    border-left: 5px solid var(--hslg-task-ink) !important;
    box-shadow: var(--hslg-task-shadow) !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
}

.fbs-frontend-tasks-wrapper > .fbs-frontend-task:nth-of-type(2n):not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green) {
    background: linear-gradient(180deg, #efefef 0%, #e6e6e6 100%) !important;
}

.fbs-frontend-tasks-wrapper > .fbs-frontend-task:nth-of-type(3n):not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green) {
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%) !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-header {
    border-bottom: 1px solid rgba(17, 17, 17, 0.09) !important;
    padding: 9px 10px !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-title,
.fbs-frontend-tasks-wrapper .fbs-subtask-list {
    color: var(--hslg-task-ink) !important;
    letter-spacing: -0.01em !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-title > span {
    font-weight: 650 !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task-content {
    padding: 10px 2px 2px !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-list {
    gap: 7px !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item:not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green) {
    background: var(--hslg-task-row-1) !important;
    border: 1px solid rgba(17, 17, 17, 0.10) !important;
    border-left: 4px solid #3a3a3a !important;
    border-radius: 10px !important;
    box-shadow: var(--hslg-task-row-shadow) !important;
    margin-bottom: 0 !important;
    padding: 1px 9px 1px 8px !important;
    position: relative !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-list > .fbs-subtasks-group-item:nth-child(2n):not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green),
.fbs-frontend-tasks-wrapper .fbs-grouped-subtasks > .fbs-subtasks-group-item:nth-child(2n):not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green),
.fbs-frontend-tasks-wrapper .fbs-ungrouped-subtasks > .fbs-subtasks-group-item:nth-child(2n):not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green) {
    background: var(--hslg-task-row-2) !important;
    border-left-color: #555555 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-list > .fbs-subtasks-group-item:nth-child(3n):not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green),
.fbs-frontend-tasks-wrapper .fbs-grouped-subtasks > .fbs-subtasks-group-item:nth-child(3n):not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green),
.fbs-frontend-tasks-wrapper .fbs-ungrouped-subtasks > .fbs-subtasks-group-item:nth-child(3n):not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green) {
    background: var(--hslg-task-row-3) !important;
    border-left-color: #222222 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item:not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green):hover {
    background: #dfdfdf !important;
    border-color: rgba(17, 17, 17, 0.22) !important;
    box-shadow: 0 6px 16px rgba(17, 17, 17, 0.12) !important;
    transform: translateY(-1px) !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item .fbs-subtasks-card {
    padding: 6px 0 !important;
}

.fbs-frontend-tasks-wrapper .fbs-task-checkbox,
.fbs-frontend-tasks-wrapper .fbs-subtask-checkbox,
.fbs-frontend-tasks-wrapper .fbs-task-link-icon,
.fbs-frontend-tasks-wrapper .fbs-subtask-notes-icon,
.fbs-frontend-tasks-wrapper .fbs-frontend-task-toggle,
.fbs-frontend-tasks-wrapper .fbs_task_assignees li.fbs_no_pip .fbs-assignees-add-btn {
    border-color: var(--hslg-task-deep-grey) !important;
    color: var(--hslg-task-deep-grey) !important;
    background: rgba(255, 255, 255, 0.55) !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-checkbox.fbs-subtask-checkbox--interactive:hover,
.fbs-frontend-tasks-wrapper .fbs-task-checkbox--interactive:hover,
.fbs-frontend-tasks-wrapper .fbs-task-link-icon:hover,
.fbs-frontend-tasks-wrapper .fbs-subtask-notes-icon:hover,
.fbs-frontend-tasks-wrapper .fbs-subtask-attach-btn:hover {
    border-color: var(--hslg-task-ink) !important;
    color: var(--hslg-task-ink) !important;
    background: #ffffff !important;
}

.fbs-frontend-tasks-wrapper .fbs_subtask_actions .fbs-set-date,
.fbs-frontend-tasks-wrapper .fbs-main-task-actions .fbs-due-date-badge {
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(17, 17, 17, 0.10) !important;
    color: var(--hslg-task-deep-grey) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70) !important;
}

.fbs-frontend-tasks-wrapper .fbs-task-link-icon.has-link {
    border-color: var(--hslg-task-ink) !important;
    color: var(--hslg-task-ink) !important;
    background: #ffffff !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task.task-completed:not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green),
.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item.completed:not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green) {
    background: #dedede !important;
    border-left-color: #7a7a7a !important;
    opacity: 1 !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task.task-completed .fbs-task-checkbox,
.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item.completed .fbs-subtask-checkbox {
    background: var(--hslg-task-ink) !important;
    border-color: var(--hslg-task-ink) !important;
    color: #ffffff !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task.task-completed .fbs-frontend-task-title,
.fbs-frontend-tasks-wrapper .fbs-subtasks-group-item.completed .fbs-subtask-list > span {
    opacity: 0.62 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-group-header {
    background: rgba(255, 255, 255, 0.35) !important;
    border: 1px solid rgba(17, 17, 17, 0.08) !important;
    border-radius: 10px !important;
    padding: 7px 10px !important;
    margin: 8px 0 !important;
}

.fbs-frontend-tasks-wrapper .fbs-subtask-group-title {
    color: var(--hslg-task-ink) !important;
}

@media (max-width: 768px) {
    .fbs-frontend-tasks-wrapper {
        border-radius: 14px !important;
        padding: 10px !important;
    }

    .fbs-frontend-tasks-wrapper .fbs-frontend-task:not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green) {
        border-left-width: 4px !important;
    }

    .fbs-frontend-tasks-wrapper .fbs-subtasks-group-item:not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green) {
        padding: 5px 8px !important;
    }
}

/* HSLG polish: keep attachment buttons in the same round grey/black icon style after theme-isolation resets. */
.fbs-frontend-tasks-wrapper .fbs-subtask-attach-btn {
    border: 1.5px solid var(--hslg-task-deep-grey) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.55) !important;
    color: var(--hslg-task-deep-grey) !important;
}

.fbs-frontend-tasks-wrapper .fbs-frontend-task:not(.fbs-visual-status--red):not(.fbs-visual-status--orange):not(.fbs-visual-status--green):hover {
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.10) !important;
}

