/* Omnichannel Inbox page — page-specific widgets. After styles.css + marketing.css. LIGHT. */
/* 3-pane inbox mockup */
.ibx { display: grid; grid-template-columns: 280px 1fr 260px; min-height: 440px; }
.ibx__list { border-right: 1px solid var(--line); background: var(--surface2); }
.ibx__lh { padding: 14px 18px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted2); border-bottom: 1px solid var(--line); }
.ibx__row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.ibx__row.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--brand); }
.ibx__ch { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: var(--surface3); }
.ibx__nm { font-size: 14px; font-weight: 600; color: var(--ink); }
.ibx__sn { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ibx__t { font-size: 11px; color: var(--muted2); }
.ibx__un { display: inline-block; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; padding: 0 5px; }
/* thread */
.ibx__thread { display: flex; flex-direction: column; }
.ibx__th { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ibx__th .nm { font-size: 15px; font-weight: 700; } .ibx__th .via { font-size: 12px; color: var(--muted); }
.ibx__pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: rgba(22,143,91,.12); color: var(--green); }
.ibx__msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface2); }
.bub { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.bub.in { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink-2); align-self: flex-start; }
.bub.out { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.ibx__reply { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.ibx__inp { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface2); display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: var(--muted2); }
.ibx__send { width: 80px; height: 38px; border-radius: 10px; background: var(--grad); }
/* context */
.ibx__ctx { border-left: 1px solid var(--line); padding: 18px; }
.ibx__cn { font-size: 16px; font-weight: 800; } .ibx__cs { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.ibx__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ibx__tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--gradSoft); color: var(--brand); }
.ibx__cl { display: flex; justify-content: space-between; font-size: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); }
.ibx__cl b { color: var(--ink); font-weight: 600; }
.ibx__ag { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.ibx__avi { width: 26px; height: 26px; border-radius: 50%; background: var(--brand2); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* channel strip */
.chstrip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip-ch { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.chip-ch .e { font-size: 19px; }

@media (max-width: 820px) { .ibx { grid-template-columns: 1fr; } .ibx__list, .ibx__ctx { display: none; } }
