/* Волна 10 — вкладка «ИИ и фильтры» */

.ai-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ai-card { background: var(--bg2, #fff); border: 1px solid var(--border, #e5e5e5); border-radius: var(--radius, 12px); padding: 14px; }
.ai-card.ok { border-color: #2e9e5b55; }
.ai-card.off { opacity: .8; }
.ai-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ai-card-body { font-size: 13px; color: var(--text2, #777); display: grid; gap: 4px; margin-bottom: 10px; }
.ai-card-body code { font-size: 12px; }
.ai-dot { font-size: 11px; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.ai-dot.on { background: #2e9e5b1f; color: #2e9e5b; }
.ai-dot.off { background: #cc333322; color: #c33; }
.ai-ping { font-size: 12px; margin-top: 8px; min-height: 16px; }
.ai-ping .ok { color: #2e9e5b; }
.ai-ping .bad { color: #c33; }

.ai-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ai-kpi { background: var(--bg2, #fff); border: 1px solid var(--border, #e5e5e5); border-radius: var(--radius, 12px); padding: 14px; text-align: center; }
.ai-kpi span { display: block; font-size: 22px; font-weight: 700; }
.ai-kpi small { color: var(--text2, #888); font-size: 12px; }
.ai-kpi.big span { color: #2e9e5b; font-size: 28px; }

.ai-test { background: var(--bg2, #fff); border: 1px solid var(--border, #e5e5e5); border-radius: var(--radius, 12px); padding: 14px; margin-bottom: 22px; }
.ai-test textarea { width: 100%; padding: 10px; border: 1px solid var(--border, #e5e5e5); border-radius: 8px; font: inherit; background: transparent; color: inherit; resize: vertical; }
.ai-test .toolbar { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.ai-test select { padding: 8px 10px; border: 1px solid var(--border, #e5e5e5); border-radius: 8px; background: transparent; color: inherit; }

.ai-verdict { padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.ai-verdict.accept { background: #2e9e5b1f; color: #2e9e5b; }
.ai-verdict.ai { background: #e8a12a22; color: #b8801a; }
.ai-verdict.reject { background: #cc333318; color: #c33; }
.ai-reasons { margin: 0 0 8px 18px; font-size: 13px; color: var(--text2, #777); }
.ai-reasons li { margin-bottom: 3px; }

.ai-group { margin-bottom: 20px; }
.ai-group h4 { margin: 0 0 10px; font-size: 14px; color: var(--text2, #888); text-transform: uppercase; letter-spacing: .04em; }
.ai-niches { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ai-niche { display: flex; align-items: center; gap: 10px; background: var(--bg2, #fff); border: 1px solid var(--border, #e5e5e5); border-radius: 10px; padding: 12px; cursor: pointer; transition: .15s; }
.ai-niche:hover { border-color: var(--accent, #4a7cff); transform: translateY(-1px); }
.ai-niche-icon { font-size: 20px; }
.ai-niche-label { flex: 1; font-size: 14px; font-weight: 500; }
.ai-niche-check { font-size: 11px; color: var(--text2, #888); white-space: nowrap; }

.ai-detail { background: var(--bg2, #fff); border: 1px solid var(--accent, #4a7cff); border-radius: var(--radius, 12px); padding: 16px; margin-bottom: 20px; }
.ai-detail p { font-size: 13px; line-height: 1.6; }
.ai-detail .toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ai-detail select { padding: 8px 10px; border: 1px solid var(--border, #e5e5e5); border-radius: 8px; background: transparent; color: inherit; }
.ai-detail .tg-tag { display: inline-block; background: #4a7cff18; color: var(--accent, #4a7cff); border-radius: 6px; padding: 2px 7px; font-size: 12px; margin: 2px 2px 0 0; }
.ai-detail .tg-tag.minus { background: #cc333314; color: #c33; }
