.development-profile {
    --profile-bg: var(--card-bg, rgba(30, 41, 59, .8));
    --profile-text: var(--text, #e2e8f0);
    --profile-muted: var(--text-sec, #94a3b8);
    --profile-border: var(--border, rgba(148, 163, 184, .14));
    --profile-accent: var(--accent, #10b981);
    --profile-blue: var(--blue, #3b82f6);
    --profile-orange: var(--amber, #f59e0b);
    --profile-last-year: #6366f1;
    margin: 0 0 20px;
    padding: 22px;
    overflow: hidden;
    color: var(--profile-text);
    background: var(--profile-bg);
    border: 1px solid var(--profile-border);
    border-radius: var(--radius, 18px);
    box-shadow: 0 18px 50px rgba(2, 6, 23, .16);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.development-profile--light {
    --profile-bg: #fff;
    --profile-text: #0f172a;
    --profile-muted: #64748b;
    --profile-border: #dbe3ef;
    --profile-accent: #089fb5;
    --profile-blue: #2563eb;
    --profile-orange: #f97316;
    --profile-last-year: #6366f1;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.development-profile__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.development-profile__eyebrow {
    margin-bottom: 4px;
    color: var(--profile-accent);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.development-profile h2,
.development-profile h3 {
    margin: 0;
    color: var(--profile-text);
    letter-spacing: -.035em;
}

.development-profile h2 {
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    line-height: 1.1;
}

.development-profile__module {
    padding: 7px 11px;
    color: var(--profile-muted);
    border: 1px solid var(--profile-border);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.development-profile__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
    gap: 22px;
    align-items: stretch;
}

.development-profile__visual {
    min-width: 0;
}

.development-profile__chart-wrap {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 1.2 / 1;
    min-height: 340px;
    margin: 0 auto;
}

.development-profile__chart {
    width: 100% !important;
    height: 100% !important;
}

.development-profile__center {
    position: absolute;
    left: 50%;
    top: 53%;
    width: 128px;
    min-height: 92px;
    padding: 12px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    transform: translate(-50%, -50%);
    color: var(--profile-text);
    border: 1px solid color-mix(in srgb, var(--profile-accent) 22%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--profile-bg) 88%, transparent);
    box-shadow: 0 12px 36px rgba(2, 6, 23, .12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.development-profile__center strong {
    font-size: 2rem;
    line-height: 1;
}

.development-profile__center span {
    max-width: 110px;
    margin-top: 7px;
    color: var(--profile-muted);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.25;
}

.development-profile__legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
    color: var(--profile-muted);
    font-size: .74rem;
    font-weight: 750;
}

.development-profile__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.development-profile__legend-line {
    width: 26px;
    height: 3px;
    border-radius: 999px;
}

.development-profile__legend-line--current {
    background: var(--profile-accent);
}

.development-profile__legend-line--previous {
    background: var(--profile-orange);
}

.development-profile__legend-line--last-year {
    height: 0;
    border-top: 3px dashed var(--profile-last-year);
}

.development-profile__detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--profile-border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--profile-bg) 92%, var(--profile-accent) 8%);
}

.development-profile__detail-icon,
.development-profile__index-icon {
    display: inline-grid;
    place-items: center;
    color: var(--profile-accent);
    background: color-mix(in srgb, var(--profile-accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--profile-accent) 24%, transparent);
}

.development-profile__detail-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 17px;
    font-size: 1.35rem;
}

.development-profile__detail-label {
    color: var(--profile-muted);
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.development-profile__detail h3 {
    margin-top: 4px;
    font-size: 1.25rem;
    line-height: 1.15;
}

.development-profile__score {
    margin-top: 16px;
    color: var(--profile-accent);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.05em;
}

.development-profile__delta {
    min-height: 21px;
    margin-top: 8px;
    color: var(--profile-muted);
    font-size: .78rem;
    font-weight: 750;
}

.development-profile__progress {
    width: 100%;
    height: 8px;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--profile-muted) 18%, transparent);
}

.development-profile__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--profile-blue), var(--profile-accent));
    transition: width .35s ease;
}

.development-profile__periods {
    width: 100%;
    margin-top: 14px;
    display: grid;
    gap: 7px;
}

.development-profile__periods > div {
    min-height: 38px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--profile-border);
    border-left: 3px solid var(--profile-accent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--profile-bg) 95%, var(--profile-accent) 5%);
}

.development-profile__periods > div:nth-child(2) {
    border-left-color: var(--profile-orange);
}

.development-profile__periods > div:nth-child(3) {
    border-left-color: var(--profile-last-year);
}

.development-profile__periods span {
    color: var(--profile-muted);
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.2;
}

.development-profile__periods strong {
    flex: 0 0 auto;
    color: var(--profile-text);
    font-size: .82rem;
    font-weight: 900;
}

.development-profile__detail p {
    margin: 14px 0 18px;
    color: var(--profile-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.development-profile__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 14px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--profile-blue), var(--profile-accent));
    font-size: .8rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--profile-accent) 22%, transparent);
}

.development-profile__indices {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--profile-border);
}

.development-profile__index {
    min-width: 0;
    min-height: 70px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--profile-text);
    text-align: left;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.development-profile__index:hover,
.development-profile__index:focus-visible,
.development-profile__index.is-active {
    border-color: color-mix(in srgb, var(--profile-accent) 30%, transparent);
    background: color-mix(in srgb, var(--profile-accent) 9%, transparent);
    outline: none;
}

.development-profile__index:hover {
    transform: translateY(-1px);
}

.development-profile__index-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    font-size: .9rem;
}

.development-profile__index strong,
.development-profile__index small {
    display: block;
}

.development-profile__index strong {
    overflow: hidden;
    font-size: .68rem;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.development-profile__index small {
    margin-top: 4px;
    color: var(--profile-accent);
    font-size: .78rem;
    font-weight: 900;
}

.development-profile__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 820px) {
    .development-profile__layout {
        grid-template-columns: 1fr;
    }

    .development-profile__detail {
        min-height: 0;
    }

    .development-profile__indices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .development-profile {
        padding: 16px 12px;
        border-radius: 18px;
    }

    .development-profile__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .development-profile__chart-wrap {
        min-height: 290px;
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .development-profile__center {
        top: 52%;
        width: 104px;
        min-height: 76px;
        padding: 9px 7px;
    }

    .development-profile__center strong {
        font-size: 1.55rem;
    }

    .development-profile__center span {
        font-size: .59rem;
    }

    .development-profile__detail {
        padding: 16px;
    }

    .development-profile__indices {
        grid-template-columns: 1fr;
    }

    .development-profile__index {
        min-height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .development-profile__index,
    .development-profile__progress span {
        transition: none;
    }
}
