.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    height: 2rem;
    max-width: min(15rem, 100%);
    padding: 0 0.5rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--bg-card) 88%, rgba(var(--accent-rgb), 0.08));
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    vertical-align: middle;
}

.chip.noName .wave {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.chip.noName {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.chip.noName .wave:hover:not(:disabled) {
    background: transparent;
}

.at {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    opacity: 0.88;
}

.play,
.remove,
.wave {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: none;
    background: none;
    cursor: default;
}

.play {
    width: 1.18rem;
    height: 1.18rem;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 6px;
    transition: background var(--duration-instant), color var(--duration-instant), opacity var(--duration-instant);
}

.play:hover:not(:disabled) {
    background: rgba(var(--accent-rgb), 0.16);
}

.play:disabled {
    opacity: 0.45;
}

.play.isPlaying {
    color: white;
    background: var(--accent);
}

.wave {
    display: inline-grid;
    grid-template-columns: repeat(var(--audio-wave-bar-count, 12), 3px);
    justify-content: start;
    column-gap: 3px;
    width: 7rem;
    height: 1.18rem;
    padding: 0 0.08rem;
    overflow: hidden;
    color: inherit;
    border-radius: 6px;
    transition: background var(--duration-instant);
}

.wave:hover:not(:disabled) {
    background: rgba(var(--accent-rgb), 0.06);
}

.wave:disabled {
    opacity: 0.5;
}

.wave span {
    display: block;
    width: 3px;
    min-height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 68%, var(--text-muted));
    opacity: 0.62;
}

.wave span.isPlayed {
    background: var(--accent);
    opacity: 0.95;
}

.name {
    min-width: 0;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1;
    color: var(--accent);
}

.remove {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    border-radius: 50%;
    opacity: 0.55;
    transition: opacity var(--duration-instant), color var(--duration-instant);
}

.remove:hover {
    color: var(--text);
    opacity: 1;
}
