.hbc-chart {
    position: relative;
    padding: 28px 16px;
    overflow: hidden;
}

.hbc-chart-board {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
}

.hbc-chart-swoosh {
    position: absolute;
    inset: -120px -100px -120px -100px;
    pointer-events: none;
    opacity: 0.45;
}

.hbc-chart-grid {
    position: relative;
    z-index: 1;
}

.hbc-chart-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 380px) minmax(220px, 1fr);
    align-items: center;
    column-gap: 14px;
    margin-bottom: 8px;
}

.hbc-chart-row:last-child {
    margin-bottom: 0;
}

.hbc-chart-core {
    width: 100%;
    display: flex;
    justify-content: center;
    max-height: clamp(90px, 20vw, 70px);
}

.hbc-chart-segment {
    width: var(--hbc-chart-level-width, 100%);
    min-height: clamp(24px, 3.5vw, 40px);
    background: linear-gradient(90deg, #7faee2 0%, #3d89e8 100%);
    clip-path: var(--hbc-chart-clip, polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%));
}

.hbc-chart-note {
    min-height: 1px;
}

.hbc-chart-note.is-empty {
    visibility: hidden;
}

.hbc-chart-note-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hbc-chart-note-body {
    max-width: 460px;
}

.hbc-chart-note-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.2;
    display: block;
}

.hbc-chart-note-line {
    display: block;
    flex: 1;
    min-width: 44px;
    border-top: 2px dashed #1e73cf;
}

.hbc-chart-note-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
    background: #00d3df;
    box-shadow: 0 0 0 2px #9deaf0;
}

.hbc-chart-note-content {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.45;
    color: #1f1f1f;
}

.hbc-chart-note-left {
    text-align: right;
}

.hbc-chart-note-left .hbc-chart-note-head {
    justify-content: flex-end;
}

.hbc-chart-note-left .hbc-chart-note-body {
    margin-left: auto;
    text-align: right;
}

.hbc-chart-note-right {
    text-align: left;
}

.hbc-chart-note-right .hbc-chart-note-head {
    justify-content: flex-start;
}

.hbc-chart-note-right .hbc-chart-note-body {
    text-align: left;
}

@media (max-width: 980px) {
    .hbc-chart-row {
        grid-template-columns: minmax(150px, 1fr) minmax(220px, 320px) minmax(150px, 1fr);
        column-gap: 10px;
    }

    .hbc-chart-note-title {
        font-size: 16px;
    }

    .hbc-chart-note-content {
        font-size: 15px;
    }
}

@media (max-width: 760px) {
    .hbc-chart {
        padding: 20px 12px;
    }

    .hbc-chart-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
        margin-bottom: 14px;
    }

    .hbc-chart-core {
        order: 1;
        max-width: 380px;
        margin: 0 auto;
    }

    .hbc-chart-note {
        order: 2;
        text-align: left;
        visibility: visible;
    }

    .hbc-chart-note-left .hbc-chart-note-head,
    .hbc-chart-note-right .hbc-chart-note-head {
        justify-content: flex-start;
    }

    .hbc-chart-note-left .hbc-chart-note-body,
    .hbc-chart-note-right .hbc-chart-note-body {
        margin-left: 0;
        max-width: none;
        text-align: left;
    }

    .hbc-chart-note.is-empty {
        display: none;
    }
}
