.chat1 {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	max-width: 860px;
}

.otvet {
	display: none;
	padding: 16px 18px;
	box-sizing: border-box;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #f7faf5;
	color: #1f2937;
	font-size: 15px;
	line-height: 1.6;
	word-break: break-word;
}

.otvet:not([hidden]) {
	display: block;
}

.otvet.is-error {
	border-color: #f1c0c0;
	background: #fff5f5;
	color: #b42318;
}

.otvet__list {
	margin: 0;
	padding-left: 1.25em;
}

.otvet__list li {
	margin: 0 0 0.55em;
}

.otvet__list li:last-child {
	margin-bottom: 0;
}

.otvet p {
	margin: 0 0 0.75em;
}

.otvet p:last-child {
	margin-bottom: 0;
}

.otvet__day {
	margin: 1em 0 0.5em;
	font-weight: 700;
	font-size: 1.05em;
}

.otvet__day:first-child {
	margin-top: 0;
}

.otvet__thread {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.otvet__msg {
	padding: 10px 12px;
	border-radius: 12px;
	max-width: 100%;
}

.otvet__msg--user {
	align-self: flex-end;
	background: #e8eef6;
	color: #1f2937;
	white-space: pre-wrap;
}

.otvet__msg--assistant {
	align-self: stretch;
	background: #ffffff;
	border: 1px solid #e5e7eb;
}

.otvet__msg.is-loading {
	opacity: 0.7;
	font-style: italic;
}

.otvet__msg.is-error {
	border-color: #f1c0c0;
	background: #fff5f5;
	color: #b42318;
}

.otvet__action-btn,
.otvet__msg button {
	display: inline-flex;
	align-items: center;
	margin: 6px 6px 0 0;
	padding: 8px 14px;
	border: 1px solid #cfe9b8;
	border-radius: 999px;
	background: #f7faf5;
	color: #1f2937;
	font-size: 13px;
	line-height: 1.3;
	font-family: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.otvet__action-btn:hover,
.otvet__msg button:hover {
	background: #eef8e6;
	border-color: #7ac943;
}

.otvet__msg a {
	color: #2f6fed;
	text-decoration: underline;
}

.wrap-chat-1 {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.wrap-chat-1__tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.wrap-chat-1__tab {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 13px;
	line-height: 1.3;
	font-family: inherit;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wrap-chat-1__tab:hover {
	background: #f8faf8;
	border-color: #cfe9b8;
	color: #1f2937;
}

.wrap-chat-1__tab:focus-visible {
	outline: 2px solid #7ac943;
	outline-offset: 2px;
}

.wrap-chat-1__tab:disabled {
	opacity: 0.6;
	cursor: wait;
}

.wrap-chat-1__form {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	padding: 6px 6px 6px 20px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e6e8eb;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.wrap-chat-1__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	font-size: 16px;
	line-height: 1.4;
	color: #1f2937;
	font-family: inherit;
}

.wrap-chat-1__input::placeholder {
	color: #9aa3af;
}

.wrap-chat-1__input:focus {
	outline: none;
	box-shadow: none;
}

.wrap-chat-1__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #9aa3af;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.wrap-chat-1__clear:hover {
	color: #b42318;
	background: #fff5f5;
}

.wrap-chat-1__clear:disabled {
	opacity: 0.5;
	cursor: wait;
}

.wrap-chat-1__clear[hidden] {
	display: none;
}

.wrap-chat-1__clear-icon {
	display: block;
}

.wrap-chat-1__send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #7ac943;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.wrap-chat-1__send:hover {
	background: #6bb83a;
}

.wrap-chat-1__send:active {
	transform: scale(0.96);
}

.wrap-chat-1__send-icon {
	display: block;
}

@media (max-width: 640px) {
	.wrap-chat-1__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 2px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.wrap-chat-1__tabs::-webkit-scrollbar {
		display: none;
	}

	.wrap-chat-1__tab {
		flex: 0 0 auto;
		font-size: 12px;
		padding: 7px 12px;
	}
}
