/* ── 附件胶囊：统一的文件/引用标签 ── */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--overlay-light);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    max-width: 185px;
}

.expired {
    color: var(--text-muted);
    background: var(--overlay-subtle, rgba(0, 0, 0, 0.03));
    border-style: dashed;
    box-shadow: none;
    opacity: 0.82;
}

.expired .name {
    color: var(--text-muted);
}

.name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    min-width: 0;
}

.icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 13px;
    height: 13px;
}

.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.7rem;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--duration-instant);
}

.remove:hover {
    opacity: 1;
}
