/* Раздел «Разбор». Компоненты общие с hub.css/crm.css, здесь только своё. */

#aiView [hidden] { display: none !important; }

.ai-hint { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); background: #f7f9fc; border-radius: 12px; font-size: 14px; color: var(--muted); }
.ai-hint b { color: var(--ink, #17202a); }

.ai-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px; }

.ai-prov { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.ai-prov.is-off { opacity: .55; }
.ai-prov small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ai-prov-url { font-family: ui-monospace, monospace; }
.ai-prov-note { font-style: italic; }
.ai-prov-state.ok { color: #17794a; }
.ai-prov-state.bad { color: #b3261e; }
.ai-prov-side { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }

/* Решение отделено от разборов намеренно: на него опираются, на разборы — смотрят. */
.ai-verdict { border: 1px solid #c6d9f5; background: #eef4fd; border-radius: 12px; padding: 14px 16px; margin: 14px 0 18px; }
.ai-verdict small { display: block; font-size: 11px; letter-spacing: .08em; color: #0a4ba6; margin-bottom: 8px; }
.ai-verdict div { font-size: 15px; line-height: 1.6; }

.ai-sub { font-size: 15px; margin: 18px 0 10px; display: flex; gap: 10px; align-items: baseline; }
.ai-sub small { color: var(--muted); font-weight: 400; font-size: 13px; }

.ai-workers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.ai-worker { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; }
.ai-worker.is-bad { border-color: #f2c4c0; background: #fffafa; }
.ai-worker header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ai-worker header small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ai-worker div { font-size: 14px; line-height: 1.55; }
.ai-err { color: #b3261e; }

.ai-run-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.ai-run-head small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.ai-flag { color: #8a5a00; font-weight: 600; }
.ai-note-warn { padding: 12px 16px; border: 1px solid #f0c9a0; background: #fff7ec; border-radius: 12px; }

@media (max-width: 640px) {
  .ai-prov { flex-direction: column; }
  .ai-prov-side { justify-content: flex-start; }
}
