/* Plate calculator, on top of base.css and calc.css */
.seg--bars span {
    padding: 0 6px;
    font-size: 0.88rem;
}

.plate-pick {
    border: 0;
    padding: 0;
    margin: 0;
}

.plate-pick legend {
    width: 100%;
}

.plate-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plate-chip {
    position: relative;
}

.plate-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.plate-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--label);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--steel);
    text-decoration: line-through;
    transition: background 0.15s ease, color 0.15s ease;
}

.plate-chip input:checked + span {
    border-color: rgba(242, 166, 50, 0.5);
    background: rgba(242, 166, 50, 0.1);
    color: #fff;
    text-decoration: none;
}

.plate-chip input:focus-visible + span {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.plate-list {
    margin-top: 10px;
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* One side of the bar, drawn to rough scale: shaft, collar, plates, end of the sleeve */
.bar-viz {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 150px;
    margin: 22px 0 6px;
    overflow: hidden;
}

.viz-shaft {
    flex: 0 0 48px;
    height: 8px;
    background: #8e9a9c;
}

.viz-collar {
    flex: 0 0 10px;
    height: 34px;
    margin-right: 2px;
    background: #b9c2c3;
    border-radius: 2px;
}

.viz-sleeve {
    flex: 1 1 auto;
    max-width: 90px;
    min-width: 20px;
    height: 16px;
    background: #b9c2c3;
    border-radius: 0 3px 3px 0;
}

.viz-chain {
    flex: 0 0 40px;
    height: 0;
    border-top: 3px dotted #b9c2c3;
}

.viz-plate {
    position: relative;
    flex: 0 0 auto;
    border-radius: 3px;
    box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.25);
}

.viz-plate b {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-family: var(--label);
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.viz-plate.is-light b {
    color: #222;
}

.score .score-sub + .input-warn {
    margin-top: 12px;
}
