

cp-terrain-chart {
    display: block;
    width: 100%;
    margin-top: 38px;
    font-family: inherit;
}


.tc-plot-area {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 32px;
   
    padding: 0 12px; 
    box-sizing: border-box;
}


.tc-data-layer {
    position: relative;
    width: 100%;
    height: 100%;
}


.tc-bar-h {
    position: absolute;
    height: 18px;
    border-radius: 6px;
    margin-top: -6px;
    z-index: 2;
}


.tc-label {
    position: absolute;
    transform: translate(-50%, 100%);
    margin-top: -12px;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    z-index: 3;
}

.tc-pct {
    font-size: 0.85rem;
    font-weight: 800;
    color: #202020;
}

.tc-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: #202020;
}


.tc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding-top: 24px;
    position: relative;
}

.tc-legend::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 35%;
    background: linear-gradient(to right, var(--border), rgba(0,0,0,0.01));

}

.tc-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.tc-legend-info {
    display: flex;
    flex-direction: column;
}

.tc-legend-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main, #1a1a1a);
}

.tc-legend-value {
    font-size: 0.8rem;
    color: var(--text-muted, #5e5e5e);
}

@media (max-width: 600px) {
    .tc-layout { flex-direction: column; gap: 8px; }
    .tc-y-axis { flex-direction: row; width: 100%; padding-top: 0; padding-bottom: 0; }
    .tc-y-label { font-size: 0.7rem; justify-content: center; flex: 1; text-align: center; height: auto;}
   
    .tc-y-axis { display: none; }
    .tc-plot-area { padding-top: 50px; }
}