/* Shared Note conversation reference: people, JtAi, service records and message rhythm. */
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:14px;padding:22px 0;border-bottom:1px solid #dfdfdf}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message:last-child{border-bottom:0}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message .jta-chat-message-avatar,
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item .jta-avatar{display:grid;place-items:center;width:40px;min-width:40px;height:40px;box-sizing:border-box;flex:none;border:1px solid #dfdfdf;border-radius:50%;background:#f1f1f1;color:#313131;box-shadow:none;font:700 14px/1 Arial,sans-serif;letter-spacing:0;overflow:hidden}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message.is-jtai .jta-chat-message-avatar,
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item.is-jtai .jta-avatar,
.jta-chat-body .jta-chat-progress-avatar{border:0;border-radius:12px;background:#ffdd3e;color:#313131;box-shadow:none;font:700 11px/1 Arial,sans-serif;letter-spacing:0}
.jta-chat-body .jta-chat-progress-avatar{width:40px;height:40px;flex:0 0 40px}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message.is-service .jta-chat-message-avatar,
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item.is-service .jta-avatar{border:0;border-radius:12px;background:#313131;color:#fff;font:700 13px/1 Arial,sans-serif;box-shadow:none}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-content{min-width:0;padding:0}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-content>header{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-height:22px;margin:0 0 6px;padding:0}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-content>header>strong{font:700 14px/21px Arial,sans-serif;color:#313131;overflow-wrap:anywhere}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-content>header>span{padding:2px 7px;border:0;border-radius:6px;background:#f1f1f1;color:#62666a;font:600 12px/18px Arial,sans-serif;text-transform:none;letter-spacing:0;white-space:normal}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-content>header>.jta-chat-item-unread{background:#fff8ce;color:#4c4316}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-content>header>time{margin-left:auto;width:auto;color:#62666a;font:400 12px/18px Arial,sans-serif;white-space:nowrap}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-body{max-width:720px;color:#313131;font:400 16px/1.6 Arial,sans-serif;overflow-wrap:anywhere}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-body>p{margin:0 0 12px}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-body>:last-child{margin-bottom:0}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message.is-unread .jta-chat-message-content{background:none;box-shadow:none}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-unread-divider,
body.jta-admin-v112 #wpbody-content .jta-team-unread-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:#4c4316;font:600 12px/18px Arial,sans-serif}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-unread-divider:before,
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-unread-divider:after,
body.jta-admin-v112 #wpbody-content .jta-team-unread-divider:before,
body.jta-admin-v112 #wpbody-content .jta-team-unread-divider:after{content:'';height:1px;flex:1;background:#dfdfdf}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-unread-divider>span,
body.jta-admin-v112 #wpbody-content .jta-team-unread-divider>span{padding:5px 10px;border-radius:8px;background:#fff8ce;white-space:nowrap}
/* Team Notes keeps its explicit audience labels and separate private history. */
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item{grid-template-columns:40px minmax(0,1fr);gap:14px}
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item[data-chat-content="1"] .jta-bubble{background:#fff;border:1px solid #dfdfdf;border-radius:16px;padding:14px 16px;box-shadow:none}
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item[data-chat-content="1"].is-unread .jta-bubble{border-color:#ecdf93;background:#fffef9}
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item[data-chat-content="1"] .jta-bubble>header{padding:0;margin:0 0 8px;border:0;align-items:center}
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item[data-chat-content="1"] .jta-bubble>header>strong{font:700 14px/21px Arial,sans-serif!important}
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item[data-chat-content="1"] .jta-bubble>header>span:not(.jta-team-unread-badge){font:400 12px/18px Arial,sans-serif!important;color:#62666a}
body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item[data-chat-content="1"] .jta-bubble .jta-body{padding:0;color:#313131;font:400 16px/1.6 Arial,sans-serif!important}
.jta-conversation-demo{padding:8px 20px;background:#fff;border:1px solid #dfdfdf;border-radius:16px;max-width:780px;margin:16px 0;box-sizing:border-box}
.jta-conversation-demo [hidden]{display:none!important}
@media(max-width:680px){
 :is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message{grid-template-columns:36px minmax(0,1fr);gap:12px;padding:18px 0}
 :is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message .jta-chat-message-avatar,
 body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item .jta-avatar{width:36px;min-width:36px;height:36px}
 :is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-content>header>time{flex-basis:100%;margin:0;white-space:normal}
 .jta-chat-body .jta-chat-progress-avatar{width:36px;height:36px;flex-basis:36px}
 body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item{grid-template-columns:36px minmax(0,1fr);gap:10px}
 body.jta-admin-v112 #wpbody-content .jta-note-workspace .jta-thread-item[data-chat-content="1"] .jta-bubble{padding:12px}
 .jta-conversation-demo{padding:4px 12px}
}

/* Light Chat cards. The guide examples use these same rules. */
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message{gap:14px;padding:0;margin:0 0 20px;border:0}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message:last-child{margin-bottom:0}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message .jta-chat-message-avatar{margin-top:4px}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message .jta-chat-message-content{padding:16px 18px;border:1px solid #dfdfdf;border-radius:16px;background:#fff;box-shadow:none;overflow-wrap:anywhere}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message.is-self>.jta-chat-message-content{background:#f1f1f1}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-content>header{gap:6px 8px;margin:0 0 10px}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-body>:first-child{margin-top:0}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-body>:last-child{margin-bottom:0}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message-body p{font:400 16px/1.6 Arial,sans-serif}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message.is-unread .jta-chat-message-content{background:#fff;border-color:#dfdfdf;box-shadow:none}
:is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message.is-self.is-unread .jta-chat-message-content{background:#f1f1f1}
.jta-conversation-demo{padding:20px;background:#f7f7f5;border:1px solid #dfdfdf}
@media(max-width:680px){
 :is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message{gap:12px;margin-bottom:16px}
 :is(.jta-chat-body,.jta-conversation-demo) .jta-chat-message .jta-chat-message-content{padding:12px}
 .jta-conversation-demo{padding:12px}
}

.jta-chat-progress { align-items: flex-start; }
.jta-chat-progress-copy { min-width: 0; line-height: 1.45; align-self: center; }
.jta-chat-progress-copy strong { color: var(--jta-chat-text, #313131); }
.jta-chat-progress-copy [data-chat-progress-detail]:not(:empty),
.jta-chat-progress-copy [data-chat-progress-time]:not(:empty) { display: block; margin-top: 3px; }
.jta-chat-progress-copy [data-chat-progress-time] { font-size: .9em; }
.jta-chat-progress-dots { align-self: flex-start; margin-top: 16px; }
