/* Tags / multi-select input — looks like a form field, theme-aware. */
.pp-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    min-height: calc(1.5em + .75rem + 2px);
    padding: .3rem .5rem;
    border: 1px solid var(--pp-border, #cbd5e1);
    border-radius: var(--pp-radius, 8px);
    background: var(--pp-surface, #fff);
    cursor: text;
}
.pp-tags:focus-within {
    border-color: var(--pp-accent, #4f46e5);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--pp-accent, #4f46e5) 22%, transparent);
}
.pp-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .82rem;
    line-height: 1.4;
    padding: .1rem .2rem .1rem .5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pp-accent, #4f46e5) 12%, transparent);
    color: var(--pp-accent, #4f46e5);
    max-width: 100%;
}
.pp-tag-x {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 .15rem;
    border-radius: 50%;
    opacity: .7;
}
.pp-tag-x:hover { opacity: 1; background: color-mix(in srgb, var(--pp-accent, #4f46e5) 22%, transparent); }
.pp-tag-input {
    flex: 1 1 6rem;
    min-width: 6rem;
    border: 0;
    outline: 0;
    padding: .15rem 0;
    background: transparent;
    color: var(--pp-text, #0f172a);
    font: inherit;
}
