/* chat-context.css — Context picker (feature #2). Только классы (CSP-safe). */
#context-picker-bar { display: flex; padding: 2px 8px 0; }
.ctx-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--code-border, rgba(255, 255, 255, 0.1));
    color: var(--text-muted, #9aa);
    border-radius: 14px; padding: 3px 10px; font-size: 11.5px; cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ctx-chip:hover { background: rgba(124, 137, 246, 0.14); color: var(--text, #e0e0e0); }
.ctx-chip.ctx-has { color: var(--primary, #7c89f6); border-color: rgba(124, 137, 246, 0.45); }
.ctx-chip.ctx-pinned { border-color: rgba(34, 197, 94, 0.5); }
.ctx-chip.ctx-pinned .ctx-chip-ico::after { content: '📌'; margin-left: 2px; }

/* панель */
.ctx-panel { display: flex; flex-direction: column; gap: 10px; min-width: 320px; max-width: 520px; }
.ctx-pin { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text, #e0e0e0); cursor: pointer; }
.ctx-pin input { width: 16px; height: 16px; cursor: pointer; }
.ctx-section-title { font-size: 12px; font-weight: 600; color: var(--text-muted, #888); margin-top: 4px; }
.ctx-total { font-weight: 400; font-family: var(--font-code, monospace); }
.ctx-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.ctx-empty { font-size: 12px; color: var(--text-muted, #888); padding: 6px 2px; }
.ctx-row {
    display: flex; align-items: center; gap: 8px; padding: 5px 8px;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--code-border, rgba(255, 255, 255, 0.08)); border-radius: 7px;
}
.ctx-row-path { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text, #e0e0e0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-row-tok { font-family: var(--font-code, monospace); font-size: 11px; color: var(--text-muted, #888); flex-shrink: 0; }
.ctx-row-rm { background: none; border: none; color: var(--text-muted, #888); cursor: pointer; font-size: 13px; padding: 0 4px; }
.ctx-row-rm:hover { color: #ef4444; }
.ctx-search {
    width: 100%; box-sizing: border-box; padding: 7px 10px; font-size: 13px;
    background: var(--bg, rgba(0, 0, 0, 0.2)); color: var(--text, #e0e0e0);
    border: 1px solid var(--code-border, rgba(255, 255, 255, 0.12)); border-radius: 8px;
}
.ctx-results { display: flex; flex-direction: column; gap: 3px; max-height: 200px; overflow: auto; }
.ctx-res {
    display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; cursor: pointer;
    font-size: 12.5px; color: var(--text, #e0e0e0);
}
.ctx-res:hover { background: rgba(124, 137, 246, 0.14); }
.ctx-res-path { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-res-act { color: var(--primary, #7c89f6); font-weight: 700; flex-shrink: 0; }
.ctx-res-on { opacity: 0.6; }
.ctx-res-on .ctx-res-act { color: #22c55e; }
