/* ═══════════════════════════════════════════════════
   MwHandoutChip — mw-hc-* prefix
   Compact handout pill: icon/dot + name + optional ×amount + source badge + remove.
   Colour is driven by the --mw-hc-color custom property set inline from Handout.Color.
   ═══════════════════════════════════════════════════ */

.mw-hc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 6px;
    border-radius: 16px;
    border: 1px solid var(--mud-palette-table-lines);
    background: var(--mud-palette-surface);
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 100%;
    vertical-align: middle;
}

.mw-hc--dense {
    padding: 2px 6px 2px 5px;
    font-size: 11px;
    gap: 4px;
}

.mw-hc-ico {
    display: inline-flex;
    color: var(--mw-hc-color);
    flex: none;
}

.mw-hc-ico .mud-icon-root {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mw-hc-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mw-hc-color);
    flex: none;
}

.mw-hc-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-hc-amount {
    color: var(--mud-palette-text-secondary);
    font-weight: 700;
}

.mw-hc-src {
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    color: var(--mud-palette-text-disabled);
    border-left: 1px solid var(--mud-palette-table-lines);
    padding-left: 5px;
    margin-left: 1px;
}

.mw-hc-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    padding: 0;
    margin-left: 1px;
    background: transparent;
    color: var(--mud-palette-text-disabled);
    cursor: pointer;
    transition: color .14s, background .14s;
}

.mw-hc-x:hover {
    color: var(--mud-palette-error);
    background: rgba(var(--mud-palette-error-rgb), .12);
}

.mw-hc-x .mud-icon-root {
    font-size: 13px;
    width: 13px;
    height: 13px;
}
