/* =========================
   ChatGPT (start)
========================= */
.sidebar-chatgpt {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.chatgpt-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.chatgpt-head .heading { margin-bottom: 0; }
.chatgpt-new-btn {}
.chatgpt-history {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 6px;
	overflow: auto;
}
.chatgpt-history-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	text-align: left;
	padding: 10px 10px;
	border-radius: 14px;
	border: 1px solid var(--white-a20);
	background: var(--glass-2);
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
	color: var(--text);
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.chatgpt-history-item:hover {
	background: var(--glass);
	border-color: var(--white-a30);
	transform: translateY(-1px);
}
.chatgpt-history-item.is-active {
	outline: 1px solid var(--white-a50);
	background: var(--glass);
}
.chatgpt-history-title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.chatgpt-history-meta {
	font-size: 12px;
	color: var(--muted);
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
.chatgpt-note { color: var(--muted-2); }
.chatgpt-pane {
	height: 100%;
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 14px;
}
.chatgpt-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	max-width: 100%;
    overflow-x: auto;
	padding: 12px 14px;
	border-radius: 18px;
	border: 1px solid var(--white-a20);
	background: rgba(0,0,0,.10);
}
.chatgpt-title {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.chatgpt-subtitle { color: var(--muted); }
.chatgpt-status {
	color: var(--muted);
	white-space: nowrap;
}
.chatgpt-messages {
	border-radius: 18px;
	border: 1px solid var(--white-a20);
	background: var(--glass-2);
	/* backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur)); */
	padding: 12px;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.chatgpt-msg {
	max-width: 88%;
	padding: 10px 12px;
	border-radius: 16px;
	border: 1px solid rgba(255,255,255,.12);
	box-shadow: 0 18px 60px rgba(0,0,0,.18);
	white-space: pre-wrap;
	line-height: 1.35;
}
.chatgpt-msg--user {
	align-self: flex-end;
	background: rgba(255,255,255,.10);
	border-color: rgba(255,255,255,.18);
}
.chatgpt-msg--assistant {
	align-self: flex-start;
	background: rgba(0,0,0,.14);
	border-color: rgba(255,255,255,.10);
}
.chatgpt-msg-meta {
	margin-top: 6px;
	font-size: 11px;
	color: rgba(255,255,255,.55);
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
.chatgpt-form {
	display: flex;
	gap: 10px;
	align-items: center;
}
.chatgpt-input {
	width: 100%;
	height: 45px;
	border-radius: 14px;
	border: 1px solid var(--white-a20);
	background: rgba(255,255,255,.10);
	color: var(--text);
	padding: 10px 12px;
	outline: none;
}
.chatgpt-input:focus { border-color: var(--white-a40); }
.chatgpt-send {
	height: 45px;
	padding: 0 14px;
	border-radius: 14px;
	border: 1px solid var(--white-a20);
	background: rgba(255,255,255,.12);
	color: var(--text);
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease;
	white-space: nowrap;
}
.chatgpt-send:hover {
	background: rgba(255,255,255,.16);
	border-color: var(--white-a30);
	transform: translateY(-1px);
}
.chatgpt-send:active { transform: translateY(0); }
.chatgpt-send:disabled {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}
/* =========================
   ChatGPT (end)
========================= */


