/* Elements created by chart-workspace.js. Global (not Blazor-scoped) because they are built in JS. */
.cw-host {
    outline: none;
    overflow: hidden;
    position: relative;
    touch-action: none;
    user-select: none;
}

.cw-host:focus-visible {
    box-shadow: inset 0 0 0 1px var(--accent);
}

.cw-chart {
    inset: 0;
    position: absolute;
}

.cw-overlay {
    inset: 0;
    position: absolute;
    z-index: 2;
}

.cw-legend {
    align-items: baseline;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    gap: 2px 7px;
    left: 10px;
    max-width: calc(100% - 90px);
    pointer-events: none;
    position: absolute;
    top: 8px;
    z-index: 3;
}

.cw-legend .cw-sym {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: .04em;
    margin-right: 4px;
}

.cw-legend .cw-k {
    color: var(--text-quiet);
}

.cw-legend .cw-v {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    margin-right: 4px;
}

.cw-legend .cw-v.down {
    color: var(--negative);
}

.cw-legend .cw-time {
    margin-left: 4px;
}

@media (max-width: 640px) {
    .cw-legend .cw-time,
    .cw-legend .cw-k:nth-of-type(2) {
        display: none;
    }
}
