


.tasks-wrapper { padding: 0; }

.tasks-section {
    background: rgba(22, 27, 34, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
}

.tasks-section.collapsed .tasks-section-content,
.tasks-section.collapsed .performance-content { display: none; }

.tasks-section.collapsed .tasks-section-toggle { transform: rotate(-90deg); }

.tasks-section-header,
.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.tasks-section-header:hover,
.performance-header:hover { background: rgba(255,255,255,0.02); }

.tasks-section-title,
.performance-title,
.custom-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tasks-section-title svg,
.performance-title svg,
.custom-title svg { width: 20px; height: 20px; }

.tasks-section-title svg { stroke: #00FF94; }
.performance-title svg { stroke: #f97316; }
.custom-title svg { stroke: #a855f7; }

.tasks-section-title span,
.performance-title span,
.custom-title span {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #e6edf3;
}

.tasks-section-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.tasks-section-toggle svg { width: 16px; height: 16px; stroke: #8b949e; }


.streak-section {
    background: rgba(22, 27, 34, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 15px;
    padding: 16px;
}

.streak-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.streak-flame {
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flame-icon {
    width: 40px;
    height: 40px;
    animation: flicker 0.5s infinite alternate;
}

.flame-icon.level-1 { color: #f97316; }
.flame-icon.level-2 { color: #3b82f6; }
.flame-icon.level-3 { color: #a855f7; }
.flame-icon.level-4 { color: #fbbf24; }

@keyframes flicker {
    0% { transform: scale(1) rotate(-2deg); opacity: 1; }
    100% { transform: scale(1.05) rotate(2deg); opacity: 0.9; }
}

.streak-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.3;
}

.streak-glow.level-1 { background: #f97316; }
.streak-glow.level-2 { background: #3b82f6; }
.streak-glow.level-3 { background: #a855f7; }
.streak-glow.level-4 { background: #fbbf24; }

.streak-info { flex: 1; }

.streak-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
}

.streak-value.level-1 { color: #f97316; }
.streak-value.level-2 { color: #3b82f6; }
.streak-value.level-3 { color: #a855f7; }
.streak-value.level-4 { color: #fbbf24; }

.streak-label {
    font-size: 13px;
    color: #8b949e;
    margin-top: 2px;
}

.streak-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 6px;
}

.streak-badge.level-1 { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.streak-badge.level-2 { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.streak-badge.level-3 { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.streak-badge.level-4 { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

.streak-best { text-align: right; }

.streak-best-label {
    font-size: 10px;
    color: #484f58;
    text-transform: uppercase;
}

.streak-best-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #8b949e;
}


.tasks-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 8px;
}

.tasks-count { font-size: 13px; color: #8b949e; }
.tasks-count strong { color: #00FF94; font-weight: 600; }

.tasks-xp {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #58a6ff;
}


.tasks-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    margin: 0 16px 8px;
    border-radius: 4px;
    overflow: hidden;
}

.tasks-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00FF94, #58a6ff);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.tasks-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


.progress-message {
    text-align: center;
    font-size: 12px;
    color: #8b949e;
    padding: 0 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.progress-message.almost {
    color: #00FF94;
    animation: pulse-text 1.5s infinite;
}

.progress-message.complete {
    color: #00FF94;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}


.task-item {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}

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

.task-item:hover {
    background: rgba(255,255,255,0.02);
}

.task-main {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}


.task-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 14px;
    flex-shrink: 0;
}

.task-checkbox input { opacity: 0; width: 0; height: 0; position: absolute; }

.task-checkmark {
    position: absolute;
    top: 0; left: 0;
    width: 24px; height: 24px;
    background: transparent;
    border: 2px solid #484f58;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-checkmark svg { width: 14px; height: 14px; stroke: transparent; stroke-width: 3; transition: stroke 0.2s; }

.task-checkbox input:checked + .task-checkmark {
    background: #00FF94;
    border-color: #00FF94;
    animation: checkBounce 0.4s ease;
}

@keyframes checkBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.task-checkbox input:checked + .task-checkmark svg { stroke: #000; }


.task-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.task-icon svg { width: 20px; height: 20px; }


.task-info { flex: 1; min-width: 0; }

.task-name {
    font-weight: 500;
    font-size: 14px;
    color: #e6edf3;
    margin-bottom: 2px;
}

.task-item.completed .task-name { color: #8b949e; }

.task-sub-preview {
    font-size: 11px;
    color: #484f58;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-sub-preview.has-selection { color: #00FF94; }


.task-xp {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #58a6ff;
    margin-right: 10px;
    position: relative;
}

.task-item.completed .task-xp { color: #00FF94; }

.xp-flyout {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #00FF94;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.xp-flyout.active {
    animation: flyUp 1s ease forwards;
}

@keyframes flyUp {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
}


.task-expand {
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.task-expand svg { width: 16px; height: 16px; stroke: #484f58; }
.task-item.expanded .task-expand { transform: rotate(180deg); }


.task-sub-options {
    display: none;
    padding: 0 16px 14px 86px;
}

.task-item.expanded .task-sub-options { display: block; }

.sub-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sub-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: #8b949e;
}

.sub-option:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}

.sub-option.selected {
    border-color: #00FF94;
    background: rgba(0, 255, 148, 0.15);
    color: #00FF94;
}

.sub-option-check {
    width: 14px; height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-option.selected .sub-option-check {
    background: #00FF94;
    border-color: #00FF94;
}

.sub-option.selected .sub-option-check svg { stroke: #000; }
.sub-option-check svg { width: 10px; height: 10px; stroke: transparent; stroke-width: 3; }


.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.custom-count {
    font-size: 11px;
    color: #8b949e;
    margin-left: 8px;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.btn-icon {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}

.btn-icon svg { width: 18px; height: 18px; stroke: #8b949e !important; display: block; }

.btn-icon.add {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.15);
}

.btn-icon.add:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.25);
    transform: scale(1.05);
}

.btn-icon.add svg { stroke: #c084fc !important; transition: transform 0.3s; }


.btn-icon.add.active svg { transform: rotate(45deg); }


.habit-add-inline {
    padding: 0 16px 16px;
    animation: fadeIn 0.2s ease;
}

.habit-add-inline.hidden {
    display: none;
}

.habit-add-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.habit-add-input {
    flex: 1;
    padding: 12px 14px;
    background: rgba(13, 17, 23, 0.9) !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #e6edf3;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.habit-add-input::placeholder {
    color: #484f58;
}

.habit-add-input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(13, 17, 23, 0.95) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.habit-add-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.habit-add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.habit-add-btn:active {
    transform: scale(0.95);
}

.habit-add-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff !important;
}

.habit-cancel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.habit-cancel-btn:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
}

.habit-cancel-btn svg {
    width: 18px;
    height: 18px;
    stroke: #8b949e !important;
}


.custom-task-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s;
    position: relative;
}

.custom-task-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s;
}

.custom-task-item.completed::before {
    background: #a855f7;
}

.custom-task-item:last-child { border-bottom: none; }

.custom-task-item:hover { background: rgba(255,255,255,0.02); }

.custom-task-info {
    flex: 1;
    margin-left: 14px;
    min-width: 0;
}

.custom-task-name {
    font-size: 14px;
    color: #e6edf3;
    display: block;
}

.custom-task-item.completed .custom-task-name {
    color: #8b949e;
    text-decoration: line-through;
}

.custom-task-actions { display: flex; gap: 4px; }

.habit-action {
    width: 32px; height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}


.habit-action:hover { background: rgba(255,255,255,0.05); }
.habit-action:active { background: rgba(255,255,255,0.08); }
.habit-action svg { width: 18px; height: 18px; stroke: #c9d1d9; fill: none; stroke-width: 1.5; transition: all 0.2s; display: block; }
.habit-action:hover svg { stroke: #e6edf3; }
.habit-action.delete svg { stroke: #f85149; }
.habit-action.delete:hover svg,
.habit-action.delete:active svg { stroke: #ff7b72; filter: drop-shadow(0 0 4px rgba(248, 81, 73, 0.5)); }


.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.empty-icon svg {
    width: 40px;
    height: 40px;
    stroke: #a855f7;
    opacity: 0.7;
}

.empty-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #e6edf3;
    margin-bottom: 8px;
}

.empty-text {
    color: #8b949e;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.empty-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.empty-suggestion {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s;
}

.empty-suggestion:hover {
    border-color: #a855f7;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.btn-create-habit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: none;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-create-habit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.btn-create-habit svg {
    width: 18px;
    height: 18px;
}


.performance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}

.stat-card {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
}

.stat-icon {
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-card:nth-child(1) .stat-icon svg { fill: #f97316; stroke: #f97316; }
.stat-card:nth-child(2) .stat-icon svg { stroke: #58a6ff; }
.stat-card:nth-child(3) .stat-icon svg { stroke: #00FF94; }

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
}

.stat-card:nth-child(1) .stat-value { color: #f97316; }
.stat-card:nth-child(2) .stat-value { color: #58a6ff; }
.stat-card:nth-child(3) .stat-value { color: #00FF94; }

.stat-label { font-size: 10px; color: #8b949e; margin-top: 4px; }


.weekly-chart { padding: 0 16px 16px; }

.chart-title {
    font-size: 11px;
    color: #8b949e;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 80px;
    gap: 8px;
}

.chart-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.chart-bar {
    width: 100%;
    max-width: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    height: 60px;
}

.chart-bar-fill {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, #00FF94, #58a6ff);
    border-radius: 4px;
    transition: height 0.5s ease;
}

.chart-bar-label { font-size: 10px; color: #484f58; font-weight: 500; }
.chart-bar-container.today .chart-bar-label { color: #00FF94; }


.task-breakdown { padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); }

.breakdown-title {
    font-size: 11px;
    color: #8b949e;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.breakdown-item:last-child { margin-bottom: 0; }

.breakdown-icon {
    width: 24px; height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breakdown-icon svg { width: 14px; height: 14px; }

.breakdown-info { flex: 1; }
.breakdown-name { font-size: 12px; color: #e6edf3; margin-bottom: 4px; }

.breakdown-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.breakdown-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }

.breakdown-percent {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #8b949e;
    min-width: 40px;
    text-align: right;
}


.undo-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #161b22;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 20px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    animation: slideUp 0.3s ease;
}

.undo-toast.active {
    display: flex;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.undo-toast p {
    font-size: 13px;
    color: #e6edf3;
    margin: 0;
}

.undo-btn {
    background: none;
    border: none;
    color: #a855f7;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.undo-btn:hover {
    background: rgba(168, 85, 247, 0.15);
}

.undo-timer {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
}

.undo-timer::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #a855f7;
    border-right-color: transparent;
    border-bottom-color: transparent;
    animation: countdown 5s linear forwards;
}

@keyframes countdown {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.tasks-loading {
    text-align: center;
    padding: 40px;
    color: #8b949e;
}

.tasks-loading .spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #00FF94;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

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

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


.hidden { display: none !important; }


.perf-level { margin-bottom: 12px; }
.perf-level-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #8b949e; font-size: 11px; margin-bottom: 5px; }
.perf-level-lab b { color: #fff; font-family: 'Rajdhani', sans-serif; }
.perf-level-lab #perf-level-need { color: #8b5cf6; }
.perf-level-track { height: 7px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.07); }
.perf-level-fill { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00FF94, #58a6ff); box-shadow: 0 0 12px rgba(0,255,148,0.22); }

.perf-cmp-title { color: #8b949e; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 7px; }
.perf-cmp { display: grid; gap: 6px; margin-bottom: 11px; }
.perf-cmp-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; background: rgba(255,255,255,0.03); font-size: 12px; color: #c9d1d9; }
.perf-cmp-row .cmp-old { color: #8b949e; font-size: 11px; }
.perf-cmp-row .cmp-now { color: #fff; font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; }
.perf-cmp-row .cmp-var { font-size: 11px; font-weight: 800; color: #8b949e; min-width: 54px; text-align: right; }
.perf-cmp-row .cmp-var.up { color: #00FF94; }
.perf-cmp-row .cmp-var.down { color: #ff6b6b; }

.perf-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,0.06); color: #8b949e; font-size: 11px; margin-bottom: 6px; }
.perf-foot b { color: #f59e0b; font-family: 'Rajdhani', sans-serif; }
.perf-foot .pf-missions b { color: #fff; }


#performance-section { border-color: rgba(0, 255, 148, 0.15); }
.performance-title svg {
    stroke: #00FF94;
    width: 32px; height: 32px;
    padding: 6px;
    box-sizing: border-box;
    background: rgba(0, 255, 148, 0.09);
    border: 1px solid rgba(0, 255, 148, 0.22);
    border-radius: 11px;
}
.performance-kicker {
    color: #58a6ff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}
.performance-head-right { display: flex; align-items: center; gap: 8px; }
.perf-level-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.perf-cmp-row { gap: 12px; }
.perf-cmp-row .cmp-old { min-width: 44px; text-align: right; }
.perf-cmp-row .cmp-now { font-size: 16px; min-width: 44px; text-align: right; }

.perf-strava-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -3px 0 11px;
    padding: 9px 10px;
    border: 1px dashed rgba(252, 76, 2, 0.35);
    border-radius: 10px;
    background: rgba(252, 76, 2, 0.06);
}
.perf-strava-badge .psb-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fc4c02;
    font-size: 11px;
    font-weight: 700;
}
.perf-strava-badge .psb-pill svg { width: 14px; height: 14px; fill: none; stroke: #fc4c02; stroke-width: 1.7; }
.perf-strava-badge .psb-cta {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(252, 76, 2, 0.4);
    border-radius: 9px;
    background: rgba(252, 76, 2, 0.12);
    color: #fc4c02;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}


#performance-content { padding: 14px 16px 0; }
#performance-content .task-breakdown { margin: 0 -16px; }


.perf-cmp-row .cmp-scope { color: #8b949e; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }


.btn-icon.add {
    width: auto;
    min-height: 40px;
    padding: 0 14px 0 11px;
    gap: 6px;
    border: none;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}
.btn-icon.add:hover {
    border: none;
    background: linear-gradient(135deg, #b06cf9, #8b4bf0);
}
.btn-icon.add svg { stroke: #ffffff !important; }
.btn-icon.add .add-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.btn-icon.add.active .add-label { display: none; }
