/*
 * Projects Module Styles
 * Prefix: proj-
 */

/* ============================================
   Variables
   ============================================ */
:root {
    --proj-accent: #6366f1;
    --proj-accent-light: rgba(99, 102, 241, 0.1);
}

/* ============================================
   Header
   ============================================ */

.proj-header-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ============================================
   Category Groups (Listing)
   ============================================ */
.proj-group {
    margin-bottom: 2.5rem;
}

.proj-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.proj-group-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary, inherit);
}

.proj-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================
   Project Card Grid (Listing)
   ============================================ */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.proj-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-base, 0.25s), box-shadow var(--transition-base, 0.25s);
    display: flex;
    flex-direction: column;
}

.proj-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
    text-decoration: none;
}

.proj-card-cover {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
}

.proj-card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--proj-accent);
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
}

/* ============================================
   Secret projects
   ============================================ */
.proj-card-secret {
    cursor: default;
    pointer-events: none;
}

.proj-card-secret:hover {
    transform: none;
    box-shadow: none;
}

.proj-card-cover-secret {
    position: relative;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55) 10px,
            rgba(0, 0, 0, 0.7) 10px,
            rgba(0, 0, 0, 0.7) 20px
        ),
        var(--bg-tertiary);
    overflow: hidden;
}

.proj-card-secret-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 3rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.35);
}

.proj-card-title-secret {
    letter-spacing: 0.15em;
    color: var(--text-muted);
    user-select: none;
    font-family: var(--font-display);
}

.proj-card-tagline-secret {
    font-style: italic;
    color: var(--text-muted);
}

.proj-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proj-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.proj-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.proj-card-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   Badges
   ============================================ */
.proj-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.proj-badge-type {
    background: var(--proj-accent-light);
    color: var(--proj-accent);
}

.proj-badge-status {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.proj-status-1 { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.proj-status-2 { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.proj-status-3 { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.proj-status-4 { background: rgba(107, 114, 128, 0.1); color: #6b7280; }
.proj-status-5 { background: rgba(107, 114, 128, 0.05); color: #9ca3af; }

.proj-badge-milestone {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* ============================================
   Progress Bar
   ============================================ */
.proj-card-progress,
.proj-detail-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.proj-card-finance {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.proj-card-finance span {
    font-weight: 600;
}

.proj-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.proj-progress-bar-lg {
    height: 8px;
    border-radius: 4px;
}

.proj-progress-fill {
    height: 100%;
    background: var(--proj-accent);
    border-radius: inherit;
    transition: width 0.4s ease;
}

.proj-progress-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 36px;
}

/* ============================================
   Back Link
   ============================================ */
.proj-back-link {
    margin-bottom: 1.5rem;
}

.proj-back-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s;
}

.proj-back-link a:hover {
    color: var(--proj-accent);
}

/* ============================================
   Detail Header
   ============================================ */
.proj-detail-header {
    margin-bottom: 2rem;
}

.proj-detail-cover {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.proj-cover-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
    border-radius: 0 0 12px 12px;
}

.proj-cover-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    overflow: hidden;
}

.proj-cover-progress-fill {
    height: 100%;
    background: var(--progress-color, #f59e0b);
    border-radius: inherit;
    transition: width 0.4s ease;
}

.proj-cover-progress-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    min-width: 36px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.proj-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.proj-detail-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.proj-detail-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.proj-detail-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

.proj-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.proj-detail-meta i {
    margin-right: 0.25rem;
}

.proj-detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.proj-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.proj-link-btn:hover {
    background: var(--accent-primary-hover, var(--accent-primary));
    transform: translateY(-1px);
    color: #fff;
}

/* ============================================
   Description
   ============================================ */
.proj-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================
   Navigation Tabs
   ============================================ */
.proj-tabs {
    display: flex;
    gap: 0.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.proj-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 9px;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.proj-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    text-decoration: none;
}

.proj-tab.active {
    color: var(--proj-accent);
    background: var(--proj-accent-light);
    font-weight: 600;
}

.proj-tab-count {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--bg-tertiary);
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
    color: var(--text-muted);
    min-width: 18px;
    text-align: center;
}

.proj-tab.active .proj-tab-count {
    background: color-mix(in srgb, var(--proj-accent) 18%, transparent);
    color: var(--proj-accent);
}

.proj-tab-panel {
    display: none;
}

.proj-tab-panel.active {
    display: block;
}

/* ============================================
   Sections
   ============================================ */
.proj-section {
    margin-bottom: 2.5rem;
}

.proj-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.proj-section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.proj-section-header .proj-section-title {
    margin-bottom: 0;
}

.proj-section-link {
    font-size: 0.9rem;
    color: var(--proj-accent);
    text-decoration: none;
    font-weight: 500;
}

.proj-section-link:hover {
    text-decoration: underline;
}

/* ============================================
   KPI Cards
   ============================================ */
.proj-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.proj-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.proj-kpi-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.proj-kpi-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.proj-kpi-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.proj-kpi-income .proj-kpi-icon { color: var(--accent-success); }
.proj-kpi-expense .proj-kpi-icon { color: var(--accent-danger); }
.proj-kpi-net .proj-kpi-icon { color: var(--accent-primary); }
.proj-kpi-count .proj-kpi-icon { color: var(--proj-accent); }

/* ============================================
   Diary Entries
   ============================================ */
.proj-diary-preview,
.proj-diary-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.proj-diary-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.proj-diary-item:first-child {
    padding-top: 0;
}

.proj-diary-item:hover {
    color: inherit;
    text-decoration: none;
}

.proj-diary-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.proj-diary-day {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--proj-accent);
    line-height: 1;
}

.proj-diary-month {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proj-diary-content {
    flex: 1;
    min-width: 0;
}

.proj-diary-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.proj-diary-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.proj-diary-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.proj-diary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proj-milestone-icon {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

/* ============================================
   Mood Indicators
   ============================================ */
.proj-mood {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    margin-top: 0.25rem;
}

.proj-mood-1 { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.proj-mood-2 { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.proj-mood-3 { background: rgba(107, 114, 128, 0.1); color: #6b7280; }
.proj-mood-4 { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.proj-mood-5 { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* ============================================
   Wiki Grid
   ============================================ */
.proj-wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.proj-wiki-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}

.proj-wiki-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
}

.proj-wiki-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.proj-wiki-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.proj-wiki-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.proj-wiki-date i {
    margin-right: 0.25rem;
}

/* ============================================
   Transaction List
   ============================================ */
.proj-tx-list {
    display: flex;
    flex-direction: column;
}

.proj-tx-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.proj-tx-type {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.proj-tx-type-1 {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
}

.proj-tx-type-2 {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

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

.proj-tx-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.proj-tx-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.proj-tx-amount {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.proj-tx-income { color: var(--accent-success); }
.proj-tx-expense { color: var(--accent-danger); }

/* ============================================
   Article (Diary Detail, Wiki Detail)
   ============================================ */
.proj-article {
    max-width: 800px;
    margin: 0 auto;
}

.proj-article-header {
    margin-bottom: 2rem;
}

.proj-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.proj-article-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.proj-article-date i {
    margin-right: 0.25rem;
}

.proj-article-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.proj-article-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.proj-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.proj-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.proj-article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Empty State
   ============================================ */
.proj-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.proj-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.proj-empty h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.proj-empty p {
    font-size: 0.95rem;
}

/* ============================================
   Dark Theme
   ============================================ */
[data-theme="dark"] .proj-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .proj-card-cover-placeholder {
    background: var(--proj-accent);
}

[data-theme="dark"] .proj-wiki-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .proj-kpi-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767.98px) {
    .proj-grid {
        grid-template-columns: 1fr;
    }

    .proj-detail-title {
        font-size: 1.8rem;
    }

    .proj-detail-cover {
        height: 160px;
    }

    .proj-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proj-tabs {
        gap: 0.25rem;
        padding: 0.25rem;
        border-radius: 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .proj-tabs::-webkit-scrollbar {
        display: none;
    }

    .proj-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .proj-article-title {
        font-size: 1.5rem;
    }

    .proj-wiki-grid {
        grid-template-columns: 1fr;
    }

    .proj-diary-thumb {
        display: none;
    }
}


/* ==========================================================================
   Timeline
   ========================================================================== */

.proj-timeline {
    --tl-rail-left: 1.25rem;
    --tl-marker-size: 2.5rem;
    --tl-rail-width: 3px;
    position: relative;
    padding: 0.5rem 0 0.5rem calc(var(--tl-rail-left) + var(--tl-marker-size) / 2 + 1.5rem);
}

.proj-timeline::before {
    content: '';
    position: absolute;
    left: calc(var(--tl-rail-left) + var(--tl-marker-size) / 2 - var(--tl-rail-width) / 2);
    top: 0;
    bottom: 0;
    width: var(--tl-rail-width);
    background: var(--border-color);
    border-radius: 2px;
}

.proj-timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.proj-timeline-item:last-child {
    padding-bottom: 0;
}

.proj-timeline-marker {
    position: absolute;
    left: calc(-1.5rem - var(--tl-marker-size) / 2);
    top: 0.75rem;
    width: var(--tl-marker-size);
    height: var(--tl-marker-size);
    border-radius: 50%;
    background: var(--proj-accent);
    border: var(--tl-rail-width) solid var(--proj-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-primary, #fff);
}

.proj-timeline-marker i {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1;
}

.proj-timeline-type-1 .proj-timeline-marker { background: #f59e0b; border-color: #f59e0b; }
.proj-timeline-type-2 .proj-timeline-marker { background: #10b981; border-color: #10b981; }
.proj-timeline-type-3 .proj-timeline-marker { background: #ef4444; border-color: #ef4444; }
.proj-timeline-type-4 .proj-timeline-marker { background: #3b82f6; border-color: #3b82f6; }
.proj-timeline-type-5 .proj-timeline-marker { background: #8b5cf6; border-color: #8b5cf6; }

.proj-timeline-connector {
    position: absolute;
    left: calc(-1.5rem);
    top: calc(0.75rem + var(--tl-marker-size) / 2);
    width: 1.5rem;
    height: var(--tl-rail-width);
}

.proj-timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.proj-timeline-content:hover {
    border-color: var(--proj-accent);
}

.proj-timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.proj-timeline-title {
    font-family: var(--font-display, inherit);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    color: var(--text);
}

.proj-timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.proj-timeline-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--proj-accent);
}

.proj-timeline-type-1 .proj-timeline-badge { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.proj-timeline-type-2 .proj-timeline-badge { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.proj-timeline-type-3 .proj-timeline-badge { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.proj-timeline-type-4 .proj-timeline-badge { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.proj-timeline-type-5 .proj-timeline-badge { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* Finance markers & rows (reuse timeline layout) */
.proj-finance-marker-pos { background: #10b981; border-color: #10b981; }
.proj-finance-marker-neg { background: #ef4444; border-color: #ef4444; }

.proj-finance-row {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.proj-finance-net {
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .proj-timeline {
        --tl-rail-left: 0.5rem;
        --tl-marker-size: 2rem;
        padding-left: calc(var(--tl-rail-left) + var(--tl-marker-size) / 2 + 1rem);
    }

    .proj-timeline-marker {
        left: calc(-1rem - var(--tl-marker-size) / 2);
    }

    .proj-timeline-marker i {
        font-size: 0.7rem;
    }

    .proj-timeline-item {
        padding-bottom: 1.5rem;
    }

    .proj-timeline-content {
        padding: 0.75rem 1rem;
    }
}
