.aligned-spans-widget {
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 6px;
    padding: 0.75rem 1rem 1rem 1rem;
    margin: 1rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    overflow-x: auto;
}

.asw-figure {
    position: relative;
    min-width: 420px;
    height: 150px;
    margin: 0.5rem 0 0.25rem 0;
}

.asw-input-span {
    position: absolute;
    top: 0;
    height: 18px;
    background: currentColor;
    opacity: 0.12;
    border-left: 2px solid currentColor;
    border-right: 1px dashed currentColor;
}

.asw-input-span-label {
    position: absolute;
    top: 20px;
    font-size: 0.7rem;
    opacity: 0.7;
    white-space: nowrap;
}

.asw-span-band {
    position: absolute;
    top: 44px;
    height: 34px;
    border-radius: 3px;
    opacity: 0.28;
}

.asw-track {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

.asw-dot {
    position: absolute;
    top: 61px;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    margin-top: -5.5px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.55);
    box-sizing: border-box;
    border: 1.5px solid currentColor;
}

.asw-index-label {
    position: absolute;
    top: 70px;
    transform: translateX(-50%);
    font-size: 0.7rem;
    opacity: 0.85;
    white-space: nowrap;
}

.asw-tick-label {
    position: absolute;
    top: 96px;
    transform: translateX(-50%);
    font-size: 0.65rem;
    opacity: 0.65;
    white-space: nowrap;
}

.asw-bracket {
    position: absolute;
    height: 3px;
    border-radius: 2px;
}

.asw-bracket-label {
    position: absolute;
    font-size: 0.7rem;
    white-space: nowrap;
}

.asw-legend {
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
    margin-top: 0.25rem;
}

.asw-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.asw-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    flex: none;
}

.asw-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.35rem;
}
