/* Embedded in the Chat tab beside Collaborators. */
.chat-ai-tab-toggle[aria-expanded="true"]{color:#4da6ff;border-bottom-color:#4da6ff}.chat-ai-section{margin:0 12px 8px;border:1px solid rgba(111,211,156,.3);border-radius:7px;background:rgba(8,25,37,.8);overflow:hidden}.chat-ai-section[hidden]{display:none}.ai-assistant{display:flex;flex-direction:column;color:#eaf3f8;max-height:310px}.ai-assistant-heading{display:flex;align-items:baseline;gap:7px;padding:9px 10px 3px}.ai-assistant-heading strong{font-size:1.35rem;color:#e8f0fe}.ai-assistant-heading span{font-size:1.1rem;color:#8899a8}.ai-assistant-instructions{margin:0;padding:0 10px 8px;color:#a8c7d5;font:1.15rem/1.4 system-ui,sans-serif}.ai-messages{max-height:130px;overflow:auto;padding:8px 10px;border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07)}.ai-message{max-width:88%;padding:6px 8px;margin:0 0 6px;border-radius:6px;white-space:pre-wrap;line-height:1.35;font:1.2rem/1.4 system-ui,sans-serif}.ai-message:last-child{margin-bottom:0}.ai-message-user{margin-left:auto;background:#216e9a}.ai-message-assistant{background:#234052}.ai-message-status{max-width:100%;color:#a8c7d5;font-size:1.1rem;border-left:3px solid #53b5d1;border-radius:0;padding-left:7px}.ai-typing{padding:5px 10px 0;color:#9fc1cf;font:1.1rem system-ui,sans-serif}.ai-composer{display:flex;gap:6px;padding:8px 10px}.ai-composer textarea{flex:1;min-width:0;resize:vertical;background:#0b1a27;color:#fff;border:1px solid #3b6d86;border-radius:5px;padding:6px 8px;font:1.2rem/1.35 system-ui,sans-serif}.ai-composer button,.ai-assistant footer button{border:0;border-radius:5px;background:#2a8ab4;color:#fff;padding:6px 9px;font:600 1.15rem system-ui,sans-serif;cursor:pointer}.ai-assistant footer{display:flex;gap:6px;padding:0 10px 8px}.ai-assistant footer button:first-child{background:#344e5d}.ai-assistant footer button:last-child{background:#2b956f;margin-left:auto}@media(max-width:480px){.chat-inner-tab{font-size:1.15rem;padding-left:3px;padding-right:3px}.ai-assistant-heading{display:block}.ai-assistant-heading span{display:block;margin-top:2px}.ai-composer{align-items:stretch}.ai-composer button{align-self:stretch}}
/* AI mode fills the Chat workspace; only the response history scrolls. */
.chat-ai-section:not([hidden]) {
	display: flex;
	flex: 1;
	min-height: 0;
}

.chat-ai-section:not([hidden]) .ai-assistant {
	flex: 1;
	min-height: 0;
	width: 100%;
	max-height: none;
}

.chat-ai-section:not([hidden]) .ai-messages {
	flex: 1;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
}

.chat-ai-section:not([hidden]) .ai-composer,
.chat-ai-section:not([hidden]) .ai-assistant footer {
	flex-shrink: 0;
}

.ai-starters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 10px 8px;
}

.ai-starters button {
	border: 1px solid #3b6d86;
	border-radius: 5px;
	background: #102c3d;
	color: #d8edf5;
	padding: 5px 8px;
	font: 600 1.1rem/1.2 system-ui, sans-serif;
	cursor: pointer;
}

.ai-starters button:hover,
.ai-starters button:focus-visible {
	border-color: #69b8d3;
	background: #173f55;
}
