.mdv-fm-form-curve__panel {
    background: linear-gradient(145deg, color-mix(in srgb, var(--mdfm-primary, var(--mdv-fm-color-primary, #111827)) 96%, #fff), var(--mdfm-primary, var(--mdv-fm-color-primary, #111827)));
    border: 1px solid color-mix(in srgb, var(--mdfm-primary, var(--mdv-fm-color-primary, #111827)) 70%, #fff);
    border-radius: var(--mdfm-border-radius, var(--mdv-fm-card-radius-desktop, var(--mdv-fm-component-card-radius, 8px)));
    box-shadow: 0 20px 55px color-mix(in srgb, var(--mdfm-primary, var(--mdv-fm-color-primary, #111827)) 22%, transparent);
    color: var(--mdfm-text-inverse, #fff);
    display: grid;
    gap: 22px;
    min-width: 0;
    overflow: hidden;
    padding: clamp(20px, 28px, 34px);
    position: relative;
}

.mdv-fm-form-curve__panel::before {
    background: radial-gradient(circle, color-mix(in srgb, var(--mdfm-accent, var(--mdv-fm-color-accent, #2563eb)) 45%, transparent), transparent 68%);
    content: "";
    height: 280px;
    pointer-events: none;
    position: absolute;
    right: -110px;
    top: -150px;
    width: 280px;
}

.mdv-fm-form-curve__summary {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    min-width: 0;
    position: relative;
}

.mdv-fm-form-curve__summary > span {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--mdv-fm-component-stat-radius, 6px);
    color: var(--mdfm-text-inverse-muted, rgba(255, 255, 255, .72));
    display: flex;
    flex-direction: column;
    font-size: .7rem;
    font-weight: 750;
    gap: 2px;
    letter-spacing: 0;
    padding: 13px 15px;
    text-transform: uppercase;
}

.mdv-fm-form-curve__summary strong {
    color: var(--mdfm-text-inverse, #fff);
    font-size: clamp(1.35rem, 1.675rem, 2rem);
    letter-spacing: 0;
    line-height: 1;
}

.mdv-fm-form-curve__summary .mdv-fm-form-curve__points {
    background: color-mix(in srgb, var(--mdfm-accent, var(--mdv-fm-color-accent, #2563eb)) 74%, transparent);
}

.mdv-fm-form-curve__trend {
    display: grid;
    gap: 7px;
    min-height: 100px;
    position: relative;
}

.mdv-fm-form-curve__trend-label {
    color: var(--mdfm-text-inverse-muted, rgba(255, 255, 255, .65));
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mdv-fm-form-curve__trend svg {
    height: 76px;
    overflow: visible;
    width: 100%;
}

.mdv-fm-form-curve__guide {
    fill: none;
    stroke: rgba(255, 255, 255, .1);
    stroke-width: .45;
}

.mdv-fm-form-curve__line {
    fill: none;
    stroke: var(--mdfm-accent, var(--mdv-fm-color-accent, #60a5fa));
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}

.mdv-fm-form-curve__dot {
    stroke: #fff;
    stroke-width: 1.3;
    vector-effect: non-scaling-stroke;
}

.mdv-fm-form-curve__dot--w { fill: #22c55e; }
.mdv-fm-form-curve__dot--d { fill: #f59e0b; }
.mdv-fm-form-curve__dot--l { fill: #ef4444; }

.mdv-fm-form-curve__matches {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    min-width: 0;
    position: relative;
}

.mdv-fm-form-curve__match.mdv-fm-card {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border-color: transparent;
    color: #111827;
    display: grid;
    gap: 10px;
    grid-template-areas:
        "result opponent score"
        "result meta meta";
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
    padding: 14px;
    text-decoration: none;
}

.mdv-fm-form-curve__result {
    align-items: center;
    background: #f59e0b;
    border-radius: 999px;
    color: var(--mdfm-text-inverse, #fff);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    grid-area: result;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.mdv-fm-form-curve__match--w .mdv-fm-form-curve__result { background: #16a34a; }
.mdv-fm-form-curve__match--l .mdv-fm-form-curve__result { background: #dc2626; }

.mdv-fm-form-curve__opponent {
    align-items: center;
    display: flex;
    gap: 9px;
    grid-area: opponent;
    min-width: 0;
}

.mdv-fm-form-curve__opponent strong {
    display: block;
    font-size: .86rem;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: break-word;
}

.mdv-fm-form-curve__opponent-name {
    display: block;
    min-width: 0;
}

.mdv-fm-form-curve__logo {
    flex: 0 0 auto;
    height: 34px;
    object-fit: contain;
    width: 34px;
}

.mdv-fm-form-curve__opponent .mdv-fm-card-icon {
    align-items: center;
    display: inline-flex;
    font-size: .52rem;
    justify-content: center;
}

.mdv-fm-form-curve__score {
    font-size: 1.08rem;
    font-variant-numeric: tabular-nums;
    grid-area: score;
    justify-self: end;
    letter-spacing: 0;
}

.mdv-fm-form-curve__meta {
    color: #667085;
    font-size: .68rem;
    grid-area: meta;
    min-width: 0;
    overflow-wrap: break-word;
}

.mdv-fm-form-curve__panel--strip .mdv-fm-form-curve__trend,
.mdv-fm-form-curve__panel--compact .mdv-fm-form-curve__trend {
    display: none;
}

.mdv-fm-form-curve__panel--compact .mdv-fm-form-curve__summary {
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
}

.mdv-fm-form-curve__panel--strip {
    align-items: center;
    grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr);
}

.mdv-fm-form-curve__panel--strip .mdv-fm-form-curve__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mdv-fm-form-curve__panel--strip .mdv-fm-form-curve__matches {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.mdv-fm-form-curve__panel--strip .mdv-fm-form-curve__match.mdv-fm-card {
    flex: 0 0 min(260px, 76vw);
    scroll-snap-align: start;
}

.mdv-fm-form-curve__panel--timeline .mdv-fm-form-curve__matches {
    grid-template-columns: 1fr;
}

.mdv-fm-form-curve__panel--timeline .mdv-fm-form-curve__match.mdv-fm-card {
    border-left: 4px solid currentColor;
    grid-template-areas:
        "result opponent score"
        "result meta score";
    margin-left: 15px;
    position: relative;
}

.mdv-fm-form-curve__panel--timeline .mdv-fm-form-curve__match.mdv-fm-card::before {
    background: currentColor;
    border: 3px solid #fff;
    border-radius: 999px;
    content: "";
    height: 15px;
    left: -26px;
    position: absolute;
    top: 18px;
    width: 15px;
}

.mdv-fm-form-curve__panel--compact {
    gap: 12px;
    padding: clamp(14px, 20px, 24px);
}

.mdv-fm-form-curve__panel--compact .mdv-fm-form-curve__matches {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.mdv-fm-form-curve__panel--compact .mdv-fm-form-curve__match.mdv-fm-card {
    grid-template-areas:
        "result score"
        "opponent opponent";
    grid-template-columns: auto minmax(0, 1fr);
}

.mdv-fm-form-curve__panel--compact .mdv-fm-form-curve__meta {
    display: none;
}

@media (max-width: 767px) {
    .mdv-fm-form-curve__panel {
        border-radius: var(--mdfm-border-radius, var(--mdv-fm-card-radius-phone, var(--mdv-fm-card-radius-tablet, var(--mdv-fm-card-radius-desktop, var(--mdv-fm-component-card-radius, 8px)))));
        gap: 18px;
        padding: 18px;
    }

    .mdv-fm-form-curve__panel--strip {
        grid-template-columns: 1fr;
    }

    .mdv-fm-form-curve__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mdv-fm-form-curve__matches {
        grid-template-columns: 1fr;
    }

    .mdv-fm-form-curve__match.mdv-fm-card {
        grid-template-areas:
            "result opponent"
            "score score"
            "meta meta";
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .mdv-fm-form-curve__score {
        justify-self: start;
    }

    .mdv-fm-form-curve__panel--compact .mdv-fm-form-curve__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
