/* JtA.chat light workspace: approved greys, existing yellow service accents. */
body.jta-chat-body{--jta-ink:#313131;--jta-muted:#62666a;--jta-line:#dfdfdf;font-family:Arial,sans-serif}
.jta-chat-body .jta-chat-thread{width:min(100%,880px);padding:28px 28px 32px}
.jta-chat-body .jta-chat-note-header{border-bottom-color:#dfdfdf;box-shadow:none}
.jta-chat-body .jta-chat-composer{border-color:#dfdfdf;border-radius:18px;box-shadow:0 4px 18px rgb(0 0 0 / 4%)}
.jta-chat-body .jta-chat-composer textarea{font:400 16px/1.5 Arial,sans-serif;color:#313131}
.jta-chat-body .jta-chat-composer textarea::placeholder{color:#62666a}
.jta-chat-body .jta-chat-message-body :is(a:not(.jta-action-link),a:not(.jta-object-link)){text-underline-offset:3px}
.jta-chat-body .jta-chat-sidebar{box-shadow:none;border-right:1px solid #313131}
.jta-chat-body .jta-chat-account{border-top:1px solid #313131}
.jta-chat-body .jta-chat-message-body :is(img,video){max-width:100%;height:auto}
.jta-chat-body .jta-chat-message-body pre:not(.jta-email-record-body pre):not(.jta-email-quoted-history pre){max-width:100%;overflow:auto;border:1px solid #dfdfdf;border-radius:12px;padding:12px;background:#f1f1f1}
.jta-chat-body .jta-chat-message-body blockquote:not(.jta-email-record-body blockquote):not(.jta-email-quoted-history blockquote){margin:14px 0;padding:10px 14px;border-left:3px solid #ffdd3e;border-radius:0 10px 10px 0;background:#f1f1f1;color:#313131}
.jta-chat-body .jta-chat-message-body table:not(.jta-email-record-body table):not(.jta-email-quoted-history table){display:block;max-width:100%;overflow:auto;border-collapse:collapse}
@media(max-width:680px){.jta-chat-body .jta-chat-thread{padding:18px 12px 24px}.jta-chat-body .jta-chat-composer-wrap{padding-left:12px;padding-right:12px}.jta-chat-body .jta-chat-composer{border-radius:16px}}

/* Same People catalogue icon as Account and the style guide. */
.jta-chat-sidebar .jta-people-link{display:flex;align-items:center;gap:11px;flex-shrink:0;width:calc(100% - 28px);min-height:48px;margin:0 14px 12px;padding:0 15px;box-sizing:border-box;border:1px solid transparent;border-radius:12px;background:transparent;color:#ededed;text-align:left;text-decoration:none;font:650 14px/1.5 Arial,sans-serif;box-shadow:none}
.jta-chat-sidebar .jta-people-link:hover{background:#252525;border-color:#4e4930;color:#fff}.jta-chat-sidebar .jta-people-symbol{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;background:#ffdd3e;color:#111}.jta-chat-sidebar .jta-people-link svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
.jta-chat-sidebar .jta-people-link:focus-visible{outline:2px solid #7ab8fa;outline-offset:2px;box-shadow:0 0 0 4px #7ab8fa33}

.jta-people-link .jta-people-request-count{display:inline-grid;place-items:center;min-width:22px;min-height:22px;border-radius:12px;margin-left:6px;padding:1px 6px;background:#f5df4d;color:#313131;font:700 12px/1.5 Arial,sans-serif}

/* Compact service shortcuts wrap onto another row when more tools are added. */
.jta-chat-sidebar .jta-chat-shortcuts{
 display:flex;flex:none;flex-wrap:wrap;align-items:center;gap:8px;
 min-width:0;max-width:100%;margin:0 14px 12px;padding:3px;
}
.jta-chat-sidebar .jta-chat-shortcuts > :is(a,button){
 position:relative;display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 44px;box-sizing:border-box;width:44px;min-width:44px;max-width:44px;
 height:44px;min-height:44px;margin:0;padding:8px;gap:0;
 border:1px solid transparent;border-radius:12px;background:transparent;color:#ededed;
 font-size:0;line-height:1;text-decoration:none;cursor:pointer;
}
.jta-chat-sidebar .jta-chat-shortcuts > :is(a,button):hover{
 background:#252525;border-color:#4e4930;color:#fff;
}
.jta-chat-sidebar .jta-chat-shortcuts > :is(a,button):focus-visible{
 outline:2px solid #7ab8fa;outline-offset:0;box-shadow:0 0 0 2px #7ab8fa33;
}
.jta-chat-sidebar .jta-chat-shortcuts .jta-drive-nav > strong{
 position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
 clip-path:inset(50%);white-space:nowrap;
}
.jta-chat-sidebar .jta-chat-shortcuts .jta-people-link > span:not(.jta-people-symbol){
 display:contents;font-size:0;
}
.jta-chat-sidebar .jta-chat-shortcuts .jta-people-request-count{
 position:absolute;top:0;right:0;margin:0;min-width:16px;min-height:16px;
 padding:1px 4px;border:1px solid #111;font-size:10px;line-height:1.3;
}

/* The message bar stays compact until attachment tools are requested. */
.jta-chat-tools:has(.jta-file-tools[hidden]):not(:has(.jta-file-list:not(:empty), .jta-file-status:not([hidden]), .jta-recording-controls:not([hidden]))) {
	display: none;
}
body.jta-chat-body .jta-chat-composer:has([data-chat-tools-toggle]) {
	gap: 8px;
	padding-left: 10px;
}
body.jta-chat-body .jta-chat-composer .jta-chat-tools-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	flex: 0 0 44px;
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #313131;
	box-shadow: none;
	cursor: pointer;
}
body.jta-chat-body .jta-chat-composer .jta-chat-tools-toggle:hover {
	background: #f0f0f0;
}
body.jta-chat-body .jta-chat-composer .jta-chat-tools-toggle[aria-expanded="true"] {
	background: #fff9cc;
}
body.jta-chat-body .jta-chat-composer .jta-chat-tools-toggle:focus-visible {
	outline: 2px solid #313131;
	outline-offset: 2px;
}
body.jta-chat-body .jta-chat-composer .jta-chat-tools-toggle svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}
body.jta-chat-body .jta-chat-composer .jta-chat-tools-toggle[aria-expanded="true"] svg {
	transform: rotate(45deg);
}
body.jta-chat-body .jta-chat-composer:has([data-chat-tools-toggle]) textarea {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}
