.heading-actions { display: flex; align-items: center; gap: 10px; }
.inbox-layout-live { min-height: 620px; grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.5fr); }
.inbox-list, .inbox-detail { min-height: 620px; overflow: hidden; }
.inbox-toolbar { min-height: 68px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line, #e7eaf0); }
.inbox-toolbar > div { display: flex; align-items: center; gap: 9px; }
.inbox-toolbar strong { color: var(--ink, #062270); font-size: 15px; }
.inbox-count { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: #fff0e6; color: #d94f00; font-size: 11px; font-weight: 800; text-align: center; }
.inbox-live-label { color: #5f6e87; font-size: 11px; }
.inbox-live-label i, .detail-meta i { width: 7px; height: 7px; margin-right: 5px; display: inline-block; border-radius: 50%; background: #35b975; }
.conversation-list { min-height: 550px; }
.conversation-row { width: 100%; padding: 15px 17px; display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; gap: 11px; align-items: center; border: 0; border-bottom: 1px solid #f0f1f5; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.conversation-row:hover, .conversation-row.active { background: #fffaf6; }
.conversation-row.active { box-shadow: inset 3px 0 0 var(--brand-orange, #ff6500); }
.conversation-avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 13px; background: #e8edff; color: var(--brand-navy, #062270); font-size: 11px; font-weight: 800; }
.conversation-row-copy { min-width: 0; display: grid; gap: 5px; }
.conversation-row-copy strong { overflow: hidden; color: var(--ink, #062270); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-row-copy small { overflow: hidden; color: #7c879d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-row-meta { min-width: 45px; display: grid; justify-items: end; gap: 8px; }
.conversation-row-meta time { color: #9aa4b7; font-size: 10px; white-space: nowrap; }
.conversation-unread { min-width: 18px; padding: 2px 5px; border-radius: 999px; background: var(--brand-orange, #ff6500); color: #fff; font-size: 10px; text-align: center; }
.inbox-loading, .inbox-error { padding: 30px 20px; color: #7c879d; font-size: 13px; line-height: 1.55; }
.inbox-error { color: #a13c27; }
.inbox-empty { min-height: 540px; padding: 80px 25px; }
.inbox-empty .primary-button { display: inline-flex; text-decoration: none; }
.detail-header { min-height: 108px; padding: 20px 23px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line, #e7eaf0); }
.detail-header h2 { margin: 7px 0 7px; color: var(--ink, #062270); font-size: 21px; letter-spacing: -.03em; }
.detail-meta { color: #7c879d; font-size: 11px; }
.detail-channel { padding: 6px 9px; border-radius: 999px; background: #fff0e6; color: #d94f00; font-size: 10px; font-weight: 800; }
.detail-messages { height: 405px; padding: 23px; overflow-y: auto; background: #fafbfc; }
.admin-message { max-width: 75%; margin-bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
.admin-message--agent { margin-left: auto; align-items: flex-end; }
.admin-message-bubble { padding: 11px 14px; border-radius: 15px 15px 15px 4px; background: #fff; color: #43516c; font-size: 13px; line-height: 1.55; box-shadow: 0 4px 14px rgba(6,34,112,.05); }
.admin-message--agent .admin-message-bubble { border-radius: 15px 15px 4px 15px; background: var(--brand-navy, #062270); color: #fff; }
.admin-message time { padding: 0 3px; color: #9aa4b7; font-size: 10px; }
.detail-empty { padding: 75px 15px; color: #8892a5; font-size: 13px; text-align: center; }
.admin-reply { padding: 15px 18px; border-top: 1px solid var(--line, #e7eaf0); background: #fff; }
.admin-reply textarea { width: 100%; min-height: 56px; padding: 9px 10px; resize: vertical; border: 1px solid #e1e5ed; border-radius: 10px; outline: 0; color: var(--ink, #062270); font: inherit; font-size: 13px; }
.admin-reply textarea:focus { border-color: var(--brand-orange, #ff6500); box-shadow: 0 0 0 4px rgba(255,101,0,.1); }
.admin-reply > div { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-reply > div > span { color: #9aa4b7; font-size: 10px; }
.detail-placeholder { min-height: 620px; padding: 100px 35px; display: grid; place-items: center; align-content: center; text-align: center; }
.detail-placeholder > span { width: 48px; height: 48px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 16px; background: #fff0e6; color: var(--brand-orange, #ff6500); font-size: 22px; }
.detail-placeholder strong { color: var(--ink, #062270); font-size: 15px; }
.detail-placeholder p { max-width: 270px; margin: 8px 0 0; color: #8892a5; font-size: 12px; line-height: 1.6; }
@media (max-width: 980px) { .inbox-layout-live { grid-template-columns: 1fr; } .inbox-detail { min-height: 500px; } .detail-placeholder { min-height: 400px; } }
@media (max-width: 620px) { .heading-actions { width: 100%; flex-wrap: wrap; } .heading-actions > * { flex: 1; text-align: center; } .detail-messages { height: 360px; } .admin-reply > div { align-items: flex-start; flex-direction: column; } }
