/* ── Scope Tag Editor ────────────────────────────────────────────────── */
.ste-root {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
}

.ste-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 32px;
}

.ste-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 10px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 500;
    background: #e3ecf7;
    color: #1a3a5c;
    border: 1px solid #b8d0ea;
    cursor: default;
    user-select: none;
}

.ste-chip-free    { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.ste-chip-starter { background: #e3f2fd; color: #0d47a1; border-color: #90caf9; }
.ste-chip-pro     { background: #ede7f6; color: #4527a0; border-color: #b39ddb; }
.ste-chip-ent     { background: #fce4ec; color: #880e4f; border-color: #f48fb1; }

/* Scope übersteigt den aktuellen Plan: rote Outline + warnendes Icon */
.ste-chip-exceeds {
    outline: 2px solid #d32f2f;
    outline-offset: -2px;
}
.ste-chip-exceeds::before {
    content: "⚠";
    margin-right: 2px;
    color: #d32f2f;
}

.ste-current-plan {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f5f5f5;
    color: #555;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #ddd;
}

.ste-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    font-size: 1rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    border-radius: 50%;
}
.ste-chip-remove:hover { opacity: 1; background: rgba(0,0,0,0.1); }

.ste-empty {
    font-size: 0.82rem;
    color: #888;
    font-style: italic;
}

.ste-add-select {
    font-size: 0.82rem;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
    max-width: 320px;
}
.ste-add-select:hover { border-color: #888; }

.ste-hint {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

.ste-plan {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}
.ste-plan-free    { background: #e8f5e9; color: #1b5e20; }
.ste-plan-starter { background: #e3f2fd; color: #0d47a1; }
.ste-plan-pro     { background: #ede7f6; color: #4527a0; }
.ste-plan-ent     { background: #fce4ec; color: #880e4f; }

/* Dark mode */
body.dx-dark-mode .ste-chip        { background: #1e2d3d; color: #a0c4e8; border-color: #2d4a66; }
body.dx-dark-mode .ste-chip-free   { background: #1a2e1a; color: #81c784; border-color: #2d5a2d; }
body.dx-dark-mode .ste-chip-starter{ background: #0d2137; color: #64b5f6; border-color: #1a4a6e; }
body.dx-dark-mode .ste-chip-pro    { background: #1e1433; color: #b39ddb; border-color: #3d2875; }
body.dx-dark-mode .ste-chip-ent    { background: #2d0e1a; color: #f48fb1; border-color: #5a1d35; }
body.dx-dark-mode .ste-add-select  { background: #1e2533; color: #c8d8e8; border-color: #3a4a5a; }
body.dx-dark-mode .ste-empty       { color: #666; }
body.dx-dark-mode .ste-hint        { color: #666; }
body.dx-dark-mode .ste-chip-exceeds { outline-color: #ef5350; }
body.dx-dark-mode .ste-chip-exceeds::before { color: #ef5350; }
body.dx-dark-mode .ste-current-plan { background: #2a2f38; color: #aab2bc; border-color: #3a4250; }
