.chart {
    display: flex;
    max-width: 800px;
}

.chartyaxis {
    width: 50px;
    height: 260px;
    position: relative;
    font-size: 11px;
}

.chartytick {
    position: absolute;
    right: 6px;
    transform: translateY(50%);
}

.chartcontent {
    flex: 1;
}

.chartplot {
    position: relative;
    height: 260px;
    padding: 0 10px;
    border-left: 2px solid #444;
    border-bottom: 2px solid #444;
}

.bars {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: 3px;
}

.bar {
    flex: 1;
    background: steelblue;
    position: relative;
    border-radius: 4px 4px 0 0;
    height: 0;
    transition: height 0.8s ease;
}

.bar .value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
}

.bar .label {
    position: absolute;
    bottom: -50px;
    left: 40%;
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: top left;
    font-size: 11px;
    white-space: nowrap;
}

.avg-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: none;
    border-top: 2px dashed crimson;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.avg-label {
    position: absolute;
    right: 6px;
    top: -10px;
    font-size: 11px;
    background: white;
    padding: 0 4px;
}