/* SYNESS 360 — Assistant IA (lot 5) */
.asst-nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.asst-nav-count.late { background: var(--bad); }
.asst-count { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-tint); color: var(--brand-ink); font-size: .7rem; font-weight: 700; align-items: center; justify-content: center; margin-left: 4px; }
.asst-count.late { background: var(--bad-bg); color: var(--bad); }
.asst-tabs { overflow-x: auto; flex-wrap: nowrap; }
.asst-tabs button { white-space: nowrap; }

.asst-src { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.asst-src.ia { background: var(--brand-soft); border-color: var(--brand-tint); color: var(--brand-ink); }

.asst-card .card-h h2 i, .asst-sec .card-h h2 i, .asst-set .card-h h2 i { color: var(--brand); margin-right: 4px; }
.asst-risk { display: flex; gap: 16px; align-items: flex-start; }
.asst-gauge { flex: 0 0 84px; height: 84px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 6px solid var(--ok); background: var(--ok-bg); color: var(--ok); }
.asst-gauge.moyen { border-color: var(--accent); background: var(--warn-bg); color: var(--warn); }
.asst-gauge.eleve { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.asst-gauge b { font-size: 1.5rem; line-height: 1; }
.asst-gauge span { font-size: .66rem; font-weight: 600; }
.asst-summary { margin: 8px 0 0; line-height: 1.5; }
.asst-h3 { font-size: .84rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 0 0 8px; }
.asst-factors { list-style: none; margin: 0; padding: 0; }
.asst-factors li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.asst-factors b.up { color: var(--bad); }
.asst-factors b.down { color: var(--ok); }
.asst-actions { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: a; }
.asst-actions li { display: flex; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 6px; background: var(--surface-2); }
.asst-actions li > i { color: var(--brand); margin-top: 3px; width: 16px; text-align: center; }
.asst-list { margin: 0; padding-left: 18px; font-size: .86rem; }
.asst-sources { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mt-1 { margin-top: 6px; }

.asst-hero { background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.asst-date { font-size: .8rem; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .03em; }
.asst-date i { margin-right: 4px; }
.asst-intro { font-size: 1.02rem; line-height: 1.55; margin: 8px 0 10px; max-width: 760px; }
.asst-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.asst-items { list-style: none; margin: 0; padding: 0; }
.asst-items li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.asst-items li:last-child { border-bottom: 0; }
.asst-items li.late, .asst-items li.late a { color: var(--bad); }
.asst-items a { color: var(--ink); font-weight: 600; }
.asst-progress { height: 10px; border-radius: 5px; background: var(--neutral-bg); overflow: hidden; margin-top: 6px; }
.asst-progress span { display: block; height: 100%; background: var(--brand); border-radius: 5px; }

.asst-inline { margin: 0; min-width: 200px; }
.asst-sugg-list { display: grid; gap: 12px; }
.asst-ico { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; }
.asst-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.asst-slot { cursor: pointer; }
.asst-slot input { position: absolute; opacity: 0; pointer-events: none; }
.asst-slot span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--surface); }
.asst-slot span small { color: var(--muted); font-weight: 500; }
.asst-slot input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.asst-slot input:checked + span small { color: #E4F2EF; }
.asst-slot input:focus-visible + span { box-shadow: var(--ring); }

.asst-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.asst-filters input[type=search] { flex: 1 1 240px; }
.asst-filters select { width: auto; min-width: 150px; }
tr.clickable { cursor: pointer; }
tr.asst-late td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.asst-clip { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asst-analysis { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.asst-note { padding: 8px 12px; border-radius: var(--radius); background: var(--neutral-bg); font-size: .86rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.asst-note.ok { background: var(--ok-bg); color: var(--ok); }
.asst-note.warn { background: var(--warn-bg); color: var(--warn); }
.asst-body { white-space: pre-wrap; padding: 12px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; max-height: 260px; overflow: auto; line-height: 1.5; }
.asst-thread { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 260px; overflow: auto; }
.asst-bubble { max-width: 80%; padding: 8px 10px; border-radius: 10px; font-size: .85rem; white-space: pre-wrap; }
.asst-bubble.in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); }
.asst-bubble.out { align-self: flex-end; background: var(--brand-tint); }
.asst-bubble small { display: block; color: var(--muted); margin-top: 3px; font-size: .7rem; }
.asst-stack { display: flex; flex-direction: column; gap: 10px; }
.asst-stack hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.asst-usage { margin-top: 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: .86rem; }

@media (max-width: 760px) {
  .asst-cols, .asst-set { grid-template-columns: 1fr !important; }
  .asst-risk { flex-direction: column; align-items: center; text-align: center; }
  .asst-risk .row { justify-content: center; }
  .asst-grid { grid-template-columns: 1fr; }
  .asst-clip { max-width: 220px; }
  .asst-sugg .row.end { justify-content: stretch; }
  .asst-sugg .row.end .btn { flex: 1 1 auto; }
  .asst-sugg .row.end .small { flex-basis: 100%; }
  .asst-bubble { max-width: 92%; }
  .asst-filters select { flex: 1 1 140px; }
}
