/* ============================================================================
   AI MEMBER SEGMENTATION — companion to the message demo.
   Same captured-output discipline: real model readings, embedded in
   assets/ai-members-data.js. Reuses the .ai-panel look.
   ============================================================================ */
.ai-members{
  display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr);
  gap:26px; margin-top:30px; align-items:start;
}
@media (max-width:900px){ .ai-members{ grid-template-columns:minmax(0,1fr); gap:18px; } }

/* ---------- left: the member list ---------- */
.ai-mlist{ display:flex; flex-direction:column; gap:8px; }
.ai-mlist-t{
  font-size:.72rem; font-weight:750; letter-spacing:.09em; text-transform:uppercase;
  color:var(--muted); margin-bottom:2px;
}
.ai-member{
  display:grid; grid-template-columns:auto 1fr auto; gap:5px 12px; align-items:center; text-align:left;
  width:100%; background:var(--paper); border:1px solid var(--line); border-radius:14px;
  padding:12px 14px; cursor:pointer; font:inherit; color:var(--ink);
  transition:border-color .16s, background .16s, transform .16s;
}
.ai-member:hover{ border-color:var(--teal); transform:translateX(3px); }
.ai-member[aria-pressed="true"]{
  border-color:var(--teal); background:rgba(14,124,134,.06); box-shadow:inset 3px 0 0 var(--teal);
}
.ai-member .dot{
  width:9px; height:9px; border-radius:50%; background:var(--line); grid-row:span 2;
}
.ai-member[aria-pressed="true"] .dot{ background:var(--teal); }
.ai-member .nm{ font-size:.86rem; font-weight:650; }
.ai-member .sub{ font-size:.74rem; color:var(--muted); grid-column:2; }
.ai-member .amt{
  font-size:.86rem; font-weight:750; font-variant-numeric:tabular-nums; grid-row:span 2;
}
.ai-member.is-star .amt{ color:var(--accent); }

/* ---------- right: the reading ---------- */
.ai-mcard{
  position:relative; display:flex; flex-direction:column; gap:1px; margin-top:14px;
}
.ai-mrow{
  background:rgba(255,255,255,.045); padding:12px 15px;
  display:grid; grid-template-columns:1fr auto; gap:3px 14px; align-items:baseline;
  animation:aiIn .34s cubic-bezier(.2,.7,.3,1) backwards;
}
.ai-mrow:first-child{ border-radius:12px 12px 0 0; animation-delay:.05s; }
.ai-mrow:last-child{ border-radius:0 0 12px 12px; animation-delay:.13s; }
.ai-mrow .k{
  font-size:.66rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase;
  color:#7fa99a; grid-column:1/-1; margin-bottom:2px;
}
.ai-mrow .v{ font-size:.95rem; font-weight:650; color:#fff; }
.ai-mrow .v.warn{ color:#ffcf7a; }
.ai-mrow .v.cool{ color:#9fd9c6; }
.ai-mrow .c{ font-size:.7rem; font-weight:700; color:#7fa99a; font-variant-numeric:tabular-nums; }

/* segment probability strip */
.ai-segbar{
  grid-column:1/-1; display:flex; height:6px; border-radius:99px; overflow:hidden;
  background:rgba(255,255,255,.09); margin-top:7px;
}
.ai-segbar i{
  display:block; height:100%; transition:width .5s cubic-bezier(.2,.7,.3,1);
}
.ai-segbar i.active{ background:#7fe3b0; }
.ai-segbar i.at_risk{ background:#ffcf7a; }
.ai-segbar i.dormant{ background:#f0a08a; }
.ai-segbar i.new{ background:var(--teal-bright); }
.ai-seglegend{
  grid-column:1/-1; display:flex; flex-wrap:wrap; gap:10px; margin-top:8px;
  font-size:.68rem; color:#7fa99a;
}
.ai-seglegend b{ color:#e9f6f0; font-weight:700; }
.ai-seglegend span{ display:inline-flex; align-items:center; gap:5px; }
.ai-seglegend em{
  width:7px; height:7px; border-radius:2px; display:inline-block; font-style:normal;
}

/* member profile block inside the dark panel */
.ai-prof{
  position:relative; background:rgba(255,255,255,.075); border-radius:12px;
  padding:13px 15px; margin:14px 0 1px;
}
.ai-prof .pid{
  font-size:.68rem; font-weight:750; letter-spacing:.07em; text-transform:uppercase;
  color:#7fa99a; margin-bottom:7px;
}
.ai-prof dl{ display:grid; grid-template-columns:auto 1fr; gap:3px 14px; margin:0; }
.ai-prof dt{ font-size:.76rem; color:#7fa99a; }
.ai-prof dd{
  font-size:.8rem; color:#e9f6f0; margin:0; font-weight:650; font-variant-numeric:tabular-nums;
}
.ai-prof dd.big{ color:#fff; font-size:.88rem; }

/* ---------- the panel surface ----------
   Everything inside this card is written for a dark surface: #e9f6f0 text, white-alpha
   rows, mint labels. The surface itself was only ever defined in
   docs/superseded/ai-read.css, which no page loads — so the card drew light text on the
   paper background and was unreadable in both themes. It stays dark in both: this is a
   captured model reading, not page chrome. */
.ai-panel{
  position:relative; overflow:hidden; background:#0d1116; color:#e9f6f0;
  border-radius:var(--radius); padding:20px 20px 18px;
}
.ai-panel::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(560px 220px at 82% -12%, rgba(104,204,209,.30), transparent 70%);
}
.ai-badge{
  position:relative; display:inline-flex; align-items:center; gap:6px;
  font-size:.63rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase;
  color:#7fe3b0; background:rgba(127,227,176,.1);
  border:1px solid rgba(127,227,176,.28); border-radius:999px; padding:4px 10px;
}
.ai-badge .dot{ width:6px; height:6px; border-radius:50%; background:#7fe3b0; }
.ai-foot{
  position:relative; margin-top:15px; padding-top:13px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:.72rem; color:#7fa99a; line-height:1.55;
}
.ai-foot a{ color:#7fe3b0; }
