/* ============================================================================
   🤖 ІІ-бриф — оформлення секцій (Deep Navy, як «Чати»/НП). Скоуп: #abView + #abList.
   Розмітка — _abRender у js/app.js (клас-патерн .ab-*).
   ========================================================================== */

#abView { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* шапка */
#abView .ab-hero { background: linear-gradient(135deg, #16233B 0%, #1E3A5F 60%, #24486F 100%); color: #fff; border-radius: var(--radius-xl); padding: 16px 20px; margin-top: 12px; box-shadow: var(--shadow-lg); }
#abView .ab-hero__name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
#abView .ab-hero__sum { margin-top: 10px; font-size: 13.5px; line-height: 1.55; background: rgba(255,255,255,.09); border-radius: 10px; padding: 10px 14px; }
#abView .ab-key { background: #FEF3C7; color: #92400E; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }

/* секція */
#abView .ab-sec { background: var(--novo-surface, #fff); border: 1px solid var(--novo-border, #E2E8F0); border-radius: var(--radius-xl, 14px); padding: 0; margin-top: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
#abView .ab-sec__h { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; border-bottom: 1px solid var(--novo-border-light, #EEF1F6); }
#abView .ab-sec__b { padding: 12px 16px 14px; }

/* чипи-метрики */
#abView .ab-chips { display: flex; gap: 8px; flex-wrap: wrap; }
#abView .ab-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--novo-surface-soft, #F1F5F9); font-size: 12.5px; }
#abView .ab-chip b { font-variant-numeric: tabular-nums; font-size: 13.5px; }
#abView .ab-chip--bad { background: #FEE2E2; }
#abView .ab-chip--bad b { color: #B91C1C; }
#abView .ab-chip--warn { background: #FEF3C7; }

/* план розмови — головна цінність, картки з номерами */
#abView .ab-plan { display: grid; gap: 8px; }
#abView .ab-plan__item { display: flex; gap: 12px; background: linear-gradient(180deg, #FBFDFF, #F4F8FC); border: 1px solid #DDE7F2; border-radius: 12px; padding: 11px 14px; }
#abView .ab-plan__n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 9px; background: linear-gradient(135deg, #1E3A5F, #3B82F6); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
#abView .ab-plan__t { font-weight: 800; font-size: 13.5px; }
#abView .ab-plan__arg { font-size: 12.5px; margin-top: 3px; color: var(--novo-text-secondary, #334155); }
#abView .ab-plan__ask { font-size: 12.5px; margin-top: 5px; color: #2563EB; font-weight: 650; }
#abView .ab-avoid { margin-top: 10px; font-size: 12.5px; background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412; border-radius: 10px; padding: 8px 12px; }

/* таблички (борг, SKU) */
#abView .ab-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
#abView .ab-tbl th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--novo-text-muted, #64748B); padding: 5px 8px; border-bottom: 2px solid var(--novo-border, #E2E8F0); white-space: nowrap; }
#abView .ab-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--novo-border-light, #EEF1F6); font-variant-numeric: tabular-nums; }
#abView .ab-tbl .r { text-align: right; }

/* групи-бейджі */
#abView .ab-grp { display: inline-flex; align-items: baseline; gap: 6px; margin: 2px 6px 2px 0; padding: 4px 11px; border-radius: 999px; background: var(--novo-surface-soft, #F1F5F9); font-size: 12px; }
#abView .ab-grp b { font-variant-numeric: tabular-nums; }
#abView .ab-drop { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; margin-top: 8px; }

/* аналіз спілкування + сирі події */
#abView .ab-comms { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 10px; padding: 10px 13px; font-size: 13px; line-height: 1.55; }
#abView .ab-ev { display: flex; gap: 9px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px dashed var(--novo-border-light, #EEF1F6); }
#abView .ab-ev:last-child { border-bottom: 0; }
#abView .ab-ev__d { flex-shrink: 0; color: var(--novo-text-muted, #64748B); font-variant-numeric: tabular-nums; width: 74px; }
#abView details.ab-raw summary { cursor: pointer; font-size: 12px; color: var(--novo-text-muted, #64748B); padding: 6px 0; }

/* задачі */
#abView .ab-task { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--novo-border-light, #EEF1F6); }
#abView .ab-task:last-child { border-bottom: 0; }
#abView .ab-task__ico { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--novo-surface-soft, #F1F5F9); display: flex; align-items: center; justify-content: center; font-size: 13px; }
#abView .ab-task__r { font-size: 12.5px; line-height: 1.45; }
#abView .ab-task__m { font-size: 11px; color: var(--novo-text-muted, #64748B); margin-top: 2px; }

/* заміни */
#abView .ab-rep { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid var(--novo-border-light, #EEF1F6); flex-wrap: wrap; }
#abView .ab-rep:last-child { border-bottom: 0; }
#abView .ab-rep__no { color: #991B1B; text-decoration: line-through solid rgba(153,27,27,.4); }
#abView .ab-rep__yes { color: #16803C; font-weight: 700; }

/* follow-up */
#abView .ab-fu input, #abView .ab-fu textarea, #abView .ab-fu select { font-size: 13px; }
#abView .ab-fu textarea { line-height: 1.5; }

/* список брифів */
#abList .ab-li--gen { opacity: .75; }
#abList .ab-badge { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
#abList .ab-badge--gen { background: #FEF3C7; color: #92400E; }
#abList .ab-badge--err { background: #FEE2E2; color: #B91C1C; }
