﻿#june-challenge-root {
    width: 100%;
}

    #june-challenge-root .jc-page {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 16px 20px 28px !important;
        box-sizing: border-box;
    }

    #june-challenge-root .jc-kpi-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 16px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #june-challenge-root .jc-kpi-card,
    #june-challenge-root .jc-channel-card,
    #june-challenge-root .jc-chart-card,
    #june-challenge-root .jc-state-card {
        box-sizing: border-box;
        background: linear-gradient(145deg, var(--lv-background-accent, #000000), var(--lv-hover-accent, #333333)) !important;
        color: #fff;
        border: 0 !important;
        border-radius: 14px !important;
        box-shadow: 0 7px 18px rgba(15, 23, 42, .16) !important;
    }

    #june-challenge-root .jc-kpi-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 22px !important;
        min-width: 0 !important;
        min-height: 180px !important;
        height: 100% !important;
        padding: 28px 30px !important;
        text-align: left !important;
    }

    #june-challenge-root .jc-kpi-card--split {
        display: grid !important;
        grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr) !important;
        align-items: center !important;
        column-gap: 24px !important;
    }

    #june-challenge-root .jc-kpi-content,
    #june-challenge-root .jc-kpi-split-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        padding: 0 20px !important;
    }

        #june-challenge-root .jc-kpi-split-col + .jc-kpi-split-col {
            min-height: 112px;
            padding-left: 24px !important;
            border-left: 1px solid #353a3e !important;
        }

    #june-challenge-root .jc-kpi-icon,
    #june-challenge-root .jc-channel-icon {
        display: grid !important;
        place-items: center !important;
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        flex: 0 0 54px !important;
        margin: 0 !important;
        color: #aeb4bc;
        border: 1px solid #8b929b !important;
        border-radius: 50% !important;
    }

        #june-challenge-root .jc-kpi-icon svg,
        #june-challenge-root .jc-channel-icon svg {
            width: 29px !important;
            height: 29px !important;
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

    #june-challenge-root .jc-target-icon--good {
        color: #22d375 !important;
        border-color: #22d375 !important;
    }

    #june-challenge-root .jc-target-icon--bad {
        color: #ef4444 !important;
        border-color: #ef4444 !important;
    }

    #june-challenge-root .jc-kpi-label,
    #june-challenge-root .jc-channel-metric-label {
        color: #c3c6ca !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    #june-challenge-root .jc-kpi-value {
        color: #f8fafc;
        font-size: clamp(32px, 2.45vw, 44px) !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: -.025em;
        white-space: nowrap;
        max-width: 100%;
    }

    /* Only the target display is changed. */
    #june-challenge-root .jc-kpi-meta {
        display: grid !important;
        grid-template-columns: max-content max-content !important;
        align-items: baseline !important;
        column-gap: 6px !important;
        row-gap: 5px !important;
        color: #c3c6ca;
        line-height: 1.2;
        white-space: nowrap;
    }

    #june-challenge-root .jc-target-label {
        grid-column: 1 / -1;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        color: #92989f !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

        #june-challenge-root .jc-target-label::before {
            content: '';
            width: 15px;
            height: 2px;
            flex: 0 0 15px;
            background: #22d375;
            border-radius: 999px;
        }

    #june-challenge-root .jc-target-value {
        color: #f1f3f5 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        font-variant-numeric: tabular-nums;
    }

    #june-challenge-root .jc-target-amount {
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }

    #june-challenge-root .jc-target-currency {
        color: #8f969e !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    #june-challenge-root .jc-currency {
        margin-left: 7px;
        color: #aeaca5 !important;
        font-size: 13px !important;
        font-weight: 700;
    }

    #june-challenge-root .jc-pace--good,
    #june-challenge-root .jc-margin--good,
    #june-challenge-root .jc-variance--good {
        color: #22d375 !important;
    }

    #june-challenge-root .jc-pace--warn {
        color: #f7b718 !important;
    }

    #june-challenge-root .jc-pace--bad,
    #june-challenge-root .jc-margin--bad,
    #june-challenge-root .jc-variance--bad {
        color: #ef4444 !important;
    }

    #june-challenge-root .jc-split-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #june-challenge-root .jc-channel-card {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        padding: 20px !important;
    }

    #june-challenge-root .jc-channel-head {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        min-height: 54px;
        margin: 0 0 16px !important;
        padding: 0 !important;
        border: 0 !important;
    }

    #june-challenge-root .jc-channel-title {
        color: #f8fafc;
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    #june-challenge-root .jc-margin-summary {
        margin-left: auto !important;
        min-width: 190px;
        padding-left: 20px !important;
        border-left: 1px solid #353a3e !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 5px !important;
        white-space: nowrap !important;
    }

    #june-challenge-root .jc-margin-summary-label {
        color: #92989f !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    #june-challenge-root .jc-margin-summary-row {
        display: flex !important;
        align-items: baseline !important;
        gap: 10px !important;
    }

    #june-challenge-root .jc-margin-summary-value {
        font-size: 22px !important;
        font-weight: 750 !important;
        line-height: 1 !important;
        letter-spacing: -.02em;
    }

    #june-challenge-root .jc-margin-summary-status {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        font-size: 17px !important;
        font-weight: 650 !important;
        line-height: 1 !important;
    }

    #june-challenge-root .jc-margin-trend {
        font-size: 16px !important;
        line-height: .8 !important;
    }

    #june-challenge-root .jc-channel-metrics {
        display: grid !important;
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.3fr) minmax(130px, .72fr) !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #june-challenge-root .jc-channel-metric {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        min-height: 82px !important;
        margin: 0 !important;
        padding: 15px 17px !important;
        background: #292f33 !important;
        border: 0 !important;
        border-radius: 9px !important;
        text-align: left !important;
    }

    #june-challenge-root .jc-channel-metric-value {
        color: #f8fafc;
        font-size: clamp(20px, 1.55vw, 26px) !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        white-space: nowrap;
        max-width: 100%;
    }

    #june-challenge-root .jc-chart-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 20px 24px !important;
        overflow: hidden !important;
    }

    #june-challenge-root .jc-chart-toolbar {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 1rem !important;
        flex-wrap: wrap !important;
    }

    #june-challenge-root .jc-chart-toolbar-title {
        display: grid;
        gap: 6px;
        min-width: 0;
    }

    #june-challenge-root .jc-chart-title {
        margin: 0;
        font-size: 1.35rem;
        font-weight: 700;
        letter-spacing: -0.03em;
        color: #f8fafc;
    }

    #june-challenge-root .jc-chart-subtitle {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 500;
        color: #c3c6ca;
    }

    #june-challenge-root .jc-chart-stage {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        min-width: 0;
    }

    #june-challenge-root .jc-chart-panel {
        height: min(52vh, 520px);
        min-height: 420px;
        position: relative;
        overflow: hidden;
        cursor: grab;
        touch-action: none;
        overscroll-behavior: contain;
    }

    #june-challenge-root .jc-chart-panel:active {
        cursor: grabbing;
    }

    #june-challenge-root .jc-chart-panel canvas {
        width: 100% !important;
        height: 100% !important;
    }

    #june-challenge-root .jc-chart-empty {
        padding: 3rem 1rem;
        text-align: center;
        font-size: 15px;
        font-weight: 500;
        color: #c3c6ca;
    }

    #june-challenge-root .jc-state-card {
        padding: 24px 28px !important;
        color: #c3c6ca !important;
    }

    #june-challenge-root .jc-state-card p {
        margin: 0;
    }

    #june-challenge-root .jc-skeleton {
        display: block;
        overflow: hidden;
        position: relative;
        flex: 0 0 auto;
        max-width: 100%;
        background: #343a40;
        border-radius: 6px;
    }

        #june-challenge-root .jc-skeleton::after {
            content: '';
            position: absolute;
            inset: 0;
            transform: translateX(-100%);
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent);
            animation: jc-skeleton-shimmer 1.35s ease-in-out infinite;
        }

    #june-challenge-root .jc-skeleton--icon,
    #june-challenge-root .jc-skeleton--channel-icon {
        width: 54px;
        height: 54px;
        border: 1px solid #515860;
        border-radius: 50%;
        background: #292f34;
    }

    #june-challenge-root .jc-skeleton--label {
        width: 92px;
        height: 12px;
    }

    #june-challenge-root .jc-skeleton--value {
        width: min(230px, 85%);
        height: 40px;
        border-radius: 8px;
    }

    #june-challenge-root .jc-skeleton--percentage {
        width: 106px;
    }

    #june-challenge-root .jc-skeleton--meta {
        width: 142px;
        height: 31px;
        margin-top: 1px;
    }

    #june-challenge-root .jc-skeleton--title {
        width: 128px;
        height: 22px;
    }

    #june-challenge-root .jc-skeleton--small-label {
        width: 76px;
        height: 9px;
    }

    #june-challenge-root .jc-skeleton--summary {
        width: 150px;
        height: 22px;
    }

    #june-challenge-root .jc-skeleton--metric-value {
        width: min(145px, 88%);
        height: 26px;
    }

    #june-challenge-root .jc-chart-card--loading {
        min-height: 390px;
    }

    #june-challenge-root .jc-skeleton--chart-title {
        width: 190px;
        height: 22px;
        margin-bottom: 20px;
    }

    #june-challenge-root .jc-skeleton--chart-panel {
        width: 100%;
        height: 310px;
        border-radius: 10px;
    }

@keyframes jc-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    #june-challenge-root .jc-skeleton::after {
        animation: none;
    }
}

@media (max-width: 1400px) {
    #june-challenge-root .jc-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #june-challenge-root .jc-kpi-card--split {
        grid-column: 1 / -1;
    }

    #june-challenge-root .jc-kpi-card {
        gap: 16px !important;
        padding: 24px !important;
    }

    #june-challenge-root .jc-kpi-card--split {
        grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 16px !important;
    }

    #june-challenge-root .jc-kpi-icon,
    #june-challenge-root .jc-channel-icon,
    #june-challenge-root .jc-skeleton--icon,
    #june-challenge-root .jc-skeleton--channel-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        flex-basis: 48px !important;
    }
}

@media (max-width: 1100px) {
    #june-challenge-root .jc-split-row {
        grid-template-columns: 1fr !important;
    }

    #june-challenge-root .jc-channel-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    #june-challenge-root .jc-kpi-row {
        grid-template-columns: 1fr !important;
    }

    #june-challenge-root .jc-kpi-card--split {
        grid-column: auto;
    }

    #june-challenge-root .jc-kpi-card {
        min-height: 150px !important;
    }
}

@media (max-width: 640px) {
    #june-challenge-root .jc-page {
        gap: 12px !important;
        padding: 12px !important;
    }

    #june-challenge-root .jc-kpi-card {
        min-height: 132px !important;
        padding: 18px !important;
    }

    #june-challenge-root .jc-kpi-card--split {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        column-gap: 14px !important;
    }

        #june-challenge-root .jc-kpi-card--split .jc-kpi-split-col:last-child {
            grid-column: 2;
            min-height: auto;
            margin-top: 12px !important;
            padding: 0 !important;
            border: 0 !important;
            padding: 0 20px !important;
        }

    #june-challenge-root .jc-channel-metrics {
        grid-template-columns: 1fr !important;
    }

    #june-challenge-root .jc-channel-head {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 10px 12px !important;
    }

    #june-challenge-root .jc-margin-summary {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
        margin-left: 0 !important;
        padding: 12px 0 0 !important;
        border-left: 0 !important;
        border-top: 1px solid #353a3e !important;
    }

    #june-challenge-root .jc-margin-summary-value {
        font-size: 22px !important;
    }

    #june-challenge-root .jc-margin-summary-status {
        font-size: 14px !important;
    }

    #june-challenge-root .jc-channel-metric {
        min-height: 72px !important;
    }

    #june-challenge-root .jc-channel-metrics {
        gap: 10px !important;
    }

    #june-challenge-root .jc-kpi-meta {
        column-gap: 5px !important;
        row-gap: 4px !important;
    }

    #june-challenge-root .jc-target-label,
    #june-challenge-root .jc-target-currency {
        font-size: 9px !important;
    }

    #june-challenge-root .jc-target-value {
        font-size: 14px !important;
    }

    #june-challenge-root .jc-kpi-value {
        font-size: clamp(27px, 9vw, 36px) !important;
    }

    #june-challenge-root .jc-channel-metric-value {
        font-size: clamp(20px, 7vw, 26px) !important;
    }

    #june-challenge-root .jc-chart-card {
        padding: 16px !important;
        overflow: hidden;
    }

    #june-challenge-root .jc-chart-title {
        font-size: 1.15rem;
    }

    #june-challenge-root .jc-chart-panel,
    #june-challenge-root .jc-skeleton--chart-panel {
        height: 360px;
        min-height: 360px;
    }

    #june-challenge-root .jc-chart-panel {
        min-width: 0 !important;
        width: 100% !important;
    }

    #june-challenge-root .jc-chart-card--loading {
        min-height: 300px;
    }

    #june-challenge-root .jc-skeleton--chart-panel {
        height: 220px;
    }
}

@media (max-width: 380px) {
    #june-challenge-root .jc-page {
        padding: 8px !important;
    }

    #june-challenge-root .jc-kpi-card {
        gap: 12px !important;
        padding: 16px 14px !important;
    }

        #june-challenge-root .jc-kpi-card:not(.jc-kpi-card--split) {
            align-items: flex-start !important;
            flex-direction: column !important;
        }
}