.nc-wolf-panel {
	position: fixed;
	left: 24px;
	bottom: 96px;
	width: min(360px, calc(100vw - 32px));
	height: 480px;
	max-height: calc(100vh - 140px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	z-index: 10001;
	overflow: hidden;
	font-family: inherit;
}

.nc-wolf-panel[hidden] {
	display: none;
}

.nc-wolf-panel__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #0358ac, #0678d4);
	color: #fff;
	flex-shrink: 0;
}

.nc-wolf-panel__header img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.6);
}

.nc-wolf-panel__header div {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	flex: 1;
}

.nc-wolf-panel__header strong {
	font-size: 14px;
}

.nc-wolf-panel__header span {
	font-size: 11px;
	opacity: 0.85;
}

.nc-wolf-panel__close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	opacity: 0.8;
}

.nc-wolf-panel__close:hover {
	opacity: 1;
}

.nc-wolf-panel__messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #f5f8fc;
}

.nc-wolf-msg {
	max-width: 82%;
	padding: 9px 13px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.45;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.nc-wolf-msg--user {
	align-self: flex-end;
	background: #0358ac;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.nc-wolf-msg--assistant {
	align-self: flex-start;
	background: #fff;
	color: #1c2733;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-bottom-left-radius: 4px;
}

.nc-wolf-msg--error {
	background: #fdecec;
	color: #b42318;
	border-color: #f5c6c6;
}

.nc-wolf-msg--typing {
	opacity: 0.65;
	font-style: italic;
}

.nc-wolf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 10px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	background: #fff;
	flex-shrink: 0;
}
.nc-wolf-chips button {
	border: 1px solid #d5dde5;
	background: #f5f8fc;
	color: #0358ac;
	border-radius: 16px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nc-wolf-chips button:hover {
	background: #0358ac;
	color: #fff;
	border-color: #0358ac;
}
.nc-wolf-panel__form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	background: #fff;
	flex-shrink: 0;
}

.nc-wolf-panel__form input {
	flex: 1;
	border: 1px solid #d5dde5;
	border-radius: 22px;
	padding: 9px 15px;
	font-size: 13.5px;
	outline: none;
	min-width: 0;
}

.nc-wolf-panel__form input:focus {
	border-color: #0678d4;
	box-shadow: 0 0 0 2px rgba(6, 120, 212, 0.15);
}

.nc-wolf-panel__form button {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: #0358ac;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	flex-shrink: 0;
	transition: transform 0.15s ease, background 0.15s ease;
}

.nc-wolf-panel__form button:hover {
	background: #0678d4;
	transform: scale(1.08);
}
