* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f7f7fa;
    --surface: #ffffff;
    --surface-soft: #fcfcff;
    --border: #ececf3;
    --text-main: #1c1d21;
    --text-sub: #8f95a3;
    --purple: #5b3df5;
    --purple-soft: #f3efff;
    --blue: #4c57e8;
    --orange: #f5a000;
    --green: #22c55e;
    /* AI 코치 설명/요약/채팅 텍스트의 줄높이를 첫 번째 헤더 설명 기준으로 통일한다. */
    --ai-coach-text-line-height: 16.8px;
}

body {
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    background: var(--bg);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

.page-bg {
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 32px;
}

.main-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 14px 40px;
}

.header-wrap {
    margin-bottom: 8px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 16px;
    border-bottom: 1px solid #e8e8ef;
}

.brand-area {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0;
}

.brand-logo-image {
    display: block;
    height: 80px;
    width: auto;
    object-fit: contain;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6e7380;
    font-weight: 600;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 999px;
    border: 1px solid #e5e7ef;
    background: #fff;
    color: #5f6572;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-pill--primary {
    border-color: transparent;
    background: var(--purple);
    color: #fff;
    box-shadow: 0 10px 18px rgba(91, 61, 245, 0.25);
}

.auth-pill:hover {
    background: var(--purple-soft);
    border-color: #d9dcf0;
    color: var(--purple);
    transform: translateY(-1px);
}

.auth-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.18);
}

.auth-pill--primary:hover {
    border-color: transparent;
    background: #4f34df;
    color: #fff;
    box-shadow: 0 12px 22px rgba(91, 61, 245, 0.3);
}

.auth-pill--primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.18), 0 12px 22px rgba(91, 61, 245, 0.3);
}

button.auth-pill {
    cursor: pointer;
}

.nav-bar {
    border-bottom: 1px solid #ececf3;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 6px;
}

.nav-item {
    padding: 12px 24px;
    border-radius: 999px;
    color: #8e919b;
    font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
    background: var(--purple-soft);
    color: var(--purple);
}

.content-wrap {
    padding-top: 6px;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-top-grid {
    display: grid;
    grid-template-columns: 320px 320px 1fr;
    gap: 14px;
    align-items: stretch;
}

.summary-column {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.metric-card,
.progress-card {
    min-height: 158px;
    padding: 18px 18px;
    transition:
            transform 0.22s ease,
            box-shadow 0.22s ease,
            border-color 0.22s ease,
            background-color 0.22s ease;
}

.nutrition-panel,
.chart-panel {
    transition:
            transform 0.22s ease,
            box-shadow 0.22s ease,
            border-color 0.22s ease,
            background-color 0.22s ease;
}

.metric-card__header,
.progress-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-card__header {
    margin-bottom: 10px;
}

.progress-card__header {
    margin-bottom: 6px;
}

.metric-card__title,
.progress-card__title {
    color: #9aa0ad;
    font-size: 14px;
    font-weight: 700;
}

.metric-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4efff;
    font-size: 16px;
    opacity: 0.9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card__icon--mint {
    background: #eefaf2;
}

.metric-card__value-row,
.streak-row {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.metric-card__value {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.metric-card__value--streak {
    font-size: 2.7rem;
}

.metric-card__unit {
    font-size: 1.3rem;
    color: #7f8695;
    padding-bottom: 4px;
}

.metric-card__meta {
    margin-top: 6px;
    color: #9aa0ad;
    font-size: 13px;
    font-weight: 600;
}

.metric-card--center {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card__center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.metric-card__center-content--raised {
    transform: translateY(-12%);
}

.metric-card--center .metric-card__value {
    font-size: 2.6rem;
}

.metric-card--center .streak-row {
    justify-content: center;
}

.metric-card--center .metric-card__meta {
    text-align: center;
}

.metric-card__center-content--weight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.metric-card__center-content--weight .metric-card__value {
    font-size: 2.55rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.metric-card__goal-text {
    margin-top: 2px;
    font-size: 0.82rem;
    line-height: 1.15;
    font-weight: 600;
    color: #8f95a3;
}

.metric-card__meta--weight {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

.metric-card__meta--muted {
    color: #9aa0ad;
}

.metric-card__meta--accent {
    color: #4c57e8;
    font-weight: 700;
}

.metric-card__meta--danger {
    color: #ef4444;
    font-weight: 700;
}

/* progress card */
.progress-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.progress-card__chart-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 2px auto 0;
}

.progress-card__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-card__center strong {
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 800;
}

.progress-card__center span {
    margin-top: 3px;
    font-size: 11px;
    color: #8f95a3;
    font-weight: 700;
}

.progress-card__meta {
    margin-top: 8px;
    text-align: center;
    color: #8f95a3;
    font-size: 12px;
    font-weight: 700;
}

.progress-card__chart-wrap--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 124px;
    padding: 2px 0 0;
}

.progress-card__empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.progress-card__empty-ring {
    width: 82px;
    height: 82px;
    border: 5px solid #d9dce3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    box-sizing: border-box;
}

.progress-card__empty-label {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.progress-card__meta--muted {
    color: #b0b7c3;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
}

/* nutrition / chart */
.nutrition-panel {
    padding: 18px 20px;
    min-height: 430px;
}

.nutrition-panel__title,
.chart-panel__title {
    color: #8e94a1;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}

.nutrition-panel__body {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: 16px;
    height: calc(100% - 30px);
}

.nutrition-panel__chart-wrap {
    position: relative;
    min-height: 220px;
}

.nutrition-panel__legend {
    display: flex;
    gap: 34px;
    justify-content: center;
    flex-wrap: wrap;
}

.macro-item {
    text-align: center;
    min-width: 76px;
}

.macro-item__label {
    display: block;
    margin-bottom: 6px;
    color: #8f95a3;
    font-size: 15px;
    font-weight: 700;
}

.macro-item strong {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.macro-item--carb strong {
    color: var(--blue);
}

.macro-item--fat strong {
    color: var(--orange);
}

.macro-item--protein strong {
    color: var(--green);
}

.chart-panel {
    min-height: 380px;
    padding: 18px 22px 18px;
}

.chart-panel__body {
    height: 310px;
}

/* hover */
.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(91, 61, 245, 0.08);
    border-color: #e4defd;
}

.hover-card:hover .metric-card__icon {
    transform: scale(1.06);
}

.progress-card::after,
.metric-card::after,
.nutrition-panel::after,
.chart-panel::after {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(91, 61, 245, 0.06) 0%, rgba(91, 61, 245, 0) 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.progress-card:hover::after,
.metric-card:hover::after,
.nutrition-panel:hover::after,
.chart-panel:hover::after {
    opacity: 1;
}

.progress-card__chart-wrap canvas,
.nutrition-panel__chart-wrap canvas,
.chart-panel__body canvas {
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.progress-card:hover .progress-card__chart-wrap canvas {
    transform: scale(1.03);
}

.nutrition-panel:hover .nutrition-panel__chart-wrap canvas,
.chart-panel:hover .chart-panel__body canvas {
    transform: scale(1.01);
}

/* login overlay */
.dashboard-guard {
    position: relative;
}

.dashboard-guarded--blur {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

.dashboard-login-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 20;
}

.dashboard-login-card {
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ececf3;
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(22, 27, 45, 0.12);
    padding: 28px 24px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.dashboard-login-card__icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.dashboard-login-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 800;
    color: #1c1d21;
}

.dashboard-login-card p {
    color: #8f95a3;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.dashboard-login-card__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.dashboard-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #dfe3ee;
    background: #fff;
    color: #5f6572;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dashboard-login-btn:hover {
    transform: translateY(-1px);
}

.dashboard-login-btn--primary {
    background: var(--purple);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(91, 61, 245, 0.22);
}

/* link cards */
.dashboard-link-card {
    cursor: pointer;
}

.dashboard-link-card:focus-visible {
    outline: none;
    box-shadow:
            0 0 0 3px rgba(91, 61, 245, 0.18),
            0 14px 28px rgba(91, 61, 245, 0.08);
    border-color: #e4defd;
}

/* aiCoach area*/
#aiCoachFab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff, #8b5cf6);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.28);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#aiCoachFab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(108, 99, 255, 0.35);
}

#aiCoachPanel {
    position: fixed;
    right: 28px;
    bottom: 104px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 560px;
    background: #fff;
    border: 1px solid #eceaf7;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    z-index: 9998;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#aiCoachPanel.hidden {
    display: none;
}

.ai-coach-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, #f7f5ff, #f3f0ff);
    border-bottom: 1px solid #f0edf9;
}

.ai-coach-header strong {
    display: block;
    font-size: 17px;
    color: #2d2d2d;
    margin-bottom: 4px;
}

.ai-coach-header p {
    margin: 0;
    font-size: 12px;
    /* AI 코치 헤더 설명 문장의 줄높이를 공통 기준값으로 맞춘다. */
    line-height: var(--ai-coach-text-line-height);
    color: #666;
}

#aiCoachClose {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    padding: 4px;
}

.ai-coach-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.ai-coach-summary-card {
    background: #faf9ff;
    border: 1px solid #efecfb;
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 10px;
}


.summary-title {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 700;
    color: #6c63ff;
}

.summary-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #444;
}

.ai-coach-quick-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0;
    flex-shrink: 0;
}

.ai-coach-quick-buttons button {
    border: none;
    border-radius: 10px;
    padding: 10px 8px;
    background: #f4f6fb;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ai-coach-quick-buttons button:hover {
    background: #e9edff;
    transform: translateY(-1px);
}

.ai-coach-quick-buttons button:active {
    transform: scale(0.97);
}

/* AI Coach Result */
.ai-coach-result {
    margin-top: 14px;
}

.ai-coach-placeholder,
.ai-coach-loading {
    margin: 0;
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

.ai-coach-result-box {
    margin-top: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #f8f8ff;
    border: 1px solid #ecebff;
}

.ai-coach-result-box h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #333;
}

.ai-coach-result-summary {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.ai-coach-result-box ul {
    margin: 0;
    padding-left: 18px;
}

.ai-coach-result-box li {
    margin-bottom: 6px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.ai-coach-chat {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 6px 14px 2px;
}

.ai-chat-bubble {
    max-width: 88%;
    border-radius: 16px;
    padding: 8px 12px;
    line-height: 1.4;
    font-size: 13px;
    word-break: keep-all;
    white-space: normal;
}

.ai-chat-bubble.ai {
    align-self: flex-start;
    background: #f6f5ff;
    border: 1px solid #e8e5ff;
    color: #333;
    padding: 10px 14px;
    border-radius: 16px 16px 16px 6px;
    max-width: 88%;
}

.ai-chat-bubble.user {
    align-self: flex-end;
    background: #6c63ff;
    color: #fff;
    padding: 10px 12px;
    border-radius: 16px 16px 6px 16px;
    max-width: 82%;
}

.ai-chat-name {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.8;
    line-height: 1.2;
}

/* [커밋메시지] ai coach 채팅 텍스트 줄간격(행간) 1.4로 통일 */
.ai-chat-text {
    white-space: pre-line;
    margin-top: 0;
    line-height: 1.4; /* 기존 1.35 → 1.4 */
}

/* [커밋메시지] 요약 카드 텍스트 줄간격(행간) 1.4로 통일 */
.ai-coach-summary-card .ai-chat-text {
    font-size: 12px;
    line-height: 1.4; /* 기존 1.25 → 1.4 */
    margin-top: 2px;
}

.ai-coach-summary-card .summary-title {
    margin-bottom: 2px;
    font-size: 11px;
}

.ai-chat-list {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.ai-chat-list li {
    margin-bottom: 6px;
}

.ai-coach-chat::-webkit-scrollbar {
    width: 6px;
}

.ai-coach-chat::-webkit-scrollbar-thumb {
    background: #ddd8ff;
    border-radius: 999px;
}

.ai-coach-chat {
    gap: 8px;
}

.ai-chat-text strong {
    display: block;
    margin-bottom: 6px;
}

.ai-chat-text .ai-chat-list {
    margin: 10px 0 0 0;
    padding-left: 18px;
}

.ai-chat-text .ai-chat-list li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* AI 코치 채팅 버블 텍스트의 줄높이를 헤더 설명과 동일한 1.4로 다시 고정한다. */
.ai-chat-text {
    line-height: 1.4;
}

/* AI 코치 요약 카드 텍스트의 줄높이를 헤더 설명과 동일한 1.4로 다시 고정한다. */
.ai-coach-summary-card .ai-chat-text {
    line-height: 1.4;
}

/* AI 코치 채팅 버블 본문이 첫 번째 헤더 설명과 같은 실제 줄높이를 유지하도록 다시 고정한다. */
.ai-chat-text {
    line-height: var(--ai-coach-text-line-height);
}

/* AI 코치 요약 카드 본문이 첫 번째 헤더 설명과 같은 실제 줄높이를 유지하도록 다시 고정한다. */
.ai-coach-summary-card .ai-chat-text {
    line-height: var(--ai-coach-text-line-height);
}

.is-loading-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.ai-chat-bubble.loading .ai-chat-text {
    opacity: 0.8;
}

/* responsive */
@media (max-width: 1100px) {
    .dashboard-top-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nutrition-panel {
        grid-column: 1 / -1;
        min-height: 346px;
    }
}

@media (max-width: 768px) {
    .main-shell {
        padding: 14px 10px 28px;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-inner {
        flex-wrap: wrap;
    }

    .dashboard-top-grid {
        grid-template-columns: 1fr;
    }

    .summary-column {
        grid-template-rows: unset;
    }

    .nutrition-panel__body {
        grid-template-columns: 1fr;
    }

    .nutrition-panel__legend {
        gap: 20px;
    }

    .metric-card__value {
        font-size: 2.4rem;
    }

    .brand-logo-image {
        height: 42px;
    }

    #aiCoachFab {
        right: 18px;
        bottom: 18px;
        width: 58px;
        height: 58px;
        font-size: 24px;
    }

    #aiCoachPanel {
        right: 24px;
        bottom: 100px;
        width: 340px;
        max-height: 70vh;
        overflow-y: auto;
    }
}

    .chart-panel__toolbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 14px;
    }

    .chart-range-switch {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px;
        background: #f1f3f7;
        border-radius: 999px;
        width: fit-content;
    }

    .chart-range-btn {
        border: none;
        background: transparent;
        color: #5f6675;
        border-radius: 999px;
        padding: 10px 18px;
        min-width: 72px;
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    }

    .chart-range-btn:hover {
        color: #4c57e8;
    }

    .chart-range-btn.is-active {
        background: linear-gradient(135deg, #5b6cf9 0%, #6f3ff5 100%);
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(91, 108, 249, 0.28);
    }

    .chart-range-btn:active {
        transform: scale(0.98);
    }

    .chart-series-toggle {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .chart-series-toggle label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 14px;
        border-radius: 999px;
        background: #f1f3f7;
        color: #5f6675;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
        user-select: none;
    }

.chart-series-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-series-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef1f6;
    color: #7b8394;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
            background 0.2s ease,
            color 0.2s ease,
            box-shadow 0.2s ease,
            border-color 0.2s ease,
            transform 0.15s ease,
            opacity 0.2s ease;
    user-select: none;
}

.chart-series-toggle label:hover {
    border-color: #d7ddea;
    color: #4b5563;
}

.chart-series-toggle label:has(input:checked) {
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    border-color: transparent;
}

.chart-series-toggle label:active {
    transform: scale(0.98);
}

.chart-series-toggle input[type="checkbox"] {
    display: none;
}

.series-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
    background: currentColor;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0.95;
}

.chart-series-toggle label:not(:has(input:checked)) .series-color-dot {
    opacity: 0.55;
    transform: scale(0.92);
}

/* 체중 */
.chart-series-toggle label:has([data-series-key="weightKg"]:checked) {
    background: #111111;
}

/* 목표체중 */
.chart-series-toggle label:has([data-series-key="goalWeight"]:checked) {
    background: #ef4444;
}

/* 섭취칼로리 */
.chart-series-toggle label:has([data-series-key="totalEatKcal"]:checked) {
    background: #f5a000;
}

/* 목표섭취칼로리 */
.chart-series-toggle label:has([data-series-key="goalEatKcal"]:checked) {
    background: #f5a000;
}

/* 소모칼로리 */
.chart-series-toggle label:has([data-series-key="totalBurnedKcal"]:checked) {
    background: #5b3df5;
}

/* 목표소모칼로리 */
.chart-series-toggle label:has([data-series-key="goalBurnedKcal"]:checked) {
    background: #5b3df5;
}

/* 탄수화물 */
.chart-series-toggle label:has([data-series-key="totalCarbG"]:checked) {
    background: #4c57e8;
}

/* 지방 */
.chart-series-toggle label:has([data-series-key="totalFatG"]:checked) {
    background: #f5a000;
}

/* 단백질 */
.chart-series-toggle label:has([data-series-key="totalProteinG"]:checked) {
    background: #22c55e;
}

/* color dot */
.series-color-dot--weight {
    color: #111111;
}

.series-color-dot--goal-weight {
    color: #ef4444;
}

.series-color-dot--eat {
    color: #f5a000;
}

.series-color-dot--goal-eat {
    color: #f5a000;
}

.series-color-dot--burn {
    color: #5b3df5;
}

.series-color-dot--goal-burn {
    color: #5b3df5;
}

.series-color-dot--carb {
    color: #4c57e8;
}

.series-color-dot--fat {
    color: #f5a000;
}

.series-color-dot--protein {
    color: #22c55e;
}

    .chart-panel__body--large {
        min-height: 420px;
    }