/* ===== Projects 페이지 (devpost 스타일) ===== */

/* Layout: sidebar + list */
.legal-container:has(.projects-layout) {
    max-width: 1300px;
}
.projects-layout {
    display: flex;
    gap: 30px;
    margin-top: 24px;
}

/* ===== Sidebar Filters ===== */
#search-sidebar {
    flex-shrink: 0;
    width: 240px;
}

#expandable-filters h4 {
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px;
    text-transform: uppercase;
}

#expandable-filters h4 .material-symbols-outlined,
#expandable-filters h4 .filter-label {
    display: none;
}

#expandable-filters h4::before {
    content: "Filters";
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' -25,
    'opsz' 24;
}

.btn-new-project .short-label { display: none; }

.mobile-only-icon,
.material-symbols-outlined.mobile-only-icon { display: none !important; }

/* 데스크탑: clone 숨김 (사이드바 원본만 표시) */
.filter-toggle-in-card { display: none !important; }

.post-sort-menu-item--filter-toggle {
    display: none !important;
}
@media (max-width: 768px) {
    .post-sort-menu-item--filter-toggle {
        display: flex !important;
    }
}

#facets h6 {
    font-family: "Futura", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    -webkit-font-smoothing: antialiased;
    color: #000;
    text-transform: uppercase;
    margin: 24px 0 0;
    letter-spacing: 0.02em;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 8px 10px;
}

#facets h6 {
    height: 42px;
    line-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

#facets h6:first-child {
    margin-top: 0;
}

#facets h6 {
    display: flex;
    align-items: center;
}

#facets h6 .facet-arrow {
    margin-left: auto;
    color: #000;
    font-size: 14px;
}

.editorial-search-box {
    position: relative;
    display: flex;
    justify-content: center;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: none;
    padding: 6px 10px 12px;
}

.editorial-search-box .search-input {
    width: 196px;
    padding: 8px 30px 8px 0;
    border: none;
    border-bottom: 1px solid #E8E8E8;
    border-radius: 0;
    background-color: transparent;
    color: #212529;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.editorial-search-box .search-input::placeholder {
    color: #ADB5BD;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.editorial-search-box .search-input:focus {
    border-bottom: 1px solid #000;
}

.editorial-search-box .search-btn {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-40%);
    background: none;
    border: none;
    padding: 0;
    color: #868E96;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.editorial-search-box .search-btn:hover {
    color: #212529;
}

.facet-list {
    list-style: none;
    margin: 0;
    padding: 8px 10px 7px;
    border: 1px solid #000;
    border-top: none;
}

.facet-list li:first-child {
    padding-top: 14px;
}

.facet-list li:last-child {
    padding-bottom: 14px;
}

.facet-list li {
    padding: 2px 0;
}

#vertical-facet-list,
#skills-facet-list,
#interests-facet-list,
#investors-facet-list {
    border-top: none;
    padding: 0 10px 0 5px;
}

#vertical-facet-list .facet-scroll-inner,
#skills-facet-list .facet-scroll-inner,
#interests-facet-list .facet-scroll-inner,
#investors-facet-list .facet-scroll-inner {
    max-height: 270px;
    overflow-y: auto;
    padding: 0;
    margin-top: 0;
}

#vertical-facet-list .facet-scroll-inner li:first-child,
#skills-facet-list .facet-scroll-inner li:first-child,
#interests-facet-list .facet-scroll-inner li:first-child,
#investors-facet-list .facet-scroll-inner li:first-child {
    padding-top: 0;
}

#vertical-facet-list .facet-scroll-inner::-webkit-scrollbar,
#skills-facet-list .facet-scroll-inner::-webkit-scrollbar,
#interests-facet-list .facet-scroll-inner::-webkit-scrollbar,
#investors-facet-list .facet-scroll-inner::-webkit-scrollbar {
    width: 5px;
}

#vertical-facet-list .facet-scroll-inner::-webkit-scrollbar-track,
#skills-facet-list .facet-scroll-inner::-webkit-scrollbar-track,
#interests-facet-list .facet-scroll-inner::-webkit-scrollbar-track,
#investors-facet-list .facet-scroll-inner::-webkit-scrollbar-track {
    background: transparent;
}

#vertical-facet-list .facet-scroll-inner::-webkit-scrollbar-thumb,
#skills-facet-list .facet-scroll-inner::-webkit-scrollbar-thumb,
#interests-facet-list .facet-scroll-inner::-webkit-scrollbar-thumb,
#investors-facet-list .facet-scroll-inner::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 0;
}

.facet-label {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
    gap: 6px;
    padding-left: 18px;
}

.facet-label:hover {
    color: #000;
}

.facet-checkbox {
    width: 10px;
    height: 10px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #333;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #999;
    background: #fff;
}

.facet-checkbox:checked {
    background: #333;
    border-color: #333;
}

.facet-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 400;
    color: #888;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 1px 8px;
    margin-left: auto;
}

/* ===== Project list wrapper (right side) ===== */
.project-list-wrapper {
    flex: 1;
    min-width: 0;
}

/* My Project Card */
.my-project-card {
    border: 1px solid #000;
    border-radius: 0;
    height: 250px;
    overflow: hidden;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #fff;
}

.my-project-header {
    margin-bottom: 12px;
}

.my-project-title {
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #5fc1c4;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.02em;
}

.my-project-title i {
    margin-right: 4px;
}

.my-project-card .participant {
    width: auto;
    min-height: auto;
}

.my-project-actions {
    margin-left: auto;
    flex-shrink: 0;
    align-self: flex-start;
}

.btn-edit-profile {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-edit-profile:hover {
    color: #333;
    border-color: #bbb;
    background: #f5f5f5;
}

.btn-edit-profile i {
    font-size: 0.6875rem;
}

/* Send Message Button */
.btn-send-message {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #228be6;
    border: 1px solid #228be6;
    border-radius: 14px;
    text-decoration: none;
    margin-left: 8px;
    transition: background 0.15s, color 0.15s;
    vertical-align: middle;
}

.btn-send-message:hover {
    background: #228be6;
    color: #fff;
}

.btn-send-message i {
    font-size: 0.6875rem;
}

html.dark-mode .btn-send-message {
    color: #74b9ff;
    border-color: #74b9ff;
}

html.dark-mode .btn-send-message:hover {
    background: #228be6;
    color: #fff;
    border-color: #228be6;
}

/* Search input */
.search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    color: #333;
    background: #fff;
}

.search-input::placeholder {
    color: #aaa;
}

.search-input:focus {
    border-color: #999;
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, sans-serif;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    color: #333;
    border-color: #ccc;
    background: #eee;
}

.filter-btn.active {
    color: #fff;
    background: #333;
    border-color: #333;
}

/* Project list */
.project-list {
    min-width: 0;
}

.no-bullet {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inline-block {
    display: inline-block;
    margin: 0;
}

.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-list > li {
    border-bottom: 1px solid #e5e5e5;
    padding: 24px 0;
}

.project-list > li:first-child {
    padding-top: 16px;
}

/* participant card */
.participant {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 918px;
    max-width: 100%;
    min-height: 201px;
    box-sizing: border-box;
}

/* user-profile row */
.user-profile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.avatar-column {
    flex-shrink: 0;
}

.user_photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

.user-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.user-name h5 {
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.user-name h5 a {
    color: #333;
    text-decoration: none;
}

.user-name h5 a:hover {
    text-decoration: underline;
}

.role {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

.role i {
    font-size: 0.625rem;
    margin-right: 2px;
}

/* counts */
.counts {
    display: flex;
    gap: 16px;
}

.counts li {
    font-size: 0.8125rem;
    color: #666;
}

.participant-stat {
    font-weight: 600;
    color: #333;
}

.participant-stat i {
    font-size: 0.6875rem;
    margin-left: 2px;
    color: #999;
}

/* main-content (skills / interests) */
.main-content {
    padding-left: 80px;
}

.main-content .row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.main-content .columns {
    flex: 1;
    min-width: 200px;
}

.main-content h6 {
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.main-content h6 i {
    margin-right: 4px;
    color: #999;
    font-size: 0.75rem;
}

/* cp-tag */
.cp-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 400;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    line-height: 1.6;
}

.cp-tag a {
    color: #555;
    text-decoration: none;
}

.cp-tag a:hover {
    color: #000;
}

/* responsive */
@media (max-width: 768px) {
    .legal-container:has(.projects-layout) {
        padding-top: 20px;
    }
    .legal-container:has(#projectCardList) {
        padding-top: 0;
    }
    .legal-container:has(#memberList) {
        padding-top: 10px;
    }
    .legal-container:has(#projectCardList) .projects-layout,
    .legal-container:has(#memberList) .projects-layout {
        margin-top: 0;
    }
    .legal-container:has(#projectCardList) #expandable-filters.is-open #facets,
    .legal-container:has(#memberList) #expandable-filters.is-open #facets {
        margin-top: 20px;
    }
    .legal-container:has(#projectCardList) #expandable-filters h4[data-toggle-filters]:not(.filter-toggle-in-card) {
        display: none;
    }
    .legal-container:has(#memberList) #expandable-filters {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .legal-container:has(#memberList) #expandable-filters #facets {
        order: -1;
    }

    .projects-layout {
        flex-direction: column;
        gap: 10px;
    }

    #search-sidebar {
        width: 100%;
    }

    #expandable-filters h4[data-toggle-filters] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
        user-select: none;
        font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
        font-size: 0.95rem;
        font-weight: 400;
        line-height: 1.6;
        letter-spacing: -0.01em;
        color: #1a1a1a;
        text-transform: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    #expandable-filters h4[data-toggle-filters]::before {
        content: none;
    }

    #expandable-filters h4[data-toggle-filters] .material-symbols-outlined,
    #expandable-filters h4[data-toggle-filters] .filter-label {
        display: inline-flex;
        align-items: center;
    }

    #expandable-filters h4[data-toggle-filters] .material-symbols-outlined {
        font-size: 22px;
        line-height: 1;
    }

    #expandable-filters h4[data-toggle-filters][data-dropdown-handled] {
        display: none;
    }

    #expandable-filters #facets {
        display: none;
    }

    #expandable-filters.is-open #facets {
        display: block;
    }

    #toggleAllProjectsBtn #toggleAllProjectsLabel {
        display: none;
    }

    .btn-new-project .full-label,
    .btn-new-project .short-label { display: none; }

    .desktop-only-icon { display: none !important; }
    .mobile-only-icon,
    .material-symbols-outlined.mobile-only-icon { display: inline-flex !important; align-items: center; }

    #toggleAllProjectsBtn,
    .btn-new-project {
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #toggleAllProjectsBtn {
        margin-left: auto !important;
        margin-right: 5px !important;
    }

    .toggle-all-icon,
    .new-project-icon {
        font-family: 'Material Symbols Outlined' !important;
        font-size: 22px !important;
        width: auto;
        height: auto;
        line-height: 1 !important;
        vertical-align: middle;
        color: #000 !important;
        font-weight: normal !important;
        font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24 !important;
    }
    .new-project-icon {
        font-size: 24px !important;
    }
    .toggle-all-icon {
        font-size: 19px !important;
    }

    .filter-toggle-in-card {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
        user-select: none;
        font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 0.95rem;
        font-weight: 400;
        line-height: 1.6;
        letter-spacing: -0.01em;
        color: #1a1a1a;
        text-transform: none;
    }
    .filter-toggle-in-card::before {
        content: none;
    }
    .filter-toggle-in-card .material-symbols-outlined,
    .filter-toggle-in-card .filter-label {
        display: inline-flex;
        align-items: center;
    }
    .filter-toggle-in-card .material-symbols-outlined {
        font-family: 'Material Symbols Outlined' !important;
        font-size: 22px !important;
        line-height: 1 !important;
        color: #000 !important;
        font-weight: normal !important;
        font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24 !important;
    }


    .my-project-card--with-filter {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        text-align: left !important;
    }

    .project-list-wrapper {
        overflow-x: hidden;
    }

    .main-content {
        padding-left: 0;
    }

    .main-content .row {
        flex-direction: column;
        gap: 16px;
        margin-left: 0;
        margin-right: 0;
    }

    .user_photo {
        width: 48px;
        height: 48px;
    }

    .filter-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .participant {
        width: auto;
    }
}

/* ===== 다크모드 ===== */
html.dark-mode .my-project-card {
    background: #1d1d1f !important;
    border-color: #333 !important;
}
html.dark-mode .my-project-title {
    color: #5fc1c4 !important;
}
html.dark-mode .btn-edit-profile {
    background: #252527 !important;
    color: #ccc !important;
    border-color: #444 !important;
}
html.dark-mode .btn-edit-profile:hover {
    background: #333 !important;
    color: #fff !important;
}
html.dark-mode .user-name h5 a {
    color: #f5f5f7 !important;
}
html.dark-mode .role {
    color: #999 !important;
}
html.dark-mode .counts li {
    color: #999 !important;
}
html.dark-mode .participant-stat {
    color: #f5f5f7 !important;
}
html.dark-mode .participant-stat i {
    color: #666 !important;
}
html.dark-mode .main-content h6 {
    color: #f5f5f7 !important;
}
html.dark-mode .main-content h6 i {
    color: #666 !important;
}
html.dark-mode .cp-tag {
    background: #252527 !important;
    color: #ccc !important;
    border-color: #444 !important;
}
html.dark-mode .cp-tag a {
    color: #ccc !important;
}
html.dark-mode .search-input {
    background: #1d1d1f !important;
    color: #f5f5f7 !important;
    border-color: #333 !important;
}
html.dark-mode .search-input::placeholder {
    color: #666 !important;
}
html.dark-mode .filter-btn {
    background: #1d1d1f !important;
    color: #999 !important;
    border-color: #333 !important;
}
html.dark-mode .filter-btn:hover {
    background: #252527 !important;
    color: #f5f5f7 !important;
}
html.dark-mode .filter-btn.active {
    background: #f5f5f7 !important;
    color: #000 !important;
    border-color: #f5f5f7 !important;
}
html.dark-mode .project-list > li {
    background: #1d1d1f !important;
    border-color: #2a2a2a !important;
    border-radius: 8px;
    padding: 20px !important;
    margin-bottom: 12px;
}
html.dark-mode .user_photo {
    background: #333 !important;
}
html.dark-mode .participant {
    color: #f5f5f7 !important;
}
html.dark-mode .participant span,
html.dark-mode .participant li,
html.dark-mode .participant strong,
html.dark-mode .participant a {
    color: #f5f5f7 !important;
}
html.dark-mode .participant .role,
html.dark-mode .participant .role i {
    color: #888 !important;
}
html.dark-mode .participant .counts li {
    color: #999 !important;
}
html.dark-mode .participant .participant-stat i {
    color: #666 !important;
}
html.dark-mode .participant .main-content h6 i {
    color: #666 !important;
}

/* ===== Metric Card ===== */
.metric-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    gap: 40px;
    width: 1074px;
    height: 128px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}


/* 1. 좌측 타이틀 영역 */
.mc-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.mc-text {
    flex: 1;
    min-width: 300px;
}
.mc-icon {
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    flex-shrink: 0;
}
.mc-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 300px;
}
.mc-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}
.mc-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}
.mc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    color: #94a3b8;
    transition: color 0.15s, background 0.15s;
}
.mc-action-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}
html.dark-mode .mc-action-btn { color: #64748b; }
html.dark-mode .mc-action-btn:hover { color: #f5f5f7; background: #252527; }

/* 2. 지표 영역 */
.mc-metrics {
    display: grid;
    grid-template-columns: 96px 80px 110px 100px;
    align-items: center;
    gap: 32px;
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
    justify-self: end;
}

.mc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mc-stat.row-align {
    flex-direction: row;
    align-items: center;
    margin-top: -8px;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    color: #000;
    font-weight: 500;
    text-align: center;
    letter-spacing: -0.3px;
}
.text-green { color: #22c55e; }

/* 2-1. 겹치는 아바타 스택 */
.avatar-stack {
    display: flex;
    padding-left: 8px;
}
.avatar-stack img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -12px;
    object-fit: cover;
    background: #e2e8f0;
}

/* 2-2. 스파크라인 */
.sparkline {
    width: 80px;
    height: 30px;
    overflow: visible;
}

/* 2-3. CSS 도넛 차트 */
.donut-chart {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: conic-gradient(#4f46e5 calc(var(--percent) * 1%), #eef2ff 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.donut-inner {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.donut-text {
    font-size: 11px;
    color: #000;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.mc-stat-donut {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -6px;
}
.mc-stat-bottom-label {
    font-size: 11px;
    color: #000;
    font-weight: 500;
    text-align: center;
    letter-spacing: -0.3px;
}

/* 2-4. 진행도 (스테이지 바) */
.mc-stat:has(.stage-bars) {
    gap: 0;
    align-self: center;
}
.stage-header {
    font-size: 11px;
    color: #000;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}
.info-icon {
    font-size: 11px;
    color: #cbd5e1;
}
.stage-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    align-self: flex-start;
    line-height: 1.2;
    white-space: nowrap;
    margin-bottom: 4px;
}
.stage-bars {
    display: flex;
    gap: 4px;
    width: 100px;
}
.s-bar {
    flex: 1;
    height: 4px;
    background: #000;
    border-radius: 2px;
}
.s-bar.fill-green { background: #22c55e; }
.s-bar.fill-yellow { background: #eab308; }

/* 모바일 반응형: Metric Card */
@media (max-width: 992px) {
    .metric-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .mc-metrics {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-left: 0;
    }
}

/* 다크모드: Metric Card */
html.dark-mode .metric-card {
    background: #1d1d1f;
    border-color: #2a2a2a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
html.dark-mode .mc-icon {
    background: #252527;
}
html.dark-mode .mc-icon svg {
    stroke: #94a3b8;
}
html.dark-mode .mc-title {
    color: #f5f5f7;
}
html.dark-mode .mc-badge {
    background: #252527;
    color: #94a3b8;
}
html.dark-mode .stat-label {
    color: #64748b;
}
html.dark-mode .avatar-stack img {
    border-color: #1d1d1f;
}
html.dark-mode .donut-inner {
    background: #1d1d1f;
    color: #f5f5f7;
}
html.dark-mode .donut-text {
    color: #94a3b8;
}
html.dark-mode .stage-name {
    color: #f5f5f7;
}
html.dark-mode .s-bar {
    background: #333;
}
html.dark-mode .mc-stat-bottom-label {
    color: #64748b;
}

/* ===== Activity Tracker: Avatar Ring ===== */
.avatar-column {
    position: relative;
}

.avatar-ring-svg {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 72px;
    height: 72px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.avatar-ring-bg {
    fill: none;
    stroke: #e5e5e5;
    stroke-width: 2.5;
}

.avatar-ring-progress {
    fill: none;
    stroke: #333;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

@media (max-width: 768px) {
    .avatar-ring-svg {
        width: 56px;
        height: 56px;
    }
}

/* ===== Activity Tracker: Top Builder Badge ===== */
.top-builder-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #333;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1px 8px;
    white-space: nowrap;
    vertical-align: middle;
}

/* ===== Activity Tracker: Mini Dashboard ===== */
.activity-dashboard {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.activity-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    color: #666;
    white-space: nowrap;
}

.activity-chip strong {
    font-weight: 700;
    color: #333;
}

/* ===== Dark mode: Activity Tracker ===== */
html.dark-mode .avatar-ring-bg {
    stroke: #444;
}
html.dark-mode .avatar-ring-progress {
    stroke: #f5f5f7;
}
html.dark-mode .top-builder-badge {
    background: #252527 !important;
    color: #ccc !important;
    border-color: #444 !important;
}
html.dark-mode .activity-dashboard {
    border-color: #2a2a2a;
}
html.dark-mode .activity-chip {
    color: #999;
}
html.dark-mode .activity-chip strong {
    color: #f5f5f7;
}
