/* Динамическое поле допуска и указатель фактического размера. */
.actual-control {
    padding: 12px;
    border: 1px solid #3c596c;
    border-radius: 11px;
    background: #12232e;
}

.actual-control small {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    line-height: 1.35;
}

.actual-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.actual-presets button {
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #55758c;
    border-radius: 8px;
    background: #263b49;
    color: #eaf4fa;
    font-weight: 800;
    cursor: pointer;
}

.actual-presets button:hover {
    border-color: #61c8e4;
    background: #315064;
}

.actual-verdict.good {
    background: #153c2e;
    color: #75ecb4;
}

.actual-verdict.bad {
    background: #4a2525;
    color: #ffb1a7;
}

.scale-axis {
    position: absolute;
    left: 7%;
    top: 8%;
    bottom: 8%;
    width: 2px;
    border-left: 2px solid #4c6c80;
    z-index: 1;
}

.scale-axis::before,
.scale-axis::after {
    content: "";
    position: absolute;
    left: -6px;
    width: 12px;
    border-top: 2px solid #4c6c80;
}

.scale-axis::before { top: 0; }
.scale-axis::after { bottom: 0; }

.scale-axis span {
    position: absolute;
    left: 10px;
    padding: 3px 6px;
    border-radius: 5px;
    background: #10202a;
    color: #8fb0c4;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.scale-axis span:first-child { top: -8px; }
.scale-axis span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}
.scale-axis span:last-child { bottom: -8px; }

.zone-bar {
    min-height: 5px;
    z-index: 3;
}

.zone-bar b {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 3px 9px;
    border-radius: 7px;
    background: rgba(8, 20, 27, .82);
    white-space: nowrap;
}

.actual-marker {
    position: absolute;
    left: 12%;
    right: 8%;
    height: 0;
    border-top: 3px dashed #65e8a8;
    z-index: 6;
    transition: top .25s ease;
}

.actual-marker::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -8px;
    width: 13px;
    height: 13px;
    border: 3px solid #65e8a8;
    border-radius: 50%;
    background: #10202a;
}

.actual-marker span {
    position: absolute;
    left: 14px;
    bottom: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #153c2e;
    color: #75ecb4;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.actual-marker.bad { border-color: #ff6b5f; }
.actual-marker.bad::before { border-color: #ff6b5f; }
.actual-marker.bad span {
    background: #4a2525;
    color: #ffb1a7;
}

@media (max-width: 650px) {
    .actual-presets { grid-template-columns: 1fr; }
    .actual-marker span {
        max-width: 75%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .scale-axis { left: 3%; }
    .scale-axis span { left: 5px; }
    .scale-axis span:first-child,
    .scale-axis span:last-child { font-size: 10px; }
}
